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 |
|---|---|---|---|---|---|
575913d3457180c7fcef90f6d954af0579127ff0 | jangorecki/data.table | R/utils.R | # all non-exported / unused internal (utility) functions
# R 3.5.0 made isTRUE longer but more efficient :
# `is.logical(x) && length(x)==1L && !is.na(x) && x`
# Before R 3.5.0, isTRUE was defined as simply:
# identical(TRUE,x)
# See PR#3421 for timings.
# It was changed in R so that isTRUE(c(a=TRUE)) returned TRU... | 6,054 | mpl-2.0 |
c3fca7551973fbb5ba22f4dffe485628b894430b | junwucs/h2o-3 | h2o-r/tests/testdir_jira/runit_pub_636_column_references.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test.pub_636_column_references <- function() {
prostatePath <- locate("smalldata/prostate/prostate.csv")
prostate.hex <- h2o.importFile(path = prostatePath, destination_frame = "prostate.hex")
prostate.local <- as.data.fr... | 2,456 | apache-2.0 |
c3fca7551973fbb5ba22f4dffe485628b894430b | datachand/h2o-3 | h2o-r/tests/testdir_jira/runit_pub_636_column_references.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test.pub_636_column_references <- function() {
prostatePath <- locate("smalldata/prostate/prostate.csv")
prostate.hex <- h2o.importFile(path = prostatePath, destination_frame = "prostate.hex")
prostate.local <- as.data.fr... | 2,456 | apache-2.0 |
c3fca7551973fbb5ba22f4dffe485628b894430b | printedheart/h2o-3 | h2o-r/tests/testdir_jira/runit_pub_636_column_references.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test.pub_636_column_references <- function() {
prostatePath <- locate("smalldata/prostate/prostate.csv")
prostate.hex <- h2o.importFile(path = prostatePath, destination_frame = "prostate.hex")
prostate.local <- as.data.fr... | 2,456 | apache-2.0 |
760b2fee2b0bbdf98c05ad3359b30db1bfd91b6a | dusenberrymw/systemml_old | system-ml/src/test/scripts/functions/ternary/CovarianceWeights.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,066 | apache-2.0 |
df8dbab7f67e896ebb6af33238b686467d34c2b5 | otrenav/twitter-geo-search | geocode_databases.R | #
# Author: Omar Trejo Navarro
# Email: otrenav [at] gmail [dot] com
#
# If you have a database with full addresses in it for your
# entities, this file can help you get the coordinates corresponding
# to those addresses so that you can use it with the rest of the
# application. Simply adjust the parameters below to f... | 2,784 | apache-2.0 |
760b2fee2b0bbdf98c05ad3359b30db1bfd91b6a | aloknsingh/systemml | system-ml/src/test/scripts/functions/ternary/CovarianceWeights.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,066 | apache-2.0 |
c3fca7551973fbb5ba22f4dffe485628b894430b | brightchen/h2o-3 | h2o-r/tests/testdir_jira/runit_pub_636_column_references.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
test.pub_636_column_references <- function() {
prostatePath <- locate("smalldata/prostate/prostate.csv")
prostate.hex <- h2o.importFile(path = prostatePath, destination_frame = "prostate.hex")
prostate.local <- as.data.fr... | 2,456 | apache-2.0 |
760b2fee2b0bbdf98c05ad3359b30db1bfd91b6a | fmakari/systemml | system-ml/src/test/scripts/functions/ternary/CovarianceWeights.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,066 | apache-2.0 |
760b2fee2b0bbdf98c05ad3359b30db1bfd91b6a | wjuncdl/systemml | system-ml/src/test/scripts/functions/ternary/CovarianceWeights.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,066 | apache-2.0 |
7845b53653481044b3f37d4f164b8d7b0d26e392 | ujjwalkarn/DataScienceR | PCA.R | There are three ways to perform PCA in R: princomp() , prcomp() and pca() in labdsv library . Essentially, they compute the same values (technically, princomp() and labdsv package computes an eigen analysis and prcomp() computes a singular value decomposition.).
The prcomp() function is a numerically stable routine t... | 2,560 | mit |
e34ee498217af74dc4b2fe2bcc299baa0f53d2b7 | joanalza/BradleyTerry | R/EHBSA.R | #' An S4 class to represent distributions based on Edge Histrogam Based Sampling Algorithm.
#'
#' @slot adjacencyMatrix A matrix containing the second order marginal probabilities from the data.
#'
setClass(
Class="EHBSA",
representation=representation(adjacencyMatrix="matrix")
)
# GENERIC METHODS ----------------... | 2,683 | gpl-2.0 |
2c3293dd97b074f96551b25d655ca20000d20da8 | STAT-ATA-ASU/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
2c3293dd97b074f96551b25d655ca20000d20da8 | meganclarke/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
2c3293dd97b074f96551b25d655ca20000d20da8 | aimeesinclair/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
5bab74df36c4ffbfa94f8d4d5abfe07bb2074adf | OwnYourData/app-allergy | uiStatusItemConfig.R | uiStatusItemConfig <- function(){
tabPanel(icon('wrench'),
value = 'config',
br(),
fluidRow(
column(3,
selectInput('extStatusList',
'Auswertungen:',
... | 3,936 | mit |
cc11df09047cd657ee6cb4511af2bc27f16c8912 | tkelman/BlackBoxOptim.jl | spikes/experiments/installp.R | install.packages("tgp", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("rjson", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("lhs", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("optparse", repos="http://ftp.sunet.se/pub/lang/CRAN/")
| 279 | mit |
cb99cb3275472aa496e8dc744081b5b2145a2747 | UCL-BLIC/legion-buildscripts | cytofpipe/v1.3/Rlibs/flowUtils/RUnitScript_Files/runit.21TrQuadratic.R | fcsFile<-system.file("extdata/List-modeDataFiles","int-10_events_6_parameters.fcs",package="gatingMLData")
gateFile <- system.file("extdata/Gating-MLFiles","21TrQuadratic.xml",package="gatingMLData")
csvFile<-paste(system.file("extdata/ExpectedResults/21TrQuadratic",package="gatingMLData"))
flowEnv=new.en... | 1,704 | mit |
cc11df09047cd657ee6cb4511af2bc27f16c8912 | JuliaPackageMirrors/BlackBoxOptim.jl | spikes/experiments/installp.R | install.packages("tgp", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("rjson", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("lhs", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("optparse", repos="http://ftp.sunet.se/pub/lang/CRAN/")
| 279 | mit |
2c3293dd97b074f96551b25d655ca20000d20da8 | alanarnholt/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
b9c0350d313ad343eb5ad3a5639282656dce27cc | zross/who-heat | resources/includes/plotter.R | ######### plotter.R #
# This file manages the six different kinds of plot used in the equity analysis tool kit. #
# Plot 1: Barchart for a single country (Disaggregation of data) #
# Plot 2: Horizontal line chart for a ... | 19,426 | agpl-3.0 |
cb99cb3275472aa496e8dc744081b5b2145a2747 | UCL-BLIC/legion-buildscripts | cytofpipe/v1.2/Rlibs/flowUtils/RUnitScript_Files/runit.21TrQuadratic.R | fcsFile<-system.file("extdata/List-modeDataFiles","int-10_events_6_parameters.fcs",package="gatingMLData")
gateFile <- system.file("extdata/Gating-MLFiles","21TrQuadratic.xml",package="gatingMLData")
csvFile<-paste(system.file("extdata/ExpectedResults/21TrQuadratic",package="gatingMLData"))
flowEnv=new.en... | 1,704 | mit |
5bab74df36c4ffbfa94f8d4d5abfe07bb2074adf | OwnYourData/app-webhistory | uiStatusItemConfig.R | uiStatusItemConfig <- function(){
tabPanel(icon('wrench'),
value = 'config',
br(),
fluidRow(
column(3,
selectInput('extStatusList',
'Auswertungen:',
... | 3,936 | mit |
2c3293dd97b074f96551b25d655ca20000d20da8 | mningle/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
5bab74df36c4ffbfa94f8d4d5abfe07bb2074adf | OwnYourData/app-bank | uiStatusItemConfig.R | uiStatusItemConfig <- function(){
tabPanel(icon('wrench'),
value = 'config',
br(),
fluidRow(
column(3,
selectInput('extStatusList',
'Auswertungen:',
... | 3,936 | mit |
65ada18ea7b9ac530cd67add8431a74c4f7d3160 | francescojm/OT_15_libraries_and_pipelines | Pipelines/previous pipelines/ToRearrange/OT15.PL_05.BagelR.R |
source('Libraries/OT15.BAGELr.R')
source('Libraries/OT15.Packages.R')
load('../../DATAreorganised/manifests/R/20170124_D14_QCed_filtered.Rdata')
bagelR.createAllInputFiles(PS_inventory,
outDir = '../../RESULTSreorganised/mainProject/201701/15_BAGEL_inputFiles/')
bagelR.createAllFCFiles(... | 2,206 | mit |
2c3293dd97b074f96551b25d655ca20000d20da8 | STT2810-ASU/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
5bab74df36c4ffbfa94f8d4d5abfe07bb2074adf | OwnYourData/app-template | uiStatusItemConfig.R | uiStatusItemConfig <- function(){
tabPanel(icon('wrench'),
value = 'config',
br(),
fluidRow(
column(3,
selectInput('extStatusList',
'Auswertungen:',
... | 3,936 | mit |
2c3293dd97b074f96551b25d655ca20000d20da8 | STT2810-ASU/STT2810ClassRepoSP15 | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
2c3293dd97b074f96551b25d655ca20000d20da8 | kenleyplott/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
434953c564657b58b5465e25be810a68d4c62769 | sargentfrancesca/compadreDB | Functions/makeLifeTable.R | makeLifeTable<-function(matU, matF = NULL, matC = NULL, startLife = 1, nSteps = 1000){
matDim = ncol(matU)
#Age-specific survivorship (lx) (See top function on page 120 in Caswell 2001):
matUtemp = matU
survivorship = array(NA, dim = c(nSteps, matDim))
for (o in 1:nSteps){
survivorship[o, ] = colSum... | 1,789 | gpl-2.0 |
2c3293dd97b074f96551b25d655ca20000d20da8 | rachaelgossett/STT2810ClassRepo | Rscripts/RandomVariables.R | ### Alan Arnholt
### 3/17/15
N <- 3
stuff <- 1:N
n <- 2
omega <- expand.grid(draw1 = stuff, draw2 = stuff)
omega
xbar <- apply(omega, 1, mean)
xbar
NS <- cbind(omega, xbar)
NS
xtabs(~xbar, data = NS)
library(MASS)
fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar <- fractions(xtabs(~xbar, data = NS)/(N^n))
Pxbar
MU <- sum... | 604 | mit |
cc11df09047cd657ee6cb4511af2bc27f16c8912 | multidis/BlackBoxOptim.jl | spikes/experiments/installp.R | install.packages("tgp", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("rjson", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("lhs", repos="http://ftp.sunet.se/pub/lang/CRAN/")
install.packages("optparse", repos="http://ftp.sunet.se/pub/lang/CRAN/")
| 279 | mit |
96d3aaa9c900d6064fd8637d8eb2089987acc909 | matahi/lib | R/plot/lollipop/my_lollipop_facet.R | my_lollipop_facet <- function (dat.genetics.unique,
current.gene,
facet_var=NULL,
protein_domain,
protein_length,
cutoff.hotspot=20,
... | 7,443 | mit |
3f173fdf5aa3c4f2ce36e1921154cb1615df4b88 | kootsoop/DSP.SE | R/Q26568/Q26568.R | #26568
Ndata <- 1000
c1 <- runif(Ndata,1.5,3)
c2 <- runif(Ndata,1,2.5)
data <- c(c1, c2)
thresholds <- seq(1,2.99,0.01)
precision <- thresholds*0
recall <- thresholds*0
for (k in 1:length(thresholds))
{
threshold <- thresholds[k]
cl <- da... | 940 | mit |
8fd7f7ad59a6619ea983c34bdd659f4326fd4e80 | kmillar/cxxr | src/extra/testr/filtered-test-suite/dimnames/tc_dimnames_19.R | expected <- eval(parse(text="list(\"ret0\", c(\"Package\", \"LibPath\", \"Version\", \"Priority\", \"Depends\", \"Imports\", \"LinkingTo\", \"Suggests\", \"Enhances\", \"License\", \"License_is_FOSS\", \"License_restricts_use\", \"OS_type\", \"Archs\", \"MD5sum\", \"NeedsCompilation\", \"Built\"))"));
test(id=0, ... | 875 | gpl-2.0 |
8fd7f7ad59a6619ea983c34bdd659f4326fd4e80 | ArunChauhan/cxxr | src/extra/testr/filtered-test-suite/dimnames/tc_dimnames_19.R | expected <- eval(parse(text="list(\"ret0\", c(\"Package\", \"LibPath\", \"Version\", \"Priority\", \"Depends\", \"Imports\", \"LinkingTo\", \"Suggests\", \"Enhances\", \"License\", \"License_is_FOSS\", \"License_restricts_use\", \"OS_type\", \"Archs\", \"MD5sum\", \"NeedsCompilation\", \"Built\"))"));
test(id=0, ... | 875 | gpl-2.0 |
8fd7f7ad59a6619ea983c34bdd659f4326fd4e80 | krlmlr/cxxr | src/extra/testr/filtered-test-suite/dimnames/tc_dimnames_19.R | expected <- eval(parse(text="list(\"ret0\", c(\"Package\", \"LibPath\", \"Version\", \"Priority\", \"Depends\", \"Imports\", \"LinkingTo\", \"Suggests\", \"Enhances\", \"License\", \"License_is_FOSS\", \"License_restricts_use\", \"OS_type\", \"Archs\", \"MD5sum\", \"NeedsCompilation\", \"Built\"))"));
test(id=0, ... | 875 | gpl-2.0 |
8fd7f7ad59a6619ea983c34bdd659f4326fd4e80 | kmillar/rho | src/extra/testr/filtered-test-suite/dimnames/tc_dimnames_19.R | expected <- eval(parse(text="list(\"ret0\", c(\"Package\", \"LibPath\", \"Version\", \"Priority\", \"Depends\", \"Imports\", \"LinkingTo\", \"Suggests\", \"Enhances\", \"License\", \"License_is_FOSS\", \"License_restricts_use\", \"OS_type\", \"Archs\", \"MD5sum\", \"NeedsCompilation\", \"Built\"))"));
test(id=0, ... | 875 | gpl-2.0 |
8fd7f7ad59a6619ea983c34bdd659f4326fd4e80 | cxxr-devel/cxxr | src/extra/testr/filtered-test-suite/dimnames/tc_dimnames_19.R | expected <- eval(parse(text="list(\"ret0\", c(\"Package\", \"LibPath\", \"Version\", \"Priority\", \"Depends\", \"Imports\", \"LinkingTo\", \"Suggests\", \"Enhances\", \"License\", \"License_is_FOSS\", \"License_restricts_use\", \"OS_type\", \"Archs\", \"MD5sum\", \"NeedsCompilation\", \"Built\"))"));
test(id=0, ... | 875 | gpl-2.0 |
8fd7f7ad59a6619ea983c34bdd659f4326fd4e80 | rho-devel/rho | src/extra/testr/filtered-test-suite/dimnames/tc_dimnames_19.R | expected <- eval(parse(text="list(\"ret0\", c(\"Package\", \"LibPath\", \"Version\", \"Priority\", \"Depends\", \"Imports\", \"LinkingTo\", \"Suggests\", \"Enhances\", \"License\", \"License_is_FOSS\", \"License_restricts_use\", \"OS_type\", \"Archs\", \"MD5sum\", \"NeedsCompilation\", \"Built\"))"));
test(id=0, ... | 875 | gpl-2.0 |
cd390983485682971cb29d9768da44dcdf631b23 | kingaa/pomp | tests/simulate.R | options(digits=3)
png(filename="simulate-%02d.png",res=100)
library(pomp)
library(dplyr)
set.seed(1041414791L)
ou2() -> ou2
ou2 %>% simulate(times=0:20,t0=-4,seed=298831503) %>% plot()
try(simulate(rprocess=onestep(Csnippet("z = runif(0,1);")),
rmeasure=Csnippet("w = rnorm(z,1);"),
rinit=Csnippet("z = 0;"),
s... | 5,214 | gpl-3.0 |
f050afc52bb913e5b720eb27437fde30fd1b912b | gabraham/scca-paper | code/crossprod.R |
#
#library('Rcpp')
#library('inline')
#
#rcpp_inc <- '
#using namespace Rcpp;
#using namespace arma;
#'
#
#src <- '
#mat m1 = as<mat>(m1in);
#mat m2 = as<mat>(m2in);
#mat cp = trans(m1) * m2;
#return(wrap(cp));
#'
#fcrossprod <- cxxfunction(signature(m1in="numeric", m2in="numeric"), src,
# plugin='RcppArmadillo', rc... | 870 | gpl-3.0 |
2b8b6e169557655c7ec0b35c1c6b68d1a63596b1 | magrai/URBAN-MV-VIE_UniBw | prediction/resources_plot/_plot_simulation.R |
# Load template -----------------------------------------------------------
replayPlot(plot_template4sim)
# History of simulated speed profiles -------------------------------------
if (!sett_plot$pred_is_single != 0 & sett_plot$plot_sim_tails_history) {
if (!sett_pred$collect_sim_tails) {
outputString("... | 3,204 | gpl-3.0 |
30bdf357df5f120293ac2646cce905b4ef9ef4c8 | gabriel-slima/nkmodel | R/generateNext.R | #' generateNext
#'
#' Generates the next evolutionary step of the organism
#'
#' @param N Number of traits
#' @param K Number of other traits which have a fitness contribution of each gene or trait
#' @param sp Species id
#' @param organism Sequence of N 1s and 0s representing presence or absence of traits
#' @param fi... | 1,045 | gpl-3.0 |
57a8d58e6643426514314ebe0f574a1b2b7b82f5 | andrewdefries/andrewdefries.github.io | FDA_Pesticide_Glossary/edifenphos.R | library("knitr")
library("rgl")
#knit("edifenphos.Rmd")
#markdownToHTML('edifenphos.md', 'edifenphos.html', options=c("use_xhml"))
#system("pandoc -s edifenphos.html -o edifenphos.pdf")
knit2html('edifenphos.Rmd')
| 216 | mit |
bd8ed03d01b02128cc5088c75db4ed05bd35922c | mateobengualid/macro2problems | TP4/UhligR/exampl0.R | # VERSION 2.0, MARCH 1997, COPYRIGHT H. UHLIG.
# EXAMPL0.M:
# Solving the stochastic neoclassical growth model with the "toolkit"
# Copyright: H. Uhlig. Feel free to copy, modify and use at your own risk.
# However, you are not allowed to sell this software or otherwise impinge
# on its free distribution.
# This is ... | 3,900 | bsd-3-clause |
a6e25ab584c09f90bdc382c85025604ffe8b1d5d | lajus/customr | src/library/stats/R/mlm.R | # File src/library/stats/R/mlm.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1998 B. D. Ripley
# Copyright (C) 1998-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fr... | 21,047 | gpl-2.0 |
a6e25ab584c09f90bdc382c85025604ffe8b1d5d | glycerine/bigbird | r-3.0.2/src/library/stats/R/mlm.R | # File src/library/stats/R/mlm.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1998 B. D. Ripley
# Copyright (C) 1998-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fr... | 21,047 | bsd-2-clause |
a6e25ab584c09f90bdc382c85025604ffe8b1d5d | cxxr-devel/cxxr-svn-mirror | src/library/stats/R/mlm.R | # File src/library/stats/R/mlm.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1998 B. D. Ripley
# Copyright (C) 1998-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fr... | 21,047 | gpl-2.0 |
e0a27b229d625ff392802c4640a58164caaec1fa | elahi/sbs_analysis | 4_plot_data/07_plot_timeseries_spectra.R | ################################################################################
##' @title Plot residuals of temperature time series in context of 18y lunar cycles
##'
##' @author Robin Elahi
##' @contact elahi.robin@gmail.com
##'
##' @date 2016-12-05
##'
##' @log
###################################################... | 8,033 | mit |
8e1864a39d3f6d6d9e4441d5b4b4fb9fb357a54f | rOpenGov/kungliga | old/R/utils.R | #' @title remove_endings
#' @description Remove specified endings of strings
#'
#' @param x vector
#' @param endings endings to remove
#' @return polished vector
#'
#' @export
#'
#' @author Leo Lahti \email{leo.lahti@@iki.fi}
#' @references See citation("bibliographica")
#'
#' @examples \dontrun{x2 <- remove_endings(... | 2,362 | bsd-2-clause |
aea921dd4329808a153452a9af3f64ef25ffb4ab | sjewo/tmap | pkg/R/process_lines.R | process_line_lwd_vector <- function(x, g, rescale) {
if (is.null(g$lwd.legend)) {
w_legend <- pretty(x, 7)
w_legend <- w_legend[w_legend!=0]
w_legend <- w_legend[-c(length(w_legend)-3,length(w_legend)-1)]
} else {
w_legend <- g$lwd.legend
}
maxW <- ifelse(rescale, max(x, na.rm=TRUE), 1)
line.legend... | 7,102 | gpl-3.0 |
9972caca6768c97857d67207c08bada750e9c6b6 | ckbjimmy/mimic3_rh | mimic3_elixhauser.R | # The MIT License (MIT)
#
# Copyright (c) 2016 Wei-Hung Weng
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | 19,333 | mit |
b1f37580514f880870bea5b9095b0ebc0b45f983 | WoodResourcesGroup/EPIC_AllPowerLabs | Biomass/R_scripts/map.R | ### Open raster files, unit boundaries, and LEMMA_unit live biomass
library(rgdal)
library(raster)
#EPIC <- "C:/Users/Battles Lab/Box Sync/EPIC-Biomass" # Define where your EPIC-BIOMASS folder is located in Box Sync
EPIC <- "C:/Users/Carmen/Box Sync/EPIC-Biomass"
YEARS <- c("1215","2016")
##YEARS <- "2016"
### OPEN... | 9,993 | mit |
24edf2a1c9fa8f43bd910e3cfbe917b4a89bf420 | mirzal/ESS-civic-engagement | ui.R | # Civic engagement in Europe explorer - R Shiny application
# Copyright (C) 2015 Mirosław Zalewski <mz@miroslaw-zalewski.eu>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundati... | 2,389 | agpl-3.0 |
351e3515b8d00d814706de4014abe5486b28fb42 | iainmstott/popdemo | 1.3-1/popdemo/R/hidden-rmc.R | #' @importFrom stats runif rmultinom
.rmc <- function(tm, cl, s1 = NULL){
tm_dim <- dim(tm)
if(length(tm_dim) != 2 | tm_dim[1] != tm_dim[2]){
stop("Markov transition matrix must be square")
}
if(!all(colSums(tm)==1)){
stop("all column sums of Markov transition matrix must equal 1")
}... | 858 | gpl-3.0 |
351e3515b8d00d814706de4014abe5486b28fb42 | iainmstott/popdemo | 1.3-0/popdemo/R/hidden-rmc.R | #' @importFrom stats runif rmultinom
.rmc <- function(tm, cl, s1 = NULL){
tm_dim <- dim(tm)
if(length(tm_dim) != 2 | tm_dim[1] != tm_dim[2]){
stop("Markov transition matrix must be square")
}
if(!all(colSums(tm)==1)){
stop("all column sums of Markov transition matrix must equal 1")
}... | 858 | gpl-3.0 |
3cacdae781a4a50793a1d7474393b3214a0ab8cd | hadley/readr | R/read_delim_chunked.R | # Generates the chunked definition from the read_* definition
generate_chunked_fun <- function(x) {
args <- formals(x)
# Remove n_max argument
args <- args[names(args) != "n_max"]
# Change guess_max default to use chunk_size
args$guess_max[[3]] <- quote(chunk_size)
args <- append(args, alist(callback =, ... | 3,107 | gpl-2.0 |
98998ed3d3785c74bf590d19149e715eceabaf78 | tzoltak/EWDskalowanie | R/procedura_1k_1w.R | #' @title Procedury skalowania egzaminow.
#' @description
#' Procedura skalowania "jeden krok, jeden wymiar".
#' Funkcja przygotowuje opis bardzo prostej procedury skalowania (do użycia przez funkcję
#' \code{\link{skaluj}}), zawierającej tylko jeden krok, w ramach którego skalowany jest
#' jednowymiarowy konstrukt. Św... | 4,685 | mit |
46d3ef3b69e391a0ce636d9b016f7e8483e6f3d8 | frontalot/datasciencecoursera | corr.R | corr <- function(directory, threshold = 0) {
#set path by pasting directory
path = paste(directory,sep="",collapse="")
#get the list of files in path
filelist = list.files(path)
#add csv extension and store the values as numeric
filenames = as.numeric(sub("\\.csv$","",filelist))
nobsdataframe ... | 725 | gpl-3.0 |
613f55f9bce2fcb19c07148d7ee759d3a088141a | florianhartig/LaplacesDemon | R/Model.Spec.Time.R | ###########################################################################
# Model.Spec.Time #
# #
# The purpose of the Model.Spec.Time function is to return three things: #
# the amount... | 1,200 | mit |
613f55f9bce2fcb19c07148d7ee759d3a088141a | asgr/LaplacesDemon | R/Model.Spec.Time.R | ###########################################################################
# Model.Spec.Time #
# #
# The purpose of the Model.Spec.Time function is to return three things: #
# the amount... | 1,200 | mit |
f91e9380c3808192063a0fd9b1a6cc19f3163dc0 | lmweber/cytometry-clustering-comparison | plots_and_tables/plots_by_population.R | #########################################################################################
# R script to generate plots of additional results by population
#
# Lukas Weber, September 2016
#########################################################################################
library(pheatmap)
library(RColorBrewer)
... | 2,198 | mit |
613f55f9bce2fcb19c07148d7ee759d3a088141a | benmarwick/LaplacesDemon | R/Model.Spec.Time.R | ###########################################################################
# Model.Spec.Time #
# #
# The purpose of the Model.Spec.Time function is to return three things: #
# the amount... | 1,200 | mit |
425df4ad830deb9dc5ad3fd6eac1e112751b68e5 | NEONScience/NEON-Data-Skills | tutorials/R/R-skills/intro-to-time-series/06-Plotting-Facets-And-Group-By-Time-In-R/06-Plotting-Facets-And-Group-By-Time-In-R.R | ## ----load-data-------------------------------------------------------
# Remember it is good coding technique to add additional libraries to the top of
# your script
library(lubridate) # for working with dates
library(ggplot2) # for creating graphs
library(scales) # to access breaks/formatting functions
library(g... | 14,999 | agpl-3.0 |
613f55f9bce2fcb19c07148d7ee759d3a088141a | samedii/LaplacesDemon | R/Model.Spec.Time.R | ###########################################################################
# Model.Spec.Time #
# #
# The purpose of the Model.Spec.Time function is to return three things: #
# the amount... | 1,200 | mit |
4b6c4cd3fd3f0f3ffd2611b9e6e6452214ba49cd | rich-iannone/PuffR | R/get_grid_extents_UTM.R | #' Get either of the four grid extents in UTM values
#' @description This provides grid extents for a given side of a bounding box depending on how the grid is defined and given a width and height in meters.
#' @param side the requested side of the bounding box. Choices are 'left', 'right', 'bottom', or 'top'.
#' @par... | 2,977 | mit |
613f55f9bce2fcb19c07148d7ee759d3a088141a | asgr/LaplacesDemonCpp | R/Model.Spec.Time.R | ###########################################################################
# Model.Spec.Time #
# #
# The purpose of the Model.Spec.Time function is to return three things: #
# the amount... | 1,200 | mit |
dd02807068ce9683c3fd954f9b2e9ab2ec19e681 | dashaub/customScripts | R/caretModels/dnnSGD.R | dnnSGD <- list(label = "Deep Neural Network by Stochastic Gradient Descent",
library = c("FCNN4R", "plyr"),
loop = NULL,
type = c('Regression', "Classification"),
parameters = data.frame(parameter = c('layer1', 'layer2', 'layer3', 'l2reg', 'lambda'... | 7,501 | gpl-3.0 |
613f55f9bce2fcb19c07148d7ee759d3a088141a | lazycrazyowl/LaplacesDemonCpp | R/Model.Spec.Time.R | ###########################################################################
# Model.Spec.Time #
# #
# The purpose of the Model.Spec.Time function is to return three things: #
# the amount... | 1,200 | mit |
613f55f9bce2fcb19c07148d7ee759d3a088141a | jtrecenti/LaplacesDemon | R/Model.Spec.Time.R | ###########################################################################
# Model.Spec.Time #
# #
# The purpose of the Model.Spec.Time function is to return three things: #
# the amount... | 1,200 | mit |
8989f4600693beb16d58c1a4cb4a99d832d3f7db | neversakura/EE511_Fall2016 | ProjectFour/mixGaussian.R | # This is an example of using mvtnorm library to generate a Gaussian mixture distribution.
# More details about the API can be found at
# http://math.furman.edu/~dcs/courses/math47/R/library/mvtnorm/html/Mvnorm.html
#
# The Gaussian mixture distribution generated in this example consists two 2-D Gaussian
# distribution... | 942 | mit |
621e1a9942bbb8043ae499a947aa52e5c147be30 | unDocUMeantIt/koRpus | R/02_method_jumbleWords.R | # Copyright 2010-2021 Meik Michalke <meik.michalke@hhu.de>
#
# This file is part of the R package koRpus.
#
# koRpus is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at yo... | 4,357 | gpl-3.0 |
64bdc9a8037d322108b0721e4ce28bfe4828f55a | mensxmachina/MXM-R-Package | R/waldBinom.R | waldBinom = function(target, dataset, xIndex, csIndex, wei = NULL, univariateModels = NULL, hash = FALSE, stat_hash = NULL, pvalue_hash = NULL) {
#initialization
#if the test cannot performed succesfully these are the returned values
pvalue = log(1);
stat = 0;
csIndex[which(is.na(csIndex))] = 0;
if ( ... | 3,813 | gpl-2.0 |
b65405a5183ab02fdab4edd1f04d9845e5448843 | cran/wle | R/mme.gamma.R | #############################################################
# #
# mme.gamma function #
# Author: Claudio Agostinelli #
# E-mail: claudio@unive.it #
# Date: May 18, 2007 ... | 2,672 | gpl-2.0 |
4b716995f2c460a8f52bb0b5a75276a0ed58eb63 | shubhamchopra/spark | R/pkg/R/utils.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 the Apache License, Version 2.0
# (the "License"); you may not us... | 33,729 | apache-2.0 |
4b716995f2c460a8f52bb0b5a75276a0ed58eb63 | akopich/spark | R/pkg/R/utils.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 the Apache License, Version 2.0
# (the "License"); you may not us... | 33,729 | apache-2.0 |
4b716995f2c460a8f52bb0b5a75276a0ed58eb63 | 1haodian/spark | R/pkg/R/utils.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 the Apache License, Version 2.0
# (the "License"); you may not us... | 33,729 | apache-2.0 |
dbe8fb4a04140085c06693a2085947be27e4ee66 | h2oai/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
4b716995f2c460a8f52bb0b5a75276a0ed58eb63 | aray/spark | R/pkg/R/utils.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 the Apache License, Version 2.0
# (the "License"); you may not us... | 33,729 | apache-2.0 |
dbe8fb4a04140085c06693a2085947be27e4ee66 | mathemage/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
dbe8fb4a04140085c06693a2085947be27e4ee66 | h2oai/h2o-dev | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
dbe8fb4a04140085c06693a2085947be27e4ee66 | YzPaul3/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
dbe8fb4a04140085c06693a2085947be27e4ee66 | michalkurka/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
29e52a3d09722fa37c577f6a561d0156adde0682 | dcgerard/vicar | tests/testthat/test_rotate.R | library(vicar)
context("QR Rotation and RUV4")
test_that("rotated_model same as ols when no confounders", {
set.seed(68)
n <- 11
p <- 19
k <- 3
cov_of_interest <- 2
X <- matrix(stats::rnorm(n * k), nrow = n)
beta <- matrix(stats::rnorm(k * p), nrow = k)
beta[, 1:round(p/2)] <- 0
ctl... | 10,002 | gpl-3.0 |
a40dfc5543e1df48aef4ec49730a5929c5c1d76c | ecjbosu/fSEAL | PerformanceAnalytics/R/chart.Correlation.R |
#' correlation matrix chart
#'
#' Visualization of a Correlation Matrix. On top the (absolute) value of the
#' correlation plus the result of the cor.test as stars. On bottom, the
#' bivariate scatterplots, with a fitted line
#'
#'
#' @param R data for the x axis, can take matrix,vector, or timeseries
#'... | 3,741 | gpl-2.0 |
ced8db438669f7172130580bdb7fe843e733a687 | CenterForAssessment/Mississippi | Mississippi_bubblePlots_2012_2013.R | ###################################################################################
###
### Script to generate Mississippi bubblePlots for 2012-2013 data
###
###################################################################################
### Load SGP package
require(SGP)
require(data.table)
options(error=recover)... | 71,357 | lgpl-3.0 |
4b716995f2c460a8f52bb0b5a75276a0ed58eb63 | minixalpha/spark | R/pkg/R/utils.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 the Apache License, Version 2.0
# (the "License"); you may not us... | 33,729 | apache-2.0 |
71a79f45f4392e958ac09d1ad6bf1ec4f7c0adbf | christophergandrud/Keefer2007Replication | analysis/ComparativeSampleTable.R | ###########
# Replication file comparative sample table in 'When All is Said and Done'
# Christopher Gandrud
# 17 March 2015
###########
# Set data directory
DD <- '~/git_repositories/Keefer2007Replication/data/'
# Set table directory
TD <- '~/git_repositories/Keefer2007Replication/tables/'
# Load packages
library(f... | 3,171 | mit |
dbe8fb4a04140085c06693a2085947be27e4ee66 | spennihana/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
dbe8fb4a04140085c06693a2085947be27e4ee66 | jangorecki/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
dbe8fb4a04140085c06693a2085947be27e4ee66 | nilbody/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_pub-657.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
# library(h2o)
# library(testthat)
# conn = h2o.init()
test.pub.657 <- function() {
a_initial <- data.frame(v1=c(0,0,0,0), v2=c(1,1,1,1))
a <- a_initial
a.h2o <- as.h2o(a_initial, desti... | 1,037 | apache-2.0 |
58799e77c4e293db54fe00d6cd9b25d4aa675672 | aWhereAPI/aWhere-R-Library | R/checkStatusCodeOfReturn.R | #' @title Check Status Code of Return
#'
#' @description
#' \code{checkStatusCode} Checks to see if valid aWhere API credentials are loaded
#'
#' @param request object returned from HTTR
checkStatusCode<- function(request
,tryCount) {
#Pause thread if rate exceeded for random interval or... | 1,533 | mit |
c77aa69028518485bbf386a9132dbb363c30d963 | yuanyangwu/note-on-visualize-this | ch06-tv-sizes/book.R | # Load data
tvs <- read.table('http://datasets.flowingdata.com/tv_sizes.txt',
sep="\t", header=TRUE)
# Filter outliers
tvs <- tvs[tvs$size < 80, ]
tvs <- tvs[tvs$size > 10, ]
# Set breaks for histograms
breaks = seq(10, 80, by=5)
# Set the layout
par(mfrow=c(4,1))
# Draw histograms, one by one
hist(tvs[tvs$year =... | 497 | mit |
b3b7a7c7bab3114b02dec916984323e9e942a01a | jeklen/notes | BA/Homework/HW03/8survival.R | setwd("D:/BA/Homework/HW03")
library(survival)
library(OIsurv)
#head(hmohiv)
#hmohiv$SurvObj <- with(hmohiv, Surv(time, status == 1))
hmohiv <- read.csv("Hmohiv.csv")
attach(hmohiv)
my.surv<-Surv(time, status)
#这里是right censored数据,所以type='right'。
#delta取值为1代表事件发生(例如死亡),取值为0则代表右截值。
my.fit<-survfit(my.surv~1) #Kaplan... | 793 | mit |
2936e6b3a3ceab6c1429825350465c588ee2d545 | ChopperCodes/SQLiter-hockeyDb | tables.R | require(RSQLite);
tables<-
function(table.names, sqlite.file){
table.names<-
c(table.names)
db<-
dbConnect(SQLite(), sqlite.file);
for (tb in table.names){
# a little friendlier on the database than using dfnTables since it is only connects and closses once
txt<-
... | 484 | apache-2.0 |
a6b1e252c4d093e41fb0ed453384fb3bb40c4e29 | kbroman/Paper_FunQTL | R/forsim.R | gen.data3 <- function(sample.size, cov.fcn, beta.coef,er, gitterr = 0){
##popu.size <- 10000 # population size
## simulate genotypes
mp <- sim.map(100, n.mar=6, include.x=F, eq.spacing=T) # simulate map
md <- c(1,32,0,0) # one QTL at 32cM on chrom. 1
samples <- sim.cross(map=mp, ... | 7,887 | mit |
db2da967996f7b5535db2121c0a5fc418ddcb533 | Imamachi-n/NGS-Tutorial | BRIC-seq_Tutorial/BridgeR_analysis_lncRNA.R |
library(bridger2)
library(data.table)
dirname_lncRNA <- commandArgs(trailingOnly=TRUE)[1]
dirname_mRNA <- commandArgs(trailingOnly=TRUE)[2]
inputFile <- strsplit(commandArgs(trailingOnly=TRUE)[3], ',')[[1]]
group <- c("siCTRL", "siSTAU1") # Required
hour <- c(0, 1, 2, 4, 8, 12) # Required
input_matrix <- NULL... | 2,981 | mit |
853215a82ec463f085256540a061cb72bcdcb5ed | kmillar/cxxr | src/extra/testr/filtered-test-suite/setS4Object/tc_setS4Object_5.R | expected <- eval(parse(text="structure(c(\"nonStructure\", \"ANY\", \"ANY\", \"ANY\"), .Names = c(NA_character_, NA_character_, NA_character_, NA_character_), package = character(0), class = structure(\"signature\", package = \"methods\"))"));
test(id=0, code={
argv <- eval(parse(text="list(structure(c(\"nonS... | 619 | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.