I am subsetting a large dataframe into a smaller one in R which works fine.
$ExampBio<-read.delim(“ExampBio.txt”, header=TRUE, sep =”t”)
$ExBio9<-subset(ExampBio, Experiment %in% c(“9”))
I double click ExBio9 in the environment box and see the correct subset dataframe, but I’m having trouble making a boxplot from the subset dataframe and when I go to check the levels for “ExBio9” it returns all the levels in the original dataframe (boxplot is also using the old dataframe although I’ve specified “ExBio9”). Any help is appreciated.