downsize | R Documentation |
downsize
. Main function of the downsize
package.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.
downsize(
big,
small = NULL,
downsize = getOption("downsize"),
warn = TRUE,
random = FALSE,
length = NULL,
dim = NULL,
ncol = NULL,
nrow = NULL
)
big |
Object to return if |
small |
Object to return if |
downsize |
|
warn |
|
random |
If |
length |
Downsize |
dim |
Downsize |
ncol |
Downsize |
nrow |
Downsize |
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
.
A downsized object if downsize
is TRUE
and big
otherwise.
help_downsize
, test_mode
,
production_mode
, my_mode
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.