Page 1 of 1

Error in Multi-Scale LASP Example Code?

PostPosted: Tue Sep 24, 2019 3:41 am
by klhefty
Hello,

I'm interested in running a multi-scale model similar to example given for the LASP dataset. However, each time I attempt to run the example code for the LASP dataset I get these errors:


ERROR -- Type of input matrix: í, S, p, r, c, N, Nbar, Nstar, U, F, F', Gamma, Gamma', Gamma'', R, R', f, M, Lambda, Psi, pent, pi, Omega, a'', a', or Delta was not specified.
Error in matrix(real[model$pims[[parameter]][[j]]$pim], nrow = dim(model$pims[[parameter]][[j]]$pim)[1]) :
'data' must be of a vector type, was 'NULL'


I copied the example code from: https://rdrr.io/cran/RMark/man/larksparrow.html

I have also attempted to use the same code on my own dataset and am running into the same errors. Is there an error in these lines of code or have I gone wrong somewhere on my end? Thank you!

Kira

Re: Error in Multi-Scale LASP Example Code?

PostPosted: Tue Sep 24, 2019 10:05 am
by jlaake
Are you saying the following did not work?

Code: Select all
 library (RMark)
example(LASP)


If that doesn't work, let me know which version of MARK and RMark you are using. If it does work then I'm not sure what you are doing that is causing the problem. Are you using tbl's instead of a data frame?

Re: Error in Multi-Scale LASP Example Code?

PostPosted: Tue Sep 24, 2019 2:08 pm
by klhefty
Ah, you were absolutely right. I updated Mark and was able to get the code to run. Thanks so much!