Skip to contents

map_value_channel() modifies the values of an interlaced vector. map_na_channel() modifies the missing reason channel of an interlaced vector.

Usage

map_value_channel(x, fn)

map_na_channel(x, fn)

Arguments

x

an interlaced vector

fn

a function that maps values or missing reasons to new values

Value

a new interlaced vector, modified according to the supplied function