get_vars: Get names from basic variables table

View source: R/get_vars.R

get_varsR Documentation

Get names from basic variables table

Description

Get names from basic variables table

Usage

get_vars(df, lang = "eng", block, what = "variables")

Arguments

df

data frame

lang

characer. Which is the language of variables selected, default "eng", other options is "chn".

block

list. The list must be length 4, with its names following: "block1","block2", "block3", "block4".

what

character. The options are including: "variables"(default),"short_chn", "short_eng"

Value

list

Examples

options(encoding = "UTF-8")
block_sel <- list(block1 ="v7",
block2="sctj",
block3 ="nyjx",
block4= c("zdl","dztlj","xtlj",
"dztlj_pt","xtlj_pt",
"pgddj","pgcyj"))

vars_set <-  get_vars(df = varsList, block = block_sel, what = "variables")


huhuaping/techme documentation built on June 16, 2024, 3:38 a.m.