Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(raster)
- Pro <- function(s) {
- df <- stack(s)
- }
- files <- dir("path", recursive=TRUE, full.names=TRUE, pattern=".tif$")
- agg <- sapply(files, Pro)
- df <- as.data.frame(agg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement