I'm trying to read multiple .asc files in R so I can perform some analyses later on them. I'm using this code:
library(raster)
list_file <- list.files ("C:\\Users\\Areej\\Documents\\Gibbon_bangladesh\\Bangladesh_Env_Vs_30s_ascii_R\\",
pattern ".asc", full.names = T)
gibbon <- stack(file_list)
gibbon
but it shows me unexpected token for the ".asc" part in the code