#Sample Solution
---
title: "Data Cleaning in R"
output: html_notebook
---
```{r message=FALSE, warning=FALSE}
# load libraries
library(dplyr)
```
```{r}
# load students data frame
load("students.Rda")
```
```{r}
# print structure of students
str(students)
```
```{r}
# mean of age column
students %>% summarise(mean_score = mean(score))
# warning: argument is not numeric or logical
```
No comments:
Post a Comment