#Sample Solution
---
title: "Introduction to Data Frames in R"
output: html_notebook
---
```{r message=FALSE, warning=FALSE}
# load libraries
library(readr)
library(dplyr)
```
```{r message=FALSE}
# load data frame
artists <- read_csv('artists.csv')
```
```{r}
# select one column
artist_groups <- artists %>% select(group)
artist_groups
```
```{r}
# select multiple columns
group_info <- artists %>% select(group, spotify_monthly_listeners, year_founded)
group_info
```
No comments:
Post a Comment