likert_add_fullnames.df: Add names to likert graphs

Description Usage Arguments Details

View source: R/likert_add_fullnames.df.R

Description

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?'))

Usage

1
likert_add_fullnames.df(rawDf, levels = 1:6, fnames)

Arguments

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.

Details

See sample script in G:/R&D/_PRIVATE SHARED/Psychometric templates/Sample script for Likert Plots.R


MHS-R/mhs documentation built on May 25, 2019, 12:23 p.m.