powered by
Retrieves the construct names from a repgrid.
repgrid
getConstructNames2(x, mode = 1, trim = 20, index = F, sep = " - ", pre = "(", post = ") ")
repgrid object.
Type of output. 1= left and right pole seperated by sep), 2= only left pole, 3 = only right pole.
sep
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.
NA
index
Logical. Whether to add a index number before the construct names (default TRUE).
TRUE
Seperator string between poles.
String before index number (default ().
(
String after index number (default ) ).
)
Vector with construct names.
Different features like trimming, indexing and choices of seperators allow to return the kind of format that is needed.
# NOT RUN { getConstructNames2(bell2010) getConstructNames2(bell2010, mode=2) getConstructNames2(bell2010, index=T) getConstructNames2(bell2010, index=T, mode=3) # } # NOT RUN { # }
Run the code above in your browser using DataLab