Re: [R] Import multiple tif raster

2024-04-18 Thread Ivan Krylov via R-help
В Thu, 18 Apr 2024 11:08:33 +0200 SIBYLLE STÖCKLI via R-help пишет: > > #to check the index numbers of all imported raster list elements > > allrasters > list() > > > > #call single raster element > > allrasters[[1]] > Error in allrasters[[1]] : subscript out of bounds `allrasters` is an

Re: [R] missing() fails to detect missing

2024-04-18 Thread Peter Dalgaard via R-help
I'm not really sure how verboten it is to have methods that omit "...". The code seems to be instrumented to handle that case. The catch is that it does so by inserting a call to .local where .local is the method function, e.g. if you insert a browser() call at the start of the method, you'll

[R] Import multiple tif raster

2024-04-18 Thread SIBYLLE STÖCKLI via R-help
Dear community My aim is to import multiple .tif raster files using the help here: https://stackoverflow.com/questions/52746936/how-to-efficiently-import-multi ple-raster-tif-files-into-r Does anyone now about the error "subscripts out of bounds"? I am not sure about the check with alllrasters:

Re: [R] Import multiple tif raster

2024-04-18 Thread SIBYLLE STÖCKLI via R-help
Dear Ivan Thanks a lot. I tried now to provide the full path. However probably the "ö" in the path produces the error, would that be possible? > #first import all files in a single folder as a list > rastlist <- list.files(path = "C:\Users\Sibylle >

Re: [R] [Tagged] Re: Import multiple tif raster

2024-04-18 Thread Jeff Newmiller via R-help
Your original code with relative path would also work if you did not put the leading slash. On April 18, 2024 10:04:04 AM PDT, "SIBYLLE STÖCKLI via R-help" wrote: >Dear community >Dear Ivan > >Thanks a lot. The code works now. Solution: direct and full path to the .tif >files. >I confused

Re: [R] Import multiple tif raster

2024-04-18 Thread Ivan Krylov via R-help
В Thu, 18 Apr 2024 19:04:04 +0200 пишет: > Solution: direct and full path to the .tif files. > I confused back and forward slash Congratulations on solving the problem yourself! Here's a few more options that could be useful in the future: 1. Double the backslashes. Between single quotes

Re: [R] Import multiple tif raster

2024-04-18 Thread SIBYLLE STÖCKLI via R-help
Dear community Dear Ivan Thanks a lot. The code works now. Solution: direct and full path to the .tif files. I confused back and forward slash #first import all files in a single folder as a list rastlist <- list.files(path = "C:/Users/Sibylle

[R] Tidyverse/dplyr solution for filling values of a tibble/dataframe from a column with a nested list.

2024-04-18 Thread Deramus, Thomas Patrick
Hi experts. I have a tibble​ with a column containing a nested list (>>​ data type to be specific). Looks something like the following (but in R/Arrow​ format): ID Nestedvals 001 [[1]](1,0.1)[[2]](2,0.2)[[3]](3,0.3)[[4]](4,0.4)[[5]](5,0.5) 002 [[1]](1,0.1)[[2]](2,0.2)[[3]](3,0.3)[[4]](4,0.4)