Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, September 4, 2019

Codecademy Learn R Diagnose the Data 2/10


#Sample Solution
---
title: "Data Cleaning in R"
output: html_notebook
---

```{r message=FALSE, warning=FALSE}
# load libraries
library(readr)
library(dplyr)
```

```{r message=FALSE}
# read CSVs
grocery_1 <- read_csv('grocery_1.csv')
grocery_2 <- read_csv('grocery_2.csv')
```

```{r}
# inspect data frames
head(grocery_1)
head(grocery_2)
summary(grocery_1)
summary(grocery_2)
colnames(grocery_1)
colnames(grocery_2)
```

```{r}
# clean data frame
clean_data_frame <- 2
```

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts