 
Dear R-helpers,
hello
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
2    6      4       7
3  10      5       2
4    8      6       6
> nm=names(x)
> nm
[1] "V1" "V2" "V3"
 
In fact I need the variables in the original representation (i.e., as they appear in the input data file) so as to use them repeatedly (through loop statement) in regression analysis. Kindly help. 
Regards
ajss




d Now! http://messenger.yahoo.com/download.php
	[[alternative HTML version deleted]]

