Dealing with missing files in a directory [on hold]

المشرف العام

Administrator
طاقم الإدارة
So ive created a function to create the names of raster files I am going to sum together. The list it self works great, and is the exact format I want but as soon as my function hits a missing file (sometimes the measurements werent taken on a certain day) it creates an error. So my question is: is there anyway to tell R within my function to ignore missing files that correspond with the list of file names created by my function? Im looking for something similar to omitting NAs from a dataset but instead of NAs, I am missing some odd days of measurements.



أكثر...
 
أعلى