Learn R Programming

surveytable (version 0.9.6)

var_not: Logical NOT

Description

Logical NOT

Usage

var_not(newvr, vr)

Value

Survey object

Arguments

newvr

name of the new variable to be created

vr

a logical variable

See Also

Other variables: var_all(), var_any(), var_case(), var_collapse(), var_copy(), var_cross(), var_cut()

Examples

Run this code
set_survey(namcs2019sv)
var_not("Private insurance not used", "PAYPRIV")

Run the code above in your browser using DataLab