Re: [R] Concatenate a Variable

2008-02-01 Thread John Kane
R is treating tablea[,1] as a factor. Try converting it to character. --- Carla Rebelo <[EMAIL PROTECTED]> wrote: > Good morning! > > I do not speak English very well and so I will try > to explain the best I > can. I have this: > > > tabela[,1] > [1] a a b b a c b a c c c c c > Levels: a b

Re: [R] Concatenate a Variable

2008-02-01 Thread Peter Dalgaard
Carla Rebelo wrote: > Good morning! > > I do not speak English very well and so I will try to explain the best I > can. I have this: > > > tabela[,1] > [1] a a b b a c b a c c c c c > Levels: a b c > > >unique(tabela[,1]) > [1] a b c > Levels: a b c > > >var<-unique(tabela[,1])[1] > > > var >

Re: [R] Concatenate a Variable

2008-02-01 Thread Marc Schwartz
Carla Rebelo wrote: > Good morning! > > I do not speak English very well and so I will try to explain the best I > can. I have this: > > > tabela[,1] > [1] a a b b a c b a c c c c c > Levels: a b c > > >unique(tabela[,1]) > [1] a b c > Levels: a b c > > >var<-unique(tabela[,1])[1] > > > v

Re: [R] Concatenate a Variable

2008-02-01 Thread Jorge Iván Vélez
Hi Carla, Try paste("VAR: ",a,sep="") Jorge On 2/1/08, Carla Rebelo <[EMAIL PROTECTED]> wrote: > > Good morning! > > I do not speak English very well and so I will try to explain the best I > can. I have this: > > > tabela[,1] > [1] a a b b a c b a c c c c c > Levels: a b c > > >unique(tabela[

[R] Concatenate a Variable

2008-02-01 Thread Carla Rebelo
Good morning! I do not speak English very well and so I will try to explain the best I can. I have this: > tabela[,1] [1] a a b b a c b a c c c c c Levels: a b c >unique(tabela[,1]) [1] a b c Levels: a b c >var<-unique(tabela[,1])[1] > var [1] a Levels: a b c But if I concatenate like th