putjulian: Merges julian days

Description Usage Arguments Value Examples

View source: R/putjulian.R

Description

This function merges julian days to a yyyy,mm,dd and data

Usage

1

Arguments

x

data frame with year, month, day and data columns

Value

the same data frame with added 1 column: year, month, day, julian and data

Examples

1
2
3
4
5
6
7
8
date<-c('20201230','20201231','20210101')
value<-c(-10,-12,-9)
df<-data.frame(date,value)
year<-as.numeric(substring(date,1,4))
month<-as.numeric(substring(date,5,6))
day<-as.numeric(substring(date,7,8))
x<-data.frame(year,month,day,date,value)
y<-putjulian(x)

INQC documentation built on May 24, 2021, 5:07 p.m.