Skip to content
Prev 36648 / 63424 Next

Generate NA of specified type

Try this:

replace(x[1][], TRUE, NA)

or

replace(x[[1]][], TRUE, NA)

depending on what you want.
On Wed, May 5, 2010 at 11:57 AM, Hadley Wickham <hadley at rice.edu> wrote: