File: label.r

package info (click to toggle)
hmisc 5.2-5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,044 kB
  • sloc: asm: 28,907; f90: 590; ansic: 415; xml: 160; fortran: 75; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
require(Hmisc)
x <- 1:10
y <- (11:20) + .1
label(y) <- 'Y'
attributes(y)
d <- data.frame(x, y)
attributes(d$y)
m <- model.frame(y ~ x, data=d)
m$y
attributes(m$y)
mr <- model.response(m)
attributes(mr)
mr