Error in Multi-Scale LASP Example Code?

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

Error in Multi-Scale LASP Example Code?

Postby klhefty » Tue Sep 24, 2019 3:41 am

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
klhefty
 
Posts: 3
Joined: Tue Jan 15, 2019 6:41 pm

Re: Error in Multi-Scale LASP Example Code?

Postby jlaake » Tue Sep 24, 2019 10:05 am

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?
jlaake
 
Posts: 1479
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: Error in Multi-Scale LASP Example Code?

Postby klhefty » Tue Sep 24, 2019 2:08 pm

Ah, you were absolutely right. I updated Mark and was able to get the code to run. Thanks so much!
klhefty
 
Posts: 3
Joined: Tue Jan 15, 2019 6:41 pm


Return to RMark

Who is online

Users browsing this forum: No registered users and 1 guest

cron