Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.
Ideally, with ECG .dat data you are willing and able to share.
In principle, you shouldn't have any issue loading most .dat files. read.table
is one function that can usually handle .dat files.