philsf / philsfmisc Goto Github PK
View Code? Open in Web Editor NEWphilsf's miscellaneous R functions
Home Page: https://philsf.github.io/philsfmisc/
License: GNU General Public License v2.0
philsf's miscellaneous R functions
Home Page: https://philsf.github.io/philsfmisc/
License: GNU General Public License v2.0
Um template de relatório para documentar todas as escolhas metodológicas, resultados, figuras e conclusões da análise de dados, conforme as lições aprendidas com documentações na indústria
fix a warning related to a ggplot2 function that was not properly imported.
Some styles were not configured in the 0.6.1
release:
Automatic paragraphs before/after each of these styles? Current settings:
Create a gtsummary theme that
Revert the default of pct.symbol
to TRUE
.
Create a new Rmarkdown template to create Statistical Analysis Plans (SAP) for future analyses.
Use the same formatting choices as the report template.
All geo* functions assume base 10. It would be nice if there was an argument to use more general bases
All format.*
functions must be changed into format_*
so the build check passes.
This, in turn, will require that all packages that depend on philsfmisc
be updated accordingly.
Perhaps we can provide aliases to ease this upgrading process.
We are beginning to replicate the formatting of OR results so it would be convenient to have a handy function for that.
Include gg theme in a function. How about theme_ff()?
Relates to philsf/philsf.workflow#106
Include the function used to compute the geometric mean, in base 10.
The styles doc is undergoing a major overhaul, that will enhance
As soon as this styles.docx is finished, incorporate this enhancement in the report template used for consulting reports.
Convert manually created docs to roxygen
comments inside each source file.
This will help future iterations of development with the automation tools available in devtools
and RStudio.
Not every situation we are interested in printing perecentages with the percent sign.
This should be an optional (logical
) argument. In fact, the default should be FALSE
.
The final template for the reports has too narrow margins.
Implement a function to compute the geometric SD
10^sd(log10(data))
The current state of affairs prevents the use of format.pct
in format.interval
, because format.float
returns "NA" for both ends of the interval.
Possible solutions
format.interval
to consider the interval as proportionsformat.float
to see if the last char is "%"Provide a new function (format.pct
?) to format proportion 0 <= p <= 1 into a percentage.
Consider defaulting to 0 digits.
Several documentation warnings are appearing in new builds:
F
instead of FALSE
)Several new functions were created, they must be, at minimum, be displayed in the README
format.float
needs at least a minimum documentation page for the package.
Similar to logsd2cv
, there could be a function to convert var
-> cv
Need to re-structure the styles.docx, for use in RStudio.
Create a function is.interval(x)
to check if
x
is a vector of 2 valuesis.numeric()
Expected return value is.logical()
.
Currently the analytical dataset mockup is being created in a "manual" fashion.
Move this code to a new function
The report template does not have a placeholder signagture field.
We should include one by default. In case it will not be used, it can be removed afterwards.
Create a function to compute the CV of log-normal data, given the SD of log-transformed data.
sqrt(exp(lSD ^ 2) - 1)*100
where lSD is sd(log(data))
Note: come up with a descriptive function name!
At least geomean
has a poorly written examples section. Fix those for release.
This repo needs a bare minimum README with
The solution in #49 should not have been implemented in format.interval
, but in format.float
for greater impact.
We are beginning to replicate the formatting of OR results so it would be convenient to have a handy function for that.
format.interval
needs at least a minimum documentation page for the package.
Include the function to compute the geometric CV of a log10-distributed vector of values.
Several applications require the computation of a PI of data, with a given significance value.
We should provide a function that implements the most common formula.
The standard in R
is to provide proportions, and not percentages. Since we can now pretty-format percentages ( #30 ), we can change the API to consistently produce/deal with proportions in all CV functions.
There are currently no unit tests for this package. Use testthat
to test each function with some predictable results.
is.within
needs at least a minimum documentation page for the package.
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.