I'm trying to extract rows of a dataset data using a column of values in a .csv file. I tried to do the following:
df <- data$data['rs146217251',1:486757,]
id <- c("1006573_1006573", "1008603_1008603", "1012222_1012222",...)
df[id,]
where I left the rest of the values in id out because there are 1800 values I'm trying to include in id. There's a character limit in how many values I can use doing it with id <- c("1006573_1006573", "1008603_1008603", "1012222_1012222",...), so I decided to try to import it from a .csv file instead.
How do I import the column from the .csv file into the above code so that I get a variable just like id <- c("1006573_1006573", "1008603_1008603", "1012222_1012222",...) but with all of the values I want included?
Or is there a better way of doing this?