txm676 / gambin

The gambin R package
3 stars 3 forks source link

Add rgambin example to man pages #10

Closed csgillespie closed 6 years ago

csgillespie commented 6 years ago
x = rgambin(1e6, alpha = 2, maxoctave = 7) 

x = table(x)
freq = as.vector(x)
values = as.numeric(as.character(names(x)))
abundances = data.frame(octave=values, species = freq)

fit_abundances(abundances, no_of_components = 1)
txm676 commented 6 years ago

done

csgillespie commented 6 years ago

Thanks! I was planning on doing this (when I found a minute)

Cheers