translate {narray} | R Documentation |
Translate an axis between two sets of identifiers
translate(x, along = 1, to, from = dimnames(x)[[along]], ..., FUN)
x |
A matrix |
along |
Along which axis to summarize |
to |
Names that this dimension should be summarized to |
from |
Names that match the dimension 'along' |
... |
Parameters passed to 'match' |
FUN |
Which function to apply, default is throwing error on aggregation |
A summarized matrix as defined by 'from', 'to'