Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use R Console to Solve #' Below minion_d is given. Use `%>%` to answer the following questions. #' library(tidyverse) tibble( name=c(Bob,Kevin,Stuart,Jerry, Jorge), weight=c(12,25,18,21,35), height=c(80,120,94,105,95), num_eyes=c(2,2,1,2,2)

Use R Console to Solve

#' Below minion_d is given. Use `%>%` to answer the following questions.

#'

library(tidyverse)

tibble(

name=c("Bob","Kevin","Stuart","Jerry", "Jorge"),

weight=c(12,25,18,21,35),

height=c(80,120,94,105,95),

num_eyes=c(2,2,1,2,2)

) -> minion_d

# 1. Filter minion whose height is below 90.

# 2. Select height and num_eyes from minion_d

# 3. Create another column(variable) called `fav_color` which includes following information.

# Bob likes "red",

# Kevin likes "orange"

# Stuart likes "green"

# Jerry likes "yellow"

# Jorge likes "grey"

# 4. Arrange `minion_d` by height in descending order

# 5. Group minions by number of eyes and then calculate the min, mean, max of weight as well as the number of observations for each group.

#' Submit the knitted html document on Canvas. You could click `File`>`Knit Document` or simply use shortcut, `Ctrl` `Shift` `K` to knit the Rmarkdown or R scripts. You may able to see the knitted document in the same folder that this .Rmd file is located (If you've downloaded the file directly from Canvas, the .Rmd may be located in `Downloads` folder by default and thus you may want to look for the knitted document there).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

5. Describe the relationship between history and identity.

Answered: 1 week ago

Question

define EFFECTIVE PARTICIPATION

Answered: 1 week ago