R Dataset / Package DAAG / elasticband

Documentation

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


Elastic Band Data

Description

The elasticband 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

elasticband

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

print("Example 1.8.1")attach(elasticband)     # R now knows where to find stretch and distance
plot(stretch, distance) # Alternative: plot(distance ~ stretch)
detach(elasticband)
pause()print("Output of Data Frames - Example 12.3.2")write(t(elasticband),file="bands.txt",ncol=2)sink("bands2.txt")
elasticband   # NB: No output on screen
sink()print("Lists - Example 12.7")elastic.lm <- lm(distance ~ stretch, data=elasticband)
 names(elastic.lm)
 elastic.lm$coefficients
elastic.lm[["coefficients"]]
pause()elastic.lm[[1]]
pause()elastic.lm[1]
pause()options(digits=3)
elastic.lm$residuals 
pause()elastic.lm$call
pause() mode(elastic.lm$call)
--

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

Title Authored on Content type
R Dataset / Package psych / bfi March 9, 2018 - 1:06 PM Dataset
OpenIntro Statistics Dataset - scotus_healthcare August 9, 2020 - 2:38 PM Dataset
R Dataset / Package psych / withinBetween March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / Kids198 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Wages1 March 9, 2018 - 1:06 PM Dataset
Attachment Size
dataset-93772.csv 70 bytes
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0