You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reading.Rmd
+32-12Lines changed: 32 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -346,7 +346,8 @@ above, R assigns each column a name of `X1, X2, X3, X4, X5, X6`.
346
346
It is best to rename your columns to help differentiate between them
347
347
(e.g., `X1, X2`, etc., are not very descriptive names and will make it more confusing as
348
348
you code). To rename your columns, you can use the `rename` function
349
-
\index{rename} from the `dplyr` \index{dplyr} package (one of the packages
349
+
\index{rename} from [the `dplyr` R package](https://dplyr.tidyverse.org/)[@dplyr]
350
+
\index{dplyr} (one of the packages
350
351
loaded with `tidyverse`, so we don't need to load it separately). The first
351
352
argument is the data set, and in the subsequent arguments you
352
353
write `new_name = old_name` for the selected variables to
@@ -1225,14 +1226,33 @@ please follow the instructions for computer setup needed to run the worksheets
1225
1226
found in Chapter \@ref(move-to-your-own-machine).
1226
1227
1227
1228
## Additional resources
1228
-
- The [`readr` page on the Tidyverse website](https://readr.tidyverse.org/) is where you should look if you want to learn more about the functions in this chapter, the full set of arguments you can use, and other related functions. The site also provides a very nice cheat sheet that summarizes many of the data wrangling functions from this chapter.
1229
-
- Sometimes you might run into data in such poor shape that none of the reading functions we cover in this chapter works. In that case, you can consult the [data import chapter](https://r4ds.had.co.nz/data-import.html) from [R for Data Science](https://r4ds.had.co.nz/), which goes into a lot more detail about how R parses text from files into data frames.
1230
-
- The documentation for many of the reading functions we cover in this chapter can be found [on the Tidyverse website](https://readr.tidyverse.org/reference/read_delim.html). This site shows you the full set of arguments available for each function.
1231
-
- The [`here` package](https://cran.r-project.org/web/packages/here/index.html) provides a way for you to construct or find your files' paths.
1232
-
- The [`readxl` documentation](https://readxl.tidyverse.org/) provides more details on reading data from Excel, such as reading in data with multiple sheets, or specifying the cells to read in.
1233
-
- The [`rio` package](https://github.com/leeper/rio) provides an alternative set of tools for reading and writing data in R. It aims to be a "Swissarmyknife" for data reading/writing/converting, and supports a wide variety of data types (including data formats generated by other statistical software like SPSS and SAS).
1234
-
- This [video](https://www.youtube.com/embed/ephId3mYu9o) from the [Udacity course "LinuxCommandLineBasics"](https://www.udacity.com/course/linux-command-line-basics--ud595) provides a good explanation of absolute versus relative paths.
1235
-
- If you read the subsection on obtaining data from the web via scraping and APIs, we provide two companion tutorial video links:
1236
-
- [A brief video tutorial](https://www.youtube.com/embed/YdIWI6K64zo) on using the SelectorGadget tool to obtain desired CSS selectors for extracting the price and size data for apartment listings on Craigslist
1237
-
- [Another brief video tutorial](https://www.youtube.com/embed/O9HKbdhqYzk) on using the SelectorGadget tool to obtain desired CSS selectors for extracting Canadian city names and 2016 census populations from Wikipedia
1238
-
- The [`polite` package](https://cran.r-project.org/web/packages/polite/index.html) provides a set of tools for responsibly scraping data from websites.
1229
+
- The [`readr` documentation](https://readr.tidyverse.org/)
1230
+
provides the documentation for many of the reading functions we cover in this chapter.
1231
+
It is where you should look if you want to learn more about the functions in this
1232
+
chapter, the full set of arguments you can use, and other related functions.
1233
+
The site also provides a very nice cheat sheet that summarizes many of the data
1234
+
wrangling functions from this chapter.
1235
+
- Sometimes you might run into data in such poor shape that none of the reading
1236
+
functions we cover in this chapter work. In that case, you can consult the
1237
+
[data import chapter](https://r4ds.had.co.nz/data-import.html) from *R for Data
1238
+
Science* [@wickham2016r], which goes into a lot more detail about how R parses
1239
+
text from files into data frames.
1240
+
- The [`here` R package](https://here.r-lib.org/) [@here]
1241
+
provides a way for you to construct or find your files' paths.
1242
+
- The [`readxl` documentation](https://readxl.tidyverse.org/) provides more
1243
+
details on reading data from Excel, such as reading in data with multiple
1244
+
sheets, or specifying the cells to read in.
1245
+
- The [`rio` R package](https://github.com/leeper/rio) [@rio] provides an alternative
1246
+
set of tools for reading and writing data in R. It aims to be a "Swissarmy
1247
+
knife" for data reading/writing/converting, and supports a wide variety of data
1248
+
types (including data formats generated by other statistical software like SPSS
1249
+
and SAS).
1250
+
- A [video](https://www.youtube.com/embed/ephId3mYu9o) from the Udacity
1251
+
course *Linux Command Line Basics* provides a good explanation of absolute versus relative paths.
1252
+
- If you read the subsection on obtaining data from the web via scraping and
1253
+
APIs, we provide two companion tutorial video links for how to use the
1254
+
SelectorGadget tool to obtain desired CSS selectors for:
1255
+
- [extracting the price and size data for apartment listings on Craigslist](https://dmi3kno.github.io/polite/)
1256
+
- [extracting Canadian city names and 2016 census populations from Wikipedia](https://www.youtube.com/embed/O9HKbdhqYzk)
1257
+
- The [`polite` R package](https://dmi3kno.github.io/polite/) [@polite] provides
1258
+
a set of tools for responsibly scraping data from websites.
0 commit comments