Dear AJSS,
Perhaps ?noquote might be useful for you. Here is an example:

> x=c('V1','V2','V3','V4')
> x
[1] "V1" "V2" "V3" "V4"
> noquote(x)
[1] V1 V2 V3 V4

HTH,

Jorge


On Sat, Oct 18, 2008 at 3:04 PM, Amarjit Singh Sethi <set_alt@yahoo.co.in>wrote:

> Ā
> 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]]
>
>
> ______________________________________________
> R-help@r-project.org 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.
>
>

	[[alternative HTML version deleted]]

