Description Usage Arguments Details
View source: R/likert_add_fullnames.df.R
Takes a list of dataframe column names, and long names, and stores the long names in the attribute 'fullname'. Then, the original names of the original dataframe get renamed with the full names. This is to be used with the 'likert' package. e.g., WHen plotting, item names should appear with item content description if this function is used. Example: db <- add_likert_fullnames(db, c( 'X7'='Do you use sites like Facebook, Twitter, or GPlus?', 'X10'='Do you know of online communities relevant to your discipline or the courses you are taking now?'))
1 | likert_add_fullnames.df(rawDf, levels = 1:6, fnames)
|
rawDf; |
a data frame with named columns |
levels; |
a numeric vector indicating the number of levels per item |
fnames; |
a character vector providing the item content names to be placed in the column names. |
See sample script in G:/R&D/_PRIVATE SHARED/Psychometric templates/Sample script for Likert Plots.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.