Description Usage Arguments Value Examples
Create a data.table of storm tracks from a file.
1 | read_tracks(filename = NULL, var_names = NULL)
|
filename |
Input file name |
var_names |
Vector of variable names to construct column names of the data table. |
A data.table with columns id, date, lat, lon, var, and possibly further variables measured along the track (mslp, precip, ...)
1 2 3 | storms_file = system.file('extdata', 'storms.txt', package='realstorms')
## or during testing: storms_file = '../inst/extdata/storms.txt'
trx = read_tracks(storms_file, var_names=c('vor850', 'mslp', 'speed', 'precip', 'omega'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.