is.nan.data.frame | R Documentation |
Check whether a value is "Not A Number" (NaN
) in a dataframe.
## S3 method for class 'data.frame'
is.nan(x)
x |
Dataframe. |
[INSERT].
TRUE
or FALSE
, indicating whether values in a dataframe
are Not a Number (NA
).
Other dataEvaluations:
dropColsWithAllNA()
,
dropRowsWithAllNA()
,
not_all_na()
,
not_any_na()
# Prepare Data
df <- data.frame(item1 = rnorm(1000), item2 = rnorm(1000), item3 = rnorm(1000))
df[sample(1:nrow(df), size = 100), c("item1","item2","item3")] <- NaN
# Calculate Missingness-Adjusted Row Sum
is.nan(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.