powered by
Retrieves the element names from a repgrid.
repgrid
getElementNames2(x, trim = 20, index = F, pre = "(", post = ") ")
Vector with (trimmed) element names.
repgrid object.
Number of characters to trim the construct names to (default NA). NA will suppress 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
String before index number (default ().
(
String after index number (default ) ).
)
Different features like trimming, indexing and choices of separators allow to return the kind of format that is needed.
if (FALSE) { getElementNames2(bell2010) getElementNames2(bell2010, mode = 2) getElementNames2(bell2010, index = T) getElementNames2(bell2010, index = T, trim = 30) }
Run the code above in your browser using DataLab