Learn R Programming

CohortGenerator (version 1.0.1)

isFormattedForDatabaseUpload: Is the data.frame formatted for uploading to a database?

Description

This function is used to check a data.frame to ensure all column names are in snake case format.

Usage

isFormattedForDatabaseUpload(x, warn = TRUE)

Value

Returns TRUE if all columns are snake case format. If warn == TRUE, the function will emit a warning on the column names that are not in snake case format.

Arguments

x

A data frame

warn

When TRUE, display a warning of any columns are not in snake case format