Please excuse my imprecise terminology. For example, I split a dataframe into subsets that I wanted, but according to Rstudio, but my result is a list. I am confused by the terms, so I am having trouble searching in SO for answers.
My question is how do you apply a function to remove outliers from subsets in a list? My data in a dataframe (see2):
Id <- c(5,34,55,84,105,134,155,5,34,55,84,5,34,55,84,105,134,155,184,5,34,55,84,105,134, 155,184)
A <- c(230185,1472449,870581,269359,527566,937805,1361685,209868,282024,244880,228502, 129072,143122,89994,106535,108124,97962,75841,97366,96382,64324,66834,60787,79516,92829,120894,62763)
I used this code to split the data into subsets with 5 as the identifier break.
df <- data.frame(Id, A)
see2 <- df[c(1, seq(3, nrow(df), 3)),]
see2[,1] == "5"
result <- split(see2, cumsum(see2[,1]=="5"))
Using see2$'1' as an example, I would like to test each set see2$'#' for outliers. How do I do that? Thank you very much for your help.