Learn R Programming

closeloop (version 0.1.0)

check_data: Function to check if all values are numeric in data

Description

Function to check if all values are numeric in data

Usage

check_data(df, col_names = NULL)

Value

logical

Arguments

df

A data frame contains columns that represent covariates

col_names

A numeric vector of covariates that can be binary or continuous

Author

Shubhram Pandey shubhram1992@gmail.com

Examples

Run this code
attach(exampleData)
var = c("Age","Male")
x = check_data(df = exampleData, col_names = var)
x

Run the code above in your browser using DataLab