"R data()"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 11개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;R data()
;R data()
* 데이터셋 목록을 조회하는 R 함수
* 특정 데이터셋을 적재(load)하거나, 가용한 데이터셋 목록을 출력하는 R 함수
* (기본) 패키지별로 포함된 데이터셋 목록 출력
* (기본) 패키지별로 포함된 데이터셋 목록 출력
* 또는 특정 데이터셋 적재(load)
* 또는 특정 데이터셋 적재(load)


==실행예시: 전체==
==실행예시: 적재==
<source lang='r'>
data(mtcars)
ls()
## [1] "mtcars"
data(baseball, package="plyr")
ls()
## [1] "baseball" "mtcars"
</source>
 
==실행예시: 목록조회==
<source lang='r'>
<source lang='r'>
data()
data()
if(0)"
## Data sets in package ¡®datasets¡¯:
Data sets in package 'datasets':
##
 
## AirPassengers          Monthly Airline Passenger Numbers 1949-1960
AirPassengers          Monthly Airline Passenger Numbers 1949-1960
## BJsales                Sales Data with Leading Indicator
BJsales                Sales Data with Leading Indicator
... (생략)
BJsales.lead (BJsales)
## trees                  Girth, Height and Volume for Black Cherry Trees
                        Sales Data with Leading Indicator
## uspop                  Populations Recorded by the US Census
BOD                    Biochemical Oxygen Demand
## volcano                Topographic Information on Auckland's Maunga
CO2                    Carbon Dioxide Uptake in Grass Plants
##                         Whau Volcano
ChickWeight            Weight versus age of chicks on different diets
## warpbreaks              The Number of Breaks in Yarn during Weaving
DNase                  Elisa assay of DNase
## women                  Average Heights and Weights for American Women
EuStockMarkets          Daily Closing Prices of Major European Stock
##
                        Indices, 1991-1998
##
Formaldehyde            Determination of Formaldehyde
## Use 'data(package = .packages(all.available = TRUE))'
HairEyeColor            Hair and Eye Color of Statistics Students
## to list the data sets in all *available* packages.
Harman23.cor            Harman Example 2.3
Harman74.cor            Harman Example 7.4
Indometh                Pharmacokinetics of Indomethacin
InsectSprays            Effectiveness of Insect Sprays
JohnsonJohnson          Quarterly Earnings per Johnson & Johnson Share
LakeHuron              Level of Lake Huron 1875-1972
LifeCycleSavings        Intercountry Life-Cycle Savings Data
Loblolly                Growth of Loblolly pine trees
Nile                    Flow of the River Nile
Orange                  Growth of Orange Trees
OrchardSprays          Potency of Orchard Sprays
PlantGrowth            Results from an Experiment on Plant Growth
Puromycin              Reaction Velocity of an Enzymatic Reaction
Seatbelts              Road Casualties in Great Britain 1969-84
Theoph                  Pharmacokinetics of Theophylline
Titanic                Survival of passengers on the Titanic
ToothGrowth            The Effect of Vitamin C on Tooth Growth in
                        Guinea Pigs
UCBAdmissions          Student Admissions at UC Berkeley
UKDriverDeaths          Road Casualties in Great Britain 1969-84
UKgas                  UK Quarterly Gas Consumption
USAccDeaths            Accidental Deaths in the US 1973-1978
USArrests              Violent Crime Rates by US State
USJudgeRatings          Lawyers' Ratings of State Judges in the US
                        Superior Court
USPersonalExpenditure  Personal Expenditure Data
UScitiesD              Distances Between European Cities and Between
                        US Cities
VADeaths                Death Rates in Virginia (1940)
WWWusage                Internet Usage per Minute
WorldPhones            The World's Telephones
ability.cov            Ability and Intelligence Tests
airmiles                Passenger Miles on Commercial US Airlines,
                        1937-1960
airquality              New York Air Quality Measurements
anscombe                Anscombe's Quartet of 'Identical' Simple Linear
                        Regressions
