You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
layerCor(b, fun = cor) had worked in the past, but does not anymore:
library(terra)
#> terra 1.7.67b<- rast(system.file("ex/logo.tif", package="terra"))
# works
layerCor(b, "pearson")
#> $correlation#> red green blue#> red 1.0000000 0.9980961 0.9501633#> green 0.9980961 1.0000000 0.9658011#> blue 0.9501633 0.9658011 1.0000000#> #> $mean#> red green blue#> red NaN 182.2855 182.2855#> green 185.3509 NaN 185.3509#> blue 192.8046 192.8046 NaN#> #> $n#> red green blue#> red NaN 7777 7777#> green 7777 NaN 7777#> blue 7777 7777 NaN# fails (but worked in the past versions)
layerCor(b, fun=cor)
#> Error: object 'mat' not found
The text was updated successfully, but these errors were encountered:
layerCor(b, fun = cor)
had worked in the past, but does not anymore:The text was updated successfully, but these errors were encountered: