knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

koweps

한국복지패널 조사(Korea Welfare Panel Study) 데이터 패키지

Installation

# install.packages("remotes")
remotes::install_github("youngwoos/koweps")

Example

library(koweps)
str(welfare, list.len = 20)

library(dplyr)
welfare %>%
  select(1:10)
# 연령 및 성별 인구 밀도
welfare <- welfare %>%
  mutate(sex = ifelse(h12_g3 == 1, "Male", "Female"),
         age = 2017 - h12_g4)

library(ggplot2)
ggplot(welfare, aes(x = age, fill = sex)) + 
  geom_density(alpha = 0.3)


youngwoos/koweps documentation built on May 23, 2019, 7:20 a.m.