names: The Names of a Performance or Person

Description Usage Arguments Value Author(s) References Examples

Description

names is a generic accessor function and names<- is a generic replacement function.

The default methods can be used to get and set the name of a Performance and Person; get additionally retrieves a character vector of the names of all persons cared for, when acting on a HumanResourceManager.

names is a generic accessor function. It returns the field name of a Performance or Person. Can also be executed on a HumanResourceManager object to retrieve the character vector of the names of all persons.

names<- can only be executed over Performance or Person objects - to set their name.

Usage

1
2
3
   names(x)

   names(x) <- value

Arguments

x

a Person, HumanResourceManager, or Performance.

value

a character vector of the same length as x.

Value

NULL or character vector of the same length as x.

Author(s)

Fridolin Wild <wild@brookes.ac.uk>

References

Fridolin Wild (2016): Learning Analytics in R with SNA, LSA, and MPIA, Springer:Berlin.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
dmgr = DomainManager()

data(generic.domain)
dmgr$add(d, title="generic")
#d = dmgr$get("generic")

ppl = HumanResourceManager(dmgr, d)
fridolin = ppl$add("fridolin")
p = fridolin$write("business management", label="demo")

names(p)
names(p) = "demo-renamed"
names(p)

names(ppl)
names(fridolin)

mpia documentation built on May 2, 2019, 4:18 p.m.