Skip to content
Prev 300363 / 398503 Next

How to use a text in an object of class character position to create a vector with the text as name

On Tue, Jul 17, 2012 at 10:55 AM, Sarah Goslee <sarah.goslee at gmail.com> wrote:
I know Sarah knows this, but just for archive completeness: backticks.

`cat or dog` <- 3

cat or dog # Error

`cat or dog` # 3

Of course, this allows such insanity as

`4` <- 15

which is somewhat peculiar.

I still second the advice to use legal R names and uses underscores
where spaces might be desired.

raw_data <- 3

etc.

Best,
Michael