Skip to contents

Shorthand to initialize one or more objects

Usage

init(..., value = NULL)

Arguments

...

variable names to initialize

value

value to initialize them to

Value

initialized objects set to the value specified

Examples

init(t,u,v)
message(t) # t = NULL
#> 
message(u) # u = NULL
#> 
message(v) # v = NULL
#> 
init(j,k,m,value = 7)
message(j) # j = 7
#> 7
message(k) # k = 7
#> 7
message(m) # m = 7
#> 7