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(productivity) ### Name: Shadowp ### Title: Shadow prices used in productivity and profitability ### computations ### Aliases: Shadowp ### Keywords: manip ### ** Examples ## Not run: ##D FISHER <- fisher(data = usagri, id.var = "States", time.var = "Years", x.vars = c(7:10), ##D y.vars = c(4:6), w.va...
/data/genthat_extracted_code/productivity/examples/Shadowp.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
486
r
library(productivity) ### Name: Shadowp ### Title: Shadow prices used in productivity and profitability ### computations ### Aliases: Shadowp ### Keywords: manip ### ** Examples ## Not run: ##D FISHER <- fisher(data = usagri, id.var = "States", time.var = "Years", x.vars = c(7:10), ##D y.vars = c(4:6), w.va...
load('dc_terr_elsig_holocene.Rdata') ## re-define period margins periodsBP <- c(-11000,-9000,-7000,-5000,-3000,-1000) periodsAD <- periodsBP + 1950 periodsName <- c("11-9","9-7","7-5","5-3","3-1") periodsBP <- periodsAD - 1950 period_margins <- periodsAD nper <- length(period_margins)-1 do.load <- FALSE if (do.load)...
/eval_cbudget/get_dc_terr_elsig_periods.R
no_license
stineb/holoLU_lc6k
R
false
false
3,363
r
load('dc_terr_elsig_holocene.Rdata') ## re-define period margins periodsBP <- c(-11000,-9000,-7000,-5000,-3000,-1000) periodsAD <- periodsBP + 1950 periodsName <- c("11-9","9-7","7-5","5-3","3-1") periodsBP <- periodsAD - 1950 period_margins <- periodsAD nper <- length(period_margins)-1 do.load <- FALSE if (do.load)...
# plots cross section of a raster matrix given two endpoints of a line xsec <- function (data, x1, y1, x2, y2){ d <- sqrt((x2-x1)^2 + (y2-y1)^2) print (d) a <- (y2-y1)/(x2-x1) print (a) d.int <- as.integer(d) #iterator print(d.int) x <- vector() y <- vector() z <- vector() for (i in 1:d...
/xsec.R
no_license
caluchko/r_topo_profile
R
false
false
797
r
# plots cross section of a raster matrix given two endpoints of a line xsec <- function (data, x1, y1, x2, y2){ d <- sqrt((x2-x1)^2 + (y2-y1)^2) print (d) a <- (y2-y1)/(x2-x1) print (a) d.int <- as.integer(d) #iterator print(d.int) x <- vector() y <- vector() z <- vector() for (i in 1:d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ActivateAction.R \name{ActivateAction} \alias{ActivateAction} \title{ActivateAction} \usage{ ActivateAction(id = NULL, target = NULL, startTime = NULL, result = NULL, participant = NULL, object = NULL, location = NULL, instrument = NULL, ...
/man/ActivateAction.Rd
no_license
cboettig/schemar
R
false
true
5,091
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ActivateAction.R \name{ActivateAction} \alias{ActivateAction} \title{ActivateAction} \usage{ ActivateAction(id = NULL, target = NULL, startTime = NULL, result = NULL, participant = NULL, object = NULL, location = NULL, instrument = NULL, ...
/Véletlenszám_Generátor_szemléltetés/Egyenletesbol_Exp_gen.R
no_license
tenkiX/R_peldak
R
false
false
509
r
library(qlcData) ### Name: launch_shiny ### Title: Launch Shiny app ### Aliases: launch_shiny ### ** Examples ## Not run: ##D launch_shiny("tokenize") ## End(Not run)
/data/genthat_extracted_code/qlcData/examples/launch_shiny.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
175
r
library(qlcData) ### Name: launch_shiny ### Title: Launch Shiny app ### Aliases: launch_shiny ### ** Examples ## Not run: ##D launch_shiny("tokenize") ## End(Not run)
tabBox(title = "Developer Reference", width = 20, side = "left", tabPanel(title = "Shiny Dashboard", value = "releaseNotes", icon = icon("code"), includeMarkdown("assets/ui/help/shinyDevRef.md") ), tabPanel(title = "Data Updates", ...
/assets/ui/devRef.R
no_license
SuperJohn/personal-finance-app
R
false
false
450
r
tabBox(title = "Developer Reference", width = 20, side = "left", tabPanel(title = "Shiny Dashboard", value = "releaseNotes", icon = icon("code"), includeMarkdown("assets/ui/help/shinyDevRef.md") ), tabPanel(title = "Data Updates", ...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/stomach.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.55,family="gaussian",standardize=TRUE) sink('./stomach_061.txt',append=TRUE) pri...
/Model/EN/Lasso/stomach/stomach_061.R
no_license
esbgkannan/QSMART
R
false
false
346
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/stomach.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.55,family="gaussian",standardize=TRUE) sink('./stomach_061.txt',append=TRUE) pri...
testlist <- list(ends = c(-1125300777L, 765849518L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
/IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609874388-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
729
r
testlist <- list(ends = c(-1125300777L, 765849518L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
#load document params <- read.csv('./NIPS/docword.nips.txt', header=FALSE, sep=" ", nrows=3) docwords <- read.csv('./NIPS/docword.nips.txt', header=FALSE, sep=" ", skip=3) vocab <-read.csv('./NIPS/vocab.nips.txt', header=FALSE, sep=' ') colnames(docwords) <- c("DocID", "WordID", "Count") d <-params[1,] #number of docu...
/Part1.R
no_license
nramaker/AML_HW7
R
false
false
913
r
#load document params <- read.csv('./NIPS/docword.nips.txt', header=FALSE, sep=" ", nrows=3) docwords <- read.csv('./NIPS/docword.nips.txt', header=FALSE, sep=" ", skip=3) vocab <-read.csv('./NIPS/vocab.nips.txt', header=FALSE, sep=' ') colnames(docwords) <- c("DocID", "WordID", "Count") d <-params[1,] #number of docu...
region_spei <- function(spei_files,start_y,end_y,lon_min,lon_max,lat_min,lat_max) { # install and load needed packages list.of.packages <- c("ncdf4","tidyverse","chron","stringr") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)) install.pack...
/R/region_spei.R
no_license
seschaub/getSpei
R
false
false
5,609
r
region_spei <- function(spei_files,start_y,end_y,lon_min,lon_max,lat_min,lat_max) { # install and load needed packages list.of.packages <- c("ncdf4","tidyverse","chron","stringr") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)) install.pack...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eval_g.R \name{eval.g.ar2} \alias{eval.g.ar2} \title{Evaluate sum of Hermite polynomials for g(pacf1) and g(pacf2)} \usage{ eval.g.ar2(x, beta) } \description{ Evaluate sum of Hermite polynomials for g(pacf1) and g(pacf2) } \keyword{internal}...
/man/eval.g.ar2.Rd
no_license
pedrognicolau/ARbiascorrect-v1
R
false
true
321
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eval_g.R \name{eval.g.ar2} \alias{eval.g.ar2} \title{Evaluate sum of Hermite polynomials for g(pacf1) and g(pacf2)} \usage{ eval.g.ar2(x, beta) } \description{ Evaluate sum of Hermite polynomials for g(pacf1) and g(pacf2) } \keyword{internal}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tools-api.R \name{batcher} \alias{batcher} \title{Download in batches} \usage{ batcher(ids, func, ps, lvl = 0) } \arguments{ \item{ids}{Vector of record ids} \item{func}{Downloader function} \item{ps}{Parameters list, generated with paramet...
/man/batcher.Rd
permissive
ropensci/phylotaR
R
false
true
2,666
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tools-api.R \name{batcher} \alias{batcher} \title{Download in batches} \usage{ batcher(ids, func, ps, lvl = 0) } \arguments{ \item{ids}{Vector of record ids} \item{func}{Downloader function} \item{ps}{Parameters list, generated with paramet...
#' create curly braces as a layer in ggplot #' #' Imports: #' ggplot2 #' #' @inheritParams ggplot2::geom_path #' @inheritParams ggplot2::geom_text #' @import ggplot2 #' #' @param rotate number, defines where the brace is pointing to: 0=up, 90=right, 180=down, 270=left. When specified by user, will overwrite other dire...
/R/stat_brace.R
permissive
NicolasH2/ggbrace
R
false
false
5,129
r
#' create curly braces as a layer in ggplot #' #' Imports: #' ggplot2 #' #' @inheritParams ggplot2::geom_path #' @inheritParams ggplot2::geom_text #' @import ggplot2 #' #' @param rotate number, defines where the brace is pointing to: 0=up, 90=right, 180=down, 270=left. When specified by user, will overwrite other dire...
#' Extract data from objects to use in a shiny app #' #' This function joins the result of [tune::fit_resamples()] to the original #' dataset to give a list that can be an input for the Shiny app. #' @param x The [tune::fit_resamples()] result. #' @param hover_cols The columns to display while hovering. #' @param ... ...
/R/organize_data.R
permissive
cpsievert/shinymodels
R
false
false
5,254
r
#' Extract data from objects to use in a shiny app #' #' This function joins the result of [tune::fit_resamples()] to the original #' dataset to give a list that can be an input for the Shiny app. #' @param x The [tune::fit_resamples()] result. #' @param hover_cols The columns to display while hovering. #' @param ... ...
library(png) library(ggplot2) library(grid) load(paste(raw.data.path, "eyEdu_data.Rda", sep = "")) # The shinyApp would display an error if it would not find background images # Below we create an images folder and a placeholder background image with # width and height defined by two values that must be provided...
/inst/eyEduTrialViewer/global.R
no_license
SebastianKorinth/eyEdu
R
false
false
1,729
r
library(png) library(ggplot2) library(grid) load(paste(raw.data.path, "eyEdu_data.Rda", sep = "")) # The shinyApp would display an error if it would not find background images # Below we create an images folder and a placeholder background image with # width and height defined by two values that must be provided...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iam_operations.R \name{iam_create_saml_provider} \alias{iam_create_saml_provider} \title{Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2} \usage{ iam_create_saml_provider(SAMLMetadataDocument, Name) } \a...
/cran/paws.security.identity/man/iam_create_saml_provider.Rd
permissive
sanchezvivi/paws
R
false
true
2,726
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iam_operations.R \name{iam_create_saml_provider} \alias{iam_create_saml_provider} \title{Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2} \usage{ iam_create_saml_provider(SAMLMetadataDocument, Name) } \a...
# args <- commandArgs(trailingOnly = TRUE) # setwd("/Users/Runze/Documents/GitHub/LLG/Code/R") # setwd("E:/GitHub/LLG/Code/R") setwd("/cis/home/rtang/LLG/Code/R") # m = as.numeric(args[1]) # m = 1 # isSVD = 1 # mVec = c(1, 5, 10) mVec = 10 for (m in mVec) { for (isSVD in 0) { print(c(m, isSVD)) ...
/Code/R/main_brute_JHU_10.R
no_license
neurodata/LLG
R
false
false
3,092
r
# args <- commandArgs(trailingOnly = TRUE) # setwd("/Users/Runze/Documents/GitHub/LLG/Code/R") # setwd("E:/GitHub/LLG/Code/R") setwd("/cis/home/rtang/LLG/Code/R") # m = as.numeric(args[1]) # m = 1 # isSVD = 1 # mVec = c(1, 5, 10) mVec = 10 for (m in mVec) { for (isSVD in 0) { print(c(m, isSVD)) ...
mapdeckMeshDependency <- function() { list( createHtmlDependency( name = "mesh", version = "1.0.0", src = system.file("htmlwidgets/lib/mesh", package = "mapdeck"), script = c("mesh.js"), all_files = FALSE ) ) } find_mesh_index <- function( data ) { switch( data[["primitivetype"]] , "quad" =...
/R/map_layer_mesh.R
no_license
mdsumner/mapdeck
R
false
false
3,873
r
mapdeckMeshDependency <- function() { list( createHtmlDependency( name = "mesh", version = "1.0.0", src = system.file("htmlwidgets/lib/mesh", package = "mapdeck"), script = c("mesh.js"), all_files = FALSE ) ) } find_mesh_index <- function( data ) { switch( data[["primitivetype"]] , "quad" =...
model1<-lm(deaths ~ pop, data = mort) #gleason model model2<-lm(deaths ~ log(1+pop), data = mort) #nonlinear Arrhenius model model3 <- nls(deaths~b0*pop^b1,data=mort,start=list(b0=1,b1=1)) #Poisson and negative binomial models model4<-glm(deaths~log(1+pop),data=mort,family=poisson) library(MASS) model5<-glm.nb(deaths~l...
/adapt2.R
no_license
MattHealey/M16
R
false
false
3,128
r
model1<-lm(deaths ~ pop, data = mort) #gleason model model2<-lm(deaths ~ log(1+pop), data = mort) #nonlinear Arrhenius model model3 <- nls(deaths~b0*pop^b1,data=mort,start=list(b0=1,b1=1)) #Poisson and negative binomial models model4<-glm(deaths~log(1+pop),data=mort,family=poisson) library(MASS) model5<-glm.nb(deaths~l...
#!/usr/bin/Rscript require(docopt) 'Usage: neighborhoods.R [-g <geodata> -o <output> -z <zone> ] Options: -g Geographic data in geojson format [default: data/spatial/Neighborhoods_Philadelphia.geojson] -o Neighborhood distance matrix [default: cache/neighborhood_distances.csv] -z UTM Zone [default: 17] ' ...
/munge/neighborhood_distance.R
no_license
jzelner/phl-crime-model
R
false
false
1,433
r
#!/usr/bin/Rscript require(docopt) 'Usage: neighborhoods.R [-g <geodata> -o <output> -z <zone> ] Options: -g Geographic data in geojson format [default: data/spatial/Neighborhoods_Philadelphia.geojson] -o Neighborhood distance matrix [default: cache/neighborhood_distances.csv] -z UTM Zone [default: 17] ' ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/AllMethods.R \docType{methods} \name{union} \alias{union} \alias{union,groups,groups-method} \alias{union,snppicker,snppicker-method} \alias{union,tags,tags-method} \title{Create a union of groups, snppicker or tags objects} ...
/man/union.Rd
no_license
stas-g/GUESSFM
R
false
true
867
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/AllMethods.R \docType{methods} \name{union} \alias{union} \alias{union,groups,groups-method} \alias{union,snppicker,snppicker-method} \alias{union,tags,tags-method} \title{Create a union of groups, snppicker or tags objects} ...
# Foundation of Inference # install.packages("WDI") library(WDI) WDI.data <- WDI(country = "all", indicator = c("SH.DYN.NMRT","DC.DAC.USAL.CD", "SH.VAC.TTNS.ZS", "SP.URB.TOTL.IN.ZS", "NE.TRD.GNFS.ZS"), start = 1990, end = 2005, extra = FALSE, cache = NULL) par(mfrow = c(1, 3)) h...
/Chapters_pdfR/Foundation of Inference_ Kor_BasicStats.R
permissive
pherephobia/Kor_BasicStats
R
false
false
10,597
r
# Foundation of Inference # install.packages("WDI") library(WDI) WDI.data <- WDI(country = "all", indicator = c("SH.DYN.NMRT","DC.DAC.USAL.CD", "SH.VAC.TTNS.ZS", "SP.URB.TOTL.IN.ZS", "NE.TRD.GNFS.ZS"), start = 1990, end = 2005, extra = FALSE, cache = NULL) par(mfrow = c(1, 3)) h...
X <- seq (0, 4, by = 1) p <- c (1/2, 1/4, 1/8, 1/16, 1/16) F <- cumsum (p) data.frame (X, p, F)
/cviko5/5.R
no_license
spetrovi/MV011
R
false
false
97
r
X <- seq (0, 4, by = 1) p <- c (1/2, 1/4, 1/8, 1/16, 1/16) F <- cumsum (p) data.frame (X, p, F)
#' Cross-spectrum based on mutual information #' @export mics <- function( spectro1= NULL, spectro2= NULL, feature1= NULL, feature2= NULL, plot= F, zerofill= T, lagw = NULL, ... ){ if (!is.null(spectro1) & !is.null(spectro2)){ x <- spectro1 y <- spectro2 # Select longer signal as the static one...
/R/mics.R
no_license
crodriguez-saltos/misound
R
false
false
2,944
r
#' Cross-spectrum based on mutual information #' @export mics <- function( spectro1= NULL, spectro2= NULL, feature1= NULL, feature2= NULL, plot= F, zerofill= T, lagw = NULL, ... ){ if (!is.null(spectro1) & !is.null(spectro2)){ x <- spectro1 y <- spectro2 # Select longer signal as the static one...
#### Random Linear Models #### random_lm1 <- lm(wage ~ factor(state) + factor(FS) + AGEP + factor(ENG) + factor(edu) + factor(SEX) + WKHP + factor(DIS) + factor(indp) + factor(occp) + factor(NATIVITY) + factor(RAC1P), na.action=na.omit, dat...
/random_lm_models.R
no_license
thegarthman/MastersProject
R
false
false
674
r
#### Random Linear Models #### random_lm1 <- lm(wage ~ factor(state) + factor(FS) + AGEP + factor(ENG) + factor(edu) + factor(SEX) + WKHP + factor(DIS) + factor(indp) + factor(occp) + factor(NATIVITY) + factor(RAC1P), na.action=na.omit, dat...
#source("https://bioconductor.org/biocLite.R") #biocLite("VariantAnnotation") options(echo=FALSE) args <- commandArgs(trailingOnly = TRUE) print(args) minDP <- as.integer(args[1]) minAF <- as.numeric(args[2]) minStrand <- as.numeric(args[3]) file <- args[4] library(VariantAnnotation) pre <- FilterRules(list(isLowC...
/scripts/dna/VariantFilter_mpileup_SNP.R
no_license
BenF777/illumina_tst15
R
false
false
1,899
r
#source("https://bioconductor.org/biocLite.R") #biocLite("VariantAnnotation") options(echo=FALSE) args <- commandArgs(trailingOnly = TRUE) print(args) minDP <- as.integer(args[1]) minAF <- as.numeric(args[2]) minStrand <- as.numeric(args[3]) file <- args[4] library(VariantAnnotation) pre <- FilterRules(list(isLowC...
testlist <- list(hi = -1.00252054090433e+120, lo = -1.00252054090433e+120, mu = -1.00252054090433e+120, sig = -1.00252054090433e+120) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610045573-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
195
r
testlist <- list(hi = -1.00252054090433e+120, lo = -1.00252054090433e+120, mu = -1.00252054090433e+120, sig = -1.00252054090433e+120) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
############################################################################ ## Purpose: Variable Importance ############################################################################ library(cftf,lib.loc=".") library(randomForest) library(rpart) library(pls) library(gam) #### ## Function Definition ...
/code/jochem_results/perf_fuse.R
no_license
mmorehea/NeuroMiner
R
false
false
3,768
r
############################################################################ ## Purpose: Variable Importance ############################################################################ library(cftf,lib.loc=".") library(randomForest) library(rpart) library(pls) library(gam) #### ## Function Definition ...
library(amt) ### Name: hr_area ### Title: Home ranges ### Aliases: hr_area hr hr_isopleths hr_kde hr_kde.track_xy hr_kde_ref ### hr_kde_ref.track_xy hr_locoh_k hr_locoh_k.track_xy hr_mcp ### hr_mcp.track_xy ### ** Examples data(deer) # MCP --------------------------------------------------------------------- ...
/data/genthat_extracted_code/amt/examples/hr.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
957
r
library(amt) ### Name: hr_area ### Title: Home ranges ### Aliases: hr_area hr hr_isopleths hr_kde hr_kde.track_xy hr_kde_ref ### hr_kde_ref.track_xy hr_locoh_k hr_locoh_k.track_xy hr_mcp ### hr_mcp.track_xy ### ** Examples data(deer) # MCP --------------------------------------------------------------------- ...
/5_Data_Browser/English.lproj/PrefsDialog.r
no_license
fruitsamples/CarbonPorting
R
false
false
10,159
r
demo_data # combiroc built-in demo data (proteomics data from Zingaretti et al. 2012 - PMC3518104) combs <- combi(data= demo_data, signalthr=450, combithr=1) # compute combinations combs_SE_SP <- se_sp(data=demo_data, combinations_table=combs) # compute SE and SP ...
/R/examples/ranked_combs_example.R
permissive
minghao2016/combiroc
R
false
false
734
r
demo_data # combiroc built-in demo data (proteomics data from Zingaretti et al. 2012 - PMC3518104) combs <- combi(data= demo_data, signalthr=450, combithr=1) # compute combinations combs_SE_SP <- se_sp(data=demo_data, combinations_table=combs) # compute SE and SP ...
769968480da7f26299574d9c24fcc606 dungeon_i10-m5-u10-v0.pddl_planlen=157.qdimacs 32519 87850
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i10-m5-u10-v0.pddl_planlen=157/dungeon_i10-m5-u10-v0.pddl_planlen=157.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
91
r
769968480da7f26299574d9c24fcc606 dungeon_i10-m5-u10-v0.pddl_planlen=157.qdimacs 32519 87850
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{json2tidy} \alias{json2tidy} \title{json2tidy} \usage{ json2tidy(url) } \arguments{ \item{url}{The yahoo finance URL to tidy.} } \description{ json2tidy }
/man/json2tidy.Rd
no_license
Stanleymu/yfinance
R
false
true
247
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{json2tidy} \alias{json2tidy} \title{json2tidy} \usage{ json2tidy(url) } \arguments{ \item{url}{The yahoo finance URL to tidy.} } \description{ json2tidy }
#!/usr/bin/env Rscript # # This file is part of the `OmnipathR` R package # # Copyright # 2018-2021 # Saez Lab, Uniklinik RWTH Aachen, Heidelberg University # # File author(s): Alberto Valdeolivas # Dénes Türei (turei.denes@gmail.com) # Attila Gábor # # Distributed under the MIT...
/R/zzz.R
permissive
kerwin12580/OmnipathR
R
false
false
965
r
#!/usr/bin/env Rscript # # This file is part of the `OmnipathR` R package # # Copyright # 2018-2021 # Saez Lab, Uniklinik RWTH Aachen, Heidelberg University # # File author(s): Alberto Valdeolivas # Dénes Türei (turei.denes@gmail.com) # Attila Gábor # # Distributed under the MIT...
#install.packages("twitteR") #install.packages("plyr") #install.packages("stringr") #install.packages("ggvis") #install.packages("ggplot2") #install.packages("memoise") #install.packages("gridExtra") # Function to check if package exists already checkForPackage <- function(pack){ is.element(pack, installed...
/server.R
no_license
karthikchaganti/EDA-on-2016-US-Elections-Tweets
R
false
false
10,754
r
#install.packages("twitteR") #install.packages("plyr") #install.packages("stringr") #install.packages("ggvis") #install.packages("ggplot2") #install.packages("memoise") #install.packages("gridExtra") # Function to check if package exists already checkForPackage <- function(pack){ is.element(pack, installed...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{match_call_arg} \alias{match_call_arg} \title{Matches the arg to anal_prnGSPA} \usage{ match_call_arg(call_rda = "foo", arg = "scale_log2r") } \arguments{ \item{call_rda}{the name of a rda.} \item{arg}{Argument to be matched.} ...
/man/match_call_arg.Rd
permissive
sailfish009/proteoQ
R
false
true
370
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{match_call_arg} \alias{match_call_arg} \title{Matches the arg to anal_prnGSPA} \usage{ match_call_arg(call_rda = "foo", arg = "scale_log2r") } \arguments{ \item{call_rda}{the name of a rda.} \item{arg}{Argument to be matched.} ...
library(RDStreeboot) ### Name: sample.RDS ### Title: Draw RDS Sample ### Aliases: sample.RDS ### ** Examples ## load data data(faux.network) ## draw RDS from network samp <- sample.RDS(faux.network$traits, faux.network$adj.mat, 100, 2, 3, c(0,1/3,1/3,1/3), TRUE)
/data/genthat_extracted_code/RDStreeboot/examples/sample.RDS.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
271
r
library(RDStreeboot) ### Name: sample.RDS ### Title: Draw RDS Sample ### Aliases: sample.RDS ### ** Examples ## load data data(faux.network) ## draw RDS from network samp <- sample.RDS(faux.network$traits, faux.network$adj.mat, 100, 2, 3, c(0,1/3,1/3,1/3), TRUE)
<?xml version="1.0" encoding="utf-8"?> <serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SocketService" generation="1" functional="0" release="0" Id="eabf9def-fdd5-4dd0-ba87-b36318d5dad9" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/dslto...
/SocketService/csx/Debug/ServiceDefinition.rd
no_license
jsonknightlee/RefthisSocketServer
R
false
false
4,612
rd
<?xml version="1.0" encoding="utf-8"?> <serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SocketService" generation="1" functional="0" release="0" Id="eabf9def-fdd5-4dd0-ba87-b36318d5dad9" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/dslto...
# ============================================================================================================================================= # Attempt library(deSolve) SIR <- function(t, x, parms) { with(as.list(c(parms, x)), { dS <- -beta*I/1000*S dI <- beta*I/1000*S - r*I dR <- r*I output <- c(d...
/specification/lecture notes/Day 2/ex1.R
no_license
ZachWolpe/BAMM
R
false
false
5,028
r
# ============================================================================================================================================= # Attempt library(deSolve) SIR <- function(t, x, parms) { with(as.list(c(parms, x)), { dS <- -beta*I/1000*S dI <- beta*I/1000*S - r*I dR <- r*I output <- c(d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets_documentation.R \docType{data} \name{sumtax_example_data} \alias{sumtax_example_data} \title{Taxa Summary from Produce Dataset} \format{ A data frame } \source{ Adapted from \url{ http://journals.plos.org/plosone/article?id=10.1371/...
/man/sumtax_example_data.Rd
no_license
leffj/mctoolsr
R
false
true
539
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets_documentation.R \docType{data} \name{sumtax_example_data} \alias{sumtax_example_data} \title{Taxa Summary from Produce Dataset} \format{ A data frame } \source{ Adapted from \url{ http://journals.plos.org/plosone/article?id=10.1371/...
# Exercise 3: using the pipe operator # Install (if needed) and load the "dplyr" library #install.packages("dplyr") library("dplyr") # Install (if needed) and load the "fueleconomy" package #install.packages('devtools') #devtools::install_github("hadley/fueleconomy") library(fueleconomy) # Which 2015 Acura model has...
/exercise-3/exercise.R
permissive
abondarenko98/ch10-dplyr
R
false
false
1,062
r
# Exercise 3: using the pipe operator # Install (if needed) and load the "dplyr" library #install.packages("dplyr") library("dplyr") # Install (if needed) and load the "fueleconomy" package #install.packages('devtools') #devtools::install_github("hadley/fueleconomy") library(fueleconomy) # Which 2015 Acura model has...
triggerReproduction <- function(length, reproState, currentMonth, reproScenario = 'fixedClutchSize'){ if (reproScenario == 'fixedClutchSize'){ triggerEnergy <<- (length * 150.83 - 3027.244) * weightEgg return(reproState > triggerEnergy & currentMonth %in% spawningWindow) } }
/functions/triggerReproduction.R
no_license
dbahlburg/SERBIK
R
false
false
320
r
triggerReproduction <- function(length, reproState, currentMonth, reproScenario = 'fixedClutchSize'){ if (reproScenario == 'fixedClutchSize'){ triggerEnergy <<- (length * 150.83 - 3027.244) * weightEgg return(reproState > triggerEnergy & currentMonth %in% spawningWindow) } }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/networks.R \name{get_degree_distribution} \alias{get_degree_distribution} \title{Get the degree distribution for a network.} \usage{ get_degree_distribution(network) } \arguments{ \item{network}{A network object.} } \value{ A vector of length...
/SeqNet/man/get_degree_distribution.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
832
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/networks.R \name{get_degree_distribution} \alias{get_degree_distribution} \title{Get the degree distribution for a network.} \usage{ get_degree_distribution(network) } \arguments{ \item{network}{A network object.} } \value{ A vector of length...
catalogue <- read.csv("depends/mics_survey_catalogue_filenames.csv", na = "", stringsAsFactors = FALSE) is_available <- !is.na(catalogue$datasets) & catalogue$datasets == "Available" ## assign ISO3 and survey_id custom_matches <- c("Eswatini" = "SWZ", "Kosovo under UNSC res...
/src/mics_rds/script.R
no_license
mrc-ide/mics-datasets
R
false
false
5,987
r
catalogue <- read.csv("depends/mics_survey_catalogue_filenames.csv", na = "", stringsAsFactors = FALSE) is_available <- !is.na(catalogue$datasets) & catalogue$datasets == "Available" ## assign ISO3 and survey_id custom_matches <- c("Eswatini" = "SWZ", "Kosovo under UNSC res...
library(BPEC) ### Name: bpec ### Title: Bayesian Phylogeographic and Ecological Clustering (BPEC) ### Aliases: bpec plot.bpec summary.bpec mean.bpec print.bpec ### Keywords: phylogeography clustering Bayesian phylogenetics ### ** Examples ## if you want to load the `mini' example Brown Frog dataset data(Macrocnemis...
/data/genthat_extracted_code/BPEC/examples/bpec.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
4,391
r
library(BPEC) ### Name: bpec ### Title: Bayesian Phylogeographic and Ecological Clustering (BPEC) ### Aliases: bpec plot.bpec summary.bpec mean.bpec print.bpec ### Keywords: phylogeography clustering Bayesian phylogenetics ### ** Examples ## if you want to load the `mini' example Brown Frog dataset data(Macrocnemis...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auxiliary_giotto.R \name{rowMeans_giotto} \alias{rowMeans_giotto} \title{rowMeans_giotto} \usage{ rowMeans_giotto(mymatrix) } \description{ rowMeans_giotto } \keyword{internal}
/man/rowMeans_giotto.Rd
permissive
bernard2012/Giotto
R
false
true
255
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auxiliary_giotto.R \name{rowMeans_giotto} \alias{rowMeans_giotto} \title{rowMeans_giotto} \usage{ rowMeans_giotto(mymatrix) } \description{ rowMeans_giotto } \keyword{internal}
Pa <- 1/prod(49:52); Pa Pb <- 1/choose(52,4); Pb
/chap04/exa_0402.R
no_license
leetschau/app-of-rlang-in-stats
R
false
false
51
r
Pa <- 1/prod(49:52); Pa Pb <- 1/choose(52,4); Pb
#' Function to normalize TF scores #' #' @param vipermat - matrix of VIPER scores with columns as samples, #' rows as protein names #' @param fdr.thresh - BH-FDR threshold (default 0.05 FDR rate) #' @return A vector of normalized z-scores, named by TF id #' @keywords internal viperGetTFScores <- function(vipermat, fd...
/R/make.interactions.r
no_license
califano-lab/MOMA
R
false
false
8,958
r
#' Function to normalize TF scores #' #' @param vipermat - matrix of VIPER scores with columns as samples, #' rows as protein names #' @param fdr.thresh - BH-FDR threshold (default 0.05 FDR rate) #' @return A vector of normalized z-scores, named by TF id #' @keywords internal viperGetTFScores <- function(vipermat, fd...
library(shiny) library(shinyjs) library(shinythemes) library(DT) library(dplyr) setwd("C:/Users/193344/Desktop/tracker gui") ARMASTER <- read.csv("//knx1fs01/ED Reporting/Lowhorn Big Data/Golden Rule Data/ARMASTER.csv") ar <- select(ARMASTER,A.R,desk,manager) ar <- rename(ar,Desk=desk) ar <- rename(ar,Manager=manager...
/App.R
no_license
jlow2499/Shiny-Google-Form
R
false
false
12,586
r
library(shiny) library(shinyjs) library(shinythemes) library(DT) library(dplyr) setwd("C:/Users/193344/Desktop/tracker gui") ARMASTER <- read.csv("//knx1fs01/ED Reporting/Lowhorn Big Data/Golden Rule Data/ARMASTER.csv") ar <- select(ARMASTER,A.R,desk,manager) ar <- rename(ar,Desk=desk) ar <- rename(ar,Manager=manager...
\name{earthquake} \alias{earthquake} \docType{data} \title{ Earthquake locations } \description{ Longitude, latitude and times (starting from zero) of a set of earthquakes in and around California. } \usage{data(earthquake)} \format{ A dataframe with 3 columns. } \keyword{datasets}
/stppResid/man/earthquake.Rd
no_license
r-clements/stppResid
R
false
false
284
rd
\name{earthquake} \alias{earthquake} \docType{data} \title{ Earthquake locations } \description{ Longitude, latitude and times (starting from zero) of a set of earthquakes in and around California. } \usage{data(earthquake)} \format{ A dataframe with 3 columns. } \keyword{datasets}
#' Plot collapsed co-ranking matrix for heatmap for projection in a benchmark #' #' Creates plot showing collapsed co-ranking matrix of a dimension-reduction layout as a heatmap. #' #' @param benchmark an object of class \code{Benchmark}, as generated by the constructor \code{Benchmark} and evaluated using \code{Evalu...
/R/04_Visual_CoRanking.R
permissive
davnovak/SingleBench
R
false
false
5,297
r
#' Plot collapsed co-ranking matrix for heatmap for projection in a benchmark #' #' Creates plot showing collapsed co-ranking matrix of a dimension-reduction layout as a heatmap. #' #' @param benchmark an object of class \code{Benchmark}, as generated by the constructor \code{Benchmark} and evaluated using \code{Evalu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{domain_to_R} \alias{domain_to_R} \title{Rectangular Domain -> Unbounded Domain} \usage{ domain_to_R(f, domain) } \arguments{ \item{f}{The function to wrap, should have a single vector-valued input.} \item{domain}{A list of real ...
/activegp/man/domain_to_R.Rd
no_license
akhikolla/InformationHouse
R
false
true
629
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{domain_to_R} \alias{domain_to_R} \title{Rectangular Domain -> Unbounded Domain} \usage{ domain_to_R(f, domain) } \arguments{ \item{f}{The function to wrap, should have a single vector-valued input.} \item{domain}{A list of real ...
source.dir <- dirname(rstudioapi::getActiveDocumentContext()$path) setwd(source.dir) library(tm) library(SnowballC) library(dplyr) library(hunspell) library(ggplot2) selected_cols <- c('text', 'favoriteCount', 'created', 'screenName', 'retweetCount') john_tweets_df <- readRDS("../../Twitter Mining/John/john_house_twe...
/Codes/Analysis/by_party.R
no_license
swannyy14/Sentiment-Analysis-on-Sutherland-Springs-Shooting-by-Party
R
false
false
3,472
r
source.dir <- dirname(rstudioapi::getActiveDocumentContext()$path) setwd(source.dir) library(tm) library(SnowballC) library(dplyr) library(hunspell) library(ggplot2) selected_cols <- c('text', 'favoriteCount', 'created', 'screenName', 'retweetCount') john_tweets_df <- readRDS("../../Twitter Mining/John/john_house_twe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvcokm.param.R \name{mvcokm.param} \alias{mvcokm.param} \title{Get model parameters in autoregressive cokriging models for multivarite output} \usage{ mvcokm.param(obj) } \arguments{ \item{obj}{a \code{\link{mvcokm}} object construted via the...
/fuzzedpackages/ARCokrig/man/mvcokm.param.Rd
no_license
akhikolla/testpackages
R
false
true
1,025
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvcokm.param.R \name{mvcokm.param} \alias{mvcokm.param} \title{Get model parameters in autoregressive cokriging models for multivarite output} \usage{ mvcokm.param(obj) } \arguments{ \item{obj}{a \code{\link{mvcokm}} object construted via the...
home_dir <- "~/Desktop/compass/resource/matrices/" out_dir <- "~/Desktop/compass/resource/plots/" plotting_flag <- TRUE library(PharmacoGx) library(Cairo) library(devtools) library(readxl) library(openxlsx) options(stringsAsFactors = FALSE) identifiers <- read_xlsx("~/Desktop/compass/resource/List of COMPASS PDO Ide...
/mono_therapy/drug_response_curves/mono_curves.R
no_license
anthfm/PDAC_DrugResponse
R
false
false
4,584
r
home_dir <- "~/Desktop/compass/resource/matrices/" out_dir <- "~/Desktop/compass/resource/plots/" plotting_flag <- TRUE library(PharmacoGx) library(Cairo) library(devtools) library(readxl) library(openxlsx) options(stringsAsFactors = FALSE) identifiers <- read_xlsx("~/Desktop/compass/resource/List of COMPASS PDO Ide...
#' wrapper f to construct phage annotation counts for sample #' while keeping sample name. #' @param contig-cdd file #' @param name of sample #' @param cdd-annotation datafram #' @return df with 3 columns: sample_name, annotation, count annotation_counts_for_sample <- function(contig_file, sample_name, cdd_annotation)...
/annotation_count_sample.R
no_license
anatolydryga/CDD_cluster
R
false
false
589
r
#' wrapper f to construct phage annotation counts for sample #' while keeping sample name. #' @param contig-cdd file #' @param name of sample #' @param cdd-annotation datafram #' @return df with 3 columns: sample_name, annotation, count annotation_counts_for_sample <- function(contig_file, sample_name, cdd_annotation)...
context("knitr") test_that("An R Markdown document can be rendered using reticulate", { skip_on_cran() skip_on_os("windows") skip_if_no_python() skip_if_not_installed("rmarkdown") modules <- c("numpy", "matplotlib") for (module in modules) { if (!py_module_available(module)) { fmt <- "module '%s...
/tests/testthat/test-python-knitr-engine.R
permissive
24sharkS/reticulate
R
false
false
584
r
context("knitr") test_that("An R Markdown document can be rendered using reticulate", { skip_on_cran() skip_on_os("windows") skip_if_no_python() skip_if_not_installed("rmarkdown") modules <- c("numpy", "matplotlib") for (module in modules) { if (!py_module_available(module)) { fmt <- "module '%s...
hyper_test <- function ( pathway_gene, gezogene, alle_gene, more = T, unique = T) { if (unique == T) { pathway_gene <- unique(pathway_gene) gezogene <- unique(gezogene) alle_gene <- unique(alle_gene) } pathway_gene_inbg = pathway_gene[pathway_gene %in% alle_gene] me...
/hyper_test.R
no_license
cfbeuchel/imise_functions
R
false
false
4,015
r
hyper_test <- function ( pathway_gene, gezogene, alle_gene, more = T, unique = T) { if (unique == T) { pathway_gene <- unique(pathway_gene) gezogene <- unique(gezogene) alle_gene <- unique(alle_gene) } pathway_gene_inbg = pathway_gene[pathway_gene %in% alle_gene] me...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotCNV.R \name{.selectRange.2} \alias{.selectRange.2} \title{Subset genomic ranges from multiple samples' segment-level SCNA data} \usage{ .selectRange.2( segDf, chr = NULL, start = NULL, end = NULL, genomeVersion = "hg38" ) } \arg...
/man/dot-selectRange.2.Rd
no_license
bzhanglab/genomicWidgets
R
false
true
1,220
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotCNV.R \name{.selectRange.2} \alias{.selectRange.2} \title{Subset genomic ranges from multiple samples' segment-level SCNA data} \usage{ .selectRange.2( segDf, chr = NULL, start = NULL, end = NULL, genomeVersion = "hg38" ) } \arg...
## Checking the availability of required packages & loading the packages dplyr <- "dplyr" %in% rownames(installed.packages()) if(dplyr == FALSE){ install.packages("dplyr") } library(dplyr) ## Checking the availability of the folder fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fp...
/run_analysis.R
no_license
AhmadAbdulhameed/Getting-and-Cleaning-Data-Project
R
false
false
3,112
r
## Checking the availability of required packages & loading the packages dplyr <- "dplyr" %in% rownames(installed.packages()) if(dplyr == FALSE){ install.packages("dplyr") } library(dplyr) ## Checking the availability of the folder fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fp...
rm(list=ls()) library(igraph) human.pin <- read.csv("../../human.pin.csv", header=T, stringsAsFactors = F) geneA <- human.pin$geneA geneB <- human.pin$geneB #human.pin <- read.csv("../../../ms02star/human/ms02.1.csv", header=T, stringsAsFactors=F) #geneA <- human.pin$id1 #geneB <- human.pin$id2 #All genes appear in ...
/Data/MSigDB.go.pathway/HALLMARK_INFLAMMATORY_RESPONSE/neibor.network.R
no_license
haoboguo/NetBAS
R
false
false
2,024
r
rm(list=ls()) library(igraph) human.pin <- read.csv("../../human.pin.csv", header=T, stringsAsFactors = F) geneA <- human.pin$geneA geneB <- human.pin$geneB #human.pin <- read.csv("../../../ms02star/human/ms02.1.csv", header=T, stringsAsFactors=F) #geneA <- human.pin$id1 #geneB <- human.pin$id2 #All genes appear in ...
setwd("C:/Users/Nites/Desktop/Labs/7th Semester/DSR/Lab - 02/csv/") data <- read.csv("indian_food.csv") data summary(data) ncol(data) nrow(data) plot(x=data$prep_time,y=data$cook_time)
/7th Semester/DSR/Lab - 02/execution/1a.R
no_license
niteshsrivats/Labs
R
false
false
185
r
setwd("C:/Users/Nites/Desktop/Labs/7th Semester/DSR/Lab - 02/csv/") data <- read.csv("indian_food.csv") data summary(data) ncol(data) nrow(data) plot(x=data$prep_time,y=data$cook_time)
#' S3 class bake_par # #' @param .x A list to be constructed into **bake_par**. #' #' @returns #' #' Constructor function for bake_par class. This function ensures that leaf #' temperature gets properly "baked" into leaf parameters. #' #' @export bake_par = function(.x) { which = "bake" # Check parameters n...
/R/bake-par.R
permissive
cran/photosynthesis
R
false
false
808
r
#' S3 class bake_par # #' @param .x A list to be constructed into **bake_par**. #' #' @returns #' #' Constructor function for bake_par class. This function ensures that leaf #' temperature gets properly "baked" into leaf parameters. #' #' @export bake_par = function(.x) { which = "bake" # Check parameters n...
library(readstata13) #for reading the stata files library(dplyr) #data manipulation library(haven)##foreign library(htmlTable)##html tables library(magrittr) #manipulate library(loose.rock) #for proper changing of the string cases #####from yvone mergeed df1<- read.dta13("C:/Users/user/Desktop/timeuse/dat...
/TimeUseSurvey.R
no_license
samwenda/Time-use-survey-analysis
R
false
false
29,975
r
library(readstata13) #for reading the stata files library(dplyr) #data manipulation library(haven)##foreign library(htmlTable)##html tables library(magrittr) #manipulate library(loose.rock) #for proper changing of the string cases #####from yvone mergeed df1<- read.dta13("C:/Users/user/Desktop/timeuse/dat...
Outp3state <- function(data, v, ...) { return( data.frame("times1"=data[,v[1]], "delta"=as.integer(data[,v[3]] > data[,v[1]]), "times2"=data[,v[3]]-data[,v[1]], "time"=data[,v[3]], "status"=data[,v[4]], data[,-v]) ) }
/TPmsm/R/Outp3state.R
no_license
ingted/R-Examples
R
false
false
219
r
Outp3state <- function(data, v, ...) { return( data.frame("times1"=data[,v[1]], "delta"=as.integer(data[,v[3]] > data[,v[1]]), "times2"=data[,v[3]]-data[,v[1]], "time"=data[,v[3]], "status"=data[,v[4]], data[,-v]) ) }
library(ape) testtree <- read.tree("6623_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6623_1_unrooted.txt")
/codeml_files/newick_trees_processed/6623_1/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("6623_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6623_1_unrooted.txt")
# Rclient -> EODC version: 0.4.2 library(openeo) library(tibble) host_url = "https://openeo.eodc.eu" con = connect(host = host_url, version="0.4.0", login_type = "oidc",external="google",exchange_token = "id_token") capabilities() list_file_types() list_collections() d= describe_collection(id="s2a_prd_msil1c") ...
/examples/eodc-uc1-example.R
permissive
jonathom/openeo-r-client
R
false
false
1,412
r
# Rclient -> EODC version: 0.4.2 library(openeo) library(tibble) host_url = "https://openeo.eodc.eu" con = connect(host = host_url, version="0.4.0", login_type = "oidc",external="google",exchange_token = "id_token") capabilities() list_file_types() list_collections() d= describe_collection(id="s2a_prd_msil1c") ...
### R code from vignette source 'Prinsimp-introduction.Rnw'
/data/genthat_extracted_code/prinsimp/vignettes/Prinsimp-introduction.R
no_license
surayaaramli/typeRrh
R
false
false
61
r
### R code from vignette source 'Prinsimp-introduction.Rnw'
## Alexandra King - V00827380 ## Geog418 Assignment 4 ################################ #### Prepare Pollution Data #### ################################ install.packages("rgdal") install.packages("gstat") install.packages("sp") install.packages("spatstat") install.packages("maptools") install.packages("rast...
/Lab4_RCode_AKing.R
no_license
alxandraking/geog418
R
false
false
16,495
r
## Alexandra King - V00827380 ## Geog418 Assignment 4 ################################ #### Prepare Pollution Data #### ################################ install.packages("rgdal") install.packages("gstat") install.packages("sp") install.packages("spatstat") install.packages("maptools") install.packages("rast...
#' Get Operator #' #' Gets an operator. #' #' @param token #' Your API token. #' #' @rdname operators #' @export get_operator <- function(token) { path <- sprintf("/operators/%s", get_segment(token)) response <- GET(get_endpoint(path), add_headers(.headers = to_headers(token))) status_code <- status_code(r...
/R/operators.R
no_license
kos59125/soracomr
R
false
false
619
r
#' Get Operator #' #' Gets an operator. #' #' @param token #' Your API token. #' #' @rdname operators #' @export get_operator <- function(token) { path <- sprintf("/operators/%s", get_segment(token)) response <- GET(get_endpoint(path), add_headers(.headers = to_headers(token))) status_code <- status_code(r...
library(minpack.lm) require(graphics) # Data <- read.table(file="../Data/900days.txt", header=TRUE, sep="") Data <- read.csv(file="../Data/ClimateData.csv", header=TRUE) Data <- Data[!is.na(Data$NZS),] x_0_strt <- mean(Data$NZS) # Vertical shift A_strt <- (max(Data$NZS) - min(Data$NZS)) / 2 # Amplitude L_strt <- 12 #...
/content/code/TimeSer.R
permissive
joseph-palmer/TheMulQuaBio
R
false
false
811
r
library(minpack.lm) require(graphics) # Data <- read.table(file="../Data/900days.txt", header=TRUE, sep="") Data <- read.csv(file="../Data/ClimateData.csv", header=TRUE) Data <- Data[!is.na(Data$NZS),] x_0_strt <- mean(Data$NZS) # Vertical shift A_strt <- (max(Data$NZS) - min(Data$NZS)) / 2 # Amplitude L_strt <- 12 #...
# testing generate_figures # R studio top right window # Go to more>document # Install and Restart library(magrittr) library(jgcricolors) library(dplyr) library(rmap) images = r"{C:\Users\thom927\Documents\metarepos\khan-etal_2022_tethysSSPRCP\webpage\images\}" folder = "C:/Users/thom927/Documents/Data/tethysDemeter...
/scripts/devTests.R
no_license
JGCRI/khan-etal_2022_tethysSSPRCP
R
false
false
801
r
# testing generate_figures # R studio top right window # Go to more>document # Install and Restart library(magrittr) library(jgcricolors) library(dplyr) library(rmap) images = r"{C:\Users\thom927\Documents\metarepos\khan-etal_2022_tethysSSPRCP\webpage\images\}" folder = "C:/Users/thom927/Documents/Data/tethysDemeter...
## Copyright 2012 Sebastian Gibb ## <mail@sebastiangibb.de> ## ## This is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## It is d...
/printPercentage-functions.R
no_license
sgibb/analyzezamsdatabases
R
false
false
755
r
## Copyright 2012 Sebastian Gibb ## <mail@sebastiangibb.de> ## ## This is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## It is d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alignment-utils.R \name{aberrantSep} \alias{aberrantSep} \title{Assesses whether two reads in a pair are aberrantly separated with respect to the reference genome} \usage{ aberrantSep(gpairs, distance = 10000) } \arguments{ \item{gpairs}{a \c...
/man/aberrantSep.Rd
no_license
cancer-genomics/trellis
R
false
true
686
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alignment-utils.R \name{aberrantSep} \alias{aberrantSep} \title{Assesses whether two reads in a pair are aberrantly separated with respect to the reference genome} \usage{ aberrantSep(gpairs, distance = 10000) } \arguments{ \item{gpairs}{a \c...
## 5. Užduotis set.seed(314) library(MASS) ## Duomenys iš 1) ir 2). Įvertinkite parametrus naudodami `R` funkciją ## `fitdistr(duomenys, "skirstinys")` n <- 100L lambda <- 7 ## laisvai pasirinkta reikšmė exp_inverse_cdf <- function(theta) { ## Eksponentinis function(probs) { -1 / theta[1] * log(1 - pro...
/part-1/task-5.R
no_license
vabalas/pns-tasks
R
false
false
821
r
## 5. Užduotis set.seed(314) library(MASS) ## Duomenys iš 1) ir 2). Įvertinkite parametrus naudodami `R` funkciją ## `fitdistr(duomenys, "skirstinys")` n <- 100L lambda <- 7 ## laisvai pasirinkta reikšmė exp_inverse_cdf <- function(theta) { ## Eksponentinis function(probs) { -1 / theta[1] * log(1 - pro...
# Sample Abe-Ley # # This script contains helper functions for sampling from the Abe-Ley model for cylindrical data # ## simulate from wrapped cauchy distribution ## # input # n = sample size # mu = circular mean # rho = circular concentration rwcauchy <- function(n, mu, rho){ if (rho == 0) result <- ru...
/Manuscript/R-code/Sample Abe-Ley.R
no_license
joliencremers/CylindricalComparisonCircumplex
R
false
false
1,499
r
# Sample Abe-Ley # # This script contains helper functions for sampling from the Abe-Ley model for cylindrical data # ## simulate from wrapped cauchy distribution ## # input # n = sample size # mu = circular mean # rho = circular concentration rwcauchy <- function(n, mu, rho){ if (rho == 0) result <- ru...
library(PLMIX) ### Name: label_switchPLMIX ### Title: Label switching adjustment for Bayesian mixtures of ### Plackett-Luce models ### Aliases: label_switchPLMIX ### ** Examples data(d_carconf) K <- ncol(d_carconf) n.start <- 2 MAP_1 <- mapPLMIX_multistart(pi_inv=d_carconf, K=K, G=1, ...
/data/genthat_extracted_code/PLMIX/examples/label_switchPLMIX.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,948
r
library(PLMIX) ### Name: label_switchPLMIX ### Title: Label switching adjustment for Bayesian mixtures of ### Plackett-Luce models ### Aliases: label_switchPLMIX ### ** Examples data(d_carconf) K <- ncol(d_carconf) n.start <- 2 MAP_1 <- mapPLMIX_multistart(pi_inv=d_carconf, K=K, G=1, ...
/Practica_applys.R
no_license
YarlyMadrid/Codigo_Rproject
R
false
false
1,126
r
# Reading data power <- read.table("household_power_consumption.txt",skip=1,sep=";") # Naming power names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") # Selecting from power subpower <- subset(power,power$...
/plot3.R
no_license
JLandion/ExData_Plotting1
R
false
false
1,293
r
# Reading data power <- read.table("household_power_consumption.txt",skip=1,sep=";") # Naming power names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") # Selecting from power subpower <- subset(power,power$...
library(ggplot2) library(MASS) filelist = list.files(pattern = "*.txt") datalist = lapply(filelist, function(x)read.csv(x,skip = 2, stringsAsFactors = F)) raw = do.call("rbind", datalist) # put all the raw data into a vector matrix.raw <- as.matrix(raw)[,-1] vector.raw <- as.vector(t(matrix.raw)) length(vector.raw) ...
/rain gauge.R
no_license
YitongZhou/881
R
false
false
2,243
r
library(ggplot2) library(MASS) filelist = list.files(pattern = "*.txt") datalist = lapply(filelist, function(x)read.csv(x,skip = 2, stringsAsFactors = F)) raw = do.call("rbind", datalist) # put all the raw data into a vector matrix.raw <- as.matrix(raw)[,-1] vector.raw <- as.vector(t(matrix.raw)) length(vector.raw) ...
# If the file is not there, we will download and extract from the zip file. the File it's huge so just download it if we need it if (!file.exists('household_power_consumption.zip')) { # Download file download.file(url='https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip', destfile...
/plot4.R
no_license
jgarcia241/ExData_Plotting1
R
false
false
1,641
r
# If the file is not there, we will download and extract from the zip file. the File it's huge so just download it if we need it if (!file.exists('household_power_consumption.zip')) { # Download file download.file(url='https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip', destfile...
#setwd("spongeEMPchemistry-master") ##paths dir <- "3.results/otu.create.data.output/" #after running 1.filter.awk.sh read.table(file="2.scripts/4.otu.create.offset/final.otu.txt", sep="\t", header=TRUE, check.names = FALSE) -> emp.orig_all # this is the data for the offset-calculation-file-table load(file="3.resul...
/2.scripts/4.otu.create.offset/4.2.otu.create.offset.R
no_license
marinemoleco/spongeEMPchemistry
R
false
false
889
r
#setwd("spongeEMPchemistry-master") ##paths dir <- "3.results/otu.create.data.output/" #after running 1.filter.awk.sh read.table(file="2.scripts/4.otu.create.offset/final.otu.txt", sep="\t", header=TRUE, check.names = FALSE) -> emp.orig_all # this is the data for the offset-calculation-file-table load(file="3.resul...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{last_assess_yr} \alias{last_assess_yr} \title{The last year the stock was assessed} \format{ A character string } \usage{ last_assess_yr } \description{ The last year the stock was assessed } \keyword{datasets}
/man/last_assess_yr.Rd
no_license
pbs-assess/arrowtooth
R
false
true
317
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{last_assess_yr} \alias{last_assess_yr} \title{The last year the stock was assessed} \format{ A character string } \usage{ last_assess_yr } \description{ The last year the stock was assessed } \keyword{datasets}
#'//////////////////////////////////////////////////////////////////////////// #' FILE: app.R #' AUTHOR: David Ruvolo #' CREATED: 2020-03-15 #' MODIFIED: 2020-12-01 #' PURPOSE: a simple responsive datatable with images #' STATUS: in.progress #' PACKAGES: shiny; accessibleshiny #' COMMENTS: NA #'////////////////////////...
/bird-counts-example/app.R
no_license
davidruvolo51/shinyAppGallery
R
false
false
815
r
#'//////////////////////////////////////////////////////////////////////////// #' FILE: app.R #' AUTHOR: David Ruvolo #' CREATED: 2020-03-15 #' MODIFIED: 2020-12-01 #' PURPOSE: a simple responsive datatable with images #' STATUS: in.progress #' PACKAGES: shiny; accessibleshiny #' COMMENTS: NA #'////////////////////////...
/libc/stdio/fopen/man.r
no_license
paulohrpinheiro/tropix-libs
R
false
false
3,921
r
\name{deleteSelectedEdges} \alias{deleteSelectedEdges} \alias{deleteSelectedEdges,CytoscapeWindowClass-method} \title{deleteSelectedEdges} \description{In Cytoscape, remove all selected edges. These edges will still exist in the corresponding R graph until you delete them there as well. } \usage{ deleteSelectedEdg...
/man/deleteSelectedEdges.Rd
no_license
pshannon-bioc/RCy3
R
false
false
859
rd
\name{deleteSelectedEdges} \alias{deleteSelectedEdges} \alias{deleteSelectedEdges,CytoscapeWindowClass-method} \title{deleteSelectedEdges} \description{In Cytoscape, remove all selected edges. These edges will still exist in the corresponding R graph until you delete them there as well. } \usage{ deleteSelectedEdg...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docx_replace.R \name{body_replace_all_text} \alias{body_replace_all_text} \alias{headers_replace_all_text} \alias{footers_replace_all_text} \title{Replace text anywhere in the document, or at a cursor} \usage{ body_replace_all_text(x, old_val...
/man/body_replace_all_text.Rd
no_license
kashenfelter/officer
R
false
true
3,410
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docx_replace.R \name{body_replace_all_text} \alias{body_replace_all_text} \alias{headers_replace_all_text} \alias{footers_replace_all_text} \title{Replace text anywhere in the document, or at a cursor} \usage{ body_replace_all_text(x, old_val...
RunStanGit=function(url.loc,dat.loc.in,r.file,flag=T){ # Internal Functions ---- unpack.list <- function(object) { for(.x in names(object)){ assign(value = object[[.x]], x=.x, envir = parent.frame()) } } strip.path=function(y){ str=strsplit(y,'[\\/]')[[1]] str[length(str)] } set...
/inst/examples/remote_git/www/functions/RunStanGit.r
no_license
cran/d3Tree
R
false
false
5,278
r
RunStanGit=function(url.loc,dat.loc.in,r.file,flag=T){ # Internal Functions ---- unpack.list <- function(object) { for(.x in names(object)){ assign(value = object[[.x]], x=.x, envir = parent.frame()) } } strip.path=function(y){ str=strsplit(y,'[\\/]')[[1]] str[length(str)] } set...
# e2 - for etsim iteration 2, and beyond weights[,,4] <- weights[,,4] * weights[,,1] * weights[,,2] * weights[,,3] ind.agg[,,1] <- ind.agg[,,4] # re-weighting for constraint 1 via IPF for (j in 1:nrow(all.msim)){ for(i in 1:ncol(con1)){ weights[which(ind.cat[,i] == 1),j,1] <- con1[j,i] /ind.agg[j,i,1]}} # con...
/models/small-area/e2.R
no_license
Robinlovelace/IPF-performance-testing
R
false
false
1,371
r
# e2 - for etsim iteration 2, and beyond weights[,,4] <- weights[,,4] * weights[,,1] * weights[,,2] * weights[,,3] ind.agg[,,1] <- ind.agg[,,4] # re-weighting for constraint 1 via IPF for (j in 1:nrow(all.msim)){ for(i in 1:ncol(con1)){ weights[which(ind.cat[,i] == 1),j,1] <- con1[j,i] /ind.agg[j,i,1]}} # con...
#' Get / Set SPSS missing values #' #' @param x A vector. #' @param value A vector of values that should also be considered as missing #' (for \code{na_values}) or a numeric vector of length two giving the (inclusive) #' extents of the range (for \code{na_values}, use \code{-Inf} and \code{Inf} if you #' want the range...
/R/na_values.R
no_license
gdutz/labelled
R
false
false
4,347
r
#' Get / Set SPSS missing values #' #' @param x A vector. #' @param value A vector of values that should also be considered as missing #' (for \code{na_values}) or a numeric vector of length two giving the (inclusive) #' extents of the range (for \code{na_values}, use \code{-Inf} and \code{Inf} if you #' want the range...
library(tidyverse) library(ggbump) library(ggtext) library(extrafont) loadfonts(device = "win") df_years <- readxl::read_excel(here::here("data", "day_5_ascensores.xlsx"), sheet = "years") %>% mutate(fin = ifelse(is.na(Cese_de_actividad), 2021, Cese_de_actividad)) %>% rowid_to_column...
/R/day_6_wip.R
permissive
stmarcin/30DayChartChallenge
R
false
false
3,418
r
library(tidyverse) library(ggbump) library(ggtext) library(extrafont) loadfonts(device = "win") df_years <- readxl::read_excel(here::here("data", "day_5_ascensores.xlsx"), sheet = "years") %>% mutate(fin = ifelse(is.na(Cese_de_actividad), 2021, Cese_de_actividad)) %>% rowid_to_column...
#' Calculate model performance metrics #' #' Calculates model performace metrics from the netcdf file generated by running `run_ensemble` #' #' @param ncdf Path to the netcdf file generated by running `run_ensemble` #' @param list Alternatively to `ncdf` a list of siimulated variables, as returned by #' `run_ensembl...
/R/calc_fit.R
permissive
addelany/LakeEnsemblR
R
false
false
4,759
r
#' Calculate model performance metrics #' #' Calculates model performace metrics from the netcdf file generated by running `run_ensemble` #' #' @param ncdf Path to the netcdf file generated by running `run_ensemble` #' @param list Alternatively to `ncdf` a list of siimulated variables, as returned by #' `run_ensembl...
#library(hexSticker) #red on white imgurl <- "./inst/safetyGraphicsHex/noun_heart_rate_210541_ec5d57.png" # sticker( # imgurl, # filename="./inst/safetyGraphicsHex/safetyGraphicsHex.png", # package = "safetyGraphics", # p_color = "#666666", # p_size = 5, # p_family = "serif", # p_y = 0.5, # s_x = 1, # ...
/inst/safetyGraphicsHex/safetyHex.R
no_license
cran/safetyGraphics
R
false
false
394
r
#library(hexSticker) #red on white imgurl <- "./inst/safetyGraphicsHex/noun_heart_rate_210541_ec5d57.png" # sticker( # imgurl, # filename="./inst/safetyGraphicsHex/safetyGraphicsHex.png", # package = "safetyGraphics", # p_color = "#666666", # p_size = 5, # p_family = "serif", # p_y = 0.5, # s_x = 1, # ...
rename<-function(data){ saminfo<-read.table("/media/NAS1/shg047/monod/hapinfo/N37Salk.saminfo",sep="\t") head(saminfo) colnames(data)<-gsub(".allchrs.rmdup.bam.mhbs","",colnames(data)) colnames(data)<-gsub(".allchrs.sorted.clipped.bam.mhbs","",colnames(data)) colnames(data)[grep("age|new|centenarian",colname...
/monod/Manuscript/MONOD_analysis_scripts/bak/rename.R
no_license
Shicheng-Guo/methylation2020
R
false
false
3,206
r
rename<-function(data){ saminfo<-read.table("/media/NAS1/shg047/monod/hapinfo/N37Salk.saminfo",sep="\t") head(saminfo) colnames(data)<-gsub(".allchrs.rmdup.bam.mhbs","",colnames(data)) colnames(data)<-gsub(".allchrs.sorted.clipped.bam.mhbs","",colnames(data)) colnames(data)[grep("age|new|centenarian",colname...
####################################################################### # set parameters of XBART get_XBART_params <- function(y) { XBART_params = list(num_trees = 30, # number of trees num_sweeps = 40, # number of sweeps (samples of the forest) n_min = 1, # minimal node s...
/tests/test_BART_init.R
no_license
andrewherren/XBCF
R
false
false
8,386
r
####################################################################### # set parameters of XBART get_XBART_params <- function(y) { XBART_params = list(num_trees = 30, # number of trees num_sweeps = 40, # number of sweeps (samples of the forest) n_min = 1, # minimal node s...
## Read data from file and filter only the rows needed for this exercise rawdata <- read.table("household_power_consumption.txt", header = FALSE, sep = ";", na.strings = "?", skip = 66637, nrow = 2880, stringsAsFactors = FALSE) colnames(rawdata) <- colnames(read.table("household_power_consumption.txt", header = TRUE, s...
/plot4.R
no_license
felixlauyh/ExData_Plotting1
R
false
false
1,358
r
## Read data from file and filter only the rows needed for this exercise rawdata <- read.table("household_power_consumption.txt", header = FALSE, sep = ";", na.strings = "?", skip = 66637, nrow = 2880, stringsAsFactors = FALSE) colnames(rawdata) <- colnames(read.table("household_power_consumption.txt", header = TRUE, s...
# kalman filter using fkf source("FilteringHelper.R") # INPUT # Tt: system model coefficient # HHt: system model noize variance matrix ^2 # Zt: observation model coefficient # GGt: observation model noize variance matrix ^2 # OUTPUT # att: filtered state # at: predicted state # Ptt: variance of att # Pt: variance...
/KalmanFilter.R
no_license
watermouth/FiringRateEstimation
R
false
false
842
r
# kalman filter using fkf source("FilteringHelper.R") # INPUT # Tt: system model coefficient # HHt: system model noize variance matrix ^2 # Zt: observation model coefficient # GGt: observation model noize variance matrix ^2 # OUTPUT # att: filtered state # at: predicted state # Ptt: variance of att # Pt: variance...
glm_model_tx <- linear_reg( mixture = 1, penalty = tune() ) %>% set_mode("regression") %>% set_engine("glmnet") glm_model_grid_tx <- glm_model_tx %>% parameters() %>% update(penalty = penalty(range = c(0, 2), trans = NULL)) %>% grid_regular(levels = 50) glm_rcp_tx <- . %>% select(-any_of(c("consid",...
/scripts/scripts/model_development/model_config_tx.R
no_license
paritosh-aigora/gsk-centrum-classic
R
false
false
804
r
glm_model_tx <- linear_reg( mixture = 1, penalty = tune() ) %>% set_mode("regression") %>% set_engine("glmnet") glm_model_grid_tx <- glm_model_tx %>% parameters() %>% update(penalty = penalty(range = c(0, 2), trans = NULL)) %>% grid_regular(levels = 50) glm_rcp_tx <- . %>% select(-any_of(c("consid",...
# ====================== Generate species viral discovery rate curves for mammals at the Order level ===================== # proof of concept/general trends # fit curves across time epochs to examine changes in trends # how robust are these to adjusting for annual publication effort? # root dir and dependencies #...
/scripts_archive/curves_mammalorders_virfam.R
no_license
rorygibb/pathogen_discovery
R
false
false
18,057
r
# ====================== Generate species viral discovery rate curves for mammals at the Order level ===================== # proof of concept/general trends # fit curves across time epochs to examine changes in trends # how robust are these to adjusting for annual publication effort? # root dir and dependencies #...