Is this an Excel file?

isExcelFile(filepath)

Arguments

filepath

(vector of) path(s) to the file(s) to be checked for .xls or .xlsx extension

Value

(vector of) logical.