Closed orb16 closed 1 year ago
I noticed the example was not correct and the package had some issues as well. First of all, please reinstall the packages from the development versions:
library(devtools)
install_github(repo = "ropensci/taxlist", ref = "devel")
install_github(repo = "kamapu/vegtable", ref = "devel")
Afterwards, restart your R session.
In your code, you are missing the formula (which is rather documented for function crosstable()
) and the argument header
(I have to write a method working with missing header; see #27 ).
For instance do:
library(vegtable)
vegetation <- Kenya_veg[1:20, ]
vegetation <- cover_trans(x = vegetation, to = "cover_percent", rule = "middle")
write_juice(data = vegetation, file = "SWEA",
formula = cover_percent ~ ReleveID + AcceptedName, FUN = mean,
header = c("ReleveID", "COMM_TYPE"))
I hope, it helps
Hi there
Just installed vegtable.
Tried loading the data (no problem) and then the write_juice function and got an error:
Any hints?