From 84dfc3226a6db0842fb2f4a175d51f7e5e26675f Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Fri, 5 Jan 2018 00:03:45 +0100 Subject: [PATCH] fix printing of measurements --- NAMESPACE | 1 + R/measurement_utils.R | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/NAMESPACE b/NAMESPACE index 833dc19..ff8f689 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -8,6 +8,7 @@ S3method(osem_measurements,sensebox) S3method(osem_phenomena,sensebox) S3method(plot,osem_measurements) S3method(plot,sensebox) +S3method(print,osem_measurements) S3method(print,sensebox) S3method(summary,sensebox) export(filter.osem_measurements) diff --git a/R/measurement_utils.R b/R/measurement_utils.R index 3f4bd18..6d5ac76 100644 --- a/R/measurement_utils.R +++ b/R/measurement_utils.R @@ -7,6 +7,11 @@ plot.osem_measurements = function (x, ...) { invisible(x) } +#' @export +print.osem_measurements = function (x, ...) { + print.data.frame(x, ...) +} + #' Converts a foreign object to an osem_measurements data.frame. #' @param x A data.frame to attach the class to #' @export