Math.struct_list | R Documentation |
abs, sign, sqrt, floor, ceiling, trunc, round, signif exp, log, expm1, log1p, cos, sin, tan, cospi, sinpi, tanpi, acos, asin, atan, cosh, sinh, tanh, acosh, asinh, atanh lgamma, gamma, digamma, trigamma cumsum, cumprod, cummax, cummin
## S3 method for class 'struct_list'
Math(x, ...)
# example code
abs.test = function(x,...) {
x$a = abs(x$a)
return(x)
}
x = struct(a=-1,b=2,c=1:3,.class="test")
y = struct(a=4,b=5,c=1:3,.class="test")
abs.test(x[[1]])
# TODO: further testing
# abs(rep(c(x,y),5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.