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.

[R] Understanding classes in R

2013-09-29 Thread john doe
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++ (eg integer, float, double). If so, where can I see a list, a