[R] where does the null come from?

(Ted Harding) Ted.Harding at manchester.ac.uk
Wed May 13 16:56:08 CEST 2009


On 13-May-09 14:43:17, Gabor Grothendieck wrote:
>> out <-   apply(m, 1, cat, '\n')
> 1 3
> 2 4
>> out
> NULL

Or, more explicitly, from ?cat :

  Value:
       None (invisible 'NULL').

Ted.

> On Wed, May 13, 2009 at 5:23 AM, Wacek Kusnierczyk
> <Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> wrote:
>> _ _m = matrix(1:4, 2)
>>
>> _ _apply(m, 1, cat, '\n')
>> _ _# 1 2
>> _ _# 3 4
>> _ _# NULL
>>
>> why the null?
>>
>> vQ
>>
>> ______________________________________________
>> 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.
>>
> 
> ______________________________________________
> 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.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 13-May-09                                       Time: 15:56:04
------------------------------ XFMail ------------------------------




More information about the R-help mailing list