Search Header Logo

DAA_11_Dplyr-Tidyr

Authored by Alfonso Gar

Biology, Science

University

Used 4+ times

DAA_11_Dplyr-Tidyr
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A package with easy tools for the most common data manipulation tasks.

The package includes some commands named as verbs that coincide with the most common actions over data:

select(): subset columns.

filter(): subset rows on conditions.

mutate(): create new columns by using information from other columns.

group_by() and summarize(): create summary statisitcs on grouped data.

arrange(): order rows.

ggplot2

dplyr

tidyr

magrittr

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A package with the functions to convert from long to wide format and viceversa: pivot_longer() and pivot_wider()

ggplot2

dplyr

tidyr

magrittr

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The next code:

iris %>%

group_by(Species) %>%

summarise(Mean.Petal.Length = mean(Petal.Length))

Is using the Tidyverse notation.

Will create a vector with the species of iris.

Do not need any library from R.

Gives an error.

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The next code:

iris %>%

group_by(Species) %>%

summarise(Mean.Petal.Length = mean(Petal.Length))

Creates a matrix

Will create a dataframe with three rows.

Do not need any library from R.

Gives an error.

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The next code will give:

iris %>%

pivot_longer(-Species)

A tibble dataframe with two columns.

A tibble dataframe with three columns.

A tibble dataframe with four columns.

A tibble dataframe with five columns.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Biology