Skip to main content

AsPOSIXct

Trait AsPOSIXct 

Source
pub trait AsPOSIXct {
    // Required method
    fn as_posixct(&self) -> Result<SEXP, AsCoerceError>;
}
Expand description

Trait for types that can be coerced to POSIXct via as.POSIXct().

The result should be an R POSIXct object (numeric with “POSIXct”, “POSIXt” class).

Required Methods§

Source

fn as_posixct(&self) -> Result<SEXP, AsCoerceError>

Convert to an R POSIXct.

Implementors§