Subset giving correct dataframe in R, but subsequent functions using old dataframe


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.

Canadian Web HostingAvaHost.Net Web Hosting

Product of the Month September 2016

Source link

Leave a Comment

Your email address will not be published. Required fields are marked *