seqRg: Generate a regular sequence based on the range of a vector

View source: R/seqRg.R

seqRgR Documentation

Generate a regular sequence based on the range of a vector

Description

Generate a regular sequence based on the range of a vector

Usage

seqRg(x, n, offset = 0, prop = TRUE)

seqCol(df)

seqRow(df)

Arguments

x

a vector.

n

the number of values in the output sequence.

offset

extend or reduce the range .

prop

a logical. If TRUE, then offset is a proportion of the range, otherwise offset is used as is.

df

a data frame or a matrix.

Functions

  • seqCol(): a regular sequence based on the number of columns in a data frame.

  • seqRow(): a regular sequence based on the number of rows in a data frame.

Examples

seqRg(runif(10), 10)
seqRg(1:10, 10, .5)
seqCol(matrix(1, 3, 2))

inSileco/letiRmisc documentation built on Sept. 16, 2022, 2:19 p.m.