slices: Return vector of values from given interval

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/slicesDeprecated.R

Description

Returns an ordered vector of values from given interval, of given size, generated by equal steps.

Usage

1
slices(from, to, n)

Arguments

from

The lower bound of the interval.

to

The upper bound of the interval.

n

The length of the vector to be produced.

Details

Returns a vector of values from from to to (inclusive), with equal difference between two consecutive values, with total length n. Function is useful e.g. together with the pbld or defuzz functions (for the values argument; see also lcut or fcut) or defuzz).

Value

A vector of numbers in the given interval and size.

Author(s)

Michal Burda

See Also

pbld, defuzz, fcut, lcut

Examples

1
2
3
4
5
6
## Not run: 
    slices(1, 5, 10) # 1, 1.5, 2, 2.5, 3, 3.5 4, 4.5, 5

## End(Not run)
# is the same as
seq(1, 5, length.out=10)

beerda/lfl documentation built on Oct. 17, 2020, 8:57 p.m.