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 |
|---|---|---|---|---|---|
4e5d0b77277e84d986631363582ab8977af4a41f | arank/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4c2eff4221de4866755a8f19222e1a755ab32c36 | etsakl/DasyMapR | packrat/lib/x86_64-pc-linux-gnu/3.2.2/packrat/tests/testthat/test-utils.R | context("utils")
emit <- function(x) cat(x, sep = "\n")
test_that("dir_copy copies directories", {
# Work in temporary directory
owd <- getwd()
on.exit(setwd(owd))
setwd(tempdir())
# Create a directory and try to copy it
dir.create("foo")
file.create("foo/foo1.R")
file.create("foo/foo2.R")
file.c... | 1,867 | gpl-3.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | saurabh3949/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | gautamkmr/incubator-mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | likelyzhao/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
bc7a8cee5151eff693b31fdf389aa23b13464755 | CuppenResearch/MutationalPatterns | R/fit_to_signatures.R | #' Find optimal nonnegative linear combination of mutation signatures to
#' reconstruct the mutation matrix.
#'
#' Find the linear combination of mutation signatures that most closely
#' reconstructs the mutation matrix by solving the nonnegative least-squares
#' constraints problem.
#'
#' @param mut_matrix mutation co... | 2,714 | mit |
4e5d0b77277e84d986631363582ab8977af4a41f | pluskid/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | jennyzhang0215/incubator-mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | Prasad9/incubator-mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
ab2e7ec79f1477efb10e836cd1cf82ade84896cf | swirldev/swirl_courses | Statistical_Inference/Variance/initLesson.R | # For compatibility with 2.2.21
.get_course_path <- function(){
tryCatch(swirl:::swirl_courses_dir(),
error = function(c) {file.path(find.package("swirl"),"Courses")}
)
}
# Put initialization code in this file.
dice_fair <- c(1/6,1/6,1/6,1/6,1/6,1/6)
dice_high <- c(1/21,2/21,3/21,4/21,5/21,6/21)
dice_lo... | 835 | gpl-3.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | ykim362/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | yuruofeifei/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | ZihengJiang/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | jermainewang/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | antoan2/incubator-mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | madjam/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | lxn2/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | wangyum/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | stefanhenneking/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | thirdwing/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | kevinthesun/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | Guneet-Dhillon/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | xcgoner/dist-mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | solin319/incubator-mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | kkk669/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | yhpeng-git/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | danithaca/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | hpi-xnor/BMXNet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | hotpxl/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | rishita/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | DR08/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | Ldpe2G/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | nicklhy/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | Mega-DatA-Lab/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | hesseltuinhof/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | sergeykolychev/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | ShownX/incubator-mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | coder-james/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | apaleyes/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | weleen/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4e5d0b77277e84d986631363582ab8977af4a41f | arikpoz/mxnet | example/image-classification/train_model.R | require(mxnet)
train_model.fit <- function(args, network, data_loader) {
# log
if(!is.null(args$log_file)){
sink(file.path(args$log_dir, args$log_file), append = FALSE,
type=c("output", "message"))
cat(paste0("Starting computation of ", args$network, " at ", Sys.time(), "\n"))
... | 2,911 | apache-2.0 |
4c3d3101c061aee8b873a69d55c48c608fbb800d | ep1804/el | R/kmeans.R | requireNamespace('fpc')
requireNamespace('rgl')
#' K-Means clustering model & score
#'
#' @param data vector, matrix, or data.frame.
#' @param k numeric. Target number of clusters. if vector, best k selected
#' @param runs numeric. number of starts(nstart) in kmeans algorithms
#' @param plot logical... | 2,459 | gpl-3.0 |
9ce655e09833cdf6d80ca2e5e77eda8e897a2b2d | orc-lang/orc | OrcTests/src/orc/test/analysis/porce/inlineLimitAnalysis.R | # Utilities for processing PorcE performance data.
#
# Copyright (c) 2018 The University of Texas at Austin. All rights reserved.
#
# Use and redistribution of this file is governed by the license terms in
# the LICENSE file found in the project's top-level directory and also found at
# URL: http://orc.csres.utexas.edu... | 1,814 | bsd-3-clause |
ac8aa5053aa9e4d3ddcfc09403966eb9dd5aaf5c | justinnafe/NextWord | R/buildModel.R | #' Build a model based on N-gram probabilities
#'
#' Build a list of N-grams with probabilities. The range of N-grams go from 1 to 4 grams.
#'
#' @param ngramFreq List of data.frame objects that contain tokens, POS, and probabilities
#' @return List of N-grams
#' @export
buildModel <- function(ngramFreq){
res... | 819 | gpl-3.0 |
739d5efc7fe6604439ae2427a8450904873459c1 | hadley/r-source | src/library/stats/R/plot.lm.R | # File src/library/stats/R/plot.lm.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 ... | 11,955 | gpl-2.0 |
739d5efc7fe6604439ae2427a8450904873459c1 | limeng12/r-source | src/library/stats/R/plot.lm.R | # File src/library/stats/R/plot.lm.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 ... | 11,955 | gpl-2.0 |
4ad4959aeddc003e314642c438045c06ac4aa71c | cran/zipfR | R/distribution_lnre_zm.R | tdlnre.lnre.zm <- function (model, x, ...)
{
if (! inherits(model, "lnre.zm")) stop("first argument must be object of class 'lnre.zm'")
alpha <- model$param$alpha
B <- model$param$B
C <- model$param2$C
below <- x < 0
above <- x > B
ok <- !(below | above)
d <- numeric(length(x))
d[below] <- 0
... | 2,650 | gpl-3.0 |
910106483ab6218520d88801c089fffa4de2f17d | grailbio/rules_r | tests/packages/exampleC/tests/testthat/test.R | # Copyright 2018 The Bazel Authors.
#
# 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 agreed to in wr... | 688 | apache-2.0 |
1cff29e327438650d109c2f668499d7554eadab8 | cemalley/ADRN-EH-Project | QC/chr22_qq.R | setwd("/dcl01/barnes/data/ADRN_WGS/ADRN_chr22/761MultiVCF")
glm<-read.delim("ADRN_chr22_761_filled_filtered_AD_NA_glm_excl_failed.out")
vassoc<-read.delim("ADRN_chr22_761_filled_filtered_AD_NA_vassoc_excl_failed.out")
lmiss<-read.delim("ADRN_chr22_761_SNPs_filled_GQ30_DP7_segdup_adna_wgs.lmiss")
hwe<-read.delim("ADRN_c... | 1,441 | gpl-3.0 |
6a54d24f36eee1c2d7c53d77b14c272cc9fdd493 | hlin09/renjin | packages/grDevices/src/main/R/utils.R | # File src/library/grDevices/R/utils.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 op... | 1,350 | gpl-3.0 |
6a54d24f36eee1c2d7c53d77b14c272cc9fdd493 | radfordneal/pqR | src/library/grDevices/R/utils.R | # File src/library/grDevices/R/utils.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 op... | 1,350 | gpl-2.0 |
6a54d24f36eee1c2d7c53d77b14c272cc9fdd493 | jukiewiczm/renjin | packages/grDevices/src/main/R/utils.R | # File src/library/grDevices/R/utils.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 op... | 1,350 | gpl-3.0 |
06610c29beff6c154e1f2fb217e400a454676394 | antoinecarme/sklearn2sql_heroku | tests/caret/regression/boston/ws_boston_ctree_sqlite_code_gen.R | source("tests/caret/regression/generic.R")
test_caret_model("ctree" , "boston" , "sqlite")
| 93 | bsd-3-clause |
d5dc22d2ee347c3ade61fd6b7c7cb38a8b4662fd | NGSchool2016/ngschool2016-materials | chip_seq/.R_library/3.3/IRanges/unitTests/test_nearest-methods.R | checkMatching <- function(a, q, s, r, c)
{
mat <- cbind(queryHits = as.integer(q), subjectHits = as.integer(s))
checkIdentical(as.matrix(a), mat)
checkIdentical(c(queryLength(a), subjectLength(a)), as.integer(c(r, c)))
}
test_Ranges_adjacency <- function()
{
query <- IRanges(c(1, 3, 9), c(3, 7, 10))
subjec... | 4,826 | gpl-3.0 |
18a454deff7c5fe210242f195bda7bfd2546e3ed | tplate/fuzzy-llama | varray/pkg/R/add.tsdata.varray.R | #' Add time-series data to an object
#'
#' Add time-series data to an object
#' The only thing that makes an object time series data is that the
#' dimnames on one dimension are character strings representing parsable
#' times or dates.
#'
#' @param x An object to add time-series data to, either specified by nam... | 18,766 | mit |
be4285e74216398959f7df6f5694b299991fd61a | G-Lynn/DLTM | Omega_Step.R | #' Omega Step
#'
#' This function samples the complete set of Omega_{d,k,t} auxiliary Polya-Gamma random variables
#' for the data augmentation of topic proportions Eta_{d,k,t}.
#' @import parallel
#' @param MC.Cores Number of cores for parallelization
#' @param t.T Number of time points
#' @param N.D Time-indexed l... | 1,584 | gpl-2.0 |
8ffc14cfa8b9d4c379a6689f9897767b8a308182 | pconn/ChukchiPower | R/inst/analyze_sims_PB2.R | #analyze power simulation results
library(xtable)
set.seed(23456)
load("./sim_data/Sim_Effort.Rda")
Models=c(1,2,3,4,5,6,7,9,11)
n.sims=100
n.flights=9
n.models=length(Models)
Bias=vector("list",3)
Cov=MSE=CV=Lam.true=Bias
for(isp in 1:3){
if(isp<3){
Bias[[isp]]=data.frame(matrix(NA,n.models,n.flights))
col... | 2,812 | gpl-2.0 |
b4d8510b49c036cc87d4de4fe3abd8d089f7a35c | FESOM/spheRlab | R/sl.spatialfilter.getweights.R | sl.spatialfilter.getweights <-
function (lon,lat,neighmat,areas,Rsphere=1,method="gauss",gauss.sigma=2*pi*Rsphere/360,cutoff=3*gauss.sigma) {
if (!( method == "gauss" || method == "lin" || method == "const" )) {stop("'method' must be 'gauss', 'lin', or 'const'")}
src_address = c()
dst_address = c()
filter_weigh... | 1,608 | gpl-3.0 |
5b7b4f4335f4c0b17d9dca9b1cb8df04c20ec8b5 | dreibh/rsplib | src/planetlab/plot-kivs2007.R | # ###########################################################################
# Name: plot-perftest1.R
# Description:
# Revision: $Id$
# ###########################################################################
source("plotter.R")
ownOutput <- FALSE
hideLegend <- TRUE
colorMode <- cmColor
legendPos <- ... | 9,038 | gpl-3.0 |
11eb9a99123dd0a11516a3fbcbc171c888df4ab0 | bvieth/powsimR | R/utils_estimate.R | # checkup -----------------------------------------------------------------
#' @importFrom SingleCellExperiment SingleCellExperiment
#' @importFrom scater isOutlier
#' @importFrom BiocGenerics counts
.run.checkup <- function(countData,
readData,
batchData,
... | 38,524 | artistic-2.0 |
5d0bb8d564ac2e3647d4217ddb2b151a8a9662f4 | macroevolution/bamm | doc/source/rcode/rate_through_time_whales.R | # This file illustrates how you can plot a rate-through-time curve
# with confidence intervals as shaded polygons.
#
# We avoid using the function plot(...) directly here, as it
# is generally easier to make high-quality figures by building a plot piecewise
# and specifying all the components individually
# (e.g., ... | 3,430 | gpl-2.0 |
acea898e29b58e0daa606d986c0c5fbe5d4bf384 | jimthompson5802/kaggle-BNP-Paribas | src/L0_xgb31/train_model.R | ###
# training skeleton
###
library(data.table)
library(caret)
# add any model specific package library commands
library(xgboost)
# set working directory
WORK.DIR <- "./src/L0_xgb31" # modify to specify directory to contain model artififacts
# Common Functions and Global variables
source("./src/CommonFunctions.R")
... | 2,523 | mit |
4e2a715c19f37c217d3b4d04b90ad5d300c95c1e | nuest/containerit | R/Class-Expose.R | # Copyright 2018 Opening Reproducible Research (https://o2r.info)
#' S4 Class representing an EXPOSE-instruction
#'
#' @include Class-Instruction.R
#' @include Class-All.R
#'
#' See official documentation at \url{https://docs.docker.com/engine/reference/builder/#copy}.
#
#' @param port (character or numeric, required)... | 2,608 | gpl-3.0 |
5d0bb8d564ac2e3647d4217ddb2b151a8a9662f4 | jonchang/bamm | doc/source/rcode/rate_through_time_whales.R | # This file illustrates how you can plot a rate-through-time curve
# with confidence intervals as shaded polygons.
#
# We avoid using the function plot(...) directly here, as it
# is generally easier to make high-quality figures by building a plot piecewise
# and specifying all the components individually
# (e.g., ... | 3,430 | gpl-2.0 |
70ed09e01dd5259bd5ed52f9ac3b1df22b813522 | leoncamel/forecast_moduleR | main.R |
# forecast with R runtime
library(forecast)
library(moduleR)
rt <- ModuleRuntime()
mydata.df = read.csv(rt$Input$TimeSeries$Val, header = TRUE, stringsAsFactors = FALSE)
paramColumnName = rt$Param$column_name$Val
# frequency's type is "integer", so, we need not convert it
# We can use it directly
paramFreq = rt$P... | 911 | bsd-3-clause |
42375c6410c42dc68bf5ad53e0d646b945278d47 | RGLab/flowReMix | cluster/hvtn/oldcode/HVTNclusterWhla.R | cpus <- 8
print(cpus)
args <- commandArgs(TRUE)
eval(parse(text=args[[1]]))
setting <- as.numeric(setting)
getExpression <- function(str) {
first <- substr(str, 1, 7)
second <- substr(str, 8, nchar(str))
second <- strsplit(second, "")[[1]]
seperators <- c(0, which(second %in% c("-", "+")))
expressed <- list... | 7,640 | mit |
766ddd4000bc2d2ba997af7d60b2ef5b622fd629 | meisamhe/GPLshared | ChoiceModels/R/mnlHess.R | mnlHess =
function(beta,y,X)
{
# p.rossi 2004
# changed argument order 9/05
#
# Purpose: compute mnl -Expected[Hessian]
#
# Arguments:
# beta is k vector of coefs
# y is n vector with element = 1,...,j indicating which alt chosen
# X is nj x k matrix of xvalues for each of j alt on each of n occasions
#
# ... | 718 | gpl-3.0 |
1cf7de5314d21a62aa669978318428078fc5e2fa | mhunter1/OpenMx | inst/models/passing/LISRELFactorRegressionWithMeansFIMLOrder_MatrixRaw.R | #
# Copyright 2007-2017 The OpenMx Project
#
# 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 ... | 6,796 | apache-2.0 |
a675618e2859791598bd7b501510aa5fe9de477c | theclue/uptimeRobots | R/uptimerobot.monitor.responses.R | #' Get response times for one or more monitors
#'
#' \code{uptimerobot.monitor.responses} returns a dataset with all the response times
#' for the given monitors IDs.
#'
#' The API uses pagination and returns no more than 50 monitors on each page. Use \code{limit} and \code{offset} to set a different number of
#' moni... | 3,775 | mit |
252b291667b51bf23588539144ce9449791adbc1 | genomics-admin/datasciencecoursera | IntroToR/Assignment3/rankhospital.R | source("submitscript3.R")
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
outcomeData <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
## Check that state and outcome are valid
if (!state %in% unique(outcomeData[,"State"])) stop("invalid state")
if (!outcome ... | 2,642 | apache-2.0 |
14bb7c9e8dd2910b3603cc0a99a230a78a6a1f27 | dbfin/ZigZag | tent_sp.R | # The number of sample points we want
xn = 10000
# The number of switching points we generate
spn = xn * 10
# Switching points
xs <- (1 + sqrt(-4 / pi * log(1 - runif(spn)))) * rep(c(1, -1), spn / 2)
ts <- rep(0, spn)
t <- 0
x <- 0
i <- 1
while (i <= spn) {
t <- ts[i] <- t + abs(xs[i] - x)
x <- xs[i]
i <- i + 1... | 1,459 | gpl-3.0 |
34afa17aa44bc607a38de60b72f33cecb6452c9d | cliffano/swaggy-jenkins | clients/r/generated/R/github_organizationlinks.R | # Swaggy Jenkins
#
# Jenkins API clients generated from Swagger / Open API specification
#
# The version of the OpenAPI document: 1.5.1-pre.0
# Contact: blah@cliffano.com
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title GithubOrganizationlinks
#'
#' @description GithubOrganizationlinks Class
... | 3,815 | mit |
6b530b43445b5761ed21f0ef209067b8ee3299ce | bergmanlab/ngs_te_mapper | sourceCode/ngs_te_mapper.R | #!/usr/bin/env Rscript
#chmod u+x ngs_te_mapper.R
#./ngs_te_mapper.R sample.fasta /Users/user_name/ngs_te_mapper 1 20
#align to the TEs first
#then get the reads that match to a TE
#align the selected reads to the genome of interest
# Author: raquel
######################################################################... | 11,927 | bsd-3-clause |
4a170100a52d45ad448e61584bb6d45ca46e859f | cran/zipfR | R/read_multiple_objects.R | read.multiple.objects <- function (directory, prefix, class=c("spc", "vgc", "tfl")) {
## this is the R way of checking an option against a fixed range of values
class <- match.arg(class)
# obtain list of files matching pattern in specified directory and
# complain and stop if there is no file matching pattern... | 1,362 | gpl-3.0 |
08555d95a877a0822fba3bf151fedac91ec8b8fa | CommunityGeneticsAnalyses/ComGenR | R/getH2C.R | #' Calculates the community heritability metric of Shuster et al. 2006.
#'
#' Conducts the community heritability calculations developed in Shuster et al.
#' 2006 based on a single ordination axis.
#'
#' %% ~~ If necessary, more details than the description above ~~
#'
#' @param x A single NMDS axis or a communiy ma... | 3,266 | gpl-3.0 |
bef050a6ac3bc4f0e9588b2c247e950fe5fcb170 | thomasvangurp/epiGBS | RnBeads/r-packages/RnBeads/inst/unitTests/dataset_generator.R | ########################################################################################################################
## dataset_generator.R
## created: 2012-11-27
## creator: Yassen Assenov
## ---------------------------------------------------------------------------------------------------------------------
## Ro... | 6,873 | mit |
6980feec3ea2014ab3d7fca68eb43efb3fa90d8a | octonion/baseball-public | retrosheet/read_csv.R |
unzip("pitches.zip")
pitches <- read.csv("pitches.csv", header=TRUE)
| 71 | mit |
6980feec3ea2014ab3d7fca68eb43efb3fa90d8a | JakeRuss/baseball-public | retrosheet/read_csv.R |
unzip("pitches.zip")
pitches <- read.csv("pitches.csv", header=TRUE)
| 71 | mit |
bef050a6ac3bc4f0e9588b2c247e950fe5fcb170 | thomasvangurp/epiGBS | RnBeads/RnBeads/inst/unitTests/dataset_generator.R | ########################################################################################################################
## dataset_generator.R
## created: 2012-11-27
## creator: Yassen Assenov
## ---------------------------------------------------------------------------------------------------------------------
## Ro... | 6,873 | mit |
c1176dc76f94f8a9a6cbafdf06a56b8fff47c2fd | InsightSoftwareConsortium/SimpleITK | Examples/FilterProgressReporting/FilterProgressReporting.R | #=========================================================================
#
# Copyright NumFOCUS
#
# 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/license... | 1,620 | apache-2.0 |
192499bae78cf33919a26ce44262ae8356fa131a | iainmstott/popdemo | 0.2-1/popdemo/R/blockmatrix.R | blockmatrix <-
function(A){
if(any(length(dim(A))!=2,dim(A)[1]!=dim(A)[2])) stop("A must be a square matrix")
order<-dim(A)[1]
if(is.matrix_irreducible(A)) stop("Cannot compute block-permutation for irreducible matrix")
else{
stage.order<-1:order
powermatrix<-(diag(1,order)+A)%^%(order-1)
zeroes1<-n... | 1,208 | gpl-3.0 |
192499bae78cf33919a26ce44262ae8356fa131a | iainmstott/popdemo | 0.1-4/popdemo/R/blockmatrix.R | blockmatrix <-
function(A){
if(any(length(dim(A))!=2,dim(A)[1]!=dim(A)[2])) stop("A must be a square matrix")
order<-dim(A)[1]
if(is.matrix_irreducible(A)) stop("Cannot compute block-permutation for irreducible matrix")
else{
stage.order<-1:order
powermatrix<-(diag(1,order)+A)%^%(order-1)
zeroes1<-n... | 1,208 | gpl-3.0 |
c1176dc76f94f8a9a6cbafdf06a56b8fff47c2fd | SimpleITK/SimpleITK | Examples/FilterProgressReporting/FilterProgressReporting.R | #=========================================================================
#
# Copyright NumFOCUS
#
# 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/license... | 1,620 | apache-2.0 |
73a63e77221347ea330931a04f5730a42617ab9d | jbkunst/r-posts | 041-box-office/readme.R | #' ---
#' title: "Visualizing Gross Income on Movies"
#' author: "Joshua Kunst"
#' output:
#' html_document:
#' toc: true
#' keep_md: yes
#' ---
#+ echo=FALSE, message=FALSE, warning=FALSE
#### setup ws packages ####
rm(list = ls())
library("jbkmisc")
blog_setup()
library("dplyr")
library("rves... | 20,129 | apache-2.0 |
192499bae78cf33919a26ce44262ae8356fa131a | iainmstott/popdemo | 0.2-2/popdemo/R/blockmatrix.R | blockmatrix <-
function(A){
if(any(length(dim(A))!=2,dim(A)[1]!=dim(A)[2])) stop("A must be a square matrix")
order<-dim(A)[1]
if(is.matrix_irreducible(A)) stop("Cannot compute block-permutation for irreducible matrix")
else{
stage.order<-1:order
powermatrix<-(diag(1,order)+A)%^%(order-1)
zeroes1<-n... | 1,208 | gpl-3.0 |
192499bae78cf33919a26ce44262ae8356fa131a | iainmstott/popdemo | 0.2-3/popdemo/R/blockmatrix.R | blockmatrix <-
function(A){
if(any(length(dim(A))!=2,dim(A)[1]!=dim(A)[2])) stop("A must be a square matrix")
order<-dim(A)[1]
if(is.matrix_irreducible(A)) stop("Cannot compute block-permutation for irreducible matrix")
else{
stage.order<-1:order
powermatrix<-(diag(1,order)+A)%^%(order-1)
zeroes1<-n... | 1,208 | gpl-3.0 |
c1176dc76f94f8a9a6cbafdf06a56b8fff47c2fd | richardbeare/SimpleITK | Examples/FilterProgressReporting/FilterProgressReporting.R | #=========================================================================
#
# Copyright NumFOCUS
#
# 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/license... | 1,620 | apache-2.0 |
c1176dc76f94f8a9a6cbafdf06a56b8fff47c2fd | blowekamp/SimpleITK | Examples/FilterProgressReporting/FilterProgressReporting.R | #=========================================================================
#
# Copyright NumFOCUS
#
# 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/license... | 1,620 | apache-2.0 |
fe9f4ce1253056b4e3f841cec7ab09e229591d87 | dnlbrkc/collective_search | agents/strategies.R | #imitation, hybrid, and individual learning strategies used in simluation.R
imitation <- function(prevChoices, network, NK = FALSE, samplesize = 3, n.agents = 100){
#imitate the best strategy
if (NK==FALSE){#check if NK, because NK fitness matrices have 2 cols and 2D envs have 3 cols
payoff.id <- 3
}else{
payof... | 7,790 | gpl-3.0 |
05c9f78bdcbe4f4f6c6ad1ae5cb8fc8c34de2df1 | marine1vane/DVTrading | ConstructStockDataFrame.007.R | library(quantmod)
#Building the data frame and xts to show dividends, splits and technical indicators
SymbolsList <- c("T", "AAPL")
getSymbols(SymbolsList) #need to improve this line to pull from google
Playground <- data.frame(T, AAPL)
Playground$date <- as.Date(row.names(Playground))
Playground$wday <- as.POSIXl... | 2,182 | gpl-3.0 |
6e4a2a314e4cfae34665626843bf4fee7b8476d9 | dipanjanS/learning-social-media-analytics-with-r | Chapter 5 - Analyzing GitHub/Code/github_language_trend_analysis.R | source('load_packages.R')
load('trending_repos.RData')
## Visualizing top trending languages in Github
# aggregate repository counts by language
repo_languages <- aggregate(trending_repos$language,
by=list(trending_repos$language), length)
colnames(repo_languages) <- c('Language', 'Count... | 7,243 | apache-2.0 |
7a78e7b0cc413ff2895b199a5134e92e45f21fb4 | kalibera/rexp | src/library/base/R/cut.R | # File src/library/base/R/cut.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2014 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 versi... | 2,897 | gpl-2.0 |
7a78e7b0cc413ff2895b199a5134e92e45f21fb4 | jeffreyhorner/R-Judy-Arrays | src/library/base/R/cut.R | # File src/library/base/R/cut.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2014 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 versi... | 2,897 | gpl-2.0 |
78f89547c91dc0499f66c6ea62197000d2e99645 | cxxr-devel/cxxr-svn-mirror | src/library/Recommended/Matrix/tests/Simple.R | #### Currently a collection of simple tests
## (since 'Matrix' takes long to load, rather have fewer source files!)
##-------- *BEFORE* attaching Matrix: --------------------------------
str(Matrix::Matrix)# -> load the namespace
T <- new("ngTMatrix", i=0L, j=2L, Dim = c(2L,6L))
T
as(T, "CsparseMatrix")
## gave Error ... | 31,290 | gpl-2.0 |
31e4122fe9fa2091ff1854ee2d0fec3cb5612d41 | jooolia/oligotyping | bin/o-heatmap.R | #!/usr/bin/env Rscript
#
# generates heatmaps.
#
suppressPackageStartupMessages(library(vegan))
suppressPackageStartupMessages(library(gtools))
suppressPackageStartupMessages(library(pheatmap))
suppressPackageStartupMessages(library(RColorBrewer))
suppressPackageStartupMessages(library(optparse))
# command line optio... | 4,002 | gpl-2.0 |
7a78e7b0cc413ff2895b199a5134e92e45f21fb4 | o-/Rexperiments | src/library/base/R/cut.R | # File src/library/base/R/cut.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2014 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 versi... | 2,897 | gpl-2.0 |
7a78e7b0cc413ff2895b199a5134e92e45f21fb4 | hxfeng/R-3.1.2 | src/library/base/R/cut.R | # File src/library/base/R/cut.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2014 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 versi... | 2,897 | gpl-2.0 |
7a78e7b0cc413ff2895b199a5134e92e45f21fb4 | jeffreyhorner/R-Array-Hash | src/library/base/R/cut.R | # File src/library/base/R/cut.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2014 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 versi... | 2,897 | gpl-2.0 |
7a78e7b0cc413ff2895b199a5134e92e45f21fb4 | cmosetick/RRO | R-src/src/library/base/R/cut.R | # File src/library/base/R/cut.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2014 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 versi... | 2,897 | gpl-2.0 |
6f33709dd71fd22630e8eec47572a28f82960fbb | isglobal-brge/MultiDataSet | R/MultiDataSet-dims.R | #' @describeIn MultiDataSet Returns the dimensions of the sets
#' @aliases dims
setMethod(
f = "dims",
signature = c("MultiDataSet"),
definition = function(x) {
dims <- lapply(names(x), function(name) c(Features = nrow(pData(x@featureData[[name]]$main)),
... | 443 | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.