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

Description Usage Arguments Examples

View source: R/rectifiedI.R

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

1
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

1
2
3
4
5
6
7
8
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)
}

Irescale documentation built on Nov. 22, 2019, 1:07 a.m.