[R] representing NULL values in a vector

2010-09-06 Thread raje...@cse.iitm.ac.in
Hi, I have a vector who contents should look like this, c d NULL e f etc or 4 5 6 NULL 7 8 9 how can I represent the null value? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] representing NULL values in a vector

2010-09-06 Thread Patrick Burns
Perhaps you mean NA rather than NULL. If NA is not what you want, then I think you'll need to explain your application. On 06/09/2010 06:00, raje...@cse.iitm.ac.in wrote: Hi, I have a vector who contents should look like this, c d NULL e f etc or 4 5 6 NULL 7 8 9 how can I represent the

Re: [R] representing NULL values in a vector

2010-09-06 Thread Jim Lemon
On 09/06/2010 03:00 PM, raje...@cse.iitm.ac.in wrote: Hi, I have a vector who contents should look like this, c d NULL e f etc or 4 5 6 NULL 7 8 9 how can I represent the null value? Hi rajesh, For character vectors, will probably suffice, but for numbers, you are probably stuck with NA.

Re: [R] representing NULL values in a vector

2010-09-06 Thread Duncan Murdoch
On 06/09/2010 1:00 AM, raje...@cse.iitm.ac.in wrote: Hi, I have a vector who contents should look like this, c d NULL e f etc or 4 5 6 NULL 7 8 9 how can I represent the null value? As others have said, you probably want NA rather than NULL. If you really want NULL, then use a list (a

Re: [R] representing NULL values in a vector

2010-09-06 Thread raje...@cse.iitm.ac.in
NA is good.thanks - Original Message - From: Patrick Burns pbu...@pburns.seanet.com To: r-help@r-project.org, raje...@cse.iitm.ac.in Sent: Mon, 06 Sep 2010 13:55:34 +0530 (IST) Subject: Re: [R] representing NULL values in a vector Perhaps you mean NA rather than NULL. If NA is not what