R Dataset / Package DAAG / elasticband

Submitted by pmagunia on March 9, 2018 - 1:06 PM
Dataset License
GNU General Public License v2.0
Attachment Size
dataset-93772.csv 70 bytes
Documentation

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.

Documentation License
GNU General Public License v2.0

From Around the Site...

Title Authored on Content type
R Dataset / Package wooldridge / beauty March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / TwinsLungs March 9, 2018 - 1:06 PM Dataset
R Dataset / Package DAAG / psid1 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package robustbase / hbk March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Star March 9, 2018 - 1:06 PM Dataset