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 |
|---|---|---|---|---|---|---|---|---|---|
library(gpuR)
context("vclVector classes")
if(detectGPUs() >= 1){
current_context <- set_device_context("gpu")
}else{
current_context <- currentContext()
}
set.seed(123)
A <- seq.int(10)
D <- rnorm(10)
test_that("vclVector integer class initializer" ,{
has_gpu_skip()
vclA <- vclVector(A... | /tests/testthat/test_vclVector_classes.R | no_license | fossabot/gpuR | R | false | false | 3,234 | r | library(gpuR)
context("vclVector classes")
if(detectGPUs() >= 1){
current_context <- set_device_context("gpu")
}else{
current_context <- currentContext()
}
set.seed(123)
A <- seq.int(10)
D <- rnorm(10)
test_that("vclVector integer class initializer" ,{
has_gpu_skip()
vclA <- vclVector(A... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_infomap.R
\name{check_infomap}
\alias{check_infomap}
\title{Check if Infomap's standalone file is installed.}
\usage{
check_infomap(x = "Infomap")
}
\value{
FALSE and an error if Infomap is not installed correctly. TRUE (and version num... | /man/check_infomap.Rd | no_license | annaeklof/infomap_ecology_package | R | false | true | 592 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_infomap.R
\name{check_infomap}
\alias{check_infomap}
\title{Check if Infomap's standalone file is installed.}
\usage{
check_infomap(x = "Infomap")
}
\value{
FALSE and an error if Infomap is not installed correctly. TRUE (and version num... |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyServer(function(input, output) {
output$formula <- renderPrint({
value1 <- renderValue(input$nr1, input$act10)
value2 <- renderVa... | /server.R | no_license | hgf241/SimpleCalculator | R | false | false | 2,714 | r |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyServer(function(input, output) {
output$formula <- renderPrint({
value1 <- renderValue(input$nr1, input$act10)
value2 <- renderVa... |
library(kernlab)
library(RColorBrewer)
library(caret)
library(kernlab)
CUSTOM_COLORS_PLOT <- colorRampPalette(brewer.pal(10, "Set3"))
# Cargando el conjunto de datos
data(spam)
inTrain <- createDataPartition(y=spam$type, p=0.75, list=FALSE)
datosSpam <- spam[inTrain, ]
levels(datosSpam$type)
result <- table(datosSpam$... | /fase0.R | no_license | proyectohageo/multivar | R | false | false | 3,864 | r | library(kernlab)
library(RColorBrewer)
library(caret)
library(kernlab)
CUSTOM_COLORS_PLOT <- colorRampPalette(brewer.pal(10, "Set3"))
# Cargando el conjunto de datos
data(spam)
inTrain <- createDataPartition(y=spam$type, p=0.75, list=FALSE)
datosSpam <- spam[inTrain, ]
levels(datosSpam$type)
result <- table(datosSpam$... |
\name{timeModels}
\alias{timeModels}
\title{models for estimating prediction time in intamap package}
\description{
This is a standard model for estimating the prediction time within the
\code{\link{intamap-package}}. It was created by the function
\code{\link{generateTimeModels}}, on a 64 bits Linux server runn... | /man/timeModels.Rd | no_license | cran/intamap | R | false | false | 1,338 | rd | \name{timeModels}
\alias{timeModels}
\title{models for estimating prediction time in intamap package}
\description{
This is a standard model for estimating the prediction time within the
\code{\link{intamap-package}}. It was created by the function
\code{\link{generateTimeModels}}, on a 64 bits Linux server runn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/songNames.R
\name{songNames}
\alias{songNames}
\title{Song names of an artist/band.}
\usage{
songNames(name)
}
\arguments{
\item{name}{The name of the artist/band.}
}
\value{
\code{relatedInfo} returns a data.frame with information
about ... | /man/songNames.Rd | no_license | APILASTRI/vagalumeR | R | false | true | 651 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/songNames.R
\name{songNames}
\alias{songNames}
\title{Song names of an artist/band.}
\usage{
songNames(name)
}
\arguments{
\item{name}{The name of the artist/band.}
}
\value{
\code{relatedInfo} returns a data.frame with information
about ... |
\name{simulateReadCounts}
\alias{simulateReadCounts}
\title{Generate simulation data from negative binomial (NB) distribution}
\description{
This function generates simulation data with arbitrary defined
experimental condition.
}
\usage{
simulateReadCounts(Ngene = 10000, PDEG = 0.20, DEG.assign = NULL,
... | /man/simulateReadCounts.Rd | no_license | swsoyee/TCC | R | false | false | 6,957 | rd | \name{simulateReadCounts}
\alias{simulateReadCounts}
\title{Generate simulation data from negative binomial (NB) distribution}
\description{
This function generates simulation data with arbitrary defined
experimental condition.
}
\usage{
simulateReadCounts(Ngene = 10000, PDEG = 0.20, DEG.assign = NULL,
... |
library(lestat)
### Name: designOneGroup
### Title: Create a Design Matrix for One Group of Observations
### Aliases: designOneGroup
### Keywords: One-sample t test
### ** Examples
data <- simulate(normal(4, log(1.3)), 9)
design <- designOneGroup(9)
posterior <- linearmodel(data, design)
credibilityinterval(margina... | /data/genthat_extracted_code/lestat/examples/designOneGroup.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 340 | r | library(lestat)
### Name: designOneGroup
### Title: Create a Design Matrix for One Group of Observations
### Aliases: designOneGroup
### Keywords: One-sample t test
### ** Examples
data <- simulate(normal(4, log(1.3)), 9)
design <- designOneGroup(9)
posterior <- linearmodel(data, design)
credibilityinterval(margina... |
test <- function(){
## Import data
h2oData <- h2o.importFile("/mnt/0xcustomer-datasets/c27/data.csv")
betaConstraints <- h2o.importFile("/mnt/0xcustomer-datasets/c27/constraints_indices.csv")
betaConstraints <- betaConstraints[1:(nrow(betaConstraints)-1),] # remove intercept
betaConstraints <- as.data.fram... | /h2o-r/tests/testdir_jira/runit_NOPASS_INTERNAL_hex_2025_priors.R | permissive | KendraFabric/h2o-3 | R | false | false | 2,271 | r |
test <- function(){
## Import data
h2oData <- h2o.importFile("/mnt/0xcustomer-datasets/c27/data.csv")
betaConstraints <- h2o.importFile("/mnt/0xcustomer-datasets/c27/constraints_indices.csv")
betaConstraints <- betaConstraints[1:(nrow(betaConstraints)-1),] # remove intercept
betaConstraints <- as.data.fram... |
##############################################################################################
##############################################################################################
##### CREATED 1/28/2018 #####
#install.packages("lqa")
###predictors correlation of 0.2
rm(list=ls())
library("lqa") # version 1.0... | /simulation/case2/sampleSize200/lassoSep_moderate_start_201.R | no_license | TingtingKayla/Stats_Robust_Causal_Estimation | R | false | false | 8,591 | r | ##############################################################################################
##############################################################################################
##### CREATED 1/28/2018 #####
#install.packages("lqa")
###predictors correlation of 0.2
rm(list=ls())
library("lqa") # version 1.0... |
library(rjson)
library(keras)
library(reticulate)
# In version 2 of fashion, we
# will load the images as part of the generator
# i.e., this is an experiment in loading and processing images directly
# from the http source into the model, rather than downloading them first
original_dataset_dir <- '~/Downloads/all-1... | /fashion_v2.R | no_license | pnicewicz421/Fashionista | R | false | false | 8,907 | r | library(rjson)
library(keras)
library(reticulate)
# In version 2 of fashion, we
# will load the images as part of the generator
# i.e., this is an experiment in loading and processing images directly
# from the http source into the model, rather than downloading them first
original_dataset_dir <- '~/Downloads/all-1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MSPE.R
\name{MSPE_naive}
\alias{MSPE_naive}
\title{Naive MSPE Estimator of Observed Best Predictor (OBP).}
\usage{
MSPE_naive(y, D, theta.OBP, A.BPE)
}
\arguments{
\item{y}{A vector of the response variable.}
\item{D}{Scalar, Vector (or diag... | /man/MSPE_naive.Rd | no_license | rohosen/OBPSAE | R | false | true | 783 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MSPE.R
\name{MSPE_naive}
\alias{MSPE_naive}
\title{Naive MSPE Estimator of Observed Best Predictor (OBP).}
\usage{
MSPE_naive(y, D, theta.OBP, A.BPE)
}
\arguments{
\item{y}{A vector of the response variable.}
\item{D}{Scalar, Vector (or diag... |
rm(list=ls())
library(data.table)
library(raster)
setwd('')
pop <- raster('output/rasters/final_pop_count.tif')
dt <- data.table(pop[]);dt<-na.omit(dt);nrow(dt);sum(dt[,1])
rm(dt)
names(pop) <- 'SSD_population_v2_0_gridded_population'
#writeRaster(pop,'output/rasters/final/SSD_population_v2_0_gridde... | /R/7 saving_final_rasters.R | no_license | Nour-Audi/SSD_pop_v2.0 | R | false | false | 2,068 | r |
rm(list=ls())
library(data.table)
library(raster)
setwd('')
pop <- raster('output/rasters/final_pop_count.tif')
dt <- data.table(pop[]);dt<-na.omit(dt);nrow(dt);sum(dt[,1])
rm(dt)
names(pop) <- 'SSD_population_v2_0_gridded_population'
#writeRaster(pop,'output/rasters/final/SSD_population_v2_0_gridde... |
library(mycobacrvR)
### Name: filter.firstlayer
### Title: Filter first layer data
### Aliases: filter.firstlayer
### Keywords: Function
### ** Examples
## Not run: filter.firstlayer("firstlayer.txt",organism="Mycobacterium avium 104")
| /data/genthat_extracted_code/mycobacrvR/examples/filter.firstlayer.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 241 | r | library(mycobacrvR)
### Name: filter.firstlayer
### Title: Filter first layer data
### Aliases: filter.firstlayer
### Keywords: Function
### ** Examples
## Not run: filter.firstlayer("firstlayer.txt",organism="Mycobacterium avium 104")
|
# Statics
set.seed(4)
test_table_1 <- data.frame(
y = c(sample(1:100, 100)),
x1 = c(1:95, sample(95:100, 5)),
x2 = c(1:95 * 2, sample(190:200, 5)),
x3 = c(sample(1:500, 100))
)
test_1.lm <- lm(y ~ ., data = test_table_1)
test_1_expected.lm <- lm(y ~ x2 + x3, data = test_table_1)
test_1_expected_2.lm <- lm(y ~... | /tests/testthat/test_vif_lm.R | permissive | user01/uvadsi | R | false | false | 1,619 | r |
# Statics
set.seed(4)
test_table_1 <- data.frame(
y = c(sample(1:100, 100)),
x1 = c(1:95, sample(95:100, 5)),
x2 = c(1:95 * 2, sample(190:200, 5)),
x3 = c(sample(1:500, 100))
)
test_1.lm <- lm(y ~ ., data = test_table_1)
test_1_expected.lm <- lm(y ~ x2 + x3, data = test_table_1)
test_1_expected_2.lm <- lm(y ~... |
###############################################################################
###############################################################################
###############################################################################
## instaluji a loaduji balíčky --------------------------------------------... | /_script_.R | no_license | Kyoshido/marianska_podzim_2019 | R | false | false | 9,699 | r | ###############################################################################
###############################################################################
###############################################################################
## instaluji a loaduji balíčky --------------------------------------------... |
rDisattenuated<-function(x,y, xrel, yrel){
test<-cor.test(x,y)
r<-as.numeric(test$estimate)
disattenuated<-(r)/sqrt(xrel*yrel)
return(disattenuated)
}
| /rDisattenuated.R | no_license | ARPeters/Utilities | R | false | false | 159 | r | rDisattenuated<-function(x,y, xrel, yrel){
test<-cor.test(x,y)
r<-as.numeric(test$estimate)
disattenuated<-(r)/sqrt(xrel*yrel)
return(disattenuated)
}
|
## this is the code for cleaning the data set
library(tidyverse)
library(lubridate)
library(stringr)
library(rgdal)
library(sp)
library(maptools)
library(ggmap)
library(sp)
# guess_max set because otherwise R sets up the variables incorrectly
aussie_data <- read_csv("data_raw/mmc1.csv", guess_max = 5000)
# initial bi... | /data_raw/clean_data.R | no_license | geanders/Aussie_project | R | false | false | 9,196 | r | ## this is the code for cleaning the data set
library(tidyverse)
library(lubridate)
library(stringr)
library(rgdal)
library(sp)
library(maptools)
library(ggmap)
library(sp)
# guess_max set because otherwise R sets up the variables incorrectly
aussie_data <- read_csv("data_raw/mmc1.csv", guess_max = 5000)
# initial bi... |
#!/usr/local/bin/Rscript
server <- function(){
while(TRUE){
writeLines("Listening...")
con <- socketConnection(host="localhost", port = 6011, blocking=TRUE,
server=TRUE, open="r+")
data <- readLines(con, 1)
print(data)
response <- toupper(data)
writeLines(response... | /server.R | no_license | yinxusen/r-socket-server | R | false | false | 358 | r | #!/usr/local/bin/Rscript
server <- function(){
while(TRUE){
writeLines("Listening...")
con <- socketConnection(host="localhost", port = 6011, blocking=TRUE,
server=TRUE, open="r+")
data <- readLines(con, 1)
print(data)
response <- toupper(data)
writeLines(response... |
library(bs4Dash)
library(fresh)
library(shiny)
library(shinydashboard)
library(ggplot2)
library(plotly)
library(DT)
library(shiny)
library(ECharts2Shiny)
library(leaflet)
library(threejs)
library(png)
library(dplyr)
library(treemap)
library(d3treeR)
library(datasets)
library(rstatix)
library(dslabs)
l... | /GTD DASHBOARD (2).R | no_license | nidhiteresa216/GTD-Dashboard | R | false | false | 59,041 | r | library(bs4Dash)
library(fresh)
library(shiny)
library(shinydashboard)
library(ggplot2)
library(plotly)
library(DT)
library(shiny)
library(ECharts2Shiny)
library(leaflet)
library(threejs)
library(png)
library(dplyr)
library(treemap)
library(d3treeR)
library(datasets)
library(rstatix)
library(dslabs)
l... |
# Resource from Carnegie Mellon University
# Taken from Luis Von Ahn's (founder of reCAPTCHA & duoling) resources
# Sourced from https://www.cs.cmu.edu/~biglou/resources/bad-words.txt
profanities <- tibble(word = read_lines("https://www.cs.cmu.edu/~biglou/resources/bad-words.txt")) %>%
filter(word != "")
save(profa... | /data-raw/profanities.R | no_license | mathiasfls/genius | R | false | false | 361 | r | # Resource from Carnegie Mellon University
# Taken from Luis Von Ahn's (founder of reCAPTCHA & duoling) resources
# Sourced from https://www.cs.cmu.edu/~biglou/resources/bad-words.txt
profanities <- tibble(word = read_lines("https://www.cs.cmu.edu/~biglou/resources/bad-words.txt")) %>%
filter(word != "")
save(profa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataIO.r
\name{write_xlsx}
\alias{write_xlsx}
\title{This is a link to a older function}
\usage{
write_xlsx(list, file, oneFile = TRUE)
}
\arguments{
\item{link}{to saveList2Xls}
}
\description{
This is a link to a older function
}
| /man/write_xlsx.Rd | no_license | jkruppa/dataTools | R | false | true | 310 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataIO.r
\name{write_xlsx}
\alias{write_xlsx}
\title{This is a link to a older function}
\usage{
write_xlsx(list, file, oneFile = TRUE)
}
\arguments{
\item{link}{to saveList2Xls}
}
\description{
This is a link to a older function
}
|
CRPS.default <-
function(fit, ensembleData, dates=NULL, nSamples=NULL, seed=NULL, ...)
{
#
# copyright 2006-present, University of Washington. All rights reserved.
# for terms of use, see the LICENSE file
#
mc <- match.call()
mc[[1]] <- as.name("crps")
colMeans( eval(mc,parent.frame()), na.rm=TRUE)
}
| /R/CRPS.default.R | no_license | cran/ensembleBMA | R | false | false | 310 | r | CRPS.default <-
function(fit, ensembleData, dates=NULL, nSamples=NULL, seed=NULL, ...)
{
#
# copyright 2006-present, University of Washington. All rights reserved.
# for terms of use, see the LICENSE file
#
mc <- match.call()
mc[[1]] <- as.name("crps")
colMeans( eval(mc,parent.frame()), na.rm=TRUE)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis_analyze_gene_drug_response.R
\name{vis_gene_drug_response_diff}
\alias{vis_gene_drug_response_diff}
\title{Visualize Gene and Drug Response Difference with CCLE Data}
\usage{
vis_gene_drug_response_diff(
Gene = "TP53",
tissue = "lung"... | /man/vis_gene_drug_response_diff.Rd | permissive | fei0810/UCSCXenaShiny | R | false | true | 994 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis_analyze_gene_drug_response.R
\name{vis_gene_drug_response_diff}
\alias{vis_gene_drug_response_diff}
\title{Visualize Gene and Drug Response Difference with CCLE Data}
\usage{
vis_gene_drug_response_diff(
Gene = "TP53",
tissue = "lung"... |
library(ggplot2)
library(dplyr)
#sigmoid function, inverse of logit
sigmoid <- function(z){1/(1+exp(-z))}
#cost function
cost <- function(theta, X, y){
m <- length(y) # number of training examples
h <- sigmoid(X %*% theta)
J <- (t(-y)%*%log(h)-t(1-y)%*%log(1-h))/m
J
}
#gradient function
grad <- function(theta... | /logistic regression.R | no_license | Conorcuddihy/Machine-Learning | R | false | false | 2,914 | r | library(ggplot2)
library(dplyr)
#sigmoid function, inverse of logit
sigmoid <- function(z){1/(1+exp(-z))}
#cost function
cost <- function(theta, X, y){
m <- length(y) # number of training examples
h <- sigmoid(X %*% theta)
J <- (t(-y)%*%log(h)-t(1-y)%*%log(1-h))/m
J
}
#gradient function
grad <- function(theta... |
#coefficients = function(object, ...) {UseMethod("coefficients")}
#coefficients.default = base::coefficients
coef.bma = function(object, ...) {
conditionalmeans = list2matrix.bma(object, "mle")
conditionalmeans[,-1] = sweep(conditionalmeans[,-1], 1, object$shrinkage,
FUN="*")
pos... | /BAS/R/coefficients.R | no_license | ingted/R-Examples | R | false | false | 3,561 | r | #coefficients = function(object, ...) {UseMethod("coefficients")}
#coefficients.default = base::coefficients
coef.bma = function(object, ...) {
conditionalmeans = list2matrix.bma(object, "mle")
conditionalmeans[,-1] = sweep(conditionalmeans[,-1], 1, object$shrinkage,
FUN="*")
pos... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stan_gamm4.R
\name{stan_gamm4}
\alias{stan_gamm4}
\alias{plot_nonlinear}
\title{Bayesian generalized linear additive models with optional group-specific
terms via Stan}
\usage{
stan_gamm4(
formula,
random = NULL,
family = gaussian(),
... | /man/stan_gamm4.Rd | no_license | cran/rstanarm | R | false | true | 13,692 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stan_gamm4.R
\name{stan_gamm4}
\alias{stan_gamm4}
\alias{plot_nonlinear}
\title{Bayesian generalized linear additive models with optional group-specific
terms via Stan}
\usage{
stan_gamm4(
formula,
random = NULL,
family = gaussian(),
... |
#' Decide tests for each label
#'
#' Decide which tests (i.e., genes) are significant for differential expression between conditions in each label,
#' using the output of \code{\link{pseudoBulkDGE}}.
#' This mimics the \code{\link{decideTests}} functionality from \pkg{limma}.
#'
#' @param results A \linkS4class{List} c... | /R/decideTestsPerLabel.R | no_license | MarioniLab/scran | R | false | false | 4,433 | r | #' Decide tests for each label
#'
#' Decide which tests (i.e., genes) are significant for differential expression between conditions in each label,
#' using the output of \code{\link{pseudoBulkDGE}}.
#' This mimics the \code{\link{decideTests}} functionality from \pkg{limma}.
#'
#' @param results A \linkS4class{List} c... |
# Generated by autofun (0.0.0.9000): do not edit by hand!!!
# Please edit source code in R-autofun/prepare-clhs-covars.R
.prepare_clhs_covars<-function(...){
expression(if (use.coords) { covars <- data.frame(covars, candi[, 2:3]) },
n_cov <- ncol(covars), if (pedometrics::anyFactor(covars)) {
if (pedometrics... | /spsann/R/prepare-clhs-covars.R | no_license | akhikolla/InformationHouse | R | false | false | 1,166 | r | # Generated by autofun (0.0.0.9000): do not edit by hand!!!
# Please edit source code in R-autofun/prepare-clhs-covars.R
.prepare_clhs_covars<-function(...){
expression(if (use.coords) { covars <- data.frame(covars, candi[, 2:3]) },
n_cov <- ncol(covars), if (pedometrics::anyFactor(covars)) {
if (pedometrics... |
rm(list=ls())
mdat<-data.frame(read.csv("//Users/TScott/Google Drive/duckabush/management_data_v2.csv",header=TRUE))
for (i in 1:ncol(mdat))
{
mdat[,i]<-tolower(mdat[,i])
}
edat<-(read.csv("//Users/TScott/Google Drive/duckabush/ready_to_model_dat.csv",header=TRUE))
for (i in 1:ncol(edat))
{
edat[,i]<-tolower(edat... | /LMER_Models_Dlag.R | no_license | tylerandrewscott/duckabush | R | false | false | 36,175 | r | rm(list=ls())
mdat<-data.frame(read.csv("//Users/TScott/Google Drive/duckabush/management_data_v2.csv",header=TRUE))
for (i in 1:ncol(mdat))
{
mdat[,i]<-tolower(mdat[,i])
}
edat<-(read.csv("//Users/TScott/Google Drive/duckabush/ready_to_model_dat.csv",header=TRUE))
for (i in 1:ncol(edat))
{
edat[,i]<-tolower(edat... |
#' trace each call with a srcref attribute
#'
#' This function calls itself recursively so it can properly traverse the AST.
#' @param x the call
#' @param parent_functions the functions which this call is a child of.
#' @param parent_ref argument used to set the srcref of the current call when recursing
#' @seealso \u... | /R/trace_calls.R | no_license | lfthwjx/covr | R | false | false | 3,698 | r | #' trace each call with a srcref attribute
#'
#' This function calls itself recursively so it can properly traverse the AST.
#' @param x the call
#' @param parent_functions the functions which this call is a child of.
#' @param parent_ref argument used to set the srcref of the current call when recursing
#' @seealso \u... |
source("workflow/scripts/setup.R")
infile <- "https://eichlerlab.gs.washington.edu/help/mvollger/share/tmp.gz"
infile <- snakemake@input[[1]]
outfile <- snakemake@output[[1]]
df <- read_in_snv_windows(infile)
df_long <- make_long_df(df)
fwrite(df_long, outfile, sep = "\t", quote = FALSE, row.names = FALSE) | /workflow/scripts/make_long_and_filter.R | permissive | mrvollger/sd-divergence | R | false | false | 309 | r | source("workflow/scripts/setup.R")
infile <- "https://eichlerlab.gs.washington.edu/help/mvollger/share/tmp.gz"
infile <- snakemake@input[[1]]
outfile <- snakemake@output[[1]]
df <- read_in_snv_windows(infile)
df_long <- make_long_df(df)
fwrite(df_long, outfile, sep = "\t", quote = FALSE, row.names = FALSE) |
#' Mulitple Merge
#'
#' Inspired by:
#' https://www.r-bloggers.com/merging-multiple-data-files-into-one-data-frame/
#'
#' @param filenames character vector with filenames
#'
#' @return data.frame with merged files
#'
#' @examples
#' \dontrun{
#' multmerge(c("file1.csv", "file2.csv"))
#' }
multmerge = function(filenames... | /R/utils.R | permissive | kashenfelter/shiny.i18n | R | false | false | 2,930 | r | #' Mulitple Merge
#'
#' Inspired by:
#' https://www.r-bloggers.com/merging-multiple-data-files-into-one-data-frame/
#'
#' @param filenames character vector with filenames
#'
#' @return data.frame with merged files
#'
#' @examples
#' \dontrun{
#' multmerge(c("file1.csv", "file2.csv"))
#' }
multmerge = function(filenames... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Coordinates.R
\name{TernaryXRange}
\alias{TernaryXRange}
\alias{TernaryYRange}
\title{X and Y coordinates of ternary plotting area}
\usage{
TernaryXRange(direction = getOption("ternDirection", 1L))
TernaryYRange(direction = getOptio... | /man/TernaryXRange.Rd | no_license | cran/Ternary | R | false | true | 1,383 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Coordinates.R
\name{TernaryXRange}
\alias{TernaryXRange}
\alias{TernaryYRange}
\title{X and Y coordinates of ternary plotting area}
\usage{
TernaryXRange(direction = getOption("ternDirection", 1L))
TernaryYRange(direction = getOptio... |
library(nlme)
library(plot3D)
library(ggplot2)
library(reshape2)
library(RColorBrewer)
library(directlabels)
library(MuMIn)
library(car)
###### functions
LH.partition <- function(mono,mix,ww=rep(1,length(mono)))
{
SR <- length(mono)
deltaY <- sum(mix) - sum(mono*ww)/sum(ww)
RY.E <- ww/sum... | /main_Sres_richness.r | no_license | spwangpku/Ecology_fun_stab | R | false | false | 19,377 | r |
library(nlme)
library(plot3D)
library(ggplot2)
library(reshape2)
library(RColorBrewer)
library(directlabels)
library(MuMIn)
library(car)
###### functions
LH.partition <- function(mono,mix,ww=rep(1,length(mono)))
{
SR <- length(mono)
deltaY <- sum(mix) - sum(mono*ww)/sum(ww)
RY.E <- ww/sum... |
library(tidyverse)
library(cowplot)
library(PNWColors)
chr_lengths <- read_tsv("../wild_gwas_2018/Ha412HO.chrlengths.txt") %>%
mutate(chr=gsub("Ha412HOChr","",chr))
dstat <- read_tsv("Texanus.tranche90.snp.gwas.90.bi.remappedHa412HO.ANN_CEN.ANN_STEX.DEB.Dstats.outliers.txt") %>%
mutate(type="D",chr=gsub("Ha412HO... | /bin/Dstat/dstat_pcadmix_outliers.R | no_license | owensgl/texanus_ancestry | R | false | false | 1,941 | r | library(tidyverse)
library(cowplot)
library(PNWColors)
chr_lengths <- read_tsv("../wild_gwas_2018/Ha412HO.chrlengths.txt") %>%
mutate(chr=gsub("Ha412HOChr","",chr))
dstat <- read_tsv("Texanus.tranche90.snp.gwas.90.bi.remappedHa412HO.ANN_CEN.ANN_STEX.DEB.Dstats.outliers.txt") %>%
mutate(type="D",chr=gsub("Ha412HO... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yote.gps.R
\name{yote.gps}
\alias{yote.gps}
\title{Append AID to GPS data and subset to desired time period}
\usage{
yote.gps(yotedat, gps)
}
\arguments{
\item{yotedat}{path to coyote capture database}
\item{gps}{object identifying gps data ... | /man/yote.gps.Rd | no_license | khuggler/TediousEcology | R | false | true | 536 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yote.gps.R
\name{yote.gps}
\alias{yote.gps}
\title{Append AID to GPS data and subset to desired time period}
\usage{
yote.gps(yotedat, gps)
}
\arguments{
\item{yotedat}{path to coyote capture database}
\item{gps}{object identifying gps data ... |
#Helper function for html5/not exported
wheresPandoc <- function() {
myPaths <- c("pandoc", "~/.cabal/bin/pandoc",
"~/Library/Haskell/bin/pandoc", "C:\\PROGRA~1\\Pandoc\\bin\\pandoc")
panloc <- Sys.which(myPaths)
temp <- panloc[panloc != ""]
if (identical(names(temp), character(0))) {
... | /reports/R/wheresPandoc.R | no_license | ingted/R-Examples | R | false | false | 709 | r | #Helper function for html5/not exported
wheresPandoc <- function() {
myPaths <- c("pandoc", "~/.cabal/bin/pandoc",
"~/Library/Haskell/bin/pandoc", "C:\\PROGRA~1\\Pandoc\\bin\\pandoc")
panloc <- Sys.which(myPaths)
temp <- panloc[panloc != ""]
if (identical(names(temp), character(0))) {
... |
#Clean workspace and memory ----
rm(list=ls())
gc()
#Set working directory----
gps0=getwd()
gps0=paste(gps0,"/%s",sep="")
rootDir=gps0
setwd(gsub("%s","",rootDir))
set.seed(8)
#Load libraries----
library('Seurat')
library("scater")
library("data.table")
library("matrixStats")
library("plyr")
library("readxl")
library... | /Zhou_mmu/op4_scRNA_analysis.R | no_license | LucaGiudice/Microglia-AD-PIEZO1 | R | false | false | 3,767 | r | #Clean workspace and memory ----
rm(list=ls())
gc()
#Set working directory----
gps0=getwd()
gps0=paste(gps0,"/%s",sep="")
rootDir=gps0
setwd(gsub("%s","",rootDir))
set.seed(8)
#Load libraries----
library('Seurat')
library("scater")
library("data.table")
library("matrixStats")
library("plyr")
library("readxl")
library... |
set.seed(4)
args <- list()
args$betahatsd <- 1
args$g <- ashr::normalmix(c(2/3,1/3),c(0,0),c(1,2))
args$max_pi0 <- 1
args$min_pi0 <- 0
args$nsamp <- 1000
library('ashr')
rnormmix_datamaker = function(args){
#here is the meat of the function that needs to be defined for each dsc to be done
pi0 = runif(1,args$min_pi0... | /inst/app/data/.sos/simulate_1_9.R | no_license | stephenslab/shinydsc | R | false | false | 1,048 | r | set.seed(4)
args <- list()
args$betahatsd <- 1
args$g <- ashr::normalmix(c(2/3,1/3),c(0,0),c(1,2))
args$max_pi0 <- 1
args$min_pi0 <- 0
args$nsamp <- 1000
library('ashr')
rnormmix_datamaker = function(args){
#here is the meat of the function that needs to be defined for each dsc to be done
pi0 = runif(1,args$min_pi0... |
library (openair)
library(lubridate)
library(latticeExtra)
library(ggplot2)
# require(devtools)
# install_github('davidcarslaw/worldmet')
library(worldmet) ## download_met_data
library(mapdata)
dataDir="D:\\Hysplit"
setwd(dataDir) ### Set the working directory
workingDirectory<<-dataDir ### Shortcut for ... | /R/GetMet.r | no_license | songnku/COVID-19-AQ | R | false | false | 895 | r | library (openair)
library(lubridate)
library(latticeExtra)
library(ggplot2)
# require(devtools)
# install_github('davidcarslaw/worldmet')
library(worldmet) ## download_met_data
library(mapdata)
dataDir="D:\\Hysplit"
setwd(dataDir) ### Set the working directory
workingDirectory<<-dataDir ### Shortcut for ... |
# Test palmyra example
context("Ex script 4/9 (palmyra)")
test_that("Palmyra ex works",{
mix.filename <- system.file("extdata", "palmyra_consumer.csv", package = "MixSIAR")
mix <- load_mix_data(filename=mix.filename,
iso_names=c("d13C","d15N"),
factors="Taxa",
... | /tests/testthat/test_ex4_palmyra.R | no_license | izabelabujak/MixSIAR | R | false | false | 1,354 | r | # Test palmyra example
context("Ex script 4/9 (palmyra)")
test_that("Palmyra ex works",{
mix.filename <- system.file("extdata", "palmyra_consumer.csv", package = "MixSIAR")
mix <- load_mix_data(filename=mix.filename,
iso_names=c("d13C","d15N"),
factors="Taxa",
... |
# Copyright (C) 2008-2009 - INRIA - Michael Baudin
# Copyright (C) 2009-2010 - DIGITEO - Michael Baudin
# Copyright (C) 2010-2022 - Sebastien Bihorel
#
# This file must be used under the terms of the CeCILL.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of thi... | /R/assert.classstring.R | no_license | cran/optimbase | R | false | false | 1,224 | r | # Copyright (C) 2008-2009 - INRIA - Michael Baudin
# Copyright (C) 2009-2010 - DIGITEO - Michael Baudin
# Copyright (C) 2010-2022 - Sebastien Bihorel
#
# This file must be used under the terms of the CeCILL.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of thi... |
library(dismo)
library(mapview)
library(dplyr)
library(sf)
load("primate_ranges.rda")
library(tidyr)
primate_ranges %>% separate(binomial, into = c("genus","species")) -> primate_ranges
genera<-unique(primate_ranges$genus)
genera
get_gbif<-function(genus="Pongo")
{
d<-gbif(genus=genus, species="*", geo=TRUE) # ... | /get_gbif.R | no_license | dgolicher/primates | R | false | false | 926 | r |
library(dismo)
library(mapview)
library(dplyr)
library(sf)
load("primate_ranges.rda")
library(tidyr)
primate_ranges %>% separate(binomial, into = c("genus","species")) -> primate_ranges
genera<-unique(primate_ranges$genus)
genera
get_gbif<-function(genus="Pongo")
{
d<-gbif(genus=genus, species="*", geo=TRUE) # ... |
library('DESeq2')
library('RColorBrewer')
library('gplots')
library('ggplot2')
rawCountTable <- read.table('a_test_project/output/staphylococcus_gene_quanti_combined/gene_wise_quantifications_combined.csv', skip=1, sep='\t', quote='', comment.char='', colClasses=c(rep('character',10), rep('numeric',15)))
countTable <- ... | /tests/test_files/reademption_analysis_dual_with_deseq_input_files_comparison_expected/output/staphylococcus_deseq/deseq_raw/deseq.R | permissive | foerstner-lab/READemption | R | false | false | 13,267 | r | library('DESeq2')
library('RColorBrewer')
library('gplots')
library('ggplot2')
rawCountTable <- read.table('a_test_project/output/staphylococcus_gene_quanti_combined/gene_wise_quantifications_combined.csv', skip=1, sep='\t', quote='', comment.char='', colClasses=c(rep('character',10), rep('numeric',15)))
countTable <- ... |
list.of.packages <- c("data.table")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, require, character.only=T)
if(.Platform$OS.type == "unix"){
wd = "~/git/di_r_reference"
}else{
wd = "E:/gi... | /code/compiling_crs_data.R | no_license | ZChristensen/aid_to_p20 | R | false | false | 1,631 | r | list.of.packages <- c("data.table")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, require, character.only=T)
if(.Platform$OS.type == "unix"){
wd = "~/git/di_r_reference"
}else{
wd = "E:/gi... |
run_analysis <- function() {
require(dplyr)
require(readr)
require(tidyr)
require(tidyselect)
setwd("~/Coursera/Data Cleaning/Week 4 Assignment")
dat <- read_data() #reads files into list
dat <- simp_x(dat) #extracts & labels columns from the X-* lists
dat <- label_cols(dat) #labels subject_* and y_... | /run_analysis.R | no_license | scottman8265/cleaningData | R | false | false | 2,587 | r | run_analysis <- function() {
require(dplyr)
require(readr)
require(tidyr)
require(tidyselect)
setwd("~/Coursera/Data Cleaning/Week 4 Assignment")
dat <- read_data() #reads files into list
dat <- simp_x(dat) #extracts & labels columns from the X-* lists
dat <- label_cols(dat) #labels subject_* and y_... |
# pt1: write a script that loads the file and produces a scatterplot
## of two variables with a trend line
# read in file
dogweights <- read.csv("~/Desktop/Bioinformatics/Biocomputing2020_Exercise10/dogweights.csv",
header=TRUE, stringsAsFactors = FALSE)
# create scatterplot
library(ggplot2)
ggplot(d... | /Ex10RScript.R | no_license | o0michelley/Biocomputing2020_Exercise10 | R | false | false | 1,716 | r | # pt1: write a script that loads the file and produces a scatterplot
## of two variables with a trend line
# read in file
dogweights <- read.csv("~/Desktop/Bioinformatics/Biocomputing2020_Exercise10/dogweights.csv",
header=TRUE, stringsAsFactors = FALSE)
# create scatterplot
library(ggplot2)
ggplot(d... |
library(shiny)
shinyUI(pageWithSidebar(
headerPanel('Developing Data Products - Course Project'),
sidebarPanel(
h3('Instructions'),
p('Enter the State, and diseases type to find the best (i.e. lowest) 30-day mortality for
the specific disease in that state.'),
# h4('Please enter the 2... | /ui.R | no_license | MaryamKabiri/Course-Project-Shiny-Application-and-Reproducible-Pitch | R | false | false | 1,417 | r | library(shiny)
shinyUI(pageWithSidebar(
headerPanel('Developing Data Products - Course Project'),
sidebarPanel(
h3('Instructions'),
p('Enter the State, and diseases type to find the best (i.e. lowest) 30-day mortality for
the specific disease in that state.'),
# h4('Please enter the 2... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
tit... | /2-Project/practice1-Shiny/ShinyExample/app.R | no_license | min24/3_mainor | R | false | false | 1,543 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
tit... |
## Matrix inversion is usually a costly computation and there may be
##some benefit to caching the inverse of a matrix rather than compute
##it repeatedly (there are also alternatives to matrix inversion that
##we will not discuss here). Below assignment is to write a pair of functions
##that cache the inverse of a... | /cachematrix.R | no_license | dattasud/RProgramming-Data-Analysis | R | false | false | 1,405 | r | ## Matrix inversion is usually a costly computation and there may be
##some benefit to caching the inverse of a matrix rather than compute
##it repeatedly (there are also alternatives to matrix inversion that
##we will not discuss here). Below assignment is to write a pair of functions
##that cache the inverse of a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_derived_1cpt.R
\name{calc_derived_1cpt}
\alias{calc_derived_1cpt}
\title{Calculate derived pharmacokinetic parameters for a 1-compartment linear model}
\usage{
calc_derived_1cpt(CL, V, type = "all", sigdig = 5)
}
\arguments{
\item{CL}{Cl... | /man/calc_derived_1cpt.Rd | no_license | kylebaron/pmxTools | R | false | true | 1,394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_derived_1cpt.R
\name{calc_derived_1cpt}
\alias{calc_derived_1cpt}
\title{Calculate derived pharmacokinetic parameters for a 1-compartment linear model}
\usage{
calc_derived_1cpt(CL, V, type = "all", sigdig = 5)
}
\arguments{
\item{CL}{Cl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IOHproblem.R
\name{next_problem}
\alias{next_problem}
\title{Get the next function of the currently initialized IOHexperimenter object}
\usage{
next_problem(experimenter)
}
\arguments{
\item{experimenter}{The IOHexperimenter object}
}
\value{... | /build/R/man/next_problem.Rd | permissive | valentinosantucci/IOHexperimenter | R | false | true | 524 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IOHproblem.R
\name{next_problem}
\alias{next_problem}
\title{Get the next function of the currently initialized IOHexperimenter object}
\usage{
next_problem(experimenter)
}
\arguments{
\item{experimenter}{The IOHexperimenter object}
}
\value{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core-opn-dct.R
\name{dfourier_shape}
\alias{dfourier_shape}
\title{Calculates and draws 'dfourier' shapes}
\usage{
dfourier_shape(A, B, nb.h, nb.pts = 60, alpha = 2, plot = TRUE)
}
\arguments{
\item{A}{vector of harmonic coefficients}
\item{... | /man/dfourier_shape.Rd | no_license | yuting27/Momocs | R | false | true | 1,196 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core-opn-dct.R
\name{dfourier_shape}
\alias{dfourier_shape}
\title{Calculates and draws 'dfourier' shapes}
\usage{
dfourier_shape(A, B, nb.h, nb.pts = 60, alpha = 2, plot = TRUE)
}
\arguments{
\item{A}{vector of harmonic coefficients}
\item{... |
#' @title Prepare Lunar Data for the Portalcasting Repository
#'
#' @description Get time information (calendar dates, census periods, and newmoon numbers) associated with trapping events (achieved and missed) based on a lunar survey schedule. If needed, additional moons will be added to both the in-use and resources v... | /R/prepare_moons.R | permissive | ethanwhite/portalcasting | R | false | false | 5,305 | r | #' @title Prepare Lunar Data for the Portalcasting Repository
#'
#' @description Get time information (calendar dates, census periods, and newmoon numbers) associated with trapping events (achieved and missed) based on a lunar survey schedule. If needed, additional moons will be added to both the in-use and resources v... |
if ( !isGeneric("satellite") ) {
setGeneric("satellite", function(x, ...)
standardGeneric("satellite"))
}
#' Create a Satellite object
#'
#' @description
#' Method to create a Satellite object.
#'
#' @param x A vector of filenames (see \code{raster::raster}) or a
#' \code{raster::RasterStack}.
#' @param meta Op... | /R/satellite.R | no_license | cha63506/satellite-15 | R | false | false | 4,534 | r | if ( !isGeneric("satellite") ) {
setGeneric("satellite", function(x, ...)
standardGeneric("satellite"))
}
#' Create a Satellite object
#'
#' @description
#' Method to create a Satellite object.
#'
#' @param x A vector of filenames (see \code{raster::raster}) or a
#' \code{raster::RasterStack}.
#' @param meta Op... |
target.arrival.sf <-
function(xdata, ydata, date, t, rts = "crs", g = NULL,
wd = NULL, sg = "ssm", ftype = "d", cv = "convex", anc = FALSE){
# Initial checks
if(t <= min(date)) stop('t is earlier than dataset.')
if(max(date) < t) ... | /R/target.arrival.sf.R | no_license | cran/DJL | R | false | false | 3,910 | r | target.arrival.sf <-
function(xdata, ydata, date, t, rts = "crs", g = NULL,
wd = NULL, sg = "ssm", ftype = "d", cv = "convex", anc = FALSE){
# Initial checks
if(t <= min(date)) stop('t is earlier than dataset.')
if(max(date) < t) ... |
# SETUP ENVIRONMENT -------------------------------------------------------
library(readr)
library(stringr)
library(dplyr)
library(lubridate)
library(ggplot2)
library(plotly)
# 1. IMPORT DATA ----------------------------------------------------------
# import data extracted from www.realestate.com
sold_data <- read_cs... | /analyse_sold_data.R | no_license | tylorbunting/Brisbane_Apartment_Analysis | R | false | false | 3,731 | r | # SETUP ENVIRONMENT -------------------------------------------------------
library(readr)
library(stringr)
library(dplyr)
library(lubridate)
library(ggplot2)
library(plotly)
# 1. IMPORT DATA ----------------------------------------------------------
# import data extracted from www.realestate.com
sold_data <- read_cs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{createHeatmap}
\alias{createHeatmap}
\title{Create Heatmap}
\usage{
createHeatmap(vImport, pImport, priorities, values)
}
\arguments{
\item{vImport}{numeric importance assigned to values from \link{valuesImportance}}
\item{... | /man/createHeatmap.Rd | no_license | jordandeherrera/prioritizationMatrix | R | false | true | 769 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{createHeatmap}
\alias{createHeatmap}
\title{Create Heatmap}
\usage{
createHeatmap(vImport, pImport, priorities, values)
}
\arguments{
\item{vImport}{numeric importance assigned to values from \link{valuesImportance}}
\item{... |
library(tidyverse)
source("functions/create_data.R")
source("functions/run_experiment.R")
source("functions/detections_summary.R")
set.seed(1)
n <- 10
p <- c(10, 30, 100, 300, 1e3, 3e3, 6e3)
sig_p <- 1
d <- 0.74
nsims <- 400
df_detections <- tibble(p = p,
result = vector(length... | /simulations/p_n10_sigp1_d074.R | no_license | StevenWallaert/masterthesis | R | false | false | 971 | r | library(tidyverse)
source("functions/create_data.R")
source("functions/run_experiment.R")
source("functions/detections_summary.R")
set.seed(1)
n <- 10
p <- c(10, 30, 100, 300, 1e3, 3e3, 6e3)
sig_p <- 1
d <- 0.74
nsims <- 400
df_detections <- tibble(p = p,
result = vector(length... |
##################################################
#
# Interaction analyses based on Kerry & Okada 2012
# This script needs to be run after running the RF
# within the same environment
#
# 2017.06.12 Masahiro Ryo
# masahiroryo@gmail.com
#
###################################... | /Appendix_S2c_interaction.R | no_license | PangShuang/R_HOI | R | false | false | 4,887 | r | ##################################################
#
# Interaction analyses based on Kerry & Okada 2012
# This script needs to be run after running the RF
# within the same environment
#
# 2017.06.12 Masahiro Ryo
# masahiroryo@gmail.com
#
###################################... |
## This is a solution to Coursera "R Programming"
## peer-graded programming assignment 2
## Overview:
## These functions create a matrix that has its inverse cached.
## The function makeCacheMatrix generates a cache matrix object.
## The function cacheSolve returns the inverse of a cache matrix object
## The funct... | /cachematrix.R | no_license | wkuhlman/ProgrammingAssignment2 | R | false | false | 1,567 | r | ## This is a solution to Coursera "R Programming"
## peer-graded programming assignment 2
## Overview:
## These functions create a matrix that has its inverse cached.
## The function makeCacheMatrix generates a cache matrix object.
## The function cacheSolve returns the inverse of a cache matrix object
## The funct... |
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
m <- subset(NEI, NEI$fips == "24510")
emissions <- as.numeric(with(m, tapply(Emissions, year, sum)))
year <- unique(m$year)
png("plot2.png")
barplot(emissions, names.arg = year, col = year, main = expression('total PM'[2.5]*' emissi... | /plot2.R | no_license | chelsea1823/coursera_exploratory_data_analysis_course_project_2 | R | false | false | 446 | r | NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
m <- subset(NEI, NEI$fips == "24510")
emissions <- as.numeric(with(m, tapply(Emissions, year, sum)))
year <- unique(m$year)
png("plot2.png")
barplot(emissions, names.arg = year, col = year, main = expression('total PM'[2.5]*' emissi... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108271e+146, 2.58543967171209e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615772265-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108271e+146, 2.58543967171209e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/neuronlist_sets.R
\name{union}
\alias{union}
\alias{union.default}
\alias{union.neuronlist}
\title{Find the union of two collections of objects}
\usage{
union(x, y, ...)
\method{union}{default}(x, y, ...)
\method{union}{neuronlist}(... | /man/union.Rd | no_license | michaeljohndolan/nat | R | false | false | 813 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/neuronlist_sets.R
\name{union}
\alias{union}
\alias{union.default}
\alias{union.neuronlist}
\title{Find the union of two collections of objects}
\usage{
union(x, y, ...)
\method{union}{default}(x, y, ...)
\method{union}{neuronlist}(... |
makeCacheMatrix <- function(inpMatrix=matrix()) {
inverseMatrix <- NULL
setStoredMatrix <- function(tempInpMatrix) {
storedMatrix <<- tempInpMatrix
inverseMatrix <<- NULL
}
getStoredMatrix <- function() storedMatrix
setInverse <- function(inpInverse) inverseMatrix <<- inpInverse
getInverse <- functi... | /makeCacheMatrix.R | no_license | rathanajey/R-programs-with-Coursera | R | false | false | 466 | r | makeCacheMatrix <- function(inpMatrix=matrix()) {
inverseMatrix <- NULL
setStoredMatrix <- function(tempInpMatrix) {
storedMatrix <<- tempInpMatrix
inverseMatrix <<- NULL
}
getStoredMatrix <- function() storedMatrix
setInverse <- function(inpInverse) inverseMatrix <<- inpInverse
getInverse <- functi... |
# R01 GSH DO Mapping Code
# Updated August 2020
# Becca Gould
#LIVER QTL MAPPING - LOG TRANSFORMATION AND DATA PREP
#Make a folder under users (for me, my user is "becca") and title it based on your project. For mine, it's R01_GSH_DO_mapping. Then make a data, results, scripts, and docs folder.
setwd("/users/becca... | /Liver-GSH-NAD/Log/Log-sex/scripts/Log Transformation and Data Prep - Log sex.R | no_license | rebeccalgould/Rqtl2-Glutathione-Genetics | R | false | false | 12,120 | r | # R01 GSH DO Mapping Code
# Updated August 2020
# Becca Gould
#LIVER QTL MAPPING - LOG TRANSFORMATION AND DATA PREP
#Make a folder under users (for me, my user is "becca") and title it based on your project. For mine, it's R01_GSH_DO_mapping. Then make a data, results, scripts, and docs folder.
setwd("/users/becca... |
#' @param id Document id. Required.
#' @param source (logical) If \code{TRUE}, return source.
#' @param fields Fields to return from the response object.
| /man-roxygen/get.r | permissive | ropensci/elastic | R | false | false | 154 | r | #' @param id Document id. Required.
#' @param source (logical) If \code{TRUE}, return source.
#' @param fields Fields to return from the response object.
|
stringSearch<-
function(
# folder you want to search
folder = paste0(getwd(),'/StringSearchInFiles'),
# what you are searching for inside the code in Regex
string = 'stringyouwillfind',
# should your search be case insensivite?
myignorecase = T,
# add a 'date modified' filter, if you want... | /StringSearchInFiles/functions/stringSearch.R | no_license | kondofersky/ausstellung_andreas | R | false | false | 2,086 | r |
stringSearch<-
function(
# folder you want to search
folder = paste0(getwd(),'/StringSearchInFiles'),
# what you are searching for inside the code in Regex
string = 'stringyouwillfind',
# should your search be case insensivite?
myignorecase = T,
# add a 'date modified' filter, if you want... |
testlist <- list(rates = numeric(0), thresholds = c(9.0765661933893e+223, 2.93471523213911e+213, 8.90389806695635e+252, 7.29062965416013e-304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610382458-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 461 | r | testlist <- list(rates = numeric(0), thresholds = c(9.0765661933893e+223, 2.93471523213911e+213, 8.90389806695635e+252, 7.29062965416013e-304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R
\name{torch_cosine_similarity}
\alias{torch_cosine_similarity}
\title{Cosine_similarity}
\arguments{
\item{x1}{(Tensor) First input.}
\item{x2}{(Tensor) Second input (of size matching x1).... | /man/torch_cosine_similarity.Rd | permissive | qykong/torch | R | false | true | 901 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R
\name{torch_cosine_similarity}
\alias{torch_cosine_similarity}
\title{Cosine_similarity}
\arguments{
\item{x1}{(Tensor) First input.}
\item{x2}{(Tensor) Second input (of size matching x1).... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mth_documentation_functions.R
\name{mth_data_definition_functions}
\alias{mth_data_definition_functions}
\title{Metathesaurus Data Definitions}
\description{
Metathesaurus Data Definitions
}
| /man/mth_data_definition_functions.Rd | no_license | meerapatelmd/metaoriteSQL | R | false | true | 269 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mth_documentation_functions.R
\name{mth_data_definition_functions}
\alias{mth_data_definition_functions}
\title{Metathesaurus Data Definitions}
\description{
Metathesaurus Data Definitions
}
|
download<-function() {
## Download files to Course_Project directory
if (!file.exists("Course_Project")) {
dir.create("Course_Project")
}
setwd("./Course_Project")
fileUrl<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl, destfile="datase... | /run_analysis.R | no_license | carloswerner/Course_Project_for_Getting_and_Cleaning_Data | R | false | false | 2,088 | r | download<-function() {
## Download files to Course_Project directory
if (!file.exists("Course_Project")) {
dir.create("Course_Project")
}
setwd("./Course_Project")
fileUrl<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl, destfile="datase... |
################################################################################*
# DATASET 47: Waterfowl in Redvers study area
#
# Metadata can be found at http://ecologicaldata.org/wiki/redvers-waterfowl-census
#
# See also Vickery & Nudds 1984 Ecology 65: 96-104
#-----------------------------------------------... | /scripts/R-scripts/data_cleaning_scripts/dwork_47_wjl.R | no_license | hurlbertlab/core-transient | R | false | false | 22,853 | r | ################################################################################*
# DATASET 47: Waterfowl in Redvers study area
#
# Metadata can be found at http://ecologicaldata.org/wiki/redvers-waterfowl-census
#
# See also Vickery & Nudds 1984 Ecology 65: 96-104
#-----------------------------------------------... |
\name{glhpwr}
\alias{glhpwr}
\title{
Power Function for Tests of the General Linear Hypothesis
}
\description{
Use a noncentral F approximation to compute the power of a test of
the general linear hypothesis.
}
\usage{
glhpwr(alpha, x, bt1, sigma, cc, u, th0, test=1, tol=1e-08)
}
\arguments{
\item{alpha}{
type I error ... | /man/glhpwr.Rd | no_license | cran/hpower | R | false | false | 1,992 | rd | \name{glhpwr}
\alias{glhpwr}
\title{
Power Function for Tests of the General Linear Hypothesis
}
\description{
Use a noncentral F approximation to compute the power of a test of
the general linear hypothesis.
}
\usage{
glhpwr(alpha, x, bt1, sigma, cc, u, th0, test=1, tol=1e-08)
}
\arguments{
\item{alpha}{
type I error ... |
library(dplyr)
library(tidyr)
parse_smufin = function (smufinoutput_fname){
smufinoutput = read.table(smufinoutput_fname, header=F, sep="\t")
d = smufinoutput[,0]
d$Sample = lapply(as.character(smufinoutput$V9), function (s) s %>% gsub("^.*sample_","",.) %>% gsub("_intraREC.*", "", .))
d$Cohort = NA
d[nchar(... | /Analysis/Code/ParseSVCallerData.R | no_license | henssenlab/TreeShapedRearrangements | R | false | false | 4,056 | r | library(dplyr)
library(tidyr)
parse_smufin = function (smufinoutput_fname){
smufinoutput = read.table(smufinoutput_fname, header=F, sep="\t")
d = smufinoutput[,0]
d$Sample = lapply(as.character(smufinoutput$V9), function (s) s %>% gsub("^.*sample_","",.) %>% gsub("_intraREC.*", "", .))
d$Cohort = NA
d[nchar(... |
############################################
# Cross-population analysis of high-grade serous ovarian cancer does not
# support four subtypes
#
# Way, G.P., Rudd, J., Wang, C., Hamidi, H., Fridley, L.B,
# Konecny, G., Goode, E., Greene, C.S., Doherty, J.A.
# ~~~~~~~~~~~~~~~~~~~~~
# This script will run k-means and S... | /2.Clustering_DiffExprs/Scripts/A.run_kmeans_SAM.R | permissive | greenelab/hgsc_subtypes | R | false | false | 22,900 | r | ############################################
# Cross-population analysis of high-grade serous ovarian cancer does not
# support four subtypes
#
# Way, G.P., Rudd, J., Wang, C., Hamidi, H., Fridley, L.B,
# Konecny, G., Goode, E., Greene, C.S., Doherty, J.A.
# ~~~~~~~~~~~~~~~~~~~~~
# This script will run k-means and S... |
##############################
# This is a shiny app for simulating rolling portfolio
# optimization strategies, which produces an interactive
# dygraphs plot.
# Just press the "Run App" button on upper right of this panel.
##############################
## Below is the setup code that runs once when the shiny app i... | /app_roll_portf.R | no_license | algoquant/presentations | R | false | false | 3,184 | r | ##############################
# This is a shiny app for simulating rolling portfolio
# optimization strategies, which produces an interactive
# dygraphs plot.
# Just press the "Run App" button on upper right of this panel.
##############################
## Below is the setup code that runs once when the shiny app i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trailing_blank_lines_linter.R
\name{trailing_blank_lines_linter}
\alias{trailing_blank_lines_linter}
\title{Trailing blank lines linter}
\usage{
trailing_blank_lines_linter()
}
\description{
Check that there are no trailing blank lines in sou... | /man/trailing_blank_lines_linter.Rd | permissive | russHyde/lintr | R | false | true | 491 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trailing_blank_lines_linter.R
\name{trailing_blank_lines_linter}
\alias{trailing_blank_lines_linter}
\title{Trailing blank lines linter}
\usage{
trailing_blank_lines_linter()
}
\description{
Check that there are no trailing blank lines in sou... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics_objects.R
\name{EntityUserLink.permissions}
\alias{EntityUserLink.permissions}
\title{EntityUserLink.permissions Object}
\usage{
EntityUserLink.permissions(local = NULL)
}
\arguments{
\item{local}{Permissions that a user has been as... | /googleanalyticsv3.auto/man/EntityUserLink.permissions.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 997 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics_objects.R
\name{EntityUserLink.permissions}
\alias{EntityUserLink.permissions}
\title{EntityUserLink.permissions Object}
\usage{
EntityUserLink.permissions(local = NULL)
}
\arguments{
\item{local}{Permissions that a user has been as... |
# installer le package, charger le package et les donnees
#install.packages('funFEM')
library(funFEM)
data(velib)
# voir ce que contient ce fichier
help(velib)
print(str(velib))
# afficher differentes courbes de charge, interpreter les donnees, rechercher des comportements typiques
station=4
plot(1:181,velib$data[st... | /model-based-learning/tps-corrections-exam/TPclustering.R | no_license | mversionpenny/code-dm | R | false | false | 2,263 | r | # installer le package, charger le package et les donnees
#install.packages('funFEM')
library(funFEM)
data(velib)
# voir ce que contient ce fichier
help(velib)
print(str(velib))
# afficher differentes courbes de charge, interpreter les donnees, rechercher des comportements typiques
station=4
plot(1:181,velib$data[st... |
library(dplyr)
soil_df <- read.csv("Modeling/Recommendation Models/Soil_Nutrient_Summarized.csv")
weather_df <- read.csv("Modeling/Recommendation Models/SummarizedTidyWeather2012_2017.csv")
water_df <- read.csv("Modeling/Recommendation Models/Summarized_Water_Depth.csv")
crop_df <- read.csv("Modeling/Recommendation ... | /Modeling/Recommendation Models/Data Joining/Data_Combining_Sugarcane.R | no_license | abhisheksinha08/DataDrivenAgriculture | R | false | false | 1,286 | r | library(dplyr)
soil_df <- read.csv("Modeling/Recommendation Models/Soil_Nutrient_Summarized.csv")
weather_df <- read.csv("Modeling/Recommendation Models/SummarizedTidyWeather2012_2017.csv")
water_df <- read.csv("Modeling/Recommendation Models/Summarized_Water_Depth.csv")
crop_df <- read.csv("Modeling/Recommendation ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method_get_ti_methods.R
\name{get_ti_methods}
\alias{get_ti_methods}
\title{Return all TI that are installed in one or more packages}
\usage{
get_ti_methods(
method_ids = NULL,
as_tibble = TRUE,
ti_packages = ifelse(is_dynmethods_instal... | /man/get_ti_methods.Rd | permissive | dynverse/dynwrap | R | false | true | 1,030 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method_get_ti_methods.R
\name{get_ti_methods}
\alias{get_ti_methods}
\title{Return all TI that are installed in one or more packages}
\usage{
get_ti_methods(
method_ids = NULL,
as_tibble = TRUE,
ti_packages = ifelse(is_dynmethods_instal... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/specify_bunkers.R
\name{specify_bunkers}
\alias{specify_bunkers}
\title{Change bunker flow names to reflect their purpose}
\usage{
specify_bunkers(
.tidy_iea_df,
country = IEATools::iea_cols$country,
flow = IEATools::iea_cols$flow,
pr... | /man/specify_bunkers.Rd | no_license | MatthewHeun/IEATools | R | false | true | 2,232 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/specify_bunkers.R
\name{specify_bunkers}
\alias{specify_bunkers}
\title{Change bunker flow names to reflect their purpose}
\usage{
specify_bunkers(
.tidy_iea_df,
country = IEATools::iea_cols$country,
flow = IEATools::iea_cols$flow,
pr... |
{
library(data.table)
library(plyr)
library(dplyr)
## load column names
labelData <- read.table("features.txt")
## load test and train data
testData <- read.table("./test/X_test.txt", col.names=labelData[,2], check.names=FALSE)
trainData <- read.table("./train/X_train.txt", col.names=labelData[,2], ... | /run_analysis.R | no_license | sarmah/Clean-Data | R | false | false | 1,646 | r | {
library(data.table)
library(plyr)
library(dplyr)
## load column names
labelData <- read.table("features.txt")
## load test and train data
testData <- read.table("./test/X_test.txt", col.names=labelData[,2], check.names=FALSE)
trainData <- read.table("./train/X_train.txt", col.names=labelData[,2], ... |
\name{validOrthomObject}
\alias{validOrthomObject}
\encoding{latin1}
\title{
Validation function for objects of class Orthom
}
\description{
This function validates objects of class \code{Orthom}.
}
\usage{
validOrthomObject(object)
}
\arguments{
\item{object}{Object of class \code{Orthom}.}
}
... | /man/validOrthomObject.Rd | no_license | cran/gogarch | R | false | false | 823 | rd | \name{validOrthomObject}
\alias{validOrthomObject}
\encoding{latin1}
\title{
Validation function for objects of class Orthom
}
\description{
This function validates objects of class \code{Orthom}.
}
\usage{
validOrthomObject(object)
}
\arguments{
\item{object}{Object of class \code{Orthom}.}
}
... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{allIds}
\alias{allIds}
\title{Returns all identifiers and terms of an ontology}
\usage{
allIds(ontologyName, simplify = TRUE)
}
\arguments{
\item{ontologyName}{A \code{character} with the name of a valid ontology name.}
\item{simplify}{A logical indicating whe... | /man/allIds.Rd | no_license | BioinformaticsFMRP/rols | R | false | false | 1,203 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{allIds}
\alias{allIds}
\title{Returns all identifiers and terms of an ontology}
\usage{
allIds(ontologyName, simplify = TRUE)
}
\arguments{
\item{ontologyName}{A \code{character} with the name of a valid ontology name.}
\item{simplify}{A logical indicating whe... |
####--UI SOLUTION--------------------------------------------------------------------------------------------
#
# SOLU
#
tabItem_solution <-
tabItem(tabName = "solution",
fluidRow(
column(width = 3,
h2(icon("magic"), HTML(" "),"Solution")
)
),
tabsetPanel(
typ... | /01/ui/ui_solution.R | no_license | vfridkin/modular_mapping | R | false | false | 1,233 | r | ####--UI SOLUTION--------------------------------------------------------------------------------------------
#
# SOLU
#
tabItem_solution <-
tabItem(tabName = "solution",
fluidRow(
column(width = 3,
h2(icon("magic"), HTML(" "),"Solution")
)
),
tabsetPanel(
typ... |
### R code from vignette source 'testTimeAndSimpleUse.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: foo
###################################################
options(keep.source = TRUE, width = 60)
fftwtools1 <- packageDescription("fftwtools")
###################... | /cardinal/packrat/lib/x86_64-apple-darwin15.6.0/3.5.1/fftwtools/doc/testTimeAndSimpleUse.R | no_license | codyheiser/fuzzy-lasagna | R | false | false | 2,119 | r | ### R code from vignette source 'testTimeAndSimpleUse.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: foo
###################################################
options(keep.source = TRUE, width = 60)
fftwtools1 <- packageDescription("fftwtools")
###################... |
#install dependant packages...
install.packages("data.table")
install.packages("ggplot2")
install.packages("grid")
install.packages("scales")
install.packages("testthat")
install.packages("devtools")
#update package (last version)
detach(package:Rcan)
remove.packages("Rcan")
devtools::install_github("timat35/Rcan"... | /dev/Rcan_script.R | no_license | HRumgay/Rcan | R | false | false | 7,979 | r |
#install dependant packages...
install.packages("data.table")
install.packages("ggplot2")
install.packages("grid")
install.packages("scales")
install.packages("testthat")
install.packages("devtools")
#update package (last version)
detach(package:Rcan)
remove.packages("Rcan")
devtools::install_github("timat35/Rcan"... |
#' @title Export a \link[SingleCellExperiment]{SingleCellExperiment} R object as
#' Python annData object
#' @description Writes all assays, colData, rowData, reducedDims, and altExps objects in a
#' \link[SingleCellExperiment]{SingleCellExperiment} to a Python annData object in the .h5ad format
#' All parameters of An... | /R/exportSCEtoAnndata.R | permissive | ykoga07/singleCellTK | R | false | false | 3,963 | r | #' @title Export a \link[SingleCellExperiment]{SingleCellExperiment} R object as
#' Python annData object
#' @description Writes all assays, colData, rowData, reducedDims, and altExps objects in a
#' \link[SingleCellExperiment]{SingleCellExperiment} to a Python annData object in the .h5ad format
#' All parameters of An... |
#' @title View simulation example
#' @description Users can view an .html file that contains an example with simulated abundance data.
#' The demo is similar to a vigette but it takes much too long to build.
#' @author Devin S. Johnson
#' @export
view_example = function(){
lib_loc = system.file(package="multAbund")
... | /R/view_example.R | no_license | dsjohnson/multAbund | R | false | false | 627 | r | #' @title View simulation example
#' @description Users can view an .html file that contains an example with simulated abundance data.
#' The demo is similar to a vigette but it takes much too long to build.
#' @author Devin S. Johnson
#' @export
view_example = function(){
lib_loc = system.file(package="multAbund")
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny_dnorm.R
\name{shiny_dnorm}
\alias{shiny_dnorm}
\title{Shiny App to Explore Properties of the Normal Distribution}
\usage{
shiny_dnorm()
}
\value{
The outcomes are presented in several tabs.
\item{Sample}{contains the histo... | /man/shiny_dnorm.Rd | no_license | bio-statistics/ABACUS | R | false | true | 2,993 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny_dnorm.R
\name{shiny_dnorm}
\alias{shiny_dnorm}
\title{Shiny App to Explore Properties of the Normal Distribution}
\usage{
shiny_dnorm()
}
\value{
The outcomes are presented in several tabs.
\item{Sample}{contains the histo... |
#-------------------------------------------------------------------------------------------#
# Metrics
# Calculates SCOR and richness/diversity measures
# from the sampled plankton world
#
# Written by Lee Hsiang Liow 2015
# with contributions from Bjarte Hannisdal
#
# This file is provided as part of the electron... | /metrics.R | no_license | bhannis/Poseidon | R | false | false | 5,500 | r | #-------------------------------------------------------------------------------------------#
# Metrics
# Calculates SCOR and richness/diversity measures
# from the sampled plankton world
#
# Written by Lee Hsiang Liow 2015
# with contributions from Bjarte Hannisdal
#
# This file is provided as part of the electron... |
# ==============================================================================
# Functions for getting information about network COLLECTIONS.
# ------------------------------------------------------------------------------
#' @title Get Collection List
#'
#' @description FUNCTION_DESCRIPTION
#' @param base.url (optio... | /R/Collections.R | permissive | cytoscape/RCy3 | R | false | false | 3,367 | r | # ==============================================================================
# Functions for getting information about network COLLECTIONS.
# ------------------------------------------------------------------------------
#' @title Get Collection List
#'
#' @description FUNCTION_DESCRIPTION
#' @param base.url (optio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tbl_functions.R
\name{filter_first_app_only}
\alias{filter_first_app_only}
\title{Function to get the earliest application in the specified application year range}
\usage{
filter_first_app_only(df_list, min_year, max_year)
}
\arguments{
\item... | /dbUtilities/man/filter_first_app_only.Rd | no_license | jgutman/eduanalytics | R | false | true | 587 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tbl_functions.R
\name{filter_first_app_only}
\alias{filter_first_app_only}
\title{Function to get the earliest application in the specified application year range}
\usage{
filter_first_app_only(df_list, min_year, max_year)
}
\arguments{
\item... |
#' @rdname LQG_ipfp
#' @title Update Markov transition kernels with new policy
#' @description Function to perform IPFP iterations in the exact LQG setting.
#' Outputs the updated Markov transition kernels.
#' @param nsteps number of IPFP iterations
#' @param initial list with keys:
#' \code{mean}
#' \code{cov}
#' @pa... | /R/LQG_ipfp.R | no_license | jeremyhengjm/SchrodingerBridges | R | false | false | 1,516 | r | #' @rdname LQG_ipfp
#' @title Update Markov transition kernels with new policy
#' @description Function to perform IPFP iterations in the exact LQG setting.
#' Outputs the updated Markov transition kernels.
#' @param nsteps number of IPFP iterations
#' @param initial list with keys:
#' \code{mean}
#' \code{cov}
#' @pa... |
Household <- "household_power_consumption.txt"
data <- read.table(Household, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
#str(subSetData)
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalActivePow... | /Plot 4.R | no_license | hazimmerman/Exploratory-Data-Analysis | R | false | false | 1,279 | r | Household <- "household_power_consumption.txt"
data <- read.table(Household, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
#str(subSetData)
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalActivePow... |
#' Coefficient Variation of the Mean Seafloor Climatic Data among CIMP5 Models during 2081 to 2100
#'
#' Coefficient variation of the mean projected (RCP8.5) export POC flux to seafloor, bottom dissolved oxygen concentration,
#' hydrogen ion concentration and temperature were averaged from the Geophysical Fluid Dynamic... | /R/cimp5_2081_2100_cv.R | no_license | chihlinwei/SCC85 | R | false | false | 2,358 | r | #' Coefficient Variation of the Mean Seafloor Climatic Data among CIMP5 Models during 2081 to 2100
#'
#' Coefficient variation of the mean projected (RCP8.5) export POC flux to seafloor, bottom dissolved oxygen concentration,
#' hydrogen ion concentration and temperature were averaged from the Geophysical Fluid Dynamic... |
#
# EDA
#
library(ggplot2)
library(reshape2)
Longnecker <- readRDS("./Longnecker.rds")
Longnecker <- Longnecker[,colnames(Longnecker)!="albumin"] # Throw away albumin
#
# Correlation plot for covariates
corMat <- cor(Longnecker[,!(colnames(Longnecker) %in% c("race", "center"))],
use = "na.or.complete", me... | /unused/eda_yb.R | permissive | STA-723/case-study-1-team-7 | R | false | false | 1,503 | r | #
# EDA
#
library(ggplot2)
library(reshape2)
Longnecker <- readRDS("./Longnecker.rds")
Longnecker <- Longnecker[,colnames(Longnecker)!="albumin"] # Throw away albumin
#
# Correlation plot for covariates
corMat <- cor(Longnecker[,!(colnames(Longnecker) %in% c("race", "center"))],
use = "na.or.complete", me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.