s-news
[Top] [All Lists]

NA's in string vector.

To: "S-News (E-mail)" <s-news@lists.biostat.wustl.edu>
Subject: NA's in string vector.
From: Vadim Kutsyy <vkutsyy@cytokinetics.com>
Date: Thu, 6 Dec 2001 15:11:27 -0800
Is there a way to define NA's in string vector?

> a<-c("a",NA,"b")
> is.na(a)
[1] F F F
> a
[1] "a"  "NA" "b" 
> a[2]<-NA
> is.na(a)
[1] F F F

Splus converge all NA's to "NA", which make problem in data.frames.

Thanks,
===================================================================
Vadim Kutsyy, PhD                             http://www.kutsyy.com
vkutsyy@cytokinetics.com                           vadim@kutsyy.com
Statistician                                      tel. 650-624-3218
Cytokinetics, Inc                                 fax. 650-624-3010
280 East Grand Avenue
South San Francisco, CA 94080           http://www.cytokinetics.com
=================================================================== 

<Prev in Thread] Current Thread [Next in Thread>