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: source/reading.Rmd
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -42,31 +42,31 @@ tied well before going for a run so that you don’t trip later on!
42
42
## Chapter learning objectives
43
43
By the end of the chapter, readers will be able to do the following:
44
44
45
-
- Define the following:
45
+
- Define the types of path and use them to locate files:
46
46
- absolute file path
47
47
- relative file path
48
-
-**U**niform **R**esource **L**ocator (URL)
49
-
- Read data into R using a relative path and a URL.
50
-
- Compare and contrast the following functions:
48
+
- Uniform Resource Locator (URL)
49
+
- Read data into R from various types of path using:
51
50
-`read_csv`
52
51
-`read_tsv`
53
52
-`read_csv2`
54
53
-`read_delim`
55
54
-`read_excel`
56
-
- Match the following `tidyverse``read_*` function arguments to their descriptions:
57
-
-`file`
55
+
- Compare and contrast the `read_*` functions.
56
+
- Describe when to use the following `read_*` function arguments:
57
+
-`skip`
58
58
-`delim`
59
59
-`col_names`
60
-
-`skip`
61
60
- Choose the appropriate `tidyverse``read_*` function and function arguments to load a given plain text tabular data set into R.
62
61
- Use the `rename` function to rename columns in a data frame.
63
-
- Use `readxl` package's `read_excel` function and arguments to load a sheet from an excel file into R.
64
-
- Connect to a database using the `DBI` package's `dbConnect` function.
65
-
- List the tables in a database using the `DBI` package's `dbListTables` function.
66
-
- Create a reference to a database table that is queriable using the `tbl` from the `dbplyr` package.
67
-
- Retrieve data from a database query and bring it into R using the `collect` function from the `dbplyr` package.
62
+
- Use `read_excel` function and arguments to load a sheet from an excel file into R.
63
+
- Work with databases using functions from `dbplyr` and `DBI`:
64
+
- Connect to a database with `dbConnect`.
65
+
- List tables in the database with `dbListTables`.
66
+
- Create a reference to a database table with `tbl`.
67
+
- Bring data from a database into R using `collect`.
68
68
- Use `write_csv` to save a data frame to a `.csv` file.
69
-
- (*Optional*) Obtain data using **a**pplication **p**rogramming **i**nterfaces (APIs) and web scraping.
69
+
- (*Optional*) Obtain data from the web using scraping and application programming interfaces (APIs):
70
70
- Read HTML source code from a URL using the `rvest` package.
71
71
- Read data from the NASA "Astronomy Picture of the Day" API using the `httr2` package.
72
72
- Compare downloading tabular data from a plain text file (e.g., `.csv`), accessing data from an API, and scraping the HTML source code from a website.
0 commit comments