C_sample2Diff | R Documentation |
diff2Hours
converts a difftime
object into its numeric
value with units = 'hours'
.
char2diff
converts a character description into a
difftime
object, following the code of
seq.POSIXt
.
sample2Hours
calculates the sampling time in hours described by a character
or a difftime
.
P2E
(power to energy) sums a series of power values (for
example, irradiance) to obtain energy aggregation (for example,
irradiation) using sample2Hours
for the units conversion.
diff2Hours(by)
char2diff(by)
sample2Hours(by)
P2E(x, by)
by |
A character for |
x |
A numeric vector. |
A numeric value or a difftime
object.
Oscar Perpiñán Lamigueiro
Sol
char2diff('min')
char2diff('2 s')
sample2Hours('s')
sample2Hours('30 m')
by1 <- char2diff('10 min')
sample2Hours(by1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.