scripts/split.R

split_day <- function(df){
  df$<- lubridate::day(df$观测日期)
  return(df)
}

split_ym <- function(df){
  df$观测年月 <- paste(df$年份,df$月份,sep = "-")
  return(df)
}

split_md <- function(df){
  df$<- lubridate::month(df$观测日期)
  df$<- lubridate::day(df$观测日期)
  df$月日 <- paste(df$,df$,sep="-")
  return(df)
}
ahorawzy/Mreport documentation built on May 3, 2019, 3:40 p.m.