D_as.data.tableY-methods {solaR2} | R Documentation |
Methods for Function as.data.tableY
Description
Convert a G0
, Gef
,
ProdGCPV
or ProdPVPS
object into a
data.table
object with yearly values.
Usage
## S4 method for signature 'G0'
as.data.tableY(object, complete=FALSE, day=FALSE)
Arguments
object |
A |
complete |
A logical. |
day |
A logical. |
Methods
signature(object = "G0")
The result is the
G0y
slot. Ifday = TRUE
(default isFALSE
), the result includes a column namedyear
.signature(object = "Gef")
If
complete=FALSE
(default) the result is the slotGefy
. Ifcomplete=TRUE
it returns the slotG0y
.signature(object = "ProdGCPV")
If
complete=FALSE
(default) the result is theprody
slot. Ifcomplete=TRUE
the result includes the slotsG0y
andGefy
.signature(object = "ProdPVPS")
If
complete=FALSE
(default) the result is theprody
slot. Ifcomplete=TRUE
the result includes the slotsG0y
andGefy
.
Author(s)
Oscar Perpiñán Lamigueiro, Francisco Delgado López.
Examples
lat = 37.2
G0dm <- c(2766, 3491, 4494, 5912, 6989, 7742, 7919, 7027, 5369, 3562,
2814, 2179)
Ta <- c(10, 14.1, 15.6, 17.2, 19.3, 21.2, 28.4, 29.9, 24.3, 18.2,
17.2, 15.2)
prom <- list(G0dm = G0dm, Ta = Ta)
prodfixed = prodGCPV(lat, dataRad = prom)
prodY = as.data.tableY(prodfixed, complete = TRUE, day = TRUE)
prodY
[Package solaR2 version 0.10 Index]