I am using the 'try' function to create some subsets but I cannot manage to keep only the results taht worked with the 'try' function. Below is the line of code I have.
list_shp_Deforested_2000_Africa <- lapply(list_shp_FC_Africa, function(x){try(x[x$D_90_00!=100,],)})
Does somebody know the function which will allow me to keep only the result that worked? Thanks for your help?