[R] Getting names of variables without quotes

Dieter Menne dieter.menne at menne-biomed.de
Sat Oct 18 21:31:36 CEST 2008


Amarjit Singh Sethi <set_alt <at> yahoo.co.in> writes:

> I am seeking your help in somehow getting names of variables without quotes
(" ").
> Let us say, we have a table with 3 variables V1, V2 and V3. After the table
is read, I get names of the
> variables (thro' the following code) as under quotes (like "V1" rather than
the original
> representation V1)
>  
>  x=read.table("sample.txt",header=T,sep="\t")
> > x
>     V1    V2    V3
> 1  15     10      4

Please re-upload your problem without using HTML mail, at least for me it is not
readable.

Dieter



More information about the R-help mailing list