traits.to.string | R Documentation |
This is a helper function that is useful when we wish to make several traits into one variable
traits.to.string(data, traits, na.action = "drop", sep = ".")
data |
The respondent info |
traits |
The names of the traits to build the model on |
na.action |
Defaults to 'drop' (meaning all rows of data
with any missingness on the traits are dropped). Anything else
means |
sep |
The separator character used to combine values |
A list whose entries are
used.idx
, which indicates which rows from the original dataset were used
(may not be all of them if there is missingness); and
traits
, which has the string version of the traits
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.