Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

replaceCharWithNumeric

Transform character vectors into indices


Description

When a user supplies character strings to subset a cube, we need to translate it into a numeric index to subset the cube. This function does that as well as some error checking. It is broken out for testing.

Usage

replaceCharWithNumeric(cat_names, idx, visible = TRUE)

Arguments

cat_names

The category names for a given dimension

idx

The index

visible

whether or not a category is visible to the user


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.