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
3a87d5a1e840ec26f787802422192ee3a415c41f
cran/dissUtils
R/neighbor_identify.R
neighbors.identify <- function(neighbor.matrix, all.dists){ indices <- matrix(integer(length(neighbor.matrix)), nrow(neighbor.matrix), dimnames = dimnames(neighbor.matrix)); if(any("dist" %in% class(all.dists))){ dist.size <- attributes(all.dists)$S...
1,021
gpl-2.0
91e4bfdb8803e23ccebcec3e5f30bf2007365fd8
mattwatts/marxan.io
marxan24/ingest_marxan_data.R
# marxan.io # input is a zip file provided by user # unzip to a temporary location # detect pulayer # simplify geometry # detect field PUID or PU_ID # rename as PUID # drop all fields except PUID # save as pulayer.shp # detect puoutline if exists # simplify geometry # save as puoutline.shp # scan input.d...
28,003
agpl-3.0
f61f73f750e9d3d49eef2da80e93cc575781924f
R-Lum/Luminescence
R/calc_gSGC_feldspar.R
#'@title Calculate Global Standardised Growth Curve (gSGC) for Feldspar MET-pIRIR #' #'@description Implementation of the gSGC approach for feldspar MET-pIRIR by Li et al. (2015) #' #'@details ##TODO #' #'@param data [data.frame] (**required**): data frame with five columns per sample #'`c("LnTn", "LnTn.error", "Lr1Tr1...
11,289
gpl-3.0
c4d7f9d14701eec0bc7ba360afbeccc5a1551178
andrewdefries/andrewdefries.github.io
FDA_Pesticide_Glossary/ethephon.R
library("knitr") library("rgl") #knit("ethephon.Rmd") #markdownToHTML('ethephon.md', 'ethephon.html', options=c("use_xhml")) #system("pandoc -s ethephon.html -o ethephon.pdf") knit2html('ethephon.Rmd')
204
mit
3a87d5a1e840ec26f787802422192ee3a415c41f
landmarkacoustics/dissUtils
R/neighbor_identify.R
neighbors.identify <- function(neighbor.matrix, all.dists){ indices <- matrix(integer(length(neighbor.matrix)), nrow(neighbor.matrix), dimnames = dimnames(neighbor.matrix)); if(any("dist" %in% class(all.dists))){ dist.size <- attributes(all.dists)$S...
1,021
gpl-2.0
fc3170fb48c726d27b4b5990d71b2ddb44a2b12f
mrwizard82d1/DBDA2Eprograms
Jags-Ymet-Xmet-Mrobust-Example.R
# Example for Jags-Ymet-Xmet-Mrobust.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! #-------------------------------------------...
2,451
mit
fc3170fb48c726d27b4b5990d71b2ddb44a2b12f
bdetweiler/stat-8416-final-project
DBDA2Eprograms/Jags-Ymet-Xmet-Mrobust-Example.R
# Example for Jags-Ymet-Xmet-Mrobust.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! #-------------------------------------------...
2,451
mit
1a1fcba062ea55b54c8b18979e4230df69cec07a
CompNet/TopicControl
data/CKM_Physicians_Innovation/conversion.R
# setwd("D:/Eclipse/workspaces/Networks/") # source("properties.R") library("igraph") data.folder <- "TopicControl/data/" # layerID nodeID nodeID weight=1 net.folder <- paste(data.folder,"CKM_Physicians_Innovation/",sep="") file.in <- paste(net.folder,"CKM-Physicians-Innovation_multiplex.edges",sep="") fil...
733
gpl-2.0
e999a306fb5d4529a68647408bfe977e9d7078ce
radfordneal/pqR
src/library/base/R/sink.R
# File src/library/base/R/sink.R # Part of the R package, http://www.R-project.org # # 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 version 2 of the License, or # (at your option) ...
1,670
gpl-2.0
e999a306fb5d4529a68647408bfe977e9d7078ce
hlin09/renjin
core/src/main/R/base/sink.R
# File src/library/base/R/sink.R # Part of the R package, http://www.R-project.org # # 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 version 2 of the License, or # (at your option) ...
1,670
gpl-3.0
e999a306fb5d4529a68647408bfe977e9d7078ce
jukiewiczm/renjin
core/src/main/R/base/sink.R
# File src/library/base/R/sink.R # Part of the R package, http://www.R-project.org # # 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 version 2 of the License, or # (at your option) ...
1,670
gpl-3.0
38a342059c35fa16d049fe80379154a6f74ac783
ecor/RMAWGEN
inst/doc/examples/example_scripts_presentation/temperature-generator_jss.R
# file weather-generator.R # # This file contains a script example with two coupled temperature and precipitation stochastic generations # # # author: Emanuele Cordano on 12-01-2012 # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as publish...
8,701
gpl-3.0
4f2c2f75cd83e41e99ae0f85f5244ff7b3b0a81a
google/GeoexperimentsResearch
tests/testthat/test_072_getgeonames.R
# Copyright 2016 Google Inc. All Rights Reserved. # # 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 # # Unless required by applicable law or a...
5,662
apache-2.0
990b7e68ac7d85b80aa39872ad18f756a43454e7
hadley/r-source
src/library/methods/R/SClasses.R
# File src/library/methods/R/SClasses.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2015 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; eith...
40,618
gpl-2.0
8d89013e960aa53ac59641028c621fb93e87f75c
fmakari/systemml
system-ml/src/test/scripts/functions/binary/matrix/IQM.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/lic...
1,156
apache-2.0
8d89013e960aa53ac59641028c621fb93e87f75c
wjuncdl/systemml
system-ml/src/test/scripts/functions/binary/matrix/IQM.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/lic...
1,156
apache-2.0
8d89013e960aa53ac59641028c621fb93e87f75c
Myasuka/systemml
system-ml/src/test/scripts/functions/binary/matrix/IQM.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/lic...
1,156
apache-2.0
8d89013e960aa53ac59641028c621fb93e87f75c
dusenberrymw/systemml_old
system-ml/src/test/scripts/functions/binary/matrix/IQM.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/lic...
1,156
apache-2.0
8d89013e960aa53ac59641028c621fb93e87f75c
aloknsingh/systemml
system-ml/src/test/scripts/functions/binary/matrix/IQM.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/lic...
1,156
apache-2.0
8d89013e960aa53ac59641028c621fb93e87f75c
ckadner/systemml
system-ml/src/test/scripts/functions/binary/matrix/IQM.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/lic...
1,156
apache-2.0
88b039d7e4a7451e6c2da71a51936a2a26c7da4d
michalkurka/h2o-3
h2o-r/tests/testdir_misc/runit_saveMojo.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../scripts/h2o-r-test-setup.R") test.saveMojo <- function() { data <- as.h2o(iris) features <- c("Sepal.Length", "Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width") model <- h2o.gbm(x=features, y = "Species", training_...
643
apache-2.0
18517e96c3280d2406c3d26395fa4699fd052005
inventionate/TimeSpaceAnalysis
R/get-time-pattern.R
#' Reshape time pattern data. #' #' @param data data frame which contains time pattern data. #' @param id vector which contains questionnaire ids. #' @param reshape_data whether reshape data or not. #' Use this option if your data is column wise concentration (e. g. "mo_seminar") #' #' @return reshaped data frame for f...
1,871
gpl-3.0
50215969fafa492e95df5dd076dbc223273a65a1
paulhendricks/plumber
tests/testthat/test-preempt.R
test_that("preempts work", { r <- PlumberRouter$new("files/preempt.R") expect_equal(length(r$endpoints), 3) e <- r$endpoints[["testFun"]][[1]] expect_equal(e$preempt, "testFun") e <- r$endpoints[["testFun2"]][[1]] expect_equal(e$preempt, "testFun2") e <- r$endpoints[["testFun3"]][[1]] expect_equal(e$...
749
mit
88b039d7e4a7451e6c2da71a51936a2a26c7da4d
h2oai/h2o-3
h2o-r/tests/testdir_misc/runit_saveMojo.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../scripts/h2o-r-test-setup.R") test.saveMojo <- function() { data <- as.h2o(iris) features <- c("Sepal.Length", "Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width") model <- h2o.gbm(x=features, y = "Species", training_...
643
apache-2.0
50215969fafa492e95df5dd076dbc223273a65a1
gustavobio/plumber
tests/testthat/test-preempt.R
test_that("preempts work", { r <- PlumberRouter$new("files/preempt.R") expect_equal(length(r$endpoints), 3) e <- r$endpoints[["testFun"]][[1]] expect_equal(e$preempt, "testFun") e <- r$endpoints[["testFun2"]][[1]] expect_equal(e$preempt, "testFun2") e <- r$endpoints[["testFun3"]][[1]] expect_equal(e$...
749
mit
e61390f372e59386c1bc3c832b75d67288027da3
kevinykuo/sparklyr
R/ml_classification_random_forest_classifier.R
#' @rdname ml_random_forest #' @template roxlate-ml-probabilistic-classifier-params #' @export ml_random_forest_classifier <- function( x, formula = NULL, num_trees = 20L, subsampling_rate = 1, max_depth = 5L, min_instances_per_node = 1L, feature_subset_strategy = "auto", impurity = "gini", min_info_g...
6,242
apache-2.0
1d91beb773d6060100fd53ed4e66f6a9aa002e78
R-Lum/Luminescence
R/install_DevelopmentVersion.R
#' Attempts to install the development version of the 'Luminescence' package #' #' This function is a convenient method for installing the development #' version of the R package 'Luminescence' directly from GitHub. #' #' This function uses [Luminescence::github_branches][Luminescence::GitHub-API] to check #' which dev...
3,914
gpl-3.0
6561bc1238922d8196fc8686e8a9d5e851b1405f
cxxr-devel/cxxr-svn-mirror
src/library/Recommended/survival/R/attrassign.R
# $Id$ # When X is a model matrix, Splus and R have a different format # for the "assign" attribute # For instance # survreg(Surv(time, status) ~ age + sex + factor(ph.ecog), lung) # R gives the compact form, a vector (0, 1, 2, 3, 3, 3); which can be # read as "the first column of the X matrix (intercept...
1,293
gpl-2.0
c567963c6f0ef88d660c35f49ea6dd1b8e571eb2
EccRiley/Riley
R/Rqstring.R
## SIMPLE UTIL FOR QUERY BUILDING ## Rqstring <- function(x, field, substring_side = NULL, substring_n = NULL, operand = "AND", ...) { if (!is.null(substring_n) & !is.null(substring_side)) { qstring <- paste0(" ", operand, " ", substring_side, "(LTRIM(RTRIM(", field, ")), ", substring_n, ") IN ...
637
agpl-3.0
115aa8e422746cce4a9221c3a986ec93e9f95c52
joseflaviojr/transcriptograma
GeradorDeExperimentos.R
# # Copyright (C) 2015-2016 José Flávio de Souza Dias Júnior # # This file is part of Transcriptograma - <http://www.joseflavio.com/transcriptograma/>. # # Transcriptograma is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # t...
13,538
lgpl-3.0
970841604c2899785e6e38fefc3af939bce5b744
ericwol/mia
R/Case_B_ROI.R
#' Sarcoma tumor region of interest in the pelvis. #' This scan was acquired at University of Washington in Seattle, USA. #' Uptake values are expressed in SUV scale for this test dataset #' (Clinical SUVmax = 7.8). The ellipsoidal ROI was hand-drawn by expert #' at the UW School of Medicine. #' This is frame 0, gat...
708
gpl-3.0
5edeae531cd9f370e0bab20e5d5c5061a8dd6fc4
lawinslow/streamMetabolizer
R/calc_is_daytime.R
#' Determines if specified datetime is during the daytime #' Returns T/F indicating whether a datetime occurs during the daytime (sunlight hours) #' #' @param datetimes Vector of dates as \code{POSIXct} or \code{POSIXlt} (see \code{\link{DateTimeClasses}}) format, but in SOLAR time #' @param lat Single latitude value o...
727
cc0-1.0
fe07a1f7382dd831de7b8d4d5835b9490cfad429
LARAsuite/lara-R
laraEvalVis/R/barplot3d.R
#'_____________________________________________________________________________ # # PROJECT: LARA # CLASS: # FILENAME: barplot3d.R # # CATEGORY: # # AUTHOR: mark doerr # EMAIL: mark@ismeralda.org # # VERSION: 0.1.0 # # CREATION_DATE: 2015/09/08 # LASTMODIFICATION_DATE: 2015/09/08 # # BRIEF_DESCRIPTION: Library for plo...
12,841
gpl-3.0
9f07afff40add4f3d28d4638cb4235da99e10d90
ge11232002/latticeExtra
R/ecdfplot.R
prepanel.ecdfplot <- function(x, f.value = NULL, ...) { ans <- prepanel.default.qqmath(x, f.value = f.value, distribution = qunif) with(ans, list(xlim = ylim, ylim = c(0, 1), dx = dy, dy = dx)) } panel.ecdfplot <-...
2,645
gpl-3.0
a26c6091d967303a9de58da068dda9bb1a3773c1
radfordneal/pqR
tests/demos.R
#### Run all demos that do not depend on tcl and other specials. .ptime <- proc.time() set.seed(123) options(keep.source=TRUE, useFancyQuotes=FALSE) ## Drop these for strict testing {and add them to demos2.R) ## lm.glm is in ../src/library/utils/man/demo.Rd }: dont <- list(graphics = c("Hershey", "Japanese", "plotmath...
1,022
gpl-2.0
5eba3eeb33f67f45455162ef3cec2b23a3ab892e
jeffreyhorner/R-Array-Hash
src/library/tools/R/admin.R
# File src/library/tools/R/admin.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2015 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 ve...
42,256
gpl-2.0
5eba3eeb33f67f45455162ef3cec2b23a3ab892e
patperry/r-source
src/library/tools/R/admin.R
# File src/library/tools/R/admin.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2015 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 ve...
42,256
gpl-2.0
c7590628fcdf4e67541a78f6926dc0ebd0f49c57
pchmieli/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_missing_arrests.R
test.glrm.arrests_miss <- function() { missing_frac <- seq(from = 0.1, to = 0.9, by = 0.1) stats_names <- c("Fraction", "Objective", "AvgChangeObj", "Iterations", "StepSize", "TrainSSE", "ValidSSE", "MissingASE") model_stats <- data.frame(matrix(0, nrow = length(missing_frac), ncol = length(stats_names))) co...
2,436
apache-2.0
5eba3eeb33f67f45455162ef3cec2b23a3ab892e
jeffreyhorner/R-Judy-Arrays
src/library/tools/R/admin.R
# File src/library/tools/R/admin.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2015 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 ve...
42,256
gpl-2.0
5eba3eeb33f67f45455162ef3cec2b23a3ab892e
cmosetick/RRO
R-src/src/library/tools/R/admin.R
# File src/library/tools/R/admin.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2015 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 ve...
42,256
gpl-2.0
5eba3eeb33f67f45455162ef3cec2b23a3ab892e
o-/Rexperiments
src/library/tools/R/admin.R
# File src/library/tools/R/admin.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2015 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 ve...
42,256
gpl-2.0
1a4c55f2b21f2c3a2e7d677a9330e4d82d82b3fd
ctufts/knn-dashboard-shiny-plotly
ui.R
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # shinyUI(navbarPage("", tabPanel("Classifier", # Application title ...
3,810
mit
e3a1668cacb79100919fc1a9d69eee57547207de
jltsiren/bwt-merge
paper/comparison.R
# Use R --slave --args name < comparison.R args = commandArgs() name = args[4] x = 3 y = 3 data <- read.csv(file = paste(name, ".csv", sep = ""), head = FALSE, sep = ",", dec = ".", check.names = FALSE) pdf(file = paste(name, ".pdf", sep = ""), width = x, height = y, paper = "special", family = "Helvetica", point...
1,377
mit
88ef524d2d796008aba09ef2ef47d4e501efa83d
johndharrison/webpagetestr
man-roxygen/forceSoftwareRendering.R
#' @param forceSoftwareRendering force software rendering, disable GPU #' acceleration (Chrome only)
102
mit
23aa536a0bc37595e16361d92abf62924126afa0
ucbrise/clipper
containers/R/tests/install_test_dependencies.R
#!/usr/bin/env RScript print("Installing R container test dependencies...") install.packages('versions', repos='http://cran.us.r-project.org') tryCatch( versions::install.versions('jsonlite', version='1.5'), warning = function(warn) { message(warn) }, error = function(er...
1,649
apache-2.0
8377a589b2e4649a173b7d3f7c10d266084f148b
jeroenooms/r-source
tests/reg-tests-1c.R
## Regression tests for R 3.[0-3].* pdf("reg-tests-1c.pdf", encoding = "ISOLatin1.enc") .pt <- proc.time() ## mapply with classed objects with length method ## was not documented to work in 2.x.y setClass("A", representation(aa = "integer")) a <- new("A", aa = 101:106) setMethod("length", "A", function(x) length(x@aa...
60,003
gpl-2.0
a02d4ca3efbbd8e1d9f2683a835adc2eefab4749
wangzongyan/network
acsEdgeLength.R
set.seed(1) library(data.table) # so fast! library(igraph) # all the basic graph operations. library(zipcode) source("loadData.R") wi = DT[State == "WI"] zip = wi$"Zip Code" zip = substr(zip, start = 1, stop = 5) data(zipcode) # this contains the locations of zip codes zipcode = as.data.table(zipcode); setkey(zi...
2,274
epl-1.0
f4880effedc19ed28bf62debab4ea1cc018745b3
variani/matlm
tests/testthat/test-sim.R
context("sim") test_that("correlated predictors", { rho <- 0.9 N <- 1000 M <- 6 C <- matrix(rho, M, M) diag(C) <- 1 simdat <- matlm_sim_randpred(seed = 1, N = N, M = M, rho = rho) C_data <- simdat$pred %>% cor %>% round(1) expect_equal(C, C_data) })
275
gpl-3.0
69462481769202a12aae27afb22d3f0d2f926996
zhangh12/ARTP2
R/load.summary.files.R
load.summary.files <- function(summary.files, lambda, sel.snps, options){ msg <- paste("Loading summary files:", date()) if(options$print) message(msg) ambigFlag <- options$ambig.by.AF header <- c('SNP', 'RefAllele', 'EffectAllele', 'BETA') # columns that must be provided by users opt.header <- c('P', ...
4,059
mit
509f1f53fdb89e45b0ed818153e19d460ee62f1f
milokmilo/Stranded
R/hp.nqx.nM.R
#' Helligman Pollard mortality #' #' Helligman Pollard mortality. Modified from HPbayes_0.1 #' @param H.out #' @param age. Default = seq(0, 85, 1) #' @keywords Heligman Pollard mortality #' @export #' @examples #' hp.nqx.nM() hp.nqx.nM <- function (H.out, age = seq(0, 85, 1)) { H.new.hat <- matrix(NA, nrow = nrow(H....
471
gpl-2.0
c790040cedf901689039eaa3628e9a8f6f0ff4e5
danmaclean/h_pseu_analysis
nls_ss_gc/load.R
setup_environment() data <- read.table('nls_ss_gc.csv', sep="\t", header=TRUE, col.names=c('scaffold', 'start', 'stop', 'nls_count', 'ss_count', 'gc_percent'), colClasses=c('factor', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric') )
304
cc0-1.0
69462481769202a12aae27afb22d3f0d2f926996
zhangh12/ARTP3
R/load.summary.files.R
load.summary.files <- function(summary.files, lambda, sel.snps, options){ msg <- paste("Loading summary files:", date()) if(options$print) message(msg) ambigFlag <- options$ambig.by.AF header <- c('SNP', 'RefAllele', 'EffectAllele', 'BETA') # columns that must be provided by users opt.header <- c('P', ...
4,059
mit
36ef5570caf4d05e2a77fd24ec2527f8dafd4966
fhernanb/semilleroApps
Beta/server.R
library(shiny) shinyServer(function(input, output) { output$grafico1 <- renderPlot({ curve(dbeta(x, shape1=input$shape1, shape2=input$shape2), from=0, to=1, ylab="Densidad", las=1, lwd=3, col="deepskyblue3") grid() }) output$med_var <- renderText({ a <- input$shape1 b <...
531
gpl-2.0
01a897301e8eb2a10a1f413eba54b6f4bb36397e
aloy/qqplotr
revdep/checks.noindex/latrend/old/latrend.Rcheck/tests/testthat/test-lcmm.R
context('LCMM models') skip_if_not_installed('lcmm') rngReset() test_that('default gmm', { m = lcMethodTestLcmmGMM() model = latrend(m, testLongData) %>% expect_silent() expect_valid_lcModel(model) }) test_that('gmm with single cluster', { latrend(lcMethodTestLcmmGMM(), testLongData, nClusters=1) %>% ...
760
gpl-3.0
01a897301e8eb2a10a1f413eba54b6f4bb36397e
aloy/qqplotr
revdep/checks.noindex/latrend/new/latrend.Rcheck/tests/testthat/test-lcmm.R
context('LCMM models') skip_if_not_installed('lcmm') rngReset() test_that('default gmm', { m = lcMethodTestLcmmGMM() model = latrend(m, testLongData) %>% expect_silent() expect_valid_lcModel(model) }) test_that('gmm with single cluster', { latrend(lcMethodTestLcmmGMM(), testLongData, nClusters=1) %>% ...
760
gpl-3.0
110b896e2b9061b741890666b83ffb4efb8def13
pbastide/PhylogeneticEM
R/generic_functions.R
# {General functions} # Copyright (C) {2014} {SR, MM, PB} # # 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 version 2 of the License, or # any later version. # # This program is distribut...
32,351
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
kalibera/rexp
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
hxfeng/R-3.1.2
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
andy-thomason/little_r
test/R-tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
mit
207b7c00661120e7519c7334a8ded21ee3920335
apoikola/fillarilaskennat
source/liikenne_20140927.R
# Code for analysing and visualising traffic data # License: FreeBSD, http://en.wikipedia.org/wiki/BSD_licenses # Copyright 2012 Juuso Parkkinen <juuso.parkkinen@gmail.com> and Antti Poikola <antti poikola@gmail.com>. All rights reserved. library(ggplot2) library(reshape) search.pattern <-"kuu" # pattern used to sea...
5,925
bsd-2-clause
400e1cafca76487c5d413e572bfa3f179c035485
o-/Rexperiments
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
andy-thomason/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
jeffreyhorner/R-Judy-Arrays
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
abiyug/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
glycerine/bigbird
r-3.0.2/tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
bsd-2-clause
400e1cafca76487c5d413e572bfa3f179c035485
CodeGit/SequenceImp
dependencies-bin/windows/bin/R/tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-3.0
400e1cafca76487c5d413e572bfa3f179c035485
lajus/customr
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
5e22c80e75528b35f99ef70efab51a8948b369b0
henriquepgomide/drinkless
feasibility.R
# WHO FEASIBILITY STUDY ============================================================================ # Objectives -- # 1 - Compare alcohol consumption after 6 weeks among - intention to treat and treatment completers. # 2 - Create a model to predict success. # Libraries library(car) # Recode library(lattice) # ...
11,313
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
skyguy94/R
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
limeng12/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
jagdeesh109/RRO
R-src/tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
jeffreyhorner/R-Array-Hash
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
cxxr-devel/cxxr-svn-mirror
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
ArcherCraftStore/ArcherVMPeridot
R-3.1.0/tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
apache-2.0
400e1cafca76487c5d413e572bfa3f179c035485
ChiWang/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
LeifAndersen/R
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
RevolutionAnalytics/RRO
R-src/tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
WelkinGuan/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
mirror/r
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
cmosetick/RRO
R-src/tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
nathan-russell/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
ArcherSys/ArcherSys
R/tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
mit
400e1cafca76487c5d413e572bfa3f179c035485
mathematicalcoffee/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
patperry/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
400e1cafca76487c5d413e572bfa3f179c035485
hadley/r-source
tests/simple-true.R
###---- ALL tests here should return TRUE ! ### ###---- "Real" Arithmetic; Numerics etc --> ./arith-true.R ### mode checking, etc. is.recursive(expression(1+3, 2/sqrt(pi)))# fix PR#9 ## sum(): all(1:12 == cumsum(rep(1,12))) x <- rnorm(127); sx <- sum(x); abs((sum(rev(x)) -sx)) < 1e-12 * abs(sx) ## seq(): typeof(1...
4,971
gpl-2.0
e55f266b35492a53326f232dafd79016d0a23705
geoffrosen/hmp_mapping
requirements/Maaslin/R/Utility.R
##################################################################################### #Copyright (C) <2012> # #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 witho...
17,975
mit
4f2d75b1afd17269cc35ac55321f5adc238f27ba
cxxr-devel/cxxr-svn-mirror
src/library/utils/R/Sweave.R
# File src/library/utils/R/Sweave.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 ...
22,324
gpl-2.0
4f2d75b1afd17269cc35ac55321f5adc238f27ba
lajus/customr
src/library/utils/R/Sweave.R
# File src/library/utils/R/Sweave.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 ...
22,324
gpl-2.0
0216d238ecf377792fa8d8801760ccac5d2a7f56
ahopki14/immunoSeqR
R/richness.R
#' richness #' #' Computes the richness (total number of unique elements) in a sample #' @param x A numeric vector or tcr object #' @param merge If x is a tcr object, the output will be a tcr object with the #' richness merged into the metadata. #' @return If x is a vector, the function returns the richness If x is a...
998
gpl-3.0
f6f04624d4b62a5bffc70e75216a5c3e9e6ac4a3
kalibera/rexp
src/library/tools/R/Rd2HTML.R
# File src/library/tools/R/Rd2HTML.R # # Copyright (C) 1995-2013 The R Core Team # Part of the R package, http://www.R-project.org # # 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...
30,687
gpl-2.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
Wenpei/incubator-systemml
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
apache/incubator-systemml
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
fschueler/incubator-systemml
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
asurve/arvind-sysml2
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0
1653e694ea73f0eacc4215918de59cc71b89fce0
SocialFunction/youTubeDataR
R/utils.R
checkToken <- function(token) { # check inputs if(missing(token)) { stop("token MUST be provided. See youOAuth", call. = FALSE) } else if (class(token)[1] != "Token2.0") { stop("Wrong token provided. See youOAuth", call. = FALSE) } else if (is.null(token)) { stop("token is NULL", call. = FALSE) } ...
4,512
gpl-3.0
bed7e01c0ecf5f33d463e10f509dc2f7e90414a2
ColumbusCollaboratory/electron-quick-start
R-Portable-Mac/library/robustbase/doc/lmrob_simulation.R
### R code from vignette source 'lmrob_simulation.Rnw' ### Encoding: UTF-8 ################################################### ### code chunk number 1: initial-setup ################################################### ## set options options(width=60, warn=1) # see warnings where they happen (should eliminate) ...
44,217
cc0-1.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
niketanpansare/systemml
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
deroneriksson/incubator-systemml
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
gweidner/incubator-systemml
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0
e0ae2022eab59371292c62d256dfaf3e49db1f71
gweidner/systemml
src/test/scripts/functions/vect/VectorizeLixColPos.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,159
apache-2.0