round_ram: Round RAM Sizes to Nearest Possible RAM Size

View source: R/bin_ram.R

round_ramR Documentation

Round RAM Sizes to Nearest Possible RAM Size

Description

Round RAM Sizes to Nearest Possible RAM Size

Usage

round_ram(
  x,
  map = getOption("wyntonquery.round_ram.map", c(16, 32, 48, 64, 96, 128, 256, 384, 512,
    768, 1024, 2048))
)

Arguments

x

A numeric vector of RAM sizes to round.

map

A numeric vector of RAM sizes to round.

Value

A numeric vector of length length(x) with values in the map set.

Examples

x <- c(14.5, 506.2, 46.2)
print(x)
x2 <- round_ram(x)
print(x2)


ucsf-wynton/wyntonquery documentation built on May 15, 2024, 6:23 a.m.