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
##Script MODEL = calcul du model qrf pour chaque couche d HR pour les nuages de glace et avec CloudSat source("/bdd/MT_WORKSPACE/SAPHIR_downscaling/Calibration-Data_vmichot/CALIPSO_SAPHIR_coloc_out_all_tropical_seas/allday/ALL_SAPHIR_DOWNSCALING_SCRIPTS/Comp_func_VM.R") # ## PATHS source("/bdd/MT_WORKSPACE/SAPHIR_do...
/3_downscal_MODEL/3_downscal_MODEL_ICEcloud_with_CL.R
no_license
thaos/SAPHIR_downscaling
R
false
false
8,918
r
##Script MODEL = calcul du model qrf pour chaque couche d HR pour les nuages de glace et avec CloudSat source("/bdd/MT_WORKSPACE/SAPHIR_downscaling/Calibration-Data_vmichot/CALIPSO_SAPHIR_coloc_out_all_tropical_seas/allday/ALL_SAPHIR_DOWNSCALING_SCRIPTS/Comp_func_VM.R") # ## PATHS source("/bdd/MT_WORKSPACE/SAPHIR_do...
plot_indiv_species <- function(.inverts_manyglm_fin_aov_tidy, .zoops_manyglm_fin_aov_tidy, .bact_manyglm_fin_aov_tidy, .mytheme){ tidy_total <- rbind_list(.inverts_manyglm_fin_aov_tidy %>% mut...
/R.scripts/waldplot.R
permissive
aammd/Habitat_Filtering
R
false
false
1,926
r
plot_indiv_species <- function(.inverts_manyglm_fin_aov_tidy, .zoops_manyglm_fin_aov_tidy, .bact_manyglm_fin_aov_tidy, .mytheme){ tidy_total <- rbind_list(.inverts_manyglm_fin_aov_tidy %>% mut...
#' @include Generics.R Verbosity.R TableMort.R TableMortDiscrete.R TableMortContinue.R TableMortGroupePDI.R NULL ############################### (Fille) TableMortGroupePDIContinue Une table continue est definie par sa loi, et donc les pxt. #' @name TableMortGroupePDIContinue #' @export setClass(Class = "TableMortGro...
/R/TableMortGroupePDIContinue.R
no_license
lrnv/actulife
R
false
false
1,965
r
#' @include Generics.R Verbosity.R TableMort.R TableMortDiscrete.R TableMortContinue.R TableMortGroupePDI.R NULL ############################### (Fille) TableMortGroupePDIContinue Une table continue est definie par sa loi, et donc les pxt. #' @name TableMortGroupePDIContinue #' @export setClass(Class = "TableMortGro...
# Code placed in this file fill be executed every time the # lesson is started. Any variables created here will show up in # the user's working directory and thus be accessible to them # throughout the lesson. check_rmd <- function(){invisible()} # For compatibility with 2.2.21 .get_course_path <<- function(){ tryC...
/B_analysts_sources_github/seankross/RMarkdown_Course/initLesson.R
no_license
Irbis3/crantasticScrapper
R
false
false
888
r
# Code placed in this file fill be executed every time the # lesson is started. Any variables created here will show up in # the user's working directory and thus be accessible to them # throughout the lesson. check_rmd <- function(){invisible()} # For compatibility with 2.2.21 .get_course_path <<- function(){ tryC...
library(tidyverse) library(nflscrapR) library(ggplot2) library(pscl) library(lubridate) library(stargazer) library(MASS) library(mgcv) library(zoo) # library(car) # library(DHARMa) # library(fitdistrplus) library(ggpubr) #library(RSQLite) library(ggrepel) #download.file("https://raw.githubusercontent.com/ryurko/nflscr...
/expected-points/archive/analysis/Validating Models.R
no_license
jkope892/research
R
false
false
20,604
r
library(tidyverse) library(nflscrapR) library(ggplot2) library(pscl) library(lubridate) library(stargazer) library(MASS) library(mgcv) library(zoo) # library(car) # library(DHARMa) # library(fitdistrplus) library(ggpubr) #library(RSQLite) library(ggrepel) #download.file("https://raw.githubusercontent.com/ryurko/nflscr...
#source("~/Desktop/research/notes/R_code/addAnnot.R") addAnnot <- function (df,sp,field) { # df: a dataframe to add the annotations to # sp: what species to use # like addAnnotation, but for dataframes with EG ids or new (kw) ids, not affy require(org.Mm.eg.db) require(org.Hs.eg.db) switch(field, symbol =...
/addAnnot.R
no_license
sgschneider01/R_code
R
false
false
1,007
r
#source("~/Desktop/research/notes/R_code/addAnnot.R") addAnnot <- function (df,sp,field) { # df: a dataframe to add the annotations to # sp: what species to use # like addAnnotation, but for dataframes with EG ids or new (kw) ids, not affy require(org.Mm.eg.db) require(org.Hs.eg.db) switch(field, symbol =...
library(tidyr) library(sf) library(readxl) library(dplyr) library(readr) library(stringr) vjs_submd_fun <- function(DDBB_v){ #libraries library(DBI) library(dtplyr) library(dplyr) library(data.table) #connection con <- DBI::dbConnect(odbc::odbc(), Driver = "SQL Server", ...
/ipt.R
no_license
arielfuentes/AnalysisAdatrap
R
false
false
3,252
r
library(tidyr) library(sf) library(readxl) library(dplyr) library(readr) library(stringr) vjs_submd_fun <- function(DDBB_v){ #libraries library(DBI) library(dtplyr) library(dplyr) library(data.table) #connection con <- DBI::dbConnect(odbc::odbc(), Driver = "SQL Server", ...
#' Calculates Q-matrix for Ploidevol model #' @details This function specifies a Q-matrix of size 11x11 where states are ploidy values from 2x to 12x #' #' @param log.theta vector of size 6 with ln values of parameters (alpha, beta, delta, epsilon, rho, omega) #' @return Q a sparse matrix of size 11x11 #' @export Q_pl...
/R/Q_ploidevol.R
no_license
roszenil/chromploid
R
false
false
1,470
r
#' Calculates Q-matrix for Ploidevol model #' @details This function specifies a Q-matrix of size 11x11 where states are ploidy values from 2x to 12x #' #' @param log.theta vector of size 6 with ln values of parameters (alpha, beta, delta, epsilon, rho, omega) #' @return Q a sparse matrix of size 11x11 #' @export Q_pl...
library(DAMisc) ### Name: intEff ### Title: Functions for Estimating Interaction Effects in Logit and Probit ### Models ### Aliases: intEff ### ** Examples data(france) mod <- glm(voteleft ~ age*lrself + retnat + male, data=france, family=binomial) out <- intEff(obj=mod, vars=c("age", "lrself"), data=france) plot...
/data/genthat_extracted_code/DAMisc/examples/intEff.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
656
r
library(DAMisc) ### Name: intEff ### Title: Functions for Estimating Interaction Effects in Logit and Probit ### Models ### Aliases: intEff ### ** Examples data(france) mod <- glm(voteleft ~ age*lrself + retnat + male, data=france, family=binomial) out <- intEff(obj=mod, vars=c("age", "lrself"), data=france) plot...
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should b...
/dev/01_start.R
permissive
ReseauBiodiversiteQuebec/tableauphenologie
R
false
false
2,492
r
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should b...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % capabilitiesX11.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{capabilitiesX11} \...
/man/capabilitiesX11.Rd
no_license
HenrikBengtsson/R.devices
R
false
false
1,421
rd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % capabilitiesX11.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{capabilitiesX11} \...
##Caching the inverse of a matrix, ##using the <<- operator to assign a value to a different environment ## Creating a special "matrix", which is a list containing a function to do: ##set the values of the matrix ##get the values of the matrix ##set the value of the inverse of the matrix ...
/cachematrix.R
no_license
toddhim/ProgrammingAssignment2
R
false
false
1,282
r
##Caching the inverse of a matrix, ##using the <<- operator to assign a value to a different environment ## Creating a special "matrix", which is a list containing a function to do: ##set the values of the matrix ##get the values of the matrix ##set the value of the inverse of the matrix ...
library(shiny) source("../../R/bretMarkerEffectOnPathology.R") load("../../data/bretCellMarkers.rda") load("../../data/countDf.rda") load("../../data/metadata.rda") ui <- fluidPage( titlePanel("BRETIGEA Method And the Effect of Marker Genes on Pathology Association"), sidebarLayout( sidebarPanel( helpTe...
/inst/shiny-scripts/app.R
permissive
meconsens/CellTyPETool
R
false
false
1,906
r
library(shiny) source("../../R/bretMarkerEffectOnPathology.R") load("../../data/bretCellMarkers.rda") load("../../data/countDf.rda") load("../../data/metadata.rda") ui <- fluidPage( titlePanel("BRETIGEA Method And the Effect of Marker Genes on Pathology Association"), sidebarLayout( sidebarPanel( helpTe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/function_median_test.R \name{median_test} \alias{median_test} \title{Function of 'median test',and similar to the rank.} \usage{ median_test(x, median = NA) } \arguments{ \item{x}{Numeric vector} \item{median}{Comparasion object} } \value{ T...
/man/median_test.Rd
no_license
zhaoxue-xmu/RDA
R
false
true
614
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/function_median_test.R \name{median_test} \alias{median_test} \title{Function of 'median test',and similar to the rank.} \usage{ median_test(x, median = NA) } \arguments{ \item{x}{Numeric vector} \item{median}{Comparasion object} } \value{ T...
#' Read a MODFLOW multiplier file #' #' \code{read_mlt} reads in a MODFLOW multiplier file and returns it as an \code{\link{RMODFLOW}} mlt object. #' #' @param file filename; typically '*.mlt' #' @param dis discretization file object; defaults to that with the same filename but with extension '.dis' #' @param ... arg...
/R/rmf-read-mlt.R
no_license
matejgedeon/RMODFLOW
R
false
false
2,495
r
#' Read a MODFLOW multiplier file #' #' \code{read_mlt} reads in a MODFLOW multiplier file and returns it as an \code{\link{RMODFLOW}} mlt object. #' #' @param file filename; typically '*.mlt' #' @param dis discretization file object; defaults to that with the same filename but with extension '.dis' #' @param ... arg...
# source("~/research/RGtk2/RGtk2/demo/iconView.R") window <- NULL FOLDER.NAME <- imagefile("gnome-fs-directory.png") FILE.NAME <- imagefile("gnome-fs-regular.png") file.pixbuf <- NULL folder.pixbuf <- NULL parent <- NULL up.button <- NULL iv <- c( path = 0, display.name = 1, pixbuf = 2, is.directory = 3, ...
/demo/iconView.R
no_license
cran/RGtk2.10
R
false
false
5,018
r
# source("~/research/RGtk2/RGtk2/demo/iconView.R") window <- NULL FOLDER.NAME <- imagefile("gnome-fs-directory.png") FILE.NAME <- imagefile("gnome-fs-regular.png") file.pixbuf <- NULL folder.pixbuf <- NULL parent <- NULL up.button <- NULL iv <- c( path = 0, display.name = 1, pixbuf = 2, is.directory = 3, ...
\name{Rgeoprofile-package} \alias{Rgeoprofile-package} \alias{Rgeoprofile} \docType{package} \title{ Geographic Profiling in R } \description{ Create Geographic Profiles using point pattern data. The methods used are based on the Dirichlet Proccess Mixture Model. The package: sets the graphical parameters, us...
/man/Rgeoprofile-package.Rd
no_license
stevenlecomber/Rgeoprofile-1.1.0
R
false
false
2,908
rd
\name{Rgeoprofile-package} \alias{Rgeoprofile-package} \alias{Rgeoprofile} \docType{package} \title{ Geographic Profiling in R } \description{ Create Geographic Profiles using point pattern data. The methods used are based on the Dirichlet Proccess Mixture Model. The package: sets the graphical parameters, us...
test_that("Assignment name checking works", { res <- one_liner("t <- 15^2", "q <- 15^2") expect_true(inherits(res, "grader_graded")) expect_false(res$correct) expect_true("You were asked assign to the name 'q'", res$message) # By design, the following works, since the assignment # will be ignored in grading...
/tests/testthat/test-one_liner.R
no_license
dtkaplan/QandA
R
false
false
872
r
test_that("Assignment name checking works", { res <- one_liner("t <- 15^2", "q <- 15^2") expect_true(inherits(res, "grader_graded")) expect_false(res$correct) expect_true("You were asked assign to the name 'q'", res$message) # By design, the following works, since the assignment # will be ignored in grading...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.countgmifs.R \name{summary.countgmifs} \alias{summary.countgmifs} \title{Summarize a Count GMIFS Object.} \usage{ \method{summary}{countgmifs}(object, model.select = "BIC", ...) } \arguments{ \item{object}{an \code{countgmifs} fitted ...
/man/summary.countgmifs.Rd
no_license
cran/countgmifs
R
false
true
1,221
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.countgmifs.R \name{summary.countgmifs} \alias{summary.countgmifs} \title{Summarize a Count GMIFS Object.} \usage{ \method{summary}{countgmifs}(object, model.select = "BIC", ...) } \arguments{ \item{object}{an \code{countgmifs} fitted ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_fields.R \name{find_story_point_mapping} \alias{find_story_point_mapping} \title{Update the internal mapping of the field containing story points} \usage{ find_story_point_mapping() } \value{ Invisibly returns the new value of the story p...
/man/find_story_point_mapping.Rd
permissive
mwaldstein/sprintr
R
false
true
646
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_fields.R \name{find_story_point_mapping} \alias{find_story_point_mapping} \title{Update the internal mapping of the field containing story points} \usage{ find_story_point_mapping() } \value{ Invisibly returns the new value of the story p...
pollutantmean <- function(directory, pollutant, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files file_list <- list.files(directory, full.names=TRUE) poludata <- data.frame() for (i in id) { poludata <- rbin...
/pollutantmean.R
no_license
pmtempone/datasciencecoursera
R
false
false
1,137
r
pollutantmean <- function(directory, pollutant, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files file_list <- list.files(directory, full.names=TRUE) poludata <- data.frame() for (i in id) { poludata <- rbin...
library(rgdal) library(raster) # RangeshiftR is currently only available as beta release. Installation instructions here: https://rangeshifter.github.io/RangeshiftR-tutorials/installing.html # I will provide a zip file of the package, or to check for more recent versions, check that website, or email the team: Rangeshi...
/code/rangeshiftR-CRAFTY_example_NS.R
no_license
VeeBurton/CRAFTY-OPM
R
false
false
13,456
r
library(rgdal) library(raster) # RangeshiftR is currently only available as beta release. Installation instructions here: https://rangeshifter.github.io/RangeshiftR-tutorials/installing.html # I will provide a zip file of the package, or to check for more recent versions, check that website, or email the team: Rangeshi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fortify_glmnet.R \name{autoplot.cv.glmnet} \alias{autoplot.cv.glmnet} \title{Autoplot \code{glmnet::cv.glmnet}} \usage{ \method{autoplot}{cv.glmnet}(object, sign.lambda = 1, label.n = 12, label = TRUE, label.label = "nz", label.colour = NUL...
/man/autoplot.cv.glmnet.Rd
no_license
inambioinfo/ggfortify
R
false
true
2,055
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fortify_glmnet.R \name{autoplot.cv.glmnet} \alias{autoplot.cv.glmnet} \title{Autoplot \code{glmnet::cv.glmnet}} \usage{ \method{autoplot}{cv.glmnet}(object, sign.lambda = 1, label.n = 12, label = TRUE, label.label = "nz", label.colour = NUL...
fsample <- function(fname, n, seed, header=FALSE, reader = readLines) { set.seed(seed) con <- file(fname, open="r") hdr <- if (header) { readLines(con, 1L) } else character() buf <- readLines(con, n) n_tot <- length(buf) repeat { txt <- readLines(con, n) if ((...
/Reader.R
no_license
yaliagasca/Captsone
R
false
false
6,204
r
fsample <- function(fname, n, seed, header=FALSE, reader = readLines) { set.seed(seed) con <- file(fname, open="r") hdr <- if (header) { readLines(con, 1L) } else character() buf <- readLines(con, n) n_tot <- length(buf) repeat { txt <- readLines(con, n) if ((...
# centraliy extension on Over-representative analysis method # on a list of pathways and under several centralities cepa.ora.all = function(dif, pc, bk = NULL, cen = default.centralities, cen.name = sapply(cen, function(x) ifelse(mode(x) == "name", deparse(x), x)), iter = 1000) { # if no background g...
/CePa/R/ora_extension.R
no_license
ingted/R-Examples
R
false
false
9,356
r
# centraliy extension on Over-representative analysis method # on a list of pathways and under several centralities cepa.ora.all = function(dif, pc, bk = NULL, cen = default.centralities, cen.name = sapply(cen, function(x) ifelse(mode(x) == "name", deparse(x), x)), iter = 1000) { # if no background g...
library(raster) library(rgdal) library(ggplot2) library(tiff) library(maptools) getwd() rast_image = "E:\\Image\\trainingfolder\\ls_d2_fil_flr1.tif" vector_layer = "E:\\final_merge.shp" imported_raster = brick(rast_image) imported_vector = readShapePoly(vector_layer) print(imported_raster) print(imported_vector) ...
/Clip_raster_r.R
no_license
patattack86/Woolpert
R
false
false
700
r
library(raster) library(rgdal) library(ggplot2) library(tiff) library(maptools) getwd() rast_image = "E:\\Image\\trainingfolder\\ls_d2_fil_flr1.tif" vector_layer = "E:\\final_merge.shp" imported_raster = brick(rast_image) imported_vector = readShapePoly(vector_layer) print(imported_raster) print(imported_vector) ...
2128bf24f9e352ad877541fc37888a02 query30_query01_1344n.qdimacs 169 306
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query30_query01_1344n/query30_query01_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
70
r
2128bf24f9e352ad877541fc37888a02 query30_query01_1344n.qdimacs 169 306
\name{FPCA3D-package} \alias{FPCA3D-package} \alias{FPCA3D} \docType{package} \title{ \packageTitle{FPCA3D} } \description{ \packageDescription{FPCA3D} } \details{ The DESCRIPTION file: \packageDESCRIPTION{FPCA3D} \packageIndices{FPCA3D} data_in = array(runif(4000,0,1),dim=c(10,10,10,4)) test = FPCA_3D_score(data_in,0...
/man/FPCA3D-package.Rd
no_license
cran/FPCA3D
R
false
false
772
rd
\name{FPCA3D-package} \alias{FPCA3D-package} \alias{FPCA3D} \docType{package} \title{ \packageTitle{FPCA3D} } \description{ \packageDescription{FPCA3D} } \details{ The DESCRIPTION file: \packageDESCRIPTION{FPCA3D} \packageIndices{FPCA3D} data_in = array(runif(4000,0,1),dim=c(10,10,10,4)) test = FPCA_3D_score(data_in,0...
# https://jymaze.shinyapps.io/open_fda_a library(shiny) shinyUI( fluidPage( titlePanel("Adverse Events Query to OpenFDA - SHINY TEST", windowTitle = "Adverse Events Query to OpenFDA"), fluidRow( column(3, br(), p("The OpenFDA project makes adverse-event ...
/ui.R
no_license
sosier/shiny_workshop_test
R
false
false
1,738
r
# https://jymaze.shinyapps.io/open_fda_a library(shiny) shinyUI( fluidPage( titlePanel("Adverse Events Query to OpenFDA - SHINY TEST", windowTitle = "Adverse Events Query to OpenFDA"), fluidRow( column(3, br(), p("The OpenFDA project makes adverse-event ...
test_that("multiplication works", { expect_equal(square_val(2), 4) })
/tests/testthat/test-square_val.R
no_license
lindw-hub/RPackage
R
false
false
72
r
test_that("multiplication works", { expect_equal(square_val(2), 4) })
\name{getAUC} \alias{getAUC} \title{ Get AUC of ROC for Gene Ranks } \description{ Get AUC of ROC for gene ranks according the given list of marker genes } \usage{ getAUC(x, pos) } \arguments{ \item{x}{ A list of genes names sorted by the ranks. } \item{pos}{ Vector of the marker genes. } } \details{ The function re...
/man/getAUC.Rd
permissive
qwang-big/irene
R
false
false
495
rd
\name{getAUC} \alias{getAUC} \title{ Get AUC of ROC for Gene Ranks } \description{ Get AUC of ROC for gene ranks according the given list of marker genes } \usage{ getAUC(x, pos) } \arguments{ \item{x}{ A list of genes names sorted by the ranks. } \item{pos}{ Vector of the marker genes. } } \details{ The function re...
#source("https://bioconductor.org/biocLite.R") #biocLite("Mus.musculus") #biocLite("Homo.sapiens") #biocLite("categoryCompare") #biocLite("KEGG.db") require("categoryCompare") #require("Homo.sapiens") require("Mus.musculus") require("KEGG.db") do.GOEA = function(cls,univ) { univ = subset(select(Mus.musculus, keys=...
/R/GOEA.R
permissive
alexisboukouvalas/OscoNet
R
false
false
2,673
r
#source("https://bioconductor.org/biocLite.R") #biocLite("Mus.musculus") #biocLite("Homo.sapiens") #biocLite("categoryCompare") #biocLite("KEGG.db") require("categoryCompare") #require("Homo.sapiens") require("Mus.musculus") require("KEGG.db") do.GOEA = function(cls,univ) { univ = subset(select(Mus.musculus, keys=...
##Homework 4 ###Problem 1 teen = matrix(c(0,0.7,0,0,0.5,0,0,0,0.2,0.1,1,0,0.3,0.2,0,1), nrow = 4) teen A = matrix(c(0, 0.7, 0.5, 0), nrow = 2) A #Part c solve(diag(2) - A)%*%matrix(c(1,1),nrow=2) #Part d C = matrix(c(0.2, 0.1, 0.3, 0.2), nrow = 2) solve(diag(2) - A)%*%C ###Problem 2 D = matrix(c(0,0.3,0,0,0,0,0,0.7...
/Homework 4.R
no_license
vduran18/Stats
R
false
false
582
r
##Homework 4 ###Problem 1 teen = matrix(c(0,0.7,0,0,0.5,0,0,0,0.2,0.1,1,0,0.3,0.2,0,1), nrow = 4) teen A = matrix(c(0, 0.7, 0.5, 0), nrow = 2) A #Part c solve(diag(2) - A)%*%matrix(c(1,1),nrow=2) #Part d C = matrix(c(0.2, 0.1, 0.3, 0.2), nrow = 2) solve(diag(2) - A)%*%C ###Problem 2 D = matrix(c(0,0.3,0,0,0,0,0,0.7...
########PREPROCESSING########### mydata <- read.csv("D:/makaleler/deepLearnTuning/derivativeFreeEnsemble/dataSet/19911_25870_compressed_sudeste.csv/sudeste.csv",nrows=2000) mydata[is.na(mydata)] <- 0 write.csv(mydata,file="sudeste.csv") ############################## library(nloptr) library("mxnet") library("abi...
/genetisSudeste.R
no_license
muhammedozturk/PCLSTM
R
false
false
6,048
r
########PREPROCESSING########### mydata <- read.csv("D:/makaleler/deepLearnTuning/derivativeFreeEnsemble/dataSet/19911_25870_compressed_sudeste.csv/sudeste.csv",nrows=2000) mydata[is.na(mydata)] <- 0 write.csv(mydata,file="sudeste.csv") ############################## library(nloptr) library("mxnet") library("abi...
#Kayla Blincow 3/15/2016 #Generating violin plots of depths over D/C/N time periods setwd("C:/Users/kmbli/Documents/Grouper/KaylaAnalyses") library(rethinking) library(lubridate) library(ggplot2) d2 <- read.table(file = "lmdata.txt", header = TRUE) d2$Date <- as.Date(d2$Date, "%m/%d/%Y") d2$month <- forma...
/DNCdepths.R
no_license
kmblincow/Spatial-Ecology-of-Nassau-Grouper
R
false
false
996
r
#Kayla Blincow 3/15/2016 #Generating violin plots of depths over D/C/N time periods setwd("C:/Users/kmbli/Documents/Grouper/KaylaAnalyses") library(rethinking) library(lubridate) library(ggplot2) d2 <- read.table(file = "lmdata.txt", header = TRUE) d2$Date <- as.Date(d2$Date, "%m/%d/%Y") d2$month <- forma...
testlist <- list(x = structure(c(1.39137529961184e+93, 3.99422646679709e+180, 9.48969175415916e+170, 7.27917806560083e-95), .Dim = c(4L, 1L ))) result <- do.call(borrowr:::matchesToCor,testlist) str(result)
/borrowr/inst/testfiles/matchesToCor/libFuzzer_matchesToCor/matchesToCor_valgrind_files/1609958730-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
207
r
testlist <- list(x = structure(c(1.39137529961184e+93, 3.99422646679709e+180, 9.48969175415916e+170, 7.27917806560083e-95), .Dim = c(4L, 1L ))) result <- do.call(borrowr:::matchesToCor,testlist) str(result)
#Task: Add wordcloud visualisation # OBJECTIVES: # 1: Read in the text # 2: Housekeeping of text # 3: Create wordcloud # Call the relevant R libraries library(plyr); library(dplyr) library(tidyverse) library(tm) # take your text as a corpus library(wordcloud2) # OBJECTIVE 1: Read in the text # The text can be pas...
/src/wordcloud.R
no_license
oddh2/A-checklist-for-dental-AI-studies.github.io
R
false
false
1,095
r
#Task: Add wordcloud visualisation # OBJECTIVES: # 1: Read in the text # 2: Housekeeping of text # 3: Create wordcloud # Call the relevant R libraries library(plyr); library(dplyr) library(tidyverse) library(tm) # take your text as a corpus library(wordcloud2) # OBJECTIVE 1: Read in the text # The text can be pas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simu.R \name{results_simulation} \alias{results_simulation} \title{results_simulation} \usage{ results_simulation(D_matrix, U_matrix, simulation) } \arguments{ \item{D_matrix}{The matrix of down-regulated genes.} \item{U_matrix}{The matrix o...
/man/results_simulation.Rd
no_license
privefl/penda
R
false
true
1,126
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simu.R \name{results_simulation} \alias{results_simulation} \title{results_simulation} \usage{ results_simulation(D_matrix, U_matrix, simulation) } \arguments{ \item{D_matrix}{The matrix of down-regulated genes.} \item{U_matrix}{The matrix o...
#Read libraries library(lubridate) fileUrl = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" temp <- tempfile() download.file(fileUrl, temp, method = "curl") data <- read.table(unz(temp, "household_power_consumption.txt"), sep = ";", header = T, na.strings = ...
/plot2.R
no_license
lors24/ExData_Plotting1
R
false
false
994
r
#Read libraries library(lubridate) fileUrl = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" temp <- tempfile() download.file(fileUrl, temp, method = "curl") data <- read.table(unz(temp, "household_power_consumption.txt"), sep = ";", header = T, na.strings = ...
install.packages("leaflet") install.packages("rgdal") install.packages("tidyverse") install.packages("magrittr") install.packages("sp") install.packages("raster") install.packages("maps") install.packages("RgoogleMaps") install.packages("ggsn") install.packages("GISTools") install.packages("maptools") install.packages...
/nora.R
no_license
elgabbas/Scripts_backup
R
false
false
1,817
r
install.packages("leaflet") install.packages("rgdal") install.packages("tidyverse") install.packages("magrittr") install.packages("sp") install.packages("raster") install.packages("maps") install.packages("RgoogleMaps") install.packages("ggsn") install.packages("GISTools") install.packages("maptools") install.packages...
#' Boards of scrabble games #' #' Board position of all scrabble plays from #' every turn of each scrabble game in character matrix #' format #' #' @format A list of 2566 elements each containing a list of matrices: "boards_chr"
/R/boards_chr.R
no_license
jalapic/scrabblr
R
false
false
230
r
#' Boards of scrabble games #' #' Board position of all scrabble plays from #' every turn of each scrabble game in character matrix #' format #' #' @format A list of 2566 elements each containing a list of matrices: "boards_chr"
futurescurrency <- function(){ my.draw <- function(panel) { S <-as.numeric(panel$S) r <-as.numeric(panel$r) t <-as.numeric(panel$t) incometype <- panel$incometype if (incometype == "Yield"){ income <-as.numeric(panel$income) price = exp((r-income)*t)*...
/R/futurescurrency.R
no_license
IanMadlenya/GUIDE
R
false
false
1,695
r
futurescurrency <- function(){ my.draw <- function(panel) { S <-as.numeric(panel$S) r <-as.numeric(panel$r) t <-as.numeric(panel$t) incometype <- panel$incometype if (incometype == "Yield"){ income <-as.numeric(panel$income) price = exp((r-income)*t)*...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/refinedBoundaries.R \name{refinedBoundary} \alias{refinedBoundary} \title{Summarize Primary and Refined Secondary Boundaries, Nominal Significance} \usage{ refinedBoundary( alpha, tVec, pOBF = TRUE, sOBF = FALSE, LanDeMets = FALSE, ...
/man/refinedBoundary.Rd
no_license
cran/gsrsb
R
false
true
2,991
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/refinedBoundaries.R \name{refinedBoundary} \alias{refinedBoundary} \title{Summarize Primary and Refined Secondary Boundaries, Nominal Significance} \usage{ refinedBoundary( alpha, tVec, pOBF = TRUE, sOBF = FALSE, LanDeMets = FALSE, ...
setwd("~/Documents/ECO") T_data <- read.table("./tests.txt",sep="|", header=TRUE,fill=TRUE,quote="") C_data <- read.table("./chemical_carriers.txt",sep="|", header=TRUE,fill=TRUE,quote="") result <- read.table(file="./results.txt",header=TRUE,fill=TRUE, sep="|",quote="") species <- read.table(file="./validation/specie...
/ECOTOX_R/read_ECOTOX.R
no_license
midmay1/ECO_TMI
R
false
false
929
r
setwd("~/Documents/ECO") T_data <- read.table("./tests.txt",sep="|", header=TRUE,fill=TRUE,quote="") C_data <- read.table("./chemical_carriers.txt",sep="|", header=TRUE,fill=TRUE,quote="") result <- read.table(file="./results.txt",header=TRUE,fill=TRUE, sep="|",quote="") species <- read.table(file="./validation/specie...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.traveltimeCLT.population.R \name{predict.traveltimeCLT.population} \alias{predict.traveltimeCLT.population} \title{Predict trip-specific travel time} \usage{ \method{predict}{traveltimeCLT.population}(N, population_parameters, level =...
/man/predict.traveltimeCLT.population.Rd
no_license
JoshuaStipancic/traveltimeCLT
R
false
true
741
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.traveltimeCLT.population.R \name{predict.traveltimeCLT.population} \alias{predict.traveltimeCLT.population} \title{Predict trip-specific travel time} \usage{ \method{predict}{traveltimeCLT.population}(N, population_parameters, level =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DENDRO_BASE_FUNCTIONS.R \name{max.growth.rate} \alias{max.growth.rate} \title{Find rate of maximum growth} \usage{ \method{max}{growth.rate}(params) } \arguments{ \item{params}{Numeric vector of parameters.} } \value{ Numeric scalar of the fa...
/man/max.growth.rate.Rd
no_license
seanmcm/RDendrom
R
false
true
384
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DENDRO_BASE_FUNCTIONS.R \name{max.growth.rate} \alias{max.growth.rate} \title{Find rate of maximum growth} \usage{ \method{max}{growth.rate}(params) } \arguments{ \item{params}{Numeric vector of parameters.} } \value{ Numeric scalar of the fa...
####################################################################### # # # R Script for plotting posterior predictions in main manuscript and # # supplementary material of: # # ...
/plots/predictions1.R
no_license
mmorenozam/ecbfm
R
false
false
43,773
r
####################################################################### # # # R Script for plotting posterior predictions in main manuscript and # # supplementary material of: # # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse.r \name{ymd_hms} \alias{ymd_hms} \alias{ymd_hm} \alias{ymd_h} \alias{dmy_hms} \alias{dmy_hm} \alias{dmy_h} \alias{mdy_hms} \alias{mdy_hm} \alias{mdy_h} \alias{ydm_hms} \alias{ydm_hm} \alias{ydm_h} \title{Parse date-times with \strong{y}...
/man/ymd_hms.Rd
no_license
lizl90/lubridate
R
false
true
5,303
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse.r \name{ymd_hms} \alias{ymd_hms} \alias{ymd_hm} \alias{ymd_h} \alias{dmy_hms} \alias{dmy_hm} \alias{dmy_h} \alias{mdy_hms} \alias{mdy_hm} \alias{mdy_h} \alias{ydm_hms} \alias{ydm_hm} \alias{ydm_h} \title{Parse date-times with \strong{y}...
function (x) { e <- get("data.env", .GlobalEnv) e[["do_op2M"]][[length(e[["do_op2M"]]) + 1]] <- list(x = x) .Call("_hutilscpp_do_op2M", x) }
/valgrind_test_dir/do_op2M-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
154
r
function (x) { e <- get("data.env", .GlobalEnv) e[["do_op2M"]][[length(e[["do_op2M"]]) + 1]] <- list(x = x) .Call("_hutilscpp_do_op2M", x) }
\name{pop} \alias{popM} \alias{popF} \docType{data} \title{ Estimates and Projections of Population Counts } \description{ Datasets with age-specific male and female historical population estimates and projections. } \usage{ data(popM) data(popF) } \format{ Data frames with one row per country and age group. For each...
/man/PopByAge.Rd
no_license
cran/wpp2010
R
false
false
1,514
rd
\name{pop} \alias{popM} \alias{popF} \docType{data} \title{ Estimates and Projections of Population Counts } \description{ Datasets with age-specific male and female historical population estimates and projections. } \usage{ data(popM) data(popF) } \format{ Data frames with one row per country and age group. For each...
#This should work for any set of characters library(stringr) apply <- function(x,perm){ #If x is not in the permutation, nothing happens if (!str_detect(perm,x)) return(x) #Otherwise locate it and find the next symbol pos <- str_locate(perm,x) nextch <- str_sub(perm,pos+1,pos+1) #If it's numeric, we are...
/assignment-09/part-01/permutecalc.R
no_license
tmussa1/r-programming
R
false
false
2,250
r
#This should work for any set of characters library(stringr) apply <- function(x,perm){ #If x is not in the permutation, nothing happens if (!str_detect(perm,x)) return(x) #Otherwise locate it and find the next symbol pos <- str_locate(perm,x) nextch <- str_sub(perm,pos+1,pos+1) #If it's numeric, we are...
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram shinyUI(fluid...
/myApp/myApp/ui.R
no_license
assalik/introdatascience
R
false
false
878
r
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram shinyUI(fluid...
fluidPage( # supress error messages in app tags$style( type = 'text/css', ".shiny-output-error{ visibility: hidden;}", ".shiny-output-error:before { visibility:hidden; }" ), source("./ui_CustomError.R", local = T)[1], fluidRow(conditionalPanel( "output.ValPlots", box( withSpinner(plo...
/inst/EDAnalytix/ui_11CompoundCodeFractions.R
no_license
BrutishGuy/EDAnalytix
R
false
false
414
r
fluidPage( # supress error messages in app tags$style( type = 'text/css', ".shiny-output-error{ visibility: hidden;}", ".shiny-output-error:before { visibility:hidden; }" ), source("./ui_CustomError.R", local = T)[1], fluidRow(conditionalPanel( "output.ValPlots", box( withSpinner(plo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fastANCOM.R \name{fastANCOM} \alias{fastANCOM} \title{fastANCOM, a fast method for analysis of composition of microbiomes} \usage{ fastANCOM( Y, x, Z = NULL, rand = NULL, zero_cut = 0.9, lib_cut = 0, struc_zero = FALSE, pseudo...
/man/fastANCOM.Rd
no_license
liudoubletian/fastANCOM
R
false
true
3,600
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fastANCOM.R \name{fastANCOM} \alias{fastANCOM} \title{fastANCOM, a fast method for analysis of composition of microbiomes} \usage{ fastANCOM( Y, x, Z = NULL, rand = NULL, zero_cut = 0.9, lib_cut = 0, struc_zero = FALSE, pseudo...
# Script to run the SSI ICL NMA once the formatted data are loaded # Belfast data dive 21/22 Jan 2020 #baseline_directory<-"~/Bristol/R for CEA/R data dive Belfast 2020/NMA data project" #setwd(baseline_directory) source("model_binomial_logistic_1.R") # Load the necessary library library(R2OpenBUGS) # Number of MCM...
/analyse_data_1.R
no_license
HealthEconomicsDataDive/D4NMA
R
false
false
1,090
r
# Script to run the SSI ICL NMA once the formatted data are loaded # Belfast data dive 21/22 Jan 2020 #baseline_directory<-"~/Bristol/R for CEA/R data dive Belfast 2020/NMA data project" #setwd(baseline_directory) source("model_binomial_logistic_1.R") # Load the necessary library library(R2OpenBUGS) # Number of MCM...
#' Converts splits from cumulative to lap format #' #' Cumulative splits are when each split is the total elapsed time at a given #' distance. For example, if an athlete swims the first 50 of a 200 yard race #' in 25.00 seconds (lap and cumulative split), and the second 50 (i.e. the 100 #' lap split) in 30.00 seconds ...
/R/splits_to_lap.R
permissive
gpilgrim2670/SwimmeR
R
false
false
5,963
r
#' Converts splits from cumulative to lap format #' #' Cumulative splits are when each split is the total elapsed time at a given #' distance. For example, if an athlete swims the first 50 of a 200 yard race #' in 25.00 seconds (lap and cumulative split), and the second 50 (i.e. the 100 #' lap split) in 30.00 seconds ...
library(nomnoml) library(magrittr) " #direction: down [learnr] -> [custom question type] [shiny] -> [drag and drop] [custom question type]-> [sortable] [drag and drop] -> [sortable|R package] " %>% nomnoml()
/images/nomnoml/learnr_shiny_sortable.R
permissive
andrie/intro_to_sortable
R
false
false
217
r
library(nomnoml) library(magrittr) " #direction: down [learnr] -> [custom question type] [shiny] -> [drag and drop] [custom question type]-> [sortable] [drag and drop] -> [sortable|R package] " %>% nomnoml()
#' Flatten a string # #' @description #' `str_flatten()` reduces a character vector to a single string. This is a #' summary function because regardless of the length of the input `x`, it #' always returns a single string. #' #' `str_flatten_comma()` is a variation designed specifically for flattening #' with commas. I...
/R/flatten.R
permissive
tidyverse/stringr
R
false
false
2,219
r
#' Flatten a string # #' @description #' `str_flatten()` reduces a character vector to a single string. This is a #' summary function because regardless of the length of the input `x`, it #' always returns a single string. #' #' `str_flatten_comma()` is a variation designed specifically for flattening #' with commas. I...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parseOutput.R \name{extractModelSummaries} \alias{extractModelSummaries} \title{Extract summary statistics from a single output file or from a group of Mplus models within a directory} \usage{ extractModelSummaries(target = getwd(), recursive...
/man/extractModelSummaries.Rd
no_license
CatherineHDemers/MplusAutomation
R
false
true
5,764
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parseOutput.R \name{extractModelSummaries} \alias{extractModelSummaries} \title{Extract summary statistics from a single output file or from a group of Mplus models within a directory} \usage{ extractModelSummaries(target = getwd(), recursive...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chime_operations.R \name{chime_batch_create_attendee} \alias{chime_batch_create_attendee} \title{Creates up to 100 new attendees for an active Amazon Chime SDK meeting} \usage{ chime_batch_create_attendee(MeetingId, Attendees) } \arguments{ \...
/cran/paws.business.applications/man/chime_batch_create_attendee.Rd
permissive
paws-r/paws
R
false
true
1,362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chime_operations.R \name{chime_batch_create_attendee} \alias{chime_batch_create_attendee} \title{Creates up to 100 new attendees for an active Amazon Chime SDK meeting} \usage{ chime_batch_create_attendee(MeetingId, Attendees) } \arguments{ \...
library(sideChannelAttack) ### Name: filter.PCA ### Title: filter.PCA ### Aliases: filter.PCA filter.PCA.default predict.filter.PCA ### ** Examples #data collection data(powerC) traces = powerC[,-301] traces = traces[,1:100] key = powerC[,301] #model creation attack=filter.PCA(X=traces[-1,],nbreVarX_=2) #model p...
/data/genthat_extracted_code/sideChannelAttack/examples/filter.PCA.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
363
r
library(sideChannelAttack) ### Name: filter.PCA ### Title: filter.PCA ### Aliases: filter.PCA filter.PCA.default predict.filter.PCA ### ** Examples #data collection data(powerC) traces = powerC[,-301] traces = traces[,1:100] key = powerC[,301] #model creation attack=filter.PCA(X=traces[-1,],nbreVarX_=2) #model p...
source("code/foldIndex.R") fclustPath = 'fclustResult/CartLeftKnee/' predPath = 'predResult/CartLeftKnee/' cartilage = read.table("originalData/cartilage.txt") availIdx = readRDS('fclustResult/subsetMap.rds') length(availIdx) cartilage = cartilage[availIdx, 1:8] dim(cartilage) charac = readRDS('predResult/charac.rds'...
/code/analyzePatientCharacteristicsCartilageOnlyLeftKnee.R
no_license
OAITools/FunctionalClustering
R
false
false
5,706
r
source("code/foldIndex.R") fclustPath = 'fclustResult/CartLeftKnee/' predPath = 'predResult/CartLeftKnee/' cartilage = read.table("originalData/cartilage.txt") availIdx = readRDS('fclustResult/subsetMap.rds') length(availIdx) cartilage = cartilage[availIdx, 1:8] dim(cartilage) charac = readRDS('predResult/charac.rds'...
library("systemPipeR") library("GenomicFeatures") library("plyr") library("tidyverse") library("dplyr") txdb <- makeTxDbFromGFF(file="/global/homes/jg/r_stef04/Master/ResultFiles/ORgff/Veme.OR.gff3", format="gff3", organism="Vollenhovia emeryi") read.delim("/global/homes/jg/r_stef04/Master/ResultFiles/ORgff/ShortenedGf...
/annotation/repeatAnnotation/RSannotation/OR_Array_identification.R
no_license
schraderL/CobscuriorGenome
R
false
false
6,678
r
library("systemPipeR") library("GenomicFeatures") library("plyr") library("tidyverse") library("dplyr") txdb <- makeTxDbFromGFF(file="/global/homes/jg/r_stef04/Master/ResultFiles/ORgff/Veme.OR.gff3", format="gff3", organism="Vollenhovia emeryi") read.delim("/global/homes/jg/r_stef04/Master/ResultFiles/ORgff/ShortenedGf...
\alias{gtkMenuShellDeselect} \name{gtkMenuShellDeselect} \title{gtkMenuShellDeselect} \description{Deselects the currently selected item from the menu shell, if any.} \usage{gtkMenuShellDeselect(object)} \arguments{\item{\code{object}}{[\code{\link{GtkMenuShell}}] a \code{\link{GtkMenuShell}}.}} \author{Derived by RGtk...
/man/gtkMenuShellDeselect.Rd
no_license
cran/RGtk2.10
R
false
false
368
rd
\alias{gtkMenuShellDeselect} \name{gtkMenuShellDeselect} \title{gtkMenuShellDeselect} \description{Deselects the currently selected item from the menu shell, if any.} \usage{gtkMenuShellDeselect(object)} \arguments{\item{\code{object}}{[\code{\link{GtkMenuShell}}] a \code{\link{GtkMenuShell}}.}} \author{Derived by RGtk...
##Ok - make some plots specific for webpage ##Adding mds and dot plot setwd("~/Data/Illumina_Bead/Analysis/") load("predata.rda") library(RColorBrewer) library(plotrix) hector=read.csv("~/Data/Illumina_Bead/Analysis/ordered_cpgs.csv", stringsAsFactors=F) top25=hector$X[1:25] ##PCA p=prcomp(t(data$fqbeta[top25,]...
/web_illumina_custom.R
no_license
timplab/timp_illumina
R
false
false
4,257
r
##Ok - make some plots specific for webpage ##Adding mds and dot plot setwd("~/Data/Illumina_Bead/Analysis/") load("predata.rda") library(RColorBrewer) library(plotrix) hector=read.csv("~/Data/Illumina_Bead/Analysis/ordered_cpgs.csv", stringsAsFactors=F) top25=hector$X[1:25] ##PCA p=prcomp(t(data$fqbeta[top25,]...
######################################### # # Package: AGHmatrix # # File: missingdata.R # Contains: missingdata # # Written by Rodrigo Rampazo Amadeu # # First version: Feb-2014 # Last update: 14-Apr-2015 # License: GPL-3 # ...
/R/missingdata.R
no_license
cran/AGHmatrix
R
false
false
3,409
r
######################################### # # Package: AGHmatrix # # File: missingdata.R # Contains: missingdata # # Written by Rodrigo Rampazo Amadeu # # First version: Feb-2014 # Last update: 14-Apr-2015 # License: GPL-3 # ...
library(data.table) #Reading file raw<-as.data.frame(fread("household_power_consumption.txt", sep=";", na.strings = "?", skip = 66600, nrows = 3000)) colnames(raw)<-colnames(raw_header) date_time<-paste(raw[,1],raw[,2]) date_time<-strptime(date_time,"%d/%m/%Y %H:%M:%S") raw<-cbind(date_time,raw[,3:9]) #Subsetting begi...
/plot3.R
no_license
megadoga/ExData_Plotting1
R
false
false
925
r
library(data.table) #Reading file raw<-as.data.frame(fread("household_power_consumption.txt", sep=";", na.strings = "?", skip = 66600, nrows = 3000)) colnames(raw)<-colnames(raw_header) date_time<-paste(raw[,1],raw[,2]) date_time<-strptime(date_time,"%d/%m/%Y %H:%M:%S") raw<-cbind(date_time,raw[,3:9]) #Subsetting begi...
library(rgdax) ### Name: accounts ### Title: Get Account Details For All Accounts ### Aliases: accounts ### ** Examples ## Not run: ##D accounts(api.key = your_key, secret = your_api_secret, passphrase = your_api_pass) ## End(Not run)
/data/genthat_extracted_code/rgdax/examples/accounts.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
244
r
library(rgdax) ### Name: accounts ### Title: Get Account Details For All Accounts ### Aliases: accounts ### ** Examples ## Not run: ##D accounts(api.key = your_key, secret = your_api_secret, passphrase = your_api_pass) ## End(Not run)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/draw_phase.R \name{print.fullsib_phases} \alias{print.fullsib_phases} \title{Print markers and QTL phases} \usage{ \method{print}{fullsib_phases}(x, ...) } \arguments{ \item{x}{object of class fullsib_phases} \item{...}{currently ignored} } ...
/man/print.fullsib_phases.Rd
no_license
shbrainard/fullsibQTL
R
false
true
365
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/draw_phase.R \name{print.fullsib_phases} \alias{print.fullsib_phases} \title{Print markers and QTL phases} \usage{ \method{print}{fullsib_phases}(x, ...) } \arguments{ \item{x}{object of class fullsib_phases} \item{...}{currently ignored} } ...
########################################## # Almost Entire NeuroC pipeline ########################################## rm( list = ls()) library(git2r) library(devtools) library(travisci) library(gh) library(dplyr) source("worker_functions.R") ########################################## # Clone stuff ####################...
/programs/r_cloner.R
no_license
muschellij2/neuro_backend
R
false
false
5,917
r
########################################## # Almost Entire NeuroC pipeline ########################################## rm( list = ls()) library(git2r) library(devtools) library(travisci) library(gh) library(dplyr) source("worker_functions.R") ########################################## # Clone stuff ####################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/timeline.R \name{get_timeline} \alias{get_timeline} \alias{get_timelines} \title{Get one or more user timelines (tweets posted by target user(s)).} \usage{ get_timeline(user, n = 100, max_id = NULL, home = FALSE, parse = TRUE, check = TRUE,...
/man/get_timeline.Rd
no_license
franciscorodriguez92/rtweet
R
false
true
2,866
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/timeline.R \name{get_timeline} \alias{get_timeline} \alias{get_timelines} \title{Get one or more user timelines (tweets posted by target user(s)).} \usage{ get_timeline(user, n = 100, max_id = NULL, home = FALSE, parse = TRUE, check = TRUE,...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 51977 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 51969 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 51969 c c Input Parameter (command line, ...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Sauer-Reimer/ISCAS89/s15850_PR_3_90/s15850_PR_3_90.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
729
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 51977 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 51969 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 51969 c c Input Parameter (command line, ...
#' BTailTest for difference in disparity/morphospace occupation #' #' Performs the BTailTest, in the same spirit as implemented in the #' Matlab package MDA (Navarro 2003) and used in various empirical #' papers (e.g., Fruciano et al. 2014, 2016). #' #' This is a test of the difference in disparity between two groups: ...
/R/BTailTest.R
no_license
fruciano/GeometricMorphometricsMix
R
false
false
3,250
r
#' BTailTest for difference in disparity/morphospace occupation #' #' Performs the BTailTest, in the same spirit as implemented in the #' Matlab package MDA (Navarro 2003) and used in various empirical #' papers (e.g., Fruciano et al. 2014, 2016). #' #' This is a test of the difference in disparity between two groups: ...
## Put comments here that give an overall description of what your ## functions do ## The first function creates a matrix obejct that can cache its inverse by setting the value of the matrix, getting teh value of the amtrix, setting the value of the inverse, then getting the value of the inverse. ## Write a shor...
/cachematrix.R
no_license
fairchia/ProgrammingAssignment2
R
false
false
1,226
r
## Put comments here that give an overall description of what your ## functions do ## The first function creates a matrix obejct that can cache its inverse by setting the value of the matrix, getting teh value of the amtrix, setting the value of the inverse, then getting the value of the inverse. ## Write a shor...
\name{decorate_title} \alias{decorate_title} \title{ Decorate the heatmap title } \description{ Decorate the heatmap title } \usage{ decorate_title(heatmap, code, slice = 1, which = c("column", "row")) } \arguments{ \item{heatmap}{name of the heatmap} \item{code}{code that is executed in the heatmap body} \item{...
/man/decorate_title.rd
no_license
mmoisse/ComplexHeatmap
R
false
false
791
rd
\name{decorate_title} \alias{decorate_title} \title{ Decorate the heatmap title } \description{ Decorate the heatmap title } \usage{ decorate_title(heatmap, code, slice = 1, which = c("column", "row")) } \arguments{ \item{heatmap}{name of the heatmap} \item{code}{code that is executed in the heatmap body} \item{...
library(magclass) ### Name: dimReduce ### Title: dimReduce ### Aliases: dimReduce ### ** Examples #create data with 5 identical scenarios p <- add_dimension(population_magpie,nm = paste0("scen",1:5)) p dimReduce(p) #set years to same value p[,,] <- setYears(p[,1,], NULL) p dimReduce(p) #set regions to...
/data/genthat_extracted_code/magclass/examples/dimReduce.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
387
r
library(magclass) ### Name: dimReduce ### Title: dimReduce ### Aliases: dimReduce ### ** Examples #create data with 5 identical scenarios p <- add_dimension(population_magpie,nm = paste0("scen",1:5)) p dimReduce(p) #set years to same value p[,,] <- setYears(p[,1,], NULL) p dimReduce(p) #set regions to...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \name{confint.blblm_parallel} \alias{confint.blblm_parallel} \title{confidence intervals of blblm_parallel coefficients} \usage{ \method{confint}{blblm_parallel}(object, parm = NULL, level = 0.95, cluster = 1, ...) } \arguments{ \item...
/man/confint.blblm_parallel.Rd
permissive
ual33/blblm
R
false
true
836
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \name{confint.blblm_parallel} \alias{confint.blblm_parallel} \title{confidence intervals of blblm_parallel coefficients} \usage{ \method{confint}{blblm_parallel}(object, parm = NULL, level = 0.95, cluster = 1, ...) } \arguments{ \item...
itemSearch <- function(url) { suppressPackageStartupMessages(require(rvest)) suppressPackageStartupMessages(require(magrittr)) basicInfo <- c() para <- c() tryCatch({ page_content <- read_html(url) name <- page_content %>% html_node('dd.lemmaWgt-lemmaTitle-title h1') %>%...
/0_baikeCrawl.R
no_license
ashther/dict
R
false
false
5,724
r
itemSearch <- function(url) { suppressPackageStartupMessages(require(rvest)) suppressPackageStartupMessages(require(magrittr)) basicInfo <- c() para <- c() tryCatch({ page_content <- read_html(url) name <- page_content %>% html_node('dd.lemmaWgt-lemmaTitle-title h1') %>%...
##################################################################################### ### PLOTTING SENSITIVITY OUTPUTS OF ALL SITES/SLOPES/TREATMENTS FOR SET VARIABLES ### ##################################################################################### ### DEFINE SENSITIVITY FILENAMES (variables) AND FULL FILE/DI...
/R_scripts/plot_sens.R
no_license
Karlstefanrehn/DAP_century
R
false
false
24,021
r
##################################################################################### ### PLOTTING SENSITIVITY OUTPUTS OF ALL SITES/SLOPES/TREATMENTS FOR SET VARIABLES ### ##################################################################################### ### DEFINE SENSITIVITY FILENAMES (variables) AND FULL FILE/DI...
#' --- #' title: "Distribuição Normal" #' subtitle: "Aula 2" #' author: "Prof. André Luiz Cunha" #' date: "21/05/2021" #' header-includes: #' - \usepackage{caption} #' - \usepackage[portuguese]{babel} #' output: #' pdf_document: #' number_sections: true #' --- #' #+ setup, include=FALSE knitr::opts_chunk$set(ec...
/2021/DistNormal.R
no_license
albnc/STT5898
R
false
false
4,419
r
#' --- #' title: "Distribuição Normal" #' subtitle: "Aula 2" #' author: "Prof. André Luiz Cunha" #' date: "21/05/2021" #' header-includes: #' - \usepackage{caption} #' - \usepackage[portuguese]{babel} #' output: #' pdf_document: #' number_sections: true #' --- #' #+ setup, include=FALSE knitr::opts_chunk$set(ec...
# Jake Yeung # Date of Creation: 2019-06-18 # File: ~/projects/scchic_gastru/scripts_analysis/Rfunctions/QCFunctions.R # QC functions # Gastru samps: E7p5-EHF-CastBl6-H3K36me3-20190214-002_249 ReadLH <- function(inf, remove.nones = FALSE){ dat.tmp <- as.data.frame(fread(inf, sep = ",", header = TRUE)) colnames(da...
/R/QCFunctionsGastru.R
no_license
jakeyeung/scchic-functions
R
false
false
9,033
r
# Jake Yeung # Date of Creation: 2019-06-18 # File: ~/projects/scchic_gastru/scripts_analysis/Rfunctions/QCFunctions.R # QC functions # Gastru samps: E7p5-EHF-CastBl6-H3K36me3-20190214-002_249 ReadLH <- function(inf, remove.nones = FALSE){ dat.tmp <- as.data.frame(fread(inf, sep = ",", header = TRUE)) colnames(da...
############################################################# ## TRMM Precipitation data - Extreme precipitation ## Author: Levon Demirdjian ## Date : July 26, 2016 ## Description: This script computes the 95th (or 90th) ## percentiles of precipitation levels at each grid ## point for the TRMM. ## ## Data st...
/MaxPrecipitation.R
permissive
jemsethio/Extreme_Precipitation
R
false
false
2,509
r
############################################################# ## TRMM Precipitation data - Extreme precipitation ## Author: Levon Demirdjian ## Date : July 26, 2016 ## Description: This script computes the 95th (or 90th) ## percentiles of precipitation levels at each grid ## point for the TRMM. ## ## Data st...
numPerPatch59364 <- c(2529,2471)
/NatureEE-data-archive/Run203021/JAFSdata/JAFSnumPerPatch59364.R
no_license
flaxmans/NatureEE2017
R
false
false
33
r
numPerPatch59364 <- c(2529,2471)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ValidationPlot.R \name{ValidationPlot} \alias{ValidationPlot} \title{Validation plot} \usage{ ValidationPlot(cvList, validationMethod, evaluationFunctions = NULL, legendPosition = NULL, animate = FALSE) } \arguments{ \item{train}{a data.fra...
/man/ValidationPlot.Rd
no_license
sor16/survivalValidation
R
false
true
1,297
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ValidationPlot.R \name{ValidationPlot} \alias{ValidationPlot} \title{Validation plot} \usage{ ValidationPlot(cvList, validationMethod, evaluationFunctions = NULL, legendPosition = NULL, animate = FALSE) } \arguments{ \item{train}{a data.fra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_proxies.R \name{read-batch} \alias{read-batch} \alias{sg_read_delay_nodes_p} \alias{sg_read_delay_edges_p} \alias{sg_read_delay_exec_p} \title{Batch read} \usage{ sg_read_delay_nodes_p(proxy, data, ..., delay) sg_read_delay_edges_p(pro...
/man/read-batch.Rd
permissive
BabigaBirregah/sigmajs
R
false
true
2,063
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_proxies.R \name{read-batch} \alias{read-batch} \alias{sg_read_delay_nodes_p} \alias{sg_read_delay_edges_p} \alias{sg_read_delay_exec_p} \title{Batch read} \usage{ sg_read_delay_nodes_p(proxy, data, ..., delay) sg_read_delay_edges_p(pro...
\name{calculateAUC} \alias{calculateAUC} \title{ Determine area under a curve (e.g. a risk or recall curve) of a risk chart } \description{ Given the evaluation returned by evaluateRisk, for example, calculate the area under the risk or recall curves, to use as a metric to compare the performance of a model....
/rattleM/man/calculateAUC.Rd
no_license
LJanulis/RattleM
R
false
false
1,215
rd
\name{calculateAUC} \alias{calculateAUC} \title{ Determine area under a curve (e.g. a risk or recall curve) of a risk chart } \description{ Given the evaluation returned by evaluateRisk, for example, calculate the area under the risk or recall curves, to use as a metric to compare the performance of a model....
#' @return \code{NULL} #' #' @rdname GetGoodness #' @param x List produced by GetGoodness #' @param ... Other print options #' @export #' @method print GetGoodness print.GetGoodness<- function(x,...){ cat('X-squared =', x$X.squared, ', df =', x$df,', p-value =',x$p.value,'\n') cat('Expected matrix:','\n...
/R/print.GetGoodness.R
no_license
cran/Delta
R
false
false
349
r
#' @return \code{NULL} #' #' @rdname GetGoodness #' @param x List produced by GetGoodness #' @param ... Other print options #' @export #' @method print GetGoodness print.GetGoodness<- function(x,...){ cat('X-squared =', x$X.squared, ', df =', x$df,', p-value =',x$p.value,'\n') cat('Expected matrix:','\n...
### #Author: Patrick Glettig #Date: 24.02.2018 #Description: This Script imports the exchange Rate data and prepares the data for analysis. library(readr)
/DataPreparation.R
no_license
JustierNo1/ExchangeRateProject
R
false
false
155
r
### #Author: Patrick Glettig #Date: 24.02.2018 #Description: This Script imports the exchange Rate data and prepares the data for analysis. library(readr)
#' Line chart Cat Dat Num #' #' @description #' `hgch_line_CatDatNum()` Create a highcharter line plot based on a particular data type. #' In this case, you can load data with only three columns, where the firts column is a #' **categorical column**, second is a **date column** and the third must be a **numeric class c...
/R/hgch_line_CatDatNum.R
no_license
lenafm/hgchmagic
R
false
false
2,926
r
#' Line chart Cat Dat Num #' #' @description #' `hgch_line_CatDatNum()` Create a highcharter line plot based on a particular data type. #' In this case, you can load data with only three columns, where the firts column is a #' **categorical column**, second is a **date column** and the third must be a **numeric class c...
##%%%%%%%%%% ## R script to prepare population data, land-use data and temperature date for ## analyses of lagged effects of climate and land use on population abundance trends ##%%%%%%%%%% rm(list = ls()) graphics.off() # Packages # Load packages library(reshape2) #~ Data wrangling library(plyr) #~...
/Code/01_dataprep.R
permissive
rcornf/lpi_lags_2023
R
false
false
47,790
r
##%%%%%%%%%% ## R script to prepare population data, land-use data and temperature date for ## analyses of lagged effects of climate and land use on population abundance trends ##%%%%%%%%%% rm(list = ls()) graphics.off() # Packages # Load packages library(reshape2) #~ Data wrangling library(plyr) #~...
# Construct dendrograms based on genetic differentiation # Note, if following readme, use boot_obj as "obj_filt" # Note, if following readme, use matrix as "pairwise_wc_fst" make_tree <- function(matrix = NULL , tree_method = "NJ" , bootstrap = FALSE, nboots ...
/01_scripts/utilities/make_tree.r
no_license
RycroftC/simple_pop_stats
R
false
false
3,169
r
# Construct dendrograms based on genetic differentiation # Note, if following readme, use boot_obj as "obj_filt" # Note, if following readme, use matrix as "pairwise_wc_fst" make_tree <- function(matrix = NULL , tree_method = "NJ" , bootstrap = FALSE, nboots ...
\name{gmt.system} \alias{gmt.system} \title{Invoke shell command} \description{ This internal function invokes a shell command, possibly directing the output to a file. } \usage{ gmt.system(cmd, file=NULL, append=FALSE) } \arguments{ \item{cmd}{system command to be invoked, as a string.} \item{file}{filename to...
/man/gmt.system.Rd
no_license
cran/gmt
R
false
false
976
rd
\name{gmt.system} \alias{gmt.system} \title{Invoke shell command} \description{ This internal function invokes a shell command, possibly directing the output to a file. } \usage{ gmt.system(cmd, file=NULL, append=FALSE) } \arguments{ \item{cmd}{system command to be invoked, as a string.} \item{file}{filename to...
### package setup steps install.packages("devtools", repos = "http://cran.us.r-project.org") library(devtools) # explicit packages install are needed to install dependencies install.packages("rJava", repos=c("http://rstudio.org/_packages", "http://cran.rstudio.com")) install.packages("DBI", repos=c("http://rstudio.or...
/source/Framework/org.ohdsi.cdm.framework.core/Common/Redshift/Achilles.R
permissive
cephalization11/ETL-CDMBuilder
R
false
false
3,425
r
### package setup steps install.packages("devtools", repos = "http://cran.us.r-project.org") library(devtools) # explicit packages install are needed to install dependencies install.packages("rJava", repos=c("http://rstudio.org/_packages", "http://cran.rstudio.com")) install.packages("DBI", repos=c("http://rstudio.or...
#' Add clones of a selection of nodes #' #' Add new nodes to a graph object of class \code{dgr_graph} which are clones of #' nodes in an active selection of nodes. All node attributes are preserved #' except for the node \code{label} attribute (to maintain the uniqueness of #' non-\code{NA} node label values). A vector...
/R/add_node_clones_ws.R
permissive
lionel-/DiagrammeR
R
false
false
8,199
r
#' Add clones of a selection of nodes #' #' Add new nodes to a graph object of class \code{dgr_graph} which are clones of #' nodes in an active selection of nodes. All node attributes are preserved #' except for the node \code{label} attribute (to maintain the uniqueness of #' non-\code{NA} node label values). A vector...
#' Performs social network based diffusion analysis in a Bayesian context #' @param formatteddata formatted data #' @param its number of iterations #' @param pilot_tuner1 tuning parameter for the social effect #' @param pilot_tuner2 tuning parameter for the asocial effect #' @param start1 start value for the ...
/spatialnbda/R/nbda.R
no_license
ingted/R-Examples
R
false
false
5,152
r
#' Performs social network based diffusion analysis in a Bayesian context #' @param formatteddata formatted data #' @param its number of iterations #' @param pilot_tuner1 tuning parameter for the social effect #' @param pilot_tuner2 tuning parameter for the asocial effect #' @param start1 start value for the ...
#' Run a simulation model #' #' @param control control file #' @param n_reps number of MCMC replicates #' @param run_assessment TRUE if you want the simulation to estimate biomass and FALSE if estimates are not required #' @importFrom stats rbinom #' @export #' run_sim_multi_release <- function(control, n_reps, run_as...
/R/run_sim_multi_release.R
no_license
AustralianAntarcticDivision/tagsim
R
false
false
9,788
r
#' Run a simulation model #' #' @param control control file #' @param n_reps number of MCMC replicates #' @param run_assessment TRUE if you want the simulation to estimate biomass and FALSE if estimates are not required #' @importFrom stats rbinom #' @export #' run_sim_multi_release <- function(control, n_reps, run_as...
fail <- function() { Sys.sleep(5); throw("Something broke") return(TRUE); } cat(fail());
/algorithm/fail.R
permissive
adigitalmonk/offliner-ex
R
false
false
101
r
fail <- function() { Sys.sleep(5); throw("Something broke") return(TRUE); } cat(fail());
\name{flag-class} \Rdversion{1.1} \docType{class} \alias{flag-class} \alias{[,flag,integer,missing-method} \alias{initialize,flag-method} \title{Class \code{"flag"}} \description{ %% ~~ A concise (1-5 lines) description of what the class is. ~~ } \section{Objects from the Class}{ Objects can be created by calls of th...
/package/man/flag-class.Rd
no_license
pacificclimate/crmp
R
false
false
1,764
rd
\name{flag-class} \Rdversion{1.1} \docType{class} \alias{flag-class} \alias{[,flag,integer,missing-method} \alias{initialize,flag-method} \title{Class \code{"flag"}} \description{ %% ~~ A concise (1-5 lines) description of what the class is. ~~ } \section{Objects from the Class}{ Objects can be created by calls of th...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{check_mod11} \alias{check_mod11} \title{Check the modulo 11 rules for CPR numbers} \usage{ check_mod11(cpr) } \arguments{ \item{cpr}{A vector of CPR number strings} } \value{ A logical vector with values TRUE (CPR number ok), F...
/man/check_mod11.Rd
no_license
ekstroem/DKcpr
R
false
true
427
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{check_mod11} \alias{check_mod11} \title{Check the modulo 11 rules for CPR numbers} \usage{ check_mod11(cpr) } \arguments{ \item{cpr}{A vector of CPR number strings} } \value{ A logical vector with values TRUE (CPR number ok), F...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 1.030990628153e-221, 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), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613098908-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
341
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 1.030990628153e-221, 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), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,...