typed-assign {rtype} | R Documentation |
Assign with type checking
Description
Assign with type checking
Usage
atomic(x, ...) <- value
integer(x, ...) <- value
numeric(x, ...) <- value
double(x, ...) <- value
logical(x, ...) <- value
character(x, ...) <- value
raw(x, ...) <- value
complex(x, ...) <- value
matrix(x, ...) <- value
array(x, ...) <- value
list(x, ...) <- value
pairlist(x, ...) <- value
envir(x, ...) <- value
name(x, ...) <- value
symbol(x, ...) <- value
call(x, ...) <- value
factor(x, ...) <- value
fun(x, ...) <- value
expression(x, ...) <- value
language(x, ...) <- value
object(x, ...) <- value
table(x, ...) <- value
recursive(x, ...) <- value
vector(x, ...) <- value
data.frame(x, ...) <- value
null(x, ...) <- value
check(x, ...) <- value
Arguments
x |
symbol |
... |
additional conditions taking the following forms: 1. 2. 3. a |
value |
value to be assigned |
Examples
## Not run:
x <- 10L
atomic(x) <- 20
numeric(x) <- 10
numeric(x, length = 10L) <- 1:10
cond1 <- function(x) mean(x) <= 5
numeric(x, cond1) <- 0:9
## End(Not run)
[Package rtype version 0.1-1 Index]