labs_-.data.frame: Add labels - assignment to data frame

Usage Arguments Examples

Usage

1
labs<-.data.frame(x, value)

Arguments

x
value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, value) 
{
    value <- c(value, "", "")[1:2]
    attr(x, "labs") <- value
    if (!inherits(x, "data.frame.lab")) 
        class(x) <- c("data.frame.lab", class(x))
    x
  }

gmonette/spida documentation built on May 17, 2019, 7:25 a.m.