Skip to content
Back to formatted view

Raw Message

Message-ID: <1352208103052-4648553.post@n4.nabble.com>
Date: 2012-11-06T13:21:43Z
From: Raji
Subject: Column names containing ` in R

Hi,

My data has column names which has ` character. For example , 
*> names(dataframe)
[1] "`region"    "farmsize`"  "farmincome" "maincrop"   "claimvalue"*

If i use these objects in my function, the following error is thrown.

*lmm<-lm(``region`~farmincome)
Error: attempt to use zero-length variable name*

Is there a way, say an escape sequence or something similar in which we can
give these objects with the colnames to R functions?

Thanks in advance.

Regards,
Raji




--
View this message in context: http://r.789695.n4.nabble.com/Column-names-containing-in-R-tp4648553.html
Sent from the R help mailing list archive at Nabble.com.