c | R Documentation |
Methods have been defined in order to allow the concatenation of 'dual' objects together and with constant objects.
## S4 method for signature 'numericOrArray'
c(x, ...)
x |
first object to concatenate |
... |
other objects |
an object of class dual.
x <- dual( 1 )
# concatenation with a constant
x <- c(x, 2)
x
d(x)
# concatenation of dual objects
x1 <- sum(x)
x2 <- sum(x**2)
y <- c(a = x1, b = x2) # you can use named arguments
y
d(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.