Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
citizenair
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vmm
citizenair
Commits
e78e3e6c
Commit
e78e3e6c
authored
Nov 08, 2018
by
Jan Wijffels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
call phenomenon instead of Phenomenon to get the phenomenon of the timeseries
parent
191ab67a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
citizenair/NAMESPACE
+1
-0
citizenair/R/appdata.R
+1
-1
citizenair/R/pkg.R
+1
-1
No files found.
citizenair/NAMESPACE
View file @
e78e3e6c
...
...
@@ -31,6 +31,7 @@ importFrom(sensorweb4R,getData)
importFrom(sensorweb4R,id)
importFrom(sensorweb4R,label)
importFrom(sensorweb4R,lastValue)
importFrom(sensorweb4R,phenomenon)
importFrom(sensorweb4R,resourceURL)
importFrom(sensorweb4R,time)
importFrom(sensorweb4R,timeseries)
...
...
citizenair/R/appdata.R
View file @
e78e3e6c
...
...
@@ -90,7 +90,7 @@ CitizenAir <- R6::R6Class("CitizenAir",
df
<-
sensorweb4R
::
getData
(
x
,
timespan
=
timespan
)
df
<-
as.data.frame
(
df
)
df
$
date
<-
as.Date
(
df
$
time
)
df
$
phenomena_id
<-
sensorweb4R
::
id
(
sensorweb4R
::
P
henomenon
(
x
))
df
$
phenomena_id
<-
sensorweb4R
::
id
(
sensorweb4R
::
p
henomenon
(
x
))
df
$
phenomena
<-
self
$
phenomena_label
(
df
$
phenomena_id
)
df
$
phenomena_label
<-
sensorweb4R
::
label
(
x
)
result
[[
i
]]
<-
df
[,
c
(
"phenomena_id"
,
"phenomena"
,
"phenomena_label"
,
"time"
,
"value"
)]
...
...
citizenair/R/pkg.R
View file @
e78e3e6c
...
...
@@ -5,7 +5,7 @@
#' @importFrom data.table rbindlist melt.data.table setnames as.data.table data.table
#' @importFrom fasttime fastPOSIXct
#' @importFrom rmarkdown run
#' @importFrom sensorweb4R resourceURL id label as.Endpoint fetch timeseries as.Timeseries getData time lastValue firstValue Station
#' @importFrom sensorweb4R resourceURL id label as.Endpoint fetch timeseries
phenomenon
as.Timeseries getData time lastValue firstValue Station
#' @importFrom lubridate as.interval
#' @importFrom httr GET content
#' @importFrom sp CRS SpatialPointsDataFrame
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment