is.nan.data.frame {petersenlab} | R Documentation |
NaN (Not a Number).
Description
Check whether a value is "Not A Number" (NaN
) in a dataframe.
Usage
## S3 method for class 'data.frame'
is.nan(x)
Arguments
x |
Dataframe. |
Details
[INSERT].
Value
TRUE
or FALSE
, indicating whether values in a dataframe
are Not a Number (NA
).
See Also
Other dataEvaluations:
dropColsWithAllNA()
,
dropRowsWithAllNA()
,
not_all_na()
,
not_any_na()
Examples
# 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)
[Package petersenlab version 1.0.0 Index]