Data Converter Module (DCM) is a new R package that converts the dataset format from split into stack
and to the reverse.
The module has two functionalities STACK and SPLIT.
STACK
In this mode the package receives a matrix where the rows are typically the judges or customers that
evaluate a product. The first column is the product code, the second column is the ID of the judge and
the rest of the columns contain the data of the sensory attributes. The program allows replicated data.
The output of the program is a matrix of stacked data; the first column gives the product code, the
second column the ID of the judge, the third column the name of the attribute and the fourth column the
value provided by the judge. This matrix is given in a csv file.
SPLIT
The input for this functionality is a matrix that has four columns: Product code, ID of a judge, attribute
name and data.
The output is a matrix where the rows correspond to product code-judge combination and the columns
provide the sensory characteristics ordered alphabetically or not. This matrix is produced in a csv file.
In both cases stack and split, empty spaces are kept that way.
WINDOWS / LINUX
1 |
#Comand to install
install.packages("gWidgetstcltk")
install.packages("DCM")
|
2 |
#Call to library
library(DCM)
|
3 |
#View the description
library(help=DCM)
|
4 |
#View the requirements
?DCM
|
MAC OS X
1 |
#Install tcltk
tcltk-8.5.5-x11.pkg (OS X 10.5+, signed)
|
2 |
#Install XQuartz
The use of X11 (including tcltk) requires XQuartz
|
3 |
#Restart the computer
|
4 |
#Comand to install
install.packages("gWidgetstcltk")
install.packages("DCM")
|
5 |
#Call to library
library(DCM)
|
6 |
#View the description
library(help=DCM)
|
7 |
#View the requirements
?DCM
|
EXAMPLE
1 |
#Call to library
library(DCM)
|
2 |
#Call the interface
DCM()
|
3 |
#Choose a data set (xlsx file)
File - Open
|
4 |
#Use of sections
Method - Split
|
5 |
#Save a data set (delimited csv for comma)
File - Save
|
DOCUMENTATION
- DCM Manual
- DCM.tar.gz
CITATION
- To cite package ‘DCM’ in publications use:
Delphi Intelligence (2016). DCM: Data Converter Module. R package
version 0.1.1. https://CRAN.R-project.org/package=DCM
- A BibTeX entry for LaTeX users is
@Manual{,
title = {DCM: Data Converter Module},
author = {Delphi Intelligence},
year = {2016},
note = {R package version 0.1.1},
url = {https://CRAN.R-project.org/package=DCM},
}
ATTENTION: This citation information has been auto-generated from the
package DESCRIPTION file and may need manual editing, see
‘help("citation")’.