Learn R Programming

tabxplor (version 1.1.0)

fct_levels_from_vector: 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.