id
stringlengths
40
40
repo_name
stringlengths
5
110
path
stringlengths
2
233
content
stringlengths
0
1.03M
size
int32
0
60M
license
stringclasses
15 values
1d34b2fb6b5978320a1327544057faff64b25fc2
jack6534/LIBRO
LIBROweight/LIBROweight.R
### this is the code to plot the weight of portfolios formed by Markowitz method ### with or without crypto currencies. # please change your working directory # setwd('...') rm(list = ls()) graphics.off() libraries = c("xts") lapply(libraries, function(x) if (!(x %in% installed.packages())) { install.packages(x)...
3,753
gpl-3.0
aee9e5cef79043b0bcacd488fee9321abc27460f
hbwzhsh/RDMP
WebRoot/WEB-INF/classes/ustc/sse/r/test.R
#! /usr/bin/Rscript --vanilla a<-1:10 print(a) args <- commandArgs(TRUE) # paste(c("I", "like", args[1], "and", args[2], "!"), collapse = " ") print(args) area<-function(r){pi*r^2}
180
gpl-2.0
aee9e5cef79043b0bcacd488fee9321abc27460f
starqiu/RDMP
src/ustc/sse/r/test.R
#! /usr/bin/Rscript --vanilla a<-1:10 print(a) args <- commandArgs(TRUE) # paste(c("I", "like", args[1], "and", args[2], "!"), collapse = " ") print(args) area<-function(r){pi*r^2}
180
gpl-2.0
c5d0116f137a762a25160a24898be0ad71feb433
kauralasoo/wiggleplotr
R/wiggleplotr.R
#' Quickly plot transcript structure without read coverage tracks #' #' @param exons list of GRanges objects, each object containing exons for one transcript. #' The list must have names that correspond to transcript_id column in transript_annotations data.frame. #' @param cdss list of GRanges objects, each object cont...
23,240
apache-2.0
aee9e5cef79043b0bcacd488fee9321abc27460f
starqiu/RDMP
WebRoot/WEB-INF/classes/ustc/sse/r/test.R
#! /usr/bin/Rscript --vanilla a<-1:10 print(a) args <- commandArgs(TRUE) # paste(c("I", "like", args[1], "and", args[2], "!"), collapse = " ") print(args) area<-function(r){pi*r^2}
180
gpl-2.0
de836bbbbdf3b76c697fd620da2add6eec8184df
kthohr/kthohr.github.io
bmr/repl_files/dsge/LubikSchorfheide_gensys.R
# # Lubik-Schorfheide (2007) Model # rm(list=ls()) library(BMR) # # Setting parameter values as per Lubik and Schorfheide (2007, Table 3, posterior means) # psi1 <- 1.30 psi2 <- 0.23 psi3 <- 0.14 # rhoR <- 0.69 alpha <- 0.11 rSS <- 2.52 kappa <- 0.32 tau <- 0.31 # rhoq <- 0.31 rhoz ...
5,100
apache-2.0
aee9e5cef79043b0bcacd488fee9321abc27460f
hbwzhsh/RDMP
src/ustc/sse/r/test.R
#! /usr/bin/Rscript --vanilla a<-1:10 print(a) args <- commandArgs(TRUE) # paste(c("I", "like", args[1], "and", args[2], "!"), collapse = " ") print(args) area<-function(r){pi*r^2}
180
gpl-2.0
279f705a8ee418fec43ccb49853f8d9f4aaba957
mitchest/optimus
tests/testthat.R
library(testthat) library(optimus) test_check("optimus")
58
gpl-3.0
098a6d079fd3786e0bdb12cfabb241af7be03700
fmakari/systemml
system-ml/src/test/scripts/functions/unary/scalar/DFTest_EXP_NOPARAMS.R
#------------------------------------------------------------- # # (C) Copyright IBM Corp. 2010, 2015 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
1,003
apache-2.0
098a6d079fd3786e0bdb12cfabb241af7be03700
ckadner/systemml
system-ml/src/test/scripts/functions/unary/scalar/DFTest_EXP_NOPARAMS.R
#------------------------------------------------------------- # # (C) Copyright IBM Corp. 2010, 2015 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
1,003
apache-2.0
098a6d079fd3786e0bdb12cfabb241af7be03700
wjuncdl/systemml
system-ml/src/test/scripts/functions/unary/scalar/DFTest_EXP_NOPARAMS.R
#------------------------------------------------------------- # # (C) Copyright IBM Corp. 2010, 2015 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
1,003
apache-2.0
098a6d079fd3786e0bdb12cfabb241af7be03700
Myasuka/systemml
system-ml/src/test/scripts/functions/unary/scalar/DFTest_EXP_NOPARAMS.R
#------------------------------------------------------------- # # (C) Copyright IBM Corp. 2010, 2015 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
1,003
apache-2.0
098a6d079fd3786e0bdb12cfabb241af7be03700
aloknsingh/systemml
system-ml/src/test/scripts/functions/unary/scalar/DFTest_EXP_NOPARAMS.R
#------------------------------------------------------------- # # (C) Copyright IBM Corp. 2010, 2015 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
1,003
apache-2.0
098a6d079fd3786e0bdb12cfabb241af7be03700
dusenberrymw/systemml_old
system-ml/src/test/scripts/functions/unary/scalar/DFTest_EXP_NOPARAMS.R
#------------------------------------------------------------- # # (C) Copyright IBM Corp. 2010, 2015 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
1,003
apache-2.0
f1555fbe67abf3651f66d2da481a5d9da1052f21
emmanuelparadis/coalescentMCMC
coalescentMCMC/R/dcoal.R
## dcoal.R (2019-01-18) ## pdf of Various Time-Dependent Coalescent Models ## Copyright 2012-2019 Emmanuel Paradis ## This file is part of the R-package `coalescentMCMC'. ## See the file ../COPYING for licensing issues. dcoal.step <- function(bt, theta0, theta1, tau, log = FALSE) { ## if theta0 = theta1 use d...
4,448
gpl-2.0
789d144106513cf05bd67482be63140384460f3d
rho-devel/rho
src/extra/testr/filtered-test-suite/inherits/tc_inherits_3.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(c(2, 3, 4, 5, 6, 7, 8, 9, 10, 11), .Tsp = c(2, 11, 1)), \"data.frame\", FALSE)")); .Internal(`inherits`(argv[[1]], argv[[2]], argv[[3]])); }, o=expected);
298
gpl-2.0
789d144106513cf05bd67482be63140384460f3d
kmillar/cxxr
src/extra/testr/filtered-test-suite/inherits/tc_inherits_3.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(c(2, 3, 4, 5, 6, 7, 8, 9, 10, 11), .Tsp = c(2, 11, 1)), \"data.frame\", FALSE)")); .Internal(`inherits`(argv[[1]], argv[[2]], argv[[3]])); }, o=expected);
298
gpl-2.0
789d144106513cf05bd67482be63140384460f3d
kmillar/rho
src/extra/testr/filtered-test-suite/inherits/tc_inherits_3.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(c(2, 3, 4, 5, 6, 7, 8, 9, 10, 11), .Tsp = c(2, 11, 1)), \"data.frame\", FALSE)")); .Internal(`inherits`(argv[[1]], argv[[2]], argv[[3]])); }, o=expected);
298
gpl-2.0
789d144106513cf05bd67482be63140384460f3d
ArunChauhan/cxxr
src/extra/testr/filtered-test-suite/inherits/tc_inherits_3.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(c(2, 3, 4, 5, 6, 7, 8, 9, 10, 11), .Tsp = c(2, 11, 1)), \"data.frame\", FALSE)")); .Internal(`inherits`(argv[[1]], argv[[2]], argv[[3]])); }, o=expected);
298
gpl-2.0
789d144106513cf05bd67482be63140384460f3d
krlmlr/cxxr
src/extra/testr/filtered-test-suite/inherits/tc_inherits_3.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(c(2, 3, 4, 5, 6, 7, 8, 9, 10, 11), .Tsp = c(2, 11, 1)), \"data.frame\", FALSE)")); .Internal(`inherits`(argv[[1]], argv[[2]], argv[[3]])); }, o=expected);
298
gpl-2.0
41eb18092fa7cd9b0ad2e7ed425629f774d55473
e3bo/pomp
tests/link.R
library(pomp) options(verbose=FALSE) cat("double simplefun (double x) { return(x+3); }",file="simplefun.c") system2(R.home("bin/R"),args=c("CMD","COMPILE","simplefun.c")) pompExample(ricker) pomp(ricker,rmeasure=Csnippet(" double simplefun (double); double m = simplefun(N); y = rpois(phi*m);"), statenames="...
608
gpl-3.0
67244230fa05b715a5a1742ea0dd20ec6aac247b
klmr/trna
chip/scripts/meme-analysis.R
source('scripts/de.R') source('scripts/expressed-per-stage.R') memeBin <- 'meme' dustBin <- 'dust' tomtomBin <- 'tomtom' filterFastaBin <- '../common/scripts/filter-fasta' markovModelBin <- '../common/scripts/markov-model-from-fasta' trnaUpstreamFastaFile <- '../common/data/trna-upstream-with-ids.fasta' memeDatabasePa...
9,021
apache-2.0
789d144106513cf05bd67482be63140384460f3d
cxxr-devel/cxxr
src/extra/testr/filtered-test-suite/inherits/tc_inherits_3.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(c(2, 3, 4, 5, 6, 7, 8, 9, 10, 11), .Tsp = c(2, 11, 1)), \"data.frame\", FALSE)")); .Internal(`inherits`(argv[[1]], argv[[2]], argv[[3]])); }, o=expected);
298
gpl-2.0
29207dd62e72af6d0ef7e804e025f986c1bf882b
LucFrachon/CourseraDataProducts
rawCode/rawCode.R
# Prep stage library(caret); library(rpart); library(rattle); library(rpart.plot) library(randomForest); library(dplyr); library(parallel); library(doParallel) library(ipred); library(RANN) set.seed(2077) cluster <- makeCluster(detectCores()) registerDoParallel(cluster) fitControl <- trainControl(allowParallel = TRU...
8,904
gpl-3.0
321fbcdc45f9e23a57fe6509d8386cbe6763c871
LennonLab/flow-cytometry
bin/qaProcess.GenericImages.R
qaProcess.GenericImages <- function( filenames, frameIDs, outdir="QAReport", name="Gating Images", flags = NULL, width=200, pdf = FALSE, summary.graph = NULL, ...) { # This function generates a qaProcess object using images, which can be used to generate an HTML report about a flowset # Args: # file...
4,276
gpl-3.0
321fbcdc45f9e23a57fe6509d8386cbe6763c871
meganllarsen/flow-cytometry
bin/qaProcess.GenericImages.R
qaProcess.GenericImages <- function( filenames, frameIDs, outdir="QAReport", name="Gating Images", flags = NULL, width=200, pdf = FALSE, summary.graph = NULL, ...) { # This function generates a qaProcess object using images, which can be used to generate an HTML report about a flowset # Args: # file...
4,276
gpl-3.0
321fbcdc45f9e23a57fe6509d8386cbe6763c871
wrshoemaker/flow-cytometry
bin/qaProcess.GenericImages.R
qaProcess.GenericImages <- function( filenames, frameIDs, outdir="QAReport", name="Gating Images", flags = NULL, width=200, pdf = FALSE, summary.graph = NULL, ...) { # This function generates a qaProcess object using images, which can be used to generate an HTML report about a flowset # Args: # file...
4,276
gpl-3.0
6d91326c7c96da955faf6ef57774fc53732262e8
latreach/HoraPosteoFinanciera
posteosFinancieras.R
# Librerías --------------------------------------------------------------- library(magrittr) c("data.table", "dplyr","tidyr","lubridate","vegetarian","vegan", "lattice","ggplot2", "purrr","lme4", "xts","reshape2","Rfacebook", "dygraphs") %>% sapply(require, character.only=T) # Conexión a Facebook -------------...
3,032
gpl-3.0
5733f335edb4833605803d9ab597c1979c1cb5fa
iainmstott/popdemo
1.2-0/popdemo/demo/transfer.R
#================================================= #Transfer function analyses #Transfer function analysis is a means of exact #perturbation analysis. It looks at how a change #in the vital rates of the population (the matrix #elements or their underlying parameters) #translates to a change in population dynamics. #po...
4,822
gpl-3.0
7d162bc3b26ba07e61aa6e3b667243c2ae2caa18
anasrana/spector
R/aux-functions.R
#' @importFrom stringr str_detect #' checkGenome <- function(genome) { #ToDo check for implementation to allow for different case and mixed case if (str_detect(genome, "38|19|37")) { if (str_detect(genome, "38")) { genome <- "hg38" } else if (str_detect(genome, "37|19")) { genome <- "hg19" } ...
1,385
gpl-3.0
5733f335edb4833605803d9ab597c1979c1cb5fa
iainmstott/popdemo
1.2-1/popdemo/demo/transfer.R
#================================================= #Transfer function analyses #Transfer function analysis is a means of exact #perturbation analysis. It looks at how a change #in the vital rates of the population (the matrix #elements or their underlying parameters) #translates to a change in population dynamics. #po...
4,822
gpl-3.0
5733f335edb4833605803d9ab597c1979c1cb5fa
iainmstott/popdemo
1.1-1/popdemo/demo/transfer.R
#================================================= #Transfer function analyses #Transfer function analysis is a means of exact #perturbation analysis. It looks at how a change #in the vital rates of the population (the matrix #elements or their underlying parameters) #translates to a change in population dynamics. #po...
4,822
gpl-3.0
a47ab25f607a91f6441a64df7829d6a11756169c
juancholkovich/coexnet
R/ppiNet.R
# Bioinformatics and Systems Biology | Universidad Nacional de Colombia #' @export ppiNet #' @author Juan David Henao <judhenaosa@unal.edu.co> #' @title Create a protein-protein interaction network #' @description Creates a protein-protein interaction network using an edge list with the relations between proteins or a...
4,974
gpl-3.0
a43f1c8868cfd6781317951cb2b36d273ecf96b6
nlmixrdevelopment/nlmixr
build/test_install.R
# Installation test function test_install <- function(){ # Test 1: Correct R version if(sessionInfo()$R.version$major=="3" & as.numeric(sessionInfo()$R.version$minor)>=4.1){ cat(paste0("Correct R version: Yes, ",sessionInfo()$R....
7,624
gpl-2.0
5d5ada5859c8658df142f23050c5c42c178c7eff
mwouts/jupytext
tests/notebooks/mirror/ipynb_to_percent/R notebook with invalid cell keys.R
# --- # jupyter: # kernelspec: # display_name: R # language: R # name: ir # --- # %% [markdown] # This notebook was created with IRKernel 0.8.12, and is not completely valid, as the code cell below contains an unexpected 'source' entry. This did cause https://github.com/mwouts/jupytext/issues/234. Note t...
447
mit
050808a161860a8ca273f41dd03dd52347c62ced
vivekbhr/vivlib
R/DiffExp_wrapper.R
#' A Wrapper for DESeq2 over featurecounts output #' #' @param fcountOutput featurecounts output (with control and test columns) #' @param numReplicates Number of replicates (could be an integer if the number is same for control and test, #' or a vector with number of replicates for control and fo...
10,476
gpl-3.0
5d5ada5859c8658df142f23050c5c42c178c7eff
mwouts/jupytext
tests/notebooks/mirror/ipynb_to_hydrogen/R notebook with invalid cell keys.R
# --- # jupyter: # kernelspec: # display_name: R # language: R # name: ir # --- # %% [markdown] # This notebook was created with IRKernel 0.8.12, and is not completely valid, as the code cell below contains an unexpected 'source' entry. This did cause https://github.com/mwouts/jupytext/issues/234. Note t...
447
mit
27a362d35e554cfeb146b872a6daa081e50a363e
zwdzwd/wheatmap
R/gg.R
#' WGG object #' form ggplot with coordinates #' #' @param ggobj ggplot plotting object #' @param dm dimension #' @param name name #' @return WGG object #' @export WGG <- function(ggobj, dm=NULL, name='') { if (is.null(dm)) { dm <- WDim(0,0,1,1,nr=1, nc=1) } ggp <- list(ggobj=ggobj, dm=dm, name=nam...
1,151
mit
5bd5758ec9810733464e2abe81168b490f7d1200
ryan-ucd/gosner_boylii
ui.R
## TO DO: ## Add a png of the GOSNER paper ## Add the specific stage next to each photo? library(shiny) headerPanel_2 <- function(title, h, windowTitle=title) { tagList( tags$head(tags$title(windowTitle)), h(title) ) } shinyUI(fluidPage( headerPanel_2( HTML( '<div ...
1,495
gpl-2.0
c4a34a8c4dc6ae5806336076154032bb2be948d1
hanhanwu/Hanhan_Data_Science_Practice
insurance_spark_data.R
# Generate training, testing for Spark #set working directory path<- "[your root for training and testing data]" setwd(path) # load data, 298 features + 1 column of label train <- read.csv("insurance_train.csv") test <- read.csv("insurance_test.csv") # quick explore data dim(train) dim(test) str(train) str(test) sum...
8,221
mit
033146695e43ec22f2d677ff1dd50a90cc4063ba
BigelowLab/nam218
R/misc.R
#' Perform grepl on multiple patterns; it's like AND-ing or OR-ing successive grepl statements. #' #' @export #' @param pattern character vector of patterns #' @param x the character vector to search #' @param op logical vector operator back quoted, defaults to `|` #' @param ... further arguments for \code{grepl} like...
4,913
mit
9fc46bc4b424457d547b6ce1919719dab5452a97
fschueler/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
gweidner/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
dc3b8e87ece70755c40db131e5fb1c9636675e3e
bospetersen/h2o-3
h2o-r/H2O_Load.R
# Change this global variable to match your own system's path ANQIS.ROOT.PATH <- "/Users/anqi_fu/Documents/workspace/" ANQIS.WIN.PATH <- "C:/Users/Anqi/Documents/Work/" SPENCERS.ROOT.PATH <- "/Users/spencer/0xdata/" ROOT.PATH <- SPENCERS.ROOT.PATH DEV.PATH <- "h2o-3/h2o-r/h2o-package/R/" FULL.PATH <- paste(ROOT.PATH, ...
1,120
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
akchinSTC/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
deroneriksson/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
iyounus/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
gweidner/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
asurve/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
nakul02/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
apache/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
niketanpansare/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
asurve/arvind-sysml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
asurve/arvind-sysml2
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
dusenberrymw/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
dc3b8e87ece70755c40db131e5fb1c9636675e3e
tarasane/h2o-3
h2o-r/H2O_Load.R
# Change this global variable to match your own system's path ANQIS.ROOT.PATH <- "/Users/anqi_fu/Documents/workspace/" ANQIS.WIN.PATH <- "C:/Users/Anqi/Documents/Work/" SPENCERS.ROOT.PATH <- "/Users/spencer/0xdata/" ROOT.PATH <- SPENCERS.ROOT.PATH DEV.PATH <- "h2o-3/h2o-r/h2o-package/R/" FULL.PATH <- paste(ROOT.PATH, ...
1,120
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
dhutchis/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
deroneriksson/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
niketanpansare/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
nakul02/systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
dusenberrymw/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
Wenpei/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
asurve/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
9fc46bc4b424457d547b6ce1919719dab5452a97
sandeep-n/incubator-systemml
src/test/scripts/functions/unary/scalar/DFTest_NORMAL.R
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
1,323
apache-2.0
e142651b9b278e1fc0bb97ff9340ed9a8b77dc75
bdetweiler/stat-8426-poster
DBDA2Eprograms/Jags-Ymet-XmetMulti-MrobustVarSelect-Example.R
# Example for Jags-Ymet-XmetMulti-MrobustVarSelect.R #------------------------------------------------------------------------------- # Optional generic preliminaries: graphics.off() # This closes all of R's graphics windows. rm(list=ls()) # Careful! This clears all of R's memory! #----------------------------------...
4,898
mit
e23a997335b74962eb42a96e113776ab4807fa03
pwkraft/pmisc
R/arimax2.R
#' This is a quick fix of the original arimax function which works for the #' following cases: (0,0,0) model with transfer! with this function, no fixed #' parameters are possible! last change: 2013-10-01 by Patrick Original author of #' the arima function in R stats: Brian Ripley. The arimax function is based on #'...
21,716
gpl-2.0
308c90ff178936561235247a81a83968a21b53a7
e-sensing/sits
tests/testthat/test-tibble.R
test_that("Align dates", { timeline <- sits_timeline(point_mt_6bands) start_date <- lubridate::as_date("2001-08-01") end_date <- lubridate::as_date("2002-07-31") ref_dates <- timeline[timeline > start_date] ref_dates <- ref_dates[ref_dates < end_date] new_data <- .tibble_align_dates(samples_m...
3,492
gpl-2.0
ccb57b5cf47deee9776e1cb773571908ff312fe6
jcarlosmayo/helsinki_housing
shiny/server.R
shinyServer(function(input, output, session) { # Subset the data according to user input react_housing_data <- reactive({ data <- subset(housing, price >= input$price_slider[1] & price <= input$price_slider[2] & size >= input$size_slider[1] & size <= input$size_slider[2] & ...
3,493
mit
19aeb6425466b622e375299c22e1c9703bc15cb8
leo42k/CourseRecommenderApp
rsconnect.R
# install.packages("rsconnect") library(rsconnect) rsconnect::setAccountInfo(name='jhubiostatistics', token='A12E679D3BDB7BD8EBDBB070ECB1A2DC', secret='cxQUJL4Nf+I56VBOIHa3Nq5DE0zQwCqOL2ueBune') deployApp()
208
mit
9336d4ca3f24cd1e812fc362bcdb8db3615d0827
ayacha/food-inspections-evaluation
CODE/23_generate_model_dat.R
##============================================================================== ## INITIALIZE ##============================================================================== ## Remove all objects; perform garbage collection rm(list=ls()) gc(reset=TRUE) ## Detach libraries that are not used geneorama::detach_nonstand...
9,573
mit
8e32684075f66585deb1a44578850590a832277f
AmeliaMN/MapExplorations
R/mapexplo/ui.R
shinyUI(fluidPage( titlePanel("Playing with aggregation"), sidebarLayout( sidebarPanel( sliderInput("lon", label="x-value", min=-120, max=-116, step=0.01, value=-119), sliderInput("lat", label="y-value", min=32, max=35, step=0.01, value=32), sliderInput("howmany", label="boxes", min=1, max=...
387
gpl-2.0
6b06dafc9f373f6ea494f946d90eac9cf91d2e47
peterdesmet/favourite-fruit-color
src/analysis.R
# Example script for github tutorial
38
mit
58d4ded7879bea663d49261b0404d9fb16b0956e
NGSchool2016/ngschool2016-materials
chip_seq/.R_library/3.3/Rsamtools/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
gpl-3.0
58d4ded7879bea663d49261b0404d9fb16b0956e
nhayden/Rsamtools
inst/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
mit
5e0d4b2f1e46457e5709c805d11fa72f5e7fcdc4
kauralasoo/Blood_ATAC
scripts/merge_QTLtools_PCAs.R
#Run QTLtools PCA # QTLtools pca --bed CTCF.norm_prop.txt.gz --center --scale --out CTCF.pheno_pca # QTLtools pca --vcf /gpfs/hpchome/a72094/rocket/datasets/CTCF/genotypes/vcf/GRCh38/CTCF_51_samples.GRCh38.final.vcf.gz --center --scale --out CTCF.geno_pca #Import PCA results phenotype_pca = readr::read_delim("processe...
832
apache-2.0
608614b53b54f289be11560370705a4f038eae55
schifferl/LagSelectionBias
R/mortify_cohort.R
mortify_cohort <- function(filtered_data, current_year) { for (x in unique(filtered_data$age_group)) { for (y in unique(filtered_data$race)) { for (z in unique(filtered_data$sex)) { mortality_cohort <- filtered_data %>% filter(age_group == x) %>% filter(race == y) %>% ...
1,299
mit
58d4ded7879bea663d49261b0404d9fb16b0956e
CodeGit/SequenceImp
dependencies-bin/macosx/bin/R/lib/R/library/Rsamtools/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
gpl-3.0
58d4ded7879bea663d49261b0404d9fb16b0956e
mtmorgan/Rsamtools
inst/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
mit
58d4ded7879bea663d49261b0404d9fb16b0956e
CodeGit/SequenceImp
dependencies-bin/linux/bin/R/lib64/R/library/Rsamtools/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
gpl-3.0
58d4ded7879bea663d49261b0404d9fb16b0956e
jimhester/Rsamtools
inst/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
mit
58d4ded7879bea663d49261b0404d9fb16b0956e
CodeGit/SequenceImp
dependencies-bin/windows/bin/R/library/Rsamtools/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
gpl-3.0
a531cb0af76484ed5516575de69f14a48e315b2e
variani/matlm
tests/testthat/test-orth.R
context("orth") test_that("matlm_orth", { N <- 50 # simulate data set.seed(1) y <- rnorm(N) c1 <- rep(1, N) c2 <- rbinom(N, 1, 0.5) C <- cbind(c1, c2) # orth. on c1 y_orth1 <- matlm_orth(c1, y) # orth. on C = [c1, c2] y_orth2 <- matlm_orth(C, y) # expect expect_true(abs(crosspr...
800
gpl-3.0
58d4ded7879bea663d49261b0404d9fb16b0956e
NGSchool2016/ngschool2016-materials
chip_seq/.R_library/3.2/Rsamtools/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
gpl-3.0
58d4ded7879bea663d49261b0404d9fb16b0956e
genome-vendor/r-bioc-rsamtools
inst/scripts/remote_test.R
suppressMessages(library(Rsamtools)) fl = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam" p1 <- ScanBamParam(which=RangesList("6"=IRanges(10000, 11000))) res <- scanBam(fl, param=p1)[[1]] res[["seq"]] fl = "ftp://ftp-trace.ncbi.nih.gov/1000g...
763
mit
01770706aaeed2a99e06e1d5f6181af185e199af
cran/TIMP
R/skew.R
"skew" <- function(numax, deltanu, b, nu, nupower=1) { arg <- 1 + (2 * b * (nu - numax))/deltanu res <- arg res[which(arg>0)] <- exp( - log(2) * (log(arg[which(arg>0)])/b)^2) res[which(arg<=0)] <- 0 if(nupower!=1) res <- res * nu^nupower res }
277
gpl-2.0
184142efe0da321e5cee77a7bfdfce3b0b99c3ce
bospetersen/h2o-3
h2o-r/demos/large/citibike_nyc.R
## Set your working directory setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) # Explore a typical Data Science workflow with H2O and R # # Goal: assist the manager of data of NYC to load-balance the bicycles # across the data network of stations, by predicting the number of bike # trips taken fr...
7,099
apache-2.0
188761d64e2757045d705514946583e209557b1e
whitneyburrow/HighDim2Means
R/skTest.R
#' Srivastava-Kubokawa Test #' #' @param x Data set 1. #' @param y Data set 2. #' #' @importFrom highD2pop SK.test #' #' @return #' @export skTest <- function(x, y) { highD2pop::SK.test(x, y)[[1]] }
204
mit
184142efe0da321e5cee77a7bfdfce3b0b99c3ce
tarasane/h2o-3
h2o-r/demos/large/citibike_nyc.R
## Set your working directory setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) # Explore a typical Data Science workflow with H2O and R # # Goal: assist the manager of data of NYC to load-balance the bicycles # across the data network of stations, by predicting the number of bike # trips taken fr...
7,099
apache-2.0
a315271a029faa4fa6b6413d295799f41170a26e
barakbri/AutoNeta
AutoTransMan/Function Project.R
########################### # Libraries Load ---------------------------------------------------------- library('ggplot2') ########################### ########################### # Index Functions -------------------------------------------------------- ## Creating index, currently only supports YULE ## Should alwa...
16,806
gpl-3.0
9faed8dbe2eabc97c28aaebd8b591fe44a7bde3c
edzer/gstat
R/krigeTg.R
# $Id: krigeTg.q,v 1.4 2009-07-07 15:42:39 edzer Exp $ phiInv <- function (x, lambda) if (lambda==0) log(x) else (x^lambda-1)/lambda phi <- function(x, lambda) if (lambda==0) exp(x) else (x*lambda+1)^(1/lambda) phiPrime <- function (x, lambda) if (lambda==0) exp(x) else (x*lambda+1)^(1/lambda-1) ...
2,299
gpl-2.0
ec56c032a872149030977fc8c659b047f185e3a2
hojsgaard/doBy
R/doby-utilities.R
#' @title Extract components from a formula with "conditioning bar" #' #' @description Extract components from a formula with the form #' \code{y ~ x1 + ... + xn | g1 + ... + gm} #' #' @param form A formula of the form \code{y ~ x1 + ... + xn | g1 + ... + gm} #' @return If the formula is \code{y ~ x1 + x2 | g1 + ...
1,734
gpl-2.0
0929ac6421df774d963961ea0c30191ffb2914c0
PFgimenez/thesis
R-files/data_alarm.R
library(ggplot2) #-------------------------------------------------------------------------------------------- #Parametres globaux dataset_name = "alarm" taille_img_x = 1024/2 taille_img_y = 720/2 #fin parametres globaux #-------------------------------------------------------------------------------------------- #--...
15,902
gpl-3.0
0929ac6421df774d963961ea0c30191ffb2914c0
PFgimenez/PhD
R-files/data_alarm.R
library(ggplot2) #-------------------------------------------------------------------------------------------- #Parametres globaux dataset_name = "alarm" taille_img_x = 1024/2 taille_img_y = 720/2 #fin parametres globaux #-------------------------------------------------------------------------------------------- #--...
15,902
gpl-3.0
6a9edefc38fc39d0e93b85fe3db1da9bc0fe151b
famuvie/breedR
tests/testthat/test-modelmatrix.R
### Test the computation of model matrices ### context("Model Matrix") fullcoord <- expand.grid(list(x = seq(1, 100, length = 51), y = seq(1001, 1100, length = 35)), KEEP.OUT.ATTRS = FALSE) fullN <- nrow(fullcoord) rm.idx <- sample(fullN, fullN/10) coord <- fullcoord...
1,953
gpl-3.0
a773ac03c9ec2df026b96019f94fe6354b2c582d
guzmanlopez/PAS-DINARA
shiny/loadSSS/global.R
# Source files # Global data frame of extracted GPS positions df_gps = data.frame() # function sssExtractGPS (extract GPS positions from raw CSV Tritech StarFish SideScanSonar) source("source/sssExtractGPS.R") # function sssGPS2SHP (export positions from Tritech StarFish SideScanSonar to line shapefile) source("sourc...
336
gpl-3.0
c893c7ccbb53a7317632cefd581d2a58223ef7b6
kpurcell/EcosysMetricsGOM
Analysis/matrix_plot_data_prep_2013-7-15.R
# Matrix plot of species abundance # 2013-5-21 # Script objective: To import SEAMAP data, calculate cpue (biomass) # plot a color matrix of abundance and species(in trophic order) #Clear the junk graphics.off() rm(list=ls(all=TRUE)) #Change working directory to the project folder setwd("C:/Users/kevin.purcell/Docume...
4,396
mit
952a1aa12d4d7897efdb50530e5c7e56a13c129a
Uni-Marburg-IGS-Statistik/Statistik-f-r-Sprachwissenschaftler
Loesungen/hausaufgabe03b.R
# Hausaufgabe 03 # Phillip Alday <phillip.alday@staff.uni-marburg.de> # 2014-06-22 # Dieses Werk ist lizenziert unter einer CC-BY-NC-SA Lizenz. # Sie sollten die Datei auch in Ihren Ordner kopieren und einen Commit machen, # bevor Sie die Kopie weiter anpassen! Vergessen Sie dabei nicht, Namen, Datum # und ggf. Lizen...
4,647
gpl-2.0
4872a6099dd561065536ea45e722398d293c129e
hughjonesd/lifeworld
server.R
library(shiny) library(leaflet) library(refset) minDist <- 100 mapTimeout <- 1000 * 10; # in millisecs vars <- reactiveValues() vars$dfr <- data.frame(id=character(0), lat=numeric(0), long=numeric(0), alive=logical(0), time=numeric(0)) # for testing testing <- TRUE if (testing) { nfake <- 250 vars$dfr <- ...
3,665
gpl-2.0
bf62f8b0bbe9b379d5aedebfb6d59b2b9112270d
njfreesurfer/statistical-learning
ch05/applied.R
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # An Introduction to Statistical Learning # with Applications in R # # Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani # # To get a free PDF of the book: http://www-bcf.usc.edu/~gareth/ISL/ # #++++++++++++++++++++++++++++++++++...
7,034
gpl-2.0
38f8acde45c240df8e7a1e3e60ed2adee5266e66
mclapham/guadalupian-abundance-paper
occurrence_acq.R
#SCRIPT TO ACQUIRE AND FILTER BRACHIOPOD OCCURRENCE DATA #GENERATES MATRIX OF OCCURRENCE FREQUENCY (COLUMNS=TIME INTERVALS, ROWS=GENERA) #ORDERED BY TIME INTERVAL FOR TETHYS AND EACH REGION (IRAN, S CHINA, PAKISTAN) #Specifies input parameters include_taxon<-"Brachiopoda" maxinterval<-"Roadian" mininterval<-"Changhsin...
4,049
cc0-1.0