fibonacci: Print Fibonacci sequence

Description Usage Arguments Details Value

View source: R/fibonacci.R

Description

This function prints the Fibonacci numbers between the positions n1 and n2. Here the 'n1' and 'n2' are natural numbers.

Usage

1
fibonacci(n1 = 1, n2 = 5)

Arguments

n1

is a natural number, the first element of the sequence to be printed.

n2

also a natural number, the last element of the sequence to be printed.

Details

This is just an initial test for constructing R packages using git and GitHub on-line.

Value

A vector containing Fibonacci numbers between n1 and n2.


ghesteves/testeR documentation built on March 7, 2021, 3:48 p.m.