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
bcb9e4579d9610cbac763c3f0f94654a9b35f36d
lajus/customr
src/library/graphics/R/stars.R
# File src/library/graphics/R/stars.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-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 Free Software Foundation; either...
7,829
gpl-2.0
bcb9e4579d9610cbac763c3f0f94654a9b35f36d
cxxr-devel/cxxr-svn-mirror
src/library/graphics/R/stars.R
# File src/library/graphics/R/stars.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-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 Free Software Foundation; either...
7,829
gpl-2.0
bcb9e4579d9610cbac763c3f0f94654a9b35f36d
limeng12/r-source
src/library/graphics/R/stars.R
# File src/library/graphics/R/stars.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-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 Free Software Foundation; either...
7,829
gpl-2.0
bcb9e4579d9610cbac763c3f0f94654a9b35f36d
kalibera/rexp
src/library/graphics/R/stars.R
# File src/library/graphics/R/stars.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-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 Free Software Foundation; either...
7,829
gpl-2.0
bcb9e4579d9610cbac763c3f0f94654a9b35f36d
jeffreyhorner/R-Array-Hash
src/library/graphics/R/stars.R
# File src/library/graphics/R/stars.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-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 Free Software Foundation; either...
7,829
gpl-2.0
bcb9e4579d9610cbac763c3f0f94654a9b35f36d
ChiWang/r-source
src/library/graphics/R/stars.R
# File src/library/graphics/R/stars.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-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 Free Software Foundation; either...
7,829
gpl-2.0
8a1604907f9dfc11a9cb72dc4c6a92026fb0c9db
ArunChauhan/cxxr
src/extra/testr/filtered-test-suite/isenvironment/tc_isenvironment_6.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(y = structure(c(8.79236, 8.79137, 8.81486, 8.81301, 8.90751, 8.93673, 8.96161, 8.96044, 9.00868, 9.03049, 9.06906, 9.05871, 9.10698, 9.12685, 9.17096, 9.18665, 9.23823, 9.26487, 9.28436, 9.31378, 9....
2,702
gpl-2.0
8a1604907f9dfc11a9cb72dc4c6a92026fb0c9db
krlmlr/cxxr
src/extra/testr/filtered-test-suite/isenvironment/tc_isenvironment_6.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(y = structure(c(8.79236, 8.79137, 8.81486, 8.81301, 8.90751, 8.93673, 8.96161, 8.96044, 9.00868, 9.03049, 9.06906, 9.05871, 9.10698, 9.12685, 9.17096, 9.18665, 9.23823, 9.26487, 9.28436, 9.31378, 9....
2,702
gpl-2.0
8a1604907f9dfc11a9cb72dc4c6a92026fb0c9db
kmillar/rho
src/extra/testr/filtered-test-suite/isenvironment/tc_isenvironment_6.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(y = structure(c(8.79236, 8.79137, 8.81486, 8.81301, 8.90751, 8.93673, 8.96161, 8.96044, 9.00868, 9.03049, 9.06906, 9.05871, 9.10698, 9.12685, 9.17096, 9.18665, 9.23823, 9.26487, 9.28436, 9.31378, 9....
2,702
gpl-2.0
8a1604907f9dfc11a9cb72dc4c6a92026fb0c9db
cxxr-devel/cxxr
src/extra/testr/filtered-test-suite/isenvironment/tc_isenvironment_6.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(y = structure(c(8.79236, 8.79137, 8.81486, 8.81301, 8.90751, 8.93673, 8.96161, 8.96044, 9.00868, 9.03049, 9.06906, 9.05871, 9.10698, 9.12685, 9.17096, 9.18665, 9.23823, 9.26487, 9.28436, 9.31378, 9....
2,702
gpl-2.0
e19e55f3b9b3cd00367eefefc0dfd8d13554805a
meisamhe/GPLshared
Research_Projects_UTD/Data_Science/Cap_o.R
#' ![](http://www.flyreagan.com/sites/default/files/c_one_core_ng_rgb_r.png) #----------------------------------------------------- # c One Challange # Meisam Hejazi Nia # 07/24/2016 #----------------------------------------------------- #' --- #' title: "c One Data Science Challange" #' output: #' html_document: ...
22,059
gpl-3.0
8a1604907f9dfc11a9cb72dc4c6a92026fb0c9db
rho-devel/rho
src/extra/testr/filtered-test-suite/isenvironment/tc_isenvironment_6.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(y = structure(c(8.79236, 8.79137, 8.81486, 8.81301, 8.90751, 8.93673, 8.96161, 8.96044, 9.00868, 9.03049, 9.06906, 9.05871, 9.10698, 9.12685, 9.17096, 9.18665, 9.23823, 9.26487, 9.28436, 9.31378, 9....
2,702
gpl-2.0
8a1604907f9dfc11a9cb72dc4c6a92026fb0c9db
kmillar/cxxr
src/extra/testr/filtered-test-suite/isenvironment/tc_isenvironment_6.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(y = structure(c(8.79236, 8.79137, 8.81486, 8.81301, 8.90751, 8.93673, 8.96161, 8.96044, 9.00868, 9.03049, 9.06906, 9.05871, 9.10698, 9.12685, 9.17096, 9.18665, 9.23823, 9.26487, 9.28436, 9.31378, 9....
2,702
gpl-2.0
4b6577e9be66764dd60570f030a020fe05e7a840
msberends/certedata
R/database.R
# ==================================================================== # # TITLE # # Tools for Data Analysis at Certe # # # # AUTHORS ...
69,461
gpl-2.0
76c375434a5a1761ac2bc7e6b0801aa79df602fe
oswaldosantos/EpiDynamics
R/SIS.R
#' Simple SIS model (P 2.5). #' @description Solves a simple SIS model without births or deaths. #' @param pars \code{\link{vector}} with 2 values: the transmission and recovery rates. The names of these values must be "beta", and "gamma", respectively. #' @param init \code{\link{vector}} with 2 values: the initial pro...
2,748
gpl-3.0
3004604f3b6f0f0e90577b06f2f599dfe15e32df
earlbellinger/asteroseismology
scripts/seismology.R
#### Seismological calculations for stellar observations and models #### Author: Earl Patrick Bellinger ( bellinger@phys.au.dk ) #### Stellar Astrophysics Centre Aarhus source(file.path(dirname(sys.frame(1)$ofile), 'utils.R')) invisible(library(matrixStats)) invisible(library(magicaxis)) invisible(library(RColorBre...
29,310
gpl-2.0
76c375434a5a1761ac2bc7e6b0801aa79df602fe
Komondi/EpiDynamics
R/SIS.R
#' Simple SIS model (P 2.5). #' @description Solves a simple SIS model without births or deaths. #' @param pars \code{\link{vector}} with 2 values: the transmission and recovery rates. The names of these values must be "beta", and "gamma", respectively. #' @param init \code{\link{vector}} with 2 values: the initial pro...
2,748
gpl-3.0
f24ed0df3b377b8dbe253c7556efb48a0fe1d350
ebigelow/LOTlib
LOTlib/Performance/Chains/plot.R
# Plots the evaluation for *evaluate-temperatures.py* only (otherwise the column numbers need to be changed, and the path) library(ggplot2) library(stringr) library(gridExtra) # needed for "unit" d <- NULL for(f in list.files("output", pattern="agg*", full.names=TRUE)) { d <- rbind(d, read.table(f)) } names(d...
664
gpl-3.0
f24ed0df3b377b8dbe253c7556efb48a0fe1d350
piantado/LOTlib
LOTlib/Performance/Chains/plot.R
# Plots the evaluation for *evaluate-temperatures.py* only (otherwise the column numbers need to be changed, and the path) library(ggplot2) library(stringr) library(gridExtra) # needed for "unit" d <- NULL for(f in list.files("output", pattern="agg*", full.names=TRUE)) { d <- rbind(d, read.table(f)) } names(d...
664
gpl-3.0
f24ed0df3b377b8dbe253c7556efb48a0fe1d350
joshrule/LOTlib
LOTlib/Performance/Chains/plot.R
# Plots the evaluation for *evaluate-temperatures.py* only (otherwise the column numbers need to be changed, and the path) library(ggplot2) library(stringr) library(gridExtra) # needed for "unit" d <- NULL for(f in list.files("output", pattern="agg*", full.names=TRUE)) { d <- rbind(d, read.table(f)) } names(d...
664
gpl-3.0
4ef84c6c9d29b344aa64349b6c877001e4463c44
citiususc/voila
R/sde_prediction.R
#' @method plot sde_prediction #' @export plot.sde_prediction = function(x, includeConf = TRUE, col = 1, type = "l", ylim = NULL, ...) { plot_sde_prediction('plot', x, includeConf, col, type, ylim, ...) } #' @export lines.sde_prediction = function(x, includeConf = TRUE, col = 1, ...
1,880
gpl-3.0
f6c4e389339ff1cb613af7d60e824be6291bdc08
wyguo/TSIS
TSIS_app/app.R
# require(tools) library(shiny) # require(shinyFiles) library(shinythemes) library(plotly) ###################################################################################################### ##TSIS sourceDir <- function(path, trace = TRUE, ...) { for (nm in list.files(path, pattern = '*.R')) { #if(trace) cat(n...
38,791
gpl-3.0
ff6b15b4910fbab9d42378f7885039cc93d54844
jarioksa/analogue
R/performance.bootstrap.wa.R
`performance.bootstrap.wa` <- function(object, ...) { performance.predict.wa(object) }
91
gpl-2.0
ff6b15b4910fbab9d42378f7885039cc93d54844
gavinsimpson/analogue
R/performance.bootstrap.wa.R
`performance.bootstrap.wa` <- function(object, ...) { performance.predict.wa(object) }
91
gpl-2.0
80901f5a271ed8641d5cf2884724352172c631f7
markrbower/template
Analysis/R/NOGB/persistLargestGroup.R
persistLargestGroup <- function( db, grph, tempdf, tdfx, persist_table, update ) { source('~/Dropbox/Documents/Concepts/2018_07_26_NoiseOutlierGraphBased/Analysis/R/NOGB/checkingDatabaseUpdate.R') counts <- table( tempdf[,'clusterid'] ) idx <- which( counts==max(counts) ) target <- names( counts[idx[1]] ) ...
760
gpl-2.0
203da0fe96e4d99539e628ff9c86a0fb398442cd
SimonSchafferer/CLIHelperPackage
additional_notPackaged/splitted/CmdGenResultExec.R
#--split CmdGenResultExec #'@title CmdGenResultExec #'@section Slots: #' \describe{ #' \item{\code{slot1}:}{cmdGenResult \code{"CmdGenResult"}} #' \item{\code{slot2}:}{execLog \code{"execLog"}} #' } #' @name CmdGenResultExec-class #' @export setClass( "CmdGenResultExec", representation(cmdGenResult="CmdGenRes...
1,615
mit
ebd113923771dd2fe442d618d782b2f9528621af
johndharrison/webpagetestr
man-roxygen/disableScreenshot.R
#' @param disableScreenshot disable screen shot capturing
58
mit
2d187d1f763c2de9e8b6a05ca61bc8714c0b4d52
jchou8/centertable-final-project
scripts/ExpenditureBarChart.R
library(plotly) library(dplyr) library(shiny) TotalBarChart <- function(data, energy.type, year) { # the input energy choices names <- c("Total Energy", "Asphalt and road oil", "Aviation gasoline", "Coal", "Distillate fuel", "Fuel ethanol", "Electricity",...
3,663
mit
be76546e9587d56a6e9e0db649106ded2eee979a
jpritikin/OpenMx
R/MxRObjective.R
# # Copyright 2007-2019 by the individuals mentioned in the source code history # # 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/LICENSE-2.0 ...
1,204
apache-2.0
bd708d24b2731c6ad680e0db009510c6889185c1
vikasgupta1812/RRegrs
Rscripts/s8.1.GLM.R
# ========================================== # GLM stepwise - based on AIC (caret) # Generalized Linear Model with Stepwise Feature Selection # ========================================== # contact: Cristian R Munteanu | BiGCaT - UM | muntisa@gmail.com # # inputs: # - my.datf, my.datf.train,my.datf.test = full, train an...
1,666
bsd-2-clause
60aedcd6b0bf64f07c873f2c0fb6ae0251d526eb
dbmi-pitt/DIKB-Micropublication
scripts/benchmarkQueries/createBenchMarkDiagram.R
R version 3.2.1 (2015-06-18) -- "World-Famous Astronaut" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distr...
4,656
apache-2.0
a6006584f63f0de93f7cf24e045eb5290e874db8
halfak/Measuring-the-impact-of-GettingStarted
R/funnels/timeseries.props.R
source("loader/new_user_day_edits.R") source("loader/new_user_impressions.R") day_edits = load_new_user_day_edits(reload=T) impressions = load_new_user_impressions(reload=T) merged_users = merge( day_edits, impressions, by=c("wiki_db", "user_id") ) merged_users$registration_day = with( merged_users, as.Date( ...
6,410
mit
f831a70056f4e74b162f1c9ffccfa78c68bb3063
jroberayalas/ahnr
R/ahn_main.R
#' fit #' #' @description Function to train an Artificial Hydrocarbon Network (AHN). #' #' @param Sigma a list with two data frames. One for the inputs X, and one for the outputs Y. #' @param n number of particles to use. #' @param eta learning rate of the algorithm. Default is \code{0.01}. #' @param maxIter maximum nu...
11,249
gpl-3.0
2f905aaa33e4dba566d260511c652d692c24507a
jeffreyhorner/R-Array-Hash
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
2f905aaa33e4dba566d260511c652d692c24507a
kalibera/rexp
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
2f905aaa33e4dba566d260511c652d692c24507a
cmosetick/RRO
R-src/src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
dea47074c592ba510d25020a51b190c72d653bcc
lehoangha/GSOE9712_S115_RA
R_test.R
library(XLConnect)
20
apache-2.0
2f905aaa33e4dba566d260511c652d692c24507a
jeffreyhorner/R-Judy-Arrays
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
2f905aaa33e4dba566d260511c652d692c24507a
o-/Rexperiments
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
32b76ca53b95bcf936f2a6b3aa0e6b996a134fb4
nicebread/shinyApps
SBF1/ui.R
library(shiny) shinyUI(fluidPage(theme = "bootstrap.css", #------------------------------------------------------------------------------------------ # Add "busy" indicator tagList( tags$head( # These are needed to automatically display the "busy indicator" tags$link(rel="stylesheet", type="text/css", href...
2,927
gpl-2.0
2f905aaa33e4dba566d260511c652d692c24507a
hxfeng/R-3.1.2
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
2f905aaa33e4dba566d260511c652d692c24507a
mirror/r
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
2f905aaa33e4dba566d260511c652d692c24507a
skyguy94/R
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
058593f4060f8e0da264035d9869aa0e777db321
teasdalm/rPCA
R/read_evec.R
#' read_evec #' #'R function draw a PCA from an evec dataframe #' #'@param x evec file #'@export #'@import ggplot2 #'@import tidyr #'@examples #'draw_pca() read_evec <- function(x){ dat <- read.table(x, stringsAsFactors = FALSE) dat <- separate(dat, V1, c("pop", "ind"), sep=":") names(dat) <- c("pop", ...
487
gpl-3.0
2f905aaa33e4dba566d260511c652d692c24507a
patperry/r-source
src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
2f905aaa33e4dba566d260511c652d692c24507a
jagdeesh109/RRO
R-src/src/library/stats/R/factanal.R
# File src/library/stats/R/factanal.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2013 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 Free Software Foundation; either...
12,140
gpl-2.0
4488a8eaf1e63bdc4023ce646f9739b325268c7f
LanceAtKS/LC
Common/graphs.R
library(dygraphs) source("Common/load_data.R") # dygraphs application # oneSeriesPlot <- function(dataInput, shinyInput){ dygraph(dataInput, main = "plot") %>% dyLegend(show = "auto", labelsSeparateLines = TRUE) %>% dyAxis("x", drawGrid = FALSE) %>% dyRangeSelector(height = 20) } ##################...
928
mit
6c8678f1527a1903f4500947ec4fe6773407d405
fboehm/xu2012
R/sample_binary.R
#' Draw a binary matrix #' #' @param beta a beta matrix #' @param G a graph matrix #' @param tmax number of vectors to draw #' @export sample_binary <- function(beta, G, tmax = 300){ imax <- 3 n_vecs <- 2 ^ imax ints <- 0:(n_vecs - 1) bins <- int_to_bin(ints) probs_unnorm <- apply(FUN = calc_prob_binary_unnor...
1,473
mit
143a1125fcc26d9f19b7455b87237f744b585842
jotsetung/xcmsExtensions
inst/unitTests/test_MSdata.R
####============================================================ ## Testing MSdata ## ####------------------------------------------------------------ detach("package:xcmsExtensions", unload=TRUE) library(xcmsExtensions) library(faahKO) library(RUnit) xset <- faahko suppressWarnings( xraw <- getXcmsRaw(xset, 1) ) ...
18,220
mit
48aa42434ea85cd14a505e3b6c1957d89ee2a117
philallen117/ds-capstone
profanity.R
# profanity.R if(!exists("profanities")) { profanities <- readLines("data/profanities.txt", encoding = "UTF-8", warn=FALSE, skipNul=TRUE) }
142
gpl-3.0
330d6bbefd9db0cbafef4756bd3b63765301cd1a
ombt/ombt
rsrc/books/r_in_action/ch4.7.R
# is.numeric() as.numeric() # is.character() as.character() # is.vector() as.vector() # is.matrix() as.matrix() # is.data.frame() as.data.frame() # is.factor() as.factor() # is.logical() as.logical() a <- c(1,2,3) a is.numeric(a) is.vector(a) a <- as.character(a) a is.numeric(a) is.vector(a) is.character(a)
311
mit
330d6bbefd9db0cbafef4756bd3b63765301cd1a
ombt/analytics
books/r_in_action/ch4.7.R
# is.numeric() as.numeric() # is.character() as.character() # is.vector() as.vector() # is.matrix() as.matrix() # is.data.frame() as.data.frame() # is.factor() as.factor() # is.logical() as.logical() a <- c(1,2,3) a is.numeric(a) is.vector(a) a <- as.character(a) a is.numeric(a) is.vector(a) is.character(a)
311
mit
dbff35faefb9de9cbc463ba7386d12f0aef86dc5
rlowrance/th
Table7Metrics3.R
Table7Metrics3 <- function(lines) { # return function object $Header() $Panel() $Detail() $Get(), for 3 metrics header.format <- '%15s %8s %8s %8s %8s %8s %8s' data.format <- '%15s %8.0f %8.0f %8.3f %8.0f %8.0f %8.3f' data.format.large.value1 <- '%15s %8.0g %8.0f %8.3f %8.0f %8.0f %8.3f' panel.f...
1,583
gpl-3.0
168ecc8a68a6ba0ff10138de593360cb984efb50
jeremyrcoyle/sl3
R/loss_functions.R
utils::globalVariables(c("id", "loss", "obs", "pred", "wts")) #' Loss Function Definitions #' #' Loss functions for use in evaluating learner fits. #' #' @param pred A vector of predicted values #' @param observed A vector of observed values #' #' @return A vector of loss values #' #' @name loss_functions # SQUARED E...
8,767
gpl-3.0
b077945cc349d6f5117ac93f8962c31e54d09d40
DannyArends/CTLmapping
Rctl/R/ctl.statistics.R
# # ctl.statistics.R # # copyright (c) 2010-2012 - GBIC, Danny Arends, Bruno Tesson and Ritsert C. Jansen # last modified Apr, 2016 # first written Nov, 2011 # # R functions to do transform CTL mapping scores to Pvalues and LOD and collect significant results per region # CTLregions <- function(CTLobject, mapinfo, ph...
4,821
gpl-3.0
168ecc8a68a6ba0ff10138de593360cb984efb50
tlverse/sl3
R/loss_functions.R
utils::globalVariables(c("id", "loss", "obs", "pred", "wts")) #' Loss Function Definitions #' #' Loss functions for use in evaluating learner fits. #' #' @param pred A vector of predicted values #' @param observed A vector of observed values #' #' @return A vector of loss values #' #' @name loss_functions # SQUARED E...
8,767
gpl-3.0
1c3d646368edf8c27a81ade9d8fe173b1498018c
wStockhausen/rCompTCMs
R/compareResults.Fisheries.Catchability.R
#' #'@title Function to plot fishery catchabilities by year using ggplot2 #' #'@description This function plots fishery catchability estimates by year, #' sex and maturity state. #' #' @param objs - list of resLst objects #' @param fleets - vector of fisheries to plot, or "all" #' @param years - vector of years to sh...
3,637
mit
f358acc179c5387da7c30bbb33d1c113ac060173
andrewdefries/andrewdefries.github.io
FDA_Pesticide_Glossary/IBP.R
library("knitr") library("rgl") #knit("IBP.Rmd") #markdownToHTML('IBP.md', 'IBP.html', options=c("use_xhml")) #system("pandoc -s IBP.html -o IBP.pdf") knit2html('IBP.Rmd')
174
mit
df3085616429e1d08f23182d4365a4f16afc4e5a
NLMichaud/nimble
packages/nimble/inst/classic-bugs/vol1/lsat/test2.R
source("../../R/Rcheck.R") load.module("glm") d <- read.jagsdata("lsat-data.R") inits <- read.jagsdata("lsat2-init.R") m <- jags.model("lsat2.bug", d, inits, n.chains=2, n.adapt=500) update(m, 500) x <- coda.samples(m, c("delta","eta"), thin=10, n.iter=10000) source("bench-test2.R") check.fun()
296
bsd-3-clause
df3085616429e1d08f23182d4365a4f16afc4e5a
nimble-dev/nimble
packages/nimble/inst/classic-bugs/vol1/lsat/test2.R
source("../../R/Rcheck.R") load.module("glm") d <- read.jagsdata("lsat-data.R") inits <- read.jagsdata("lsat2-init.R") m <- jags.model("lsat2.bug", d, inits, n.chains=2, n.adapt=500) update(m, 500) x <- coda.samples(m, c("delta","eta"), thin=10, n.iter=10000) source("bench-test2.R") check.fun()
296
bsd-3-clause
df3085616429e1d08f23182d4365a4f16afc4e5a
nxdao2000/nimble
packages/nimble/inst/classic-bugs/vol1/lsat/test2.R
source("../../R/Rcheck.R") load.module("glm") d <- read.jagsdata("lsat-data.R") inits <- read.jagsdata("lsat2-init.R") m <- jags.model("lsat2.bug", d, inits, n.chains=2, n.adapt=500) update(m, 500) x <- coda.samples(m, c("delta","eta"), thin=10, n.iter=10000) source("bench-test2.R") check.fun()
296
bsd-3-clause
028e382ca24a529b33f530c1ef291136e6d30d1a
cmosetick/RRO
R-src/src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
skyguy94/R
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
o-/Rexperiments
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
hxfeng/R-3.1.2
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
LeifAndersen/R
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
ArcherCraftStore/ArcherVMPeridot
R-3.1.0/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
apache-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
ArcherSys/ArcherSys
R/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
mit
cdd3aa6fe95c3ed8535febf1afcedfc7b5d50e7f
pchmieli/h2o-3
h2o-r/tests/runitUtils/gridR.R
# Validate given models' parameters against expected values expect_model_param <- function(models, attribute_name, expected_values) { params <- unique(lapply(models, function(model) { model@allparameters[[attribute_name]] } )) expect_equal(length(params), length(expected_values)) Log.info(paste0("params: ", paste...
4,158
apache-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
mirror/r
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
patperry/r-source
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
ChiWang/r-source
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
kalibera/rexp
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
jeffreyhorner/R-Array-Hash
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
hadley/r-source
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
limeng12/r-source
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
WelkinGuan/r-source
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
jagdeesh109/RRO
R-src/src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
028e382ca24a529b33f530c1ef291136e6d30d1a
jeffreyhorner/R-Judy-Arrays
src/library/methods/tests/basicRefClass.R
## simple call, only field names fg <- setRefClass("foo", c("bar", "flag")) f0 <- new("foo") # deprecated, but should still work f1 <- fg(flag = "testing") f1$bar <- 1 stopifnot(identical(f1$bar, 1)) ## add method fg$methods(showAll = function() c(bar, flag)) stopifnot(all.equal(f1$showAll(), c(1, "testing"))) str(f1)...
18,075
gpl-2.0
3f94ed77b3a6d936d1c936abf4eeb0d7eb2aee0c
jpgroup/democode
plot/trophic.R
data1 <- read.csv('data/cn.csv') data2 <- read.csv('data/trophic.csv') png('data1.png',width = 8, height = 8, units = 'in', res = 300) par(mar = c(5,5,4,2)) plot(data1$N~data1$C, xlim = c(-40,-10),ylim = c(-2,16), pch = as.numeric(data1$Cat), col = c(1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8...
1,834
mit
3f94ed77b3a6d936d1c936abf4eeb0d7eb2aee0c
yufree/democode
plot/trophic.R
data1 <- read.csv('data/cn.csv') data2 <- read.csv('data/trophic.csv') png('data1.png',width = 8, height = 8, units = 'in', res = 300) par(mar = c(5,5,4,2)) plot(data1$N~data1$C, xlim = c(-40,-10),ylim = c(-2,16), pch = as.numeric(data1$Cat), col = c(1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8...
1,834
mit
5a46343d5a79eecdd58dd604a5f4484eee5d9b28
mjones01/NEON-Data-Skills
code/R/pheno-cam/detecting-foggy-phenocam-images.R
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----required-libraries-------------------------------------------------- # load packages library(hazer) library(jpeg) library(data.table) ## ----read-image, fig.show='hold', fi...
6,021
agpl-3.0
7ebcc794c74eb8be0497baf6625cd45d8368bc6a
rstudio/flights2
R/flights2.R
#' Flights data #' #' On-time data for all flights that departed NYC (i.e. JFK, LGA or EWR) in #' 2013. #' #' @source RITA, Bureau of transportation statistics, #' \url{http://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236} #' @format Data frame with columns #' \describe{ #' \item{scheduled}{Scheduled departur...
1,232
cc0-1.0
08b94ecd7903358ef57ccf01d9c40a402f63bda9
mnr/five-minutes-of-R
0x_174_matrixPackage_sparseMatrix.R
# matrix package # understanding sparse matrices library(Matrix) # an alternative to Matrix(x, sparse = TRUE) # setup a matrix matrixRows <- 10 # just a tiny example matrixCols <- 10 # These are the only values in the matrix # The value are in pairs. row/column # so points at 3/5 and 6/2 valueInRow <- c(3, 6) value...
857
gpl-3.0
ee75907bbee7309ef4c87c4263c8846769c1e2f5
mizumot/rel
ui.R
library(shiny) library(shinyAce) shinyUI(bootstrapPage( headerPanel("Cronbach's Coefficient Alpha"), mainPanel( tabsetPanel( tabPanel("Main", strong('Option:'), checkboxInput("colname", label = strong("The input data includes variable names (header)."), value = T)...
4,680
unlicense
7da066ebd2afc2b2e00e18a397593cb6797fda29
NovaInstitute/Rpackages
novaAI/R/refact.R
#' Refactor #' #' Function drops unneeded factor levels #' #' @param x Object to have its levels dropped #' @export refact=function(x){ factor(as.character(x)) } #' Refactor Data Frame #' #' Function drops unneeded factor levels of a data frame #' #' @param x Object to have its levlels dropped #' @ex...
404
mit
1c9423faa2060f6fe974a2c936184f89bad850aa
liupfskygre/igraph
nexus/download/bkfrat.R
url <- "http://vlado.fmf.uni-lj.si/pub/networks/data/ucinet/bkfrat.dat" tmp <- tempdir() dest <- paste(sep="", tmp, "/", "bkfrat.dat") download.file(url, dest) l <- readLines(paste(sep="", tmp, "/bkfrat.dat")) data <- l[ (grep("^DATA:", l)+1):length(l) ] tc <- textConnection(data) mat <- scan(tc) close(tc) mat1 <- ...
1,372
gpl-2.0
1c9423faa2060f6fe974a2c936184f89bad850aa
smowton/igraph
nexus/download/bkfrat.R
url <- "http://vlado.fmf.uni-lj.si/pub/networks/data/ucinet/bkfrat.dat" tmp <- tempdir() dest <- paste(sep="", tmp, "/", "bkfrat.dat") download.file(url, dest) l <- readLines(paste(sep="", tmp, "/bkfrat.dat")) data <- l[ (grep("^DATA:", l)+1):length(l) ] tc <- textConnection(data) mat <- scan(tc) close(tc) mat1 <- ...
1,372
gpl-2.0
6cc4508804defd9ccf58d9613e7f684f43511bab
ilarischeinin/moves
shares/server.R
library(ggplot2) library(RColorBrewer) shares <- readRDS("shares.rds") cols <- c(walking=brewer.pal(9, 'Paired')[4], cycling=brewer.pal(9, 'Paired')[3], tram=brewer.pal(9, 'Oranges')[3], underground=brewer.pal(9, 'Oranges')[4], train=brewer.pal(9, 'Oranges')[5], bus=brewer.pal(9, 'Paired')[5], car=brewer....
2,122
mit
3816239f42d396a2d8bb924f8b85dc17baa2497d
nicebread/shinyApps
Pick_a_prior/ui.R
library(shiny) # Define UI for Bayesfactor shinyUI(pageWithSidebar( # Application title headerPanel("Pick-a-prior"), sidebarPanel( sliderInput("RANGE", "Range:", min = -100, max = 100, value = c(-3, 3), step=1), sliderInput("MEAN", "Mean:", min = -2, max = 2, value = 0, step=0.1), sliderInput("SD", "SD:", m...
808
gpl-2.0
1c9423faa2060f6fe974a2c936184f89bad850aa
feeds/igraph
nexus/download/bkfrat.R
url <- "http://vlado.fmf.uni-lj.si/pub/networks/data/ucinet/bkfrat.dat" tmp <- tempdir() dest <- paste(sep="", tmp, "/", "bkfrat.dat") download.file(url, dest) l <- readLines(paste(sep="", tmp, "/bkfrat.dat")) data <- l[ (grep("^DATA:", l)+1):length(l) ] tc <- textConnection(data) mat <- scan(tc) close(tc) mat1 <- ...
1,372
gpl-2.0
85751203c40fc9e24488b33a1c4d233ee99ca277
uzh/ezRun
R/app-BamPreview.R
################################################################### # Functional Genomics Center Zurich # This code is distributed under the terms of the GNU General # Public License Version 3, June 2007. # The terms are available here: http://www.gnu.org/licenses/gpl.html # www.fgcz.ch ezMethodBamPreview = function(...
4,407
gpl-3.0
80939cd94acc88e0593ebc04d10db5d540faccf8
barelas/vastats
mapping.R
# questions/answers mapping: full_answers_orash = list( 'Προέλευση' = list('1' = 'Πάτρα', '2' = 'Βόλος', '3' = 'Λίστα orasi', '4' = 'Ναύπλιο', '5' = 'Πάτρα', '6' = 'ΚΑΠΗ Αγιάς', '7' = 'ΚΑΠΗ Ψά...
38,015
gpl-3.0
098dda6fcbda4576272ffcd7ecc911e5569f71aa
mgavin/acm-code
hackerrank/code/RTemplate.R
readInput <- function() { } main <- function() { readInput() # while (not.done) { # Do the problem process() # CLEAR GLOBALS? clearGlobals() # } } main()
182
lgpl-3.0
fc4f692a74003211180aaf9a9741ad8819f1b90f
erikjsolsen/AtlantisNEUS_R
NOBA/fisheries harbours.R
### NOBA Atlantis FISHERIES HARBOURS # analysis of Norwegian fisheries harbours # By: Erik Olsen # Created: 4.11.2014 # Updated: 5.12.2014 library(lattice) #load lattice library library(RColorBrewer) library(plyr) library(ggplot2) library("sp", lib.loc="/Users/eriko/Library/R/3.0/library") library("geosphere", lib.lo...
4,438
mit
3d16c70c0227856ab694cce3e28a4ff84d8b7ade
shnizzedy/LENA_analysis
CPP/ControlledPlayANCOVA.R
library("sqldf") library("tidyr") setwd("/Volumes/data/Research/CDB/Progress Monitoring:LENA/Controlled Play Paradigm/LENA Outputs") ancovadata <- read.csv("/Volumes/data/Research/CDB/Progress Monitoring:LENA/Controlled Play Paradigm/LENA Outputs/ANCOVAdata.csv") ###Total Interference Raw Score### vINT <- aov(Vocal...
857
apache-2.0
25e0cec6b2104fcf05e9f371cef9473c61ec5a6b
dmbates/JuliaWorkshop
tmp/rats_4.data.R
"T" <- 5 "N" <- 30 "x" <- structure(c(8.0, 15.0, 22.0, 29.0, 36.0), .Dim=c(5)) "xbar" <- 22.0 "y" <- structure(c(151.0, 145.0, 147.0, 155.0, 135.0, 159.0, 141.0, 159.0, 177.0, 134.0, 160.0, 143.0, 154.0, 171.0, 163.0, 160.0, 142.0, 156.0, 157.0, 152.0, 154.0, 139.0, 146.0, 157.0, 132.0, 160.0, 169.0, 157.0, 137.0, 153....
1,178
mit
25e0cec6b2104fcf05e9f371cef9473c61ec5a6b
dmbates/JuliaWorkshop
tmp/rats_2.data.R
"T" <- 5 "N" <- 30 "x" <- structure(c(8.0, 15.0, 22.0, 29.0, 36.0), .Dim=c(5)) "xbar" <- 22.0 "y" <- structure(c(151.0, 145.0, 147.0, 155.0, 135.0, 159.0, 141.0, 159.0, 177.0, 134.0, 160.0, 143.0, 154.0, 171.0, 163.0, 160.0, 142.0, 156.0, 157.0, 152.0, 154.0, 139.0, 146.0, 157.0, 132.0, 160.0, 169.0, 157.0, 137.0, 153....
1,178
mit
6298fe7d60a3a7237859e2a499559ff26e004826
PROBIC/diffsplicing
codes/R/sim/constructModel.R
# Copyright (c) 2014, Hande TOPA # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaime...
2,377
mit
25e0cec6b2104fcf05e9f371cef9473c61ec5a6b
dmbates/JuliaWorkshop
tmp/rats_3.data.R
"T" <- 5 "N" <- 30 "x" <- structure(c(8.0, 15.0, 22.0, 29.0, 36.0), .Dim=c(5)) "xbar" <- 22.0 "y" <- structure(c(151.0, 145.0, 147.0, 155.0, 135.0, 159.0, 141.0, 159.0, 177.0, 134.0, 160.0, 143.0, 154.0, 171.0, 163.0, 160.0, 142.0, 156.0, 157.0, 152.0, 154.0, 139.0, 146.0, 157.0, 132.0, 160.0, 169.0, 157.0, 137.0, 153....
1,178
mit