fibonacci: Fibonacci series

View source: R/common_lib.R

fibonacciR Documentation

Fibonacci series

Description

It retrieves a vector containing the first N numbers specified in 'length' parameter of the Fibonacci series.

Usage

fibonacci(length, remove_first = FALSE)

Arguments

length

data frame

remove_first

removes the first value of the series, because first 2 elements are the same (number=1). False by default.

Value

vector

Examples

# Get the first 4 elements of Fibonacci series
fibonacci(4)

funModeling documentation built on May 29, 2024, 3:24 a.m.