Skip to contents

이 함수는 제공된 매개변수를 기반으로 KOSIS 설명 데이터를 검색합니다.

Usage

get_kosis_explanation(
  stat_id = NULL,
  api_key = Sys.getenv("KOSIS_API_KEY"),
  verbose = FALSE,
  ...
)

Arguments

stat_id

character. 통계 ID.

api_key

character. KOSIS API 키. 기본값은 환경변수 "KOSIS_API_KEY"에서 가져옴.

verbose

logical. TRUE로 설정하면 추가 정보를 출력. 기본값은 FALSE.

Value

data.frame. KOSIS 설명 데이터가 포함된 데이터프레임 객체.

Examples

# \donttest{
# Example parameters
stat_id <- "1968005"
get_kosis_explanation(stat_id = stat_id)
#> $err
#> [1] "10"
#> 
#> $errMsg
#> [1] "인증KEY값이 누락되었습니다."
#> 
# }