knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(ggplot2)
library(dplyr) 
library(xtable)

Data wrangling is one term for working with data to get it into a format that can be used for proper analysis.

Data wrangling can mean importing data, cleaning data, merging different datsets, and creating new variables and new data sets based on transformation of existing datasets.

In R what sociologists usually call a dataset is usually stared in a format called a dataframe.

Saving data

Loading data

Importing data

Reading data from a Google sheet

Merging data sets

merge
join

Adding a variable

Type your text here.

#type your code here


lehmansociology/lehmansociology documentation built on May 21, 2022, 9:06 p.m.