Re: [R] Understanding classes in R

2013-10-01 Thread john doe
Thanks so much for your help everyone. This really helped me a lot. On Sun, Sep 29, 2013 at 11:42 PM, Barry Rowlingson < b.rowling...@lancaster.ac.uk> wrote: > On Sun, Sep 29, 2013 at 10:48 PM, john doe wrote: > > I am having trouble understanding how classes in R work. Here is a small > > re

Re: [R] Understanding classes in R

2013-09-30 Thread David Winsemius
On Sep 29, 2013, at 5:28 PM, Ista Zahn wrote: > Hi JD, > > On Sun, Sep 29, 2013 at 5:48 PM, john doe wrote: >> I am having trouble understanding how classes in R work. Here is a small >> reproducable example: >> >>> x=1 >>> class(x) >> [1] "numeric" >> >> OK. When a variable is a number, it

Re: [R] Understanding classes in R

2013-09-29 Thread Barry Rowlingson
On Sun, Sep 29, 2013 at 10:48 PM, john doe wrote: > I am having trouble understanding how classes in R work. Here is a small > reproducable example: > >> x=1 >> class(x) > [1] "numeric" > > OK. When a variable is a number, its class is "numeric". Does R have > multiple types for numbers, like C

Re: [R] Understanding classes in R

2013-09-29 Thread Ista Zahn
Hi JD, On Sun, Sep 29, 2013 at 5:48 PM, john doe wrote: > I am having trouble understanding how classes in R work. Here is a small > reproducable example: > >> x=1 >> class(x) > [1] "numeric" > > OK. When a variable is a number, its class is "numeric". Does R have > multiple types for numbers,

Re: [R] Understanding classes in R

2013-09-29 Thread David Winsemius
On Sep 29, 2013, at 2:48 PM, john doe wrote: > I am having trouble understanding how classes in R work. Here is a small > reproducable example: > >> x=1 >> class(x) > [1] "numeric" > > OK. When a variable is a number, its class is "numeric". Does R have > multiple types for numbers, like C++

Re: [R] Understanding classes in R

2013-09-29 Thread Bert Gunter
R-help is not the place for an extended tutorial the R class systems (there are in fact at least two, S3 and S4, neither of which is like C++ classes). Read the "R Language Definition" Manual that ships with R, John Chambers's books (probably the latest for S4), or search the web for tutorials (the