magic {oce}R Documentation

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.

Details

This function tries to infer the file type from the first line.

Value

A character string indicating the file type, or "unknown", if the type cannot be determined.

Author(s)

Dan Kelley

See Also

This is used mainly by read.oce.


[Package oce version 0.1-76 Index]