R/time.rwl.R

Defines functions `time<-.crn` `time<-.rwl` time.crn time.rwl

Documented in time.crn time.rwl

time.rwl <- function(x,...){
  as.numeric(rownames(x))
}

time.crn <- function(x,...){
  as.numeric(rownames(x))
}


# creating the method for `time.rwl<-` and `time.crn<-`
`time<-` <- function (x, value) {
  UseMethod("time<-")
}

`time<-.rwl` <- function(x, value){
  row.names(x) <- value
  x
}

`time<-.crn` <- function(x, value){
  row.names(x) <- value
  x
}
AndyBunn/dplR documentation built on April 20, 2024, 10:33 p.m.