seq_fct {mrgsim.sa}R Documentation

Generate a sequence by fold increase and decrease from a point

Description

Generate a sequence by fold increase and decrease from a point

Usage

seq_fct(point, n = 5, factor = c(3, 3), geo = TRUE, digits = NULL)

Arguments

point

a numeric vector of length 1.

n

number of elements in the sequence.

factor

an integer vector of length 1 or 2; if length 1, values will be recycled to length 2; the first number used to divide point to generate the minimum value in the sequence; the second number is used to multiply point to generate the maximum value in the sequence.

geo

if TRUE, seq_geo() is used to generate the sequence; otherwise, seq_even() is used to generate the sequence.

digits

number of significant digits in the answer; if NULL (the default) all digits are retained.

Examples

seq_fct(10)

seq_fct(10, n = 4, factor = 2)

seq_fct(10, n = 4, factor = 2, geo = TRUE)


[Package mrgsim.sa version 0.2.0 Index]