Commit 343daa08 authored by Michel Juillard's avatar Michel Juillard
Browse files

initial files

parents
name = "TimeDataFrame"
uuid = "ff13af16-2f41-468a-a2e1-aff5c43aabf7"
authors = ["michel "]
version = "0.1.0"
module TimeDataFrame
import DataFrame
import Periods
struct TimeDataFrame
data::DataFrame
continuous::Bool
frequency::Periods.Frequency
end;
function TimeDataFrame(dataframe::DataFrame, frequency::Periods.Frequency, firstperiod)
data = dataframe
continuous = True
data.Periods = [Periods(firstperido + i - 1, 0, Periods.Year) for i in 1:dataframe.nrow]
TimeDataFrame(dataframe, true, frequency)
end
end # module
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment