[R] where does the null come from?

K. Elo maillists at nic.fi
Wed May 13 11:36:17 CEST 2009


Hi!

Wacek Kusnierczyk wrote:
>     m = matrix(1:4, 2)
> 
>     apply(m, 1, cat, '\n')
>     # 1 2
>     # 3 4
>     # NULL
> 
> why the null?

Could it be the return value of 'cat'. See ?cat, where:

---snip ---
Value
 None (invisible NULL).
---snip ---

Kind regrads,
Kimmo




More information about the R-help mailing list