Learn R Programming

dataSDA (version 0.1.2)

write_csv_table: Write Symbolic Data Table

Description

This function write (save) a symbolic data table from a CSV data file.

Usage

write_csv_table(data, file, output)

Value

Write in CSV file the symbolic data table.

Arguments

data

The conventional data.

file

The name of the CSV file.

output

This is an experimental argument, with default TRUE, and can be ignored by most users.

Examples

Run this code
data(mushroom)
mushroom.set <- set_variable_format(data = mushroom, location = 8, var = "Species")
mushroom.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"))
mushroom.clean <- clean_colnames(data = mushroom.tmp)
# We can save the file in CSV to RSDA format as follows:
write_csv_table(data = mushroom.clean, file = "mushroom_interval.csv", output = FALSE)

Run the code above in your browser using DataLab