Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(warning = FALSE) knitr::opts_chunk$set(message = FALSE) knitr::opts_chunk$set(out.width = "100%") knitr::opts_chunk$set(fig.align = 'center') library(knitr) library(dataSDA) library(RSDA)
data(mushroom) head(mushroom)
Changes the format of the set variables in the data to conform to the RSDA format.
data
= the conventional dataframelocation
= the location of the set variable in the datavar
= the name of the set variable in the datamushroom.set <- set_variable_format(data = mushroom, location = 8, var = "Species") head(mushroom.set)
Changes the format of the data to conform to RSDA format.
data
= the conventional dataframesym_type1
= the labels I means an interval variable, and S means set variable in locationlocation
= the location of the sym_type in the datasym_type2
= the labels I means an interval variable, and S means set variable in varvar
= the name of the symbolic variable in the datamushroom.tmp <- RSDA_format(data = mushroom.set, sym_type1 = c("I", "S"), location = c(25, 31), sym_type2 = c("S", "I", "I"), var = c("Species", "Stipe.Length_min", "Stipe.Thickness_min")) head(mushroom.tmp)
Clean up variable names to conform to the RSDA format.
data
= the conventional dataframemushroom.clean <- clean_colnames(data = mushroom.tmp) head(mushroom.clean)
write_csv_table(data = mushroom.clean, file = 'mushroom_interval.csv')
mushroom.int <- read.sym.table(file = 'mushroom_interval.csv', header = T, sep = ';', dec = '.', row.names = 1) head(mushroom.int)
data(Abalone.iGAP) head(Abalone.iGAP)
To convert iGAP files to CSV files.
data
= the conventional dataframe(iGAP format)location
= the location of the symbolic variable in the dataAbalone <- iGAP_to_MM(Abalone.iGAP, c(1, 2, 3, 4, 5, 6, 7)) head(Abalone)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.