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

Wednesday, September 4, 2019

Codecademy Learn R Splitting By Character 7/10


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

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

```{r}
# load students data frame
load("students.Rda")
```

```{r}
# view the head of students
head(students)
```

```{r}
# separate the full_name column
students <- students %>% separate(full_name,c('first_name','last_name'),' ',extra='merge')
head(students)
```

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts