I have created plurigaussian simulation. How can I export the samples data generated into .txt file (as an arrays) in order to manipulate it in Python?
- Code: Select all
```{r}
write.table(outgrid2, file = "PGS.txt", sep = "\t",
row.names = TRUE, col.names = NA)
```
Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class ‘structure("db", package = "RGeostats")’ to a data.frame
Also, I wish to ask if there is an interface of Rgeostats in Python or a way to link it with Jupyter notebook?
Your help will be greatly appreciated, thanks.
Miora