check_column_classes: Check column class equality across two data frames

View source: R/check_colum_classes.R

check_column_classesR Documentation

Check column class equality across two data frames

Description

A function to check that columns named the same across two data frames have the same classes. To be used before merging two data frames to ensure that the columns with the same names will merge cleanly.

Usage

check_column_classes(dataframe1 = survey, dataframe2 = appts)

Arguments

dataframe1

A data frame.

dataframe2

Another data frame.

Value

A data frame with columns for each data frame and rows for each column in the data frames that has unequal column classes. The observations indicate the column classes in each data frame.


CCMH-PSU/CCMHr documentation built on Jan. 31, 2024, 1:08 a.m.