conform_data_frame: Arranges the columns of one data.frame to another

View source: R/utilities.R

conform_data_frameR Documentation

Arranges the columns of one data.frame to another

Description

This function is primarily used to add data to the FacileDataSet's SQLite database. x is new data to add, and to is the a table of the form that is expected in the database. We check that the columns of x are a superset of columns in x and the matching columns are all of the same class.

Usage

conform_data_frame(x, to)

Arguments

x

a data.frame that needs to be checked and conformed

to

the prototype data.frame that x needs to be aligned against.

Value

the tibble version of x that is arranged to look like to.


facileverse/FacileData documentation built on Feb. 24, 2024, 7:59 a.m.