From 1eba1fe982c50db019a9d6c3cc8f4a4112a45a0d Mon Sep 17 00:00:00 2001 From: carriewright11 Date: Tue, 9 Jan 2024 21:42:28 -0500 Subject: [PATCH] removing more about tibbles --- modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd b/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd index 17c6664ee..3d8a511fd 100644 --- a/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd +++ b/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd @@ -367,8 +367,7 @@ clean_names(test) - data frames are simpler version of a data table - tibbles are fancier `tidyverse` version -- data frames are made with `data.frames()` and `read.csv()` -- tibbles are made with `tibble()` and `read_csv()` from `readr` +- tibbles are made with `tibble()` - if your original data has rownames, you need to use `rownames_to_column` before converting to tibble - the `rename()` function of `dplyr` can help you rename columns - avoid using punctuation (except underscores), spaces, and numbers (to start or alone) in column names