ctapply: Object Summaries

Description:

ctapply is a package used to get summaries of basic statistics, such as central tendency(mean, median..) and standard deviation (spread). The package uses specific methods to produce the result. The user have option to print the result. The package is supported by four additional functions that return graphical output.

ctbarplot() return a bar graph. Usage example ctbarplot(electricdata$cost)

cthistgraph return histogram. Usage example cthistgraph(electricdata$cost)

ctpairplot return a plot combinations for the electricdata variables. Usage example ctpairplot(electricdata)

ctscattergraph return scatter graph for the data. Usage example ctscattergraph(electricdata$cost,electricdata$fuel)

The sample data used for this package is the Cost Function of Electricity Producers (1955) data taken from https://vincentarelbundock.github.io/Rdatasets/datasets.html

Below are the field names and first six rows for the sample data used in the package

library(ctapply)
head(electricdata)

Usage:

Arguments

object : An object for which a summary is desired. This could be a numeric vector or a data frame dataset.

np : A boolean value (TRUE/FALSE). The statistics to use (Mean, Median,...).

print : A boolean value (TRUE/FALSE). This provide an option for users to print result.

options : Options takes 1, 2 or 3 as an argument (options =1, 2, 3). This provide additional output.

\vspace{6pt} The full syntax usage:

data1 <- c(4,5,6,5,6,5,6,4,6,5,6,4,5,4,5,6)
ctapply(data1, np=TRUE, print=TRUE, options = 3)
ctbarplot(electricdata$cost)

\vspace{6pt} Who should use this package

cat("\n")

Why use ctapply? Use ctapply to quickly summarize data and identify what looks normal and what looks odd. The distribution of a variable shows what values the variable takes and how often the variable takes these values.

\vspace{6pt}

Analytics in a true sense is leveraged only through visualizations. R, as a statistical tool, offers strong visualization capabilities. So, the numerous options associated with charts is what makes them special. Each of the charts has its own application and the chart should be studied prior to applying it to a problem.



AnthonyTheOracle/ctapply documentation built on April 30, 2022, 6:17 p.m.