A8_readBD | R Documentation |
Constructor for the class Meteo
with values of
daily or intradaily values of global horizontal irradiation and ambient temperature
from a local file or a data.frame.
readBDd(file, lat,
format = '%d/%m/%Y',
header = TRUE, fill = TRUE, dec = '.', sep = ';',
dates.col = 'Dates', ta.col = 'Ta',
g0.col = 'G0', keep.cols = FALSE, ...)
readBDi(file, lat,
format = '%d/%m/%Y %H:%M:%S',
header = TRUE, fill = TRUE, dec = '.',
sep = ';', dates.col = 'Dates', times.col,
ta.col = 'Ta', g0.col = 'G0', keep.cols = FALSE, ...)
dt2Meteo(file, lat, source = '', type)
zoo2Meteo(file, lat, source = '')
file |
The name of the file ( If the Only for daily data: if the ambient temperature is not available,
the file should include two columns named |
header , fill , dec , sep |
See |
format |
character string with the format of the dates or time
index.
(Default for daily time bases: |
lat |
numeric, latitude (degrees) of the location. |
dates.col |
character string with the name of the column wich contains the dates of the time series. |
times.col |
character string with the name of the column wich contains the time index of the series in case is in a different column than the dates. |
source |
character string with information about the source of the values. (Default: the name of the file). |
ta.col , g0.col |
character, the name of the columns with the information of ambient temperature and radiation in the provided file |
keep.cols |
If |
... |
Arguments for |
type |
character, type of the data in |
A Meteo
object.
Oscar Perpiñán Lamigueiro, Francisco Delgado López.
fread
,
readG0dm
.
library("data.table")
data(helios)
names(helios) = c('Dates', 'G0d', 'TempMax', 'TempMin')
bd = dt2Meteo(helios, lat = 41, source = 'helios-IES', type = 'bd')
getData(bd)
xyplot(bd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.