You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newer version of asreml seems to have an header.
In that case check that indeed first line is all character or not all numeric, then proceed with the logic of skipping the header in fread.
suggestion from chatgpt (too redundant IMO, see if can be improved):
Read the first line of the file
first_line <- readLines(infile, n = 1)
Check if the first line contains numeric data
if (all(is.numeric(scan(text = first_line, quiet = TRUE)))) {
First line contains numeric data, no header, skip = 0
No description provided.
The text was updated successfully, but these errors were encountered: