[R] Basic misunderstanding, or problem with my installation?
ggrothendieck at gmail.com
Wed Jan 1 01:51:06 CET 2014
On Tue, Dec 31, 2013 at 6:53 PM, David Parkhurst <parkhurs at imap.iu.edu> wrote:
> I've just uninstalled and then reinstalled R on my windows 7 machine.
> To test my understanding of data frames, I'm trying the following code.
> (I plan to do other things with it, if it would only work.)
> Here's the code, which seems pretty basic to me:
> nums ← c(1,2,3,4,5)
> ltrs ← c(“a”,”b”,”c”,”d”,”e”)
> df1 ← data.frame(nums,ltrs)
> Here's what happens when I try to run it:
>> nums ← c(1,2,3,4,5)
> Error: unexpected input in "nums \"
>> ltrs ← c(“a”,”b”,”c”,”d”,”e”)
> Error: unexpected input in "ltrs \"
>> df1 ← data.frame(nums,ltrs)
> Error: unexpected input in "df1 \"
> Am I really misunderstanding the basics, or is there something
> wrong with my installation?
The assignment operator is TWO characters: a less than sign
immediately followed by a minus sign. Try copying and pasting this:
x <- 3
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-help