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 anon.r.u...@gmail.com wrote: I am having trouble understanding how classes in R work. Here

Re: [R] Understanding classes in R

2013-09-30 Thread Barry Rowlingson
On Sun, Sep 29, 2013 at 10:48 PM, john doe anon.r.u...@gmail.com 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

[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

Re: [R] Understanding classes in R

2013-09-29 Thread Bert Gunter
(there are many). Online Help is terse, but perhaps useful: ?UseMethod ## S3 classes ?setMethod ?Methods ## for S4 classes Cheers, Bert On Sun, Sep 29, 2013 at 2:48 PM, john doe anon.r.u...@gmail.com wrote: I am having trouble understanding how classes in R work. Here is a small reproducable

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++ (eg integer

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 anon.r.u...@gmail.com 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