I have 58 ascii layers and want to crop them to the same extent with the "raster" R p
Here is my code:
library(raster)setwd("D:/Work data/Medicago/Paper_AlfalfaLandscapeGenetics/AlfalfaLandscapeGenetics_Rproject/data")#Input variables######################The layers must have a similar extent. We will first crop them all to the same extent.#Read files found in the working directory containing *.ascraster_data
Here is my code:
library(raster)setwd("D:/Work data/Medicago/Paper_AlfalfaLandscapeGenetics/AlfalfaLandscapeGenetics_Rproject/data")#Input variables######################The layers must have a similar extent. We will first crop them all to the same extent.#Read files found in the working directory containing *.ascraster_data