Round RAM Sizes to Nearest Possible RAM Size
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)
#> [1] 14.5 506.2 46.2
x2 <- round_ram(x)
print(x2)
#> [1] 16 512 48