What is incorrect about the following code?
TotalCnt<- sum(subset(Dataset,Group=="Test")$Fall_2016_Fall,na.rm=TRUE)
It shows up as 0L
.
I think the following code is working though:
TotalMN <- mean(subset(Dataset,Group=="Test")$Fall_2016_Fall,na.rm=TRUE)
Maybe it is a matter of rm = TRUE
should not be in the summation?
Also, I will next be subsetting by two conditions moving forward, so I would place &
after my Group == "Test"
? So I would say something like the following:
TotalCnt<- sum(subset(Dataset,Group=="Test"&Group2=="XYZ")$Fall_2016_Fall,na.rm=TRUE)
Would that work?