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

2011-06-27 Thread Nanami 13
Hi everyone, I am trying to find a way to filter a table; If I am given for example the following table: head(intra) chr miRNA start end strand ACC hsa_ID region region_start region_end gene_id transcrip_id 1 chr1 miRNA 1102484 1102578 + ACC=MI342;

[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 version