Skip to contents

Helper function to check if files already exist in the prism download directory. Determines if files have not been downloaded yet, i.e., returns TRUE if they do not exist.


prism_check(prismfiles, lgl = FALSE, pre81_months = NULL)



a list of full prism file names ending in ".zip".


TRUE returns a logical vector indicating those not yet downloaded; FALSE returns the file names that are not yet downloaded.


Numeric vector of months that will be downloaded, if downloading data before 1981. This is so that the existence of the data can be correctly checked, as the file includes all monthly data for a given year.


a character vector of file names that are not yet downloaded or a logical vector indication those not yet downloaded.