Description Usage Arguments Value Author(s) References Examples
View source: R/transf.into.ordinal.R
This function receives a data set with categorical variables, scan all variables and transform it into odered factors.
1 | transf.into.ordinal(data.to.work)
|
data.to.work |
is a data set where all variables will be transformed into odered factors. |
The data set transformed
Elias Carvalho
GUJARATI, Damodar N. Basic econometrics. Tata McGraw-Hill Education, 2009.
1 2 3 4 5 6 7 8 9 10 11 12 | # Clean environment
closeAllConnections()
rm(list=ls())
# Set enviroment
# setwd("to your working directory")
# Load packages
library(bnpa)
#Load Data
data(dataQualiN)
# Transform all variables into ordinal
dataQualiN <- bnpa::transf.into.ordinal(dataQualiN)
str(dataQualiN)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.