Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 125947

Statistical computing language and software environment.

0 votes
1 answer
353 views

How I can read a shapefile with R. I have few errors with readOGR

I have a problem with reading my shapefile. The error: Cannot open data source In addition: Warning messages: 1: In normalizePath(path.expand(path), winslash, mustWork) : path[1]="D:/Pent …
Alex.V's user avatar
  • 53
3 votes
2 answers
6k views

Read multiple layers raster from ncdf file using terra package

So, I tried: r <- terra::rast(r1,nlyrs=nlyr(4))## I have a error :unable to find an inherited method #for function ‘nlyr’ for signature ‘"numeric"’ I tried : r <- terra::rast(r1, 1) ## no error … I have this : uat$ex <- terra::extract(r,vect(uat), fun = mean, na.rm =T)[,2] ### error: [extract] raster has no value …
Alex.V's user avatar
  • 53
2 votes

Read multiple layers raster from ncdf file using terra package

having 60 layers (it's a raster with one single variable for 60 years), the variable name is "cdd" names(rss) <- "cdd" ## not necessary r1 <- terra::rast(rss,subds = "cdd") ## select the variable name r
Alex.V's user avatar
  • 53