- Vancouver, British Columbia, Canada
Pinned Loading
-
Beautiful tapered-intensity-curved e...
Beautiful tapered-intensity-curved edge network graph with ggplot2 1doInstall <- TRUE # Change to FALSE if you don't want packages installed.
2toInstall <- c("sna", "ggplot2", "Hmisc", "reshape2")
3if(doInstall){install.packages(toInstall, repos = "http://cran.r-project.org")}
4lapply(toInstall, library, character.only = TRUE)
5 -
Retaining names of list when using t...
Retaining names of list when using tidyr::unnest example 1library(tidyr)
2library(dplyr)
34l <- lapply(1:5, function(x) runif(5))
5names(l) <- LETTERS[1:5]
-
A function to un-scale a matrix usin...
A function to un-scale a matrix using the attributes of a 'scale' object. 1#' Reverse a scale
2#'
3#' Computes x = sz+c, which is the inverse of z = (x - c)/s
4#' provided by the \code{scale} function.
5#'
-
Simulate correlated variables
Simulate correlated variables 1library(MASS)
2library(tidyverse)
34# create the variance covariance matrix
5sigma <- rbind(
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.