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
# IV regression function # The code below uses the AER library's regresison function # All results are stored in a single row as data_frame # The idea is to combine results from various IVs together row by row or col by col. # This functoin could work with dplyr do # var.y is single outcome, vars.x, vars.c and vars.z ...
/linreg/ivreg/ivregdfrow.R
no_license
eazizaj/R4Econ
R
false
false
2,032
r
# IV regression function # The code below uses the AER library's regresison function # All results are stored in a single row as data_frame # The idea is to combine results from various IVs together row by row or col by col. # This functoin could work with dplyr do # var.y is single outcome, vars.x, vars.c and vars.z ...
#' This function takes the input time series, S(t), and the parameter vector and cumulative cases from siumation #' as inputs and calculates the corresponding Re and doubling time #' #' Calculate Re and td from exponential curve #' @export calc_Re_td_from_exp <- function(params, time_series=NULL, S=0.9) { if (is.nul...
/1 - R Package/R/calc_Re_td_from_exp.R
permissive
abilinski/COVID19
R
false
false
832
r
#' This function takes the input time series, S(t), and the parameter vector and cumulative cases from siumation #' as inputs and calculates the corresponding Re and doubling time #' #' Calculate Re and td from exponential curve #' @export calc_Re_td_from_exp <- function(params, time_series=NULL, S=0.9) { if (is.nul...
# Author: Glen Friedman (glen.friedman@gmail.com) # Creates a plot of Energy "sub metering" values. # and saves in png file. source("loader.R") # Get data from loader library. dt <- get_data() # Set png output. png(file = "plot3.png", width = 480, height = 480, units = "px") # Write out plot. plot(dt$Datetime, ...
/plot3.R
no_license
friedman4536/ExData_Plotting1
R
false
false
696
r
# Author: Glen Friedman (glen.friedman@gmail.com) # Creates a plot of Energy "sub metering" values. # and saves in png file. source("loader.R") # Get data from loader library. dt <- get_data() # Set png output. png(file = "plot3.png", width = 480, height = 480, units = "px") # Write out plot. plot(dt$Datetime, ...
train <-read.csv("V:/DataScience_2019501043/Data_Mining/DM_Assignment4/sonar_train.csv",header=F) test <-read.csv("V:/DataScience_2019501043/Data_Mining/DM_Assignment4/sonar_test.csv",header=F) k <- test[,1:2] plot(k,pch=19,xlab=expression(k[1]), ylab=expression(k[2])) kmeanfit<-kmeans(k,2) points(kmeanfit$centers,pc...
/Data_Mining-115/Assignments_DM/DM_Assignment4/prob8.r
no_license
kseshasrisandhya/DataScience_2019501115
R
false
false
817
r
train <-read.csv("V:/DataScience_2019501043/Data_Mining/DM_Assignment4/sonar_train.csv",header=F) test <-read.csv("V:/DataScience_2019501043/Data_Mining/DM_Assignment4/sonar_test.csv",header=F) k <- test[,1:2] plot(k,pch=19,xlab=expression(k[1]), ylab=expression(k[2])) kmeanfit<-kmeans(k,2) points(kmeanfit$centers,pc...
/_scripts/GraphsAtPixelLevel.R
no_license
CIAT-DAPA/gfsf_project
R
false
false
4,953
r
# ---------------------------------------------------------------------------- # # “Generalized Pareto Curves: Theory and Applications”, 2017 # Thomas Blanchet, Juliette Fournier, Thomas Piketty # ---------------------------------------------------------------------------- # # Plot the misspecification error bounds for...
/R/plot-error-bound.R
permissive
thomasblanchet/gpinter-replication
R
false
false
3,576
r
# ---------------------------------------------------------------------------- # # “Generalized Pareto Curves: Theory and Applications”, 2017 # Thomas Blanchet, Juliette Fournier, Thomas Piketty # ---------------------------------------------------------------------------- # # Plot the misspecification error bounds for...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(6.1363702476086e-92, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-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))) result <- do.call(CNull:::communities_individual_b...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615769521-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
361
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(6.1363702476086e-92, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-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))) result <- do.call(CNull:::communities_individual_b...
setwd("/data/gaos2/tmp/mousehuman/analysis") rm(list=ls()) library(Seurat) load("humanmouse.aligned.2.RData") png("tSNE_feature_plot.png", width=2000, height=2000, res=100) FeaturePlot(object = speices.combined, features.plot = c("GATA1", "GATA2", "CREM", "CD8A", "DPH7", "CD79A", "MLLT3", "CD37", "IL2RB"), min.cutoff ...
/jeerthiliza/mousehuman/analysis/analysis_step2.R
no_license
shouguog/hematopoiesis
R
false
false
1,047
r
setwd("/data/gaos2/tmp/mousehuman/analysis") rm(list=ls()) library(Seurat) load("humanmouse.aligned.2.RData") png("tSNE_feature_plot.png", width=2000, height=2000, res=100) FeaturePlot(object = speices.combined, features.plot = c("GATA1", "GATA2", "CREM", "CD8A", "DPH7", "CD79A", "MLLT3", "CD37", "IL2RB"), min.cutoff ...
# So swirl does not repeat execution of plot commands AUTO_DETECT_NEWVAR <- FALSE # Returns TRUE if e$expr matches any of the expressions given # (as characters) in the argument. ANY_of_exprs <- function(...){ e <- get("e", parent.frame()) any(sapply(c(...), function(expr)omnitest(expr))) } equiv_val <- function(...
/Unit 3 - Structure Discovery/K_Means_Clustering/customTests.R
no_license
Alys-217/swirl
R
false
false
3,450
r
# So swirl does not repeat execution of plot commands AUTO_DETECT_NEWVAR <- FALSE # Returns TRUE if e$expr matches any of the expressions given # (as characters) in the argument. ANY_of_exprs <- function(...){ e <- get("e", parent.frame()) any(sapply(c(...), function(expr)omnitest(expr))) } equiv_val <- function(...
## -------------------------------------------------------------- ## Name: eco_species.R ## Description: Code to combine species composition data for each ecoregion, ## which is listed in separate .csv files (produced from Python ## code: ) ## Author: R.S.C. Cooke, R.S.Cooke@soton.ac.uk ## Da...
/eco_species.R
no_license
03rcooke/Functional_integrity
R
false
false
1,840
r
## -------------------------------------------------------------- ## Name: eco_species.R ## Description: Code to combine species composition data for each ecoregion, ## which is listed in separate .csv files (produced from Python ## code: ) ## Author: R.S.C. Cooke, R.S.Cooke@soton.ac.uk ## Da...
library(PPQplan) ### Name: PPQ.occurve ### Title: Operating Characteristic (OC) Curves for the CQA PPQ Plan Using ### General Multiplier. ### Aliases: PPQ.occurve ### ** Examples PPQ.occurve(attr.name = "Sterile Concentration Assay", attr.unit="%", Llim=95, Ulim=105, mu=97, sigma=seq(0.1, 10, 0.1), n=10, k=2.373,...
/data/genthat_extracted_code/PPQplan/examples/PPQ.occurve.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
914
r
library(PPQplan) ### Name: PPQ.occurve ### Title: Operating Characteristic (OC) Curves for the CQA PPQ Plan Using ### General Multiplier. ### Aliases: PPQ.occurve ### ** Examples PPQ.occurve(attr.name = "Sterile Concentration Assay", attr.unit="%", Llim=95, Ulim=105, mu=97, sigma=seq(0.1, 10, 0.1), n=10, k=2.373,...
#mi <- lmer(Rating ~ Chord * Register + (1|participant),data=m2) #summary(mi) #RC <- emmeans(mi, specs = pairwise ~ Chord | Register,adjust='Tukey') #RC m3 <- m2 m3$Chord <- factor(m3$Chord,levels = c("3-11B","3-7A","4-20","4-19A")) m3$Chord #m3$Chord <- as.numeric(m3$Chord) # This is coded as a linear factor with dec...
/figure3.R
permissive
tuomaseerola/consonance-register
R
false
false
6,732
r
#mi <- lmer(Rating ~ Chord * Register + (1|participant),data=m2) #summary(mi) #RC <- emmeans(mi, specs = pairwise ~ Chord | Register,adjust='Tukey') #RC m3 <- m2 m3$Chord <- factor(m3$Chord,levels = c("3-11B","3-7A","4-20","4-19A")) m3$Chord #m3$Chord <- as.numeric(m3$Chord) # This is coded as a linear factor with dec...
df_cust <- data.frame(eval(parse(text=substring(getURL(URLencode('http://129.152.144.84:5001/rest/native/?query="select * from customers"'), httpheader=c(DB='jdbc:oracle:thin:@129.152.144.84:1521/PDB1.usuniversi01134.oraclecloud.internal', USER='DV_ORDERS', PASS='orcl', MODE='native_mode', MODEL='model', returnFor = 'R...
/Data/df_cust.R
no_license
JiannanZhang/DV_RProject1
R
false
false
382
r
df_cust <- data.frame(eval(parse(text=substring(getURL(URLencode('http://129.152.144.84:5001/rest/native/?query="select * from customers"'), httpheader=c(DB='jdbc:oracle:thin:@129.152.144.84:1521/PDB1.usuniversi01134.oraclecloud.internal', USER='DV_ORDERS', PASS='orcl', MODE='native_mode', MODEL='model', returnFor = 'R...
library(phyclust) ### Name: getcut.fun ### Title: Tzeng's Method: Finding the Best Number of Clusters ### Aliases: getcut.fun ### Keywords: Haploclust ### ** Examples ## Not run: ##D library(phyclust, quiet = TRUE) ##D ##D data.path <- paste(.libPaths()[1], "/phyclust/data/crohn.phy", sep = "") ##D my.snp <- read...
/data/genthat_extracted_code/phyclust/examples/getcut.fun.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
531
r
library(phyclust) ### Name: getcut.fun ### Title: Tzeng's Method: Finding the Best Number of Clusters ### Aliases: getcut.fun ### Keywords: Haploclust ### ** Examples ## Not run: ##D library(phyclust, quiet = TRUE) ##D ##D data.path <- paste(.libPaths()[1], "/phyclust/data/crohn.phy", sep = "") ##D my.snp <- read...
88f497a6110499df8fbdcaf9ee0d19c5 add2y.unsat.qdimacs 58 139
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Tentrup/toy/add2y.unsat/add2y.unsat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
59
r
88f497a6110499df8fbdcaf9ee0d19c5 add2y.unsat.qdimacs 58 139
# a list of all the known attribute types. Used here and in JSONGenerator ejAttributeTypes <- c("string", "number", "integer", "boolean", "date", "location", "base64") #' Create an attribute #' This package outlines the aspects of the data for EpiJSON #' #' This function defines attributes #' output \code{ejAttribute}...
/R/constructors.R
no_license
Hackout2/repijson
R
false
false
6,664
r
# a list of all the known attribute types. Used here and in JSONGenerator ejAttributeTypes <- c("string", "number", "integer", "boolean", "date", "location", "base64") #' Create an attribute #' This package outlines the aspects of the data for EpiJSON #' #' This function defines attributes #' output \code{ejAttribute}...
# # (c) 2012 -- 2014 Georgios Gousios <gousiosg@gmail.com> # # BSD licensed, see LICENSE in top level dir # if (! "devtools" %in% installed.packages()) install.packages("devtools") library(devtools) if (!"randomForest" %in% installed.packages()) install.packages("randomForest") if (!"ggplot2" %in% installed.packages(...
/R/packages.R
permissive
igorsteinmacher/pullreqs
R
false
false
1,174
r
# # (c) 2012 -- 2014 Georgios Gousios <gousiosg@gmail.com> # # BSD licensed, see LICENSE in top level dir # if (! "devtools" %in% installed.packages()) install.packages("devtools") library(devtools) if (!"randomForest" %in% installed.packages()) install.packages("randomForest") if (!"ggplot2" %in% installed.packages(...
##' @rdname prepare_results ##' @aliases prepare_results.speMCA ##' @seealso \code{\link[GDAtools]{speMCA}} ##' @import dplyr ##' @importFrom tidyr gather ##' @importFrom utils head ##' @importFrom stats pnorm ##' @export prepare_results.speMCA <- function(obj) { if (!inherits(obj, "speMCA")) stop("obj must be of...
/R/prepare_results_speMCA.R
no_license
scipionesarlo/explor
R
false
false
4,338
r
##' @rdname prepare_results ##' @aliases prepare_results.speMCA ##' @seealso \code{\link[GDAtools]{speMCA}} ##' @import dplyr ##' @importFrom tidyr gather ##' @importFrom utils head ##' @importFrom stats pnorm ##' @export prepare_results.speMCA <- function(obj) { if (!inherits(obj, "speMCA")) stop("obj must be of...
ui <- fluidPage( titlePanel(h1("The effect of shielding patterns on carriage capacity",align="centre")), tags$head(tags$style("#emissionstext{color: red; font-size: 25px; }")), headerPanel(uiOutput("tab",style = "font-size:15px;")), ...
/app/ui.R
no_license
Lucyhenley/CardiffMATHBIO_NERCHackathonTwo_PublicTransport
R
false
false
4,668
r
ui <- fluidPage( titlePanel(h1("The effect of shielding patterns on carriage capacity",align="centre")), tags$head(tags$style("#emissionstext{color: red; font-size: 25px; }")), headerPanel(uiOutput("tab",style = "font-size:15px;")), ...
library(tidyverse) Episodes <- read_csv("https://raw.githubusercontent.com/derek-corcoran-barrios/The_office/master/The_Office_Episodes_per_Character.csv") words <- read_csv("https://raw.githubusercontent.com/derek-corcoran-barrios/The_office/master/The_office_Words.csv") stop_words <- read_csv("https://raw.githubus...
/Scripts_Curso_R/Tarea_3_The_Office.R
no_license
derek-corcoran-barrios/derek-corcoran-barrios.github.io
R
false
false
1,477
r
library(tidyverse) Episodes <- read_csv("https://raw.githubusercontent.com/derek-corcoran-barrios/The_office/master/The_Office_Episodes_per_Character.csv") words <- read_csv("https://raw.githubusercontent.com/derek-corcoran-barrios/The_office/master/The_office_Words.csv") stop_words <- read_csv("https://raw.githubus...
rm(list = ls(all = T)) train = read.csv("data/after_humanfeaturegen/train.csv")[,-c(18,19)] test = read.csv("data/after_humanfeaturegen/test.csv")[,-c(18,19)] train_model = subset(train, select = -c(Name, Publisher)) test_model = subset(test, select = -c(Name, Publisher)) rm(train, test) str(train_model) ...
/Model_buildingII.R
no_license
harikrishnarangineeni/Project-DataMining
R
false
false
6,517
r
rm(list = ls(all = T)) train = read.csv("data/after_humanfeaturegen/train.csv")[,-c(18,19)] test = read.csv("data/after_humanfeaturegen/test.csv")[,-c(18,19)] train_model = subset(train, select = -c(Name, Publisher)) test_model = subset(test, select = -c(Name, Publisher)) rm(train, test) str(train_model) ...
############## # 10 월 18일 ############## # 물어볼거 : gain 의미 # 라이브러리 library(tidyverse) library(nycflights13) # 데이터 # rm(list=ls()) ls(pos = 2) flights #?flights # filter() : 조건에 맞는 행을 뽑음 # 1월 1일, 1월 2일만 뽑음 filter(flights, month == 1, day <= 2) filter(flights, month == 1, day == 1, dep_time < 600) # 6시 이전에 출발 A <- f...
/Study for tidy/lec 1018.R
no_license
sunnyhyo/Statistical-Graphics-with-Big-Data
R
false
false
3,608
r
############## # 10 월 18일 ############## # 물어볼거 : gain 의미 # 라이브러리 library(tidyverse) library(nycflights13) # 데이터 # rm(list=ls()) ls(pos = 2) flights #?flights # filter() : 조건에 맞는 행을 뽑음 # 1월 1일, 1월 2일만 뽑음 filter(flights, month == 1, day <= 2) filter(flights, month == 1, day == 1, dep_time < 600) # 6시 이전에 출발 A <- f...
### function # FUNCTION - normalization f.normalization <- function (insig){ outsig <- transform (insig, newtime=insig[,1] / insig[nrow(insig),1], newsig= insig[,2] / (max(insig[,2]))) outsig[1,4]=0 outsig[1,5]=0 return (outsig) } # FUNCTION - round f.round <- function (insig, no_rou...
/functionbookWimtoWim.R
no_license
katehyun/TruckReid2
R
false
false
21,943
r
### function # FUNCTION - normalization f.normalization <- function (insig){ outsig <- transform (insig, newtime=insig[,1] / insig[nrow(insig),1], newsig= insig[,2] / (max(insig[,2]))) outsig[1,4]=0 outsig[1,5]=0 return (outsig) } # FUNCTION - round f.round <- function (insig, no_rou...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regions.R \name{obtain_genomic_feature} \alias{obtain_genomic_feature} \title{Obtain genomic regions from gene lists} \usage{ obtain_genomic_feature( feat, annotation_pkg, transcript_db, identifiers, indentifier_type, transcript_d...
/man/obtain_genomic_feature.Rd
permissive
davidmasp/helperMut
R
false
true
2,173
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regions.R \name{obtain_genomic_feature} \alias{obtain_genomic_feature} \title{Obtain genomic regions from gene lists} \usage{ obtain_genomic_feature( feat, annotation_pkg, transcript_db, identifiers, indentifier_type, transcript_d...
# Based on script written by Rick Reneau. #setwd("your directory here") decimal <- 4 file_list <- list.files(getwd(),"^1") date_list <- substr(file_list,10,19) subj_list <- substr(file_list,1,8) subj_list <- subj_list[!duplicated(subj_list)] start_date <- date_list[1] end_date <- date_list[length(date_list)] DaysVec ...
/filter_entropy_calculator.R
no_license
manateelab/GPS_Study
R
false
false
5,745
r
# Based on script written by Rick Reneau. #setwd("your directory here") decimal <- 4 file_list <- list.files(getwd(),"^1") date_list <- substr(file_list,10,19) subj_list <- substr(file_list,1,8) subj_list <- subj_list[!duplicated(subj_list)] start_date <- date_list[1] end_date <- date_list[length(date_list)] DaysVec ...
testlist <- list(b = numeric(0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -2.616...
/metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615770025-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
783
r
testlist <- list(b = numeric(0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -2.616...
tabPanel('Filter', value = 'tab_filter', fluidPage( fluidRow( column(6, align = 'left', h4('Filter Data'), p('Click on Yes to filter data.') ), column(6, align = 'right', actionButton(inputId='fildatalink', label="Demo", icon = icon("video-camera"), on...
/inst/app-visualize/ui/ui_filter.R
no_license
cran/xplorerr
R
false
false
950
r
tabPanel('Filter', value = 'tab_filter', fluidPage( fluidRow( column(6, align = 'left', h4('Filter Data'), p('Click on Yes to filter data.') ), column(6, align = 'right', actionButton(inputId='fildatalink', label="Demo", icon = icon("video-camera"), on...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_2heading_xtable.R \name{print_2heading_xtable} \alias{print_2heading_xtable} \title{Print LaTeX tables with headings over two lines} \usage{ print_2heading_xtable(.data, separator = "__", xtable.align = NULL, booktabs = TRUE, heading_...
/man/print_2heading_xtable.Rd
no_license
DianaHourani/grattanCharts
R
false
true
2,235
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_2heading_xtable.R \name{print_2heading_xtable} \alias{print_2heading_xtable} \title{Print LaTeX tables with headings over two lines} \usage{ print_2heading_xtable(.data, separator = "__", xtable.align = NULL, booktabs = TRUE, heading_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ComplianceDocumentation.R \name{DownloadComplianceDocumentation} \alias{DownloadComplianceDocumentation} \title{Download compliance documentation (in DOCX format).} \usage{ DownloadComplianceDocumentation(model, filename, templateId = NULL, ...
/man/DownloadComplianceDocumentation.Rd
no_license
malakz/datarobot
R
false
true
1,361
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ComplianceDocumentation.R \name{DownloadComplianceDocumentation} \alias{DownloadComplianceDocumentation} \title{Download compliance documentation (in DOCX format).} \usage{ DownloadComplianceDocumentation(model, filename, templateId = NULL, ...
rm(list = ls()) set.seed(17) # install.packages("quadprog") # install.packages("ipw") # install.packages("sandwich") library(gurobi) #library(ipw) library(sandwich) library(sbw) library(quadprog) library(CBPS) ####################################################### # DATA GENERATION ########################...
/Simulations/Correct/Linear/simu_sate_linear_correct_2X_c_OLS.R
no_license
CausalML/KOM-SATE
R
false
false
5,488
r
rm(list = ls()) set.seed(17) # install.packages("quadprog") # install.packages("ipw") # install.packages("sandwich") library(gurobi) #library(ipw) library(sandwich) library(sbw) library(quadprog) library(CBPS) ####################################################### # DATA GENERATION ########################...
#----------Stima dei parametri del modello----------# library(glmnet) library(caret) rm(list=ls()) # import data data <- read.csv("wine.csv", header=F) colnames(data) <- c("fixed_acidity", "volatile_acidity", "citric_acid", "residual_sugar", "chlorides", "free_sulfur_dioxide", "total_sulfur_dioxid...
/6 - Using libraries/linear-regression/07_12_part2.R
no_license
SynStratos/Pizza_ML
R
false
false
2,153
r
#----------Stima dei parametri del modello----------# library(glmnet) library(caret) rm(list=ls()) # import data data <- read.csv("wine.csv", header=F) colnames(data) <- c("fixed_acidity", "volatile_acidity", "citric_acid", "residual_sugar", "chlorides", "free_sulfur_dioxide", "total_sulfur_dioxid...
# Project 1 for Reproducible Research course. # Load libraries library(ggplot2) library(dplyr) library(knitr) library(lubridate) # Change to my local working directory. setwd("D:\\data\\Rprojects\\RResearch_Project1") # Read data set first and tidy up the date data data <- read.csv("activity.csv", header=TRUE, sep=...
/project1.R
no_license
RHuebner1972/RResearch_Project1
R
false
false
4,316
r
# Project 1 for Reproducible Research course. # Load libraries library(ggplot2) library(dplyr) library(knitr) library(lubridate) # Change to my local working directory. setwd("D:\\data\\Rprojects\\RResearch_Project1") # Read data set first and tidy up the date data data <- read.csv("activity.csv", header=TRUE, sep=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/peakyblinders.R \name{peakyblinders} \alias{peakyblinders} \title{peakyblinders} \usage{ peakyblinders(x) } \arguments{ \item{x}{A number} } \value{ The sum of \code{x} and \code{y} } \examples{ add(1, 1) add(10, 1) }
/man/peakyblinders.Rd
no_license
gjm112/anRpackage
R
false
true
297
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/peakyblinders.R \name{peakyblinders} \alias{peakyblinders} \title{peakyblinders} \usage{ peakyblinders(x) } \arguments{ \item{x}{A number} } \value{ The sum of \code{x} and \code{y} } \examples{ add(1, 1) add(10, 1) }
\name{removepoints} \alias{removepoints} \title{ Remove a given number of patches from the landscape } \description{ Randomly removes a given number of patches from the landscape. } \usage{ removepoints(rl, nr) } \arguments{ \item{rl}{ Object of class 'landscape'. } \item{nr}{ Number of patches to r...
/man/removepoints.Rd
no_license
cran/MetaLandSim
R
false
false
802
rd
\name{removepoints} \alias{removepoints} \title{ Remove a given number of patches from the landscape } \description{ Randomly removes a given number of patches from the landscape. } \usage{ removepoints(rl, nr) } \arguments{ \item{rl}{ Object of class 'landscape'. } \item{nr}{ Number of patches to r...
# get value to use get_value <- function(init_value) { if(is.na(as.numeric(init_value))) { # not numeric val <- paste0("\"",init_value,"\"") } else { # numeric val <- init_value } return(val) } # get operator to use get_operator <- function(operator) { print(operator) op = "" if...
/9_pmml_functions.R
no_license
robne1982/R_gbm_pmml_to_dotnet
R
false
false
3,032
r
# get value to use get_value <- function(init_value) { if(is.na(as.numeric(init_value))) { # not numeric val <- paste0("\"",init_value,"\"") } else { # numeric val <- init_value } return(val) } # get operator to use get_operator <- function(operator) { print(operator) op = "" if...
#returns all EEG features getFeatures_EEG <-function(baseline_values, interval_values ){ EEG_normalized <- normalizeDataByBaseline(baseline_values, interval_values) interval_preprocessed <- EEG_preprocessing(EEG_normalized) alpha_bin <- getFrequencyBin(interval_preprocessed$alpha) beta_bin <- getFre...
/BiometricAnalysis/FeaturesExtraction/Fe_EEG.R
permissive
collab-uniba/RequirementEngineering20
R
false
false
3,375
r
#returns all EEG features getFeatures_EEG <-function(baseline_values, interval_values ){ EEG_normalized <- normalizeDataByBaseline(baseline_values, interval_values) interval_preprocessed <- EEG_preprocessing(EEG_normalized) alpha_bin <- getFrequencyBin(interval_preprocessed$alpha) beta_bin <- getFre...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Create_ascent_gas_tbl.R \name{Create_ascent_gas_tbl} \alias{Create_ascent_gas_tbl} \title{Create the ascent gas tibble} \usage{ Create_ascent_gas_tbl(Gas_list, Max_depth) } \arguments{ \item{Gas_list}{A 3-colum tibble with proportions of O2, ...
/man/Create_ascent_gas_tbl.Rd
no_license
besibo/DeepDiveR
R
false
true
514
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Create_ascent_gas_tbl.R \name{Create_ascent_gas_tbl} \alias{Create_ascent_gas_tbl} \title{Create the ascent gas tibble} \usage{ Create_ascent_gas_tbl(Gas_list, Max_depth) } \arguments{ \item{Gas_list}{A 3-colum tibble with proportions of O2, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saga_reclassifyvalues.R \name{saga_reclassifyvalues} \alias{saga_reclassifyvalues} \title{QGIS algorithm Reclassify values} \usage{ saga_reclassifyvalues( INPUT = qgisprocess::qgis_default_value(), METHOD = qgisprocess::qgis_default_value...
/man/saga_reclassifyvalues.Rd
permissive
VB6Hobbyst7/r_package_qgis
R
false
true
3,285
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saga_reclassifyvalues.R \name{saga_reclassifyvalues} \alias{saga_reclassifyvalues} \title{QGIS algorithm Reclassify values} \usage{ saga_reclassifyvalues( INPUT = qgisprocess::qgis_default_value(), METHOD = qgisprocess::qgis_default_value...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.R \name{nhd_plus_query} \alias{nhd_plus_query} \title{Select NHDplus features via polygon or circular buffer of coordinate pair} \usage{ nhd_plus_query(lon = NA, lat = NA, poly = NA, dsn, buffer_dist = 0.05, approve_all_dl = FALSE, .....
/man/nhd_plus_query.Rd
no_license
bbreaker/nhdR
R
false
true
1,629
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.R \name{nhd_plus_query} \alias{nhd_plus_query} \title{Select NHDplus features via polygon or circular buffer of coordinate pair} \usage{ nhd_plus_query(lon = NA, lat = NA, poly = NA, dsn, buffer_dist = 0.05, approve_all_dl = FALSE, .....
#' @title Summarize phyloseq object #' @description Prints basic information of data. #' @details The summarize_phyloseq function will give information on weather data is compositional or not, reads (min. max, median, average), sparsity, #' presence of singletons and sample variables. #' @param x Input is a \code...
/R/summarize_phyloseq.R
no_license
pythseq/microbiome
R
false
false
2,170
r
#' @title Summarize phyloseq object #' @description Prints basic information of data. #' @details The summarize_phyloseq function will give information on weather data is compositional or not, reads (min. max, median, average), sparsity, #' presence of singletons and sample variables. #' @param x Input is a \code...
library(blavaan) wisc <- read.table("C:/Users/RJacobucci/Documents/GitHub/EDM_Labs/2015/wisc4vpe.dat") wisc <- read.table("C:/Users/jacobucc/Documents/GitHub/EDM_Labs/2015/wisc4vpe.dat") names(wisc)<- c("V1","V2","V4","V6","P1","P2","P4", "P6", "Moeducat") X <- wisc[,c("V1","V2","V4","V6")] data = list() #data$alp...
/stan_lcs_wisc.R
no_license
Rjacobucci/stan_examples2
R
false
false
1,455
r
library(blavaan) wisc <- read.table("C:/Users/RJacobucci/Documents/GitHub/EDM_Labs/2015/wisc4vpe.dat") wisc <- read.table("C:/Users/jacobucc/Documents/GitHub/EDM_Labs/2015/wisc4vpe.dat") names(wisc)<- c("V1","V2","V4","V6","P1","P2","P4", "P6", "Moeducat") X <- wisc[,c("V1","V2","V4","V6")] data = list() #data$alp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auth.R \name{sq_personal_access_token} \alias{sq_personal_access_token} \title{Return personal_access_token resulting from Basic auth routine} \usage{ sq_personal_access_token(verbose = TRUE) } \arguments{ \item{verbose}{logical; do you want ...
/man/sq_personal_access_token.Rd
no_license
muschellij2/squareupr
R
false
true
633
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auth.R \name{sq_personal_access_token} \alias{sq_personal_access_token} \title{Return personal_access_token resulting from Basic auth routine} \usage{ sq_personal_access_token(verbose = TRUE) } \arguments{ \item{verbose}{logical; do you want ...
############################### Simulation - MCMC kernels (E-step) ############################# estep_incremental<-function(kiter, Uargs, Dargs, opt, structural.model, mean.phi, varList, DYF, phiM,saemixObject,l,ind_rand) { # E-step - simulate unknown parameters # Input: kiter, Uargs, structural.model, mean.phi (un...
/misso/code/IMCEM/R/main_estep_incremental.R
no_license
BelhalK/PapersCode
R
false
false
13,119
r
############################### Simulation - MCMC kernels (E-step) ############################# estep_incremental<-function(kiter, Uargs, Dargs, opt, structural.model, mean.phi, varList, DYF, phiM,saemixObject,l,ind_rand) { # E-step - simulate unknown parameters # Input: kiter, Uargs, structural.model, mean.phi (un...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/brace_closes_at.R \name{braces_closes_at} \alias{braces_closes_at} \title{Brace closes at} \usage{ braces_closes_at(tex_line, position_of_opening_brace) } \arguments{ \item{tex_line}{A single line.} \item{position_of_opening_brace...
/man/braces_closes_at.Rd
no_license
cran/TeXCheckR
R
false
true
547
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/brace_closes_at.R \name{braces_closes_at} \alias{braces_closes_at} \title{Brace closes at} \usage{ braces_closes_at(tex_line, position_of_opening_brace) } \arguments{ \item{tex_line}{A single line.} \item{position_of_opening_brace...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_ibw.R \name{calc_ibw} \alias{calc_ibw} \title{Calculate ideal body weight for children and adults} \usage{ calc_ibw(weight = NULL, height = NULL, age = NULL, sex = "male", method_children = "standard", method_adults = "devine", digits ...
/man/calc_ibw.Rd
permissive
gimme00/PKmisc
R
false
true
1,907
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_ibw.R \name{calc_ibw} \alias{calc_ibw} \title{Calculate ideal body weight for children and adults} \usage{ calc_ibw(weight = NULL, height = NULL, age = NULL, sex = "male", method_children = "standard", method_adults = "devine", digits ...
###### Prediction parameters ######## forecasting_horizon = 24 split_percentage = 1 - forecasting_horizon/length(data_pr1$Price) sample_idx <- sample(nrow(data_pr1), nrow(data_pr1)*split_percentage) data_train_1 <- data_pr1[sample_idx, ] data_test_1 <- data_pr1[-sample_idx, ] data_train_2 <- data_pr2[sample_idx, ] da...
/prediction_params.R
no_license
ivanovllv/master_thesis_models_r
R
false
false
533
r
###### Prediction parameters ######## forecasting_horizon = 24 split_percentage = 1 - forecasting_horizon/length(data_pr1$Price) sample_idx <- sample(nrow(data_pr1), nrow(data_pr1)*split_percentage) data_train_1 <- data_pr1[sample_idx, ] data_test_1 <- data_pr1[-sample_idx, ] data_train_2 <- data_pr2[sample_idx, ] da...
library(shiny) shinyUI(fluidPage( titlePanel("Comparation of Transformation Methods for Flow Cytometry Data"), hr(), fluidRow( column(3, fileInput('fcsFile', strong('Choose FCS files:'), multiple = FALSE, accept = c('text/fcs', '.fcs')), actio...
/fcs_transComp_ShinyAPP/ui.R
no_license
haoeric/ShinyAPPs
R
false
false
9,485
r
library(shiny) shinyUI(fluidPage( titlePanel("Comparation of Transformation Methods for Flow Cytometry Data"), hr(), fluidRow( column(3, fileInput('fcsFile', strong('Choose FCS files:'), multiple = FALSE, accept = c('text/fcs', '.fcs')), actio...
predPlot <- function(model = NULL, obs = NULL, pred = NULL, thresh = "preval", main = "Classified predicted values", legend.pos = "n", pch = 1, cex = 0.5, col = c("black", "grey"), na.rm = TRUE, rm.dup = FALSE, interval = 0.01, quant = 0) { # version 1.7 (26 Oct 2022) obspred <- inputMunch(model, obs, pred, na.rm ...
/R/predPlot.R
no_license
cran/modEvA
R
false
false
2,300
r
predPlot <- function(model = NULL, obs = NULL, pred = NULL, thresh = "preval", main = "Classified predicted values", legend.pos = "n", pch = 1, cex = 0.5, col = c("black", "grey"), na.rm = TRUE, rm.dup = FALSE, interval = 0.01, quant = 0) { # version 1.7 (26 Oct 2022) obspred <- inputMunch(model, obs, pred, na.rm ...
context("tensor-options") test_that("tensor options works", { x <- torch_tensor_options() expect_true(is.list(x)) options <- torch_tensor_options(dtype = torch_bool()) expect_true(is.list(options)) })
/tests/testthat/test-tensor_options.R
permissive
snapbuy/torch
R
false
false
215
r
context("tensor-options") test_that("tensor options works", { x <- torch_tensor_options() expect_true(is.list(x)) options <- torch_tensor_options(dtype = torch_bool()) expect_true(is.list(options)) })
| pc = 0xc002 | a = 0x09 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 | | pc = 0xc004 | a = 0x09 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 | MEM[0x0010] = 0x09 | | pc = 0xc006 | a = 0xff | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 10110100 | | pc = 0xc008 | a = 0xf6 | x = 0x00...
/res/eor_zeropage.r
no_license
isabelatelles/nes-emulator
R
false
false
394
r
| pc = 0xc002 | a = 0x09 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 | | pc = 0xc004 | a = 0x09 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 | MEM[0x0010] = 0x09 | | pc = 0xc006 | a = 0xff | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 10110100 | | pc = 0xc008 | a = 0xf6 | x = 0x00...
博客代码,Scikit-learn AdaBoost算法库总结与实践,https://blog.csdn.net/weixin_40449129/article/details/103157696
/adaboost/readme.rd
no_license
silasxlx/machinelearning-blob
R
false
false
125
rd
博客代码,Scikit-learn AdaBoost算法库总结与实践,https://blog.csdn.net/weixin_40449129/article/details/103157696
\name{plotcim} \alias{plotcim} \title{Plots a cluster image mapping of correlations between outcomes and all predictors} \usage{ plotcim(matX, matY, cexCol = 0.5, cexRow = 1) } \arguments{ \item{matX}{data frame corresponding to the predictors.} \item{matY}{data frame corresponding to the outcomes.} \ite...
/man/plotcim.Rd
no_license
cran/sgPLS
R
false
false
825
rd
\name{plotcim} \alias{plotcim} \title{Plots a cluster image mapping of correlations between outcomes and all predictors} \usage{ plotcim(matX, matY, cexCol = 0.5, cexRow = 1) } \arguments{ \item{matX}{data frame corresponding to the predictors.} \item{matY}{data frame corresponding to the outcomes.} \ite...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/swf_operations.R \name{swf_poll_for_decision_task} \alias{swf_poll_for_decision_task} \title{Used by deciders to get a DecisionTask from the specified decision taskList} \usage{ swf_poll_for_decision_task( domain, taskList, identity = N...
/cran/paws.application.integration/man/swf_poll_for_decision_task.Rd
permissive
paws-r/paws
R
false
true
3,319
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/swf_operations.R \name{swf_poll_for_decision_task} \alias{swf_poll_for_decision_task} \title{Used by deciders to get a DecisionTask from the specified decision taskList} \usage{ swf_poll_for_decision_task( domain, taskList, identity = N...
#' Prepare genesize control network #' #' \code{prepare.genesize.control.network} takes a genelist and finds semi-randomly selected gene lists which are matched for gene length and GC content #' #' @param hits Array of MGI gene symbols containing the target gene list. Must be HGNC symbols. #' @param bg Array of MGI gen...
/R/prepare.genesize.control.network.r
no_license
RHReynolds/EWCE
R
false
false
6,230
r
#' Prepare genesize control network #' #' \code{prepare.genesize.control.network} takes a genelist and finds semi-randomly selected gene lists which are matched for gene length and GC content #' #' @param hits Array of MGI gene symbols containing the target gene list. Must be HGNC symbols. #' @param bg Array of MGI gen...
#' kmr_length_fasta #' #' Get the length of a sequnce in a fasta formatted file. #' #' @param fasta path to a file #' #' @return integer length of the sequence in the file #' @import Biostrings #' @export #' @family kmer_help #' #' @examples #' fasta <- system.file("testdata/phix174.fasta", package = "kmerize") #' #' k...
/R/kmr_length_fasta.R
no_license
c5sire/kmerize
R
false
false
591
r
#' kmr_length_fasta #' #' Get the length of a sequnce in a fasta formatted file. #' #' @param fasta path to a file #' #' @return integer length of the sequence in the file #' @import Biostrings #' @export #' @family kmer_help #' #' @examples #' fasta <- system.file("testdata/phix174.fasta", package = "kmerize") #' #' k...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect.R \name{cites_db} \alias{cites_db} \title{The local CITES database} \usage{ cites_db(dbdir = cites_path()) } \arguments{ \item{dbdir}{The location of the database on disk. Defaults to \code{citesdb} under \code{\link[rappdirs:user_dat...
/man/cites_db.Rd
permissive
ldecicco-USGS/citesdb
R
false
true
648
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect.R \name{cites_db} \alias{cites_db} \title{The local CITES database} \usage{ cites_db(dbdir = cites_path()) } \arguments{ \item{dbdir}{The location of the database on disk. Defaults to \code{citesdb} under \code{\link[rappdirs:user_dat...
#' @export ral_double <- function(value) { dbl_val <- as.numeric(value) stopifnot(length(dbl_val) == 1) structure(dbl_val, class = c("ral_double", "double")) } #' @export format.ral_double <- function(x, ...) { NextMethod("format", x) } #' @export #' @include format.R print.ral_double <- default_print
/R/double.R
permissive
dirkschumacher/llr
R
false
false
313
r
#' @export ral_double <- function(value) { dbl_val <- as.numeric(value) stopifnot(length(dbl_val) == 1) structure(dbl_val, class = c("ral_double", "double")) } #' @export format.ral_double <- function(x, ...) { NextMethod("format", x) } #' @export #' @include format.R print.ral_double <- default_print
#Paquetes necesarios.. require(twitteR) require(RCurl) require(dismo) require(maps) require(ggplot2) require(httr) require(XML) consumer_key <- 'PUZuo6k75lZYGQBRiwlJLc9Og' consumer_secret <- '4My1RZHZgbYvaA5XBIAcJ11dqpgQtDOEecHR3LoZFcouCr1nL7' access_token <- '938134932383260672-vkIaphVYLXb2tnnpKFJU3calS4pE4hu' access...
/Geocode.R
no_license
p3r1c0/DataDrivenSecurity
R
false
false
1,605
r
#Paquetes necesarios.. require(twitteR) require(RCurl) require(dismo) require(maps) require(ggplot2) require(httr) require(XML) consumer_key <- 'PUZuo6k75lZYGQBRiwlJLc9Og' consumer_secret <- '4My1RZHZgbYvaA5XBIAcJ11dqpgQtDOEecHR3LoZFcouCr1nL7' access_token <- '938134932383260672-vkIaphVYLXb2tnnpKFJU3calS4pE4hu' access...
####################################################################### # # # Package: onemap # # # # File: try.seq.R ...
/onemap/R/try.seq.R
no_license
ingted/R-Examples
R
false
false
16,218
r
####################################################################### # # # Package: onemap # # # # File: try.seq.R ...
#' Marginal Density for Given Scale Parameter and Half-Normal Prior for \eqn{\tau} #' #' This function computes the marginal density of \eqn{z_p'\beta} for gamma priors for \eqn{\tau^2} #' (referring to a half-normal prior for \eqn{\tau}). #' #' @param f point the marginal density to be evaluated at. #' ...
/sdPrior/R/mdf_ga.r
no_license
ingted/R-Examples
R
false
false
1,517
r
#' Marginal Density for Given Scale Parameter and Half-Normal Prior for \eqn{\tau} #' #' This function computes the marginal density of \eqn{z_p'\beta} for gamma priors for \eqn{\tau^2} #' (referring to a half-normal prior for \eqn{\tau}). #' #' @param f point the marginal density to be evaluated at. #' ...
91ce601a5eb6339ffff1531896ebfa4e cnt7n.unsat.qdimacs 256 733
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Tentrup/toy/cnt7n.unsat/cnt7n.unsat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
60
r
91ce601a5eb6339ffff1531896ebfa4e cnt7n.unsat.qdimacs 256 733
dir <- c("/Users/cigom/Documents/GitHub/July_2018_bioinfo/infile/") setwd(dir) x <- read.table(paste0(dir,"diffExpr.P1e-2_C1.matrix2")) str(x) load("/Users/cigom/Documents//time0/edgeR.11759.dir/diffExpr.P1e-2_C1.matrix.RData") tmp <- new.env() load(file="/Users/cigom/Documents//time0/edgeR.11759.dir/diffExpr.P1e-2...
/infile/example.Rmd.R
no_license
RJEGR/July_2018_bioinfo
R
false
false
3,956
r
dir <- c("/Users/cigom/Documents/GitHub/July_2018_bioinfo/infile/") setwd(dir) x <- read.table(paste0(dir,"diffExpr.P1e-2_C1.matrix2")) str(x) load("/Users/cigom/Documents//time0/edgeR.11759.dir/diffExpr.P1e-2_C1.matrix.RData") tmp <- new.env() load(file="/Users/cigom/Documents//time0/edgeR.11759.dir/diffExpr.P1e-2...
## The makeCacheMatrix function takes in some matrix (can be defaulted to an empty matrix which will store NA as the inverse), and returns a list of functions that can store, set or retrieve information about the matrix you passed in/created. This list object will later be used as the parameter for cacheSolve where the...
/cachematrix.R
no_license
skrinik/coursera
R
false
false
2,126
r
## The makeCacheMatrix function takes in some matrix (can be defaulted to an empty matrix which will store NA as the inverse), and returns a list of functions that can store, set or retrieve information about the matrix you passed in/created. This list object will later be used as the parameter for cacheSolve where the...
library(semTools) ### Name: findRMSEApower ### Title: Find the statistical power based on population RMSEA ### Aliases: findRMSEApower ### ** Examples findRMSEApower(rmsea0 = .05, rmseaA = .08, df = 20, n = 200)
/data/genthat_extracted_code/semTools/examples/findRMSEApower.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
221
r
library(semTools) ### Name: findRMSEApower ### Title: Find the statistical power based on population RMSEA ### Aliases: findRMSEApower ### ** Examples findRMSEApower(rmsea0 = .05, rmseaA = .08, df = 20, n = 200)
## Chcking the existence of NEI and SCC if(!exists("NEI")){ NEI <- readRDS("./data/summarySCC_PM25.rds") } if(!exists("SCC")){ SCC <- readRDS("./data/Source_Classification_Code.rds") } # 2.Have total emissions from PM2.5 decreased in the Baltimore City, Maryland (fips == "24510"\color{red}{\verb|fips ...
/ExData_Plot2.R
no_license
itforankit/My-R-programming-Repo
R
false
false
800
r
## Chcking the existence of NEI and SCC if(!exists("NEI")){ NEI <- readRDS("./data/summarySCC_PM25.rds") } if(!exists("SCC")){ SCC <- readRDS("./data/Source_Classification_Code.rds") } # 2.Have total emissions from PM2.5 decreased in the Baltimore City, Maryland (fips == "24510"\color{red}{\verb|fips ...
library(shiny) library(DT) function(input, output) { output$filtred_dic <- DT::renderDataTable({ DT::datatable(read.csv("85-288.csv",sep="\t",header=TRUE)[, input$show_vars, drop = FALSE], options = list( autoWidth = TRUE, columnDefs = list(list(width = '...
/server.R
no_license
lizushka/shughni-rus
R
false
false
1,295
r
library(shiny) library(DT) function(input, output) { output$filtred_dic <- DT::renderDataTable({ DT::datatable(read.csv("85-288.csv",sep="\t",header=TRUE)[, input$show_vars, drop = FALSE], options = list( autoWidth = TRUE, columnDefs = list(list(width = '...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/process_data.R \name{process} \alias{process} \title{Process Data} \usage{ process( dt, lib, detrend = TRUE, center = TRUE, scale = TRUE, as_of = NULL, date_name = "ref_date", id_name = "series_name", value_na...
/man/process.Rd
no_license
cran/dateutils
R
false
true
2,866
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/process_data.R \name{process} \alias{process} \title{Process Data} \usage{ process( dt, lib, detrend = TRUE, center = TRUE, scale = TRUE, as_of = NULL, date_name = "ref_date", id_name = "series_name", value_na...
/JointScoreTest/man/JointScoreTest-package.Rd
no_license
shijingc/JointScoreTest
R
false
false
944
rd
54c15efe294cb358e7659ab464f1aa49 tlc03-uniform-depth-113.qdimacs 40015 107025
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Miller-Marin/trafficlight-controller/tlc03-uniform-depth-113/tlc03-uniform-depth-113.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
77
r
54c15efe294cb358e7659ab464f1aa49 tlc03-uniform-depth-113.qdimacs 40015 107025
library(ggplot2) library(dplyr) library(Rcpp) library(readxl) library(stringr) library(gcookbook) setwd("/f/mulinlab/huan/figure/script/") dit <-"/f/mulinlab/huan/All_result_ICGC/gene_network_merge_repurposing_model/new_civic_as_positive_model_V2/gene_network_merge_data/huan_data/output/" main_cancer<-read_tsv(file.pa...
/Huan_link_all_script/figure/script/network_based_logic_true_drug_enrichment.R
no_license
Lhhuan/drug_repurposing
R
false
false
3,819
r
library(ggplot2) library(dplyr) library(Rcpp) library(readxl) library(stringr) library(gcookbook) setwd("/f/mulinlab/huan/figure/script/") dit <-"/f/mulinlab/huan/All_result_ICGC/gene_network_merge_repurposing_model/new_civic_as_positive_model_V2/gene_network_merge_data/huan_data/output/" main_cancer<-read_tsv(file.pa...
library(modules) ### Name: depend ### Title: Declare dependencies of modules ### Aliases: depend depend.default ### ** Examples # Depend on certain R version depend("base", "3.0.0") # Depend on package version depend("modules", "0.6.0")
/data/genthat_extracted_code/modules/examples/depend.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
244
r
library(modules) ### Name: depend ### Title: Declare dependencies of modules ### Aliases: depend depend.default ### ** Examples # Depend on certain R version depend("base", "3.0.0") # Depend on package version depend("modules", "0.6.0")
context("deps") test_that("parsing", { withr::with_dir("simple", { expect_warning(parsed <- parse_script(dir(pattern = "[.][rR]$"), "."), NA) A <- parsed[["A.R"]] expect_identical(A$path, normalizePath("A.R")) expect_identical(A$init, list(deps = NULL)) expect_identical(A$done, list( names...
/tests/testthat/test-deps.R
no_license
krlmlr/darn
R
false
false
2,058
r
context("deps") test_that("parsing", { withr::with_dir("simple", { expect_warning(parsed <- parse_script(dir(pattern = "[.][rR]$"), "."), NA) A <- parsed[["A.R"]] expect_identical(A$path, normalizePath("A.R")) expect_identical(A$init, list(deps = NULL)) expect_identical(A$done, list( names...
#' tweetbotornot #' #' Classify users/accounts in Twitter data as bots or not bots. #' #' @param x Object to be classified. Can be user IDs, screen names, or #' data frames returned by rtweet. #' @param fast Logical indicating whether to use the fast (lighter) model. The #' default (fast = FALSE) method uses the ...
/R/tweetbotornot.R
permissive
leondealmeida/tweetbotornot
R
false
false
4,217
r
#' tweetbotornot #' #' Classify users/accounts in Twitter data as bots or not bots. #' #' @param x Object to be classified. Can be user IDs, screen names, or #' data frames returned by rtweet. #' @param fast Logical indicating whether to use the fast (lighter) model. The #' default (fast = FALSE) method uses the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{dates_to_epiweek} \alias{dates_to_epiweek} \title{Dates to EpiWeeks} \usage{ dates_to_epiweek(df) } \arguments{ \item{df}{An input dataframe with a \code{date} column.} } \value{ A dataframe. } \description{ Dates to EpiWeeks }
/man/dates_to_epiweek.Rd
permissive
5l1v3r1/covid.german.forecasts
R
false
true
320
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{dates_to_epiweek} \alias{dates_to_epiweek} \title{Dates to EpiWeeks} \usage{ dates_to_epiweek(df) } \arguments{ \item{df}{An input dataframe with a \code{date} column.} } \value{ A dataframe. } \description{ Dates to EpiWeeks }
kbmtl_semisupervised_classification_variational_test <- function(K, state) { N <- dim(K)[2] T <- dim(state$W$mu)[2] H <- list(mu = crossprod(state$A$mu, K)) F <- list(mu = crossprod(H$mu, state$W$mu), sigma = matrix(0, N, T)) for (t in 1:T) { F$sigma[,t] <- 1 + diag(crossprod(H$mu, state$W$sigma[,,t]) %...
/kbmtl_semisupervised_classification_variational_test.R
no_license
thylakoids/kbmtl
R
false
false
528
r
kbmtl_semisupervised_classification_variational_test <- function(K, state) { N <- dim(K)[2] T <- dim(state$W$mu)[2] H <- list(mu = crossprod(state$A$mu, K)) F <- list(mu = crossprod(H$mu, state$W$mu), sigma = matrix(0, N, T)) for (t in 1:T) { F$sigma[,t] <- 1 + diag(crossprod(H$mu, state$W$sigma[,,t]) %...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exercise_server.R \name{evaluate_exercise} \alias{evaluate_exercise} \title{Evaluate Exercise} \usage{ evaluate_exercise( user_code, support_code, chunk_options, status_messages, envir, label ) } \arguments{ \item{user_code}{chara...
/man/evaluate_exercise.Rd
no_license
dakep/examinr
R
false
true
775
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exercise_server.R \name{evaluate_exercise} \alias{evaluate_exercise} \title{Evaluate Exercise} \usage{ evaluate_exercise( user_code, support_code, chunk_options, status_messages, envir, label ) } \arguments{ \item{user_code}{chara...
library(tidymodules) check_and_load("RColorBrewer") source(system.file(package = "tidymodules","shiny/examples/4_communication/module/Panel.R")) source(system.file(package = "tidymodules","shiny/examples/3_nested_modules/Kmeans.R")) source(system.file(package = "tidymodules","shiny/examples/3_nested_modules/ColorPick...
/inst/shiny/examples/3_nested_modules/app.R
permissive
jonas-hag/tidymodules
R
false
false
538
r
library(tidymodules) check_and_load("RColorBrewer") source(system.file(package = "tidymodules","shiny/examples/4_communication/module/Panel.R")) source(system.file(package = "tidymodules","shiny/examples/3_nested_modules/Kmeans.R")) source(system.file(package = "tidymodules","shiny/examples/3_nested_modules/ColorPick...
## ## ODE SPIR model ## ## Author......: Luis Gustavo Nardin ## Last Change.: 08/31/2016 ## library(data.table) library(deSolve) library(ggplot2) ############# ## PATHS ############# baseDir <- "/data/workspace/cmci/SPIR" scriptDir <- paste0(baseDir, "/scripts") ############# ## FUNCTIONS ############# source(paste...
/scripts/ode-spir-model.R
no_license
bertybaums/SPIR
R
false
false
2,716
r
## ## ODE SPIR model ## ## Author......: Luis Gustavo Nardin ## Last Change.: 08/31/2016 ## library(data.table) library(deSolve) library(ggplot2) ############# ## PATHS ############# baseDir <- "/data/workspace/cmci/SPIR" scriptDir <- paste0(baseDir, "/scripts") ############# ## FUNCTIONS ############# source(paste...
############################################################################ # # # Beginning of code for daily space/time interpolation # # # ###########...
/krige.R
no_license
NateByers/removalBias
R
false
false
1,918
r
############################################################################ # # # Beginning of code for daily space/time interpolation # # # ###########...
setwd(paste(getwd(), "Figs_NEW_SURFACES", sep = "/")) library(GISTools) ppi <- 300 # Edit as appropriate... forest.mod <- forest.mod.1 ### ### Scalebar function scalebar<-function(dim,coord=NA,padding=c(5,5),labels=paste(dim),...){ #defaults to a lower left hand position padding<-padding/100 parrange<-c(par()$u...
/Climate_risk_model/Stakeholder_Consultation_Figures.R
no_license
Mattgeary/Grenada_dove
R
false
false
16,431
r
setwd(paste(getwd(), "Figs_NEW_SURFACES", sep = "/")) library(GISTools) ppi <- 300 # Edit as appropriate... forest.mod <- forest.mod.1 ### ### Scalebar function scalebar<-function(dim,coord=NA,padding=c(5,5),labels=paste(dim),...){ #defaults to a lower left hand position padding<-padding/100 parrange<-c(par()$u...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trades.R \name{plot_coin} \alias{plot_coin} \title{Plot trades} \usage{ plot_coin(x) } \arguments{ \item{x}{Trades} } \value{ None } \description{ Plot set of samples of trades }
/man/plot_coin.Rd
no_license
jolyonfaria/coinbaser
R
false
true
257
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trades.R \name{plot_coin} \alias{plot_coin} \title{Plot trades} \usage{ plot_coin(x) } \arguments{ \item{x}{Trades} } \value{ None } \description{ Plot set of samples of trades }
require(CSHShydRology) require(tidyhydat) require(dplyr) require(ggplot2) require(lubridate) options(scipen = 999) #download_hydat() mfile <- system.file("extdata", "04JD005_Daily_Flow_ts.csv", package = "CSHShydRology") mdata <- ch_read_ECDE_flows(mfile) stations_total<-hy_stations() QC_stns <-stations_total %>% ...
/R/statistiques_debit_annuel.R
no_license
tito-am/cehq.forecast
R
false
false
2,295
r
require(CSHShydRology) require(tidyhydat) require(dplyr) require(ggplot2) require(lubridate) options(scipen = 999) #download_hydat() mfile <- system.file("extdata", "04JD005_Daily_Flow_ts.csv", package = "CSHShydRology") mdata <- ch_read_ECDE_flows(mfile) stations_total<-hy_stations() QC_stns <-stations_total %>% ...
require("ggplot2") require("ggthemes") require("gplots") require("grid") require("RCurl") require("reshape2") require("tableplot") require("tidyr") require("dplyr") require("jsonlite") require("extrafont") require("lubridate")
/Programming/DataVisualization/.Rprofile
no_license
stOracle/Migrate
R
false
false
237
rprofile
require("ggplot2") require("ggthemes") require("gplots") require("grid") require("RCurl") require("reshape2") require("tableplot") require("tidyr") require("dplyr") require("jsonlite") require("extrafont") require("lubridate")
\name{poems} \alias{poems} \docType{data} \title{Baayen and Milin } \description{ Data described in Baayen and Milin (2010). } \format{ A data frame with 275996 observations on the following 24 variables. \describe{ \item{\code{ReadingTime}}{a numeric vector of self-paced reading times} \item{\code{Subjec...
/man/poems.Rd
no_license
mmaechler/RePsychLing
R
false
false
6,047
rd
\name{poems} \alias{poems} \docType{data} \title{Baayen and Milin } \description{ Data described in Baayen and Milin (2010). } \format{ A data frame with 275996 observations on the following 24 variables. \describe{ \item{\code{ReadingTime}}{a numeric vector of self-paced reading times} \item{\code{Subjec...
#for enrichment of those gene pick out by the correlation between WER and background gene's expression library(DOSE) library(clusterProfiler) library(ReactomePA) library(enrichplot) library(topGO) library(Rgraphviz) args <- commandArgs(TRUE) # gene.name.file <- strsplit(args[1], "/")[[1]][length(strsplit(args[1], "/")...
/dependency/GeneEnrichment.R
no_license
geng-lee/SuperdopeBioinformatics
R
false
false
4,240
r
#for enrichment of those gene pick out by the correlation between WER and background gene's expression library(DOSE) library(clusterProfiler) library(ReactomePA) library(enrichplot) library(topGO) library(Rgraphviz) args <- commandArgs(TRUE) # gene.name.file <- strsplit(args[1], "/")[[1]][length(strsplit(args[1], "/")...
data { dim_d <- dim(dead) # extract dimensions for loops nc <- dim_d[2] nt <- dim_d[1] # Define number of days after infection in which # transmission and death is still considered in model SId_T <- 50 # t --> 1 ... Tinit ... ... Ti ... ... T0 ... ... T # ...
/jags models/estimateR/estimateR_testing.R
permissive
Schmidtpk/Covid
R
false
false
3,565
r
data { dim_d <- dim(dead) # extract dimensions for loops nc <- dim_d[2] nt <- dim_d[1] # Define number of days after infection in which # transmission and death is still considered in model SId_T <- 50 # t --> 1 ... Tinit ... ... Ti ... ... T0 ... ... T # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zz.R \name{zz} \alias{zz} \title{Save history and data image} \usage{ zz() } \description{ Save history and data image } \details{ Save history and data image. Same as \code{savehistory(); save.image()}. }
/man/zz.Rd
no_license
january3/myfuncs
R
false
true
284
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zz.R \name{zz} \alias{zz} \title{Save history and data image} \usage{ zz() } \description{ Save history and data image } \details{ Save history and data image. Same as \code{savehistory(); save.image()}. }
## A basic shiny app library(shiny) library(ggplot2) library(shinythemes) # adding the shinythemese package library(DT) DF<-read.csv("./Data/miningData.csv", header = T,sep=";") DF$Grade = as.double(1*DF$G1 + 1*DF$G2 + 1*DF$G3) ## Using Input Widgets server <- function(input,output, session) { data <- react...
/Scripts/RShinyUdemyMyCode.R
no_license
yjs1210/R_Env
R
false
false
2,381
r
## A basic shiny app library(shiny) library(ggplot2) library(shinythemes) # adding the shinythemese package library(DT) DF<-read.csv("./Data/miningData.csv", header = T,sep=";") DF$Grade = as.double(1*DF$G1 + 1*DF$G2 + 1*DF$G3) ## Using Input Widgets server <- function(input,output, session) { data <- react...
# Copyright 2016 Joshua R. Davis # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
/geologyGeometry/tutorials/miscellany/oriRigidFabric.R
permissive
nicolasmroberts/InternalStructureMtEdgar_PR2021
R
false
false
9,773
r
# Copyright 2016 Joshua R. Davis # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
#' Upload a dataset to the BEFdata portal #' #' This function uploads a dataset from within R to a BEFdata portal set in #' your options. Before you can do so you need to have an account on the portal #' and set your credentials via the bef.options() function so the authentication works. #' The function requires a titl...
/rbefdata/R/bef.portal.upload.R
permissive
EichenbergBEF/rbefdata
R
false
false
10,544
r
#' Upload a dataset to the BEFdata portal #' #' This function uploads a dataset from within R to a BEFdata portal set in #' your options. Before you can do so you need to have an account on the portal #' and set your credentials via the bef.options() function so the authentication works. #' The function requires a titl...
% Generated by roxygen2 (4.0.0): do not edit by hand \docType{data} \name{geneExpr} \alias{geneExpr} \title{Anonymized gene expression data} \format{A list containing a matrix \code{expr} with the gene expression data plus a vector \code{genotype} with the genotypes.} \usage{ data(geneExpr) } \description{ An anonymize...
/man/geneExpr.Rd
permissive
TAwosanya/qtlcharts
R
false
false
662
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \docType{data} \name{geneExpr} \alias{geneExpr} \title{Anonymized gene expression data} \format{A list containing a matrix \code{expr} with the gene expression data plus a vector \code{genotype} with the genotypes.} \usage{ data(geneExpr) } \description{ An anonymize...
library(dplyr) # --- source("BF_util.R") # my personal utilities gramFlag = 3 # 1 for sinle grams, 2 for bigrams and 3 for trigrams # Source can be Blog, News or Twitter source = "Twitter" if (source == "Blog") { dataDir = '../Data/Blog/' # note the '/' at the end } else if (source == "News") { dataDir = '../D...
/distribution.R
no_license
BFCorsair/DS_Capstone
R
false
false
1,948
r
library(dplyr) # --- source("BF_util.R") # my personal utilities gramFlag = 3 # 1 for sinle grams, 2 for bigrams and 3 for trigrams # Source can be Blog, News or Twitter source = "Twitter" if (source == "Blog") { dataDir = '../Data/Blog/' # note the '/' at the end } else if (source == "News") { dataDir = '../D...
test_that("roundDF errors", { expect_error(roundDF(0), "'dat' needs to be a data.frame.") expect_error(roundDF(mtcars, "a"), "'digits' needs to be a numeric vector of length 1.") expect_error(roundDF(mtcars, 1:2), "'digits' needs to be a numeric vector of length 1.") }) test_that("roundDF", { out <-...
/tests/testthat/test_roundDF.R
no_license
weirichs/eatTools
R
false
false
745
r
test_that("roundDF errors", { expect_error(roundDF(0), "'dat' needs to be a data.frame.") expect_error(roundDF(mtcars, "a"), "'digits' needs to be a numeric vector of length 1.") expect_error(roundDF(mtcars, 1:2), "'digits' needs to be a numeric vector of length 1.") }) test_that("roundDF", { out <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/caching.R \name{rhdx_cache_clear} \alias{rhdx_cache_clear} \title{Clear cache} \usage{ rhdx_cache_clear() } \description{ Clear cache }
/man/rhdx_cache_clear.Rd
permissive
bmpacifique/rhdx
R
false
true
214
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/caching.R \name{rhdx_cache_clear} \alias{rhdx_cache_clear} \title{Clear cache} \usage{ rhdx_cache_clear() } \description{ Clear cache }
#author: Yifei.wan # WGBS comparison # Parse arguments suppressMessages(library("optparse")) optionList <- list(make_option(c("-i", "--input"), type="character", default=NULL, help="Folder of BAM"), make_option(c("-m", "--meta"), type="character", default=NULL, help="Meta text file"), make_option(c("-r", "-...
/WGBS/wgbs_comparison.R
no_license
Wan-Yifei/AH_BioPharma
R
false
false
5,239
r
#author: Yifei.wan # WGBS comparison # Parse arguments suppressMessages(library("optparse")) optionList <- list(make_option(c("-i", "--input"), type="character", default=NULL, help="Folder of BAM"), make_option(c("-m", "--meta"), type="character", default=NULL, help="Meta text file"), make_option(c("-r", "-...
testlist <- list(a = -9.82459501909337e-24, a1 = c(9.01759077219456e+269, 1.38132470505271e+189, 4.87533065195373e-255, 6.4658697437712e+299, 7.95413582065576e+131, -1.00073342069585e+287, -36540528024027800, -5.08222340286187e+282, 5.2410775155028e-118, -30883170442827423744, 2.01316690169769e-209, -7.189230276624...
/issuestests/EWGoF/inst/testfiles/GoFHe/GoFHe_output/log_2b6b35067b9df47f5e200b481b447ab9514864fd/GoFHe-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
2,341
r
testlist <- list(a = -9.82459501909337e-24, a1 = c(9.01759077219456e+269, 1.38132470505271e+189, 4.87533065195373e-255, 6.4658697437712e+299, 7.95413582065576e+131, -1.00073342069585e+287, -36540528024027800, -5.08222340286187e+282, 5.2410775155028e-118, -30883170442827423744, 2.01316690169769e-209, -7.189230276624...
library(ape) testtree <- read.tree("4025_15.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4025_15_unrooted.txt")
/codeml_files/newick_trees_processed/4025_15/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("4025_15.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4025_15_unrooted.txt")
# sum.R my_sum <- function(a, b) ( return(a + b) )
/R/tdd/sum.R
no_license
scotttrumpy/isat252
R
false
false
51
r
# sum.R my_sum <- function(a, b) ( return(a + b) )
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functionsgato.R \name{shannon} \alias{shannon} \title{Calculates the Shannon Diversity Index using ln base e} \usage{ shannon(species) } \arguments{ \item{species}{vector of abundances of species} } \value{ the Shannon Diversity Index } \desc...
/man/shannon.Rd
permissive
julietakaminsky/Escher
R
false
true
433
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functionsgato.R \name{shannon} \alias{shannon} \title{Calculates the Shannon Diversity Index using ln base e} \usage{ shannon(species) } \arguments{ \item{species}{vector of abundances of species} } \value{ the Shannon Diversity Index } \desc...
library(R.utils) ### Name: displayCode ### Title: Displays the contents of a text file with line numbers and more ### Aliases: displayCode.default displayCode ### Keywords: file IO ### ** Examples file <- system.file("DESCRIPTION", package="R.utils") cat("Displaying: ", file, ":\n", sep="") displayCode(file) file ...
/data/genthat_extracted_code/R.utils/examples/displayCode.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
621
r
library(R.utils) ### Name: displayCode ### Title: Displays the contents of a text file with line numbers and more ### Aliases: displayCode.default displayCode ### Keywords: file IO ### ** Examples file <- system.file("DESCRIPTION", package="R.utils") cat("Displaying: ", file, ":\n", sep="") displayCode(file) file ...