1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-02-20 20:23:58 +01:00

adding return

This commit is contained in:
jan 2023-03-06 11:04:40 +01:00
parent ddf911e6a7
commit 95f4f889da
6 changed files with 12 additions and 4 deletions

View file

@ -73,6 +73,7 @@ summary.sensebox = function(object, ...) {
#' Converts a foreign object to a sensebox data.frame.
#' @param x A data.frame to attach the class to
#' @return data.frame of class \code{sensebox}
#' @export
osem_as_sensebox = function(x) {
ret = as.data.frame(x)

View file

@ -99,7 +99,7 @@ osem_measurements.bbox = function (x, phenomenon, exposure = NA,
from = NA, to = NA, columns = NA,
...,
endpoint = osem_endpoint(),
progress = T,
progress = TRUE,
cache = NA) {
bbox = x
environment() %>%
@ -137,7 +137,7 @@ osem_measurements.sensebox = function (x, phenomenon, exposure = NA,
from = NA, to = NA, columns = NA,
...,
endpoint = osem_endpoint(),
progress = T,
progress = TRUE,
cache = NA) {
boxes = x
environment() %>%

View file

@ -16,6 +16,7 @@ print.osem_measurements = function (x, ...) {
#' Converts a foreign object to an osem_measurements data.frame.
#' @param x A data.frame to attach the class to.
#' Should have at least a `value` and `createdAt` column.
#' @return data.frame of class \code{osem_measurements}
#' @export
osem_as_measurements = function(x) {
ret = tibble::as_tibble(x)

View file

@ -10,6 +10,9 @@ osem_as_measurements(x)
\item{x}{A data.frame to attach the class to.
Should have at least a `value` and `createdAt` column.}
}
\value{
data.frame of class \code{osem_measurements}
}
\description{
Converts a foreign object to an osem_measurements data.frame.
}

View file

@ -9,6 +9,9 @@ osem_as_sensebox(x)
\arguments{
\item{x}{A data.frame to attach the class to}
}
\value{
data.frame of class \code{sensebox}
}
\description{
Converts a foreign object to a sensebox data.frame.
}

View file

@ -20,7 +20,7 @@ osem_measurements(x, ...)
columns = NA,
...,
endpoint = osem_endpoint(),
progress = T,
progress = TRUE,
cache = NA
)
@ -33,7 +33,7 @@ osem_measurements(x, ...)
columns = NA,
...,
endpoint = osem_endpoint(),
progress = T,
progress = TRUE,
cache = NA
)
}