GeomProg | R Documentation |
The function generates a sequence of numbers which follow an geometric progression and which can be tuned by the function arguments
GeomProg(r=3, n=10)
GeomProg(st=5, r=3, n=10)
st |
The starting point of your geometric progression set to a default of one |
n |
Defines the length of the vector returned by the function (or defines how many terms are present in the proghression) |
r |
Defines the ratio with which the geometric series progresses |
The function always returns a vector. There are no other return types or no way to tune the return type in this function.
The return type of the function is always a vector
Chitran Ghosal
v1 <- GeomProg(r=3, n=10)
v1
v2 <- GeomProg(st<-7, r=3, n=10)
v2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.