as.parvec.tbl_df: #' Try getting conditions #' #' first from obj, then from...

as.parvec.tbl_dfR Documentation

#' Try getting conditions #' #' first from obj, then from data, then from p #' #' @param x dMod frame #' @param hypothesis 1 #' #' @export getConditions.tbl_df <- function(x, hypothesis = 1) getConditions.fn <- dMod:::getConditions.fn if (!is.null(suppressWarnings(x$obj[[hypothesis]]))) return(dMod:::getConditions.fn(x$obj[[hypothesis]])) if (!is.null(x$data[[hypothesis]])) return(names(x$data[[hypothesis]])) if (!is.null(x$p[[hypothesis]])) return(dMod:::getConditions.fn(x$p[[hypothesis]])) as.parvec for dMod.frames

Description

#' Try getting conditions #' #' first from obj, then from data, then from p #' #' @param x dMod frame #' @param hypothesis 1 #' #' @export getConditions.tbl_df <- function(x, hypothesis = 1) getConditions.fn <- dMod:::getConditions.fn

if (!is.null(suppressWarnings(x$obj[[hypothesis]]))) return(dMod:::getConditions.fn(x$obj[[hypothesis]])) if (!is.null(x$data[[hypothesis]])) return(names(x$data[[hypothesis]])) if (!is.null(x$p[[hypothesis]])) return(dMod:::getConditions.fn(x$p[[hypothesis]])) as.parvec for dMod.frames

Usage

## S3 method for class 'tbl_df'
as.parvec(x, hypothesis = 1, index = 1)

Arguments

x

dMod.frame

hypothesis

1

index

going to as.parvec.parframe


dlill/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.