Learn R Programming

timeseriesdb (version 0.4.1)

setAttrListWise: Set Attributes to Each Element of List According to a Given Vector

Description

An attribute is set to all elements of a list given a vector of possible instances of the the attribute. Note that this function fails to excecute if the vector is not of the same length list.

Usage

setAttrListWise(li, attrib, vec)

Arguments

li

a list

attrib

character name of the attribute

vec

vector containing all instances of the attribute