Nothing
#' @title Parse path
#'
#' @description \code{parse_path} is copied from \code{sem::parse.path}
#'
#' @details
#' Copied from package `sem` under licence GPL (>= 2) with permission from John Fox
#'
#' @return Tagged-list defining variables and direction for a specified path coefficient
#'
#' @param path text to parse
#' @export
parse_path <-
function( path ){
path.1 <- gsub("-", "", gsub(" ", "", path))
direction <- if(regexpr("<>", path.1) > 0){
2
}else if(regexpr("<", path.1) > 0){
-1
}else if(regexpr(">", path.1) > 0){
1
}else{
stop(paste("ill-formed path:", path))
}
path.1 <- strsplit(path.1, "[<>]")[[1]]
out = list(first = path.1[1], second = path.1[length(path.1)], direction = direction)
return(out)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.