Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use and show R code (a map function) to find the median for each quantitative variable column of the iris data table. This is what
Use and show R code (a map function) to find the median for each quantitative variable column of the iris data table.
This is what I have so far, but I don't know if Im headed in the right direction:
library(tidyverse)
view(iris) sl <- iris$Sepal.Length sw <- iris$Sepal.Width pl <- iris$Petal.Length pw <- iris$Petal.Width
iris2 <- pmap_dbl(list(sl, sw, pl, pw), median) view(iris2)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started