R/get_ids_from_structured_justifierElements.R

Defines functions get_ids_from_structured_justifierElements

get_ids_from_structured_justifierElements <- function(x) {

  if ("id" %in% names(x)) {

    res <- x['id'];

  } else {

    res <-
      lapply(x,
             function(current) {
               return(current$id);
             });

  }

  res <- unname(unlist(res));

  return(res);

}

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.