get_dimvisible_byvar: get_dimvisible_byvar from supplied data

View source: R/get_dimvisible_byvar.R

get_dimvisible_byvarR Documentation

get_dimvisible_byvar from supplied data

Description

Internal function to determine the dimension of supplied discrete by column

Usage

get_dimvisible_byvar(data, marginal_description)

Arguments

data

Data provided by user. For biocorex data can either be continuous (gaussian) or discrete (consectutive integers 0, 1, 2, 3...etc). Data types cannot by mixed in this implementation.

marginal_description

Character string which determines the marginal distribution of the data. Should be of length equal to the number of variables in data. get_dimvisible_byvar() calculates the dimension when the marginal_description = 'discrete'

Details

This function determines the dimension of unique values in the supplied data for each column in the supplied data frame, if the marginal description = discrete for a given variable.

Value

An integer that represents the dimension of unique values in the discrete data.


jpkrooney/rcorex documentation built on July 25, 2022, 1:37 a.m.