Learn R Programming

healthcareai (version 1.2.4)

isNumeric: Check if a data frame only has numeric columns.

Description

Check if a dataframe only has numeric columns

Usage

isNumeric(df)

Arguments

df

A dataframe

Value

A boolean

References

http://healthcare.ai

See Also

healthcareai

Examples

Run this code
# NOT RUN {
df <- data.frame(a=c(1,2,3),
                 b=c(NA,3,2))
isNumeric(df)
# }

Run the code above in your browser using DataLab