Skip to Main Content

DPDS Social Sciences Workshop Resources


Email this link:

Starting with Data

Objectives:

1. Describe what a data frame is.
2. Load external data from a .csv file into a data frame.
3. Summarize the contents of a data frame.
4. Subset values from data frames.
5. Describe the difference between a factor and a string.
6. Convert between strings and factors.
7. Reorder and rename factors.
8. Change how character strings are handled in a data frame.
9. Examine and change date formats.

Key Points:

1. Use read_csv to read tabular data in R.
2. Use factors to represent categorical data in R.

Recommended Guides

Online Tutorials

Recommended Books