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 |
|---|---|---|---|---|---|
5a27816aaa6be982268a66d5a6a920350567e792 | printedheart/h2o-3 | h2o-test-integ/tests/hdfs-bigdata/runit_NOPASS_airlines_billion_rows.R | #----------------------------------------------------------------------
# Purpose: This test exercises HDFS operations from R.
#----------------------------------------------------------------------
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit-hadoop.R')
ipPort <- get_a... | 2,645 | apache-2.0 |
5a27816aaa6be982268a66d5a6a920350567e792 | madmax983/h2o-3 | h2o-test-integ/tests/hdfs-bigdata/runit_NOPASS_airlines_billion_rows.R | #----------------------------------------------------------------------
# Purpose: This test exercises HDFS operations from R.
#----------------------------------------------------------------------
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit-hadoop.R')
ipPort <- get_a... | 2,645 | apache-2.0 |
c9bd589ae83bc3f61cd2861e8287f1d8a9dcbf0c | mtennekes/tmap | examples/tm_text.R | current.mode <- tmap_mode("plot")
data(World, metro)
tm_shape(World) +
tm_text("name", size="AREA")
tm_shape(World) +
tm_text("name", size="pop_est", col="continent", palette="Dark2",
title.size = "Population", title.col="Continent") +
tm_legend(outside = TRUE)
tmap_mode("view")
\dontrun{
require(tmaptool... | 552 | gpl-3.0 |
59aa93f2415a5a0f4c6d89650568bf25e5b1a91b | philchalmers/faoutlier | inst/vignette-source/R/objects.R | library(faoutlier)
nfact <- 3
CFAmodel <- specifyModel("CFAmodel.txt")
mod1 <- sem(CFAmodel, data = holzinger)
so <- summary(mod1)
MD1 <- robustMD(holzinger)
MD2 <- robustMD(holzinger.outlier)
OR1 <- obs.resid(holzinger, nfact)
OR2 <- obs.resid(holzinger.outlier, nfact)
GOF1 <- GOF(holzinger, nfact)
GOF2 <- GOF... | 613 | gpl-2.0 |
25e2c60467ffef107ec4e5ceb273174458724eb2 | andrewdefries/andrewdefries.github.io | FDA_Pesticide_Glossary/sodium_azide.R | library("knitr")
library("rgl")
#knit("sodium_azide.Rmd")
#markdownToHTML('sodium_azide.md', 'sodium_azide.html', options=c("use_xhml"))
#system("pandoc -s sodium_azide.html -o sodium_azide.pdf")
knit2html('sodium_azide.Rmd')
| 228 | mit |
c30cff98ff5071bdf5dce138743a7d83a6794562 | spennihana/h2o-3 | h2o-r/tests/testdir_misc/runit_groupby.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Run through groupby methods with different column types
##
test <- function(conn) {
Log.info("Upload prostate dataset into H2O...")
df.hex <- h2o.uploadFile(locate("smalldata/prostate/prostate.csv... | 1,965 | apache-2.0 |
65dd8e2fa6bfb9a398640774a8729c57b2bcac26 | hidelab/Amberkar_Scripts | msmm_reseq_Braak_STG_DCN_analysis.R | library(cocor)
library(org.Hs.eg.db)
library(parallel)
library(data.table)
ncore = detectCores()
blocksize=100000
ProcessElement <- function(ic){
A = ceiling((sqrt(8*(ic+1)-7)+1)/2)
B = ic-choose(floor(1/2+sqrt(2*ic)),2)
c_A = c_exprs_rank[A,]
c_B = c_exprs_rank[B,]
t_A = t_exprs_rank[A,]
t_B = t_exp... | 6,372 | gpl-3.0 |
c30cff98ff5071bdf5dce138743a7d83a6794562 | mathemage/h2o-3 | h2o-r/tests/testdir_misc/runit_groupby.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Run through groupby methods with different column types
##
test <- function(conn) {
Log.info("Upload prostate dataset into H2O...")
df.hex <- h2o.uploadFile(locate("smalldata/prostate/prostate.csv... | 1,965 | apache-2.0 |
c30cff98ff5071bdf5dce138743a7d83a6794562 | nilbody/h2o-3 | h2o-r/tests/testdir_misc/runit_groupby.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Run through groupby methods with different column types
##
test <- function(conn) {
Log.info("Upload prostate dataset into H2O...")
df.hex <- h2o.uploadFile(locate("smalldata/prostate/prostate.csv... | 1,965 | apache-2.0 |
c30cff98ff5071bdf5dce138743a7d83a6794562 | michalkurka/h2o-3 | h2o-r/tests/testdir_misc/runit_groupby.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Run through groupby methods with different column types
##
test <- function(conn) {
Log.info("Upload prostate dataset into H2O...")
df.hex <- h2o.uploadFile(locate("smalldata/prostate/prostate.csv... | 1,965 | apache-2.0 |
c30cff98ff5071bdf5dce138743a7d83a6794562 | YzPaul3/h2o-3 | h2o-r/tests/testdir_misc/runit_groupby.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Run through groupby methods with different column types
##
test <- function(conn) {
Log.info("Upload prostate dataset into H2O...")
df.hex <- h2o.uploadFile(locate("smalldata/prostate/prostate.csv... | 1,965 | apache-2.0 |
c30cff98ff5071bdf5dce138743a7d83a6794562 | jangorecki/h2o-3 | h2o-r/tests/testdir_misc/runit_groupby.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Run through groupby methods with different column types
##
test <- function(conn) {
Log.info("Upload prostate dataset into H2O...")
df.hex <- h2o.uploadFile(locate("smalldata/prostate/prostate.csv... | 1,965 | apache-2.0 |
c30cff98ff5071bdf5dce138743a7d83a6794562 | h2oai/h2o-dev | h2o-r/tests/testdir_misc/runit_groupby.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Run through groupby methods with different column types
##
test <- function(conn) {
Log.info("Upload prostate dataset into H2O...")
df.hex <- h2o.uploadFile(locate("smalldata/prostate/prostate.csv... | 1,965 | apache-2.0 |
65dd8e2fa6bfb9a398640774a8729c57b2bcac26 | hidelab/Amberkar_Scripts | msmm_reseq_Braak_IFG_DCN_analysis.R | library(cocor)
library(org.Hs.eg.db)
library(parallel)
library(data.table)
ncore = detectCores()
blocksize=100000
ProcessElement <- function(ic){
A = ceiling((sqrt(8*(ic+1)-7)+1)/2)
B = ic-choose(floor(1/2+sqrt(2*ic)),2)
c_A = c_exprs_rank[A,]
c_B = c_exprs_rank[B,]
t_A = t_exprs_rank[A,]
t_B = t_exp... | 6,372 | gpl-3.0 |
ef0b999133472507136f603c5a69cb1b11f25edd | DFITC/fts | introTS/3-1.R | #3-1
require(fUnitRoots)
da = read.table("m-CAUS-7611.txt", header = T)
ca = da[,3]
#(a)
d = 0
acf(ca)
acf(diff(ca))
acf(diff(diff(ca)))
pacf(diff(diff(ca)))
p = 6
q = 3
m2 = arima(ca, order = c(p,d,q))
m2
Box.test(m2$residuals, lag = 12, type = 'Ljung')
#using forecast
require(forecast)
ca = diff(diff(ca))
auto.ari... | 801 | gpl-3.0 |
ef0b999133472507136f603c5a69cb1b11f25edd | xiaoyem/fts | introTS/3-1.R | #3-1
require(fUnitRoots)
da = read.table("m-CAUS-7611.txt", header = T)
ca = da[,3]
#(a)
d = 0
acf(ca)
acf(diff(ca))
acf(diff(diff(ca)))
pacf(diff(diff(ca)))
p = 6
q = 3
m2 = arima(ca, order = c(p,d,q))
m2
Box.test(m2$residuals, lag = 12, type = 'Ljung')
#using forecast
require(forecast)
ca = diff(diff(ca))
auto.ari... | 801 | gpl-3.0 |
9df21375e92665fac26586ab5fd83051b8052c5f | Bath-ML/parking | r/BANEScarparkinglite/R/process_records.R | #' Clean up raw records
#'
#' Uses functions from the \code{dplyr} package to clean up raw records obtained
#' from the Bath: Hacked datastore. The process is as follows:
#' \itemize{
#' \item Select columns containing useful information only
#' \item Remove any records with NA entries
#' \item Remove records for "... | 4,291 | mit |
c0f2fcd0f16f92f9c92e955269c1032f0e47cf6d | PirateGrunt/raw_las | scripts/06_5_MorningRecap.R | ## ------------------------------------------------------------------------
num<-10000; ml<-5; sdl<-2
x1<-rlnorm(num,meanlog=ml,sdlog=sdl)
q1<-quantile(x1,probs=seq(from=.1,to=.9,by=.1))
mySummary<-c(min(x1),max(x1),mean(x1),sd(x1),q1)
names(mySummary)[1:4]<-c("Min","Max","Mean","SD")
mySummary
## ------... | 1,984 | gpl-3.0 |
9df21375e92665fac26586ab5fd83051b8052c5f | owenjonesuob/parking | r/BANEScarparkinglite/R/process_records.R | #' Clean up raw records
#'
#' Uses functions from the \code{dplyr} package to clean up raw records obtained
#' from the Bath: Hacked datastore. The process is as follows:
#' \itemize{
#' \item Select columns containing useful information only
#' \item Remove any records with NA entries
#' \item Remove records for "... | 4,291 | mit |
3b368b5a22cf27de805799076b27419caf6ec0e0 | EduPek/Coursera-R | corr.R | corr <- function(directory, threshold = 0) {
workDir <- getwd()
setwd(directory)
k = 1
cr<-numeric(length=0)
for(i in 1:332){
rr <- complete("",i)
wdata <- read.csv(fileNbr(i))
if ( rr[1,2] > threshold){
cr[k] <- cor(wdata[["nitrate"]], wdata[["sulfate"]], use = "na.or.complete"... | 410 | gpl-2.0 |
8c2dd9aeb80dc6cdd31927616e4682f7e78dca79 | coolbutuseless/GRIM | data-raw/parse.R | library(readr)
library(stringr)
library(dplyr)
library(pryr)
GRIM <- read_csv("grim.csv") %>%
mutate(AGE_GROUP = as.factor(str_replace_all(AGE_GROUP , "\x96", "-")),
cause_of_death = as.factor(str_replace_all(cause_of_death, "\x96", "-")),
SEX = as.factor(SEX)
) %>% select(-Recor... | 380 | mit |
c92123af14e542a1a63aa6fe35be4afce0bd7af0 | GeoscienceAustralia/ptha | misc/nearshore_testing_2020/swals/compare_runtimes_nonlinearOffshore_LinearPlusManningOffshore.R | source('/g/data/w85/tsunami/CODE/gadi/ptha/propagation/SWALS/plot.R')
# Get runtimes for linear-plus-manning model
all_wallclock_times_LM = lapply(Sys.glob('OUTPUTS/Tohoku2011_YamakaziEtAl2018-risetime_0-full-linear_with_manning-0.035-highres_NSW/RUN_20200610_073112227/*.log'), get_domain_wallclock_times_in_log)
all_w... | 2,052 | bsd-3-clause |
27483be8e2bf1be23770b7464f24cdbbce8e0354 | benizar/capbreu-builder | rscripts/csv_bind.R | #!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
# test if there is at least one argument: if not, return an error
if (length(args)==0) {
stop("At least one argument must be supplied (input file).", call.=FALSE)
} else if (length(args)==1) {
# default output file
args[2] = "out.txt"
}
bind.csvs <- ... | 617 | gpl-3.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | h2oai/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
829d1270423983ed58d06a65ecb4970dd5fe7d98 | kalibera/rexp | src/library/tools/R/build.R | # File src/library/tools/R/build.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 ve... | 41,797 | gpl-2.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | YzPaul3/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | jangorecki/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | h2oai/h2o-dev | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | spennihana/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | mathemage/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | michalkurka/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
cd00aaf18ad36f042794171516cc0d1b110f15a3 | nilbody/h2o-3 | h2o-r/tests/testdir_munging/exec/runit_eq2_slotAssign.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
##
# Test: [<-
# Description: Select a dataset, select columns, change values in the column, re-assign col
# Variations: Single col, multi-col, factor col
# Author: Spencer
##
#setupRandomSeed(168963... | 1,458 | apache-2.0 |
10615031e120d5eeb2b2a871d5507da49bfba3b2 | sfcheung/RNotes | Misc/medMC.R | # Test indirect effect in mediation using Monte Carlo method.
# Shu Fai Cheung
# Last modified: 2015-01-17
# Adapted from the R code in Preacher and Selig (2012).
# Preacher, K. J., & Selig, J. P. (2012). Advantages of
# Monte Carlo confidence intervals for indirect effects.
# Communication Methods and Measures, 6... | 3,535 | gpl-2.0 |
90d14f0d5320577c2d8ce8f82df8a79a5ed07d93 | andrewejaffe/winterR_2016 | Functions/lecture/Functions.R | ## ----return2, comment="",prompt=TRUE-------------------------------------
return2 = function(x) {
return(x[2])
}
return2(c(1,4,5,76))
## ----return2a, comment="",prompt=TRUE------------------------------------
return2a = function(x) {
x[2]
}
return2a(c(1,4,5,76))
## ----return2b, comment="",prompt=TRUE---------... | 1,799 | mit |
25079ecb5e8106514c7bf7f95a09c40103b5f2a2 | quantifish/TagGrowth | R/plot_linf.R | #' Plot L infinity
#'
#' @export
#'
plot_linf <- function(report, file_name = "LinfPrior")
{
png(paste(file_name, ".png", sep = ""), width=5, height=5, units="in", res=300)
par(mfrow = c(1, 1))
x <- 75:275
priorF <- dnorm(x = x, mean = 180.20, sd = 0.102*180.20)
priorM <- dnorm(x = x, mean = 169.07... | 901 | mit |
90d14f0d5320577c2d8ce8f82df8a79a5ed07d93 | andrewejaffe/summerR_2016 | Functions/lecture/Functions.R | ## ----return2, comment="",prompt=TRUE-------------------------------------
return2 = function(x) {
return(x[2])
}
return2(c(1,4,5,76))
## ----return2a, comment="",prompt=TRUE------------------------------------
return2a = function(x) {
x[2]
}
return2a(c(1,4,5,76))
## ----return2b, comment="",prompt=TRUE---------... | 1,799 | mit |
cf63a63191ca96ba1dfbe5211bf7be17e9139c4b | vankesteren/jasp-desktop | JASP-Tests/R/tests/testthat/test-ldgaussianunivariate.R | context("Discover Distributions - Normal")
options <- jasptools::analysisOptions("LDgaussianunivariate")
options$.meta <- list(newVariableName = list(containsColumn = TRUE), variable = list(
containsColumn = TRUE))
options$andersonDarling <- TRUE
options$ciInterval <- TRUE
options$cramerVonMisses <- TRUE
options$ecd... | 6,257 | agpl-3.0 |
3f81c50745c0a090adc1f45154855ee20a161ad4 | andy-thomason/r-source | tests/reg-tests-1c.R | ## Regression tests for R >= 3.0.0
pdf("reg-tests-1c.pdf", encoding = "ISOLatin1.enc")
## 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))
setMethod("[[", "... | 30,965 | gpl-2.0 |
fd4c28d11d4a235cb98895257de11aab895eb477 | ron1818/PhD_code | misc/outlier_fn.R | # outlier detection and removal functions
#http://stats.stackexchange.com/questions/1142/simple-algorithm-for-online-outlier-detection-of-a-generic-time-series
my_res_iqr_outliers <- function(x,iqr.factor=1.5,plot=TRUE)
{
x <- as.ts(x)
if(frequency(x)>1){ # may have seasonal
resid <- stl(x,s.window="periodic",r... | 2,090 | gpl-3.0 |
e6b88a9458ee80e01c652bd346efc46bc75c83eb | brightchen/h2o-3 | h2o-r/tests/testdir_autoGen/runit_complexFilterTest_allyears2k_headers_38.R | ##
# Author: Autogenerated on 2013-12-18 17:01:19
# gitHash: 2581a0dfa12a51892283830529a5126ea49f0cb9
# SEED: 2481425483200553751
##
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
complexFilterTest_allyears2k_headers_38 <- function() {
Log.info("A munge-task R unit ... | 1,639 | apache-2.0 |
e6b88a9458ee80e01c652bd346efc46bc75c83eb | printedheart/h2o-3 | h2o-r/tests/testdir_autoGen/runit_complexFilterTest_allyears2k_headers_38.R | ##
# Author: Autogenerated on 2013-12-18 17:01:19
# gitHash: 2581a0dfa12a51892283830529a5126ea49f0cb9
# SEED: 2481425483200553751
##
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
complexFilterTest_allyears2k_headers_38 <- function() {
Log.info("A munge-task R unit ... | 1,639 | apache-2.0 |
3f81c50745c0a090adc1f45154855ee20a161ad4 | nathan-russell/r-source | tests/reg-tests-1c.R | ## Regression tests for R >= 3.0.0
pdf("reg-tests-1c.pdf", encoding = "ISOLatin1.enc")
## 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))
setMethod("[[", "... | 30,965 | gpl-2.0 |
92e46fe42a90017c6e9da12fb58c8c57064d69a6 | FujitsuLaboratories/COMEVIZZ | app/R/run.R | library(shiny)
#' start COMEVIZZ
#' @importFrom shiny runApp shinyApp
#' @export
run <- function() {
shiny::runApp(
shiny::shinyApp(ui, server),
host = "0.0.0.0", port = 3838
)
}
| 192 | apache-2.0 |
3f81c50745c0a090adc1f45154855ee20a161ad4 | andy-thomason/little_r | test/R-tests/reg-tests-1c.R | ## Regression tests for R >= 3.0.0
pdf("reg-tests-1c.pdf", encoding = "ISOLatin1.enc")
## 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))
setMethod("[[", "... | 30,965 | mit |
d2a208b782f2034359bc4b0bdc90e667df7a6f90 | rmunoz12/chromeR | R/chrome.R | # chrome.R
# Graphing chromosome IBD segments
# Copyright (c) 2015 Richard Munoz
#
# This file is part of chromeR.
#
# chromeR is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, o... | 8,356 | gpl-3.0 |
e6b88a9458ee80e01c652bd346efc46bc75c83eb | junwucs/h2o-3 | h2o-r/tests/testdir_autoGen/runit_complexFilterTest_allyears2k_headers_38.R | ##
# Author: Autogenerated on 2013-12-18 17:01:19
# gitHash: 2581a0dfa12a51892283830529a5126ea49f0cb9
# SEED: 2481425483200553751
##
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
complexFilterTest_allyears2k_headers_38 <- function() {
Log.info("A munge-task R unit ... | 1,639 | apache-2.0 |
e6b88a9458ee80e01c652bd346efc46bc75c83eb | datachand/h2o-3 | h2o-r/tests/testdir_autoGen/runit_complexFilterTest_allyears2k_headers_38.R | ##
# Author: Autogenerated on 2013-12-18 17:01:19
# gitHash: 2581a0dfa12a51892283830529a5126ea49f0cb9
# SEED: 2481425483200553751
##
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
complexFilterTest_allyears2k_headers_38 <- function() {
Log.info("A munge-task R unit ... | 1,639 | apache-2.0 |
a4f5cc4f3150be8ea7ef3fd04fbc2387c8f429d1 | compops/phd-thesis | example-philips/ex-philips-posteriors.R | ##############################################################################
##############################################################################
# Example 3.13
# Particle Metropolis-Hastings for Swedish inflation/unemployment
# Reproduces Figure 3.9
#
# Copyright (c) 2016 Johan Dahlin [ johan.dahlin (at) l... | 2,852 | gpl-3.0 |
ec7e8af056f78fb51239536c0c9610b9eeea7fa2 | pauEscarcia/BigData-Zacatecas | Rprogramming/SubsettingVector.R | #the [ operator always returns an object of the same class as the original.
#the [[ operator is used to extract elements of a list or a data frame
#The $ operator is used to extract elements of a list or data frame by literal name.
x <- c ("a","b","c","d","a")
x[1]
x[2]
x[1:4]
x[c(1,2,3)]
u <- x>"a"
x[x>"a"]
| 310 | cc0-1.0 |
bfc083a45411c68190b80187e702923c14040a65 | GeoscienceAustralia/ptha | R/examples/austptha_template/DATA/HAZARD_POINTS/make_gridded_hazard_points.R | # Add some gridded hazard points
library(raster)
r1 = raster('../ELEV/merged_dem/merged_gebco_ga250_dem_patched.tif')
#
# Get other hazard points -- note the files have latitude before longitude,
# which we correct
#
haz_GA250_20 = read.table('OUTPUTS/OUTPUT_GA250_20m/haz_pts_W-180.txt',
skip=1, header=FALSE)
haz... | 2,471 | bsd-3-clause |
21d743e11769dae93ff21e6959b89a9641a13e46 | raysinensis/seq-for100mats | stats/KS.R | c0<-read.table("C:/Users/Rui/Desktop/nc0.csv",sep=",",header=TRUE)
c0$Freq=c0$Freq/100
c0vec=rep(c0$Val,c0$Freq)
c2<-read.table("C:/Users/Rui/Desktop/nc2.csv",sep=",",header=TRUE)
c2$Freq=c2$Freq/100
c2vec=rep(c2$Val,c2$Freq)
cresult=ks.test(c0vec,c2vec,exact=TRUE)
cresult$p.value
| 290 | mit |
ba7d778f75310c033f52cbce05d6f7a50c2f4e96 | distributions-io/gumbel-cdf | test/fixtures/test.number.R | options( digits = 16 )
library( jsonlite )
library( FAdist )
mu = 0
beta = 2
x = c( -5, -2.5, 0, 2.5, 5 )
y = pgumbel( x, beta, mu )
cat( y, sep = ",\n" )
data = list(
mu = mu,
beta = beta,
data = x,
expected = y
)
write( toJSON( data, digits = 16, auto_unbox = TRUE ), "./test/fixtures/number.json" )
| 310 | mit |
7cf1791a7ffae5d694ec4fe843e69cfc1a5c2adb | SchlossLab/Sze_FollowUps_Microbiome_2017 | code/reduced_srn/srn_reduced_run_78_RF.R | ### Build the best lesion model possible
### Try XG-Boost, RF, Logit (GLM), C5.0, SVM
### Find the best based on Jenna Wiens suggestions on test and training
## Marc Sze
#Load needed libraries
source('code/functions.R')
loadLibs(c("dplyr", "caret","scales", "doMC"))
load("exploratory/srn_RF_reduced_feature... | 1,796 | mit |
afb27d1041ef57c40ba864e613151756dcf69203 | andrewcparnell/simms_course | ap_notes/revision_of_R/Revision_of_R.R | ############################################################################################################
# Section 0:
# First a reminder about RStudio, and getting help with ? and ??, = vs <-, and comments, and setting the working directory
###########################################################################... | 14,631 | gpl-2.0 |
f3523cecee3bada46069d8401169e45ef9645ecc | rintukutum/r-class-igib | class-2/maxormin.R | maxormin<- function(mat){
n <- 1
for(i in 1:nrow(mat)){
for(j in 1:ncol(mat)){
if(is.na(mat[i,j]) == TRUE){
# NO OPERATION
}else{
if(n == 1){
min <- mat[i,j]
max <- mat[i,j]
n <- n+1
}else{
if (mat[i,j]<min){
min<- mat[i,j]
}
... | 509 | mit |
16ee8fb805a413fcead7a5adbfae762576617853 | awohns/selection | analysis/polymap_rename.R | #Rename the populations as we want to use them for the
#polygenic analysis.
#Don't forget to create symlinks to the snp and geno files.
data <- read.table("~/data/v6/use/v61kg_europe2names.ind", as.is=TRUE)
polymap <- read.table("~/data/v6/use/polymap.txt", as.is=TRUE)
for(i in 1:NROW(polymap)){
data[data[,3]==p... | 466 | mit |
06279bfde8ad1e3909ad44cab4feea0354cf9a6f | aronlindberg/hub_turkr | Hub_Miner/R/orgs.R | #' List all public organizations for an unauthenticated user. Lists private and public organizations for authenticated users.
#'
#' @param user the user
#'
#' @param ctx the githb context object
#'
#' @return the list of organizations
get.user.organizations <- function(user, ctx = get.github.context())
.api.get.reque... | 7,650 | gpl-2.0 |
16ee8fb805a413fcead7a5adbfae762576617853 | mathii/europe_selection | analysis/polymap_rename.R | #Rename the populations as we want to use them for the
#polygenic analysis.
#Don't forget to create symlinks to the snp and geno files.
data <- read.table("~/data/v6/use/v61kg_europe2names.ind", as.is=TRUE)
polymap <- read.table("~/data/v6/use/polymap.txt", as.is=TRUE)
for(i in 1:NROW(polymap)){
data[data[,3]==p... | 466 | mit |
06279bfde8ad1e3909ad44cab4feea0354cf9a6f | aronlindberg/rgithub | R/orgs.R | #' List all public organizations for an unauthenticated user. Lists private and public organizations for authenticated users.
#'
#' @param user the user
#'
#' @param ctx the githb context object
#'
#' @return the list of organizations
get.user.organizations <- function(user, ctx = get.github.context())
.api.get.reque... | 7,650 | mit |
06279bfde8ad1e3909ad44cab4feea0354cf9a6f | akhmed1/rgithub | R/orgs.R | #' List all public organizations for an unauthenticated user. Lists private and public organizations for authenticated users.
#'
#' @param user the user
#'
#' @param ctx the githb context object
#'
#' @return the list of organizations
get.user.organizations <- function(user, ctx = get.github.context())
.api.get.reque... | 7,650 | mit |
556b518abb4b87ba596acc66fd319b09491f246c | adib/BankConverter | csv-ocbc.R | #!/usr/bin/env Rscript --vanilla
#
# Reformat OCBC 360 Saving Account pseudo-CSV export into a proper CSV file that is ready for import into a personal finance software.
#
# OCBC's CSV file format starts with five lines of header information containing:
# - the account number
# - account balances
# - header inf... | 3,788 | bsd-2-clause |
06279bfde8ad1e3909ad44cab4feea0354cf9a6f | bilakhiaricky/hub_turkr | Hub_Miner/R/orgs.R | #' List all public organizations for an unauthenticated user. Lists private and public organizations for authenticated users.
#'
#' @param user the user
#'
#' @param ctx the githb context object
#'
#' @return the list of organizations
get.user.organizations <- function(user, ctx = get.github.context())
.api.get.reque... | 7,650 | gpl-2.0 |
ea30cb4bba62029f0a9ad6d5bdeee9ba0ec700a8 | Myasuka/systemml | system-ml/src/test/scripts/functions/aggregate/RowMins.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,046 | apache-2.0 |
ea30cb4bba62029f0a9ad6d5bdeee9ba0ec700a8 | aloknsingh/systemml | system-ml/src/test/scripts/functions/aggregate/RowMins.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,046 | apache-2.0 |
ea30cb4bba62029f0a9ad6d5bdeee9ba0ec700a8 | ckadner/systemml | system-ml/src/test/scripts/functions/aggregate/RowMins.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,046 | apache-2.0 |
ea30cb4bba62029f0a9ad6d5bdeee9ba0ec700a8 | fmakari/systemml | system-ml/src/test/scripts/functions/aggregate/RowMins.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,046 | apache-2.0 |
ea30cb4bba62029f0a9ad6d5bdeee9ba0ec700a8 | wjuncdl/systemml | system-ml/src/test/scripts/functions/aggregate/RowMins.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,046 | apache-2.0 |
ea30cb4bba62029f0a9ad6d5bdeee9ba0ec700a8 | dusenberrymw/systemml_old | system-ml/src/test/scripts/functions/aggregate/RowMins.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,046 | apache-2.0 |
33a053fce99e7bf650e5be8af20810388e143ff5 | cxxr-devel/cxxr-svn-mirror | src/library/Recommended/rpart/R/rpartcallback.R | ## This routine sets up the callback code for user-written split
## routines in rpart
##
rpartcallback <- function(mlist, nobs, init)
{
if (length(mlist) < 3L)
stop("User written methods must have 3 functions")
if (!is.function(mlist$init))
stop("User written method does not contain an 'init' f... | 5,028 | gpl-2.0 |
33a053fce99e7bf650e5be8af20810388e143ff5 | andeek/rpart | R/rpartcallback.R | ## This routine sets up the callback code for user-written split
## routines in rpart
##
rpartcallback <- function(mlist, nobs, init)
{
if (length(mlist) < 3L)
stop("User written methods must have 3 functions")
if (!is.function(mlist$init))
stop("User written method does not contain an 'init' f... | 5,028 | gpl-3.0 |
0772f096c3e45fe7eb6e16b4548fca3746a53ad1 | cxxr-devel/cxxr | src/extra/testr/filtered-test-suite/round/tc_round_3.R | expected <- structure(list(lowerNorm = c(1, 0.707, 0.704, 0.634, 0.629, 0.559,
0.554, 0.548, 0.47, 0.398, 0.391, 0.383, 0.374, 0.277, 0.186,
0.176, 0.153, 0.138, 0.122), upperNorm = c(1, 1, 1, 0.98, 0.984,
0.947, 0.952, 0.958, 0.91, 0.857, 0.864, 0.872, 0.881, 0.799,
0.71, 0.72, 0.744, 0.758, 0.775), lowerNormS = c... | 2,345 | gpl-2.0 |
920e286c46518ec79050600232fbef892e1cbce8 | pkprabhat/ML-and-Finance | Deep Learning Analysis/airbCCFunction.R | library("neuralnet")
set.seed(10000)
EAD = 200000
LGD = 0.5
R = 0.04
#i = 0:100
#PD = 0.000 to 0.200
M = 2
eq0 <- function(x) {x/500}
eq3 <- function(PD) {(LGD*pnorm(((1/(1-R))^0.5)*qnorm(PD)+((R/(1-R))^0.5)*qnorm(0.999))-LGD*PD)}
eq4 <- function(K) {K*12.5*EAD}
response = matrix(data=NA, nrow=100,ncol=1)
attribute... | 1,573 | gpl-3.0 |
0772f096c3e45fe7eb6e16b4548fca3746a53ad1 | kmillar/cxxr | src/extra/testr/filtered-test-suite/round/tc_round_3.R | expected <- structure(list(lowerNorm = c(1, 0.707, 0.704, 0.634, 0.629, 0.559,
0.554, 0.548, 0.47, 0.398, 0.391, 0.383, 0.374, 0.277, 0.186,
0.176, 0.153, 0.138, 0.122), upperNorm = c(1, 1, 1, 0.98, 0.984,
0.947, 0.952, 0.958, 0.91, 0.857, 0.864, 0.872, 0.881, 0.799,
0.71, 0.72, 0.744, 0.758, 0.775), lowerNormS = c... | 2,345 | gpl-2.0 |
0772f096c3e45fe7eb6e16b4548fca3746a53ad1 | krlmlr/cxxr | src/extra/testr/filtered-test-suite/round/tc_round_3.R | expected <- structure(list(lowerNorm = c(1, 0.707, 0.704, 0.634, 0.629, 0.559,
0.554, 0.548, 0.47, 0.398, 0.391, 0.383, 0.374, 0.277, 0.186,
0.176, 0.153, 0.138, 0.122), upperNorm = c(1, 1, 1, 0.98, 0.984,
0.947, 0.952, 0.958, 0.91, 0.857, 0.864, 0.872, 0.881, 0.799,
0.71, 0.72, 0.744, 0.758, 0.775), lowerNormS = c... | 2,345 | gpl-2.0 |
46b9697333829fa089211f4f366be78b13c43121 | ldebrot/flashcards | studyblue_csv_to_rda.R | ##############################################################################
### STUDYBLUE CSV TO RDA CONVERTER ###
##############################################################################
###
###
### README : This is a small script to convert CSV files exported by Study... | 7,252 | gpl-3.0 |
74cecd23ba013cc6d997579cc7b00097bc54f6e4 | tylermorganwall/skpr | R/pipeimport.R | #' re-export magrittr pipe operator
#'
#' @importFrom magrittr %>%
#' @name %>%
#' @rdname pipe
#' @export
NULL
| 112 | gpl-3.0 |
74cecd23ba013cc6d997579cc7b00097bc54f6e4 | GeorgeMKhoury/skpr | R/pipeimport.R | #' re-export magrittr pipe operator
#'
#' @importFrom magrittr %>%
#' @name %>%
#' @rdname pipe
#' @export
NULL
| 112 | gpl-3.0 |
0772f096c3e45fe7eb6e16b4548fca3746a53ad1 | kmillar/rho | src/extra/testr/filtered-test-suite/round/tc_round_3.R | expected <- structure(list(lowerNorm = c(1, 0.707, 0.704, 0.634, 0.629, 0.559,
0.554, 0.548, 0.47, 0.398, 0.391, 0.383, 0.374, 0.277, 0.186,
0.176, 0.153, 0.138, 0.122), upperNorm = c(1, 1, 1, 0.98, 0.984,
0.947, 0.952, 0.958, 0.91, 0.857, 0.864, 0.872, 0.881, 0.799,
0.71, 0.72, 0.744, 0.758, 0.775), lowerNormS = c... | 2,345 | gpl-2.0 |
0772f096c3e45fe7eb6e16b4548fca3746a53ad1 | ArunChauhan/cxxr | src/extra/testr/filtered-test-suite/round/tc_round_3.R | expected <- structure(list(lowerNorm = c(1, 0.707, 0.704, 0.634, 0.629, 0.559,
0.554, 0.548, 0.47, 0.398, 0.391, 0.383, 0.374, 0.277, 0.186,
0.176, 0.153, 0.138, 0.122), upperNorm = c(1, 1, 1, 0.98, 0.984,
0.947, 0.952, 0.958, 0.91, 0.857, 0.864, 0.872, 0.881, 0.799,
0.71, 0.72, 0.744, 0.758, 0.775), lowerNormS = c... | 2,345 | gpl-2.0 |
74cecd23ba013cc6d997579cc7b00097bc54f6e4 | sakrejda/parse-stan | R/00-import.R | #' re-export magrittr pipe operator
#'
#' @importFrom magrittr %>%
#' @name %>%
#' @rdname pipe
#' @export
NULL
| 112 | gpl-3.0 |
0772f096c3e45fe7eb6e16b4548fca3746a53ad1 | rho-devel/rho | src/extra/testr/filtered-test-suite/round/tc_round_3.R | expected <- structure(list(lowerNorm = c(1, 0.707, 0.704, 0.634, 0.629, 0.559,
0.554, 0.548, 0.47, 0.398, 0.391, 0.383, 0.374, 0.277, 0.186,
0.176, 0.153, 0.138, 0.122), upperNorm = c(1, 1, 1, 0.98, 0.984,
0.947, 0.952, 0.958, 0.91, 0.857, 0.864, 0.872, 0.881, 0.799,
0.71, 0.72, 0.744, 0.758, 0.775), lowerNormS = c... | 2,345 | gpl-2.0 |
92c773655c0228d6ae94eea7d1d30dfb5b15ef9e | ellispatrick/sydSeq | Examples/pMim/processmiRNAcounts.R | countsMi = as.matrix(read.csv('../../Data/pMim/miRNAcounts.csv',row.names = 1))
load("ensembl.gene.RData")
mir = ensembl.gene[ensembl.gene$ensembl_gene_id %in% rownames(countsMi), ]$mirbase_id
names(mir) = ensembl.gene[ensembl.gene$ensembl_gene_id %in% rownames(countsMi), ]$ensembl_gene_id
mir = unlist(lapply(strsplit(... | 943 | mit |
82de513da89c45f58ca0843b7eb1e3968dda0c68 | sam-s/ESS | test/literate/misc.R |
##### Indentation
### 1 ----------------------------------------------------------------
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-M-q"
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-u"
##! "C-M-q"
{
fun¶_call(
argument
... | 358 | gpl-2.0 |
b74e0cbf1edfd67b2ed58e74f3a3455f30f096cb | nielsrhansen/ppstat | pkg/R/MarkedPointProcess.R | setMethod("markedPointProcess", c("data.frame", "ContinuousProcess"),
function(pointData, continuousData, markVar = 'markType', coarsen = NULL, ...) {
## Initialize an empty object - bypasses validity
## check. Validity function called before returning object
#... | 30,452 | gpl-2.0 |
82de513da89c45f58ca0843b7eb1e3968dda0c68 | emacs-ess/ESS | test/literate/misc.R |
##### Indentation
### 1 ----------------------------------------------------------------
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-M-q"
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-u"
##! "C-M-q"
{
fun¶_call(
argument
... | 358 | gpl-3.0 |
82de513da89c45f58ca0843b7eb1e3968dda0c68 | emacsmirror/ess | test/literate/misc.R |
##### Indentation
### 1 ----------------------------------------------------------------
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-M-q"
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-u"
##! "C-M-q"
{
fun¶_call(
argument
... | 358 | gpl-3.0 |
294ac8f487f7ccc02cb4ca70156b68ccb34a935c | madmax983/h2o-3 | h2o-r/tests/testdir_algos/gbm/runit_GBM_groupsplit_bigcat.R |
library(gbm)
test.GBM.bigcat <- function() {
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
Log.info("Importing bigcat_5000x2.csv data...\n")
bigcat.hex <- h2o.uploa... | 1,670 | apache-2.0 |
82de513da89c45f58ca0843b7eb1e3968dda0c68 | dellison/ESS | test/literate/misc.R |
##### Indentation
### 1 ----------------------------------------------------------------
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-M-q"
{
fun¶_call(
argument
) +
stuff1
} +
stuff2
##! "C-u"
##! "C-M-q"
{
fun¶_call(
argument
... | 358 | gpl-2.0 |
294ac8f487f7ccc02cb4ca70156b68ccb34a935c | pchmieli/h2o-3 | h2o-r/tests/testdir_algos/gbm/runit_GBM_groupsplit_bigcat.R |
library(gbm)
test.GBM.bigcat <- function() {
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
Log.info("Importing bigcat_5000x2.csv data...\n")
bigcat.hex <- h2o.uploa... | 1,670 | apache-2.0 |
008b0d2fec659e7f0e637f5025835680ac1ef88b | jirikadlec2/rushvalley | R/demo.R | #example R-script for plotting values from HydroServer
#this example compares ndvi for 'mammal' and 'no mammal'
#to run this script, you must install the packages devtools, XML, RCurl, plyr, ggplot2
require(XML)
require(RCurl)
require(plyr)
require(ggplot2)
#install the development version of the waterml package!
lib... | 2,764 | mit |
e5be6ecb99c40021d2f8c22d214c5614866892bb | iainmstott/popdemo | 1.3-0/popdemo/R/sens.R | ################################################################################
#' Calculate sensitivity matrix
#'
#' @description
#' Calculate the sensitivity matrix for a population matrix projection model
#' using eigenvectors.
#'
#' @param A a square, non-negative numeric matrix of any dimension
#' @param eval th... | 2,139 | gpl-3.0 |
e5be6ecb99c40021d2f8c22d214c5614866892bb | iainmstott/popdemo | 1.3-1/popdemo/R/sens.R | ################################################################################
#' Calculate sensitivity matrix
#'
#' @description
#' Calculate the sensitivity matrix for a population matrix projection model
#' using eigenvectors.
#'
#' @param A a square, non-negative numeric matrix of any dimension
#' @param eval th... | 2,139 | gpl-3.0 |
60d17629885b6e52dea70ed6f785e136bfc928bb | mbjoseph/gmix_networks | R/rwalk.R | # simulation of observations at one location
library(igraph)
n_nodes <- sample(5:20, 1)
Anet <- sample_pa(n_nodes, directed=FALSE)
plot(Anet)
Atrue <- as.matrix(as_adj(Anet))
s <- colSums(Atrue)
# maximum number of observations
zmax <- 1000
b <- rep(NA, zmax)
timesteps <- rep(NA, zmax)
clus <- rep(NA, zmax)
# initial... | 1,899 | gpl-2.0 |
d47eeba53adc596d97cc8cc4412fd187c3862578 | b-steve/sscr | R/RcppExports.R | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
make_toa_ssq <- function(capt, dists, sound_speed) {
.Call('_sscr_make_toa_ssq', PACKAGE = 'sscr', capt, dists, sound_speed)
}
| 259 | gpl-3.0 |
24f0a6493d27f1d7154e95ca367828a7ea6440ea | variani/bigcov | R/bigcov.R | #' @export
bigcov <- function(data, center = TRUE, scale = FALSE,
num_splits = 2,
verbose = 0, ...)
{
big_cov(data, center = center, scale = scale,
num_splits = num_splits,
verbose = verbose, ...)
}
#' @export
big_cov <- function(data, center = TRUE, scale = FALSE,
num_splits = 2,
verbose = 0, ...)
{
#... | 675 | gpl-3.0 |
bb9c9341cdb6f8428629459449e6c13daf731c2a | USGS-R/sbtools | R/query_sb_spatial.R | #' @title Query SB based on spatial extent
#'
#' @inheritParams query_sb
#' @param bbox An sp spatial data object. The bounding box of the object is used for the query.
#' @param long A vector of longitude values that will define the boundaries of a bounding box. Min and Max of supplied longitudes are used. (alternate... | 2,148 | cc0-1.0 |
7f927d531465f221e4834eeeab984a9bef450f07 | kogalur/randomForestSRC | src/main/resources/cran/R/vimp.rfsrc.R | vimp.rfsrc <- function(object,
xvar.names,
m.target = NULL,
importance = c("anti", "permute", "random"),
block.size = 10,
joint = FALSE,
seed = NULL,
do.trace ... | 2,530 | gpl-3.0 |
01d56c476c111bf7140192d3e38675502a549cd0 | cities-lab/tci | ExploreCutoff/sensitivity_analysis_output.R | # This script prepares the workspace and file directories for calculating travel time
# and travel cost with employment centres methods
# Set workspace
setwd("~/tci")
var_list.0 <- ls()
source("code/cluster/settings.R")
# define density cutoff and total cutoff
den.cutoff <- c(50,60,70,80,90,95)
tot.cutoff <-... | 9,045 | gpl-2.0 |
b7f3c8c694197985fcea42efeabafeb5484fd763 | zhangyaonju/Global_GPP_VPM_NCEP_C3C4 | NCEP/climate_data_ncep_aggregate.R | climate_data_ncep_aggregate<-function(year){
air.temp.file<-nc_open(paste('/data/eomf/users/yzhang/NCEP/origin/air.2m.gauss.',year,'.nc',sep=''))
radiation.file<-nc_open(paste('/data/eomf/users/yzhang/NCEP/origin/dswrf.sfc.gauss.',year,'.nc',sep=''))
outfile<-c(paste('/data/eomf/users/yzhang/NCEP/temperature... | 3,847 | apache-2.0 |
339b46a0563c5e5a9d15449a940f7d20b62b18de | Shians/Glimma | man-roxygen/return_glMDSPlot.R | #' @return Draws a two-panel interactive MDS plot in an html page. The left
#' panel contains the plot between two MDS dimensions, with annotations
#' displayed on hover. The right panel contains a bar plot of the eigenvalues
#' of each dimension, clicking on any of the bars will plot the corresponding
#' dimen... | 353 | lgpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.