R data()

(Data()에서 넘어옴)

1 개요[ | ]

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

2 실행예시: 적재[ | ]

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

3 실행예시: 목록조회[ | ]

data()
## Data sets in package ¡®datasets¡¯:
##
## 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 }}