getElementNames2: Retrieve element names in needed format.

Description Usage Arguments Value Author(s) Examples

Description

Retrieves the element names from a repgrid. Different features like trimming, indexing and choices of seperators allow to return the kind of format that is needed.

Usage

1
getElementNames2(x, trim=20, index=F, pre="(", post=") ")

Arguments

x

repgrid object.

trim

Number of characters to trim the construct names to (default NA). NA will surpress trimming. The length of index is not included in the trimming.

index

Logical. Whether to add a index number before the construct names (default TRUE).

pre

String before index number (default ().

post

String after index number (default ) ).

Value

Vector with (trimmed) element names.

Author(s)

Mark Heckmann

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

getElementNames2(bell2010)
getElementNames2(bell2010, mode=2)
getElementNames2(bell2010, index=T)
getElementNames2(bell2010, index=T, trim=30)


## End(Not run)

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.