It's igraph time, and while I don't know igraph well (there are probably more elegant uses out there) I know a minimum spanning tree problem when I read it (and I read it in part 2)
It's igraph time, and while I don't know igraph well (there are probably more elegant uses out there) I know a minimum spanning tree problem when I read it (and I read it in part 2)
Love his book, mind.
Love his book, mind.
separate_wider_regex() is my main. The patterns arg! Beautiful. The debug mode! So sympathetic to the user’s whole process.
separate_wider_regex() is my main. The patterns arg! Beautiful. The debug mode! So sympathetic to the user’s whole process.
Just discovered something weird:
na.omit() and tidyr::drop_na() give different rownames when you select rows in their result.
Does anyone have an idea why this is so?
Just discovered something weird:
na.omit() and tidyr::drop_na() give different rownames when you select rows in their result.
Does anyone have an idea why this is so?
{tidyverse}
%>%
<-
{palmerpenguins}
tidyr::pivot_longer()
dplyr::group_by()
Quarto
purrr::map()
dplyr::mutate()
VS Code!
{tidyverse}
%>%
<-
{palmerpenguins}
tidyr::pivot_longer()
dplyr::group_by()
Quarto
purrr::map()
dplyr::mutate()
VS Code!
github.com/elbersb/tidy...
github.com/elbersb/tidy...
https://tidyr.tidyverse.org/dev/articles/pivot.html
But is it really wider? 😉
@hadleywickham #rstats #tidyverse
https://tidyr.tidyverse.org/dev/articles/pivot.html
But is it really wider? 😉
@hadleywickham #rstats #tidyverse
#rstats #edresearch
You can find more examples here: github.com/Cghlewis/dat...
#rstats #edresearch
You can find more examples here: github.com/Cghlewis/dat...
#R #RStats #RProgramming #RandomWalks #Visual #ggplot2
#R #RStats #RProgramming #RandomWalks #Visual #ggplot2
For me, it would be
?tidyr::pivot_wider() and
?tidyr::pivot_longer()
For me, it would be
?tidyr::pivot_wider() and
?tidyr::pivot_longer()
(similar to how Allison Horst translated observable plot concepts from a ggplot lens).
(similar to how Allison Horst translated observable plot concepts from a ggplot lens).
I would maybe quibble that it's worth adding a footnote about the packages you need, specifically RE: `dbplyr` (which will power a lot of what you need to translate your dplyr/tidyr/etc code). That's only so someone who tries it out isn't blindsided by installation issues.
I would maybe quibble that it's worth adding a footnote about the packages you need, specifically RE: `dbplyr` (which will power a lot of what you need to translate your dplyr/tidyr/etc code). That's only so someone who tries it out isn't blindsided by installation issues.
If you have a pattern of columns, say address_1, address_2, ..., but you don't know how many, you can `unite("address", starts_with("address_"), sep = " ")` which is difficult to do otherwise without breaking your flow.
<3 tidyr
If you have a pattern of columns, say address_1, address_2, ..., but you don't know how many, you can `unite("address", starts_with("address_"), sep = " ")` which is difficult to do otherwise without breaking your flow.
<3 tidyr