Transfer multiple days of load vector of one household into one matrix with each row presents a daily observation.

load.daily(loadsample, load.date, num.obs)

Arguments

loadsample

A numeric vector that demonstrates load profile of a household. It can be a yearly/seasonally/monthly or even several days' load vector.

load.date

A vector of characters with the form 'yyyy-mm-dd', which presents the corresponding date vectors of the "loadsample".

num.obs

An integer which presents the number of observations on each day.

Value

loadsample --- A numeric matrix with each row presents a daily observations.

Examples

### Import the load profiles. # data("loadsample") # ### Get the load profile matrix of the household X1. # loadsample.X1<-load.daily(loadsample$X1, load.date=loadsample$date, num.obs=48)