| var_cross | R Documentation |
Create a new variable which is an interaction of two other variables. Also
see tab_cross().
var_cross(newvr, vr, vrby)
newvr |
name of the new variable to be created |
vr |
first variable |
vrby |
second variable |
Survey object
Other variables:
var_all(),
var_any(),
var_case(),
var_collapse(),
var_copy(),
var_cut(),
var_not()
set_survey(namcs2019sv)
var_cross("Age x Sex", "AGER", "SEX")
tab("Age x Sex")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.