get_decimal_places: Get Decimal Places

View source: R/utils.R

get_decimal_placesR Documentation

Get Decimal Places

Description

Get Decimal Places

Usage

get_decimal_places(column)

Arguments

column

Aggregated data frame column.

Details

Function to determine the number of decimal places based on column name.

Value

Decimal place integer.

Examples

epochs_df <- data.frame(
  "x.mean" = c(0.1111, 0.1222, 0.1333, 0.1444),
  "y.mean" = c(0.2111, 0.2222, 0.2333, 0.2444),
  "light.mean" = c(1.25, 1.73, 1.99, 2.02)
)
dp <- get_decimal_places(epochs_df[1])

GENEAcore documentation built on April 11, 2025, 5:43 p.m.