Description Usage Arguments Value Slots Creating Objects Methods Author(s) See Also Examples

The `rep_vt`

class simulates the behavior of the base function `rep`

without actually allocating memory for the duplication. Only the original vector and the expected length of the result are stored. All attributes of the original vector (including names) are dropped.

1 2 3 4 |

`x` |
A vector (of any mode). |

`times` |
The number of times to repeat the whole vector. |

`length.out` |
The desired length of the result. |

An object of class `rep_vt`

.

`data`

:The original vector.

`length`

:The expected length of the repeated virtual vector.

`rep_vt`

instances can be created through `rep_vt()`

.

Standard generic methods:

`x[i]`

:Get the elements of the uncompressed vector.

`x[[i]]`

:Get a single element of the uncompressed vector.

`length(x)`

:Get the length of the uncompressed vector.

Kylie A. Bemis

1 2 3 4 5 6 7 |

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.