Learn R Programming

icd (version 3.3)

refactor_worker: Re-generate a factor with new levels, without doing string matching

Description

This is called by an R wrapper. There is an na.rm version, too.

Usage

refactor_worker(x, new_levels, exclude_na)

refactor_narm_worker(x, new_levels)

Arguments

Functions

  • refactor_narm_worker: Drop all `NA` values from levels and values