R/head.R

Defines functions dim.TidySet tail.TidySet head.TidySet

#' @importFrom utils head
#' @export
#' @method head TidySet
head.TidySet <- function(x, n = 6L, ...) {
    head(as(x, "data.frame"), n = n)
}

#' @importFrom utils tail
#' @export
#' @method tail TidySet
tail.TidySet <- function(x, n = 6L, ...) {
    tail(as(x, "data.frame"), n = n)
}

#' @export
#' @method dim TidySet
dim.TidySet <- function(x) {
    c(Elements = nElements(x), Relations = nRelations(x), Sets = nSets(x))
}
llrs/BaseSet documentation built on Jan. 28, 2024, 9:05 a.m.