check for nan values in r code example
Example: check for nan in r list
# is.na() can handle lists
# is.nan() can handle only one variable at a time
is.na(NaN)
# TRUE
is.na(NA)
# TRUE
# is.na() can handle lists
# is.nan() can handle only one variable at a time
is.na(NaN)
# TRUE
is.na(NA)
# TRUE