fct_levels_from_vector: Copy level of factors between dataframes

fct_levels_from_vectorR Documentation

Copy level of factors between dataframes

Description

Based on the prefix numbers, otherwise don't work.

Usage

fct_levels_from_vector(data_to, data_from, var)

Arguments

data_to

Data with the variable with levels to change.

data_from

Data with the variable with good levels

var

The variable : must exist on both df.

Value

A factor.


tabxplor documentation built on April 3, 2025, 8:56 p.m.