questionsAsVarnames: Adding the questions form survey to the end of variable names...

Description Usage Arguments Value Examples

View source: R/questionsAsVarnames.R

Description

Adding the questions form survey to the end of variable names in dataframe

Usage

1
questionsAsVarnames(dataframe, questions)

Arguments

dataframe

A dataframe containing the data

questions

A list with the questions for the new variable names

Value

new_df

Examples

1
2
3
4
5
# Ausformulierte Fragen angeben. Gleiche Anzahl, gleiche Reihenfolge
head(cars)
questions <- c("How fast is the car?", "How far can you you go with it? ")
new.df <- questionsAsVarnames(dataframe=cars, questions)
head(new.df)

muuksi/bici documentation built on May 23, 2019, 10:53 a.m.