Learn R Programming

openintro (version 2.4.0)

corr_match: Sample data sets for correlation problems

Description

Simulated data.

Usage

corr_match

Arguments

Format

A data frame with 121 observations on the following 9 variables.

x

a numeric vector

y1

a numeric vector

y2

a numeric vector

y3

a numeric vector

y4

a numeric vector

y5

a numeric vector

y6

a numeric vector

y7

a numeric vector

y8

a numeric vector

Examples

Run this code

library(ggplot2)

ggplot(corr_match, aes(x = x, y = y1)) +
  geom_point()

cor(corr_match$x, corr_match$y1)

Run the code above in your browser using DataLab