magic {oce} | R Documentation |
Find the type of an oceanographic data file, by examining the first line.
magic(file)
file |
a connection or a character string giving the name of the file to be checked. |
This function tries to infer the file type from the first line.
A character string indicating the file type, or "unknown"
, if the type cannot be determined.
Dan Kelley
This is used mainly by read.oce
.