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
library(doParallel) library(foreach) source("makeVars.R") source("stdize.R") Rcpp::sourceCpp("bmd_helper.cpp") bmd_cpp <- function (X, Y, alpha = 0.05, OL_thres = 0.9, tag = NULL, cp_cor = TRUE, verbose = TRUE, updateOutput = TRUE, throwInitial = TRUE, OL_tol = Inf, Dud_tol = Inf, time_limit = 180...
/bmd_cpp.R
no_license
jpalowitch/bmd
R
false
false
13,053
r
library(doParallel) library(foreach) source("makeVars.R") source("stdize.R") Rcpp::sourceCpp("bmd_helper.cpp") bmd_cpp <- function (X, Y, alpha = 0.05, OL_thres = 0.9, tag = NULL, cp_cor = TRUE, verbose = TRUE, updateOutput = TRUE, throwInitial = TRUE, OL_tol = Inf, Dud_tol = Inf, time_limit = 180...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllMethods.R \name{[,FisherResultList,ANY,missing,missing-method} \alias{[,FisherResultList,ANY,missing,missing-method} \title{Subset a FisherResultList object by indexing} \usage{ \S4method{[}{FisherResultList,ANY,missing,missing}(x, i, j, ....
/man/sub-FisherResultList-ANY-missing-missing-method.Rd
no_license
bedapub/ribiosGSEA
R
false
true
636
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllMethods.R \name{[,FisherResultList,ANY,missing,missing-method} \alias{[,FisherResultList,ANY,missing,missing-method} \title{Subset a FisherResultList object by indexing} \usage{ \S4method{[}{FisherResultList,ANY,missing,missing}(x, i, j, ....
############ ## Checks that make up validity of ClusterExperiment: ############ .checkAssays<-function(object){ # ############ # check assays # ############ if(length(assays(object)) < 1) { return("There must be at least one assay slot.") } if(!is.numeric(assay(object))) { return("The data mus...
/R/AllChecks.R
no_license
kegyan/clusterExperiment
R
false
false
14,728
r
############ ## Checks that make up validity of ClusterExperiment: ############ .checkAssays<-function(object){ # ############ # check assays # ############ if(length(assays(object)) < 1) { return("There must be at least one assay slot.") } if(!is.numeric(assay(object))) { return("The data mus...
## # Author: Autogenerated on 2013-11-27 18:13:59 # gitHash: c4ad841105ba82f4a3979e4cf1ae7e20a5905e59 # SEED: 4663640625336856642 ## source('./findNSourceUtils.R') Log.info("======================== Begin Test ==========================...
/R/tests/testdir_autoGen/runit_complexFilterTest_constantColumn_149.R
permissive
hardikk/h2o
R
false
false
1,547
r
## # Author: Autogenerated on 2013-11-27 18:13:59 # gitHash: c4ad841105ba82f4a3979e4cf1ae7e20a5905e59 # SEED: 4663640625336856642 ## source('./findNSourceUtils.R') Log.info("======================== Begin Test ==========================...
library(h2o) h2o.init() # If you want to cut and paste code from this test, you can just create the connection yourself up front. # h = h2o.init() # Parse data into H2O print("Parsing data into H2O") # From an h2o git workspace. data.hex <- h2o.importFile( h2o:::.h2o.locate("smalldata/demos/bank-additional-full.csv")...
/h2o-r/demos/rdemo.VI.all.algos.R
permissive
StephRoark/h2o-3
R
false
false
3,276
r
library(h2o) h2o.init() # If you want to cut and paste code from this test, you can just create the connection yourself up front. # h = h2o.init() # Parse data into H2O print("Parsing data into H2O") # From an h2o git workspace. data.hex <- h2o.importFile( h2o:::.h2o.locate("smalldata/demos/bank-additional-full.csv")...
# Financial Risk Meter (FRM) can be seen in action in these two applications: # https://applications.firamis.de/frei/app/frm_app # http://frm.wiwi.hu-berlin.de/ # clear all variables rm(list = ls(all = TRUE)) library("quantmod") library("quantreg") library("doParallel") library("foreach") ####################...
/1. Documents/6. Blockchain Collection/UBER_FRM/main_FRM_JP.R
no_license
jawadkazmi5/FINTECH_HO_2020
R
false
false
10,467
r
# Financial Risk Meter (FRM) can be seen in action in these two applications: # https://applications.firamis.de/frei/app/frm_app # http://frm.wiwi.hu-berlin.de/ # clear all variables rm(list = ls(all = TRUE)) library("quantmod") library("quantreg") library("doParallel") library("foreach") ####################...
# %%%%%%%%%%%%%%%%% # ####### LD ####### # %%%%%%%%%%%%%%%%% # # * Nalls et al. 2018: Imputation Panel Notes # + _"One of the limitations of this study is the use of multiple imputation panels, due to logistic constraints. # Adding datasets from non-European populations would be helpful to further improve our granula...
/R/LD.R
permissive
UKDRI/echolocatoR
R
false
false
64,070
r
# %%%%%%%%%%%%%%%%% # ####### LD ####### # %%%%%%%%%%%%%%%%% # # * Nalls et al. 2018: Imputation Panel Notes # + _"One of the limitations of this study is the use of multiple imputation panels, due to logistic constraints. # Adding datasets from non-European populations would be helpful to further improve our granula...
#' zest join #' #' a zest join is similar to a [dplyr::nest_join()] but the rows of `y` that are #' included in the list column are controlled by a predicate. #' #' @param x a tibble #' #' @param y another tibble #' #' @param ... named predicate formulas #' #' The rhs of the formulas is used y [dplyr::filter()] on `y`...
/R/zest_join.R
permissive
sowla/rap
R
false
false
2,188
r
#' zest join #' #' a zest join is similar to a [dplyr::nest_join()] but the rows of `y` that are #' included in the list column are controlled by a predicate. #' #' @param x a tibble #' #' @param y another tibble #' #' @param ... named predicate formulas #' #' The rhs of the formulas is used y [dplyr::filter()] on `y`...
\name{frcd} \alias{frcd} \title{ Force directed layout } \description{ A function to compute the graph coordinated system with a force directed layout algortihm } \usage{ frcd(net, seed = seed, maxiter, drp, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{net}{ an arra...
/man/frcd.Rd
no_license
zhanglipku/multigraph
R
false
false
1,891
rd
\name{frcd} \alias{frcd} \title{ Force directed layout } \description{ A function to compute the graph coordinated system with a force directed layout algortihm } \usage{ frcd(net, seed = seed, maxiter, drp, ...) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{net}{ an arra...
library(MCMCpack) data(women) names(women) <- c("h","w") Bregs <- function(cc0=1,dd0=1000,BB0=1e-5) { # no intercept m0 <- MCMCregress(w~0+h,data=women,c0=cc0,d0=dd0,B0=BB0,marginal.likelihood="Chib95") # with intercept m1 <- MCMCregress(w~h,data=women,c0=cc0,d0=dd0,B0=BB0,marginal.likelihood="Chib95") # q...
/mat-565/bayesReg.r
no_license
yareddada/ualbany-undergrad
R
false
false
2,798
r
library(MCMCpack) data(women) names(women) <- c("h","w") Bregs <- function(cc0=1,dd0=1000,BB0=1e-5) { # no intercept m0 <- MCMCregress(w~0+h,data=women,c0=cc0,d0=dd0,B0=BB0,marginal.likelihood="Chib95") # with intercept m1 <- MCMCregress(w~h,data=women,c0=cc0,d0=dd0,B0=BB0,marginal.likelihood="Chib95") # q...
# Fitting linear model by maximum likelihood library(stats4) LL <- function(m, beta, mu, sigma){ # Residuals a = beta[0] b = beta[1] c = beta[2] R = z - x * a - y * b - c R = suppressWarnings(dnorm(R, mu, sigma, log=TRUE)) -sum(R) } fit <- mle(LL, start = list(beta0 = 4, beta1 = 2, mu = 0, sigma=1)...
/stats/mlelm.1.R
no_license
sapphire008/R
R
false
false
321
r
# Fitting linear model by maximum likelihood library(stats4) LL <- function(m, beta, mu, sigma){ # Residuals a = beta[0] b = beta[1] c = beta[2] R = z - x * a - y * b - c R = suppressWarnings(dnorm(R, mu, sigma, log=TRUE)) -sum(R) } fit <- mle(LL, start = list(beta0 = 4, beta1 = 2, mu = 0, sigma=1)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vimp_auc.R \name{vimp_auc} \alias{vimp_auc} \title{Nonparametric Intrinsic Variable Importance Estimates: AUC} \usage{ vimp_auc( Y = NULL, X = NULL, cross_fitted_f1 = NULL, cross_fitted_f2 = NULL, f1 = NULL, f2 = NULL, indx = 1,...
/man/vimp_auc.Rd
permissive
minghao2016/vimp
R
false
true
10,437
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vimp_auc.R \name{vimp_auc} \alias{vimp_auc} \title{Nonparametric Intrinsic Variable Importance Estimates: AUC} \usage{ vimp_auc( Y = NULL, X = NULL, cross_fitted_f1 = NULL, cross_fitted_f2 = NULL, f1 = NULL, f2 = NULL, indx = 1,...
# $Id: outlier.R 140 2015-05-15 21:48:02Z B002961 $ outlier.ap <- function(X, Y, NDEL = 3, NLEN = 25, TRANSPOSE = FALSE) { xy <- cbind(X,Y) S <- det(t(xy)%*%xy) R <- NDEL K <- dim(X)[1] # number of firms/observations Kset <- seq.int(K) n <- length(Kset) last = min(NLEN, K) # gem ...
/R/outlier.R
no_license
yasinkutuk/Benchmarking
R
false
false
2,674
r
# $Id: outlier.R 140 2015-05-15 21:48:02Z B002961 $ outlier.ap <- function(X, Y, NDEL = 3, NLEN = 25, TRANSPOSE = FALSE) { xy <- cbind(X,Y) S <- det(t(xy)%*%xy) R <- NDEL K <- dim(X)[1] # number of firms/observations Kset <- seq.int(K) n <- length(Kset) last = min(NLEN, K) # gem ...
xx=read.delim(file.choose(),header=T) score.f <- function(target,train,match.score=1, miss.score=0.5, mismatch.score=-5){ m=length(target) n.allmiss = sum((train=="N") & (target=="N")) n.match = sum(target==train) - n.allmiss n.miss = sum(target=="N")+sum(train=="N")- n.allmiss n.mismatch = m - n.match -n...
/R/NEWimputation_tsai_for search20140212 .R
no_license
whiteaegis/Imputation
R
false
false
1,693
r
xx=read.delim(file.choose(),header=T) score.f <- function(target,train,match.score=1, miss.score=0.5, mismatch.score=-5){ m=length(target) n.allmiss = sum((train=="N") & (target=="N")) n.match = sum(target==train) - n.allmiss n.miss = sum(target=="N")+sum(train=="N")- n.allmiss n.mismatch = m - n.match -n...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/GetMovieInfo.R \name{GetMovieInfo} \alias{GetMovieInfo} \title{Pobieranie informacji o filmie} \usage{ GetMovieInfo(title) } \arguments{ \item{title}{tytul filmu w jezyku angielskim. Im dokladniejszy tym lepsze jakosciowo informacje o...
/MINI_2015/materialy/pakiety/subtitler/man/GetMovieInfo.Rd
no_license
gradzielr/RandBigData
R
false
false
1,230
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/GetMovieInfo.R \name{GetMovieInfo} \alias{GetMovieInfo} \title{Pobieranie informacji o filmie} \usage{ GetMovieInfo(title) } \arguments{ \item{title}{tytul filmu w jezyku angielskim. Im dokladniejszy tym lepsze jakosciowo informacje o...
############################################################# #write a plot "Four plots" into PNG file ############################################################# #read data file<-"household_power_consumption.txt" data_consumption <- read.table(file, header = TRUE,sep =";", colClasses...
/figure/plot4.R
no_license
tatsiana4000/ExData_Plotting1
R
false
false
1,880
r
############################################################# #write a plot "Four plots" into PNG file ############################################################# #read data file<-"household_power_consumption.txt" data_consumption <- read.table(file, header = TRUE,sep =";", colClasses...
#'Read Folder #' #'Read a single population folder and return a list with all poplation atributes #'@export ReadFolder <- function(input.folder, n.traits = 10, sel.type, direct.sel = T){ print(input.folder) input.folder = paste("./output", input.folder, sep="/") input.file = paste(input.folder, "p.corr.dat", sep...
/R/ReadFolder.R
no_license
lem-usp/EvoMod-R
R
false
false
2,111
r
#'Read Folder #' #'Read a single population folder and return a list with all poplation atributes #'@export ReadFolder <- function(input.folder, n.traits = 10, sel.type, direct.sel = T){ print(input.folder) input.folder = paste("./output", input.folder, sep="/") input.file = paste(input.folder, "p.corr.dat", sep...
#Functions # Commands args() function() formals() lsf.str() body() # Create function x=2 ; y = 3 (sumofnos = x + y) (x1 = c(1:10)) (sumofnos = sum(x1)) sumofnos = sum(x1) fsum1 <- function(x1) { sumofnos = sum(x1)/length(x1) } fsum1 fsum1(1:10) # Code - Extract Function # run above function lines fsum1(x1) # ...
/23-functions/51c-functions1.R
no_license
DUanalytics/rAnalytics
R
false
false
2,446
r
#Functions # Commands args() function() formals() lsf.str() body() # Create function x=2 ; y = 3 (sumofnos = x + y) (x1 = c(1:10)) (sumofnos = sum(x1)) sumofnos = sum(x1) fsum1 <- function(x1) { sumofnos = sum(x1)/length(x1) } fsum1 fsum1(1:10) # Code - Extract Function # run above function lines fsum1(x1) # ...
# This file was generated, do not edit by hand # Please edit inst/srr_template_nonspatial_yardstick.R instead test_that("srr: ww_systematic_mpd errors if truth and estimate are different lengths", { # Note that this test isn't applicable to data-frame input, which enforces # constant column lengths expect_snapsh...
/tests/testthat/test-srr-ww_systematic_mpd.R
permissive
ropensci/waywiser
R
false
false
5,195
r
# This file was generated, do not edit by hand # Please edit inst/srr_template_nonspatial_yardstick.R instead test_that("srr: ww_systematic_mpd errors if truth and estimate are different lengths", { # Note that this test isn't applicable to data-frame input, which enforces # constant column lengths expect_snapsh...
# resultList is a list returned by netica2bnlearn, it contains nodes and parentsList parentsList2BN = function(resultList) { dag = empty.graph(resultList$node) for (i in 1:length(resultList$parent)) {# add directed arc from its parents to each node i if (length(resultList$parent[[i]]) > 0) {# only ad...
/RStudioProjects/mbDiscoveryR/learnBN/parentsList2BN.R
no_license
kelvinyangli/PhDProjects
R
false
false
621
r
# resultList is a list returned by netica2bnlearn, it contains nodes and parentsList parentsList2BN = function(resultList) { dag = empty.graph(resultList$node) for (i in 1:length(resultList$parent)) {# add directed arc from its parents to each node i if (length(resultList$parent[[i]]) > 0) {# only ad...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotMeanVar.R \name{plotMeanVar} \alias{plotMeanVar} \title{Mean variance plot} \usage{ plotMeanVar(MSnSetObj, title = "") } \arguments{ \item{MSnSetObj}{MSnSet; an object of class MSnSet} \item{title}{character: title for the plot} } \value...
/man/plotMeanVar.Rd
no_license
crukci-bioinformatics/qPLEXanalyzer
R
false
true
822
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotMeanVar.R \name{plotMeanVar} \alias{plotMeanVar} \title{Mean variance plot} \usage{ plotMeanVar(MSnSetObj, title = "") } \arguments{ \item{MSnSetObj}{MSnSet; an object of class MSnSet} \item{title}{character: title for the plot} } \value...
#' @title Pull ACS transit and work data #' @description Pull ACS data for a specified geography from base tables #' B08012, B08101, B08121, B08103, B08124, B08016, B08017. #' Additional fields, mainly percentages and aggregations, are calculated. #' @param endyear An integer, indicating the latest year of the data in...
/fuzzedpackages/synthACS/R/pull_transit_work.R
no_license
akhikolla/testpackages
R
false
false
15,302
r
#' @title Pull ACS transit and work data #' @description Pull ACS data for a specified geography from base tables #' B08012, B08101, B08121, B08103, B08124, B08016, B08017. #' Additional fields, mainly percentages and aggregations, are calculated. #' @param endyear An integer, indicating the latest year of the data in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getMaxColIndex.R \name{getMaxIndexOfRows} \alias{getMaxIndexOfRows} \alias{getMinIndexOfRows} \alias{getMaxIndexOfCols} \alias{getMinIndexOfCols} \title{Find row- or columnwise the index of the maximal / minimal element in a matrix.} \usage{ ...
/man/getMaxIndexOfRows.Rd
no_license
shadogray/BBmisc
R
false
true
1,855
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getMaxColIndex.R \name{getMaxIndexOfRows} \alias{getMaxIndexOfRows} \alias{getMinIndexOfRows} \alias{getMaxIndexOfCols} \alias{getMinIndexOfCols} \title{Find row- or columnwise the index of the maximal / minimal element in a matrix.} \usage{ ...
#' a new print method for disk.frame #' @export #' @param x disk.frame #' @param ... not used #' @importFrom glue glue print.disk.frame <- function(x, ...) { a = paste(sep = "\n" ,glue::glue("path: \"{attr(x,'path')}\"") ,glue::glue("nchunks: {disk.frame::nchunks(x)}") ,glue::gl...
/R/print.disk.frame.r
no_license
iqis/disk.frame
R
false
false
427
r
#' a new print method for disk.frame #' @export #' @param x disk.frame #' @param ... not used #' @importFrom glue glue print.disk.frame <- function(x, ...) { a = paste(sep = "\n" ,glue::glue("path: \"{attr(x,'path')}\"") ,glue::glue("nchunks: {disk.frame::nchunks(x)}") ,glue::gl...
## You can for loop without using the value of i ## This will print the word loop 10 times for(i in 1:10) { print("loop") } ## You can also use the value of i for each loop ## This will print different values of x for each new value of i for(i in 1:10) { x <- i * 2 print(x) } ## If you want to save so...
/for-loops-and-functions.R
no_license
triadicaxis/quickr
R
false
false
891
r
## You can for loop without using the value of i ## This will print the word loop 10 times for(i in 1:10) { print("loop") } ## You can also use the value of i for each loop ## This will print different values of x for each new value of i for(i in 1:10) { x <- i * 2 print(x) } ## If you want to save so...
## Code for Lindgren, Rue, Lindstrom (2011), partially updated to newer R-INLA ## Note: Will not reproduce exactly the same results as in the paper. require(rgl) require(INLA) require(lattice) source("utils.R") ## Read data: map = read.table("Leuk.map") data(Leuk) Leuk$id = 1:dim(Leuk)[1] ## Build triangular mesh: lo...
/.Rproj.user/FD90FBB0/sources/s-65EF5357/5146138-contents
no_license
farrmt/HMSNO
R
false
false
5,814
## Code for Lindgren, Rue, Lindstrom (2011), partially updated to newer R-INLA ## Note: Will not reproduce exactly the same results as in the paper. require(rgl) require(INLA) require(lattice) source("utils.R") ## Read data: map = read.table("Leuk.map") data(Leuk) Leuk$id = 1:dim(Leuk)[1] ## Build triangular mesh: lo...
library(shiny) library(wordcloud2) #https://cran.r-project.org/web/packages/wordcloud2/vignettes/wordcloud.html #https://github.com/rstudio/shinydashboard/issues/281#issuecomment-615888981 wordcloud2a <- function (data, size = 1, minSize = 0, gridSize = 0, fontFamily = "Segoe UI", fontWeight ...
/inst/shiny-scripts/app.R
permissive
Tsmnbx/BlastOverview
R
false
false
3,839
r
library(shiny) library(wordcloud2) #https://cran.r-project.org/web/packages/wordcloud2/vignettes/wordcloud.html #https://github.com/rstudio/shinydashboard/issues/281#issuecomment-615888981 wordcloud2a <- function (data, size = 1, minSize = 0, gridSize = 0, fontFamily = "Segoe UI", fontWeight ...
########################################### ls() rm(list = ls()) ########################################### attach(mtcars) plot(wt, mpg) abline(lm(mpg~wt)) title("Regression of MPG on Weight") detach(mtcars) colors() array() data.frame() list() n <- 40 mycolors <- rainbow(n) pie(rep(1,n), labels = mycolors,...
/R in Action.R
no_license
Heidlyn/LearningR
R
false
false
20,746
r
########################################### ls() rm(list = ls()) ########################################### attach(mtcars) plot(wt, mpg) abline(lm(mpg~wt)) title("Regression of MPG on Weight") detach(mtcars) colors() array() data.frame() list() n <- 40 mycolors <- rainbow(n) pie(rep(1,n), labels = mycolors,...
\name{sitc_rev2_4char} \alias{sitc_rev2_4char} \title{SITC (rev.2) products (4 characters)} \docType{data} \description{ SITC (rev. 2) products (4 characters). This file is used to create the visualizations. } \usage{sitc_rev2_4char} \format{ A data frame with 988 observations on the following 5 variables. \describ...
/r_package/man/sitc_rev2_4char.Rd
permissive
desval/oec
R
false
false
935
rd
\name{sitc_rev2_4char} \alias{sitc_rev2_4char} \title{SITC (rev.2) products (4 characters)} \docType{data} \description{ SITC (rev. 2) products (4 characters). This file is used to create the visualizations. } \usage{sitc_rev2_4char} \format{ A data frame with 988 observations on the following 5 variables. \describ...
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>", # dpi=300, fig.height = 7, fig.width=10 ) ## ---- echo = FALSE, message = FALSE, results = 'hide'------------------------- library(BayesianReasoning) library(patchwork) ##...
/inst/doc/PPV_NPV.R
no_license
romainfrancois/BayesianReasoning
R
false
false
1,241
r
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>", # dpi=300, fig.height = 7, fig.width=10 ) ## ---- echo = FALSE, message = FALSE, results = 'hide'------------------------- library(BayesianReasoning) library(patchwork) ##...
library(DESeq2) library(tidyverse) library(RColorBrewer) library(ggplot2) library(ggrepel) library(rtracklayer) library(wesanderson) ## Read in mu-origin 1 annotation file, select needed columns and ouput a dataframe readAnnotaion <- function(AnnotationPath =.anoPath,col_to_select=.colselect ){ GTFannot<- rtracklay...
/utils_data.R
no_license
CathyTJC/GCS-seq
R
false
false
5,753
r
library(DESeq2) library(tidyverse) library(RColorBrewer) library(ggplot2) library(ggrepel) library(rtracklayer) library(wesanderson) ## Read in mu-origin 1 annotation file, select needed columns and ouput a dataframe readAnnotaion <- function(AnnotationPath =.anoPath,col_to_select=.colselect ){ GTFannot<- rtracklay...
#' @include tibble.R #' #' @description `lst()` is similar to [list()], but like `tibble()`, it #' evaluates its arguments lazily and in order, and automatically adds names. #' #' @export #' @examples #' lst(n = 5, x = runif(n)) #' #' # You can splice-unquote a list of quotes and formulas #' lst(!!! list(n = rlang::quo...
/R/lst.R
no_license
bgreenwell/tibble
R
false
false
1,635
r
#' @include tibble.R #' #' @description `lst()` is similar to [list()], but like `tibble()`, it #' evaluates its arguments lazily and in order, and automatically adds names. #' #' @export #' @examples #' lst(n = 5, x = runif(n)) #' #' # You can splice-unquote a list of quotes and formulas #' lst(!!! list(n = rlang::quo...
context("Mutate") test_that("empty mutate returns input", { df <- tibble(x = 1) gf <- group_by(df, x) expect_equal(mutate(df), df) expect_equal(mutate(gf), gf) }) test_that("mutations applied progressively", { df <- tibble(x = 1) expect_equal(df %>% mutate(y = x + 1, z = y + 1), tibble(x = 1, y = 2, z = ...
/tests/testthat/test-mutate.r
permissive
nakanwagi/dplyr
R
false
false
8,343
r
context("Mutate") test_that("empty mutate returns input", { df <- tibble(x = 1) gf <- group_by(df, x) expect_equal(mutate(df), df) expect_equal(mutate(gf), gf) }) test_that("mutations applied progressively", { df <- tibble(x = 1) expect_equal(df %>% mutate(y = x + 1, z = y + 1), tibble(x = 1, y = 2, z = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{a1Coefficients} \alias{a1Coefficients} \title{Caclulate the coefficients a_1 in the expression for K_1} \usage{ a1Coefficients(n) } \arguments{ \item{n}{an integer} } \description{ Caclulate the coefficients a_1 in the expressio...
/man/a1Coefficients.Rd
permissive
phillipmurray/BSS
R
false
true
351
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{a1Coefficients} \alias{a1Coefficients} \title{Caclulate the coefficients a_1 in the expression for K_1} \usage{ a1Coefficients(n) } \arguments{ \item{n}{an integer} } \description{ Caclulate the coefficients a_1 in the expressio...
# ode-to-bey.r print("can beyonce be quantified?") print("this link is recommended: https://www.youtube.com/watch?v=2XY3AvVgDns")
/ode-to-bey.r
no_license
coconn/ode-to-bey
R
false
false
131
r
# ode-to-bey.r print("can beyonce be quantified?") print("this link is recommended: https://www.youtube.com/watch?v=2XY3AvVgDns")
\name{inla.CRSargs} \alias{inla.CRSargs} \alias{inla.as.list.CRS} \alias{inla.as.list.CRSargs} \alias{inla.as.CRS.list} \alias{inla.as.CRSargs.list} \title{ Show expanded CRS arguments } \description{ Wrapper for \code{sp::CRS} and \code{inla.CRS} objects to extract the coordinate reference system argument string. ...
/man/inla.CRSargs.Rd
no_license
inbo/INLA
R
false
false
1,935
rd
\name{inla.CRSargs} \alias{inla.CRSargs} \alias{inla.as.list.CRS} \alias{inla.as.list.CRSargs} \alias{inla.as.CRS.list} \alias{inla.as.CRSargs.list} \title{ Show expanded CRS arguments } \description{ Wrapper for \code{sp::CRS} and \code{inla.CRS} objects to extract the coordinate reference system argument string. ...
library("networkD3") nodes = read.csv("forceNetwork_nodes.csv", stringsAsFactors = FALSE) links = read.csv("forceNetwork_links.csv", stringsAsFactors = FALSE) forceNetwork(Links = links, Nodes = nodes, Source = "source", Target = "target", Value = "value", NodeID = "name", Group = "group", op...
/30_visualization/JavaScript/networkD3/forceNetwork_01.R
no_license
snapbuy/R_edu
R
false
false
713
r
library("networkD3") nodes = read.csv("forceNetwork_nodes.csv", stringsAsFactors = FALSE) links = read.csv("forceNetwork_links.csv", stringsAsFactors = FALSE) forceNetwork(Links = links, Nodes = nodes, Source = "source", Target = "target", Value = "value", NodeID = "name", Group = "group", op...
rm(list=ls()) library(igraph) #' Take all graphs from all dataset and calculate the mean value for each edge. #' Note: since mean didn't work, currently it calculate variance instead of mean. #' @param pathInc, path controls #' @param pathInS2, path sla2 #' @param pathInS3, path sla3 #' @param pathMask, path of the ma...
/R/old/t_test/maskMean.R
no_license
emanuelepesce/dti_fmri_networks
R
false
false
4,925
r
rm(list=ls()) library(igraph) #' Take all graphs from all dataset and calculate the mean value for each edge. #' Note: since mean didn't work, currently it calculate variance instead of mean. #' @param pathInc, path controls #' @param pathInS2, path sla2 #' @param pathInS3, path sla3 #' @param pathMask, path of the ma...
library("ggplot2") library("gridExtra") setwd("C:/Users/Michael/Projects/ThreadOptimizer") compDat = read.csv("compThreadTestMaster.csv", header=T) urlDat = read.csv("urlThreadTestMaster.csv", header=T) rwDat = read.csv("readWriteThreadTestMaster.csv", header=T) p1 = ggplot(compDat, aes(threadCount, runTime), main) ...
/stats.r
no_license
wspoons5/ThreadOptimizer
R
false
false
688
r
library("ggplot2") library("gridExtra") setwd("C:/Users/Michael/Projects/ThreadOptimizer") compDat = read.csv("compThreadTestMaster.csv", header=T) urlDat = read.csv("urlThreadTestMaster.csv", header=T) rwDat = read.csv("readWriteThreadTestMaster.csv", header=T) p1 = ggplot(compDat, aes(threadCount, runTime), main) ...
library(eplusr) ### Name: clean_wd ### Title: Clean working directory of a previous EnergyPlus simulation ### Aliases: clean_wd ### ** Examples ## Not run: ##D clean_wd("foo.idf") ## End(Not run)
/data/genthat_extracted_code/eplusr/examples/clean_wd.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
204
r
library(eplusr) ### Name: clean_wd ### Title: Clean working directory of a previous EnergyPlus simulation ### Aliases: clean_wd ### ** Examples ## Not run: ##D clean_wd("foo.idf") ## End(Not run)
# set working directory (change this to fit your needs) setwd('C:/Users/nnadozie/Documents/GitHub/ExData_Plotting1') # required package library(lubridate) # make sure the sources data folder exists if (!file.exists('source data')) { dir.create('source data') } # check to see if the existing tidy data set exists; i...
/plotcodes/dataSetUp.R
no_license
remydozie/ExData_Plotting1
R
false
false
1,935
r
# set working directory (change this to fit your needs) setwd('C:/Users/nnadozie/Documents/GitHub/ExData_Plotting1') # required package library(lubridate) # make sure the sources data folder exists if (!file.exists('source data')) { dir.create('source data') } # check to see if the existing tidy data set exists; i...
#' @author Ivan Jacob Agaloos Pesigan #' #' @title Nonparametric Bootstrap with Percentile Confidence Intervals for Indirect Effect in a Simple Mediation Model #' for Data Generated from a Multivariate Normal Distribution with Data Missing Completely at Random - 20% #' #' @family nonparametric functions #' @keywords ...
/R/mvn_mcar_20_nbbc.fiml.R
permissive
jeksterslabds/jeksterslabRmedsimple
R
false
false
5,881
r
#' @author Ivan Jacob Agaloos Pesigan #' #' @title Nonparametric Bootstrap with Percentile Confidence Intervals for Indirect Effect in a Simple Mediation Model #' for Data Generated from a Multivariate Normal Distribution with Data Missing Completely at Random - 20% #' #' @family nonparametric functions #' @keywords ...
### ========================================================================= ### findOverlaps methods ### ------------------------------------------------------------------------- ### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ### findOverlaps_GenomicRanges_old() ### .putRangesOnFirst...
/R/findOverlaps-methods.R
no_license
jimhester/GenomicRanges
R
false
false
29,099
r
### ========================================================================= ### findOverlaps methods ### ------------------------------------------------------------------------- ### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ### findOverlaps_GenomicRanges_old() ### .putRangesOnFirst...
# Decision Tree Regression # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # trai...
/Part 2 - Regression/Decision Tree Regression/R/decision_tree_regression.R
no_license
Sidharth-Dinesh/ML-Algorithms
R
false
false
1,401
r
# Decision Tree Regression # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # trai...
library(rmarkdown) library(bookdown) render_book("index.Rmd") # or serve book serve_book()
/RenderBook.R
permissive
wbh-lab/LSHTMlearningnote
R
false
false
93
r
library(rmarkdown) library(bookdown) render_book("index.Rmd") # or serve book serve_book()
#Quantitative Ecology #Topic 11: non-metric multidimensional scaling #Author:Esther(Jabulile)Leroko #Fetch packages library(tidyverse) library(vegan) # The Doubs River Data ---------------------------------------------------- #Fetch the dataset setwd("C:/QE2021/Quantitative_Ecology-main/Num_Ecol_R_book_ed1") spe <- r...
/nMDS and assignment.R
no_license
Jabulile-bot/QE2021
R
false
false
12,994
r
#Quantitative Ecology #Topic 11: non-metric multidimensional scaling #Author:Esther(Jabulile)Leroko #Fetch packages library(tidyverse) library(vegan) # The Doubs River Data ---------------------------------------------------- #Fetch the dataset setwd("C:/QE2021/Quantitative_Ecology-main/Num_Ecol_R_book_ed1") spe <- r...
## makeCacheMatrix and cacheSolve are functions that save time in computing matrix inverses ## makeCacheMatrix creates a "matrix" which contains the getters and setters makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setinvert <-...
/cachematrix.R
no_license
sean-sebry/ProgrammingAssignment2
R
false
false
942
r
## makeCacheMatrix and cacheSolve are functions that save time in computing matrix inverses ## makeCacheMatrix creates a "matrix" which contains the getters and setters makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setinvert <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/toupper_first.R \name{toupper_first} \alias{toupper_first} \title{Uppercase the First Character of Each Word in a String} \usage{ toupper_first(string) } \arguments{ \item{string}{String to modify} } \value{ Returns a string with the first ch...
/man/toupper_first.Rd
no_license
stjordanis/tothr
R
false
true
750
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/toupper_first.R \name{toupper_first} \alias{toupper_first} \title{Uppercase the First Character of Each Word in a String} \usage{ toupper_first(string) } \arguments{ \item{string}{String to modify} } \value{ Returns a string with the first ch...
#' App UI #' #' @return tagList for app's UI #' @export #' @importFrom shiny tagList #' @importFrom shinydashboardPlus dashboardPagePlus app_ui <- function() { shiny::tagList( # adding external resources add_external_resources(), # shinydashboardPagePlus with right_sidebar shinydashboardPlus::dashb...
/R/app_ui.R
permissive
ScottSobel/EDA
R
false
false
1,261
r
#' App UI #' #' @return tagList for app's UI #' @export #' @importFrom shiny tagList #' @importFrom shinydashboardPlus dashboardPagePlus app_ui <- function() { shiny::tagList( # adding external resources add_external_resources(), # shinydashboardPagePlus with right_sidebar shinydashboardPlus::dashb...
`RODM_drop_model` <- function( # # Drop an Oracle Data Mining model # database, model_name, sql.log.file = NULL) { query.string <- paste("BEGIN dbms_data_mining.drop_model('", model_name, "'); END;", sep="", collapse="") if (!is.null(sql.log.file)) write(query.string, file ...
/RODM/R/RODM_drop_model.R
no_license
ingted/R-Examples
R
false
false
516
r
`RODM_drop_model` <- function( # # Drop an Oracle Data Mining model # database, model_name, sql.log.file = NULL) { query.string <- paste("BEGIN dbms_data_mining.drop_model('", model_name, "'); END;", sep="", collapse="") if (!is.null(sql.log.file)) write(query.string, file ...
#' Sample \code{\link{postPairs}} output to demonstrate use of package. #' #' List of 2 elements. #' 1) A list containing matrix of probabilities respective to random effect sets, #' with rows and columns corresponding to subject ID. Cell values lie between 0 and 1. #' Co-membership probability table is based on 1000 ...
/R/out_pc.R
permissive
maoyinan/BayesPC
R
false
false
626
r
#' Sample \code{\link{postPairs}} output to demonstrate use of package. #' #' List of 2 elements. #' 1) A list containing matrix of probabilities respective to random effect sets, #' with rows and columns corresponding to subject ID. Cell values lie between 0 and 1. #' Co-membership probability table is based on 1000 ...
#' Render a gganim object #' #' This function takes a gganim object and renders it into an animation. The #' nature of the animation is dependent on the renderer, but defaults to using #' `magick` to render it to a gif. The length and framerate is decided on render #' time and can be any two combination of `nframes`, `...
/R/animate.R
no_license
dmi3kno/gganimate
R
false
false
8,858
r
#' Render a gganim object #' #' This function takes a gganim object and renders it into an animation. The #' nature of the animation is dependent on the renderer, but defaults to using #' `magick` to render it to a gif. The length and framerate is decided on render #' time and can be any two combination of `nframes`, `...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "fri_c3_500_25") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = mak...
/models/openml_fri_c3_500_25/classification_binaryClass/3e839b0af7471bd50d36ef7c06740b34/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
693
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "fri_c3_500_25") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = mak...
with(aded5a0cc39c54422b6b4ea34f73996f1, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as...
/80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/aVqnzCpGjMFVJ.R
no_license
ayanmanna8/test
R
false
false
850
r
with(aded5a0cc39c54422b6b4ea34f73996f1, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as...
testlist <- list(AgeVector = 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), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
/myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615846860-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,090
r
testlist <- list(AgeVector = 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), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
#..........................................# #...........Blue-Green project.............# #..........................................# #..........................................................................................................................................# #... Collaborators: Eric Harvey, Isabelle G...
/scripts/BG_DatMan.R
no_license
harveye/BlueGreen
R
false
false
4,763
r
#..........................................# #...........Blue-Green project.............# #..........................................# #..........................................................................................................................................# #... Collaborators: Eric Harvey, Isabelle G...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_objects.R \name{ManualRuleGroup} \alias{ManualRuleGroup} \title{ManualRuleGroup Object} \usage{ ManualRuleGroup(items = NULL, groupName = NULL) } \arguments{ \item{items}{The items in the source data that should be placed into this gro...
/man/ManualRuleGroup.Rd
no_license
bradgwest/googleSheetsR
R
false
true
676
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_objects.R \name{ManualRuleGroup} \alias{ManualRuleGroup} \title{ManualRuleGroup Object} \usage{ ManualRuleGroup(items = NULL, groupName = NULL) } \arguments{ \item{items}{The items in the source data that should be placed into this gro...
library(CVD) ### Name: scoreFM100Graphic ### Title: Graphical score for the D-15 tests ### Aliases: scoreFM100Graphic ### Keywords: programming ### ** Examples # an example score ## Not run: ##D FM100example<-exampleFM100 ##D userFM100values=cbind(FM100example[1,], FM100example[4,-22], ##D FM100example[7,-22], FM...
/data/genthat_extracted_code/CVD/examples/scoreFM100Graphic.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
453
r
library(CVD) ### Name: scoreFM100Graphic ### Title: Graphical score for the D-15 tests ### Aliases: scoreFM100Graphic ### Keywords: programming ### ** Examples # an example score ## Not run: ##D FM100example<-exampleFM100 ##D userFM100values=cbind(FM100example[1,], FM100example[4,-22], ##D FM100example[7,-22], FM...
### main file to run AccessiCity ShiyApp rm(list=ls()) # Set working directory setwd("~/Documents/Muenster/Praktikum/ally") source('ShinyApp/getData.R') data.AccessiCity <- getData() # Save dataframe to file, save on processing time save(data.AccessiCity, file = "ShinyApp/data.AccessiCity.RData") library(shinyapp...
/shiny_main.R
no_license
eharason/ally_AccessiCity
R
false
false
355
r
### main file to run AccessiCity ShiyApp rm(list=ls()) # Set working directory setwd("~/Documents/Muenster/Praktikum/ally") source('ShinyApp/getData.R') data.AccessiCity <- getData() # Save dataframe to file, save on processing time save(data.AccessiCity, file = "ShinyApp/data.AccessiCity.RData") library(shinyapp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seat-distribution.R \name{get_seats} \alias{get_seats} \title{Calculate seat distribution from draws from posterior} \usage{ get_seats(dirichlet.draws, survey, distrib.fun = sls, samplesize = NULL, hurdle = 0.05, others = "others", ...) } \...
/man/get_seats.Rd
permissive
zedtaha/coalitions
R
false
true
1,245
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seat-distribution.R \name{get_seats} \alias{get_seats} \title{Calculate seat distribution from draws from posterior} \usage{ get_seats(dirichlet.draws, survey, distrib.fun = sls, samplesize = NULL, hurdle = 0.05, others = "others", ...) } \...
#install.packages("forecast") #install.packages("lmtest") #install.packages("tseries") #install.packages("urca") library(urca) library(lmtest) library(tseries) library(forecast) # Получение данных setwd("/Users/demg/Documents/Projects/FA/Course\ III/ECONOMETRICS/pract18") data <- read.csv('./data.csv', sep = ";"); dat...
/Course_III/ECONOMETRICS/pract18/taska_demenchuk.r
permissive
GeorgiyDemo/FA
R
false
false
4,679
r
#install.packages("forecast") #install.packages("lmtest") #install.packages("tseries") #install.packages("urca") library(urca) library(lmtest) library(tseries) library(forecast) # Получение данных setwd("/Users/demg/Documents/Projects/FA/Course\ III/ECONOMETRICS/pract18") data <- read.csv('./data.csv', sep = ";"); dat...
runCPMcalculations <- function(DT, macroDataTable, workingDirectory, S1_AssetCorrelation, S1_LGDCorrelation, S2_AssetCorrelation, S2_LGDCorrelation){ source('./RCode/CPM_Calculations_Functions.R') source('./RCode/RWA_functions.R') source('./RCode/CR...
/subModules/runCPMcalculations.R
no_license
somegek/Metis_2
R
false
false
32,550
r
runCPMcalculations <- function(DT, macroDataTable, workingDirectory, S1_AssetCorrelation, S1_LGDCorrelation, S2_AssetCorrelation, S2_LGDCorrelation){ source('./RCode/CPM_Calculations_Functions.R') source('./RCode/RWA_functions.R') source('./RCode/CR...
# question 1 - Create a vector ‘vec1’ and ‘vec2’ with elements 1 to 15 and 115 to 101. vec1 <- c(1:15) vec2 <- c(115:101) vec1 vec2 # question 2 - Create a vector ‘vec3’ of the sum of the log values of vec1 and vec2 in one argument and # print the result. vec3 <- log(vec1)+log(vec2) vec3 # question 3 - Print the...
/R_files/Practice projects/practice_1.R
no_license
bharathlolugu/Data_science_proj
R
false
false
1,759
r
# question 1 - Create a vector ‘vec1’ and ‘vec2’ with elements 1 to 15 and 115 to 101. vec1 <- c(1:15) vec2 <- c(115:101) vec1 vec2 # question 2 - Create a vector ‘vec3’ of the sum of the log values of vec1 and vec2 in one argument and # print the result. vec3 <- log(vec1)+log(vec2) vec3 # question 3 - Print the...
testlist <- list(a = -1L, b = -49153L, x = integer(0)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610131198-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
115
r
testlist <- list(a = -1L, b = -49153L, x = integer(0)) result <- do.call(grattan:::anyOutside,testlist) str(result)
library(rbmn) ### Name: chain2gema ### Title: transforms a /chain/ to a /gema/ ### Aliases: chain2gema ### ** Examples identical(chain2gema(rbmn0chain.02)$mu, rbmn0gema.02$mu); print(chain2gema(rbmn0chain.02)$li-rbmn0gema.02$li);
/data/genthat_extracted_code/rbmn/examples/chain2gema.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
239
r
library(rbmn) ### Name: chain2gema ### Title: transforms a /chain/ to a /gema/ ### Aliases: chain2gema ### ** Examples identical(chain2gema(rbmn0chain.02)$mu, rbmn0gema.02$mu); print(chain2gema(rbmn0chain.02)$li-rbmn0gema.02$li);
library(XML) library(RCurl) setwd("E:\\Hockey\\Salary") teamlist <- c("ANA", "BOS", "BUF", "CGY", "CAR", "CHI", "COL", "CLB", "DAL", "DET", "EDM", "FLA", "LAK", "MIN", "MTL", "NAS", "NJD", "NYI", "NYR", "OTT", "PHI", "ARI", "PIT", "SJS", "STL", "TBL", "TOR", "VAN", ...
/RCode/ScrapNHLNumbers2.R
no_license
frutoper/NHL_Salary_Viz
R
false
false
2,679
r
library(XML) library(RCurl) setwd("E:\\Hockey\\Salary") teamlist <- c("ANA", "BOS", "BUF", "CGY", "CAR", "CHI", "COL", "CLB", "DAL", "DET", "EDM", "FLA", "LAK", "MIN", "MTL", "NAS", "NJD", "NYI", "NYR", "OTT", "PHI", "ARI", "PIT", "SJS", "STL", "TBL", "TOR", "VAN", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/janitor_deprecated.R \name{remove_empty_rows} \alias{remove_empty_rows} \title{Removes empty rows from a data.frame.} \usage{ remove_empty_rows(dat) } \arguments{ \item{dat}{the input data.frame.} } \value{ Returns the data.frame ...
/man/remove_empty_rows.Rd
no_license
cran/janitor
R
false
true
491
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/janitor_deprecated.R \name{remove_empty_rows} \alias{remove_empty_rows} \title{Removes empty rows from a data.frame.} \usage{ remove_empty_rows(dat) } \arguments{ \item{dat}{the input data.frame.} } \value{ Returns the data.frame ...
plot.ecssReimherr <- function(x,n.target,type="target",power=NULL,tol=1e-5,...){ ESS=ecssReimherr(x,n.target,type=type,power=power,tol=tol) Ub=splinefun(x=seq_along(x$U.base), y=x$U.base) Ui=splinefun(x=seq_along(x$U.info), y=x$U.info) plot(x$U.base,type="l",col=1,lwd=2,lty="dashed",sub="root of Uinfo(...
/R/plot.ecssReimherr.R
no_license
DKFZ-biostats/ESS
R
false
false
840
r
plot.ecssReimherr <- function(x,n.target,type="target",power=NULL,tol=1e-5,...){ ESS=ecssReimherr(x,n.target,type=type,power=power,tol=tol) Ub=splinefun(x=seq_along(x$U.base), y=x$U.base) Ui=splinefun(x=seq_along(x$U.info), y=x$U.info) plot(x$U.base,type="l",col=1,lwd=2,lty="dashed",sub="root of Uinfo(...
suppressMessages({ library(ArchR) library(Seurat) library(dplyr) }) scrna_integrate <- function(root,scrna_pth, proj, dr, clusters,getGL) { if (!("predCellRNA" %in% colnames(proj@cellColData))) { print("performing rna integration...") scrna <- readRDS(scrna_pth) groupList <- getGL(proj,scrna) ...
/scripts/scRNA_integrate.R
no_license
juliabelk/mol_cell_2022
R
false
false
931
r
suppressMessages({ library(ArchR) library(Seurat) library(dplyr) }) scrna_integrate <- function(root,scrna_pth, proj, dr, clusters,getGL) { if (!("predCellRNA" %in% colnames(proj@cellColData))) { print("performing rna integration...") scrna <- readRDS(scrna_pth) groupList <- getGL(proj,scrna) ...
library(fbar) ### Name: decompose_metabolites ### Title: Decompose a metabolite table into the metabolite stub itself and ### the compartment it is in ### Aliases: decompose_metabolites ### ** Examples data(ecoli_core) mod <- reactiontbl_to_expanded(ecoli_core) decompose_metabolites(mod$mets) recompose_metabol...
/data/genthat_extracted_code/fbar/examples/decompose_metabolites.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
361
r
library(fbar) ### Name: decompose_metabolites ### Title: Decompose a metabolite table into the metabolite stub itself and ### the compartment it is in ### Aliases: decompose_metabolites ### ** Examples data(ecoli_core) mod <- reactiontbl_to_expanded(ecoli_core) decompose_metabolites(mod$mets) recompose_metabol...
message(' 0-initialization') suppressMessages(source('code/R/dep.R')) list.files('code/R/scGCNUtils/R') %>% file.path('code/R/scGCNUtils/R', .) %>% map(source) library('tictoc') library('furrr') ## dirs tag = 'test' verbose = 2 log = TRUE read_cache = FALSE write_cache = FALSE ## verbose verbose_1 = FALSE v...
/code/R/pipeline.R
no_license
EliHei2/scGCN
R
false
false
2,966
r
message(' 0-initialization') suppressMessages(source('code/R/dep.R')) list.files('code/R/scGCNUtils/R') %>% file.path('code/R/scGCNUtils/R', .) %>% map(source) library('tictoc') library('furrr') ## dirs tag = 'test' verbose = 2 log = TRUE read_cache = FALSE write_cache = FALSE ## verbose verbose_1 = FALSE v...
library('purrr') library('tm') library('NLP') library('openNLP') # suppress warnings options(warn=-1) wd <- "/home/jernej/Desktop/Repositories/projects/IS-assignment-2" setwd(wd) # Parse dataset to augment. dataset <- readRDS("data/dataset1.rds") # Load corpus. raw_corpus <- Corpus(DirSource("essay")) n <- names(ra...
/get_dataset2.R
no_license
jernejvivod/IS-assignment-2
R
false
false
2,181
r
library('purrr') library('tm') library('NLP') library('openNLP') # suppress warnings options(warn=-1) wd <- "/home/jernej/Desktop/Repositories/projects/IS-assignment-2" setwd(wd) # Parse dataset to augment. dataset <- readRDS("data/dataset1.rds") # Load corpus. raw_corpus <- Corpus(DirSource("essay")) n <- names(ra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots-utility-referenceLines.R \name{getParFctReferenceLines} \alias{getParFctReferenceLines} \title{Get parameter of function used for reference lines} \usage{ getParFctReferenceLines(type) } \arguments{ \item{type}{string with line type, ei...
/package/clinDataReview/man/getParFctReferenceLines.Rd
no_license
Lion666/clinDataReview
R
false
true
517
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots-utility-referenceLines.R \name{getParFctReferenceLines} \alias{getParFctReferenceLines} \title{Get parameter of function used for reference lines} \usage{ getParFctReferenceLines(type) } \arguments{ \item{type}{string with line type, ei...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/skitools.R \name{qviz} \alias{qviz} \title{qviz} \usage{ qviz(res = NULL, queue = NULL, field = "h_vmem", frac = FALSE, all = FALSE, plot = TRUE) } \description{ Plots resources (default h_vmem requestes) across cluster either for provided ...
/man/qviz.Rd
no_license
xtYao/skitools
R
false
true
424
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/skitools.R \name{qviz} \alias{qviz} \title{qviz} \usage{ qviz(res = NULL, queue = NULL, field = "h_vmem", frac = FALSE, all = FALSE, plot = TRUE) } \description{ Plots resources (default h_vmem requestes) across cluster either for provided ...
## Functions # Put multiple plots on one page multiplot <- function(..., plotlist=NULL, file, cols=1, layout=NULL) { library(grid) # Make a list from the ... arguments and plotlist plots <- c(list(...), plotlist) numPlots = length(plots) # If layout is NULL, then use 'cols' to determine lay...
/P2_Functions.R
no_license
SiyLiu/Ghost-Ghoul-and-Goblin----Classification
R
false
false
4,167
r
## Functions # Put multiple plots on one page multiplot <- function(..., plotlist=NULL, file, cols=1, layout=NULL) { library(grid) # Make a list from the ... arguments and plotlist plots <- c(list(...), plotlist) numPlots = length(plots) # If layout is NULL, then use 'cols' to determine lay...
require(spgrass6) require(rgdal) require(foreign) rootPath="F:\\55_check_ert" setwd(rootPath) ##settings location="Laterns" grassPath="F:\\55_check_ert\\01_DATA\\grass" ##slope profile # filesPath="F:\\55_check_ert\\01_DATA\\Geoelektrik_Auswertung\\Bonacker\\2014_07_24_gp_lang120_bonacker" # fileList=c("bf2_lang_120...
/02_interpol_all_slope.R
no_license
thomaszieher/time_lapse_ERT
R
false
false
2,550
r
require(spgrass6) require(rgdal) require(foreign) rootPath="F:\\55_check_ert" setwd(rootPath) ##settings location="Laterns" grassPath="F:\\55_check_ert\\01_DATA\\grass" ##slope profile # filesPath="F:\\55_check_ert\\01_DATA\\Geoelektrik_Auswertung\\Bonacker\\2014_07_24_gp_lang120_bonacker" # fileList=c("bf2_lang_120...
# -------- Packages and Options ------- pacman::p_load(data.table, magrittr, lubridate, ggplot2, ggthemes, locfit, rstan, optparse) pacman::p_load_gh('jdossgollin/JamesR') # get command line options, if help option encountered print help and exit, # otherwise if options not found on command line then set defaults, opt...
/scripts/LocfitCycloneWeights.R
no_license
jdossgollin/2016-moisture-flux-orb
R
false
false
5,340
r
# -------- Packages and Options ------- pacman::p_load(data.table, magrittr, lubridate, ggplot2, ggthemes, locfit, rstan, optparse) pacman::p_load_gh('jdossgollin/JamesR') # get command line options, if help option encountered print help and exit, # otherwise if options not found on command line then set defaults, opt...
library(png) fan <- readPNG(system.file("images", "fan-small.png", package="mmand")) context("Mathematical morphology and filtering") test_that("binary mathematical morphology operations work", { data <- c(0,0,1,0,0,0,1,1,1,0,0) kernel <- c(1,1,1) expect_that(binary(data), is_true()) expect_that(erode...
/mmand/tests/testthat/test-10-morph.R
no_license
ingted/R-Examples
R
false
false
2,903
r
library(png) fan <- readPNG(system.file("images", "fan-small.png", package="mmand")) context("Mathematical morphology and filtering") test_that("binary mathematical morphology operations work", { data <- c(0,0,1,0,0,0,1,1,1,0,0) kernel <- c(1,1,1) expect_that(binary(data), is_true()) expect_that(erode...
## File Name: tamaanify_tam_mml_3pl_designMatrices.R ## File Version: 9.215 ### design matrices for estimation with tam.mml.3pl method tamaanify_tam_mml_3pl_designMatrices <- function(res) { res <- switch( res$ANALYSIS.list$type, "LCA"=tamaanify.tam.mml.3pl.designMatrices.LCA(res=res), "LO...
/R/tamaanify_tam_mml_3pl_designMatrices.R
no_license
alexanderrobitzsch/TAM
R
false
false
645
r
## File Name: tamaanify_tam_mml_3pl_designMatrices.R ## File Version: 9.215 ### design matrices for estimation with tam.mml.3pl method tamaanify_tam_mml_3pl_designMatrices <- function(res) { res <- switch( res$ANALYSIS.list$type, "LCA"=tamaanify.tam.mml.3pl.designMatrices.LCA(res=res), "LO...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/qrencode_helpers.R \name{qrencode_raster} \alias{qrencode_raster} \title{Return a QR encoded string as a raster object} \usage{ qrencode_raster(to_encode) } \description{ Return a QR encoded string as a raster object } \examples{ libr...
/man/qrencode_raster.Rd
no_license
angelonardone/qrencoder
R
false
false
539
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/qrencode_helpers.R \name{qrencode_raster} \alias{qrencode_raster} \title{Return a QR encoded string as a raster object} \usage{ qrencode_raster(to_encode) } \description{ Return a QR encoded string as a raster object } \examples{ libr...
#### MASTER CODE TO RUN A FULL MEDICAID DATA REFRESH # # Alastair Matheson, PHSKC (APDE) # # 2019-05 #### Set up global parameter and call in libraries #### options(max.print = 350, tibble.print_max = 50, warning.length = 8170, scipen = 999) library(tidyverse) # Manipulate data library(lubridate) # Manipulat...
/claims_db/db_loader/mcaid/master_mcaid_full.R
no_license
elixireumorg/claims_data
R
false
false
7,010
r
#### MASTER CODE TO RUN A FULL MEDICAID DATA REFRESH # # Alastair Matheson, PHSKC (APDE) # # 2019-05 #### Set up global parameter and call in libraries #### options(max.print = 350, tibble.print_max = 50, warning.length = 8170, scipen = 999) library(tidyverse) # Manipulate data library(lubridate) # Manipulat...
OneSeed <- function(seed){ library(data.table) seed.csv <- sprintf("figure-sonar-comparisons-data-seed%d.csv", seed) append <- FALSE data(package="mlbench") data(Sonar, package="mlbench") data(DNA, package="mlbench") data.list <- list( Sonar=list( input.mat=as.matrix(Sonar[,1:60]), output....
/figure-sonar-comparisons-data.R
no_license
tdhock/max-generalized-auc
R
false
false
6,257
r
OneSeed <- function(seed){ library(data.table) seed.csv <- sprintf("figure-sonar-comparisons-data-seed%d.csv", seed) append <- FALSE data(package="mlbench") data(Sonar, package="mlbench") data(DNA, package="mlbench") data.list <- list( Sonar=list( input.mat=as.matrix(Sonar[,1:60]), output....
library(shiny) library(ggplot2) library(MASS) shinyServer( function(input, output) { datasetInput <- reactive({ switch(input$dataset, "rock" = rock, "pressure" = pressure, "cars" = cars) }) output$nrows <- reactive({ nrow(dataset...
/dynamic UI_1/server.R
no_license
Zaphiroth/Shiny_Module
R
false
false
1,398
r
library(shiny) library(ggplot2) library(MASS) shinyServer( function(input, output) { datasetInput <- reactive({ switch(input$dataset, "rock" = rock, "pressure" = pressure, "cars" = cars) }) output$nrows <- reactive({ nrow(dataset...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlwinfitMCMC.R \name{coef,mlwinfitMCMC-method} \alias{coef,mlwinfitMCMC-method} \title{Extract the coefficient vector from "mlwinfitMCMC" objects} \usage{ \S4method{coef}{mlwinfitMCMC}(object, ...) } \arguments{ \item{object}{An \code{\link{m...
/man/coef-mlwinfitMCMC-method.Rd
no_license
cran/R2MLwiN
R
false
true
501
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlwinfitMCMC.R \name{coef,mlwinfitMCMC-method} \alias{coef,mlwinfitMCMC-method} \title{Extract the coefficient vector from "mlwinfitMCMC" objects} \usage{ \S4method{coef}{mlwinfitMCMC}(object, ...) } \arguments{ \item{object}{An \code{\link{m...
#' Fabrication d'un stack #' #' @description Fabrication stack à partir de couches raster, harmonisation des rasters, #' adaptation des rasters à une zone d'étude. #' #' @import sf #' @import tidyverse #' @import raster #' #' @param listeRaster Liste des rasters qui consitueront le stack. #' @param noms Noms des raster...
/R/CreateStack.R
no_license
Bruciamacchie/Forestree
R
false
false
1,214
r
#' Fabrication d'un stack #' #' @description Fabrication stack à partir de couches raster, harmonisation des rasters, #' adaptation des rasters à une zone d'étude. #' #' @import sf #' @import tidyverse #' @import raster #' #' @param listeRaster Liste des rasters qui consitueront le stack. #' @param noms Noms des raster...
This is a tool for analyzing the error handling style of Java code for author-related style traits at scale. Check out the full report (final_report.pdf) for more information. To build: Build the dependencies with Maven (using pom.xml in either Eclipse or command line mvn) javac ErrorController.java To execute: java ...
/README.rd
no_license
sinflood/FailWithStyle
R
false
false
746
rd
This is a tool for analyzing the error handling style of Java code for author-related style traits at scale. Check out the full report (final_report.pdf) for more information. To build: Build the dependencies with Maven (using pom.xml in either Eclipse or command line mvn) javac ErrorController.java To execute: java ...
library(shiny) library(shinydashboard) library(qcc) # Define UI for application that draws a histogram shinyUI(fluidPage( dashboardPage(skin="yellow", dashboardHeader(title = "QC Tool"), dashboardSidebar( sidebarMenu( menuItem("Single Sample Xbar-chart", tabName = "singlexbar", icon = icon("l...
/ui.R
no_license
sachinvarriar/QC_Shinydashboard
R
false
false
3,139
r
library(shiny) library(shinydashboard) library(qcc) # Define UI for application that draws a histogram shinyUI(fluidPage( dashboardPage(skin="yellow", dashboardHeader(title = "QC Tool"), dashboardSidebar( sidebarMenu( menuItem("Single Sample Xbar-chart", tabName = "singlexbar", icon = icon("l...
#'@export sw.to.par.base = function(sw, coeff=2.114){ par = sw * coeff } #'@name sw.to.par #'@aliases sw.to.par.base #'@title Convert shortwave radiation to PAR #'@description #'Returns PAR by converting incoming shortwave radiation measuremt. #' #'@usage #'sw.to.par(data, sw.col='sw', coeff=2.114) ...
/R/sw.to.par.R
no_license
cran/LakeMetabolizer
R
false
false
1,542
r
#'@export sw.to.par.base = function(sw, coeff=2.114){ par = sw * coeff } #'@name sw.to.par #'@aliases sw.to.par.base #'@title Convert shortwave radiation to PAR #'@description #'Returns PAR by converting incoming shortwave radiation measuremt. #' #'@usage #'sw.to.par(data, sw.col='sw', coeff=2.114) ...
testlist <- list(A = structure(c(1.27659366578591e-309, 2.84774687419546e-306, 2.67106091528693e-41, 2.16452904073932e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613108464-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
282
r
testlist <- list(A = structure(c(1.27659366578591e-309, 2.84774687419546e-306, 2.67106091528693e-41, 2.16452904073932e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
# Clear Workspace rm(list = ls()) # load packages library(lubridate) # Get Old Weather temp <- tempfile() download.file("https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/daily/kl/historical/tageswerte_KL_02932_19340101_20181231_hist.zip", temp) oldWeather <- read.csv(unz(temp, "produk...
/getDailyDat.R
permissive
georgeblck/weatherLeipzig
R
false
false
1,780
r
# Clear Workspace rm(list = ls()) # load packages library(lubridate) # Get Old Weather temp <- tempfile() download.file("https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/daily/kl/historical/tageswerte_KL_02932_19340101_20181231_hist.zip", temp) oldWeather <- read.csv(unz(temp, "produk...
FLine <- readLines("household_power_consumption.txt") PatReg <- grep("[12]/2/2007",substr(FLine,1,8)) DataTable <- read.table(text=FLine[PatReg], header = TRUE,sep = ";", col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub...
/figure/plot3.R
no_license
gokulanathgr/ExData_Plotting1
R
false
false
953
r
FLine <- readLines("household_power_consumption.txt") PatReg <- grep("[12]/2/2007",substr(FLine,1,8)) DataTable <- read.table(text=FLine[PatReg], header = TRUE,sep = ";", col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub...
library(entropart) ### Name: AllenH ### Title: Phylogenetic Entropy of a Community ### Aliases: AllenH ### ** Examples # Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest # and their taxonomy) data(Paracou618) # Ps is the vector of probabilities Ps <- as.ProbaVector(Paracou61...
/data/genthat_extracted_code/entropart/examples/AllenH.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
617
r
library(entropart) ### Name: AllenH ### Title: Phylogenetic Entropy of a Community ### Aliases: AllenH ### ** Examples # Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest # and their taxonomy) data(Paracou618) # Ps is the vector of probabilities Ps <- as.ProbaVector(Paracou61...
################################################################################## # SIMULATION STUDY for difference-in-differences estimation with binary response data # Three Algorithms for computing the standard error: Delta method; Bootstrap; Bayesian # Author: Taeyong Park ########################################...
/didLogit_Simulation.R
no_license
typark99/didLogit_ComputingStdError
R
false
false
15,961
r
################################################################################## # SIMULATION STUDY for difference-in-differences estimation with binary response data # Three Algorithms for computing the standard error: Delta method; Bootstrap; Bayesian # Author: Taeyong Park ########################################...
#'Estimate average causal effects under a two-stage hierarchical design. #' #'Estimate average causal effects and their variance under two-stage #'hierarchical treatment assignment, assuming partial and stratified #'interference. #' #'\code{estimates} produces values of the estimators proposed by Hudgens and #'Halloran...
/R/estimates_hierarchical.R
no_license
BorisHouenou/interference
R
false
false
8,301
r
#'Estimate average causal effects under a two-stage hierarchical design. #' #'Estimate average causal effects and their variance under two-stage #'hierarchical treatment assignment, assuming partial and stratified #'interference. #' #'\code{estimates} produces values of the estimators proposed by Hudgens and #'Halloran...
#' 2つの数字を掛け算する #' #' @param x 1つめの数字 #' @param y 2つめの数字 #' @examples #' library(testpackage) #' testfunc(2, 3) testfunc <- function(x, y){ return(x*y) }
/R/test_function.R
no_license
ichimomo/testpackage
R
false
false
202
r
#' 2つの数字を掛け算する #' #' @param x 1つめの数字 #' @param y 2つめの数字 #' @examples #' library(testpackage) #' testfunc(2, 3) testfunc <- function(x, y){ return(x*y) }
d <- read.csv(file="./CodierungNeu3.csv", head=TRUE, sep=",") k1 <- subset(d, Klasse==1) k2 <- subset(d, Klasse==2) k3 <- subset(d, Klasse==3) k4 <- subset(d, Klasse==4) #Klasse 1 vs 2 var <- k1$M201_Q1 var2 <- k2$M201_Q1 x <- matrix(c(nrow(k1) - sum(var == 1),nrow(k1) - sum(var2 == 1),sum(var== 1),sum(var2== 1)),...
/Auswertung/Correlations.R
no_license
DavidSichau/masterarbeit-phzh
R
false
false
9,390
r
d <- read.csv(file="./CodierungNeu3.csv", head=TRUE, sep=",") k1 <- subset(d, Klasse==1) k2 <- subset(d, Klasse==2) k3 <- subset(d, Klasse==3) k4 <- subset(d, Klasse==4) #Klasse 1 vs 2 var <- k1$M201_Q1 var2 <- k2$M201_Q1 x <- matrix(c(nrow(k1) - sum(var == 1),nrow(k1) - sum(var2 == 1),sum(var== 1),sum(var2== 1)),...
#' #' @export rc <- function(x) as.character(Biostrings::reverseComplement(Biostrings::DNAStringSet(x)))
/R/rc.R
permissive
jan-glx/schelpr
R
false
false
105
r
#' #' @export rc <- function(x) as.character(Biostrings::reverseComplement(Biostrings::DNAStringSet(x)))
library(shiny) library(tidyverse) library(forcats) library(magrittr) library(visNetwork) library(shinycssloaders) library(shinyjs) library(shinythemes) library(plotly) library(DT) library(RColorBrewer) source('modules/natal_shed_cc.R', local = TRUE) source('modules/notes.R', local = TRUE) source('modules/migrants_cc.R...
/global.R
no_license
FlowWest/carrying-capacity-app
R
false
false
1,596
r
library(shiny) library(tidyverse) library(forcats) library(magrittr) library(visNetwork) library(shinycssloaders) library(shinyjs) library(shinythemes) library(plotly) library(DT) library(RColorBrewer) source('modules/natal_shed_cc.R', local = TRUE) source('modules/notes.R', local = TRUE) source('modules/migrants_cc.R...
library(Pusto) rm(list=ls()) source("t-test-and-simulation-functions.R") #----------------------------- # Data-generating model #----------------------------- Long_dgm <- function(n = 25, B = c(1, 1, 1, 1, 0, 0), Estruct = "E0", whichX = c(T, T ,T ,T ,T ,F), Edist = "En") { # Distributions used in generating dat...
/Long and Ervin/runLErep.R
no_license
meghapsimatrix/HetRobust
R
false
false
2,700
r
library(Pusto) rm(list=ls()) source("t-test-and-simulation-functions.R") #----------------------------- # Data-generating model #----------------------------- Long_dgm <- function(n = 25, B = c(1, 1, 1, 1, 0, 0), Estruct = "E0", whichX = c(T, T ,T ,T ,T ,F), Edist = "En") { # Distributions used in generating dat...
siber.convexhull <- function(x,y){ chI <- chull(x,y) chI <- c(chI,chI[1]) hullX <- x[chI] hullY <- y[chI] TA <- hullarea(hullX,hullY) out <- list() out$TA <- TA out$xcoords <- hullX out$ycoords <- hullY out$ind <- chI out }
/R/siber.convexhull.R
no_license
ChrisHarrod/SIBER
R
false
false
245
r
siber.convexhull <- function(x,y){ chI <- chull(x,y) chI <- c(chI,chI[1]) hullX <- x[chI] hullY <- y[chI] TA <- hullarea(hullX,hullY) out <- list() out$TA <- TA out$xcoords <- hullX out$ycoords <- hullY out$ind <- chI out }