Learn R Programming

RSDA (version 2.0.8)

classic.to.sym: Generate a symbolic data table

Description

Generate a symbolic data table from a classic data table.

Usage

classic.to.sym(data, concept, variables, variables.types)

Arguments

data

A data.frame.

concept

These are the variable that we are going to use a concepts.

variables

These are the variables that we want to include in the symbolic data table.

variables.types

A vector with names and the type of symbolic data to use, the available types are type_histogram (), type_continuous (), type.set (), type.modal (), by default type_histogram () is used for numeric variables and type_modal () for the categorical variables.

Value

The symbolic data table.

References

Bock H-H. and Diday E. (eds.) (2000). Analysis of Symbolic Data. Exploratory methods for extracting statistical information from complex data. Springer, Germany.

See Also

read.sym.table

Examples

Run this code
# NOT RUN {
result <- classic.to.sym(data = iris,
              concept = "Species",
              variables = c(Sepal.Length,Sepal.Width,Petal.Length,Petal.Width))
result

result <- classic.to.sym(data = iris,
concept = "Species", # concepto
variables = c(Sepal.Length,Sepal.Width,Petal.Length,Petal.Width), # variable a utilizar
variables.types = c(Sepal.Length = type.interval(), # tipo para cada una de las variable
             Sepal.Width = type.interval(),
             Petal.Length = type.interval(),
             Petal.Width = type.interval()))
result
# }

Run the code above in your browser using DataLab