getConstructNames2: Retrieve construct names in needed format.

Description Usage Arguments Details Value Author(s) Examples

View source: R/repgrid-constructs.r

Description

Retrieves the construct names from a repgrid.

Usage

1
2
3
4
5
6
7
8
9
getConstructNames2(
  x,
  mode = 1,
  trim = 20,
  index = F,
  sep = " - ",
  pre = "(",
  post = ") "
)

Arguments

x

repgrid object.

mode

Type of output. 1= left and right pole seperated by sep), 2= only left pole, 3 = only right pole.

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).

sep

Seperator string between poles.

pre

String before index number (default ().

post

String after index number (default ) ).

Details

Different features like trimming, indexing and choices of seperators allow to return the kind of format that is needed.

Value

Vector with construct names.

Author(s)

Mark Heckmann

Examples

1
2
3
4
5
6
7
8
9

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.