pgu.data: pgu.data

Description Format Details Active bindings Methods Author(s) Examples

Description

Handles the pguIMP dataset.

Format

R6::R6Class object.

Details

Stores the pguIMP dataset as instance variable and keeps track of the attributes of interest. Provides additionally fast access to several statistical information about the data set. This object is used by the shiny based gui and is not for use in individual R-scripts!

Active bindings

rawData

Returns the instance variable rawData (tibble::tibble)

setRawData

Sets the instance variable rawData (tibble::tibble)

attributeNames

Returns the instance variable attributeNames (character)

numericalAttributeNames

Returns the instance variable numericalAttributeNames (character)

categoricalAttributeNames

Returns the instance variable categoricalAttributeNames (character)

classInformation

Returns the instance variable classInformation (tibble::tibble)

statistics

Returns the instance variable statistics (tibble::tibble)

reducedStatistics

Returns the instance variable reducedStatistics (tibble::tibble)

missingsStatistics

Returns the instance variable missingsStatistics (tibble::tibble)

Methods

Public methods


Method new()

Clears the heap and indicates that instance of pguIMP::pgu.data is removed from heap.

Summarizes information on the instance variable rawData and retruns it in form of a compact data frame.

Summarizes a vector of numericals and returns summary.

Iterativley calls the function summarize_numerical_data on all numerical attributes of the instance variable rawData and returns the result in form of a data frame.

Calls the function calculate_statistics filters the result for the attribute names and arithmetic mean values. and returns the result in form of a data frame.

Calls the class' function dataStatistics filters the result for the attribute names and information about missing values. and returns the result in form of a data frame.

Creates and returns a new pguIMP::pgu.data object.

Usage
pgu.data$new(data_df = "tbl_df")
Arguments
data_df

The data to be analyzed. (tibble::tibble)

val

Vector of numericals to be summarized. (numeric)

Returns

A new pguIMP::pgu.data object. (pguIMP::pgu.data)


Method print()

Prints instance variables of a pguIMP::pgu.data object.

Usage
pgu.data$print()
Returns

string


Method fit()

Extracts information about the instance variable rawData.

Usage
pgu.data$fit()

Method attribute_index()

Returns the index of an attribute within the instance variable attributeNames.

Usage
pgu.data$attribute_index(attribute = "character")
Arguments
attribute

Attribute's name. (character)

Returns

Index of attribute's name in rawData (numeric)


Method numerical_data()

Returns the numeric attributes of the instance variable rawData.

Usage
pgu.data$numerical_data()
Returns

A data frame (tibble::tibble)


Method categorical_data()

Returns the categorical attributes of the instance variable rawData.

Usage
pgu.data$categorical_data()
Returns

A data frame (tibble::tibble)


Method clone()

The objects of this class are cloneable with this method.

Usage
pgu.data$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Sebastian Malkusch, malkusch@med.uni-frankfurt.de

Examples

1
2
3
4
5
6
require(dplyr)
require(tibble)
data(iris)
data_df <- iris %>%
  tibble::as_tibble()
data_obj = pguIMP::pgu.data$new(data_df)

pguIMP documentation built on Sept. 30, 2021, 5:08 p.m.