data.table to an sftimeConvert a data.table object to an sftime. x must be
a data.table object with "lon", "lat", and "time" columns to
describe the longitude, latitude, and time-orientation, respectively, of
x.
dt_as_mysftime(x, lonname, latname, timename, crs)an sftime object
a data.table
character for longitude column name
character for latitude column name
character for time column name
coordinate reference system
Eva Marques