R Dataset / Package DAAG / elastic1

On this R-data statistics page, you will find information about the elastic1 data set which pertains to Elastic Band Data Replicated. The elastic1 data set is found in the DAAG R package. You can load the elastic1 data set in R by issuing the following command at the console data("elastic1"). This will load the data into a variable called elastic1. If R says the elastic1 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 elastic1 R data set. The size of this file is about 70 bytes.

Elastic Band Data Replicated

Description

The elastic1 data frame has 7 rows and 2 columns giving, for each amount by which an elastic band is stretched over the end of a ruler, the distance that the band traveled when released.

Usage

elastic1

Format

This data frame contains the following columns:

stretch

the amount by which the elastic band was stretched

distance

the distance traveled

Source

J. H. Maindonald

Examples

plot(elastic1)print("Inline Functions - Example 12.2.2")
sapply(elastic1, mean)
pause()sapply(elastic1, function(x)mean(x))
pause()sapply(elastic1, function(x)sum(log(x)))
pause()print("Data Output - Example 12.3.2")
write.table(elastic1, file="bandsframe.txt")

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

Attachments: csv, json

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