详解R语言中的data()函数

在本文中,我们将深入探讨 data() 函数究竟是什么,以及它在 R 编程语言 中是如何工作的。我们还将一起查看 R 中所有可用的数据集。

R 语言中的 data() 函数

在 R 中,INLINECODE41eda9f1 函数用于加载那些随 R 包预装的数据集,或者已经明确安装到您的 R 环境中的数据集。包含这些数据集通常是为了为用户提供示例数据,以便练习数据分析、可视化和统计建模。INLINECODE0b1e5a15 函数允许我们将这些数据集加载到当前的 R 会话中进行探索和分析。

data() 函数的基本语法如下:

data(dataset_name)

这里的 dataset_name 指的是您想要加载的数据集的名称。

R


CODEBLOCK_94b309df

输出:

“`

Data sets in package ‘caret’:

GermanCredit German Credit Data

Sacramento Sacramento CA Home Prices

absorp (tecator) Fat, Water and Protein Content of Meat Samples

bbbDescr (BloodBrain) Blood Brain Barrier Data

cars Kelly Blue Book resale data for 2005 model year

GM cars

cox2Class (cox2) COX-2 Activity Data

cox2Descr (cox2) COX-2 Activity Data

cox2IC50 (cox2) COX-2 Activity Data

dhfr Dihydrofolate Reductase Inhibitors Data

endpoints (tecator) Fat, Water and Protein Content of Meat Samples

fattyAcids (oil) Fatty acid composition of commercial oils

logBBB (BloodBrain) Blood Brain Barrier Data

mdrrClass (mdrr) Multidrug Resistance Reversal (MDRR) Agent Data

mdrrDescr (mdrr) Multidrug Resistance Reversal (MDRR) Agent Data

oilType (oil) Fatty acid composition of commercial oils

potteryClass (pottery) Pottery from Pre-Classical Sites in Italy

scat Morphometric Data on Scat

scat_orig (scat) Morphometric Data on Scat

segmentationData Cell Body Segmentation

Data sets in package ‘circular’:

fisherB1 B.1 Arrival times at an intensive care unit

fisherB10 B.10 Directions of desert ants

fisherB10c B.10 Directions of desert ants

fisherB11 B.11 Movements of sea stars

fisherB11c B.11 Movements of sea stars

fisherB12 B.12: Vanishing directions of homing pigeons

fisherB12c B.12: Vanishing directions of homing pigeons

fisherB13 B.13: Orientations of termite mounds

fisherB13c B.13: Orientations of termite mounds

fisherB18 B.18 Wind direction and ozone concentration.

fisherB18c B.18 Wind direction and ozone concentration.

fisherB1c B.1 Arrival times at an intensive care unit

fisherB2 B.2 Measurements of long-axis orientation of 133

feldspar laths in basalt

fisherB20 B.20 Movements of blue periwinkles.

fisherB20c B.20 Movements of blue periwinkles.

fisherB2c B.2 Measurements of long-axis orientation of 133

feldspar laths in basalt

fisherB3 B.3 Movements of turtles

fisherB3c B.3 Movements of turtles

fisherB4 B.4 Directional preferences of starhead

topminnows

fisherB4c B.4 Directional preferences of starhead

topminnows

fisherB5 B.5 Measurements of long-axis orientation of 164

feldspar laths in basalt

fisherB5c B.5 Measurements of long-axis orientation of 164

feldspar laths in basalt

fisherB6 B.6 Cross-bed azimuths of palaeocurrents

fisherB6c B.6 Cross-bed azimuths of palaeocurrents

fisherB7 B.7 Movements of ants

fisherB7c B.7 Movements of ants

fisherB8 B.8 Orientations of pebbles

fisherB8c B.8 Orientations of pebbles

fisherB9 B.9 Dance directions of bees

fisherB9c B.9 Dance directions of bees

fisherB9direction (fisherB9)

B.9 Dance directions of bees

fisherB9frequency (fisherB9)

B.9 Dance directions of bees

ncfrog Northern Cricket Frog

ncfrog.rad (ncfrog) Northern Cricket Frog

pigeons Initial orientation of displaced homing pigeons

rao.table Table for Rao‘s Spacing Test of Uniformity

swallows Orientation of juvenile barn swallows

turtles Arrival directions of displaced sea turtles

wind Col De La Roa wind direction

x.coope (coope) Coope dataset

y.coope (coope) Coope dataset

Data sets in package ‘datasets’:

AirPassengers Monthly Airline Passenger Numbers 1949-1960

BJsales

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。如需转载,请注明文章出处豆丁博客和来源网址。https://shluqu.cn/22502.html
点赞
0.00 平均评分 (0% 分数) - 0