setProj | R Documentation |
Define the data and other characteristics of an ESTREND project.
setProj(project, data, STAID, DATES, Snames, FLOW = NULL, Covars = NULL, type = "seasonal", Start = NULL, End = NULL, tol = NULL, min.obs = 20)
project |
the name of the project to set up. The project name is forced to all lower case. |
data |
the dataset to use in for the project. |
STAID |
the name of the column in |
DATES |
the name of the column in |
Snames |
the name of the columns in |
FLOW |
the name of the column in |
Covars |
the name of the columns in |
type |
the kind of analysis. Must be "seasonal," "tobit," "annual," or "monthly." Only the fist letter is necessary. See Details. |
Start |
the starting date for the analysis. For seasonal analyses,
must be "Date" or a character string the represents a date. For
annual analyses, must match the type of |
End |
the ending date for the analysis. For seasonal analyses,
must be "Date" or a character string the represents a date. For
annual analyses, must match the type of |
tol |
the tolerance for the samples dates. To be included in a
regular analysis, the first sample within the |
min.obs |
the minimum number of observations required for a trend analysis. |
If Start
and End
are NULL
, then a ragged
analysis is set up, and each variable set up for each station is
analyzed on the available data. Otherwise, the analysis is regular and
will be restricted to the time frame specified by Start
and
End
.
If type
is "seasonal," then the data are processed for a
seasonal Kendall type of analysis—seasons are defined (12, 6, 4,
and 3 per year) and evaluated to select the "best" number of seasons.
If, type
is "monthly," then the data are processed for a
seasonal Kendall type of analysis—seasons defined as months, but
the number of seasons is set by the months during which sampling occured.
There must be at least 1/2 of possible samples in a month to be included.
If type
is "tobit" or "annual," then no seasonal analysis is
done because the data are ready for analysis. If type
is
"annual," then the data must be uncensored.
The name of the project is returned.
A directory is created using the name of the project is created in the user's directory. It contains the objects created by restrend as R workspaces.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.