I know that I can subset data in R if I call: data((some condition),).
However, I have a CSV file where the first entry is the condition I want to subset for. If I call
data = read.csv("data.csv") # actual data newFile = read.csv("Condition.csv") # csv file with one entry with the condition firstCondition = newFile(1,1) ## Condition subset = data(firstCondition, )
it doesn’t subset. I am realizing that firstCondition is of type “character” and this may be why it won’t subset. Does anybody have any ideas on what the issue here may be? Thanks!