| To: | 'Sundar Dorai-Raj' <sundar.dorai-raj@pdf.com>, Stephen Lake <slake@hsph.harvard.edu> |
|---|---|
| Subject: | Re: NA assignment for character vector |
| From: | "Gezmu, Misrak (NIH/NIAID)" <MGEZMU@niaid.nih.gov> |
| Date: | Tue, 25 Feb 2003 15:54:25 -0500 |
| Cc: | Splus Users Group <s-news@lists.biostat.wustl.edu> |
|
The is.na function is not doing its job. Until S-Plus fixes the problem, here is my suggestion.
try<-c("a","b","c","NA","e")
-----Original Message-----
Stephen Lake wrote:
From ?is.na: REQUIRED ARGUMENTS:
WARNING:
You should use == "NA" if x is character. As in: > vec <- letters[1:5]
--------------------------------------------------------------------
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | objcopy - keeping the original time stamp?, Pete Meyer |
|---|---|
| Next by Date: | Interfacing C with Splus, Steve Su |
| Previous by Thread: | Re: NA assignment for character vector, David Brahm |
| Next by Thread: | Re: NA assignment for character vector, ripley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |