linspace: Returns evenly spaced numbers.

Description Usage Arguments Value Examples

View source: R/arrays.R

Description

This wraps seq trivially. What can I say, I like the Numpy API.

Usage

1
linspace(start, stop, num = 15)

Arguments

start

base^start is the starting value of the sequence

stop

base^stop is the final value in the sequence

num

Number of sequence elements to generate. Default is 15.

Value

Linearly spaced sequence from start to stop

Examples

1
linspace(-5, 5)

alexpghayes/hayeslib documentation built on Nov. 6, 2018, 10:49 p.m.