R/which_child_specs.R

Defines functions which_child_specs

which_child_specs <- function(x,
                              childNames = c('source',
                                             'assertion',
                                             'justification',
                                             'decision',
                                             'justifier')) {
  if (is.null(names(x))) {
    return(FALSE);
  } else if (any(names(x) %in% childNames)) {
    return(which(names(x) %in% childNames));
  } else {
    return(FALSE);
  }
}

Try the justifier package in your browser

Any scripts or data that you put into this service are public.

justifier documentation built on March 7, 2023, 6:59 p.m.