[R] ave(x, y, FUN=length) produces character output when x is character
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Thu Dec 25 05:19:57 CET 2014
But all numeric types in R are vectors. So although it might be a good idea to be redundant to aid beginners, the phrase "a numeric" is accurate.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
On December 24, 2014 6:49:47 PM PST, Mike Miller <mbmiller+l at gmail.com> wrote:
>On Wed, 24 Dec 2014, Mike Miller wrote:
>
>> Also, regarding the sacred text, "x A numeric." is a bit terse. The
>> same text later refers to length(x), so I suspect that "A numeric" is
>
>> short for "A numeric vector", but that might not mean "a vector of
>> 'numeric' type."
>
>
>I just realized that numeric type includes integer so that anything of
>type integer also is type numeric. I'm working on another message.
>
>Mike
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list