Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, October 22, 2013

In R, how do you neglect elements with an assigned value NA in a vector when it is used in someFunction?


Answer:

//use
help(someFunc)

//if someFunc has the provision, na.rm = FALSE, then

someFunc(someVector, na.rm = TRUE)

//this will neglect the elements in the vector someVector with NA values

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts