rEDM icon indicating copy to clipboard operation
rEDM copied to clipboard

README.md tutorial, output turning out null.

Open Falnesio opened this issue 5 years ago • 1 comments

Is this suppose to turn out like this?

> predictions <- na.omit(output$model_output[[1]])
Warning message:
In is.na(object) : is.na() applied to non-(list or vector) of type 'NULL'
> output
[[1]]
[[1]]$params
   E tau tp nn
1 10   1  1 11

[[1]]$model_output
    time     obs     pred pred_var
1      2   309.6      NaN      NaN
2      3   312.7      NaN      NaN
3      4   312.2      NaN      NaN
4      5   316.1      NaN      NaN
5      6   318.2      NaN      NaN
6      7   317.8      NaN      NaN
7      8   320.2      NaN      NaN
8      9   324.2      NaN      NaN

Falnesio avatar Jan 29 '19 22:01 Falnesio

@Falnesio, can I ask what version of the package you're running? It looks like you may be using an older version, and we've changed how the outputs are structured.

My recommendation is to install the latest version directly from GitHub:

# install.packages("remotes")
remotes::install_github("ha0ye/rEDM")

ha0ye avatar May 04 '19 17:05 ha0ye