Skip to content
Snippets Groups Projects
Commit 57e58833 authored by jml's avatar jml
Browse files

update vignettes

parent ec08b62f
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,9 @@ Authors@R: c(person("Jean-Marie", "Lepioufle", , "jml@nilu.no", role=c("aut","cr
Title: friendlyr
Description: Make remote timeserie dataset easy to get and to work with.
The package focuses on:
1. importing key functions from a chosen remote dataset.
1. importing key libraries related to a specific remote dataset.
2. authentication to the related database/db/api.
3. having access to the related database/db/api.
3. having access to the related database/db/api/embedded dataset.
4. having timeserie dataset in a friendly format.
5. checking the date timeserie.
6. having metadata.
......
......@@ -11,6 +11,12 @@ vignette: >
library(friendlyr)
knitr::opts_chunk$set(collapse = T, comment = "#>")
```
## install
```R
library("devtools")
devtools::install_git("https://git.nilu.no/rfriendlyr/friendlyr.git")
devtools::install_git("https://git.nilu.no/rfriendlyr/d.eimetlyr.git")
```
## Get timeseries data
......
......@@ -11,6 +11,12 @@ vignette: >
library(friendlyr)
knitr::opts_chunk$set(collapse = T, comment = "#>")
```
## install
```R
library("devtools")
devtools::install_git("https://git.nilu.no/rfriendlyr/friendlyr.git")
devtools::install_git("https://git.nilu.no/rfriendlyr/d.eipalyr.git")
```
## Get timeseries data
......
---
title: "data.eimet"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{data.eimet}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r setup, include = FALSE}
library(friendlyr)
knitr::opts_chunk$set(collapse = T, comment = "#>")
```
## install
```R
library("devtools")
devtools::install_git("https://git.nilu.no/rfriendlyr/friendlyr.git")
devtools::install_git("https://git.nilu.no/rfriendlyr/d.luft.oslyr.git")
```
## Get timeseries data
Get data from luftkval.oslo10 embedded dataset.
```R
fromDate="2008/03/01 02:00:00"
toDate="2008/03/01 09:00:00"
timeResolution="hourly"
station_id=c("7","848","464","827","665","9","11","163","504","809")
element_id=c("NO2")
location <- NULL
df <- friendlyr::ts(service="d.luft.oslyr",
fromDate=fromDate,toDate=toDate,precision=timeResolution,timeResolution=timeResolution,
element_id=element_id,station_id=station_id)
```
## Get metadata
```R
metadata <- friendlyr::meta(service="d.luft.oslyr",station_id=station_id)
```
## Get Quality flags
```R
df <- friendlyr::qa(service="d.luft.oslyr",
fromDate=fromDate,toDate=toDate,precision=timeResolution,timeResolution=timeResolution,
element_id=element_id,station_id=station_id)
```
......@@ -11,6 +11,12 @@ vignette: >
library(friendlyr)
knitr::opts_chunk$set(collapse = T, comment = "#>")
```
## install
```R
library("devtools")
devtools::install_git("https://git.nilu.no/rfriendlyr/friendlyr.git")
devtools::install_git("https://git.nilu.no/rfriendlyr/frostlyr.git")
```
## Get timeseries data
......
......@@ -12,7 +12,12 @@ library(friendlyr)
knitr::opts_chunk$set(collapse = T, comment = "#>")
```
# Get the data from Innosense database
## install
```R
library("devtools")
devtools::install_git("https://git.nilu.no/rfriendlyr/friendlyr.git")
devtools::install_git("https://git.nilu.no/rfriendlyr/innolyr.git")
```
## Get the timeseries at specific stations
......
......@@ -11,7 +11,12 @@ vignette: >
library(friendlyr)
knitr::opts_chunk$set(collapse = T, comment = "#>")
```
## install
```R
library("devtools")
devtools::install_git("https://git.nilu.no/rfriendlyr/friendlyr.git")
devtools::install_git("https://git.nilu.no/rfriendlyr/luftlyr.git")
```
## Get the timeseries data
Get data from the luftkvalitet database.
......@@ -34,8 +39,6 @@ luft <- friendlyr::ts(service="luftlyr",username="****",password="****",
element_id=c("NO2","O3"),location="Oslo,Norway")
plot(luft,target=c("NO2_7","NO2_848"),DESKTOP=TRUE)
```
## Get the timeseries QA data
......@@ -60,7 +63,6 @@ luft_qa <- friendlyr::qa(service="luftlyr",username="****",password="****",
element_id=c("NO2","O3"),location="Oslo,Norway")
plot(luft_qa,target=c("NO2_7","NO2_848"),DESKTOP=TRUE)
```
## Get the metadata data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment