Skip to contents

Compute mean data on periods

Usage

TNET_computeDaily(Data, hour_start = 1, hour_end = 24, na_perm = 1)

TNET_computeMonthly(Data, day_start = 1, day_end = 24, na_perm = 1)

TNET_computeAnnualy(Data, month_start = 1, month_end = 12, na_perm = 1)

TNET_computeMean(Data, period = "day", start, end, na_perm = 1)

Arguments

Data

Data to use in order to compute mean data

na_perm

If we want to remove NA's before computations

period

period on wich mean values must be computed. can be "day","month" or "year"

start

sub-period start in order to compute mean data. for exemple start = 8 with period = "day" will compute daily mean between 8h and 23h

end

sub-period end in order to compute mean data. for exemple end = 8 with period = "day" will compute daily mean between 00h and 8h

Value

mean data computed in data.table

Examples

TNET_computeMean(Data)
#> Error in TNET_computeMean(Data): could not find function "TNET_computeMean"