dt_as_mysftime: Convert a 'data.table' to an 'sftime'

View source: R/manipulate_spacetime_data.R

dt_as_mysftimeR Documentation

Convert a data.table to an sftime

Description

Convert 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.

Usage

dt_as_mysftime(x, lonname, latname, timename, crs)

Arguments

x

a data.table

lonname

character for longitude column name

latname

character for latitude column name

timename

character for time column name

crs

coordinate reference system

Value

an sftime object

Author(s)

Eva Marques


amadeus documentation built on April 4, 2025, 12:21 a.m.