getwklips {tidyklips}R Documentation

‘getwklips()’ is used to obtain data.frame for KLIPS (career data)

Description

‘getwklips()’ is used to obtain data.frame for KLIPS (career data)

Usage

getwklips(
  path,
  datatype = c("stata", "spss", "sas", "xlsx"),
  klipsvars = c("jobseq", "jobtype"),
  outvars = c("jobseq", "jobtype")
)

Arguments

path

A string vector specifying folder containing KLIPS career data

datatype

A string vector specifying the format of the raw data you want to convert to a data frame ("spss", "sas", "stata", "excel")

klipsvars

A string vector specifying the variables in the raw data that you want to convert to a data frame ("jobseq", "jobtype")

outvars

A string vector specifying the variable names of converted data ("jobseq", "jobtype")

Value

A data frame containing klips household member data with the specified years and variables.

Examples


path <- system.file("extdata", package = "tidyklips")
df <- getwklips(path = path, datatype = "stata")
df %>%
  dplyr::group_by(jobseq) %>%
  dplyr::summarise(count = dplyr::n()) %>%
  dplyr::mutate(proportion = count / sum(count))



[Package tidyklips version 0.3.0 Index]