Skip to content

Commit b0f4a56

Browse files
author
Quarto GHA Workflow Runner
committed
Built site for gh-pages
1 parent a86c395 commit b0f4a56

File tree

7 files changed

+110
-105
lines changed

7 files changed

+110
-105
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6e63a093
1+
80665d19

data-transformation.pdf

126 KB
Binary file not shown.

html/data-transformation.html

Lines changed: 56 additions & 51 deletions
Large diffs are not rendered by default.

html/images/logo-dplyr.png

0 Bytes
Loading

index.html

Lines changed: 24 additions & 24 deletions
Large diffs are not rendered by default.

search.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@
872872
"href": "html/data-transformation.html#group-cases",
873873
"title": "Data transformation with dplyr :: Cheatsheet",
874874
"section": "Group Cases",
875-
"text": "Group Cases\n\nUse group_by(.data, ..., .add = FALSE, .drop = TRUE) to created a “grouped” copy of a table grouped by columns in .... dplyr functions will manipulate each “group” separately and combine the results.\n\nmtcars |>\n group_by(cyl) |>\n summarize(avg = mean(mpg))\n\nUse rowwise(.data, ...) to group data into individual rows. dplyr functions will compute results for each row. Also apply functions to list-columns. See tidyr cheatsheet for list-column workflow.\n\nstarwars |>\n rowwise() |>\n mutate(film_count = length(films))\n\nungroup(x, ...): Returns ungrouped copy of table."
875+
"text": "Group Cases\n\nUse group_by(.data, ..., .add = FALSE, .drop = TRUE) to created a “grouped” copy of a table grouped by columns in .... dplyr functions will manipulate each “group” separately and combine the results.\n\nmtcars |>\n group_by(cyl) |>\n summarize(avg = mean(mpg))\n\nAlternate grouping syntax with .by as an argument:\n\nmtcars |>\n summarize(avg = mean(mpg), .by = cyl)\n\nUse rowwise(.data, ...) to group data into individual rows. dplyr functions will compute results for each row. Also apply functions to list-columns. See tidyr cheatsheet for list-column workflow.\n\nstarwars |>\n rowwise() |>\n mutate(film_count = length(films))\n\nungroup(x, ...): Returns ungrouped copy of table."
876876
},
877877
{
878878
"objectID": "html/data-transformation.html#manipulate-cases",
@@ -914,7 +914,7 @@
914914
"href": "html/data-transformation.html#combine-tables",
915915
"title": "Data transformation with dplyr :: Cheatsheet",
916916
"section": "Combine Tables",
917-
"text": "Combine Tables\n\nx <- tribble(\n ~A, ~B, ~C,\n \"a\", \"t\", 1,\n \"b\", \"u\", 2,\n \"c\", \"v\", 3\n)\n\ny <- tribble(\n ~A, ~B, ~D,\n \"a\", \"t\", 3,\n \"b\", \"u\", 2,\n \"d\", \"w\", 1\n)\n\n\nCombine Variables\n\nbind_cols(..., .name_repair): Returns tables placed side by side as a single table. Column lengths must be equal. Columns will NOT be matched by id (to do that look at Relational Data below), so be sure to check that both tables are ordered the way you want before binding.\n\n\n\nCombine Cases\n\nbind_rows(..., .id = NULL): Returns tables one on top of the other as a single table. Set .id to a column name to add a column of the original table names.\n\n\n\nRelational Data\nUse a “Mutating Join” to join one table to columns from another, matching values with the rows that the correspond to. Each join retains a different combination of values from the tables.\n\nleft_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join matching values from y to x.\nright_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join matching values from x to y.\ninner_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join data. retain only rows with matches.\nfull_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join data. Retain all values, all rows.\n\nUse a “Filtering Join” to filter one table against the rows of another.\n\nsemi_join(x, y, by = NULL, copy = FALSE, ..., na_matches = \"na\"): Return rows of x that have a match in y. Use to see what will be included in a join.\nanti_join(x, y, by = NULL, copy = FALSE, ..., na_matches = \"na\"): Return rows of x that do not have a match in y. Use to see what will not be included in a join.\n\nUse a “Nest Join” to inner join one table to another into a nested data frame.\n\nnest_join(x, y, by = NULL, copy = FALSE, keep = FALSE, name = NULL, ...): Join data, nesting matches from y in a single new data frame column.\n\n\n\nColumn Matching for Joins\n\nUse by = join_by(col1, col2, …) to specify one or more common columns to match on.\n\nleft_join(x, y, by = join_by(A))\nleft_join(x, y, by = join_by(A, B))\n\nUse a logical statement, by = join_by(col1 == col2), to match on columns that have different names in each table.\n\nleft_join(x, y, by = join_by(C == D))\n\nUse suffix to specify the suffix to give to unmatched columns that have the same name in both tables.\n\nleft_join(x, y, by = join_by(C == D), suffix = c(\"1\", \"2\"))\n\n\n\n\nSet Operations\n\nintersect(x, y, ...): Rows that appear in both x and y.\nsetdiff(x, y, ...): Rows that appear in x but not y.\nunion(x, y, ...): Rows that appear in x or y, duplicates removed. union_all() retains duplicates.\nUse setequal() to test whether two data sets contain the exact same rows (in any order).\n\n\nCC BY SA Posit Software, PBC • [email protected] • posit.co\nLearn more at dplyr.tidyverse.org.\nUpdated: 2024-05.\n\npackageVersion(\"dplyr\")\n\n[1] '1.1.4'"
917+
"text": "Combine Tables\n\nx <- tribble(\n ~A, ~B, ~C,\n \"a\", \"t\", 1,\n \"b\", \"u\", 2,\n \"c\", \"v\", 3\n)\n\ny <- tribble(\n ~A, ~B, ~D,\n \"a\", \"t\", 3,\n \"b\", \"u\", 2,\n \"d\", \"w\", 1\n)\n\n\nCombine Variables\n\nbind_cols(..., .name_repair): Returns tables placed side by side as a single table. Column lengths must be equal. Columns will NOT be matched by id (to do that look at Relational Data below), so be sure to check that both tables are ordered the way you want before binding.\n\n\n\nCombine Cases\n\nbind_rows(..., .id = NULL): Returns tables one on top of the other as a single table. Set .id to a column name to add a column of the original table names.\n\n\n\nRelational Data\nUse a “Mutating Join” to join one table to columns from another, matching values with the rows that the correspond to. Each join retains a different combination of values from the tables.\n\nleft_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join matching values from y to x.\nright_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join matching values from x to y.\ninner_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join data. retain only rows with matches.\nfull_join(x, y, by = NULL, copy = FALSE, suffix = c(\".x\", \".y\"), ..., keep = FALSE, na_matches = \"na\"): Join data. Retain all values, all rows.\n\nUse a “Filtering Join” to filter one table against the rows of another.\n\nsemi_join(x, y, by = NULL, copy = FALSE, ..., na_matches = \"na\"): Return rows of x that have a match in y. Use to see what will be included in a join.\nanti_join(x, y, by = NULL, copy = FALSE, ..., na_matches = \"na\"): Return rows of x that do not have a match in y. Use to see what will not be included in a join.\n\nUse a “Nest Join” to inner join one table to another into a nested data frame.\n\nnest_join(x, y, by = NULL, copy = FALSE, keep = FALSE, name = NULL, ...): Join data, nesting matches from y in a single new data frame column.\n\n\n\nColumn Matching for Joins\n\nUse by = join_by(col1, col2, …) to specify one or more common columns to match on.\n\nleft_join(x, y, by = join_by(A))\nleft_join(x, y, by = join_by(A, B))\n\nUse a logical statement, by = join_by(col1 == col2), to match on columns that have different names in each table.\n\nleft_join(x, y, by = join_by(C == D))\n\nUse suffix to specify the suffix to give to unmatched columns that have the same name in both tables.\n\nleft_join(x, y, by = join_by(C == D), suffix = c(\"1\", \"2\"))\n\n\n\n\nSet Operations\n\nintersect(x, y, ...): Rows that appear in both x and y.\nsetdiff(x, y, ...): Rows that appear in x but not y.\nunion(x, y, ...): Rows that appear in x or y, duplicates removed. union_all() retains duplicates.\nUse setequal() to test whether two data sets contain the exact same rows (in any order).\n\n\nCC BY SA Posit Software, PBC • [email protected] • posit.co\nLearn more at dplyr.tidyverse.org.\nUpdated: 2025-08.\n\npackageVersion(\"dplyr\")\n\n[1] '1.1.4'"
918918
},
919919
{
920920
"objectID": "contributed-cheatsheets.html",

sitemap.xml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,110 +2,110 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://rstudio.github.io/cheatsheets/translations.html</loc>
5-
<lastmod>2025-08-14T22:55:03.795Z</lastmod>
5+
<lastmod>2025-08-14T23:03:13.356Z</lastmod>
66
</url>
77
<url>
88
<loc>https://rstudio.github.io/cheatsheets/html/tidyr.html</loc>
9-
<lastmod>2025-08-14T22:55:01.951Z</lastmod>
9+
<lastmod>2025-08-14T23:03:11.524Z</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://rstudio.github.io/cheatsheets/html/sparklyr.html</loc>
13-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
13+
<lastmod>2025-08-14T23:03:11.524Z</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://rstudio.github.io/cheatsheets/html/shiny.html</loc>
17-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
17+
<lastmod>2025-08-14T23:03:11.524Z</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://rstudio.github.io/cheatsheets/html/rstudio-ide.html</loc>
21-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
21+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://rstudio.github.io/cheatsheets/html/reticulate.html</loc>
25-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
25+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://rstudio.github.io/cheatsheets/html/purrr.html</loc>
29-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
29+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://rstudio.github.io/cheatsheets/html/plumber.html</loc>
33-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
33+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://rstudio.github.io/cheatsheets/html/package-development.html</loc>
37-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
37+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://rstudio.github.io/cheatsheets/html/lubridate.html</loc>
41-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
41+
<lastmod>2025-08-14T23:03:11.522Z</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://rstudio.github.io/cheatsheets/html/gt.html</loc>
45-
<lastmod>2025-08-14T22:55:01.888Z</lastmod>
45+
<lastmod>2025-08-14T23:03:11.462Z</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://rstudio.github.io/cheatsheets/html/factors.html</loc>
49-
<lastmod>2025-08-14T22:55:01.888Z</lastmod>
49+
<lastmod>2025-08-14T23:03:11.462Z</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://rstudio.github.io/cheatsheets/html/data-transformation.html</loc>
53-
<lastmod>2025-08-14T22:55:01.887Z</lastmod>
53+
<lastmod>2025-08-14T23:03:11.462Z</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://rstudio.github.io/cheatsheets/contributed-cheatsheets.html</loc>
57-
<lastmod>2025-08-14T22:55:01.823Z</lastmod>
57+
<lastmod>2025-08-14T23:03:11.399Z</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://rstudio.github.io/cheatsheets/html/data-import.html</loc>
61-
<lastmod>2025-08-14T22:55:01.887Z</lastmod>
61+
<lastmod>2025-08-14T23:03:11.462Z</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://rstudio.github.io/cheatsheets/html/data-visualization.html</loc>
65-
<lastmod>2025-08-14T22:55:01.888Z</lastmod>
65+
<lastmod>2025-08-14T23:03:11.462Z</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://rstudio.github.io/cheatsheets/html/great-tables.html</loc>
69-
<lastmod>2025-08-14T22:55:01.888Z</lastmod>
69+
<lastmod>2025-08-14T23:03:11.462Z</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://rstudio.github.io/cheatsheets/html/keras.html</loc>
73-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
73+
<lastmod>2025-08-14T23:03:11.522Z</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://rstudio.github.io/cheatsheets/html/nlp-with-llms.html</loc>
77-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
77+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://rstudio.github.io/cheatsheets/html/plotnine.html</loc>
81-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
81+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://rstudio.github.io/cheatsheets/html/posit-team.html</loc>
85-
<lastmod>2025-08-14T22:55:01.949Z</lastmod>
85+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
8686
</url>
8787
<url>
8888
<loc>https://rstudio.github.io/cheatsheets/html/quarto.html</loc>
89-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
89+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
9090
</url>
9191
<url>
9292
<loc>https://rstudio.github.io/cheatsheets/html/rmarkdown.html</loc>
93-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
93+
<lastmod>2025-08-14T23:03:11.523Z</lastmod>
9494
</url>
9595
<url>
9696
<loc>https://rstudio.github.io/cheatsheets/html/shiny-python.html</loc>
97-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
97+
<lastmod>2025-08-14T23:03:11.524Z</lastmod>
9898
</url>
9999
<url>
100100
<loc>https://rstudio.github.io/cheatsheets/html/shinychat.html</loc>
101-
<lastmod>2025-08-14T22:55:01.950Z</lastmod>
101+
<lastmod>2025-08-14T23:03:11.524Z</lastmod>
102102
</url>
103103
<url>
104104
<loc>https://rstudio.github.io/cheatsheets/html/strings.html</loc>
105-
<lastmod>2025-08-14T22:55:01.951Z</lastmod>
105+
<lastmod>2025-08-14T23:03:11.524Z</lastmod>
106106
</url>
107107
<url>
108108
<loc>https://rstudio.github.io/cheatsheets/index.html</loc>
109-
<lastmod>2025-08-14T22:55:01.963Z</lastmod>
109+
<lastmod>2025-08-14T23:03:11.536Z</lastmod>
110110
</url>
111111
</urlset>

0 commit comments

Comments
 (0)