Description Usage Arguments Details Value Author(s) See Also Examples

Indexing of tensors allows beside the ordinary selection of ranges of indices the renaming of indices. The functions are mainly here to keep the the tensor property of the results.

1 2 3 4 5 6 | ```
slice.tensor(X,i,what,drop=FALSE)
## Methods for class tensor
# X[...,drop=TRUE]
# X[...,drop=TRUE] <- value
# X[[...,drop=TRUE]]
# X[[...,drop=TRUE]] <- value
``` |

`X` |
A tensor |

`i` |
an index given as number or character |

`what` |
levels of the index, a number or a character from dimnames |

`drop` |
a boolean, if true, indices with only a single level are removed |

`...` |
arguments of the form |

The functions allow to rename dimensions and to take select a part of the tensor.

a new tensor with dimensions renamed or individual levels selected

K. Gerald van den Boogaart

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.