My data set is very simple, just one variable "Step.length.in.mm", right now I try to use power law distribution package to get my Xmin and pars, my code is:
# install.packages("poweRlaw")
library("poweRlaw")
m=file$Step.length.in.mm
est=estimate_xmin(m)
m$setXmin(est)
The error message
Error: $ operator is invalid for atomic vectors
Can anyone tell me how to solve this?