diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2015-01-13 14:05:31 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2015-01-13 14:36:16 +0100 |
commit | 891af5d0f1ee8d45cd4403af43293463d23ba96b (patch) | |
tree | bf4b40b47796b9973dc3d78dde20a8a8e8c2ef22 /README.rmd | |
parent | 4d74570f1ca4a94d894c6c5169684a8246d0a51c (diff) |
README.rmd with example, fix reading unzipped files
Diffstat (limited to 'README.rmd')
-rw-r--r-- | README.rmd | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/README.rmd b/README.rmd new file mode 100644 index 0000000..c28741d --- /dev/null +++ b/README.rmd @@ -0,0 +1,41 @@ +# pfm + +The R package **pfm** provides some utilities for dealing with FOCUS pesticide fate modelling tools, +(currently only TOXSWA cwa files), made available under the GNU public license. +This means: + + This program is free software: you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation, either version 3 of the License, or (at your option) any later + version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + details. + + You should have received a copy of the GNU General Public License along with + this program. If not, see <http://www.gnu.org/licenses/> + +## Installation + +You can install the package from [github](http://github.com/jranke/pfm), e.g. +using the `devtools` package. Using `quick = TRUE` skips docs, +multiple-architecture builds, demos, and vignettes, to make installation as +fast and painless as possible. + +```{r, eval = FALSE} +library(devtools) +install_github("jranke/pfm", subdir = "pkg", quick = TRUE) +``` + +To read in and analyse a cwa file: + +```{r} +library(pfm) +example_cwa <- read.TOXSWA_cwa("00003s_pa.cwa") +plot(example_cwa) +example_cwa$get_events(c(20, 100)) +example_cwa$moving_windows(c(7, 21)) +print(example_cwa) +``` |