Displaying 2 results from an estimated 2 matches for "escores".
Did you mean:
scores
2007 Jan 23
3
Query about extracting subsets from a table
...e1 and genome2 are alphabetic.
Tree-dist and log10escore are numeric.
I wish to extract only those rows from this table
where the log10escore is less than -3.
data <-read.table(filename);
data$log10escore = data$log10escore[ data$log10escore
< -3];
I would like to use this pruned list of escores to get
the corresponding genomenames and treedist.
I did not find anything useful in the FAQs and Notes
on R for this part of the data extraction.
As I am just beginning programming in R, I would
appreciate your input about this.
Thanks
L
_____________________________________________________...
2009 Oct 03
3
getting variables based on name
I have a file like this:
a1,a2,a3,b1,b2,b3
1,2,3,4,5,6
0,1,2,3,4,5
...
In interactive command-line R, I type
data<-read.table('file.txt', sep=',', header=TRUE)
I then want to get all the columns which start with the letter a. For this
particular file, I can the type:
data[1:3]
What if i don't know that the columns that start with 'a' are columns 1-3?
Is there