r4ds/transform.qmd

39 lines
1.6 KiB
Plaintext
Raw Normal View History

# Transform {#sec-transform-intro .unnumbered}
2021-03-04 01:13:14 +08:00
```{r}
#| results: "asis"
#| echo: false
source("_common.R")
```
2021-03-04 01:13:14 +08:00
In this part of the book, you'll learn about various types of data the columns of a data frame can contain and how to transform them.
The transformations you might want to apply to a column vary depending on the type of data you're working with, for example if you have text strings you might want to extract or remove certain pieces while if you have numerical data, you might want to rescale them.
You've already learned a little about data wrangling in the previous part.
Now we'll focus on new skills for specific types of data you will frequently encounter in practice.
2021-03-04 01:13:14 +08:00
<!--# TO DO: Add a diagram? -->
This part of the book proceeds as follows:
- In @sec-tibbles, you'll learn about the variant of the data frame that we use in this book: the **tibble**.
2022-04-14 10:41:24 +08:00
You'll learn what makes them different from regular data frames, and how you can construct them "by hand".
2021-03-04 01:13:14 +08:00
- @sec-joins will give you tools for working with multiple interrelated datasets.
2021-03-04 01:13:14 +08:00
- @sec-numbers ...
- @sec-logicals ...
2021-03-04 01:13:14 +08:00
- @sec-missing-values...
- @sec-strings will give you tools for working with strings and introduce regular expressions, a powerful tool for manipulating strings.
2021-03-04 01:13:14 +08:00
- @sec-regular-expressions ...
2022-04-14 10:41:24 +08:00
- @sec-factors will introduce factors -- how R stores categorical data.
2021-03-04 01:13:14 +08:00
They are used when a variable has a fixed set of possible values, or when you want to use a non-alphabetical ordering of a string.
- @sec-dates-and-times will give you the key tools for working with dates and date-times.
2022-04-14 10:41:24 +08:00
<!-- TO DO: Add chapter descriptions -->