I need to create a subset of the variation data, I run the code and the original data is there but when I get to the subset it shows up as 0 obs. of 5 variables . I'm not sure what's wrong with my code.
^this is how it shows up after I run it
(here is the code used)
library(readr)
variationdatatemplate <- read_csv("variationdatatemplate.csv")
View(variationdatatemplate)
variationdata <- read.csv("variationdatatemplate.csv")
View(variationdata)
summary(variationdata)
str(variationdata)
Euglenadata <- subset(variationdata, Group=="Euglena1" | Group=="Euglena2")
GreylingData <- subset(variationdata, Group=="Greyling1" | Group=="Greyling2")
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: