cast_variables: cast_variables

View source: R/cast_variables.R

cast_variablesR Documentation

cast_variables

Description

Function to cast datasets columns if they have differing types Restricted to specific cases, currently integer and double, and character and factor

Usage

cast_variables(
  BASE,
  COMPARE,
  ignore_vars = NULL,
  cast_integers = FALSE,
  cast_factors = FALSE
)

Arguments

BASE

base dataset

COMPARE

comparison dataset

ignore_vars

Variables not to be considered for casting

cast_integers

Logical - Whether integers should be cased to double when compared to doubles

cast_factors

Logical - Whether characters should be casted to characters when compared to characters


diffdf documentation built on Sept. 30, 2024, 9:25 a.m.