sequence_helpers

0th

Percentile

Sequence Construction Helpers

seq_row() creates a sequence along the number of rows of x, seq_col() a sequence along the number of columns of x. seq_len0() and seq_along0() are the 0-based counterparts to base::seq_len() and base::seq_along().

Usage
seq_row(x)

seq_col(x)

seq_len0(n)

seq_along0(x)

Arguments
x

:: any Arbitrary object. Used to query its rows, cols or length.

n

:: integer(1) Length of the sequence.

Aliases
  • sequence_helpers
  • seq_row
  • seq_col
  • seq_len0
  • seq_along0
Examples
# NOT RUN {
seq_len0(3)
# }
Documentation reproduced from package mlr3misc, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.