seriesname {wakefield}R Documentation

Add Internal Name to Data Frame

Description

Adds attributes(x)[["seriesname"]] attribute to a data.frame.

Usage

seriesname(x, name)

Arguments

x

A data.frame to add a seriesname attribute (i.e., attributes(x)[["seriesname"]])

name

A name to assign to attributes(x)[["seriesname"]].

Value

Returns a data.frame with a attributes(x)[["seriesname"]] assigned.

Examples

seriesname(mtcars, "Cars")
attributes(seriesname(mtcars, "Cars"))

[Package wakefield version 0.3.6 Index]