Question

R Calculate the mean, median and IQR for sepal length for each species in the iris dataset using ...

R

Calculate the mean, median and IQR for sepal length for each species in the iris dataset using plyr
functions. Do this in a single top-level call.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

>plyr-IRISI,1 > plyr [1 5.1 4.9 4.7 4.6 5.0 5.4 4.6 5.0 4.4 4.9 5.4 4.8 4.8 4.3 5.8 5.7 5.4 5.1 [191 5.7 5.1 5.4 5.1 4.6 5.1

Add a comment
Know the answer?
Add Answer to:
R Calculate the mean, median and IQR for sepal length for each species in the iris dataset using ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • in R For the iris dataset, store the 50 sepal lengths for the 50 versicolor rises...

    in R For the iris dataset, store the 50 sepal lengths for the 50 versicolor rises in a vector x For the iris dataset, store the 50 sepal lengths for the 50 virginica irises in a vectory What are the means and the variances of x and y? The variances "seem" different. Perform Welch's t-test that is appropriate in such cases to check if the mean sepal lengths of Versicolor and Virginica irises are significantly different. What is the p-value...

  • The famous data set iris which gives the measurements in centimeters of the variables sepal length...

    The famous data set iris which gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris is available in R. Type iris directly to see what it looks like. (a) Selecting the observations (rows) whose Species are versicolor. (b) Selecting the observations whose Speices are either versicolor or virginica. (c) Selecting the observations whose Sepal.Width are greater than 2.9 but less than...

  • Samantha is studying different species of irises. During her fieldwork, she recorded the length of the...

    Samantha is studying different species of irises. During her fieldwork, she recorded the length of the sepal in millimeters of two different species, I. setosa and I. virginica. She wants to know if the two species differ in sepal length or not. Using the software tool you prefer, perform a two-sample t-test for the difference between means to decide whether the two species of irises have different sepal lengths. You may find this list of software manuals helpful in computing...

  • Calculate and interpret the z-scores using R. Using the mtcars dataset in R. To complete the...

    Calculate and interpret the z-scores using R. Using the mtcars dataset in R. To complete the assignment, follow the steps below: In the R console, type mtcars. This shows the whole dataset. Using R, calculate the mean and standard deviation for the variables: mpg, cyl, disp, hp, drat, wt, qsec, gear, carb. Using R, calculate the maximum values for the same variables in (b). Using R, calculate the z-scores for the maximum values. Interpret each z-score in (d). Is the...

  • Using the program "R", how do you find Q1, Q3, and IQR when given only mean...

    Using the program "R", how do you find Q1, Q3, and IQR when given only mean and standard deviation of a normally distributed data set? Example: Find Q1, Q3, and IQR of this normally distributed data set: (mean=80,sd=6). Use "R" to calculate your answers. Thank you so much!

  • (1 point) Using R, calculate the mode, mean, and median of the following data: 15, 999,...

    (1 point) Using R, calculate the mode, mean, and median of the following data: 15, 999, 18, 14, 18, 18, 21, 19 To calculate the mode, you will have to google for the code. It is not a built in function to R. Mode = Mean = Median = Which measure of center does not work well here? A. Mean B. Median C. Mode D. All of the above Note: You can earn partial credit on this problem.

  • Question 4) nhtemp is a built-in R dataset. The nhtemp data frame is a time series...

    Question 4) nhtemp is a built-in R dataset. The nhtemp data frame is a time series which gives the mean annual temperature in New Haven, Connecticut, from 1912 to 1970. Thus, there are 60 measurements. We are interested in some descriptive statistics related to nhtemp. We can access the data directly by using the assignment x <- nhtemp (In R use ?nhtemp for info on this dataset.) The values of nhtemp or x if defined as above are: [1] 49.9...

  • Review pages 0.3 and 0.4 in the online notes if you are not familiar with using...

    Review pages 0.3 and 0.4 in the online notes if you are not familiar with using the equation editors in Word and Canvas. 1. Use the Word Equation Editor to complete the following formulas using the correct symbols here. [10 points]    A. Sample standard deviation s= B. z score in a sample z= 2. Go to the discussion board titled “Lab Question 2” and post the formulas for a sample standard deviation and for a z score in a...

  • Data manipulation using R Download and load Most_popular_baby_name.csv to R using the following R code: library('tidyverse')...

    Data manipulation using R Download and load Most_popular_baby_name.csv to R using the following R code: library('tidyverse') baby_names <- read_csv("http://personal.stevens.edu/~fmai/data/Most_Popular_Baby_Names.csv") The file contains the counts of baby names by sex and mother's ethnicity in NYC in 2011-2014. For example, the first record indicates that in 2011, when the mother is Hispanic and the baby is female, 13 were named GERALDINE. BRTH_YR Gender ETHCTY Name Count 2011 FEMALE HISPANIC GERALDINE 13 Only analyze the dataset for the years 2012 - 2014, so...

  • Theoph is a built-in R dataset. The Theoph data frame has 132 rows and 5 columns...

    Theoph is a built-in R dataset. The Theoph data frame has 132 rows and 5 columns of data from an experiment on the pharmacokinetics of theophylline. Thus, there are 132 measurements. We are interested in some descriptive statistics related to the conc variable of Theoph. We can access the data directly by using the assignment x <- Theoph$conc (In R use ?Theoph for info on this dataset.) The values of Theoph$conc or x if defined as above are: [1] 0.74,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT