Learn R Programming

enhancer (version 1.1.0)

logspace: Decreasing logarithmic trend

Description

logspace creates a vector with decreasing logaritmic trend.

Usage

logspace(x, p=2)

Value

$res

a vector of length n with logarithmic decrease trend.

Arguments

x

sequence of values to pass through the function.

p

power to be applied to the values.

Author

Giovanny Covarrubias-Pazaran

References

Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744

Examples

Run this code

plot(logspace(1:100,p=1))
plot(logspace(1:100,p=2))
plot(logspace(1:100,p=3))

Run the code above in your browser using DataLab