diff --git a/.nojekyll b/.nojekyll index b1d5b1e4..342e60ed 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -9b0a2ea1 \ No newline at end of file +3ec7f6c3 \ No newline at end of file diff --git a/factors.pdf b/factors.pdf index 9d2bfda8..9829d9d0 100644 Binary files a/factors.pdf and b/factors.pdf differ diff --git a/html/factors.html b/html/factors.html index de15f20c..2b32280d 100644 --- a/html/factors.html +++ b/html/factors.html @@ -204,6 +204,7 @@

Factors with forcats :: Cheatsheet

The forcats package provides tools for working with factors, which are R’s data structure for categorical data.

@@ -368,7 +369,7 @@

Add or drop levels


CC BY SA Posit Software, PBC • info@posit.coposit.co

Learn more at forcats.tidyverse.org.

-

Updated: 2023-06.

+

Updated: 2024-05.

packageVersion("forcats")
diff --git a/html/factors_files/figure-html/unnamed-chunk-21-1.png b/html/factors_files/figure-html/unnamed-chunk-21-1.png index 3c857a85..e1f898b3 100644 Binary files a/html/factors_files/figure-html/unnamed-chunk-21-1.png and b/html/factors_files/figure-html/unnamed-chunk-21-1.png differ diff --git a/html/images/logo-forcats.png b/html/images/logo-forcats.png index df00f945..f189970c 100644 Binary files a/html/images/logo-forcats.png and b/html/images/logo-forcats.png differ diff --git a/index.html b/index.html index 06a19464..dc75cb45 100644 --- a/index.html +++ b/index.html @@ -214,7 +214,7 @@

Posit Cheatsheets

-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+

Hex logo for sparklyr - Neon shooting stars of various shapes and sizes flying across a black and grey background.

diff --git a/pngs/factors.png b/pngs/factors.png index 2c6cb84c..d13d0e3f 100644 Binary files a/pngs/factors.png and b/pngs/factors.png differ diff --git a/search.json b/search.json index 343b2227..e1b5ef3a 100644 --- a/search.json +++ b/search.json @@ -522,7 +522,7 @@ "href": "html/factors.html", "title": "Factors with forcats :: Cheatsheet", "section": "", - "text": "Download PDF\n\n \n\nTranslations (PDF)\n\n\nJapanese\nSpanish\nThe forcats package provides tools for working with factors, which are R’s data structure for categorical data.\nlibrary(forcats)" + "text": "Download PDF\n\n \n\nTranslations (PDF)\n\n\nJapanese\nPortuguese\nSpanish\nThe forcats package provides tools for working with factors, which are R’s data structure for categorical data.\nlibrary(forcats)" }, { "objectID": "html/factors.html#factors", @@ -564,7 +564,7 @@ "href": "html/factors.html#add-or-drop-levels", "title": "Factors with forcats :: Cheatsheet", "section": "Add or drop levels", - "text": "Add or drop levels\n\nfct_drop(f, only): Drop unused levels.\n\nf5 <- factor(c(\"a\",\"b\"),c(\"a\",\"b\",\"x\"))\nf6 <- fct_drop(f5)\n\nfct_expand(f, ...): Add levels to a factor.\n\nfct_expand(f6, \"x\")\n\nfct_na_value_to_level(f, level = \"(Missing)\"): Assigns a level to NAs to ensure they appear in plots, etc.\n\nf <- factor(c(\"a\", \"b\", NA))\nfct_na_value_to_level(f, level = \"(Missing)\")\n\n\n\nCC BY SA Posit Software, PBC • info@posit.co • posit.co\nLearn more at forcats.tidyverse.org.\nUpdated: 2023-06.\n\npackageVersion(\"forcats\")\n\n[1] '1.0.0'" + "text": "Add or drop levels\n\nfct_drop(f, only): Drop unused levels.\n\nf5 <- factor(c(\"a\",\"b\"),c(\"a\",\"b\",\"x\"))\nf6 <- fct_drop(f5)\n\nfct_expand(f, ...): Add levels to a factor.\n\nfct_expand(f6, \"x\")\n\nfct_na_value_to_level(f, level = \"(Missing)\"): Assigns a level to NAs to ensure they appear in plots, etc.\n\nf <- factor(c(\"a\", \"b\", NA))\nfct_na_value_to_level(f, level = \"(Missing)\")\n\n\n\nCC BY SA Posit Software, PBC • info@posit.co • posit.co\nLearn more at forcats.tidyverse.org.\nUpdated: 2024-05.\n\npackageVersion(\"forcats\")\n\n[1] '1.0.0'" }, { "objectID": "html/data-transformation.html", diff --git a/sitemap.xml b/sitemap.xml index 33479ead..23377d7c 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2,86 +2,86 @@ https://rstudio.github.io/cheatsheets/translations.html - 2024-05-29T04:04:41.068Z + 2024-05-29T18:06:58.381Z https://rstudio.github.io/cheatsheets/html/tidyr.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/sparklyr.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/shiny-python.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/rmarkdown.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/quarto.html - 2024-05-29T04:04:39.352Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/plumber.html - 2024-05-29T04:04:39.352Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/lubridate.html - 2024-05-29T04:04:39.352Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/factors.html - 2024-05-29T04:04:39.332Z + 2024-05-29T18:06:56.637Z https://rstudio.github.io/cheatsheets/html/data-transformation.html - 2024-05-29T04:04:39.332Z + 2024-05-29T18:06:56.637Z https://rstudio.github.io/cheatsheets/contributed-cheatsheets.html - 2024-05-29T04:04:39.264Z + 2024-05-29T18:06:56.569Z https://rstudio.github.io/cheatsheets/html/data-import.html - 2024-05-29T04:04:39.332Z + 2024-05-29T18:06:56.637Z https://rstudio.github.io/cheatsheets/html/data-visualization.html - 2024-05-29T04:04:39.332Z + 2024-05-29T18:06:56.637Z https://rstudio.github.io/cheatsheets/html/keras.html - 2024-05-29T04:04:39.352Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/package-development.html - 2024-05-29T04:04:39.352Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/purrr.html - 2024-05-29T04:04:39.352Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/reticulate.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/rstudio-ide.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/shiny.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/html/strings.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z https://rstudio.github.io/cheatsheets/index.html - 2024-05-29T04:04:39.356Z + 2024-05-29T18:06:56.661Z diff --git a/translations/portuguese/factors_pt_br.pdf b/translations/portuguese/factors_pt_br.pdf new file mode 100644 index 00000000..a2727a75 Binary files /dev/null and b/translations/portuguese/factors_pt_br.pdf differ