Question
The file flowers.csv file contains information on measurements of the iris flowers. Create an R data frame by the name flower.data that contains
The file "flowers.csv" file contains information on measurements of the iris flowers. Create an R data frame by the name "flower.data" that contains the data in the file.
The following R code shows an example of how to round a vector of numbers to zero decimal places and then calculate some statistics using the rounded numbers. You might need some of the calculations for this assignment, but you might not need others. You would replace example$years with the name of the R object that you want to analyze (in other programming languages, you might call example$years a variable).
> x <- round(example$years, 0)
> freq <- table(x)
> rel.freq <- freq/sum(freq)
> cumsum(rel.freq)
Cumulative Frequency Table for Petal Length
Use the following table to answer tasks 2-4.
Value: | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Cumulative Relative Frequency: | .16 | .33 | .35 | .58 | .81 | .97 | 1.00 |
Tasks
1. Sometimes it is difficult to understand data if you do not know what the numbers represent. Provide short definitions of two words: sepal, and petal (be sure to cite your sources even if you paraphrase):
sepal:_____________________
petal:_____________________
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