putjulian {INQC}R Documentation

Merges julian days

Description

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

Usage

putjulian(x)

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

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)

[Package INQC version 2.0.5 Index]