Description Usage Arguments Value Note Author(s) See Also Examples
Function to display the positions of elements in a vector containing NAs, or the numbers of rows in a data frame or matrix containing one or more NAs. The function can also be used to remove NAs.
1 | where.na(x)
|
x |
name of the vector or matrix/data frame to be processed. |
whichna |
a vector containing the indices of the positions in |
This function is based on the S-Plus function which.na
and is useful in finding the location of NAs in a data set. While remove.na
removes NAs it does not identify their positions. A vector is returned that can be used to remove NAs, see example below.
Remember, a matrix is also a vector with the columns occurring sequentially.
S-Plus team and Robert G. Garrett
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.