So I just started to use the library
rgrass7 from R and I got this error
Error in hist.default(v, main = main, plot = plot, ...) : invalid number of 'breaks'
Or, using the summary function, I get errors like:
NA's 1 1 1 1
So I was wondering what was wrong.Because I don't know if it's the function at this point or it's my GRASS session that is open, or anything at all.
The code that I used is pretty straightforward:
library(raster) library(rgdal) library(rgrass7) initGRASS(gisBase = "C:/GRASS/GRASS_GIS_7_3_svn", home = tempdir(), gisDbase = "C:/Users/user/Desktop/data", location = "Thesis", mapset = "user" override=T) my_vmaps=execGRASS("g.list", parameters = list(type = "vector", pattern = "precip*")) r1=readRAST(c("gera.1","gera.2","gera.3","gera.4")) r=brick(r1) hist(r$gera.1) summary(r) hist(r1 )