Description Usage Arguments Details Value Examples
Reformat standard RAStestR fields as standard R data types.
1  | reformat_fields(ld, time.col = "Time", station.col = "Station")
 | 
ld | 
 A data table.  | 
time.col | 
 The time column name.
To skip formatting the times, set to   | 
station.col | 
 (For long tables) The station column name. 
To skip formatting the stations, set to   | 
Values in the Time column are formatted as R timestamps (POSIXct). No adjustments for daylight savings or leap years are made. Values in the Station column of long-format tables are converted to numeric values.
The data table with reformatted fields.
1 2 3 4 5 6 7  | simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
  package = "RAStestR")
quasi.flow = read_standard(simple.quasi, "Flow")
reformat_fields(quasi.flow)
long.flow = to_longtable(quasi.flow, "Flow")
reformat_fields(long.flow)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.