Re: [R] Numeric class and sasxport.get

2009-02-05 Thread Sebastien Bihorel
Ok, just so as I get that straight, is the 'labelled' class something that you created in your package or a readily available class in base R? *Sebastien Bihorel, PharmD, PhD* PKPD Scientist Cognigen Corp Email: sebastien.biho...@cognigencorp.com mailto:sebastien.biho...@cognigencorp.com

Re: [R] Numeric class and sasxport.get

2009-02-05 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: Ok, just so as I get that straight, is the 'labelled' class something that you created in your package or a readily available class in base R? It's something we added for the Hmisc package. Signing off, Frank *Sebastien Bihorel, PharmD, PhD* PKPD Scientist Cognigen

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Sebastien Bihorel
Thanks a lot Frank, One last question, though. I was tempted to remove all attributes of my variables after the sasxport.get call using foo - sasxport.get(...) foo - as.data.frame(lapply(unclass(foo),as.vector)) Since I never worked with the objects of class 'labeled', I was wondering what I

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: Thanks a lot Frank, One last question, though. I was tempted to remove all attributes of my variables after the sasxport.get call using foo - sasxport.get(...) foo - as.data.frame(lapply(unclass(foo),as.vector)) Since I never worked with the objects of class

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Sebastien Bihorel
I also realized the flaw after testing the script on various datasets... Following up on your last note: 1- Is that the reason why the class of integer and regular numeric variable is solely labelled following sasxport.get? 2- Can class be 'soft' for other 'kind' of variables? 3- Would you

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: I also realized the flaw after testing the script on various datasets... Following up on your last note: 1- Is that the reason why the class of integer and regular numeric variable is solely labelled following sasxport.get? Yes. R gurus might correct me but just

Re: [R] Numeric class and sasxport.get

2009-02-03 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: Dear R-users, The sasxport.get function (from the Hmisc package) automatically defines the class of imported variables. I have noticed that the class of theoretically numeric variables is simply labelled, although character variables might end up been defined as

Re: [R] Numeric class and sasxport.get

2009-02-03 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: Frank, It is a non existing issue for me if the variables of class labelled (and only labelled) can only be numerical variables (integer or numeric). Sebastien 'labelled' can apply to any type of vector. I'm not clear on the problem this causes you. Please

Re: [R] Numeric class and sasxport.get

2009-02-03 Thread Sebastien Bihorel
Frank, It is a non existing issue for me if the variables of class labelled (and only labelled) can only be numerical variables (integer or numeric). Sebastien Frank E Harrell Jr wrote: Sebastien Bihorel wrote: Dear R-users, The sasxport.get function (from the Hmisc package) automatically