Irescale (version 0.2.6)

saveFile: Saves a report with important statistics to describe the sample.

Description

saveFile Saves a csv report with the following columns: Convex Hull Area, Convex Hull Centroid X, Convex Hull Centroid Y, Sample Size, Ichen, Iscaled, pvalue , Mean, MeanScaled, STD DEV, SDScaled, Q_1%, Q_1%Scaled, $Q_99%, Q_99%Scaled, Max, Max_Scaled, Min, Min_Scaled, Skew,Skew_Scaled, Kutorsis,Kutorsis_Scaled.

Usage

saveFile(fileName, results)

Arguments

fileName

the name of the file with the path where the CSV file will be saved.

results

is the vector obtained from running the rescaling process over all the variables of interest.

Examples

Run this code
# NOT RUN {
fileInput <- system.file("testdata", "chen.csv", package="Irescale")
data <- loadFile(fileInput)
scaledI<-rescaleI(data,1000)
fn = file.path(tempdir(),"output.csv",fsep = .Platform$file.sep)
saveFile(fn,scaledI)
if (file.exists(fn)){
    file.remove(fn)
}
# }

Run the code above in your browser using DataLab