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
0629eff6
Commit
0629eff6
authored
Nov 06, 2018
by
Jan Wijffels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add phenomena to main part of read_citizenair
parent
2a21fb4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
citizenair/R/read-citizendata.R
+2
-0
citizenair/man/read_citizenair.Rd
+1
-0
No files found.
citizenair/R/read-citizendata.R
View file @
0629eff6
...
...
@@ -12,6 +12,7 @@
#' \item{file: the full path to the excel file}
#' \item{time: the timestamp when the data was imported}
#' \item{content: a list where each list element contains the elements meta and data where meta and data are described below}
#' \item{phenomena: all measurement phenomena in the data}
#' }
#' Content element meta is a list containing
#' \enumerate{
...
...
@@ -51,6 +52,7 @@ read_citizenair <- function(file = system.file(package = "citizenair", "data-raw
result
$
content
[[
sheet
]]
$
meta
$
phenomena
<-
read_sheet_units
(
file
,
sheet
,
sheet_details
)
result
$
content
[[
sheet
]]
$
data
<-
read_sheet_measurements
(
file
,
sheet
,
sheet_details
)
}
result
$
phenomena
<-
unique
(
sort
(
unlist
(
lapply
(
result
$
content
,
FUN
=
function
(
x
)
names
(
x
$
meta
$
phenomena
)))))
class
(
result
)
<-
"citizenair"
result
}
...
...
citizenair/man/read_citizenair.Rd
View file @
0629eff6
...
...
@@ -19,6 +19,7 @@ an object of class \code{citizenair} which is a list with elements
\item{file: the full path to the excel file}
\item{time: the timestamp when the data was imported}
\item{content: a list where each list element contains the elements meta and data where meta and data are described below}
\item{phenomena: all measurement phenomena in the data}
}
Content element meta is a list containing
\enumerate{
...
...
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