R data()

1 개요

R data()
  • 데이터셋 목록을 조회하거나 적재하는 R 함수
  • (기본) 패키지별로 포함된 데이터셋 목록 출력
  • 또는 특정 데이터셋 적재(load)

2 적재

data(mtcars)
ls()
## [1] "mtcars"
data(baseball, package="plyr")
ls()
## [1] "baseball" "mtcars"

3 실행예시: 목록조회

data()
## Data sets in package 'datasets':
## data(mtcars)
ls()
## [1] "mtcars"
data(baseball, package="plyr")
ls()
## [1] "baseball" "mtcars" 
## AirPassengers           Monthly Airline Passenger Numbers 1949-1960
## BJsales                 Sales Data with Leading Indicator
... (생략)
## trees                   Girth, Height and Volume for Black Cherry Trees
## uspop                   Populations Recorded by the US Census
## volcano                 Topographic Information on Auckland's Maunga
##                         Whau Volcano
## warpbreaks              The Number of Breaks in Yarn during Weaving
## women                   Average Heights and Weights for American Women
## 
## 
## Use 'data(package = .packages(all.available = TRUE))'
## to list the data sets in all *available* packages.

4 같이 보기

5 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}