Learn R Programming

fluxfinder (version 1.1.0)

ffi_read_EGM4: Read an EGM-4 data file

Description

Read an EGM-4 data file

Usage

ffi_read_EGM4(file, year, tz = "UTC")

Value

A data.frame with the parsed data.

Arguments

file

Filename to read, character

year

Four-digit year of the data (EGM-4 output files have month, day, hour, and minute, but not year), numeric or character

tz

Time zone of the file's time data, character (optional)

Examples

Run this code
f <- system.file("extdata/EGM4-data.dat", package = "fluxfinder")
dat <- ffi_read_EGM4(f, 2023)
dat <- ffi_read_EGM4(f, 2023, tz = "EST") # specify time zone

Run the code above in your browser using DataLab