data-raw/preprocess-Scott-MSB-2017-gaussians.R

# R script used to generate the list of fitted Gaussian mixture models 
# corresponding to the `scott` dataset bundled with the PrInCE package.
setwd("~/git/PrInCE-R")
options(stringsAsFactors = FALSE)
library(tidyverse)
library(magrittr)
library(openxlsx)
library(PrInCE)

# load `scott` dataset
load("data/scott.rda", verbose = TRUE)

# fit Gaussians
scott_gaussians = build_gaussians(scott)

# save
devtools::use_data(scott_gaussians)
fosterlab/PrInCE-R documentation built on Dec. 11, 2020, 3:51 p.m.