[.mixopt_list {mixopt} | R Documentation |
Index mixopt_list
Description
Avoid standard list indexing which returns list for single index.
Usage
## S3 method for class 'mixopt_list'
x[i, value]
Arguments
x |
x |
i |
i |
value |
value |
Value
value at index
Examples
a <- list(1,4,'c', 'g')
class(a) <- "mixopt_list"
a
a[3]
a[2:3]
a[-(2:3)]
as.data.frame(a)
b <- as.mixopt_list(c(1,2,3,4,5))
sum(b)
b^2
b+b
b-b
b*b
b/b
c(b)
c(b, b)
c(b, 1)
c(1, b)
c(a, b, a)
c_mixopt_list(0, 1, 2, 3, 4, a, 5, 6, 7, 8, b, 9)
c_mixopt_list(NULL, 3, NULL, a, NULL, 66666, NULL, b)
[Package mixopt version 0.1.2 Index]