content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
# last modified 2011-07-30 optimizerNlminb <- function(start, objective=objectiveML, gradient=TRUE, maxiter, debug, par.size, model.description, warn, ...){ with(model.description, { obj <- objective(gradient=gradient) objective <- obj$objective grad <- if (gradient) obj$gradient else NULL ...
/R/optimizerNlminb.R
no_license
cran/sem
R
false
false
1,335
r
# last modified 2011-07-30 optimizerNlminb <- function(start, objective=objectiveML, gradient=TRUE, maxiter, debug, par.size, model.description, warn, ...){ with(model.description, { obj <- objective(gradient=gradient) objective <- obj$objective grad <- if (gradient) obj$gradient else NULL ...
testlist <- list(cost = structure(1.68972201013703e-09, .Dim = c(1L, 1L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19, 7.49487861616974e+223, 8.52929466674086e+86, 2.51852491380534e-303, 3.12954510408264e-253, 2.45741775099414e-215, 6....
/epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926016-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,018
r
testlist <- list(cost = structure(1.68972201013703e-09, .Dim = c(1L, 1L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19, 7.49487861616974e+223, 8.52929466674086e+86, 2.51852491380534e-303, 3.12954510408264e-253, 2.45741775099414e-215, 6....
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827908-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
643
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
testlist <- list(x = c(-1L, -1L, -1L, -180L, -589825L, -11788759L, -11731124L, 1275068416L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
/diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609961639-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
467
r
testlist <- list(x = c(-1L, -1L, -1L, -180L, -589825L, -11788759L, -11731124L, 1275068416L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
library(testthat) library(rPackedBar) test_check("rPackedBar")
/data/genthat_extracted_code/rPackedBar/tests/testthat.R
no_license
surayaaramli/typeRrh
R
false
false
64
r
library(testthat) library(rPackedBar) test_check("rPackedBar")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fitness_functions.R \name{users.dataSources.patch} \alias{users.dataSources.patch} \title{Updates the specified data source. The dataStreamId, dataType, type, dataStreamName, and device properties with the exception of version, cannot be modi...
/googlefitnessv1.auto/man/users.dataSources.patch.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
2,369
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fitness_functions.R \name{users.dataSources.patch} \alias{users.dataSources.patch} \title{Updates the specified data source. The dataStreamId, dataType, type, dataStreamName, and device properties with the exception of version, cannot be modi...
library(data.table) library(ggplot2) library(ggthemes) m = fread("../data/1000G.chr20.marker.txt", header = T, stringsAsFactors = F) fgt = fread("result.chr20.ibd.FGT.txt", header = T, stringsAsFactors = F) dgt = fread("result.chr20.ibd.DGT.txt", header = T, stringsAsFactors = F) hmm = fread("result.chr20.ibd.HMM....
/1000G/full/plot_lens.R
no_license
pkalbers/ScriptCollection
R
false
false
14,263
r
library(data.table) library(ggplot2) library(ggthemes) m = fread("../data/1000G.chr20.marker.txt", header = T, stringsAsFactors = F) fgt = fread("result.chr20.ibd.FGT.txt", header = T, stringsAsFactors = F) dgt = fread("result.chr20.ibd.DGT.txt", header = T, stringsAsFactors = F) hmm = fread("result.chr20.ibd.HMM....
library(ape) testtree <- read.tree("6622_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6622_0_unrooted.txt")
/codeml_files/newick_trees_processed/6622_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("6622_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6622_0_unrooted.txt")
survey<-read.csv("./data/Survey_Responses_return.csv") template<-read.csv("./data/Demographics Template.csv") survey<-survey[,c(1:15,22:26,33,29,35,38,36,37,40:57,16:21,39,27,28,30:32,34)] #Creat empaty new columns survey$Case.Number<-rep(NA,nrow(survey)) survey$CA..USI<-rep(NA,nrow(survey)) survey$CA..PAS.ID<-rep(NA...
/script/Survey_To_ETO.R
no_license
glorialy/Survey_upload_Tool
R
false
false
1,510
r
survey<-read.csv("./data/Survey_Responses_return.csv") template<-read.csv("./data/Demographics Template.csv") survey<-survey[,c(1:15,22:26,33,29,35,38,36,37,40:57,16:21,39,27,28,30:32,34)] #Creat empaty new columns survey$Case.Number<-rep(NA,nrow(survey)) survey$CA..USI<-rep(NA,nrow(survey)) survey$CA..PAS.ID<-rep(NA...
library(ranger) library(survival) context("ranger_maxstat") test_that("maxstat splitting works for survival", { rf <- ranger(Surv(time, status) ~ ., veteran, splitrule = "maxstat") expect_is(rf, "ranger") expect_lt(rf$prediction.error, 0.4) }) test_that("maxstat splitting works for regression", { rf <- ranger...
/data/genthat_extracted_code/ranger/tests/test_maxstat.R
no_license
surayaaramli/typeRrh
R
false
false
1,845
r
library(ranger) library(survival) context("ranger_maxstat") test_that("maxstat splitting works for survival", { rf <- ranger(Surv(time, status) ~ ., veteran, splitrule = "maxstat") expect_is(rf, "ranger") expect_lt(rf$prediction.error, 0.4) }) test_that("maxstat splitting works for regression", { rf <- ranger...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{isNormByGroup} \alias{isNormByGroup} \title{Helper method which determines if a biomarker is normally distributed by group at alpha level 0.05.} \usage{ isNormByGroup(dataFrame, marker) } \arguments{ \item{dataFrame}{The data fra...
/man/isNormByGroup.Rd
no_license
JWLevesque/AMS597-Group-5-Project
R
false
true
798
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{isNormByGroup} \alias{isNormByGroup} \title{Helper method which determines if a biomarker is normally distributed by group at alpha level 0.05.} \usage{ isNormByGroup(dataFrame, marker) } \arguments{ \item{dataFrame}{The data fra...
testlist <- list(a = 9.97924695498953e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
/BayesMRA/inst/testfiles/rmvn_arma_scalar/AFL_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1615926296-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
117
r
testlist <- list(a = 9.97924695498953e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
## makeCacheMatrix function creates a list containg 4 functions: ## 1. set(), 2. get(), 3. setinv(), 4. getinv() ## inv is set to NULL so that when makeCacheMatrix is called for the first time ther is no stored inverse ## value of the data and inv are set in set() method of this function ## value of x can be obtained b...
/cachematrix.R
no_license
AnirudhNandan/ProgrammingAssignment2
R
false
false
1,528
r
## makeCacheMatrix function creates a list containg 4 functions: ## 1. set(), 2. get(), 3. setinv(), 4. getinv() ## inv is set to NULL so that when makeCacheMatrix is called for the first time ther is no stored inverse ## value of the data and inv are set in set() method of this function ## value of x can be obtained b...
context("simpr::fit") library(tidyverse) test_that("Multiple fit functions give different results", { set.seed(100) chisq_spec = variables(x1 = ~rnorm(n), x2 = ~x1 + rnorm(n, 0, sd = 2), c1 = ~ cut(x1, breaks = b) %>% as.numeric, c2 = ~ cu...
/tests/testthat/test_fit.R
no_license
jsm19-tds-demo/simpr
R
false
false
681
r
context("simpr::fit") library(tidyverse) test_that("Multiple fit functions give different results", { set.seed(100) chisq_spec = variables(x1 = ~rnorm(n), x2 = ~x1 + rnorm(n, 0, sd = 2), c1 = ~ cut(x1, breaks = b) %>% as.numeric, c2 = ~ cu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tubern.R \name{tubern_POST} \alias{tubern_POST} \title{POST} \usage{ tubern_POST(path, query = NULL, body = "", ...) } \arguments{ \item{path}{path to specific API request URL} \item{query}{query list} \item{body}{passing image...
/man/tubern_POST.Rd
permissive
cran/tubern
R
false
true
455
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tubern.R \name{tubern_POST} \alias{tubern_POST} \title{POST} \usage{ tubern_POST(path, query = NULL, body = "", ...) } \arguments{ \item{path}{path to specific API request URL} \item{query}{query list} \item{body}{passing image...
#' Arrange correlation matrices from cross.correlate into a table format #' #' @param res Output from cross.correlate #' @param verbose verbose #' #' @return Correlation table #' #' @export #' #' @examples #' data(peerj32) #' d1 <- peerj32$microbes[1:20, 1:10] #' d2 <- peerj32$lipids[1:20,1:10] #' ...
/R/utils.R
no_license
chaokang2012/microbiome
R
false
false
9,560
r
#' Arrange correlation matrices from cross.correlate into a table format #' #' @param res Output from cross.correlate #' @param verbose verbose #' #' @return Correlation table #' #' @export #' #' @examples #' data(peerj32) #' d1 <- peerj32$microbes[1:20, 1:10] #' d2 <- peerj32$lipids[1:20,1:10] #' ...
#Quantile normalization, good R programming practice!!! #Sep 23, 2016 quantile.norm<-function (PM){ order.PM <- apply(PM, 2, sort) #get the same dimension of matrix with ordered columns mean.PM <- apply(order.PM, 1, mean) #get the rowmean rank<-apply(PM,2, rank, ties.method="first") #get the column rank finish...
/05stat_R_scripts/quantile.norm.cnv.R
no_license
seqmachine/scripts
R
false
false
1,658
r
#Quantile normalization, good R programming practice!!! #Sep 23, 2016 quantile.norm<-function (PM){ order.PM <- apply(PM, 2, sort) #get the same dimension of matrix with ordered columns mean.PM <- apply(order.PM, 1, mean) #get the rowmean rank<-apply(PM,2, rank, ties.method="first") #get the column rank finish...
load_libraries <- function(libraries) { invisible( lapply( libraries, library, character.only = TRUE, warn.conflicts = FALSE ) ) }
/packages/helpers/load_libraries.R
no_license
pedrorio/statistical_learning
R
false
false
165
r
load_libraries <- function(libraries) { invisible( lapply( libraries, library, character.only = TRUE, warn.conflicts = FALSE ) ) }
source('util.R') eps_cone_proj <- function(Z, eps) { decomp <- eigen(Z, symmetric=TRUE) return(decomp$vec %*% (pmax(decomp$val, eps) * t(decomp$vec))) } xue_cov <- function(S, lambda, eps, mu=2, tol=1e-3, max_it=500) { p <- nrow(S) Sigma <- soft_threshold(S, lambda, modify_diag=FALSE) Omega <- S Lambda <-...
/sparse_mle.R
permissive
leeyang/sparse_stein_cov
R
false
false
1,583
r
source('util.R') eps_cone_proj <- function(Z, eps) { decomp <- eigen(Z, symmetric=TRUE) return(decomp$vec %*% (pmax(decomp$val, eps) * t(decomp$vec))) } xue_cov <- function(S, lambda, eps, mu=2, tol=1e-3, max_it=500) { p <- nrow(S) Sigma <- soft_threshold(S, lambda, modify_diag=FALSE) Omega <- S Lambda <-...
# unemployment is loaded in the workspace summary(unemployment)
/Regression.R
no_license
Pavithira-Satheesh/Pavi
R
false
false
64
r
# unemployment is loaded in the workspace summary(unemployment)
shinyServer(function(input, output, session) { output$plot <- renderPlot({ plot(cars, type=input$plotType) }) output$summary <- renderPrint({ summary(cars) }) output$table <- renderDataTable({ cars }, options=list(pageLength=10)) })
/B_analysts_sources_github/seandavi/Mammomics/server.R
no_license
Irbis3/crantasticScrapper
R
false
false
259
r
shinyServer(function(input, output, session) { output$plot <- renderPlot({ plot(cars, type=input$plotType) }) output$summary <- renderPrint({ summary(cars) }) output$table <- renderDataTable({ cars }, options=list(pageLength=10)) })
setwd('~/Documents/a-mmm-lab/a-ml/data') cdata = read.csv('5-crack-surface-normal.csv', header=T) cor(cdata$distance_to_grain_boundary, cdata$dadN3Dline) cor(cdata$dadN3Dline, cdata$distance_to_grain_boundary) lm.fit=lm(dadN3Dline~scaled_angle,data=cdata) lm.fit summary(lm.fit) confint(lm.fit) predict(lm.fit,data.frame...
/r/old-testing/1-linear-regression.R
no_license
nathanwilk7/mmm-lab-features-ml
R
false
false
1,749
r
setwd('~/Documents/a-mmm-lab/a-ml/data') cdata = read.csv('5-crack-surface-normal.csv', header=T) cor(cdata$distance_to_grain_boundary, cdata$dadN3Dline) cor(cdata$dadN3Dline, cdata$distance_to_grain_boundary) lm.fit=lm(dadN3Dline~scaled_angle,data=cdata) lm.fit summary(lm.fit) confint(lm.fit) predict(lm.fit,data.frame...
## Title: Programming Assignment 2 - Lexical Scoping ## Week 2 Assignment (Peer Graded) of 4-Week R-Programming course; ## second course in the Data Science Specialization series ## Function: Creates a special "matrix" object that can cache its inverse ## Assumption: The matrix supplied is always invertible makeCache...
/cachematrix.R
no_license
oliahad/ProgrammingAssignment2
R
false
false
1,449
r
## Title: Programming Assignment 2 - Lexical Scoping ## Week 2 Assignment (Peer Graded) of 4-Week R-Programming course; ## second course in the Data Science Specialization series ## Function: Creates a special "matrix" object that can cache its inverse ## Assumption: The matrix supplied is always invertible makeCache...
#' UI part of report overview module #' #' @param id Shiny namespace id. #' #' @return UI elements for report overview module. #' @export #' @import shiny reportOverviewModuleUI <- function(id) { ns <- shiny::NS(id) shiny::tagList( HTML("This page shows the summary of the classifications in the selected sample...
/R/module_overview_table.R
no_license
alartin/pavian
R
false
false
5,847
r
#' UI part of report overview module #' #' @param id Shiny namespace id. #' #' @return UI elements for report overview module. #' @export #' @import shiny reportOverviewModuleUI <- function(id) { ns <- shiny::NS(id) shiny::tagList( HTML("This page shows the summary of the classifications in the selected sample...
#------------------------------------------------------------- # # 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...
/src/test/scripts/functions/vect/VectorizeForLoopUnaryColPos.R
permissive
apache/systemds
R
false
false
1,189
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...
#-----------TWITTER DATA ANALYTICS USING R------------------ consumer_key <- "GIVE YOUR CONSUMER KEY" consumer_secret_key <- "SECRETKEY" access_token <- "ACCESS_TOKEN" access_token_secret <- "TOKEN SECRET" consumer_key install.packages("twitteR") install.packages("httr") install.packages("ROAuth") install.packages(...
/src/ml-using-r-programming/twitter_data_sentimental_analysis_using_r.r
no_license
ajayghoshrr/machine-learning-and-stuff
R
false
false
9,324
r
#-----------TWITTER DATA ANALYTICS USING R------------------ consumer_key <- "GIVE YOUR CONSUMER KEY" consumer_secret_key <- "SECRETKEY" access_token <- "ACCESS_TOKEN" access_token_secret <- "TOKEN SECRET" consumer_key install.packages("twitteR") install.packages("httr") install.packages("ROAuth") install.packages(...
# Adobe Experience Manager OSGI config (AEM) API # # Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # # OpenAPI spec version: 1.0.0-pre.0 # Contact: opensource@shinesolutions.com # Generated by: https://openapi-generator.tech #' ComAdobeCqSocialServiceusersInte...
/clients/r/generated/R/ComAdobeCqSocialServiceusersInternalImplServiceUserWrapperImplProperties.r
permissive
shinesolutions/swagger-aem-osgi
R
false
false
2,746
r
# Adobe Experience Manager OSGI config (AEM) API # # Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # # OpenAPI spec version: 1.0.0-pre.0 # Contact: opensource@shinesolutions.com # Generated by: https://openapi-generator.tech #' ComAdobeCqSocialServiceusersInte...
library(tidyverse) library(rjson) # stages <- c("2", "4", "6") FILES <- fs::dir_info("C:/Users/Jake/Documents/R Code/p-c/Stage Telemetry/") %>% filter(str_sub(path, 1, 3) == "tdf") %>% filter(str_detect(path, "step")) # con <- dbConnect(MySQL(), host='localhost', dbname='cycl...
/Clean download file TDF Telemetry.R
no_license
jalnichols/p-c
R
false
false
1,265
r
library(tidyverse) library(rjson) # stages <- c("2", "4", "6") FILES <- fs::dir_info("C:/Users/Jake/Documents/R Code/p-c/Stage Telemetry/") %>% filter(str_sub(path, 1, 3) == "tdf") %>% filter(str_detect(path, "step")) # con <- dbConnect(MySQL(), host='localhost', dbname='cycl...
elnet=function(x,is.sparse,ix,jx,y,weights,offset,type.gaussian=c("covariance","naive"),alpha,nobs,nvars,jd,vp,cl,ne,nx,nlam,flmin,ulam,thresh,isd,intr,vnames,maxit){ maxit=as.integer(maxit) weights=as.double(weights) ### compute the null deviance ybar=weighted.mean(y,weights) nulldev=sum(weights* (y-ybar)^2) i...
/R/elnet.R
no_license
Kimberly7fei/glmnet
R
false
false
1,864
r
elnet=function(x,is.sparse,ix,jx,y,weights,offset,type.gaussian=c("covariance","naive"),alpha,nobs,nvars,jd,vp,cl,ne,nx,nlam,flmin,ulam,thresh,isd,intr,vnames,maxit){ maxit=as.integer(maxit) weights=as.double(weights) ### compute the null deviance ybar=weighted.mean(y,weights) nulldev=sum(weights* (y-ybar)^2) i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TCRAffinity.R \name{contactFootprintDensityPlot} \alias{contactFootprintDensityPlot} \alias{Features_sCPP} \alias{univariateCorrelationAnalysis} \alias{univariateCorrelationPlot} \alias{univariateFeatureSelect} \alias{multivariateRegr...
/man/TCRAffinity.Rd
permissive
abuguadalajara/Repitope
R
false
true
2,713
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TCRAffinity.R \name{contactFootprintDensityPlot} \alias{contactFootprintDensityPlot} \alias{Features_sCPP} \alias{univariateCorrelationAnalysis} \alias{univariateCorrelationPlot} \alias{univariateFeatureSelect} \alias{multivariateRegr...
library(rgdal) library(sf) #import spatial data coord<-"CRSstring" #ex:"+proj=utm +zone=16 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" #set coordinate system shp_project<-spTransform(shp, CRS(coord)) #apply CRS to new object #do stuff....... #using sf package (much easier) shp<-shp %>% st_transform(4326) #or whate...
/reproject/reproject.R
no_license
rnall0/rgistoolbox
R
false
false
351
r
library(rgdal) library(sf) #import spatial data coord<-"CRSstring" #ex:"+proj=utm +zone=16 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" #set coordinate system shp_project<-spTransform(shp, CRS(coord)) #apply CRS to new object #do stuff....... #using sf package (much easier) shp<-shp %>% st_transform(4326) #or whate...
## There are two functions below. One is to create a "spectial" matrix ##that can cacge its inverse The second function computes the inverse ## create a matrix acctualy contains set,get,setinverse and ##getinverse functions makeCacheMatrix <- function(x = matrix()) { i <- NULL ##set the value of matrix se...
/cachematrix.R
no_license
xiaoheyu/ProgrammingAssignment2
R
false
false
1,253
r
## There are two functions below. One is to create a "spectial" matrix ##that can cacge its inverse The second function computes the inverse ## create a matrix acctualy contains set,get,setinverse and ##getinverse functions makeCacheMatrix <- function(x = matrix()) { i <- NULL ##set the value of matrix se...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AuthenticationManager.R \docType{methods} \name{showAuth} \alias{showAuth} \alias{showAuth,AuthenticationManager,D1Node-method} \title{Display all authentication information} \usage{ showAuth(.Object, node) \S4method{showAuth}{Authentication...
/dataone/man/showAuth.Rd
permissive
couture322/rdataone
R
false
true
505
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AuthenticationManager.R \docType{methods} \name{showAuth} \alias{showAuth} \alias{showAuth,AuthenticationManager,D1Node-method} \title{Display all authentication information} \usage{ showAuth(.Object, node) \S4method{showAuth}{Authentication...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/column_summary.R \docType{class} \name{ColumnSummary} \alias{ColumnSummary} \title{ColumnSummary} \format{ An \code{R6Class} generator object } \description{ ColumnSummary Class } \section{Public fields}{ \if{html}{\out{<div class="r6-fields"...
/auto-generated-sdk/man/ColumnSummary.Rd
permissive
afernandes85/analyticsapi-engines-r-sdk
R
false
true
2,910
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/column_summary.R \docType{class} \name{ColumnSummary} \alias{ColumnSummary} \title{ColumnSummary} \format{ An \code{R6Class} generator object } \description{ ColumnSummary Class } \section{Public fields}{ \if{html}{\out{<div class="r6-fields"...
# Load dataset and Filter dates: powerDT <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";") filterPowerDT <- subset(powerDT, Date %in% c("1/2/2007", "2/2/2007")) # Convert Time to Date dateTime <- strptime(paste(filterPowerDT$Date, filterPowerDT$Time, sep = " "), "%d/%m/%Y %H:%M:%S") #...
/plot2.R
no_license
Trochillianne/04.-Exploratory-Data-Analysis_Project1
R
false
false
551
r
# Load dataset and Filter dates: powerDT <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";") filterPowerDT <- subset(powerDT, Date %in% c("1/2/2007", "2/2/2007")) # Convert Time to Date dateTime <- strptime(paste(filterPowerDT$Date, filterPowerDT$Time, sep = " "), "%d/%m/%Y %H:%M:%S") #...
#' @title #' WFG8 Function #' #' @description #' Eighth test problem from the "Walking Fish Group" problem generator toolkit. #' #' @references #' S. Huband, P. Hingston, L. Barone, and L. While, "A Review of Multi-objective #' Test Problems and a Scalable Test Problem Toolkit," in IEEE Transactions on #' Evolutionary ...
/R/mof.WFG8.R
permissive
jakobbossek/smoof
R
false
false
2,594
r
#' @title #' WFG8 Function #' #' @description #' Eighth test problem from the "Walking Fish Group" problem generator toolkit. #' #' @references #' S. Huband, P. Hingston, L. Barone, and L. While, "A Review of Multi-objective #' Test Problems and a Scalable Test Problem Toolkit," in IEEE Transactions on #' Evolutionary ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigatewayv2_service.R \name{apigatewayv2} \alias{apigatewayv2} \title{AmazonApiGatewayV2} \usage{ apigatewayv2() } \description{ Amazon API Gateway V2 } \section{Operations}{ \tabular{ll}{ \link[=apigatewayv2_create_api]{create_api} \tab Cr...
/cran/paws.networking/man/apigatewayv2.Rd
permissive
peoplecure/paws
R
false
true
5,297
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigatewayv2_service.R \name{apigatewayv2} \alias{apigatewayv2} \title{AmazonApiGatewayV2} \usage{ apigatewayv2() } \description{ Amazon API Gateway V2 } \section{Operations}{ \tabular{ll}{ \link[=apigatewayv2_create_api]{create_api} \tab Cr...
library(metaflu) library(ggplot2) library(dplyr) library(doMC) library(tidyr) library(purrr) library(gridExtra) library(abind) registerDoMC(cores = 20) library(doRNG) library(grid) set.seed(123) #source(rprojroot::find_rstudio_root_file("R","summarizing_functions.R")) # Scripts to produce results of varying 1 or 2 par...
/culling_paper_code.R
no_license
kateroyce/internship-research
R
false
false
1,513
r
library(metaflu) library(ggplot2) library(dplyr) library(doMC) library(tidyr) library(purrr) library(gridExtra) library(abind) registerDoMC(cores = 20) library(doRNG) library(grid) set.seed(123) #source(rprojroot::find_rstudio_root_file("R","summarizing_functions.R")) # Scripts to produce results of varying 1 or 2 par...
\name{ani.start} \alias{ani.start} \alias{ani.stop} \title{Generate an HTML animation page} \usage{ ani.start(...) ani.stop(...) } \arguments{ \item{...}{arguments passed to \code{\link{ani.options}} to set animation parameters} } \description{ These functions are defunct and should not be used any more. } \ke...
/man/ani.start.Rd
no_license
tomoky0820/animation
R
false
false
336
rd
\name{ani.start} \alias{ani.start} \alias{ani.stop} \title{Generate an HTML animation page} \usage{ ani.start(...) ani.stop(...) } \arguments{ \item{...}{arguments passed to \code{\link{ani.options}} to set animation parameters} } \description{ These functions are defunct and should not be used any more. } \ke...
# Robert J. Hijmans # May 2010 # Version 1.0 # Licence GPL v3 rotated <- function(x) { isTRUE(try(x@rotated, silent=TRUE)) } setMethod("rectify", signature(x="Raster"), function(x, ext, res, method='ngb', filename='', ...) { stopifnot(rotated(x)) if ( missing(ext)) { ext <- extent(x) } els...
/R/rectify.R
no_license
cran/raster
R
false
false
542
r
# Robert J. Hijmans # May 2010 # Version 1.0 # Licence GPL v3 rotated <- function(x) { isTRUE(try(x@rotated, silent=TRUE)) } setMethod("rectify", signature(x="Raster"), function(x, ext, res, method='ngb', filename='', ...) { stopifnot(rotated(x)) if ( missing(ext)) { ext <- extent(x) } els...
#install.packages("ggplot2") library(ggplot2) # diamond is build in data table head(diamonds) tail(diamonds) #scatter plot b = qplot(diamonds$carat, diamonds$price, col = diamonds$clarity) b
/Diamond.R
no_license
PaulSaikat/R-Programming
R
false
false
205
r
#install.packages("ggplot2") library(ggplot2) # diamond is build in data table head(diamonds) tail(diamonds) #scatter plot b = qplot(diamonds$carat, diamonds$price, col = diamonds$clarity) b
\name{IdtMxSNDE-class} \Rdversion{1.1} \docType{class} \alias{IdtMxSNDE-class} \title{Class IdtMxSNDE} \description{IdtMxSNDE contains the results of a mixture model estimation for the Skew-Normal model, with the four different possible variance-covariance configurations. } \section{Slots}{ \describe{ ...
/fuzzedpackages/MAINT.Data/man/IdtMxSNDE-class.Rd
no_license
akhikolla/testpackages
R
false
false
3,176
rd
\name{IdtMxSNDE-class} \Rdversion{1.1} \docType{class} \alias{IdtMxSNDE-class} \title{Class IdtMxSNDE} \description{IdtMxSNDE contains the results of a mixture model estimation for the Skew-Normal model, with the four different possible variance-covariance configurations. } \section{Slots}{ \describe{ ...
\name{Ising-methods} \alias{print.IsingFit} \alias{plot.IsingFit} \alias{summary.IsingFit} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Methods for IsingFit objects } \description{ Print method prints the IsingFit output , plot method plots the estimated network (with the \code{qgraph} package...
/man/methods.Rd
no_license
cran/IsingFit
R
false
false
841
rd
\name{Ising-methods} \alias{print.IsingFit} \alias{plot.IsingFit} \alias{summary.IsingFit} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Methods for IsingFit objects } \description{ Print method prints the IsingFit output , plot method plots the estimated network (with the \code{qgraph} package...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chose_parents.R \name{tournament_selection} \alias{tournament_selection} \title{tournament_selection} \usage{ tournament_selection(y, dataset, individuals, k = 4, n_var, objective = "AIC") } \arguments{ \item{y}{response variable} \item{da...
/man/tournament_selection.Rd
no_license
yachuan/GA
R
false
true
883
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chose_parents.R \name{tournament_selection} \alias{tournament_selection} \title{tournament_selection} \usage{ tournament_selection(y, dataset, individuals, k = 4, n_var, objective = "AIC") } \arguments{ \item{y}{response variable} \item{da...
# JAGs Code --------------------------------------------------------------- install.packages("coda") install.packages("mvtnorm") install.packages("rjags") install.packages("boot") install.packages("knitr") install.packages("usethis") install.packages("nlme") install.packages("glmmTMB") #install.packages("sjSDM") inst...
/1.Code/backup_1.R
no_license
EttnerAndreas/Andreas-Ettner-Max-Internship
R
false
false
17,135
r
# JAGs Code --------------------------------------------------------------- install.packages("coda") install.packages("mvtnorm") install.packages("rjags") install.packages("boot") install.packages("knitr") install.packages("usethis") install.packages("nlme") install.packages("glmmTMB") #install.packages("sjSDM") inst...
## PROCESS LSMS AND DHS DATA ## #### Preliminaries: Load packages, create new folders, define aggregation functions #### setwd('/home/cslovell/PycharmProjects/predicting-poverty') # Set working directory to where you downloaded the replication folder rm(list=ls()) library(magrittr) library(foreign) library(raster) ext...
/scripts/ProcessSurveyData.R
permissive
escap-data-hub/predicting-poverty
R
false
false
11,918
r
## PROCESS LSMS AND DHS DATA ## #### Preliminaries: Load packages, create new folders, define aggregation functions #### setwd('/home/cslovell/PycharmProjects/predicting-poverty') # Set working directory to where you downloaded the replication folder rm(list=ls()) library(magrittr) library(foreign) library(raster) ext...
## Second File of the App ## We read ones again the required program. library(shiny) ## Define server logic required to draw a histogram shinyServer(function(input, output) { output$distPlot <- renderPlot({ samples <- faithful[, 2] bins <- seq(min(samples), max(samples), length.out = 1) ...
/server.R
no_license
herson44/DevopingDataProductsproject
R
false
false
446
r
## Second File of the App ## We read ones again the required program. library(shiny) ## Define server logic required to draw a histogram shinyServer(function(input, output) { output$distPlot <- renderPlot({ samples <- faithful[, 2] bins <- seq(min(samples), max(samples), length.out = 1) ...
library(mefa4) library(pbapply) library(RColorBrewer) ROOT <- "e:/peter/AB_data_v2016/out/birds" ROOT2 <- "~/Dropbox/josm/2016/wewp" #setwd("c:/p/AB_data_v2015/out/birds/results") #fl <- list.files() #fl2 <- gsub("birds_bam-", "birds_abmi-", fl) #for (i in 1:length(fl)) # if (fl[i] != fl2[i]) # file.rename(...
/R/results-josm.R
no_license
psolymos/abmianalytics
R
false
false
31,196
r
library(mefa4) library(pbapply) library(RColorBrewer) ROOT <- "e:/peter/AB_data_v2016/out/birds" ROOT2 <- "~/Dropbox/josm/2016/wewp" #setwd("c:/p/AB_data_v2015/out/birds/results") #fl <- list.files() #fl2 <- gsub("birds_bam-", "birds_abmi-", fl) #for (i in 1:length(fl)) # if (fl[i] != fl2[i]) # file.rename(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/601.Local-odds-ratio.R \name{Local.Odds.Ratio} \alias{Local.Odds.Ratio} \title{Given an input matrix, we can split it into smaller sub-matrix (min 2x2) and then find the Chi-squared test for each sub-matrix. The smaller matrix can "support" ...
/man/Local.Odds.Ratio.Rd
no_license
RajeswaranV/vcdPlus
R
false
true
2,437
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/601.Local-odds-ratio.R \name{Local.Odds.Ratio} \alias{Local.Odds.Ratio} \title{Given an input matrix, we can split it into smaller sub-matrix (min 2x2) and then find the Chi-squared test for each sub-matrix. The smaller matrix can "support" ...
library(rCUR) ### Name: STTm ### Title: Soft tissue tumour dataset ### Aliases: STTm ### Keywords: datasets ### ** Examples data(STTm)
/data/genthat_extracted_code/rCUR/examples/STTm.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
142
r
library(rCUR) ### Name: STTm ### Title: Soft tissue tumour dataset ### Aliases: STTm ### Keywords: datasets ### ** Examples data(STTm)
#' @title Fuse learner with the bagging technique. #' #' @description #' Fuses a learner with the bagging method #' (i.e., similar to what a \code{randomForest} does). #' Creates a learner object, which can be #' used like any other learner object. #' Models can easily be accessed via \code{\link{getBaggingModels}}. #'...
/R/BaggingWrapper.R
no_license
narayana1208/mlr
R
false
false
6,025
r
#' @title Fuse learner with the bagging technique. #' #' @description #' Fuses a learner with the bagging method #' (i.e., similar to what a \code{randomForest} does). #' Creates a learner object, which can be #' used like any other learner object. #' Models can easily be accessed via \code{\link{getBaggingModels}}. #'...
library(bizdays) ### Name: other-calendars ### Title: Calendars from other packages ### Aliases: other-calendars load_quantlib_calendars ### load_rmetrics_calendars ### ** Examples if (require("RQuantLib")) { # loading Argentina calendar load_quantlib_calendars('Argentina', from='2016-01-01', to='2016-12-31') ...
/data/genthat_extracted_code/bizdays/examples/other-calendars.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
969
r
library(bizdays) ### Name: other-calendars ### Title: Calendars from other packages ### Aliases: other-calendars load_quantlib_calendars ### load_rmetrics_calendars ### ** Examples if (require("RQuantLib")) { # loading Argentina calendar load_quantlib_calendars('Argentina', from='2016-01-01', to='2016-12-31') ...
\name{priceCDS} \alias{priceCDS} %- Also NEED an '\alias' for EACH other topic documented here. \title{Credit Default Swap Pricing} \description{ A function that calculates the spreads of several Credit Default Swaps (different maturities) from a yield curve and a credit curve. } \details{ In brief, a CDS is used t...
/credule/man/priceCDS.Rd
no_license
freephys/credule
R
false
false
5,817
rd
\name{priceCDS} \alias{priceCDS} %- Also NEED an '\alias' for EACH other topic documented here. \title{Credit Default Swap Pricing} \description{ A function that calculates the spreads of several Credit Default Swaps (different maturities) from a yield curve and a credit curve. } \details{ In brief, a CDS is used t...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "steel-plates-fault") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = make...
/models/openml_steel-plates-fault/classification_Class/5c366254cfd778235fc51c318d447d98/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
728
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "steel-plates-fault") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = make...
library(shiny) library(leaflet) source("countryDataFetcher.R") countryData <- fetchCountryData() shinyUI(fluidPage( titlePanel("Choose a country to see the map and flag!"), sidebarLayout( sidebarPanel( selectizeInput("country", label = "Choose country", ...
/ui.R
no_license
seuvitor/developing-data-products-course-project
R
false
false
1,056
r
library(shiny) library(leaflet) source("countryDataFetcher.R") countryData <- fetchCountryData() shinyUI(fluidPage( titlePanel("Choose a country to see the map and flag!"), sidebarLayout( sidebarPanel( selectizeInput("country", label = "Choose country", ...
rename.column <- function(df,old_name,new_name){ # rename column of data frame df that was called old_name to new_name colnames(df)[colnames(df) == old_name] <- new_name return(df) } remove.column <- function(df,cname){return(df[,-which(colnames(df) == cname)])} collapse.columns <- function(df,cnames=colnames(df),...
/code/miscfxns/miscfxns.R
permissive
ejcorn/fir_pca_22q
R
false
false
2,281
r
rename.column <- function(df,old_name,new_name){ # rename column of data frame df that was called old_name to new_name colnames(df)[colnames(df) == old_name] <- new_name return(df) } remove.column <- function(df,cname){return(df[,-which(colnames(df) == cname)])} collapse.columns <- function(df,cnames=colnames(df),...
library(burnr) ### Name: find_recording ### Title: Subset 'rings' data.frame to years that are considered ### recording. ### Aliases: find_recording ### ** Examples require(plyr) data(lgr2) ddply(lgr2$rings, 'series', burnr:::find_recording, injury_event = TRUE)
/data/genthat_extracted_code/burnr/examples/find_recording.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
273
r
library(burnr) ### Name: find_recording ### Title: Subset 'rings' data.frame to years that are considered ### recording. ### Aliases: find_recording ### ** Examples require(plyr) data(lgr2) ddply(lgr2$rings, 'series', burnr:::find_recording, injury_event = TRUE)
#' @title Modified Mann-Kendall Test For Serially Correlated Data Using the Yue and Wang (2004) Variance Correction Approach Using the Lag-1 Correlation Coefficient Only #' #' @description Time series data is often influenced by serial correlation. When data are not random and influenced by autocorrelation, modified Ma...
/R/mmky1.R
no_license
patakamuri/modifiedmk
R
false
false
5,413
r
#' @title Modified Mann-Kendall Test For Serially Correlated Data Using the Yue and Wang (2004) Variance Correction Approach Using the Lag-1 Correlation Coefficient Only #' #' @description Time series data is often influenced by serial correlation. When data are not random and influenced by autocorrelation, modified Ma...
library(plyr) # Download the dataset if(!file.exists("./getcleandata")){dir.create("./getcleandata")} fileurl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileurl, destfile = "./getcleandata/projectdataset.zip") # Unzip the dataset unzip(zipfile = "...
/run_analysis.R
no_license
Charvick-Nuvusetty/Getting-and-Cleaning-Data-Week-4-Assignment
R
false
false
2,800
r
library(plyr) # Download the dataset if(!file.exists("./getcleandata")){dir.create("./getcleandata")} fileurl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileurl, destfile = "./getcleandata/projectdataset.zip") # Unzip the dataset unzip(zipfile = "...
#' @title get_eurostat_raw #' @description Download data from the eurostat database. Downloads datasets #' from the eurostat database and transforms into tabular format. #' @param id A code name for the data set of interested. See the table of #' contents of eurostat datasets for more details. #' @return A dataset in ...
/R/get_eurostat_raw.R
no_license
YohanRobinson/eurostat
R
false
false
1,778
r
#' @title get_eurostat_raw #' @description Download data from the eurostat database. Downloads datasets #' from the eurostat database and transforms into tabular format. #' @param id A code name for the data set of interested. See the table of #' contents of eurostat datasets for more details. #' @return A dataset in ...
\name{world.legacy} \alias{world.legacy} \title{Legacy world map DEPRECATED} \description{A function to switch the "world" map to the old (1990) version and back.} \usage{ world.legacy(wl=FALSE) } \arguments{ \item{wl}{Set to TRUE to switch to the old world map. Set FALSE to switch back to the new map. In either case, ...
/man/world.legacy.Rd
no_license
theGreatWhiteShark/maps
R
false
false
1,220
rd
\name{world.legacy} \alias{world.legacy} \title{Legacy world map DEPRECATED} \description{A function to switch the "world" map to the old (1990) version and back.} \usage{ world.legacy(wl=FALSE) } \arguments{ \item{wl}{Set to TRUE to switch to the old world map. Set FALSE to switch back to the new map. In either case, ...
library(foreach) library(doParallel) library(rlecuyer) library(Rcpp) library(microbenchmark) library(ggplot2) # set up working directory and load data working.dir <- file.path("C:/Users/rrruss/Desktop/stat215a/stat215af14/lab3") load(file.path(working.dir, "lingBinary.RData")) # set up parallelization nCores <- 9 r...
/lab3/kcluststability.R
no_license
rrruss88/stat215af14
R
false
false
8,053
r
library(foreach) library(doParallel) library(rlecuyer) library(Rcpp) library(microbenchmark) library(ggplot2) # set up working directory and load data working.dir <- file.path("C:/Users/rrruss/Desktop/stat215a/stat215af14/lab3") load(file.path(working.dir, "lingBinary.RData")) # set up parallelization nCores <- 9 r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rf.R \name{underModels.rf} \alias{underModels.rf} \title{Generate undermodels to 'rf' class object} \usage{ underModels.rf(model, B = 100, ...) } \arguments{ \item{model}{'rf' class object} \item{B}{numeric value which is the number of under...
/man/underModels.rf.Rd
no_license
alex-conanec/OptFilBov
R
false
true
765
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rf.R \name{underModels.rf} \alias{underModels.rf} \title{Generate undermodels to 'rf' class object} \usage{ underModels.rf(model, B = 100, ...) } \arguments{ \item{model}{'rf' class object} \item{B}{numeric value which is the number of under...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/list.R \name{list_unstaged_files} \alias{list_unstaged_files} \title{Get a list of unstaged files in a repo} \usage{ list_unstaged_files(path = getwd(), verbose = TRUE) } \description{ Get a list of unstaged files in a repo }
/man/list_unstaged_files.Rd
no_license
meerapatelmd/glitter
R
false
true
304
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/list.R \name{list_unstaged_files} \alias{list_unstaged_files} \title{Get a list of unstaged files in a repo} \usage{ list_unstaged_files(path = getwd(), verbose = TRUE) } \description{ Get a list of unstaged files in a repo }
#' Source specific lines in an R file #' #' @param file character string with the path to the file to source. #' @param start row number of first line in \code{file} to source. #' @param end row number of last line in \code{file} to source. #' @export #' @examples #' # non-operative #' # source_lines("load-data.R", sta...
/R/source_lines.R
no_license
wepelham3/sack2
R
false
false
643
r
#' Source specific lines in an R file #' #' @param file character string with the path to the file to source. #' @param start row number of first line in \code{file} to source. #' @param end row number of last line in \code{file} to source. #' @export #' @examples #' # non-operative #' # source_lines("load-data.R", sta...
# This file consists of functions related estimating logistic regression models using the original # PGG algorithm and our unbiased estimator # from util_logisticregression -------------------------------------------- #'@export logisticregression_xbeta <- function(X, beta){ return(xbeta_(X, beta)) } #'@export logi...
/R/logistic_regression.R
no_license
jiangyuinsar/debiasedmcmc
R
false
false
7,599
r
# This file consists of functions related estimating logistic regression models using the original # PGG algorithm and our unbiased estimator # from util_logisticregression -------------------------------------------- #'@export logisticregression_xbeta <- function(X, beta){ return(xbeta_(X, beta)) } #'@export logi...
#' @rdname fslacos #' @aliases fsl_acos #' @export #' @note Functions with underscores have different defaults #' and will return an output filename, so to be used for piping fsl_acos = function( ..., outfile = tempfile(fileext = ".nii.gz"), retimg = FALSE ) { fslacos(..., outfile = outfile, retimg = retimg) ...
/R/fsl_acos.R
no_license
muschellij2/fslr
R
false
false
338
r
#' @rdname fslacos #' @aliases fsl_acos #' @export #' @note Functions with underscores have different defaults #' and will return an output filename, so to be used for piping fsl_acos = function( ..., outfile = tempfile(fileext = ".nii.gz"), retimg = FALSE ) { fslacos(..., outfile = outfile, retimg = retimg) ...
#' A maximum correlation coefficient classifier (CL) object #' #' An implementation of a maximum correlation coefficeint classifier. Like all classifiers, this classifier #' learning a model based on training data and then makes predictions on new test data. #' This object uses \href{https://cran.r-project.org/web/pa...
/R/max_correlation_CL.R
no_license
xf15/NDTr
R
false
false
2,591
r
#' A maximum correlation coefficient classifier (CL) object #' #' An implementation of a maximum correlation coefficeint classifier. Like all classifiers, this classifier #' learning a model based on training data and then makes predictions on new test data. #' This object uses \href{https://cran.r-project.org/web/pa...
require(ctsem) require(testthat) context("kalmanVram") test_that("time calc", { set.seed(4) nsubjects=20 #2 latent 2 td preds TDPREDEFFECT=matrix(c(-20,1,-1,20),2,2) gm=ctModel(Tpoints=10,n.latent=2,n.manifest=3,LAMBDA=matrix(c(1,0,0,0,1,.5),ncol=2), DRIFT=matrix(c(-.3,0,0,-.05),2,2),DIFFUSION=diag(2,2), #...
/tests/testthat/kalmanVram.R
no_license
AndreMikulec/ctsem
R
false
false
1,342
r
require(ctsem) require(testthat) context("kalmanVram") test_that("time calc", { set.seed(4) nsubjects=20 #2 latent 2 td preds TDPREDEFFECT=matrix(c(-20,1,-1,20),2,2) gm=ctModel(Tpoints=10,n.latent=2,n.manifest=3,LAMBDA=matrix(c(1,0,0,0,1,.5),ncol=2), DRIFT=matrix(c(-.3,0,0,-.05),2,2),DIFFUSION=diag(2,2), #...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) term1 = c("I","am","at","in","a","is","on","it","up","can","mum","dad","us","an","boy","girl","to"...
/sightwords/app.R
no_license
cabbagesofdoom/sightwords
R
false
false
2,728
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) term1 = c("I","am","at","in","a","is","on","it","up","can","mum","dad","us","an","boy","girl","to"...
# plo2.R # global active power line graph setwd("~/Documents/coursera/exploratoryData/ExData_Plotting1/") #Read the datasets householdTotal <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") #convert the date column to POSIX date format householdTotal$Time <- as.POSIXct(paste(hous...
/plot2.R
no_license
JamesHayes/ExData_Plotting1
R
false
false
703
r
# plo2.R # global active power line graph setwd("~/Documents/coursera/exploratoryData/ExData_Plotting1/") #Read the datasets householdTotal <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") #convert the date column to POSIX date format householdTotal$Time <- as.POSIXct(paste(hous...
library(tidyverse) stocks <- tibble( year = c(2015, 2015, 2016, 2016), half=c(1, 2, 1, 2), return=c(1.88, 0.59, 0.92, 0.17) ) stocks %>% spread(year, return) %>% gather("year","return","2015":"2016") #Question 4 preg <- tribble( ~pregnant, ~male, ~female, "yes", NA, 10, "no", 20, 12 ) preg #Exerci...
/gather_spread_exercise.R
no_license
erickndava/r4ds
R
false
false
453
r
library(tidyverse) stocks <- tibble( year = c(2015, 2015, 2016, 2016), half=c(1, 2, 1, 2), return=c(1.88, 0.59, 0.92, 0.17) ) stocks %>% spread(year, return) %>% gather("year","return","2015":"2016") #Question 4 preg <- tribble( ~pregnant, ~male, ~female, "yes", NA, 10, "no", 20, 12 ) preg #Exerci...
source("Step_6_Approach_3_KNN_Cascade.R") #### #### 4 APPLYING MODELS #### #### A1_validation <- validation_wide A2_validation <- validation_wide A3_validation <- validation_wide ### APPROACH #1: RF INDEPENDENT APPROACH A1_vali_floor <- predict(A1_rf_tr_mdl_fl, A1_validation) #Floor A1_vali_lat <- predict(A1_rf_t...
/scripts/Step_7_Applying_RFmodels_to_validation.R
no_license
FlorianJUnger/Feb-Mar2019-Wi-Fi-Localisation
R
false
false
1,113
r
source("Step_6_Approach_3_KNN_Cascade.R") #### #### 4 APPLYING MODELS #### #### A1_validation <- validation_wide A2_validation <- validation_wide A3_validation <- validation_wide ### APPROACH #1: RF INDEPENDENT APPROACH A1_vali_floor <- predict(A1_rf_tr_mdl_fl, A1_validation) #Floor A1_vali_lat <- predict(A1_rf_t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.R \name{query_master} \alias{query_day} \alias{query_interval} \alias{query_master} \alias{query_month} \alias{query_week} \alias{query_year} \alias{sum_day} \alias{sum_interval} \alias{sum_master} \alias{sum_month} \alias{sum_week} \al...
/man/query_master.Rd
no_license
danielsjf/rplexos
R
false
true
4,539
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.R \name{query_master} \alias{query_day} \alias{query_interval} \alias{query_master} \alias{query_month} \alias{query_week} \alias{query_year} \alias{sum_day} \alias{sum_interval} \alias{sum_master} \alias{sum_month} \alias{sum_week} \al...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/changeSeatrackPassword.R \name{changeSeatrackPassword} \alias{changeSeatrackPassword} \title{changeSeatrackPassword} \usage{ changeSeatrackPassword(password = NULL) } \arguments{ \item{password}{Your new password (character string).} } \value...
/seatrackR/man/changeSeatrackPassword.Rd
no_license
NINAnor/seatrack-db
R
false
true
575
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/changeSeatrackPassword.R \name{changeSeatrackPassword} \alias{changeSeatrackPassword} \title{changeSeatrackPassword} \usage{ changeSeatrackPassword(password = NULL) } \arguments{ \item{password}{Your new password (character string).} } \value...
a <- 2 b <- 3 c <- 5 d <- 6 e <- 0 f <- e
/test1.R
no_license
qcjun2191/test
R
false
false
41
r
a <- 2 b <- 3 c <- 5 d <- 6 e <- 0 f <- e
library(ggplot2) library(dplyr) library(broom) d=read.csv('D:/DA/SUV Predictions data.csv') print(d) head(d) tail(d) print(is.null(d)) names(d) nrow(d) ncol(d) mean(d$Salary) print(unique(d)) print(median(d$Age)) hist(d$Salary) boxplot(d$Salary~d$Age) pie(table(d$Age)) print(plot(Salary~Age,data=d)) l...
/Projects/R programming/Linear Regression R.R
no_license
karthicknadaraj/Edubridge
R
false
false
487
r
library(ggplot2) library(dplyr) library(broom) d=read.csv('D:/DA/SUV Predictions data.csv') print(d) head(d) tail(d) print(is.null(d)) names(d) nrow(d) ncol(d) mean(d$Salary) print(unique(d)) print(median(d$Age)) hist(d$Salary) boxplot(d$Salary~d$Age) pie(table(d$Age)) print(plot(Salary~Age,data=d)) l...
# Question 3 library(ggplot2) for(i in seq(4)){ ggplot(anscombe, aes(anscombe[,i], anscombe[,i+4])) + geom_point(size=3) + geom_smooth(method="lm", se=FALSE) + ggtitle(paste("Y", i, " ~ X", i, sep="")) + xlab(paste("\n X", i, sep="")) + ylab(paste("Y", i, "\n", sep="")) + xlim(min(anscombe[...
/HW3/HW3.R
no_license
aguimaraesduarte/msan601
R
false
false
3,440
r
# Question 3 library(ggplot2) for(i in seq(4)){ ggplot(anscombe, aes(anscombe[,i], anscombe[,i+4])) + geom_point(size=3) + geom_smooth(method="lm", se=FALSE) + ggtitle(paste("Y", i, " ~ X", i, sep="")) + xlab(paste("\n X", i, sep="")) + ylab(paste("Y", i, "\n", sep="")) + xlim(min(anscombe[...
# Load the libraries library('shiny') library('ggplot2') library('e1071') library('Hmisc') library('corrplot') library('PerformanceAnalytics') library('visreg') library('MASS') library('fitdistrplus') library('boot') # Load the data # Don't use data.table; this set is tiny! # Import data data = read.csv("simplified_e...
/shiny/server.r
no_license
sanchda/batStats
R
false
false
14,612
r
# Load the libraries library('shiny') library('ggplot2') library('e1071') library('Hmisc') library('corrplot') library('PerformanceAnalytics') library('visreg') library('MASS') library('fitdistrplus') library('boot') # Load the data # Don't use data.table; this set is tiny! # Import data data = read.csv("simplified_e...
#' Change R's prompt when running on R for MS Windows via Wine #' #' Options that are set: #' * `prompt` #' #' @author Henrik Bengtsson options(prompt = "R on Wine> ")
/Rprofile.d/interactive=TRUE/ui,os=windows,wine=TRUE.R
no_license
HenrikBengtsson/dotfiles-for-R
R
false
false
168
r
#' Change R's prompt when running on R for MS Windows via Wine #' #' Options that are set: #' * `prompt` #' #' @author Henrik Bengtsson options(prompt = "R on Wine> ")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.ec2_operations.R \name{delete_client_vpn_endpoint} \alias{delete_client_vpn_endpoint} \title{Deletes the specified Client VPN endpoint} \usage{ delete_client_vpn_endpoint(ClientVpnEndpointId, DryRun = NULL) } \arguments{ \item{ClientVpnE...
/service/paws.ec2/man/delete_client_vpn_endpoint.Rd
permissive
CR-Mercado/paws
R
false
true
948
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.ec2_operations.R \name{delete_client_vpn_endpoint} \alias{delete_client_vpn_endpoint} \title{Deletes the specified Client VPN endpoint} \usage{ delete_client_vpn_endpoint(ClientVpnEndpointId, DryRun = NULL) } \arguments{ \item{ClientVpnE...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Simpson} \alias{Simpson} \title{Grade point averages of men and women participating in various sports-an illustration of Simpson's paradox} \format{A data frame with 100 observations on the following 15 var...
/man/Simpson.Rd
no_license
johnsonjc6/BSDA
R
false
true
1,394
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Simpson} \alias{Simpson} \title{Grade point averages of men and women participating in various sports-an illustration of Simpson's paradox} \format{A data frame with 100 observations on the following 15 var...
context("lx_selector") testthat::test_that(desc = "selector string correct", { expect_true(lx_selector(id = "A")=="id:A") expect_true(lx_selector(id = "A",group = "B")=="id:A,group:B") expect_true(lx_selector(id = "A",group = "B", zo...
/tests/testthat/test-lx_selector.R
no_license
cran/lifx
R
false
false
382
r
context("lx_selector") testthat::test_that(desc = "selector string correct", { expect_true(lx_selector(id = "A")=="id:A") expect_true(lx_selector(id = "A",group = "B")=="id:A,group:B") expect_true(lx_selector(id = "A",group = "B", zo...
source("~/repo/neonectria_barcoding_012220/sum_trees/read_ASV_dat.LULU_tab.r") library(Hmsc) library(MASS) set.seed(6) #working with only asv_1 and asv_4 which are the dominant Nf and Nd asvs respectively asv_tab.neonectria = asv_tab[rownames(asv_tab) %in% c("ASV_1", "ASV_4"),] %>% t() asv_tab.neonectria[asv_tab...
/Hmsc/Nf_Nd_bin_variance_spatial.spatial_test_site_level.r
no_license
ewmorr/neonectria_barcoding_012220
R
false
false
25,396
r
source("~/repo/neonectria_barcoding_012220/sum_trees/read_ASV_dat.LULU_tab.r") library(Hmsc) library(MASS) set.seed(6) #working with only asv_1 and asv_4 which are the dominant Nf and Nd asvs respectively asv_tab.neonectria = asv_tab[rownames(asv_tab) %in% c("ASV_1", "ASV_4"),] %>% t() asv_tab.neonectria[asv_tab...
\name{predNuPoP} \alias{predNuPoP} %- Also NEED an '\alias' for EACH other topic documented here. \title{R function for nucleosome positioning prediction, occupancy score and nucleosome binding affinity score calculation} \description{This function invokes Fortran codes to compute the Viterbi prediction of nucleosome p...
/man/predNuPoP.Rd
no_license
oazarate/NuPoP
R
false
false
2,832
rd
\name{predNuPoP} \alias{predNuPoP} %- Also NEED an '\alias' for EACH other topic documented here. \title{R function for nucleosome positioning prediction, occupancy score and nucleosome binding affinity score calculation} \description{This function invokes Fortran codes to compute the Viterbi prediction of nucleosome p...
# Step 0 - Load reshape2 package to use later library(reshape2) ## Step 1 - Merges the training and the test data sets to create one data set # download and unzip the dataset filename <- "getdata_dataset.zip" if (!file.exists(filename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fpr...
/run_analysis.R
no_license
jonesth/Getting-and-Cleaning-Data-Course-Project
R
false
false
2,685
r
# Step 0 - Load reshape2 package to use later library(reshape2) ## Step 1 - Merges the training and the test data sets to create one data set # download and unzip the dataset filename <- "getdata_dataset.zip" if (!file.exists(filename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fpr...
# General setup ---- ## Function rm(list=ls(all.names=T)) library(runjags) source("function_simdata_ver5.R") ## MCMC setting n.ad <- 100 n.iter <- 1E+4 n.thin <- max(3, ceiling(n.iter/500)) burn <- ceiling(max(10, n.iter/2)) Sample <- ceiling(n.iter/n.thin) ## Parameter set N <- c(100, 500...
/bayes-model/gaussian/inits06_hetero_disp_obs_gaussian.R
permissive
aterui/public-proj_disp-model-sim
R
false
false
3,278
r
# General setup ---- ## Function rm(list=ls(all.names=T)) library(runjags) source("function_simdata_ver5.R") ## MCMC setting n.ad <- 100 n.iter <- 1E+4 n.thin <- max(3, ceiling(n.iter/500)) burn <- ceiling(max(10, n.iter/2)) Sample <- ceiling(n.iter/n.thin) ## Parameter set N <- c(100, 500...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{bwKW} \alias{bwKW} \title{Bandwidth selection for KW smoothing} \usage{ bwKW(g, k = 1, minbw = 0.1) } \arguments{ \item{g}{KW fitted object} \item{k}{multiplicative fudge factor} \item{minbw}{minimum allowed value of bandwidth}...
/man/bwKW.Rd
no_license
cran/REBayes
R
false
true
416
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{bwKW} \alias{bwKW} \title{Bandwidth selection for KW smoothing} \usage{ bwKW(g, k = 1, minbw = 0.1) } \arguments{ \item{g}{KW fitted object} \item{k}{multiplicative fudge factor} \item{minbw}{minimum allowed value of bandwidth}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mult-PCA.R \name{get_pairs} \alias{get_pairs} \title{Get paired individual on a Coe, PCA or LDA objects} \usage{ get_pairs(x, fac, range) } \arguments{ \item{x}{any \link{Coe}, \link{PCA} of \link{LDA} object.} \item{fac}{factor or column na...
/man/get_pairs.Rd
no_license
stas-malavin/Momocs
R
false
true
1,661
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mult-PCA.R \name{get_pairs} \alias{get_pairs} \title{Get paired individual on a Coe, PCA or LDA objects} \usage{ get_pairs(x, fac, range) } \arguments{ \item{x}{any \link{Coe}, \link{PCA} of \link{LDA} object.} \item{fac}{factor or column na...
rm(list=ls()) setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) library(tidyverse) library(dplyr) library(plyr) combine = function(fly.df, dat){ for(i in 2:ncol(dat)){ dat.sub = data.frame(age = dat[-c(1,2,3,4),1] %>% as.numeric(), num = dat[-c(1,2,3,4), i] %>% as.numeric(), ...
/preprocess.R
no_license
hango1996/survival-analysis
R
false
false
1,316
r
rm(list=ls()) setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) library(tidyverse) library(dplyr) library(plyr) combine = function(fly.df, dat){ for(i in 2:ncol(dat)){ dat.sub = data.frame(age = dat[-c(1,2,3,4),1] %>% as.numeric(), num = dat[-c(1,2,3,4), i] %>% as.numeric(), ...
#' Reporting for the coupled EDGE-T Transport Sector Model (REMIND Module edge_esm) #' #' Data is loaded from the EDGE-T subfolder in the output folder. #' The input files can be (re-) generated calling #' `Rscript EDGETransport.R --reporting` #' from the output folder. #' #' *Warning* The function modifies the "REMIND...
/R/reportEDGETransport2.R
no_license
pik-piam/edgeTrpLib
R
false
false
42,896
r
#' Reporting for the coupled EDGE-T Transport Sector Model (REMIND Module edge_esm) #' #' Data is loaded from the EDGE-T subfolder in the output folder. #' The input files can be (re-) generated calling #' `Rscript EDGETransport.R --reporting` #' from the output folder. #' #' *Warning* The function modifies the "REMIND...
# Read the file and subset the data dataFile <- "C:/Users/Shashank/Documents/coursera assignments/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] subSetData #Plot 2 datetime <- strpti...
/RPlot2.R
no_license
shashank3767/Exploratory-Data-Analsyis-Project-1
R
false
false
605
r
# Read the file and subset the data dataFile <- "C:/Users/Shashank/Documents/coursera assignments/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] subSetData #Plot 2 datetime <- strpti...
################################################################################# ## ## R package rugarch by Alexios Ghalanos Copyright (C) 2008-2015. ## This file is part of the R package rugarch. ## ## The R package rugarch is free software: you can redistribute it and/or modify ## it under the terms of...
/R/rugarch-multi.R
no_license
Dwj359582058/rugarch
R
false
false
23,940
r
################################################################################# ## ## R package rugarch by Alexios Ghalanos Copyright (C) 2008-2015. ## This file is part of the R package rugarch. ## ## The R package rugarch is free software: you can redistribute it and/or modify ## it under the terms of...
"make.keys" <- function(nvars,keys.list,item.labels=NULL,key.labels=NULL) { if(!is.null(ncol(nvars))) {item.labels <- colnames(nvars) nvars <- ncol(nvars)} else { if(!is.numeric(nvars)) {item.labels <- nvars nvars <- length(item.labels)} } nkeys <- length(keys.list) ke...
/R/make.keys.R
no_license
adamv227/psych
R
false
false
2,291
r
"make.keys" <- function(nvars,keys.list,item.labels=NULL,key.labels=NULL) { if(!is.null(ncol(nvars))) {item.labels <- colnames(nvars) nvars <- ncol(nvars)} else { if(!is.numeric(nvars)) {item.labels <- nvars nvars <- length(item.labels)} } nkeys <- length(keys.list) ke...
######################################################### # Discretized serial interval (assuming a shifted gamma # # distribution (with shift 1) # ######################################################### #' Discretized Generation Time Distribution Assuming A Shifted Gamma #' Distribution #...
/R/discr_si.R
no_license
Bigger-Physics/EpiEstim
R
false
false
2,973
r
######################################################### # Discretized serial interval (assuming a shifted gamma # # distribution (with shift 1) # ######################################################### #' Discretized Generation Time Distribution Assuming A Shifted Gamma #' Distribution #...
source("~/r_projects/cancer-mutations/ssm-background-slurm/trinucleotide_bg_enhancer-slurm.R") print("successfully sourced trinucleotide_bg_enhancer-slurm.R") slice <- dplyr::slice rename <- dplyr::rename ## arguments from the bash file ## args <- commandArgs(trailingOnly = TRUE) cmd_arg <- as.numeric(args[1]) ## fu...
/archive/ssm-background-slurm/analytical_enhancer_fixed_per_donor-slurm-parallel.R
no_license
jz132/cancer-mutations
R
false
false
5,418
r
source("~/r_projects/cancer-mutations/ssm-background-slurm/trinucleotide_bg_enhancer-slurm.R") print("successfully sourced trinucleotide_bg_enhancer-slurm.R") slice <- dplyr::slice rename <- dplyr::rename ## arguments from the bash file ## args <- commandArgs(trailingOnly = TRUE) cmd_arg <- as.numeric(args[1]) ## fu...
## This function make a "special" matrix object that can cache the input matrix and its inverse. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinverse <- function(solve) m <<- solve getinverse <- function() m list(set = set,...
/cachematrix.R
no_license
Justusdelange/ProgrammingAssignment2
R
false
false
832
r
## This function make a "special" matrix object that can cache the input matrix and its inverse. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinverse <- function(solve) m <<- solve getinverse <- function() m list(set = set,...
# Objective: create a function to calculate local solar time # Author: Grant Coble-Neal t_sol <- function( TimeCorrection, DaylightSavingsTime = FALSE ){ # t_sol: local solar time as measured by a sundial # TimeCorrection (TC) is a series consisting of each day's time correction between # the longitude of a...
/R/Local Solar Time function.R
no_license
cobleg/solarPV
R
false
false
975
r
# Objective: create a function to calculate local solar time # Author: Grant Coble-Neal t_sol <- function( TimeCorrection, DaylightSavingsTime = FALSE ){ # t_sol: local solar time as measured by a sundial # TimeCorrection (TC) is a series consisting of each day's time correction between # the longitude of a...
testlist <- list(doy = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788686270017e+185)) result <- do.call(meteor...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615837486-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
368
r
testlist <- list(doy = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788686270017e+185)) result <- do.call(meteor...
# install.packages("igraph") rm(list = ls()) library(igraph) library(reshape2) library(plyr) this.dir <- dirname(parent.frame(2)$ofile) setwd(this.dir) #### new tries #### load("DFusers.Rda") vortexVec <- as.vector(unique(DFusers$repo)) testDF <- dcast(DFusers, opener ~ repo, value.var = "merged", fun.aggregate = ...
/Step3_3_network.R
no_license
bvbgh/aimloss
R
false
false
2,853
r
# install.packages("igraph") rm(list = ls()) library(igraph) library(reshape2) library(plyr) this.dir <- dirname(parent.frame(2)$ofile) setwd(this.dir) #### new tries #### load("DFusers.Rda") vortexVec <- as.vector(unique(DFusers$repo)) testDF <- dcast(DFusers, opener ~ repo, value.var = "merged", fun.aggregate = ...