Re: [R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread Nanami
it's a table; I read it from a file; I've tried to make it look prettier: > head(intra) chr miRNA start end strand ACC hsa_ID region region_start region_end chr1 miRNA 1102484 1102578 + ACC="MI342"; ID="hsa-mir-200b"; exon 1102

[R] create a new data frame after comparing two columns of the previous data frame

2011-06-27 Thread Nanami 13
gion_start and intra$end != intra$region_end. I've tried using this but I get the following error: > intra<- intra[(intra$start != intra$region_start )&&(intra$end != intra$region_end)] > head(intra) data frame with 0 columns and 6 rows Thank you, best, Nanami [[

Re: [R] extract data from a column

2011-06-19 Thread Nanami
I figured it out: x<-sub("^.*:([[:digit:]]+)..([[:digit:]]+).*", "\\1 \\2", CTSS$V4) -- View this message in context: http://r.789695.n4.nabble.com/extract-data-from-a-column-tp3609890p3610147.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] extract data from a column

2011-06-19 Thread Nanami
rks what you suggested. Thank you, Best, Nanami -- View this message in context: http://r.789695.n4.nabble.com/extract-data-from-a-column-tp3609890p3610049.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mail

[R] extract data from a column

2011-06-19 Thread Nanami 13
Hi all, I have a column that has the following format: chr1:564588..564589,+ and I want to extract only the coordinates; I have tried writing a regular expression but I couldn't figure out how I should write it. Does anyone know? Thank you, Best, Nanami [[alternative HTML ve