R Dataset / Package DAAG / primates

On this R-data statistics page, you will find information about the primates data set which pertains to Primate Body and Brain Weights. The primates data set is found in the DAAG R package. You can load the primates data set in R by issuing the following command at the console data("primates"). This will load the data into a variable called primates. If R says the primates data set is not found, you can try installing the package by issuing this command install.packages("DAAG") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the primates R data set. The size of this file is about 106 bytes.

Primate Body and Brain Weights

Description

A subset of Animals data frame from the MASS library. It contains the average body and brain measurements of five primates.

Usage

primates

Format

This data frame contains the following columns:

Bodywt

a numeric vector consisting of the body weights (in kg) of five different primates

Brainwt

a numeric vector consisting of the corresponding brain weights (in g)

Source

P. J. Rousseeuw and A. M. Leroy (1987) Robust Regression and Outlier Detection. Wiley, p. 57.

Examples

attach(primates)
plot(x=Bodywt, y=Brainwt, pch=16,
 xlab="Body weight (kg)", ylab="Brain weight (g)",
 xlim=c(5,300), ylim=c(0,1500))
chw <- par()$cxy[1]
chh <- par()$cxy[2]
text(x=Bodywt+chw, y=Brainwt+c(-.1,0,0,.1,0)*chh,
 labels=row.names(primates), adj=0)
detach(primates)

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-daag-primates.html" width="100%" height="100%" style="border:0px"></iframe>