Description Usage Arguments Details Value Examples

Extends '[' and '[<-' from the base array class for the Tensor class. Works exactly as it would for the base 'array' class.

1 2 3 4 5 |

`x` |
Tensor to be subset |

`i, j, ...` |
indices that specify the extents of the sub-tensor |

`drop` |
whether or not to reduce the number of modes to exclude those that have '1' as the mode |

`value` |
either vector, matrix, or array that will replace the subtensor |

`x[i,j,...,drop=TRUE]`

an object of class Tensor

1 2 3 4 5 6 7 8 9 |

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.