alissonrp / fastrep Goto Github PK
View Code? Open in Web Editor NEWTime-saving package for creating reports in R
Home Page: https://cran.r-project.org/web/packages/fastrep/vignettes/my-vignette.html
Time-saving package for creating reports in R
Home Page: https://cran.r-project.org/web/packages/fastrep/vignettes/my-vignette.html
pdf1_summary
pdf1 summary
for the next version because this function has a lot of bugs, after that merge it with pdf1_na
as a new column in summary
Expected output:
airquality |> mypdf1::pdf1_summary(na_rm = FALSE)
#> # A tibble: 6 × 7
#> variable mean median sd min max total_NA
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 Ozone NA NA NA NA NA 37
#> 2 Solar.R NA NA NA NA NA 7
#> 3 Wind 9.96 9.7 3.52 1.7 20.7 0
#> 4 Temp 77.9 79 9.47 56 97 0
#> 5 Month 6.99 7 1.42 5 9 0
#> 6 Day 15.8 16 8.86 1 31 0
pdf1_freq_tbl2
tibble
, but maybe we can create a tibble
using this formatVar1 ╲ Var2 │ A B C D
────────────┼───────────────
a │ 9 20 30 20
b │ 30 15 30 20
c │ 22 30 4 30
d │ 40 30 20 4
and the current style will be found using arg format, or passing the output to pdf1_tbl
First release:
usethis::use_cran_comments()
Title:
and Description:
@returns
and @examples
Authors@R:
includes a copyright holder (role 'cph')Prepare for release:
urlchecker::url_check()
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
rhub::check_for_cran()
Submit to CRAN:
usethis::use_version('minor')
devtools::submit_cran()
Wait for CRAN...
usethis::use_github_release()
usethis::use_news_md()
usethis::use_dev_version()
devtools::install_github("https://github.com/AlissonRP/mypdf1")
Error: .onLoad falhou em loadNamespace() para 'pkgload', detalhes:
chamada: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
erro: namespace ‘rlang’ 0.4.11 is already loaded, but >= 1.0.1 is required
Outro, por causa do round(), o total de probabilidades fica arredondado, talvez arredondar depois do total.
arrange(desc(absolute_frequency))
Faz com que o total fique em primeiro, talvez já estar dentro da função uma ordenador ou criar uma feature para fazer com o que total fique sempre em último.
Criar uma função para sumarizar data.frame
que tenha uma estrutura adequada diferente de base::summary()
E o total da variável vai ser non-null
Colocar um argumento opcional em pdf1_tbl()
que formata p-valores para não ter resultados p.value = 0
freq_tbl_freq2
possui problema na hora de agrupar em grupos que não possuem classes gerando NA
, converter para 0 esses NA
Mais um problema em freq_tbl_freq2
: A variável das linhas não pode ter NA
enquanto a das colunas pode
freq_tbl_freq2
precisa de um argumento que jogue o tibble
ao invés da tabela para que se possa puxar as quantidades dentro do .rmd
pdf1_na
não consegue captar observações vazias como NA
, e isso acontece em geral em R
Criar uma função para ver correlação das variáveis que tenha como saída um tibble
bem estruturado
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.