Learn R Programming

pcr (version 1.2.2)

.pcr_slope: Calculate the slope of a line

Description

Calculate the slope of a line

Usage

.pcr_slope(vec, var)

Arguments

vec

A vector of numerics

var

A grouping variable

Value

A numeric

Examples

Run this code
# NOT RUN {
vec <- rnorm(6, 30, 1)
var <- rep(c(.1, .5), 3)
pcr:::.pcr_slope(vec, var)

# }

Run the code above in your browser using DataLab