search for: read_sf

Displaying 5 results from an estimated 5 matches for "read_sf".

2024 Aug 24
1
paired raster boxplots
Dear Ivan Dear community Quite nice book recommendation. Yes indeed my raster "s" (the shape file for the boxplot classes) has several layers. That's way I tried to select a layer by " s<-sf$Unterregio". > sf <- read_sf("C:/Users/....._BiogeoRegion.shp") > names(sf) > names(sf) [1] "RegionNumm" "RegionName" "Unterregio" "Unterreg_1" "ObjNummer" "Version" "Shape_Leng" "Shape_Area" "DERegionNa" "FRReg...
2023 Nov 20
1
Calculating volume under polygons
...ore than happy if anyone could help me. I provided codes at the end of this email. Sincerely ########################################################################################## library(raster); library(sf) # Load the DEM raster and shapefile r <- raster("E:/Base1.tif") p <- read_sf(dsn = "E:/Sites.shp", layer = " Sites") # Extract the values of the DEM raster for each polygon values <- extract(r, p) Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'addAttrToGeom': sp support...
2024 Aug 23
1
paired raster boxplots
? Fri, 23 Aug 2024 10:15:55 +0200 <sibylle.stoeckli at gmx.ch> ?????: > > s<-sf$Unterregio > > r<-allrasters_pres[[1]] > > > > > > rs <- stack(r, s) > > names(rs) <- c('r', 's') > Error in `names<-`(`*tmp*`, value = c("r", "s")) : > incorrect number of layer names It looks like at least one
2024 Aug 23
1
paired raster boxplots
...path ="C:/Users/...._bee_RCP85P2", pattern='.tif$', all.files= T, full.names= T) > > > #import all raster files in folder using lapply > allrasters_pres <- lapply(rastlist_pres, raster) > allrasters_RCP85P2 <- lapply(rastlist_RCP85P2, raster) > sf <- read_sf("C:/Users/....._BiogeoRegion.shp") > names(sf) > names(sf) [1] "RegionNumm" "RegionName" "Unterregio" "Unterreg_1" "ObjNummer" "Version" "Shape_Leng" "Shape_Area" "DERegionNa" "FRReg...
2024 Aug 22
1
paired raster boxplots
? Thu, 22 Aug 2024 08:46:03 +0200 SIBYLLE ST?CKLI via R-help <r-help at r-project.org> ?????: > rr2s <- stack(r, r2,s) > > names(rs) <- c('r', 's', 'r2') > > Error in `names<-`(`*tmp*`, value = c("r", "s", "r2")) : > > incorrect number of layer names The error must be happening because the variable