Skip to contents

Returns a dataframe with Lden

Usage

LdenCalculator(dataframe, variable, type = "daily", ...)

Arguments

dataframe

is a dataframe

variable

is name of variable

type

is "daily" or "total"

...

is another arguments

Value

dataframe with Lden values

Author

Pasquale Scordino p.scordino@arpa.piemonte.it

Simone Sperotto s.sperotto@arpa.piemonte.it

Examples

#data("exampleHourlyData")

LdenCalculator(dataframe = exampleHourlyData, variable = "leq",
               type = "daily")
#> # A tibble: 81 × 6
#>    date       D_acu     D     E     N  Lden
#>    <fct>      <dbl> <dbl> <dbl> <dbl> <dbl>
#>  1 2020-12-11  69.9  70.4  66    NA    NA  
#>  2 2020-12-12  69.4  69.7  65.6  56.1  68.9
#>  3 2020-12-13  69    69.3  65.4  54.9  68.4
#>  4 2020-12-14  69.6  70    64.9  56.5  69.1
#>  5 2020-12-15  69.7  70.1  65.1  56.5  69.2
#>  6 2020-12-16  70.3  70.7  65.4  56.9  69.7
#>  7 2020-12-17  70.1  70.5  65.9  57.4  69.7
#>  8 2020-12-18  69.6  69.8  66.7  57.2  69.3
#>  9 2020-12-19  69.1  69.4  66.1  56.6  68.9
#> 10 2020-12-20  69.2  69.5  66.5  54.7  68.7
#> # ℹ 71 more rows

LdenCalculator(dataframe = exampleHourlyData, variable = "leq",
               type = "total")
#> # A tibble: 1 × 4
#>       D     E     N  Lden
#>   <dbl> <dbl> <dbl> <dbl>
#> 1  69.8  66.3  57.6  69.4