csgillespie / poweRlaw

This package implements both the discrete and continuous maximum likelihood estimators for fitting the power-law distribution to data. Additionally, a goodness-of-fit based approach is used to estimate the lower cutoff for the scaling region.
109 stars 24 forks source link

Bug in lines method #4

Closed csgillespie closed 11 years ago

csgillespie commented 11 years ago

Hi I think I have found another small bug. I think line8 of *lines-methods.R should refer be:

y = dist_cdf(x, x_axs, FALSE)

rather than

y = dist_cdf(m, x_axs, FALSE)

This causes the lines function to fail if you are not calling it with a variable named m.

Best regards

csgillespie commented 11 years ago

Fixed in version 0.5.1