Skip to content

Instantly share code, notes, and snippets.

View dsquintana's full-sized avatar

Dan Quintana dsquintana

View GitHub Profile
library(shiny)
library(synthpop)
library(DT)
ui <- fluidPage(
titlePanel("Creating synthetic data"),
sidebarLayout(
sidebarPanel(
p("This is an application that creates default data synthesis using the 'synthpop' package. Upload some data and inspect the synthesized data. Your file must be in csv format to upload."),
@dsquintana
dsquintana / gist:eb652322bd4f0f2602f143e6e9069750
Created December 11, 2019 10:28
Heart rate variability research trends
install.packages("europepmc")
install.packages("cowplot")
install.packages("tidyverse")
library(europepmc)
library(cowplot)
library(tidyverse)
hrv_trend <- europepmc::epmc_hits_trend(query = "heart rate variability",
period = 1978:2018)
@dsquintana
dsquintana / svb
Created June 30, 2022 17:34
Interest in sympathovagal balance
install.packages("europepmc")
install.packages("cowplot")
install.packages("tidyverse")
library(europepmc)
library(cowplot)
library(tidyverse)
svb_trend <- europepmc::epmc_hits_trend(query = "sympathovagal balance",
period = 2008:2021)
@dsquintana
dsquintana / gist:03eb6449bba7440584112d978918979d
Created July 3, 2022 22:30
Comparing CRAN download numbers for R packages
library("dlstats")
library("ggplot2")
pack <- cran_stats(c("metafor", "meta", "rmeta", "psychmeta"))
if (!is.null(pack)) {
print(head(pack))
ggplot(pack, aes(end, downloads, group=package, color=package)) +
geom_line() +
geom_point() +