Premium Essay

Math1280 Unit 6

Submitted By
Words 994
Pages 4
Quizzes and graded assignments in MATH1280 are NOT group projects. Please answer the questions and do not share the questions or answers with others or accept advance access to questions or answers from others.
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 freq …show more content…
3. Using only the cumulative relative frequency table printed above combined with some simple paper-and-pencil calculations, which petal length occurs most frequently?
Answer 3:
4. Describe how you determined your answer to the previous question (describe the calculations that you used). Do not show R code for this task--it will not be counted as an answer.
Answer 4:
--------------------------------------------------------------------------------------------------------
5. Assuming that you read the flowers.csv file into an R object called flower. data, run the following R code (do not paste the ">” character into R) and paste both the command and the output into your answer (you should see five names, each of which should be enclosed in quotes--if you do not see this, try again or contact your instructor):
> names (flower. data)
Answer 5:
"Sepal. Length" "Sepal. Width" "Petal. Length" "Petal. Width" "Species"
6. The number of observations in the "flower. data" data frame is ____.
Answer 6:
27 number of

Similar Documents