| new_rvec_deprecated | R Documentation |
new_rvec(x = double(), length = 0, n_draw = 1000)
x |
Object with the intended type.
Default is |
length |
Desired length of rvec.
Default is |
n_draw |
Number of draws of rvec.
Default is |
Create an rvec, consisting entirely of NAs,
with a given length and number of draws.
The type of the object is taken from x.
If typeof(x) is "integer", for instance,
then new_rvec() returns an object
of class "rvec_int".
An rvec.
new_rvec_chr(),
new_rvec_dbl(),
new_rvec_int(),
new_rvec_lgl() Replacements for rvec_new()
rvec() rvec_chr(), rvec_dbl(), rvec_int(), rvec_lgl()
Create an rvec from data.
n_draw() Query number of draws.
suppressWarnings({
new_rvec()
new_rvec(TRUE, length = 3, n_draw = 100)
x <- new_rvec(length = 2)
x[1] <- rnorm_rvec(n = 1, n_draw = 1000)
x[2] <- runif_rvec(n = 1, n_draw = 1000)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.