Summarize the site and input data
Arguments
- metadata
metadata, used to access the appropriate columns of data. At a minimum,
metadatashould correctly specify the date column and the column indicated byinterp.format.- fitdat
data frame of constituent+discharge measurements, for fitting a model
- estdat
data frame of discharge measurements, for making predictions (estimations) from a model
Value
Returns a 1-row data frame with the following columns:
site.name- the long name of the site, as inmetadata()site.id- the unique identifier of the site, as inmetadata()constituent- the unique identifier of the constituent, as inmetadata()consti.name- the long name of the constituent, as inmetadata()conc.units- the units of concentration data, as inmetadata()flow.units- the units of discharge data, as inmetadata()load.units- the units of load estimates, as inmetadata()load.rate.units- the units of load rate units, as inmetadata()lat- the decimal latitude of the station where concentration (and possibly also discharge) was measured, as inmetadata()lon- the decimal longitude of the station where concentration (and possibly also discharge) was measured, as inmetadata()basin.area- the area of the drainage basin contributing water to the site where concentrations were measured, as inmetadata()flow.site.name- the long name of the station where flow was monitored, as inmetadata()flow.site.id- the unique identifier of the station where flow was monitored, as inmetadata()flow.lat- the decimal latitude of the station where discharge was measured, as inmetadata()flow.lon- the decimal longitude of the station where discharge was measured, as inmetadata()flow.basin.area- the area of the drainage basin contributing water to the site where discharge was measured, as inmetadata()basin.area.units- the units of the values inbasin.areaandflow.basin.area(same for both), as inmetadata()[custom]- if thecustomslot ofmetadatais a 1-row data.frame or a list of length-1 elements, the columns of that data.frame are included in this summarybasin.area.ratio.QC- the ratio offlow.basin.areatobasin.areafitdat.start- the date of the first observation in the model fitting datafitdat.end- the date/time of the last observation in the model fitting datafitdat.num.total- the total number of observations in the model fitting datafitdat.num.incomplete- the number of NA observations in the model fitting datafitdat.num.censored- this field is currently a placeholder (will always be NA) for the number of censored observations in the model fitting datafitdat.min.gap.days- the length in days of the smallest gap between any two successive observations in the model fitting datafitdat.max.gap.days- the length in days of the largest gap between any two successive observations in the model fitting datafitdat.median.gap.days- the length in days of the median gap between successive observations in the model fitting dataestdat.start- the date of the first observation in the estimation dataestdat.end- the date/time of the last observation in the estimation dataestdat.num.total- the total number of observations in the estimation dataestdat.num.incomplete- the number of incomplete (NA) observations in the estimation dataestdat.min.gap.days- the length in days of the smallest gap between any two successive observations in the estimation dataestdat.max.gap.days- the length in days of the largest gap between any two successive observations in the estimation dataestdat.median.gap.days- the length in days of the median gap between successive observations in the estimation data
Examples
data(lamprey_nitrate)
data(lamprey_discharge)
md <- metadata(constituent="NO3", flow="DISCHARGE",
dates="DATE", conc.units="mg L^-1", flow.units="cfs", load.units="kg",
load.rate.units="kg d^-1", site.name="Lamprey River, NH",
basin.area=50, flow.basin.area=65, basin.area.units='ha',
site.id="1073500", custom=list(data.source="USGS NWIS, waterdata.usgs.gov"))
sitesum <- summarizeInputs(metadata=md, fitdat=lamprey_nitrate[,1:3],
estdat=lamprey_discharge)