Categories
status

To import a SAM file or other data…

To import a SAM file or other data having “#” as data using read.table, it is necessary to change the “comment.char” option.

test.sam <- read.table('test.sam', comment.char = "")
Categories
status

Import specific columns into R using read table…

Import specific columns into R using read.table

test.import <- read.table(pipe("cut -f1,2,4 data.tab"))