Problems with persist-results.R

  • Asked
  • Active
  • Viewed 1234 times
0

After running all the chain with absolutely no errors and when I go to data > explorer tab in the app I find that the variables I created on the chain do actually exist (for example density, basal area, etc.) but they are completely empty. It happens the same when I export the data to an excel file. Anyone experienced something similar? Bests

0

Accepted answer

Dear Juak,

can you please check in RStudio project that 1) you have given the area scripts in the /sampling folder, and that 2) none of the result attributes is containing just NAs. If any of variables in your chain contains only NAs, then persists-results.R fails. Also 3) after running system/calculate-results.R, that "per hectare" result variables are ok, (i.e., if in your chain you have tree$tree_basal_area, there will be a new variable tree$tree_basal_area_ha)

I just test one of my chains and persists-results.R worked. If the problem gets not solved, please contact us again so we can look at your case in detail.

regards, Lauri (OF Arena Team)

0

Accepted answer

Hi Lauri,

thanks for your fast reply. I answer to your question one by one:

  • area scripts are there
  • there are some variables with some NAs but no variable contains only NAs
  • in my entity tree (example) when I check it on R I obtain satisfactory results in the variable called tree$basal__area__ha

My problem is that in R everything looks nice and when I run persist-results.R everything goes smooth but then nothing gets into my survey back in Arena.

Best regards, Jokin

Hi Jokin, try to replace all remaining NAs with 0.

-Lauri

Lauri (OF) Lauri (OF) ♦♦

Hi Lauri, I cleaned all the tables generated in R, example (treeResults) and no NAs are found there... I don't know what else to do.

Juak Juak
0

Accepted answer

Dear Jokin,

a new version of Arena has been released, with a fix that solves the problem reported. Thank you for reporting the issue.

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.