| downsize {downsize} | R Documentation |
Function downsize. Main function of the downsize package.
Description
Replace big with a downsized object
if the downsize argument (or the downsize global option) is TRUE.
The downsize global option can be toggled with functions
test_mode and production_mode.
Use the help_downsize function to get more help.
Usage
downsize(
big,
small = NULL,
downsize = getOption("downsize"),
warn = TRUE,
random = FALSE,
length = NULL,
dim = NULL,
ncol = NULL,
nrow = NULL
)
Arguments
big |
Object to return if |
small |
Object to return if |
downsize |
|
warn |
|
random |
If |
length |
Downsize |
dim |
Downsize |
ncol |
Downsize |
nrow |
Downsize |
Details
Use the help_downsize function to get more help.
If the downsize argument is TRUE, a downsized replacement
for big will be returned. In this case, argument small takes precedence
over subsetter arguments such as dim, length, nrow, and ncol.
That is, if small is not NULL, then small will be returned even if
dim is not NULL.
If the downsize argument is not set
manually, the downsize global option will be used. The downsize global option
can be toggled with functions test_mode and production_mode.
Value
A downsized object if downsize is TRUE and big otherwise.
See Also
help_downsize, test_mode,
production_mode, my_mode