HI, Dear R community,
I have a large data set names dd.txt, the columns are: there are 2402
variables.
a1, b1, ..z1, a11, b11, ...z11, a111, b111, ..z111..
IF I dont know the relative position of the columns, but I know I need the
following variables:
var<-c(a1, c1,a11,b11,f111)
Can I use read.columns to read the data into R?
I have tried the following codes, but it does not work
hh<-read.columns("/house/homedirs/c/cdu/operon/gh/dd.dimer",
required.col=NULL, text.to.search=var, sep="\t", skip=0, quote="", fill=T)
dim(hh)
468, 2402
hh<-read.columns("/house/homedirs/c/cdu/operon/gh/dd.dimer",
required.col=var, text.to.search="", sep="\t", skip=0, quote="", fill=T)
dim(hh)
0, 0
Can anyone help me with this?
Thanks,
--
Sincerely,
Changbin
--
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.