attenu                  The Joyner-Boore Attenuation Data
attitude                The Chatterjee-Price Attitude Data
austres                Quarterly Time Series of the Number of
                        Australian Residents
beaver1 (beavers)      Body Temperature Series of Two Beavers
beaver2 (beavers)      Body Temperature Series of Two Beavers
cars                    Speed and Stopping Distances of Cars
chickwts                Chicken Weights by Feed Type
co2                    Mauna Loa Atmospheric CO2 Concentration
crimtab                Student's 3000 Criminals Data
discoveries            Yearly Numbers of Important Discoveries
esoph                  Smoking, Alcohol and (O)esophageal Cancer
euro                    Conversion Rates of Euro Currencies
euro.cross (euro)      Conversion Rates of Euro Currencies
eurodist                Distances Between European Cities and Between
                        US Cities
faithful                Old Faithful Geyser Data
fdeaths (UKLungDeaths)
                        Monthly Deaths from Lung Diseases in the UK
freeny                  Freeny's Revenue Data
freeny.x (freeny)      Freeny's Revenue Data
freeny.y (freeny)      Freeny's Revenue Data
infert                  Infertility after Spontaneous and Induced
                        Abortion
iris                    Edgar Anderson's Iris Data
iris3                  Edgar Anderson's Iris Data
islands                Areas of the World's Major Landmasses
ldeaths (UKLungDeaths)
                        Monthly Deaths from Lung Diseases in the UK
lh                      Luteinizing Hormone in Blood Samples
longley                Longley's Economic Regression Data
lynx                    Annual Canadian Lynx trappings 1821-1934
mdeaths (UKLungDeaths)
                        Monthly Deaths from Lung Diseases in the UK
morley                  Michelson Speed of Light Data
mtcars                  Motor Trend Car Road Tests
nhtemp                  Average Yearly Temperatures in New Haven
nottem                  Average Monthly Temperatures at Nottingham,
                        1920-1939
npk                    Classical N, P, K Factorial Experiment
occupationalStatus      Occupational Status of Fathers and their Sons
precip                  Annual Precipitation in US Cities
presidents              Quarterly Approval Ratings of US Presidents
pressure                Vapor Pressure of Mercury as a Function of
                        Temperature
quakes                  Locations of Earthquakes off Fiji
randu                  Random Numbers from Congruential Generator
                        RANDU
rivers                  Lengths of Major North American Rivers
rock                    Measurements on Petroleum Rock Samples
sleep                  Student's Sleep Data
stack.loss (stackloss)
                        Brownlee's Stack Loss Plant Data
stack.x (stackloss)    Brownlee's Stack Loss Plant Data
stackloss              Brownlee's Stack Loss Plant Data
state.abb (state)      US State Facts and Figures
state.area (state)      US State Facts and Figures
state.center (state)    US State Facts and Figures
state.division (state)
                        US State Facts and Figures
state.name (state)      US State Facts and Figures
state.region (state)    US State Facts and Figures
state.x77 (state)      US State Facts and Figures
sunspot.month          Monthly Sunspot Data, from 1749 to "Present"
sunspot.year            Yearly Sunspot Data, 1700-1988
sunspots                Monthly Sunspot Numbers, 1749-1983
swiss                  Swiss Fertility and Socioeconomic Indicators
                        (1888) Data
treering                Yearly Treering Data, -6000-1979
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.
"
</source>
</source>


==같이 보기==
==같이 보기==
* [[R ls()]]
* [[R save()]]
* [[R load()]]
* [[R 데이터셋]]
* [[R 데이터셋]]


==참고==
==참고==
* https://www.rdocumentation.org/packages/utils/versions/3.5.3/topics/data
* https://www.rdocumentation.org/packages/utils/versions/3.5.3/topics/data
* https://www.rdocumentation.org/packages/datasets/versions/3.6.0


[[분류: R utils]]
[[분류: R utils]]

2019년 5월 11일 (토) 19:50 기준 최신판

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 }}