x <- dual( matrix(c(1,0,2,3,2,4), 2, 3) )
dim(x)
length(x)
rownames(x) <- c("L1", "L2")
x
d(x, "x1.1")
# modifying dim is the recommended way to change dual object shape
dim(x) <- NULL
x
# back to matrix shape
dim(x) <- c(2, 3)
x
Run the code above in your browser using DataLab