Re: [R] as.matrix strangeness

From: Ista Zahn <izahn_at_psych.rochester.edu>
Date: Fri, 15 Apr 2011 10:17:59 -0400

Hi Michael,
It helps to look at the "Usage" section of the help pages. There you will see that matrix() has an ncol argument, but as.matrix() does not.

Best,
Ista

On Fri, Apr 15, 2011 at 7:08 AM, Michael Bach <phaebz_at_gmail.com> wrote:
> Hi Adrian,
>
> thanks for the hint.  The problem was that it showed me help for matrix
> when I did ?as.matrix.  I thought it was some kind of convention that
> data type conversion functions start with "as.", so now I will take more
> care in the future.
>
> With matrix() it works as expected, thanks again.
>
> Michael
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> 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.
>

-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org

______________________________________________
R-help_at_r-project.org mailing list
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.
Received on Fri 15 Apr 2011 - 14:22:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Apr 2011 - 15:10:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive