content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
###### Load packages ######
# Load necessary packages for single cell RNA-Seq analysis including packages for downstream Gene Ontology Analysis
suppressPackageStartupMessages({
library(devtools)
library(stringr)
library(scales)
library(dtw)
library(monocle)
library(reshape2)
library(GSA)
library(limma)
library(DBI)
lib... | /code/Determining_enrichment_of_CROPseq_pertubed_MCF10A_cells_across_pseudospace.R | no_license | cole-trapnell-lab/pseudospace | R | false | false | 54,496 | r | ###### Load packages ######
# Load necessary packages for single cell RNA-Seq analysis including packages for downstream Gene Ontology Analysis
suppressPackageStartupMessages({
library(devtools)
library(stringr)
library(scales)
library(dtw)
library(monocle)
library(reshape2)
library(GSA)
library(limma)
library(DBI)
lib... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ibdData.R
\name{het.freq}
\alias{het.freq}
\title{Heterozygosity}
\usage{
het.freq(x, dim = c(1, 2))
}
\arguments{
\item{x}{ibdData object}
\item{dim}{interger for dimention}
}
\description{
Heterozygosity
}
| /man/het.freq.Rd | no_license | QTCAT/AMPRIL | R | false | true | 287 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ibdData.R
\name{het.freq}
\alias{het.freq}
\title{Heterozygosity}
\usage{
het.freq(x, dim = c(1, 2))
}
\arguments{
\item{x}{ibdData object}
\item{dim}{interger for dimention}
}
\description{
Heterozygosity
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scope.R
\name{scope_dir}
\alias{scope_dir}
\title{Scope to Directory}
\usage{
scope_dir(directory)
}
\arguments{
\item{directory}{The working directory to use.}
}
\description{
Sets the working directory, and resets it at the end
of the activ... | /man/scope_dir.Rd | no_license | kevinushey/later | R | false | true | 512 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scope.R
\name{scope_dir}
\alias{scope_dir}
\title{Scope to Directory}
\usage{
scope_dir(directory)
}
\arguments{
\item{directory}{The working directory to use.}
}
\description{
Sets the working directory, and resets it at the end
of the activ... |
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Two Dice Roll Distribution Viewer"),
# Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
htmlOutput("instruction"),
sliderInput("numberOfGames",
"Number of Games:",
... | /ui.R | no_license | robertpmatson/DevelopingDataProducts | R | false | false | 912 | r | library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Two Dice Roll Distribution Viewer"),
# Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
htmlOutput("instruction"),
sliderInput("numberOfGames",
"Number of Games:",
... |
#############################################
###############Whole DataSet#################
#############################################
require(arules)
load("~/Projects/MBA/new_data/RData/MASTER_MATRIX_CATEGORICAL.RData")
load("~/Projects/MBA/new_data/RData/MASTER_MATRIX_PERMUTED.RData")
b.t<-as(as.data.frame(m.fi... | /scripts/script_dynamic_thresholding.R | no_license | kvougas/Vougas_DeepLearning | R | false | false | 1,975 | r | #############################################
###############Whole DataSet#################
#############################################
require(arules)
load("~/Projects/MBA/new_data/RData/MASTER_MATRIX_CATEGORICAL.RData")
load("~/Projects/MBA/new_data/RData/MASTER_MATRIX_PERMUTED.RData")
b.t<-as(as.data.frame(m.fi... |
require(foreign)
setwd("/Volumes/KINGSTON/AVA01/Untitled Folder/")
allFiles = list.files()
dbfs = grep("*.dbf",allFiles,ignore.case = TRUE)
allFiles = allFiles[dbfs]
for (i in allFiles){
name = sub(".dbf",ignore.case = T,replacement = "",x = i)
fileName = paste0(name,".csv")
write.csv(x = read.dbf(i),file = fil... | /dbaseReader.R | no_license | Gelinator/FinancialDataMart | R | false | false | 328 | r | require(foreign)
setwd("/Volumes/KINGSTON/AVA01/Untitled Folder/")
allFiles = list.files()
dbfs = grep("*.dbf",allFiles,ignore.case = TRUE)
allFiles = allFiles[dbfs]
for (i in allFiles){
name = sub(".dbf",ignore.case = T,replacement = "",x = i)
fileName = paste0(name,".csv")
write.csv(x = read.dbf(i),file = fil... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 4036
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 4036
c
c Input Parameter (command line, file):
c input filename QBFLIB/Biere/Counter/cnt15e.qdimacs
c output filename /tmp/dcn... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Biere/Counter/cnt15e/cnt15e.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 601 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 4036
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 4036
c
c Input Parameter (command line, file):
c input filename QBFLIB/Biere/Counter/cnt15e.qdimacs
c output filename /tmp/dcn... |
# @useDynLib VALUE
# NULL
#' @title Compute p-value of the two sample Kolmogorov-Smirnov test
#' @description Function to compute the p-value of the K-S test, optionally performing a correction by the effective sanmple size
#' @template templateMeasureParams
#' @param corrected Logical flag. SHound the p-value be co... | /R/measure.ks.pval.R | no_license | SantanderMetGroup/VALUE | R | false | false | 2,321 | r | # @useDynLib VALUE
# NULL
#' @title Compute p-value of the two sample Kolmogorov-Smirnov test
#' @description Function to compute the p-value of the K-S test, optionally performing a correction by the effective sanmple size
#' @template templateMeasureParams
#' @param corrected Logical flag. SHound the p-value be co... |
library(deSolve)
library(shiny)
library(TSA)
library(Rcpp)
#library(ggplot2)
sourceCpp("modGMS.cpp")
ui <- fluidPage(
tags$head(includeScript("google-analytics.js")),
tabsetPanel(
id="panels",
tabPanel(title = strong("Baseline"),
column(3,
sliderInput(inputId="API", label ... | /dynamics at each MDA round/app.R | no_license | MAEMOD-MORU/lmrm | R | false | false | 23,369 | r | library(deSolve)
library(shiny)
library(TSA)
library(Rcpp)
#library(ggplot2)
sourceCpp("modGMS.cpp")
ui <- fluidPage(
tags$head(includeScript("google-analytics.js")),
tabsetPanel(
id="panels",
tabPanel(title = strong("Baseline"),
column(3,
sliderInput(inputId="API", label ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/html_dependency.R
\name{copyDependencyToDir}
\alias{copyDependencyToDir}
\title{Copy an HTML dependency to a directory}
\usage{
copyDependencyToDir(dependency, outputDir, mustWork = TRUE)
}
\arguments{
\item{dependency}{A single HTML ... | /man/copyDependencyToDir.Rd | no_license | datastorm-open/htmltools | R | false | false | 1,518 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/html_dependency.R
\name{copyDependencyToDir}
\alias{copyDependencyToDir}
\title{Copy an HTML dependency to a directory}
\usage{
copyDependencyToDir(dependency, outputDir, mustWork = TRUE)
}
\arguments{
\item{dependency}{A single HTML ... |
#!/usr/bin/env Rscript
if(!suppressPackageStartupMessages(require("optparse", quietly=TRUE))) {
stop("the 'optparse' package is needed in order to run this script")
}
option_list <-
list(
make_option("--input", help = "input file name (use '-' for stdin) [default: -]",
default = '-')
... | /table-cast | no_license | antoniofabio/eqtl-ranef | R | false | false | 4,393 | #!/usr/bin/env Rscript
if(!suppressPackageStartupMessages(require("optparse", quietly=TRUE))) {
stop("the 'optparse' package is needed in order to run this script")
}
option_list <-
list(
make_option("--input", help = "input file name (use '-' for stdin) [default: -]",
default = '-')
... | |
#Cryptocurrency Data
###data download
download.file(file.path("http://api.bitcoincharts.com/v1/csv", "bitstampUSD.csv.gz"),
destfile = file.path("Bitcoincopy/dataset", "bitstampUSD.csv.gz"))
bitcoin <- read.csv(gzfile(file.path("Bitcoincopy/dataset", "bitstampUSD.csv.gz")), header=T)
names(bitcoin... | /bitcoin.R | no_license | molodnyak/bitcoin | R | false | false | 1,017 | r | #Cryptocurrency Data
###data download
download.file(file.path("http://api.bitcoincharts.com/v1/csv", "bitstampUSD.csv.gz"),
destfile = file.path("Bitcoincopy/dataset", "bitstampUSD.csv.gz"))
bitcoin <- read.csv(gzfile(file.path("Bitcoincopy/dataset", "bitstampUSD.csv.gz")), header=T)
names(bitcoin... |
setwd("C:/Users/malombardi/Desktop/Coursera/")
if(!file.exists("project2")) {
dir.create("project2")
}
fileUrl<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./project2/project2.zip")
dateDownloaded<-date()
dateDownloaded
unzip(zipfile... | /run_analysis.R | no_license | mmlombardi/Getting-and-Cleaning-Data-Course-Project | R | false | false | 1,736 | r | setwd("C:/Users/malombardi/Desktop/Coursera/")
if(!file.exists("project2")) {
dir.create("project2")
}
fileUrl<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./project2/project2.zip")
dateDownloaded<-date()
dateDownloaded
unzip(zipfile... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Path-class.R
\name{Path$show}
\alias{Path$show}
\title{Show the entire path as a string}
\value{
the path as as tring
}
\description{
Returns the path as a string
}
\seealso{
Other Path:
\code{\link{Path$..}},
\code{\link{Path$.}},
\code{\li... | /man/Path-cash-show.Rd | permissive | strazto/pathlibr | R | false | true | 518 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Path-class.R
\name{Path$show}
\alias{Path$show}
\title{Show the entire path as a string}
\value{
the path as as tring
}
\description{
Returns the path as a string
}
\seealso{
Other Path:
\code{\link{Path$..}},
\code{\link{Path$.}},
\code{\li... |
##########################################################
#
# HANJO ODENDAAL
# hanjo.oden@gmail.com
# www.daeconomist.com
# @UbuntR314
# https://github.com/HanjoStudy
#
#
# ██████╗ ███████╗███████╗██╗ ███████╗███╗ ██╗██╗██╗ ██╗███╗ ███╗
# ██╔══██╗██╔════╝██╔════╝██║ ██╔═... | /RSelenium.R | no_license | lin-learns/RSelenium_UseR | R | false | false | 11,349 | r | ##########################################################
#
# HANJO ODENDAAL
# hanjo.oden@gmail.com
# www.daeconomist.com
# @UbuntR314
# https://github.com/HanjoStudy
#
#
# ██████╗ ███████╗███████╗██╗ ███████╗███╗ ██╗██╗██╗ ██╗███╗ ███╗
# ██╔══██╗██╔════╝██╔════╝██║ ██╔═... |
rm(list=ls())
dat<-read.table("HR.txt",header = TRUE,sep = "\t",row.names = 1)
f<-table(dat$Gender)
n1<-f[1]#number of male
n2<-f[2]#number of female
M<-tapply(dat$MonthlyIncome,dat$Gender,mean)
S<-tapply(dat$MonthlyIncome,dat$Gender,sd)
xbar1<-M[1]
xbar2<-M[2]
s1<-S[1]
s2<-S[2]
dfs<-min(n1-1,n2-1)
#calcula... | /day2_t_Test_Male_Female_Income.R | no_license | PaulSaikat/R-Programming | R | false | false | 591 | r | rm(list=ls())
dat<-read.table("HR.txt",header = TRUE,sep = "\t",row.names = 1)
f<-table(dat$Gender)
n1<-f[1]#number of male
n2<-f[2]#number of female
M<-tapply(dat$MonthlyIncome,dat$Gender,mean)
S<-tapply(dat$MonthlyIncome,dat$Gender,sd)
xbar1<-M[1]
xbar2<-M[2]
s1<-S[1]
s2<-S[2]
dfs<-min(n1-1,n2-1)
#calcula... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot2_themes.R
\name{doc_new}
\alias{doc_new}
\title{Create New Document}
\usage{
doc_new(path, type = c("doc", "slides"))
}
\arguments{
\item{path}{Path to the location of the new document}
\item{type}{Type of document to create}
}
\descr... | /man/doc_new.Rd | permissive | GerkeLab/grkmisc | R | false | true | 758 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot2_themes.R
\name{doc_new}
\alias{doc_new}
\title{Create New Document}
\usage{
doc_new(path, type = c("doc", "slides"))
}
\arguments{
\item{path}{Path to the location of the new document}
\item{type}{Type of document to create}
}
\descr... |
\name{removepoints}
\alias{removepoints}
\title{
Remove a given number of patches from the landscape
}
\description{
Randomly removes a given number of patches from the landscape.
}
\usage{
removepoints(rl, nr)
}
\arguments{
\item{rl}{
Object of class 'landscape'.
}
\item{nr}{
Number of patches to remove.
}
}
\valu... | /MetaLandSim/man/removepoints.Rd | no_license | albrizre/spatstat.revdep | R | false | false | 754 | rd | \name{removepoints}
\alias{removepoints}
\title{
Remove a given number of patches from the landscape
}
\description{
Randomly removes a given number of patches from the landscape.
}
\usage{
removepoints(rl, nr)
}
\arguments{
\item{rl}{
Object of class 'landscape'.
}
\item{nr}{
Number of patches to remove.
}
}
\valu... |
switch(Sys.info()[['sysname']],
Windows= {#WINDOWS
source("C:/Users/papa/Dropbox/Desarrollo/BasicReinforcementLearningAlgorithm/src/Analysis/RLGraficar.R")
},
Darwin = {# MAC
source("/Users/pedro/Google Drive/Desarrollo/BasicReinforcementLearningAlgorithm/src/Analysis/RLGraficar.R... | /ConnectingRToJavaTest/src/Analysis/RLMain.R | no_license | PedroReyes/ReinforcementLearning | R | false | false | 2,020 | r | switch(Sys.info()[['sysname']],
Windows= {#WINDOWS
source("C:/Users/papa/Dropbox/Desarrollo/BasicReinforcementLearningAlgorithm/src/Analysis/RLGraficar.R")
},
Darwin = {# MAC
source("/Users/pedro/Google Drive/Desarrollo/BasicReinforcementLearningAlgorithm/src/Analysis/RLGraficar.R... |
library(shiny)
library(rsconnect)
runApp("~/Google Drive/Xunyang_Fall16Spring17/Hilsa fish research/3.Analysis/Rscript/shinyapp")
deployApp("~/Google Drive/Xunyang_Fall16Spring17/Hilsa fish research/3.Analysis/Rscript/shinyapp")
runApp("~/Google Drive/Xunyang_Fall16Spring17/Hilsa fish research/3.Analysis/Rscript/Intera... | /HilsaFish/Dashboard/Shiny.R | no_license | yc3207/CU_Research | R | false | false | 332 | r | library(shiny)
library(rsconnect)
runApp("~/Google Drive/Xunyang_Fall16Spring17/Hilsa fish research/3.Analysis/Rscript/shinyapp")
deployApp("~/Google Drive/Xunyang_Fall16Spring17/Hilsa fish research/3.Analysis/Rscript/shinyapp")
runApp("~/Google Drive/Xunyang_Fall16Spring17/Hilsa fish research/3.Analysis/Rscript/Intera... |
# =============================================================================
# Description: Assignment 1
#
#
#
# Authhor: Bruno Hunkeler
# Date: 04.11.2015
# =============================================================================
# references to functions
source("corr.R")
source("complete.R")
... | /Data_Science - Johns Hopkins University/002_R_Programming/week 1/Assignment_1/main_correlation.R | no_license | bhunkeler/DataScienceCoursera | R | false | false | 2,147 | r | # =============================================================================
# Description: Assignment 1
#
#
#
# Authhor: Bruno Hunkeler
# Date: 04.11.2015
# =============================================================================
# references to functions
source("corr.R")
source("complete.R")
... |
# load("lwt_image.Rdata")
library(rvest)
library(xml2)
url <- "https://en.wikipedia.org/wiki/List_of_Last_Week_Tonight_with_John_Oliver_episodes#Episodes"
# reference! http://blog.corynissen.com/2015/01/using-rvest-to-scrape-html-table.html
for (i in 2:5) {
title <- url %>%
read_html() %>%
html_nodes(xpat... | /jo_08_wiki_scrape.R | no_license | olaTechie/John-Oliver-sentiment-analysis | R | false | false | 2,365 | r | # load("lwt_image.Rdata")
library(rvest)
library(xml2)
url <- "https://en.wikipedia.org/wiki/List_of_Last_Week_Tonight_with_John_Oliver_episodes#Episodes"
# reference! http://blog.corynissen.com/2015/01/using-rvest-to-scrape-html-table.html
for (i in 2:5) {
title <- url %>%
read_html() %>%
html_nodes(xpat... |
# CVFolds creates the list of row number in each of the V folds. special cases are when shuffling row number, id cluster identification and if stratify by the outcome to maintain (near) balance in each fold.
CVFolds <- function(V, N.all, shuffle, id, stratifyCV, Y) {
if(!stratifyCV) {
if(shuffle) {
if(is.null(i... | /R/CVFolds.R | no_license | tedwestling/SuperLearner_Old | R | false | false | 2,714 | r | # CVFolds creates the list of row number in each of the V folds. special cases are when shuffling row number, id cluster identification and if stratify by the outcome to maintain (near) balance in each fold.
CVFolds <- function(V, N.all, shuffle, id, stratifyCV, Y) {
if(!stratifyCV) {
if(shuffle) {
if(is.null(i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_ts.R
\name{get_ts}
\alias{get_ts}
\title{Return CBS timeseries}
\usage{
get_ts(id, ts_code, refresh = FALSE, raw_cbs_dir = "raw_cbs_data",
include_meta = TRUE, min_year = NULL, frequencies = NULL, download,
base_url = NULL, download_a... | /cbsots/man/get_ts.Rd | no_license | timemod/cbsots | R | false | true | 3,141 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_ts.R
\name{get_ts}
\alias{get_ts}
\title{Return CBS timeseries}
\usage{
get_ts(id, ts_code, refresh = FALSE, raw_cbs_dir = "raw_cbs_data",
include_meta = TRUE, min_year = NULL, frequencies = NULL, download,
base_url = NULL, download_a... |
"permn" <-function(x, fun = NULL, ...) {
if(is.numeric(x) && length(x) == 1 && x > 0 && trunc(x) == x) x <- seq(x)
n <- length(x)
nofun <- is.null(fun)
out <- vector("list", gamma(n + 1))
p <- ip <- seqn <- 1:n
d <- rep(-1, n)
d[1] <- 0
m <- n + 1
p <- c(m, p, m)
i <- 1
use <- - c(1, n... | /m4fe/R/asianOption.R | no_license | ingted/R-Examples | R | false | false | 3,402 | r | "permn" <-function(x, fun = NULL, ...) {
if(is.numeric(x) && length(x) == 1 && x > 0 && trunc(x) == x) x <- seq(x)
n <- length(x)
nofun <- is.null(fun)
out <- vector("list", gamma(n + 1))
p <- ip <- seqn <- 1:n
d <- rep(-1, n)
d[1] <- 0
m <- n + 1
p <- c(m, p, m)
i <- 1
use <- - c(1, n... |
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test VersioningVersionEnvironmentBlob")
model.instance <- VersioningVersionEnvironmentBlob$new()
test_that("major", {
# tests for the property `major` (integer)
# uncomment below to te... | /tests/testthat/test_versioning_version_environment_blob.R | no_license | botchkoAI/VertaRegistryService | R | false | false | 921 | r | # Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test VersioningVersionEnvironmentBlob")
model.instance <- VersioningVersionEnvironmentBlob$new()
test_that("major", {
# tests for the property `major` (integer)
# uncomment below to te... |
# clean_eurostat_cache()
# install.packages("package:ggplot2")
# install.packages("ecb")
# install.packages("eurostat")
# install.packages("mFilter")
# install.packages("tseries")
# install.packages("forecast")
# install.packages("tidyverse")
# install.packages("TSstudio")
# installed.packages("urca")
# installed.packa... | /R/2-estimation_modeles.R | no_license | GautierLENFANT/AppliedMacroEuribor | R | false | false | 2,868 | r | # clean_eurostat_cache()
# install.packages("package:ggplot2")
# install.packages("ecb")
# install.packages("eurostat")
# install.packages("mFilter")
# install.packages("tseries")
# install.packages("forecast")
# install.packages("tidyverse")
# install.packages("TSstudio")
# installed.packages("urca")
# installed.packa... |
### ISLR: Chapter 5 Cross-Validation and Bootstrapping
## Validation Set Approach
# We will split randomly a dataset in a training and test set
library(ISLR)
set.seed(1)
train <- sample(392,196)
# Perform a linear regression on the Auto dataset
regr <- lm(mpg~horsepower, data = Auto, subset = train)
# Now look at th... | /Chapter 5 - CV and Booststrapping.R | no_license | alanmarazzi/ISLR | R | false | false | 2,789 | r | ### ISLR: Chapter 5 Cross-Validation and Bootstrapping
## Validation Set Approach
# We will split randomly a dataset in a training and test set
library(ISLR)
set.seed(1)
train <- sample(392,196)
# Perform a linear regression on the Auto dataset
regr <- lm(mpg~horsepower, data = Auto, subset = train)
# Now look at th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fcn_misc.R
\name{LCS}
\alias{LCS}
\title{Compute longest common substring of two strings.}
\usage{
LCS(s1, s2)
}
\arguments{
\item{s1}{String one}
\item{s2}{String two}
}
\value{
String containing the longest common substring
}
\description{... | /man/LCS.Rd | no_license | Maddocent/PTXQC | R | false | true | 418 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fcn_misc.R
\name{LCS}
\alias{LCS}
\title{Compute longest common substring of two strings.}
\usage{
LCS(s1, s2)
}
\arguments{
\item{s1}{String one}
\item{s2}{String two}
}
\value{
String containing the longest common substring
}
\description{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gh_repo_search.R
\name{gh_repo_search}
\alias{gh_repo_search}
\title{Get files in a repo}
\usage{
gh_repo_search(
code = "RocheData",
organisation = "PHC",
full_name = NULL,
custom = "in:file",
...
)
}
\arguments{
\item{code}{Output... | /man/gh_repo_search.Rd | permissive | epijim/GithubMetrics | R | false | true | 995 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gh_repo_search.R
\name{gh_repo_search}
\alias{gh_repo_search}
\title{Get files in a repo}
\usage{
gh_repo_search(
code = "RocheData",
organisation = "PHC",
full_name = NULL,
custom = "in:file",
...
)
}
\arguments{
\item{code}{Output... |
library(shiny)
library(ggplot2)
source("HDXdata.combo.R")
source("HDXpepmap.combo.R")
source("subdata.R")
source("WHICH.R")
source("Format.R")
source("hdx.curve.R")
source("Byonic.HDX.format.R")
shinyServer(function(input, output) {
origin<-reactive({
validate(
need(input$fileinput$datapath != "", "")
)
... | /server.R | permissive | benniu720/HDExaminer-Assistant | R | false | false | 3,058 | r | library(shiny)
library(ggplot2)
source("HDXdata.combo.R")
source("HDXpepmap.combo.R")
source("subdata.R")
source("WHICH.R")
source("Format.R")
source("hdx.curve.R")
source("Byonic.HDX.format.R")
shinyServer(function(input, output) {
origin<-reactive({
validate(
need(input$fileinput$datapath != "", "")
)
... |
plot_fig_5b <- function(forecast, start.date = as.Date("2020-05-15"),
end.date = end.date <- as.Date("2020-07-15"))
{
data <- vroom(paste0(data_repo, today, "/1wk/", forecast,
"_figure_5_inc_data.csv")
) %>%
mutate(Dates = as.Date(Dates)) %>%
filter(Da... | /model/r_scripts/plots/plot_fig_5b.R | no_license | kravi2018/cov-ind-19 | R | false | false | 3,226 | r | plot_fig_5b <- function(forecast, start.date = as.Date("2020-05-15"),
end.date = end.date <- as.Date("2020-07-15"))
{
data <- vroom(paste0(data_repo, today, "/1wk/", forecast,
"_figure_5_inc_data.csv")
) %>%
mutate(Dates = as.Date(Dates)) %>%
filter(Da... |
# Compares diagnoses between the discovery and validation cohorts.
library(argparse)
library(data.table)
rm(list = ls())
# Get arguments.
parser <- ArgumentParser()
parser$add_argument('--discovery-input', required = TRUE)
parser$add_argument('--validation-input', required = TRUE)
parser$add_argument('--outpu... | /scripts/diagnoses/compare_diagnoses.R | permissive | morrislab/plos-medicine-joint-patterns | R | false | false | 1,055 | r | # Compares diagnoses between the discovery and validation cohorts.
library(argparse)
library(data.table)
rm(list = ls())
# Get arguments.
parser <- ArgumentParser()
parser$add_argument('--discovery-input', required = TRUE)
parser$add_argument('--validation-input', required = TRUE)
parser$add_argument('--outpu... |
suppressPackageStartupMessages(library(ComplexHeatmap))
suppressPackageStartupMessages(library(circlize))
suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(cowplot))
suppressPackageStartupMessages(library(RColorBrewer))
suppressPackageStartupMessages(library(data.table))
su... | /scripts/06_RNAseq_DEG_pairs_comp.upset.R | no_license | lakhanp1/39_Ben_RNAseq2_Tet | R | false | false | 6,008 | r | suppressPackageStartupMessages(library(ComplexHeatmap))
suppressPackageStartupMessages(library(circlize))
suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(cowplot))
suppressPackageStartupMessages(library(RColorBrewer))
suppressPackageStartupMessages(library(data.table))
su... |
#' Color the Leaves of a Dendrogram Based on a Spectra Object
#'
#' *Internal function.* This function colors the leaves of a dendrogram object. The code was taken
#' from the help files.
#'
#' @param n A node in a dendrogram object.
#'
#' @param spectra `r .writeDoc_Spectra1()`
#'
#' @return Returns a node with the l... | /R/colLeaf.R | no_license | cran/ChemoSpecUtils | R | false | false | 887 | r | #' Color the Leaves of a Dendrogram Based on a Spectra Object
#'
#' *Internal function.* This function colors the leaves of a dendrogram object. The code was taken
#' from the help files.
#'
#' @param n A node in a dendrogram object.
#'
#' @param spectra `r .writeDoc_Spectra1()`
#'
#' @return Returns a node with the l... |
## ----setup, include = FALSE----------------------------------------------
library(SSP)
library(ggplot2)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.retina=2,
fig.align='center',
fig.width = 7,
fig.height = 5,
warning = FALSE,
message = FALSE
)
## ----eval=FALSE----------------------... | /vignettes/SSP-guide.R | no_license | edlinguerra/SSP | R | false | false | 3,449 | r | ## ----setup, include = FALSE----------------------------------------------
library(SSP)
library(ggplot2)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.retina=2,
fig.align='center',
fig.width = 7,
fig.height = 5,
warning = FALSE,
message = FALSE
)
## ----eval=FALSE----------------------... |
# this is needed to make tensorflow happy
Sys.setenv(MKL_THREADING_LAYER = "GNU")
log <- file(snakemake@log[[1]], open="wt")
sink(log)
sink(log, type="message")
library(SingleCellExperiment)
library(tensorflow)
library(cellassign)
library(ComplexHeatmap)
library(viridis)
library(ggsci)
is.float <- function(x) {
... | /scripts/cellassign.R | permissive | koesterlab/single-cell-rna-seq | R | false | false | 3,501 | r | # this is needed to make tensorflow happy
Sys.setenv(MKL_THREADING_LAYER = "GNU")
log <- file(snakemake@log[[1]], open="wt")
sink(log)
sink(log, type="message")
library(SingleCellExperiment)
library(tensorflow)
library(cellassign)
library(ComplexHeatmap)
library(viridis)
library(ggsci)
is.float <- function(x) {
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/erp_preprocess.R
\name{artrejOptions}
\alias{artrejOptions}
\title{Options for artifact rejection}
\usage{
artrejOptions(sampling_freq = 1000, channels = "all",
apply_maxgrad = TRUE, maxgrad_limit = 50, maxgrad_mark = c(-200, 200),
... | /man/artrejOptions.Rd | no_license | kapilsaxena33/eegR | R | false | false | 3,016 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/erp_preprocess.R
\name{artrejOptions}
\alias{artrejOptions}
\title{Options for artifact rejection}
\usage{
artrejOptions(sampling_freq = 1000, channels = "all",
apply_maxgrad = TRUE, maxgrad_limit = 50, maxgrad_mark = c(-200, 200),
... |
#' Detection of outliers of zero-inflated data
#'
#' detects outliers in compositional zero-inflated data
#' @param x a data frame
#' @param impute imputation method internally used
#' @details XXX
#' @return XXX
#' @export
#' @author Matthias Templ
#' @examples
#' ### Installing and loading required packages
#' da... | /robCompositions/R/zeroOut.R | no_license | ingted/R-Examples | R | false | false | 3,006 | r | #' Detection of outliers of zero-inflated data
#'
#' detects outliers in compositional zero-inflated data
#' @param x a data frame
#' @param impute imputation method internally used
#' @details XXX
#' @return XXX
#' @export
#' @author Matthias Templ
#' @examples
#' ### Installing and loading required packages
#' da... |
# make SCALED rasters
### this code only needs to be run to regenerate the raster stack.
predTemplate <-raster('E:/NASData/Eddy/RefRaster.tif')
SST_jan_2009 <- scale(resample(raster('E:/NASData/AcoustoVisualDE/SST/SST_jan_2009.tif'),
predTemplate),center = covars_Joint_min.train["SST"... | /compute_scaled_2009_prediction_rasters.R | no_license | kfrasier/AcoustoVisualDE | R | false | false | 8,568 | r | # make SCALED rasters
### this code only needs to be run to regenerate the raster stack.
predTemplate <-raster('E:/NASData/Eddy/RefRaster.tif')
SST_jan_2009 <- scale(resample(raster('E:/NASData/AcoustoVisualDE/SST/SST_jan_2009.tif'),
predTemplate),center = covars_Joint_min.train["SST"... |
# Calculate the accumulated growing degree days (GDD) and days to flowering
# (DTF) for the C. f. phenology project. This script uses Julian dates of
# earliest germinant (EG) and earliest flower/pod (DF) and daily temperatures
# from PRISM for 2013 and 2014 at Shakopee, MN to calculate GDD. The base
# temperature is 1... | /Scripts/Calculate_DTF_GDD.R | no_license | Nashobahomma/Nashoba_Kono_Phenology | R | false | false | 16,794 | r | # Calculate the accumulated growing degree days (GDD) and days to flowering
# (DTF) for the C. f. phenology project. This script uses Julian dates of
# earliest germinant (EG) and earliest flower/pod (DF) and daily temperatures
# from PRISM for 2013 and 2014 at Shakopee, MN to calculate GDD. The base
# temperature is 1... |
#' Create a condition object
#'
#' These constructors make it easy to create subclassed conditions.
#' Conditions are objects that power the error system in R. They can
#' also be used for passing messages to pre-established handlers.
#'
#' `cnd()` creates objects inheriting from `condition`. Conditions
#' created with... | /R/cnd.R | no_license | DocEd/rlang | R | false | false | 31,640 | r | #' Create a condition object
#'
#' These constructors make it easy to create subclassed conditions.
#' Conditions are objects that power the error system in R. They can
#' also be used for passing messages to pre-established handlers.
#'
#' `cnd()` creates objects inheriting from `condition`. Conditions
#' created with... |
plot.ordPen <- function(x, whichlam = NULL, whichx = NULL, type = NULL,
xlab = NULL, ylab = NULL, main = NULL, xlim = NULL, ylim = NULL, col = NULL, ...)
{
px <- length(x$xlevels)
xgrp <- rep(1:px,x$xlevels)
tol <- .Machine$double.eps^0.5
if (is.null(whichlam))
whichlam <- 1:ncol(x$coef)
... | /ordPens/R/plot.ordPen.R | no_license | ingted/R-Examples | R | false | false | 2,201 | r | plot.ordPen <- function(x, whichlam = NULL, whichx = NULL, type = NULL,
xlab = NULL, ylab = NULL, main = NULL, xlim = NULL, ylim = NULL, col = NULL, ...)
{
px <- length(x$xlevels)
xgrp <- rep(1:px,x$xlevels)
tol <- .Machine$double.eps^0.5
if (is.null(whichlam))
whichlam <- 1:ncol(x$coef)
... |
library(plyr)
library(ggplot2)
fishData <- read.delim('~/Dropbox/densitypaper/ExtractedData/CRL.txt',header=T,stringsAsFactors=F)
seqData <- read.delim('~/Dropbox/NucSeqData/htseq_CRL/CRL_rpkm.txt',header=T,stringsAsFactors=F)
seqReduced <- ddply(seqData,.(gene,total1_ex_rpkm),summarize,exonRPKM=sum(total1_ex_rpkm,to... | /SupplementaryFigures/FISH_vs_Seq/rpkm_vs_fish.R | no_license | arjunrajlaboratory/DensityPaperDataAnalysis | R | false | false | 855 | r | library(plyr)
library(ggplot2)
fishData <- read.delim('~/Dropbox/densitypaper/ExtractedData/CRL.txt',header=T,stringsAsFactors=F)
seqData <- read.delim('~/Dropbox/NucSeqData/htseq_CRL/CRL_rpkm.txt',header=T,stringsAsFactors=F)
seqReduced <- ddply(seqData,.(gene,total1_ex_rpkm),summarize,exonRPKM=sum(total1_ex_rpkm,to... |
####################
## ObjectLs #####
####################
ObjectLs <- function(theta) {
# Description :
# Compute the value of least-squares object function.
# Usage :
# ObjectLs(theta)
# Arguments :
# theta : A vector of dimension p.
# Returns :
# A real value of the lea... | /Additional functions/ObjectLs.R | permissive | LedererLab/tridge | R | false | false | 784 | r | ####################
## ObjectLs #####
####################
ObjectLs <- function(theta) {
# Description :
# Compute the value of least-squares object function.
# Usage :
# ObjectLs(theta)
# Arguments :
# theta : A vector of dimension p.
# Returns :
# A real value of the lea... |
recurse.rbind = function(fun,dframe,cols){
if (length(cols) == 1) {
cols = cols[[1]]
tmp = list()
k = 1
for (cl in unique(dframe[,cols])){
tmp[[k]] = fun(dframe[dframe[,cols]==cl,])
k = k+1
}
ret = do.call(rbind,tmp)
} else {
col = cols[[1]]
tmp = list()
k = 1
for... | /R/tools.R | no_license | dill/inlabru | R | false | false | 505 | r | recurse.rbind = function(fun,dframe,cols){
if (length(cols) == 1) {
cols = cols[[1]]
tmp = list()
k = 1
for (cl in unique(dframe[,cols])){
tmp[[k]] = fun(dframe[dframe[,cols]==cl,])
k = k+1
}
ret = do.call(rbind,tmp)
} else {
col = cols[[1]]
tmp = list()
k = 1
for... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fnxs_general.R
\name{burns.data}
\alias{burns.data}
\title{A dataset containing the fitness values for recombinant poliovirus viruses.}
\format{A list of 5 elements containing integers (1 or 0) that indicate the absence or presence of mutated... | /man/burns.data.Rd | no_license | jtvanleuven/Stickbreaker | R | false | true | 770 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fnxs_general.R
\name{burns.data}
\alias{burns.data}
\title{A dataset containing the fitness values for recombinant poliovirus viruses.}
\format{A list of 5 elements containing integers (1 or 0) that indicate the absence or presence of mutated... |
\name{subset.fdata}
\Rdversion{1.1}
\alias{subset.fdata}
\title{ Subsetting }
\description{
Return subsets of \code{fdata} which meet conditions.
}
\usage{
\method{subset}{fdata}(x, subset, select, drop = TRUE,\ldots)
%\method{subset}{lfdata}(x, subset, select, drop = TRUE,\ldots)
}
\arguments{
\item{x... | /man/subset.fdata.Rd | no_license | dgorbachev/fda.usc | R | false | false | 835 | rd | \name{subset.fdata}
\Rdversion{1.1}
\alias{subset.fdata}
\title{ Subsetting }
\description{
Return subsets of \code{fdata} which meet conditions.
}
\usage{
\method{subset}{fdata}(x, subset, select, drop = TRUE,\ldots)
%\method{subset}{lfdata}(x, subset, select, drop = TRUE,\ldots)
}
\arguments{
\item{x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloudsearch_operations.R
\name{cloudsearch_define_index_field}
\alias{cloudsearch_define_index_field}
\title{Configures an IndexField for the search domain}
\usage{
cloudsearch_define_index_field(DomainName, IndexField)
}
\arguments{
\item{Do... | /cran/paws.analytics/man/cloudsearch_define_index_field.Rd | permissive | sanchezvivi/paws | R | false | true | 3,767 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloudsearch_operations.R
\name{cloudsearch_define_index_field}
\alias{cloudsearch_define_index_field}
\title{Configures an IndexField for the search domain}
\usage{
cloudsearch_define_index_field(DomainName, IndexField)
}
\arguments{
\item{Do... |
\name{exboxes}
\alias{exboxes}
\docType{data}
\title{Example Box Sequence Object}
\description{
An example box sequence for demonstrating \pkg{sdtoolkit} functions that apply to box sequence objects. As of now these other functions are \code{seqinfo} and \code{dimplot}.
}
\usage{data(exboxes)}
\format{
The ... | /man/exboxes.rd | no_license | cran/sdtoolkit | R | false | false | 886 | rd | \name{exboxes}
\alias{exboxes}
\docType{data}
\title{Example Box Sequence Object}
\description{
An example box sequence for demonstrating \pkg{sdtoolkit} functions that apply to box sequence objects. As of now these other functions are \code{seqinfo} and \code{dimplot}.
}
\usage{data(exboxes)}
\format{
The ... |
library(sarima)
### Name: arma_Q0Gardner
### Title: Computing the initial state covariance matrix of ARMA
### Aliases: arma_Q0Gardner arma_Q0bis arma_Q0naive arma_Q0gnbR
### Keywords: arma arima htest
### ** Examples
## arma_Q0Gardner(phi, theta, tol = .Machine$double.eps)
## arma_Q0bis(phi, theta, tol = .Machine$d... | /data/genthat_extracted_code/sarima/examples/arma_Q0Gardner.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 334 | r | library(sarima)
### Name: arma_Q0Gardner
### Title: Computing the initial state covariance matrix of ARMA
### Aliases: arma_Q0Gardner arma_Q0bis arma_Q0naive arma_Q0gnbR
### Keywords: arma arima htest
### ** Examples
## arma_Q0Gardner(phi, theta, tol = .Machine$double.eps)
## arma_Q0bis(phi, theta, tol = .Machine$d... |
library(sas7bdat)
library(nnet)
library(optmatch)
setwd("U:/")
source("simulation analysis/functionsMatching_6.R")
########
# DATA #
########
#Load data and construction analytic file
datH1 <- read.sas7bdat(file = "trauma_25_75_h1.sas7bdat")
datH2 <- read.sas7bdat(file = "trauma_25_75_h2.sas7bdat")
table(datH1$HOSP... | /codes/analysis NEDS/matching.R | permissive | jasa-acs/Triplet-Matching-for-Estimating-Causal-Effects-With-Three-Treatment-Arms-A-Comparative-Study-of-M... | R | false | false | 2,849 | r | library(sas7bdat)
library(nnet)
library(optmatch)
setwd("U:/")
source("simulation analysis/functionsMatching_6.R")
########
# DATA #
########
#Load data and construction analytic file
datH1 <- read.sas7bdat(file = "trauma_25_75_h1.sas7bdat")
datH2 <- read.sas7bdat(file = "trauma_25_75_h2.sas7bdat")
table(datH1$HOSP... |
library(NPS)
### Name: npc
### Title: Create Net Promoter Categories from Likelihood to Recommend
### Scores
### Aliases: npc
### ** Examples
# The command below will generate Net Promoter categories for each point
# on a standard 0:10 Likelihood to Recommend scale
npc(0:10)
# Here's how scores and categories m... | /data/genthat_extracted_code/NPS/examples/npc.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 870 | r | library(NPS)
### Name: npc
### Title: Create Net Promoter Categories from Likelihood to Recommend
### Scores
### Aliases: npc
### ** Examples
# The command below will generate Net Promoter categories for each point
# on a standard 0:10 Likelihood to Recommend scale
npc(0:10)
# Here's how scores and categories m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_write.R
\name{Plum_runs}
\alias{Plum_runs}
\title{List the folders present in the current core directory.}
\usage{
Plum_runs(coredir = get("info")$coredir)
}
\arguments{
\item{coredir}{The directory where the Bacon runs reside. Defaults ... | /fuzzedpackages/rplum/man/Plum_runs.Rd | no_license | akhikolla/testpackages | R | false | true | 652 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_write.R
\name{Plum_runs}
\alias{Plum_runs}
\title{List the folders present in the current core directory.}
\usage{
Plum_runs(coredir = get("info")$coredir)
}
\arguments{
\item{coredir}{The directory where the Bacon runs reside. Defaults ... |
testlist <- list(x = NA_integer_, y = c(NA, -58666L, NA, 30464L))
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str(result) | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609961300-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 139 | r | testlist <- list(x = NA_integer_, y = c(NA, -58666L, NA, 30464L))
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str(result) |
setwd("I:\NTL\files\exdata_data_household_power_consumption")
##reading data from the file
data_full<-read.csv("household_power_consumption.txt", header=T, sep=';', na.string="?" ,nrow=2075259)
## subset the data according to the time
data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007"))
#formating the date
da... | /plot2.R | no_license | hagar912/Exploratory-Data-analysis-Project | R | false | false | 650 | r | setwd("I:\NTL\files\exdata_data_household_power_consumption")
##reading data from the file
data_full<-read.csv("household_power_consumption.txt", header=T, sep=';', na.string="?" ,nrow=2075259)
## subset the data according to the time
data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007"))
#formating the date
da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vpcstats2.R
\name{plot.vpcstatsobj}
\alias{plot.vpcstatsobj}
\title{Plot a \code{vpcstatsobj}.}
\usage{
\method{plot}{vpcstatsobj}(
x,
...,
show.points = TRUE,
show.boundaries = TRUE,
show.stats = !is.null(x$stats),
show.binning =... | /man/plot.vpcstatsobj.Rd | no_license | benjaminrich/vpcstats | R | false | true | 1,433 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vpcstats2.R
\name{plot.vpcstatsobj}
\alias{plot.vpcstatsobj}
\title{Plot a \code{vpcstatsobj}.}
\usage{
\method{plot}{vpcstatsobj}(
x,
...,
show.points = TRUE,
show.boundaries = TRUE,
show.stats = !is.null(x$stats),
show.binning =... |
# ' Curve of the BIC for each possible p2 with a fixed Z and truncature of Z
# ' @param X matrix containing the dataset
# ' @param Z adjacency matrix (binary) describing the structure between the variables
# ' @param Bic_null_vect vector of the BIC for each variable. used when the variable is independant
# ' @param... | /CorReg/R/BicZcurve.R | no_license | ingted/R-Examples | R | false | false | 1,641 | r | # ' Curve of the BIC for each possible p2 with a fixed Z and truncature of Z
# ' @param X matrix containing the dataset
# ' @param Z adjacency matrix (binary) describing the structure between the variables
# ' @param Bic_null_vect vector of the BIC for each variable. used when the variable is independant
# ' @param... |
# R script for running models
# -----------------------------------------------------------------------------
# Ready workspace
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Identify git directory and remove previous objects if not already done
if (!exists("git.dir")) {
rm(list... | /rscripts/run_model_new.R | no_license | jhhughes256/len_pbpk | R | false | false | 6,025 | r | # R script for running models
# -----------------------------------------------------------------------------
# Ready workspace
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Identify git directory and remove previous objects if not already done
if (!exists("git.dir")) {
rm(list... |
knitr::opts_chunk$set (prompt=TRUE, tidy=FALSE, comment="")
options (markdown.HTML.options =
setdiff(markdown::markdownHTMLOptions(default=TRUE),"highlight_code"))
| /CSC121/assignment_4/options.r | no_license | chenjuntu/Projects | R | false | false | 175 | r | knitr::opts_chunk$set (prompt=TRUE, tidy=FALSE, comment="")
options (markdown.HTML.options =
setdiff(markdown::markdownHTMLOptions(default=TRUE),"highlight_code"))
|
#' fset.transform
#'
#' @description
#' @param
#' @return
#' @export
#'
#' @examples
fset.transform <- function(compensated.set, elgcl) {
## transform fcs data using ^ estimated logicile
fsApply(compensated.set, function(frame) {
print(paste0("transforming ", frame@description$`$FIL`))
frame_trans <- trans... | /R/fset.transform.R | no_license | sportiellomike/spookyflow | R | false | false | 362 | r | #' fset.transform
#'
#' @description
#' @param
#' @return
#' @export
#'
#' @examples
fset.transform <- function(compensated.set, elgcl) {
## transform fcs data using ^ estimated logicile
fsApply(compensated.set, function(frame) {
print(paste0("transforming ", frame@description$`$FIL`))
frame_trans <- trans... |
# remotes::install_github("nmfs-fish-tools/RMAS")
# library(RMAS)
rmas_dir <- "C:/Users/bai.li/Documents/Github/RMAS-master/src/"
devtools::load_all(rmas_dir)
setwd("C:/Users/bai.li/Documents/Github/githubactiontest/")
devtools::load_all()
## Need to install packages below:
## ASAPplots, r4ss, readxl, RMAS
maindir <-... | /example/example.R | no_license | msupernaw/githubactiontest | R | false | false | 3,156 | r | # remotes::install_github("nmfs-fish-tools/RMAS")
# library(RMAS)
rmas_dir <- "C:/Users/bai.li/Documents/Github/RMAS-master/src/"
devtools::load_all(rmas_dir)
setwd("C:/Users/bai.li/Documents/Github/githubactiontest/")
devtools::load_all()
## Need to install packages below:
## ASAPplots, r4ss, readxl, RMAS
maindir <-... |
context("rgee: Operators test")
skip_if_no_pypkg()
# -------------------------------------------------------------------------
test_that("Arithmetic Operator", {
img <- ee$Image(1)
# sum
expect_equal((img + img), (img$add(img)))
# subtract
expect_equal((img - img), (img$subtract(img)))
# Negative (-) 1 ... | /tests/testthat/test-operators.R | permissive | kateburrows/rgee | R | false | false | 5,533 | r | context("rgee: Operators test")
skip_if_no_pypkg()
# -------------------------------------------------------------------------
test_that("Arithmetic Operator", {
img <- ee$Image(1)
# sum
expect_equal((img + img), (img$add(img)))
# subtract
expect_equal((img - img), (img$subtract(img)))
# Negative (-) 1 ... |
library(shiny)
library(shinyAce)
library(mailR)
library(shinyjs)
library(rdrop2)
shinyServer(
function(input, output, session) {
# HANDLERS TO DOWNLOAD TEMPLATES WHEN THE LINK IS CLICKED
output$download_cov <- downloadHandler(
filename = "effects.csv" ,
content = function(file) {
... | /App-1/server.R | no_license | qsuProjects/PowerApp | R | false | false | 10,497 | r | library(shiny)
library(shinyAce)
library(mailR)
library(shinyjs)
library(rdrop2)
shinyServer(
function(input, output, session) {
# HANDLERS TO DOWNLOAD TEMPLATES WHEN THE LINK IS CLICKED
output$download_cov <- downloadHandler(
filename = "effects.csv" ,
content = function(file) {
... |
library(ggplot2) # Data visualization
library(readr) # CSV file I/O, e.g. the read_csv function
library(SuperLearner)
library(Hmisc)
library(caret)
# Any results you write to the current directory are saved as output.
# ------------------------------------------------------------------
# R version of some Machine Learn... | /Project4-MachineLearning/Team-1/h2o_custlearners.R | no_license | vuchau/bootcamp007_project | R | false | false | 12,638 | r | library(ggplot2) # Data visualization
library(readr) # CSV file I/O, e.g. the read_csv function
library(SuperLearner)
library(Hmisc)
library(caret)
# Any results you write to the current directory are saved as output.
# ------------------------------------------------------------------
# R version of some Machine Learn... |
context("format_character")
chartype_frame <- function()
{
chars <- character()
desc <- character()
chars[1] <- "\u0001\u001f"
desc[1] <- "C0 control code"
chars[2] <- "\a\b\f\n\r\t"
desc[2] <- "Named control code"
chars[3] <- "abcdefuvwxyz"
desc[3] <- "ASCII"
chars[4] <- "\u0080\u009f"
desc[4]... | /tests/testthat/test-format_character.R | no_license | kevinykuo/pillar | R | false | false | 2,549 | r | context("format_character")
chartype_frame <- function()
{
chars <- character()
desc <- character()
chars[1] <- "\u0001\u001f"
desc[1] <- "C0 control code"
chars[2] <- "\a\b\f\n\r\t"
desc[2] <- "Named control code"
chars[3] <- "abcdefuvwxyz"
desc[3] <- "ASCII"
chars[4] <- "\u0080\u009f"
desc[4]... |
\name{Heatmap_Legend}
\alias{Heatmap_Legend}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Makes a legend for plotting surfaces (e.g., population density) }
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
Heatmap_Legend(colvec, heatrange, margintex... | /man/Heatmap_Legend.Rd | no_license | James-Thorson/spatial_condition_factor | R | false | false | 2,106 | rd | \name{Heatmap_Legend}
\alias{Heatmap_Legend}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Makes a legend for plotting surfaces (e.g., population density) }
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
Heatmap_Legend(colvec, heatrange, margintex... |
testlist <- list(b = c(-16756480L, NA, 65288L, -1332215550L, 142573380L, 2136702975L, -16756480L, 255L, 65407L, 2139062143L, 1367343103L, -1L, -1L, -255L, 2130870353L, 2130837504L, NA, -2138636289L, 2139030143L, -16776961L, 33488896L, -1966281L, 16776960L, -30261249L, -1L, -255L, 2139553791L, -64896L, 1371734528L, ... | /mcga/inst/testfiles/ByteVectorToDoubles/libFuzzer_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1612761196-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 433 | r | testlist <- list(b = c(-16756480L, NA, 65288L, -1332215550L, 142573380L, 2136702975L, -16756480L, 255L, 65407L, 2139062143L, 1367343103L, -1L, -1L, -255L, 2130870353L, 2130837504L, NA, -2138636289L, 2139030143L, -16776961L, 33488896L, -1966281L, 16776960L, -30261249L, -1L, -255L, 2139553791L, -64896L, 1371734528L, ... |
## Download and extract files from zip
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip",method="curl")
unzip(zipfile="./data/Dataset.zip",exdir="./data")
path_rf <- f... | /run_analysis.R | no_license | mmontauti/getting-cleaning-data-project | R | false | false | 2,529 | r | ## Download and extract files from zip
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip",method="curl")
unzip(zipfile="./data/Dataset.zip",exdir="./data")
path_rf <- f... |
# generate 5 conditional simulations
library(gstat)
library(sp)
number_of_simulations <- 10
name_of_prop <- "cadmium"
data(meuse)
coordinates(meuse) = ~x+y
v <- variogram(log(cadmium)~1, meuse)
m <- fit.variogram(v, vgm(1, "Sph", 300, 1))
plot(v, model = m)
set.seed(131)
data(meuse.grid)
gridded(meuse.grid) = ~x+y
si... | /Resources/MeuseSimulation.R | no_license | lquatrin/inf2031 | R | false | false | 1,531 | r | # generate 5 conditional simulations
library(gstat)
library(sp)
number_of_simulations <- 10
name_of_prop <- "cadmium"
data(meuse)
coordinates(meuse) = ~x+y
v <- variogram(log(cadmium)~1, meuse)
m <- fit.variogram(v, vgm(1, "Sph", 300, 1))
plot(v, model = m)
set.seed(131)
data(meuse.grid)
gridded(meuse.grid) = ~x+y
si... |
#' Generate miscellaneous statistics for species range shifts
#'
#' This function generates graphs showing the changes in range size and position between
#' the data a species distribution model was trained on and future or past projections
#' of species ranges.
#'
#' NOTE: this function is dependent on the outputs gen... | /R/additionalStats.R | permissive | brshipley/megaSDM | R | false | false | 14,178 | r | #' Generate miscellaneous statistics for species range shifts
#'
#' This function generates graphs showing the changes in range size and position between
#' the data a species distribution model was trained on and future or past projections
#' of species ranges.
#'
#' NOTE: this function is dependent on the outputs gen... |
#' @title Calculate durations of time
#' @description
#' Calculates the duration of time between two provided date objects.
#' Supports vectorized data (i.e. \code{\link[dplyr:mutate]{dplyr::mutate()}}).
#' @param x A date or datetime. The start date(s)/timestamp(s).
#' @param y A date or datetime. The end date(s)/time... | /R/calc.R | no_license | efinite/utile.tools | R | false | false | 3,809 | r | #' @title Calculate durations of time
#' @description
#' Calculates the duration of time between two provided date objects.
#' Supports vectorized data (i.e. \code{\link[dplyr:mutate]{dplyr::mutate()}}).
#' @param x A date or datetime. The start date(s)/timestamp(s).
#' @param y A date or datetime. The end date(s)/time... |
#---------------------------------------------------------------------------
# setSampleParams.PowerTest.R
# Set the sample parameters and generate new groups
# @param sSize A vector containing the size of each sample
# @param sMean A vector containing the mean of each sample
# @param sSigma A vector containing th... | /setSampleParams.PowerTest.R | no_license | nihar/kruskal-wallis | R | false | false | 887 | r | #---------------------------------------------------------------------------
# setSampleParams.PowerTest.R
# Set the sample parameters and generate new groups
# @param sSize A vector containing the size of each sample
# @param sMean A vector containing the mean of each sample
# @param sSigma A vector containing th... |
lognormal_param <- function(expectation, variance) {
m <- expectation;
v <- variance;
mu <- log(m/sqrt(1 + v/(m*m)));
sigma2 <- log(1 + v/(m*m));
return(list(mu=mu, sigma2=sigma2));
};
E <- 3;
V <- 5;
N <- 500;
exact <- lognormal_param(E, V);
sample <- rlnorm(N, exact$mu, sqrt(exact$sigma2));
par(m... | /exercise1/exercise1.r | no_license | zhzhzoo/meucci-test | R | false | false | 1,248 | r | lognormal_param <- function(expectation, variance) {
m <- expectation;
v <- variance;
mu <- log(m/sqrt(1 + v/(m*m)));
sigma2 <- log(1 + v/(m*m));
return(list(mu=mu, sigma2=sigma2));
};
E <- 3;
V <- 5;
N <- 500;
exact <- lognormal_param(E, V);
sample <- rlnorm(N, exact$mu, sqrt(exact$sigma2));
par(m... |
\name{dbePlot}
\alias{dbePlot}
\alias{dbePlot,dbeOutput-method}
\docType{methods}
\title{Graphical display of 'dbeOutput' final estimates}
\description{
Method for plotting final estimates from an input 'dbeOutput' object.
}
\usage{
dbePlot(object,elmt,type="bar",Xstratum=NULL,step=NA,dispKey=TRUE,indScale=FALSE,\dots... | /COSTdbe/man/dbePlot.rd | no_license | BackupTheBerlios/cost-project | R | false | false | 1,968 | rd | \name{dbePlot}
\alias{dbePlot}
\alias{dbePlot,dbeOutput-method}
\docType{methods}
\title{Graphical display of 'dbeOutput' final estimates}
\description{
Method for plotting final estimates from an input 'dbeOutput' object.
}
\usage{
dbePlot(object,elmt,type="bar",Xstratum=NULL,step=NA,dispKey=TRUE,indScale=FALSE,\dots... |
# https://fivethirtyeight.com/features/dont-throw-out-that-calendar/
library(lubridate)
classifyYear <- function(year){
four <- 1 * (year %% 4 == 0)
startDay <- wday(ymd(paste(as.character(year), '-1-1', sep = '')))
return(paste(four, '-', startDay, sep = ''))
}
yearClasses <- unlist(lapply(2000:2140, classify... | /2017-01-06/Riddler Express/riddler.r | no_license | alexvornsand/fivethirtyeight-riddler | R | false | false | 802 | r | # https://fivethirtyeight.com/features/dont-throw-out-that-calendar/
library(lubridate)
classifyYear <- function(year){
four <- 1 * (year %% 4 == 0)
startDay <- wday(ymd(paste(as.character(year), '-1-1', sep = '')))
return(paste(four, '-', startDay, sep = ''))
}
yearClasses <- unlist(lapply(2000:2140, classify... |
#; 3.1 PCA of a two-variable matrix
library(readr)
boxes <- read_csv("D:/R/Q6 Quantitative Analysis R1-12/boxes.csv")
# boxes.pca -- principal components analysis of Davis boxes data
boxes.matrix <- data.matrix(cbind(boxes[,1],boxes[,4]))
dimnames(boxes.matrix) <- list(NULL, cbind("long","diag"))
plot (boxes.... | /Principal components and factor analysis.R | no_license | MichelMabinuola/Analysis-With-R | R | false | false | 3,931 | r | #; 3.1 PCA of a two-variable matrix
library(readr)
boxes <- read_csv("D:/R/Q6 Quantitative Analysis R1-12/boxes.csv")
# boxes.pca -- principal components analysis of Davis boxes data
boxes.matrix <- data.matrix(cbind(boxes[,1],boxes[,4]))
dimnames(boxes.matrix) <- list(NULL, cbind("long","diag"))
plot (boxes.... |
#' @title sample CITEseq protein data 87 protein by 2872 cells
#'
#' @description A matrix of cells by antibodies Raw CITEseq data used for example scripts of the dsb package. raw data processed with CITE-seq-count https://hoohm.github.io/CITE-seq-Count/
#'
#' @format A matrix 87 protein by 2872 cells
#' \describe {
#'... | /R/cells_citeseq_mtx.r | no_license | danjong99/dsb | R | false | false | 665 | r | #' @title sample CITEseq protein data 87 protein by 2872 cells
#'
#' @description A matrix of cells by antibodies Raw CITEseq data used for example scripts of the dsb package. raw data processed with CITE-seq-count https://hoohm.github.io/CITE-seq-Count/
#'
#' @format A matrix 87 protein by 2872 cells
#' \describe {
#'... |
# Generates Table 1
library(cem)
data(LL)
mod <- glm(treated ~ . - re78, data=LL)
w <- predict(mod)
idx <- which(LL$treated==1)
w[idx] <- 1-w[idx] # pscore weights
set.seed(123)
imb0 <- L1.profile(LL$treated,LL, max.cut=20, drop=c("treated","re78"),M=250,plot=FALSE)
#on the original data
raw <- imbalance(LL$treat... | /CS112/daughter_effect/dataverse_files/forTable1.R | no_license | guydav/r | R | false | false | 930 | r | # Generates Table 1
library(cem)
data(LL)
mod <- glm(treated ~ . - re78, data=LL)
w <- predict(mod)
idx <- which(LL$treated==1)
w[idx] <- 1-w[idx] # pscore weights
set.seed(123)
imb0 <- L1.profile(LL$treated,LL, max.cut=20, drop=c("treated","re78"),M=250,plot=FALSE)
#on the original data
raw <- imbalance(LL$treat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mi2comb.R
\name{mi2comb}
\alias{mi2comb}
\title{combintion following nested multiple imputation}
\usage{
mi2comb(dt, alpha = 0.025)
}
\arguments{
\item{dt}{dataframe}
\item{alpha}{numeric, one-sided alpha, Default: 0.025}
}
\value{
dataframe... | /man/mi2comb.Rd | permissive | yuliasidi/nibinom | R | false | true | 514 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mi2comb.R
\name{mi2comb}
\alias{mi2comb}
\title{combintion following nested multiple imputation}
\usage{
mi2comb(dt, alpha = 0.025)
}
\arguments{
\item{dt}{dataframe}
\item{alpha}{numeric, one-sided alpha, Default: 0.025}
}
\value{
dataframe... |
tuneEcrossCausal = function(ecross_control_candidates = c(1,2,3),
ecross_moderate_candidates = c(1,2,3),
y, pihat, z, tgt, x_control, x_moderate,
pihatpred=0, zpred=0, tpred=0, xpred_control=matrix(0,0,0), xpred_moderate=matrix(0,0,0),
... | /R/tuneECrossCausal.R | no_license | jestarling/tsbcf | R | false | false | 6,301 | r | tuneEcrossCausal = function(ecross_control_candidates = c(1,2,3),
ecross_moderate_candidates = c(1,2,3),
y, pihat, z, tgt, x_control, x_moderate,
pihatpred=0, zpred=0, tpred=0, xpred_control=matrix(0,0,0), xpred_moderate=matrix(0,0,0),
... |
/chap06/Krisp_Kreme.R | no_license | leetschau/app-of-rlang-in-stats | R | false | false | 1,261 | r | ||
library(ggplot2)
library(kernlab)
library(caret)
library(caTools)
library(gridExtra)
################################################ Objective ################################################
# To succesfully classify handwritten digits (0-9) using pixel values
# Support Vector Machines will be app... | /tvmarketing.R | no_license | shub005/Data-Science | R | false | false | 13,247 | r | library(ggplot2)
library(kernlab)
library(caret)
library(caTools)
library(gridExtra)
################################################ Objective ################################################
# To succesfully classify handwritten digits (0-9) using pixel values
# Support Vector Machines will be app... |
library(RISC)
library(ggplot2)
library(RColorBrewer)
library(irlba)
library(umap)
PATH = "/Path to the data/GSE111113"
###################################################################################
### RISC raw ###
###################################################################################
mat0 = read.t... | /RISC_Supplementary/GSE111113/GSE111113.R | no_license | phycomlab/RISC | R | false | false | 3,696 | r | library(RISC)
library(ggplot2)
library(RColorBrewer)
library(irlba)
library(umap)
PATH = "/Path to the data/GSE111113"
###################################################################################
### RISC raw ###
###################################################################################
mat0 = read.t... |
#Convert list of names to grep commands. Or iterate through long names and replace with unique name (assign column of unique numbers for each name and replace each name with number reference. then in original data, just merge to assign names to numbers.)
library(rio)
library(tidyverse)
library(stringr)
library(stringi)... | /Data_Wrangling_Viz/Case_Study_06/analysis/Scratch_Paper.R | no_license | McKayMDavis/Portfolio | R | false | false | 1,946 | r | #Convert list of names to grep commands. Or iterate through long names and replace with unique name (assign column of unique numbers for each name and replace each name with number reference. then in original data, just merge to assign names to numbers.)
library(rio)
library(tidyverse)
library(stringr)
library(stringi)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimpute.R
\name{rand_imputation_learner}
\alias{rand_imputation_learner}
\title{Learner for conducting random imputation}
\usage{
rand_imputation_learner(...)
}
\arguments{
\item{...}{Use keyword arguments to set parameters on the resulting... | /man/rand_imputation_learner.Rd | no_license | cran/iai | R | false | true | 613 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimpute.R
\name{rand_imputation_learner}
\alias{rand_imputation_learner}
\title{Learner for conducting random imputation}
\usage{
rand_imputation_learner(...)
}
\arguments{
\item{...}{Use keyword arguments to set parameters on the resulting... |
args <- commandArgs(trailingOnly = TRUE)
library(VennDiagram)
locfile <- read.table(file = args[1], header = FALSE)
names(locfile) <- c('sig', 'caller')
allcaller <- unique(locfile[[2]])
loclist <- as.list(vector(length = length(allcaller)))
for (n in 1:length(allcaller)) {
loclist[n] <- locfile[locfile$caller == all... | /opt/RNASeqAnalysis/3_VarCalling/exec/VennPlot.R | no_license | YU-Zhejian/DST2_Group | R | false | false | 495 | r | args <- commandArgs(trailingOnly = TRUE)
library(VennDiagram)
locfile <- read.table(file = args[1], header = FALSE)
names(locfile) <- c('sig', 'caller')
allcaller <- unique(locfile[[2]])
loclist <- as.list(vector(length = length(allcaller)))
for (n in 1:length(allcaller)) {
loclist[n] <- locfile[locfile$caller == all... |
dat = read.csv("C:/Dev/DataScience/R_doc/Bayes/mixture.csv", header=FALSE)
y = dat$V1
(n = length(y))
library("rjags")
mod_string = " model {
for (i in 1:length(y)) {
y[i] ~ dnorm(mu[z[i]], prec)
z[i] ~ dcat(omega)
}
mu[1] ~ dnorm(-1.0, 1.0/100.0)
mu[2] ~ dnorm(1.0, 1.0/100.0) T(mu[1],)... | /R/RDSProject/R/mixture_model.R | no_license | sadiagit/DataScience-R | R | false | false | 1,170 | r | dat = read.csv("C:/Dev/DataScience/R_doc/Bayes/mixture.csv", header=FALSE)
y = dat$V1
(n = length(y))
library("rjags")
mod_string = " model {
for (i in 1:length(y)) {
y[i] ~ dnorm(mu[z[i]], prec)
z[i] ~ dcat(omega)
}
mu[1] ~ dnorm(-1.0, 1.0/100.0)
mu[2] ~ dnorm(1.0, 1.0/100.0) T(mu[1],)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{compute_force}
\alias{compute_force}
\title{Compute the force upon point \code{a} from point \code{b}.}
\usage{
compute_force(a, b, force = 1e-06)
}
\arguments{
\item{a}{A point like \code{c(x, y)}}
\item{b}{A point like ... | /man/compute_force.Rd | no_license | Gofer51/ggrepel | R | false | true | 478 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{compute_force}
\alias{compute_force}
\title{Compute the force upon point \code{a} from point \code{b}.}
\usage{
compute_force(a, b, force = 1e-06)
}
\arguments{
\item{a}{A point like \code{c(x, y)}}
\item{b}{A point like ... |
################################################################################
## Fitting, plotting, summarizing staggered synth
################################################################################
#' Fit staggered synth
#' @param form outcome ~ treatment
#' @param unit Name of unit column
#' @param time... | /R/multisynth_class.R | permissive | speedtriple955/augsynth | R | false | false | 33,081 | r | ################################################################################
## Fitting, plotting, summarizing staggered synth
################################################################################
#' Fit staggered synth
#' @param form outcome ~ treatment
#' @param unit Name of unit column
#' @param time... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 61063
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 61062
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 61062
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Sauer-Reimer/ITC99/b15_PR_4_90/b15_PR_4_90.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 719 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 61063
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 61062
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 61062
c
c Input Parameter (command line, ... |
## demonstration of all summary functions
opa <- par(mfrow=c(1,1),
mar=c(0,0,1,0)+0.2)
## Ripley's K-function
plot(swedishpines)
par(mar=c(4,4,2,1)+0.2)
plot(Kest(swedishpines))
## Besag's transformation
plot(Lest(swedishpines))
## pair correlation function
plot(pcf(swedishpines))
par(mfrow=c(2,3),
... | /demo/sumfun.R | no_license | rubak/spatstat | R | false | false | 4,074 | r | ## demonstration of all summary functions
opa <- par(mfrow=c(1,1),
mar=c(0,0,1,0)+0.2)
## Ripley's K-function
plot(swedishpines)
par(mar=c(4,4,2,1)+0.2)
plot(Kest(swedishpines))
## Besag's transformation
plot(Lest(swedishpines))
## pair correlation function
plot(pcf(swedishpines))
par(mfrow=c(2,3),
... |
# Sven Chilton and Nathan Helm-Burger
# Signal Data Science Cohort 3
setwd('~/GitHub/signal-work/rscripts')
library(dplyr)
library(glmnet)
library(corrplot)
df = read.csv('../data/speeddating-aggregated.csv')
# Find the 4 most common careers
most_common_career_counts = sort(table(df[['career_c']]), decreasing = TRU... | /rscripts/Multinomial-Speed-Dating.R | no_license | svenchilton/signal-work | R | false | false | 2,431 | r | # Sven Chilton and Nathan Helm-Burger
# Signal Data Science Cohort 3
setwd('~/GitHub/signal-work/rscripts')
library(dplyr)
library(glmnet)
library(corrplot)
df = read.csv('../data/speeddating-aggregated.csv')
# Find the 4 most common careers
most_common_career_counts = sort(table(df[['career_c']]), decreasing = TRU... |
library(supclust)
### Name: plot.wilma
### Title: 2-Dimensional Visualization of Wilma's Output
### Aliases: plot.wilma
### Keywords: classif cluster
### ** Examples
## Running the examples of Wilma's help page
example(wilma, echo = FALSE)
plot(fit)
| /data/genthat_extracted_code/supclust/examples/plot.wilma.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 260 | r | library(supclust)
### Name: plot.wilma
### Title: 2-Dimensional Visualization of Wilma's Output
### Aliases: plot.wilma
### Keywords: classif cluster
### ** Examples
## Running the examples of Wilma's help page
example(wilma, echo = FALSE)
plot(fit)
|
## function that returns lines of a given dataframe before and after a detected action
fctGetStateTransitions <- function(dfData, action, threshold = 5, linesBefore=15, linesAfter = 5, filterCloseActions = 1){
actionShifted <- action
actionShifted <- append(actionShifted, NA, after=0)
actionShifted <- actionShifted[-l... | /R/fctGetStateTransitions.r | no_license | marcelschweiker/OB_r | R | false | false | 2,283 | r |
## function that returns lines of a given dataframe before and after a detected action
fctGetStateTransitions <- function(dfData, action, threshold = 5, linesBefore=15, linesAfter = 5, filterCloseActions = 1){
actionShifted <- action
actionShifted <- append(actionShifted, NA, after=0)
actionShifted <- actionShifted[-l... |
vivid_server <- function(){
server <- function(input, output, session) {
.globals$vivid_server$child_queue$consumer$start()
.globals$remote_r$set_session(session)
session$userData$docs <- list()
session$userData$r_markdown <- list()
session$userData$r_output <- list()
server_documents... | /R/main-server.R | no_license | fellstat/vivid | R | false | false | 2,261 | r |
vivid_server <- function(){
server <- function(input, output, session) {
.globals$vivid_server$child_queue$consumer$start()
.globals$remote_r$set_session(session)
session$userData$docs <- list()
session$userData$r_markdown <- list()
session$userData$r_output <- list()
server_documents... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ModellingServer.R
\name{ModellingServer}
\alias{ModellingServer}
\title{ModellingServer}
\usage{
ModellingServer(input, output)
}
\arguments{
\item{output}{}
}
\value{
output
}
\description{
Creates and exports the server for the 'modelling' ... | /babyShiny/man/ModellingServer.Rd | no_license | TomHSY/babyShiny | R | false | true | 338 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ModellingServer.R
\name{ModellingServer}
\alias{ModellingServer}
\title{ModellingServer}
\usage{
ModellingServer(input, output)
}
\arguments{
\item{output}{}
}
\value{
output
}
\description{
Creates and exports the server for the 'modelling' ... |
# This mini-project is based on the K-Means exercise from 'R in Action'
# Go here for the original blog post and solutions
# http://www.r-bloggers.com/k-means-clustering-from-r-in-action/
# Exercise 0: Install these packages if you don't have them already
install.packages(c("cluster", "rattle.data","NbClust"))
# Now... | /Machine Learning/1505932415_clustering.R | no_license | annapooranic/Springboard---Foundations-of-Data-Science | R | false | false | 2,975 | r | # This mini-project is based on the K-Means exercise from 'R in Action'
# Go here for the original blog post and solutions
# http://www.r-bloggers.com/k-means-clustering-from-r-in-action/
# Exercise 0: Install these packages if you don't have them already
install.packages(c("cluster", "rattle.data","NbClust"))
# Now... |
/man/hbmr.Rd | no_license | cran/BMRV | R | false | false | 4,459 | rd | ||
library(shiny)
library(ggplot2)
library(dplyr)
songs <- read.csv("songs.csv")
ui <- fluidPage(
titlePanel("Songs dataset", windowTitle = "Songs dataset"),
sidebarLayout(
sidebarPanel(
selectInput("FromID", "From",
choices = c("1990", "1991", "1992", "1993", "1994", "1995", "19... | /app.R | no_license | vrsh/ShinyApp2 | R | false | false | 91,189 | r | library(shiny)
library(ggplot2)
library(dplyr)
songs <- read.csv("songs.csv")
ui <- fluidPage(
titlePanel("Songs dataset", windowTitle = "Songs dataset"),
sidebarLayout(
sidebarPanel(
selectInput("FromID", "From",
choices = c("1990", "1991", "1992", "1993", "1994", "1995", "19... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.