Mark Yourself Question
A file assay.csv has two columns, group and value. It contains seven data rows:
group
value
A
12.4
15.0
13.1
B
9.8
11.2
10.5
-999
The instrument that produced the file writes -999 whenever a reading failed. A student runs d <- read.csv("assay.csv") and immediately computes group means.
Answer all five parts.
Unlock full course notes by signing up
Working with Data in R: difficulty 3
In an R session a student runs
x <- factor(c("10", "20", "5", "20", "10")) sum(as.numeric(x))
Report the value that the second line prints. Give a whole number.