Entering edit mode
Changbin Du
▴
30
@changbin-du-4719
Last seen 10.3 years ago
Dear Bioconductor community,
I am using your read.columns to read some columns into R, I found the
> following problems, can you help me?
>
> 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
>
> Thanks so much!
>
>
>
>
--
Sincerely,
Changbin
--
Changbin Du
DOE Joint Genome Institute
Bldg 400 Rm 457
2800 Mitchell Dr
Walnut Creet, CA 94598
Phone: 925-927-2856
[[alternative HTML version deleted]]