Rdocumentation
powered by
Learn R Programming
oce (version 0.1-76)
magic: Find the type of an oceanographic data file
Description
Find the type of an oceanographic data file, by examining the first line.
Usage
magic(file)
Arguments
file
a connection or a character string giving the name of the file to be checked.
Value
A character string indicating the file type, or
"unknown"
, if the type cannot be determined.
Details
This function tries to infer the file type from the first line.
See Also
This is used mainly by
read.oce
.