Skip to content
Back to formatted view

Raw Message

Message-ID: <4A0A9491.5070608@nic.fi>
Date: 2009-05-13T09:36:17Z
From: K. Elo
Subject: where does the null come from?
In-Reply-To: <4A0A91AE.5040007@idi.ntnu.no>

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