##### https://github.com/cran/bayestestR
Revision e1fa15d202de277bb07e58bb3013557724072b2b authored by Dominique Makowski on 22 September 2019, 15:30 UTC, committed by cran-robot on 22 September 2019, 15:30 UTC
1 parent aee422d
Tip revision: e1fa15d
print.p_direction.R
``````#' @export
print.p_direction <- function(x, digits = 2, ...) {
if ("data_plot" %in% class(x)) {
print(as.data.frame(x))
} else if ("data.frame" %in% class(x)) {
.print_pd(x, digits, ...)
} else {
cat(sprintf("pd = %.*f%%", digits, x * 100))
}
}

.print_pd <- function(x, digits, ...) {
insight::print_color("# Probability of Direction (pd)\n\n", "blue")
x\$Parameter <- as.character(x\$Parameter)
x\$pd <- sprintf("%.*f%%", digits, x\$pd * 100)
print_data_frame(x, digits = digits)
}
`````` Computing file changes ...
{"ft_lang_label":"__label__en","ft_lang_prob":0.51520187,"math_prob":0.9681135,"size":866,"snap":"2021-43-2021-49","text_gpt3_token_len":291,"char_repetition_ratio":0.113689095,"word_repetition_ratio":0.14423077,"special_character_ratio":0.41339493,"punctuation_ratio":0.27906978,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9774031,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-18T02:42:06Z\",\"WARC-Record-ID\":\"<urn:uuid:3c00395b-ed08-465a-9f56-248363c80ccb>\",\"Content-Length\":\"47832\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d3bb2ad3-fe5b-47b3-ad64-50f44941962e>\",\"WARC-Concurrent-To\":\"<urn:uuid:d8d5ff21-b6cd-4bca-a0d9-81fd733f9bf7>\",\"WARC-IP-Address\":\"128.93.166.15\",\"WARC-Target-URI\":\"https://archive.softwareheritage.org/browse/revision/e1fa15d202de277bb07e58bb3013557724072b2b/?origin_url=https://github.com/cran/bayestestR&path=R/print.p_direction.R&revision=e1fa15d202de277bb07e58bb3013557724072b2b\",\"WARC-Payload-Digest\":\"sha1:FTBN6F3Q6PFQVTANG4A4FOE3524OLTBZ\",\"WARC-Block-Digest\":\"sha1:X4KD63QZG4KIX3QUR3CICTSCWKEDPNRE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585186.33_warc_CC-MAIN-20211018000838-20211018030838-00132.warc.gz\"}"}