The easiest way to install the bd
package is via the devtools
package:
devtools::install_github("brechtdv/bd")
library("bd")
openwd
Open working directory.
collapse
Collapse elements without separator.
write_cb
Write to Windows clipboard.
read_cb
Read from Windows clipboard.
today
Return today's date in yyyymmdd format.
now
Return current time.
extract_pubmed
Extract data from PubMed file.
convert
Read and save as.
multiplot
Plot multiple ggplot2 objects.
prop_table
Return proportional table.
dropbox
Path to dropbox folder.
github
Path to GitHub folder.
sanitize_specials
Translate special characters to HTML or LaTeX.
html_body
RMarkdown template for HTML body only.
readxl
Read Excel file using readxl
package, but save as data.frame
instead of tibble
.
quiet_source
Source a file without printing or plotting.
summary_stats
Calculate summary statistics.
mean_ci
Calculate mean and 95% confidence interval.
hpd
Highest posterior density interval.
sem
Calculate standard error of the mean.
cv
Calculate coefficient of variation.
logit
Logistic transformation.
expit
Inverse logistic transformation.
rgamma2
Simulate random Gamma deviates with specified mean and standard deviation.
rlnorm2
Simulate random log-normal deviates with specified mean and standard deviation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.