Learn R Programming

BSDA (version 1.01)

Family: Size of family versus cost per person per week for groceries

Description

Data for Exercise 2.89

Usage

Family

Arguments

Format

A data frame with 20 observations on the following 2 variables.

Number

a numeric vector

Cost

a numeric vector

Examples

Run this code
# NOT RUN {
str(Family)
attach(Family)
plot(Number,Cost)
cor(Number,Cost)
lm(Cost~Number)
detach(Family)
# }

Run the code above in your browser using DataLab