Posts Tagged ‘ NA ’

The difference between “letters[c(1,NA)]” and “letters[c(NA,NA)]“

April 22, 2010
By

In David Smith’s latest blog post (which, in a sense, is a continued response to the latest public attack on R), there was a comment by Barry that caught my eye. Barry wrote: Even I get caught out on R quirks after 20 years of using it. Compare letters and letters for the most recent thing that made me...

Read more »

Replacing 0 with NA – an evergreen from the list

June 15, 2009
By
Replacing 0 with NA – an evergreen from the list

This thread from the R-help list describe an evergreen tip that, at least once, is proved useful in R practice.

Read more »

Dealing with missing values

March 8, 2009
By
Dealing with missing values

Two new quick tips from 'almost regular' contributor Jason:Handling missing values in R can be tricky. Let's say you have a table with missing values you'd like to read from disk. Reading in the table with,read.table( fileName )might fail. If ...

Read more »