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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/immuneResponseCallGeneration.R \name{generateResponseCall} \alias{generateResponseCall} \title{Generate immune response calls for HAI, NAb or ELISA} \usage{ generateResponseCall(assay, data, postVaxDayRange, discretizationValues) } \arguments...
/man/generateResponseCall.Rd
no_license
RGLab/ImmuneSignatures2
R
false
true
599
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/immuneResponseCallGeneration.R \name{generateResponseCall} \alias{generateResponseCall} \title{Generate immune response calls for HAI, NAb or ELISA} \usage{ generateResponseCall(assay, data, postVaxDayRange, discretizationValues) } \arguments...
# This Code generates 4 plots simultaneously # Read in the data set data <- read.table("./household_power_consumption.txt", header=TRUE, stringsAsFactors=FALSE, sep=";") # Merge time and date date_time <- strptime(paste(data$Date, data$Time, sep=" "), "%d/%m/%Y %H:%M:%S") data <- cbind(data, date_time) # Fix types ...
/plot4.R
no_license
candaceng/data-plotting
R
false
false
1,544
r
# This Code generates 4 plots simultaneously # Read in the data set data <- read.table("./household_power_consumption.txt", header=TRUE, stringsAsFactors=FALSE, sep=";") # Merge time and date date_time <- strptime(paste(data$Date, data$Time, sep=" "), "%d/%m/%Y %H:%M:%S") data <- cbind(data, date_time) # Fix types ...
library(VecStatGraphs2D) ### Name: SkewnessModuleCoefficient ### Title: Calculation of the skewness coefficient of the modules ### Aliases: SkewnessModuleCoefficient ### Keywords: module ### ** Examples FileName<-system.file("data/RectangularData.txt", package="VecStatGraphs2D") dat<-LoadData(FileName, Type=2...
/data/genthat_extracted_code/VecStatGraphs2D/examples/SkewnessModuleCoefficient.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
383
r
library(VecStatGraphs2D) ### Name: SkewnessModuleCoefficient ### Title: Calculation of the skewness coefficient of the modules ### Aliases: SkewnessModuleCoefficient ### Keywords: module ### ** Examples FileName<-system.file("data/RectangularData.txt", package="VecStatGraphs2D") dat<-LoadData(FileName, Type=2...
rm(FullNames,feat, GroupedSet,MeanStdNames,X_test,X_train,activitylabels,features,i,raw_X_test,raw_X_train,raw_subject_test,raw_subject_train,raw_y_test,raw_y_train,subject_test,subject_train,testLabels,trainLabels,x,y_test,y_train,Variables,filepath,loadFiles,paths,toDf,toTbl)
/Cleanup.R
no_license
Kikzz/WorkWithDataAssignment
R
false
false
279
r
rm(FullNames,feat, GroupedSet,MeanStdNames,X_test,X_train,activitylabels,features,i,raw_X_test,raw_X_train,raw_subject_test,raw_subject_train,raw_y_test,raw_y_train,subject_test,subject_train,testLabels,trainLabels,x,y_test,y_train,Variables,filepath,loadFiles,paths,toDf,toTbl)
% Generated by roxygen2 (4.0.1): do not edit by hand \name{plot.bs_xmin} \alias{plot.bs_p_xmin} \alias{plot.bs_xmin} \alias{plot.compare_distributions} \title{Plot methods for bootstrap objects} \usage{ \method{plot}{bs_xmin}(x, trim = 0.1, ...) \method{plot}{bs_p_xmin}(x, trim = 0.1, ...) \method{plot}{compare_distr...
/pkg/man/plot.bs_xmin.Rd
no_license
way2joy/poweRlaw
R
false
false
805
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{plot.bs_xmin} \alias{plot.bs_p_xmin} \alias{plot.bs_xmin} \alias{plot.compare_distributions} \title{Plot methods for bootstrap objects} \usage{ \method{plot}{bs_xmin}(x, trim = 0.1, ...) \method{plot}{bs_p_xmin}(x, trim = 0.1, ...) \method{plot}{compare_distr...
# Compile, scale, and output PSMC data # 11/13/2020 # Libraries library(foreach) library(data.table) library(tidyverse) # Commands arg <- commandArgs(TRUE) path.name <- arg[1] # pathway to output out.name <- arg[2] # the output file name mu <- arg[3] s <- arg[4] g <- arg[5] # Working directory setwd(path.name) #...
/psmc/compile.psmc.R
no_license
connor122721/Daphnia-analyses
R
false
false
1,630
r
# Compile, scale, and output PSMC data # 11/13/2020 # Libraries library(foreach) library(data.table) library(tidyverse) # Commands arg <- commandArgs(TRUE) path.name <- arg[1] # pathway to output out.name <- arg[2] # the output file name mu <- arg[3] s <- arg[4] g <- arg[5] # Working directory setwd(path.name) #...
library(sqldf) file_1="./Module_4/household_power_consumption.txt" data<-read.csv.sql(file_1, "select * from file where Date='1/2/2007' or Date='2/2/2007' ", sep=";") data$TimeStamp<-as.POSIXct(paste(data$Date, data$Time), format="%d/%m/%Y %H:%M:%S") par(mfrow=c(2,2)) with(data,plot(Tim...
/plot4.R
no_license
osreama1/ExData_Plotting1
R
false
false
1,071
r
library(sqldf) file_1="./Module_4/household_power_consumption.txt" data<-read.csv.sql(file_1, "select * from file where Date='1/2/2007' or Date='2/2/2007' ", sep=";") data$TimeStamp<-as.POSIXct(paste(data$Date, data$Time), format="%d/%m/%Y %H:%M:%S") par(mfrow=c(2,2)) with(data,plot(Tim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_functions.r \name{plot_heatmap_for_k} \alias{plot_heatmap_for_k} \title{Plot a pheatmap for a single value of k} \usage{ plot_heatmap_for_k( cluster_assignments.df, annotation_col.df, ann_colours.lst, cluster_input.mat, ann...
/man/plot_heatmap_for_k.Rd
no_license
rdocking/amlpmpsupport
R
false
true
806
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_functions.r \name{plot_heatmap_for_k} \alias{plot_heatmap_for_k} \title{Plot a pheatmap for a single value of k} \usage{ plot_heatmap_for_k( cluster_assignments.df, annotation_col.df, ann_colours.lst, cluster_input.mat, ann...
local({ libDir <- file.path('packrat', 'lib', R.version$platform, getRversion()) if (suppressWarnings(requireNamespace("packrat", quietly = TRUE, lib.loc = libDir))) { # Check if we need to migrate the library (mainly for Windows) packrat:::checkNeedsLibraryMigration() # Check 'print.banner.on.start...
/inst/resources/init.R
no_license
tarekrached/packrat
R
false
false
6,345
r
local({ libDir <- file.path('packrat', 'lib', R.version$platform, getRversion()) if (suppressWarnings(requireNamespace("packrat", quietly = TRUE, lib.loc = libDir))) { # Check if we need to migrate the library (mainly for Windows) packrat:::checkNeedsLibraryMigration() # Check 'print.banner.on.start...
# Q3 : negative binomial, r=20, success is tossing heads on coin, p = 0.5 since fair coin # a) compute pmf of X, the RV representing TOTAL TOSSES, not just FAILURES # Y~NB(r,p) where Y is the RV representing FAILURES (tosses) # hence X = Y + r (i.e. total tosses is tails tossed + heads tossed) r <- 20 # suc...
/R for Statistics/Exercise 2.R
no_license
atikah2301/statistical-modelling
R
false
false
1,710
r
# Q3 : negative binomial, r=20, success is tossing heads on coin, p = 0.5 since fair coin # a) compute pmf of X, the RV representing TOTAL TOSSES, not just FAILURES # Y~NB(r,p) where Y is the RV representing FAILURES (tosses) # hence X = Y + r (i.e. total tosses is tails tossed + heads tossed) r <- 20 # suc...
#library(UsingR) shinyServer( function(input, output) { output$newHist <- renderPlot({ seed=123 n <- input$n mu <- input$mean sigma <- input$sigma x <- rnorm(n,mu,sigma) hist(x, breaks=15,col='lightblue1',border='lightblue4',main='',xlab='') }) } )
/server.R
no_license
paoloeusebi/normal_app
R
false
false
281
r
#library(UsingR) shinyServer( function(input, output) { output$newHist <- renderPlot({ seed=123 n <- input$n mu <- input$mean sigma <- input$sigma x <- rnorm(n,mu,sigma) hist(x, breaks=15,col='lightblue1',border='lightblue4',main='',xlab='') }) } )
##' Collapse multiple edge types to a single list or matrix ##' ##' @param edges list of edges to include ##' @param v1,v2 incoming and outgoing vertices, defaults to all. ##' @param dir direction ##' @param matrix logical indicating whether to force the return of an adjacency matrix ##' @param nv number of vertices f...
/R/Adjacencies.R
no_license
rje42/MixedGraphs
R
false
false
20,278
r
##' Collapse multiple edge types to a single list or matrix ##' ##' @param edges list of edges to include ##' @param v1,v2 incoming and outgoing vertices, defaults to all. ##' @param dir direction ##' @param matrix logical indicating whether to force the return of an adjacency matrix ##' @param nv number of vertices f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/impact_auth.R \name{impact_auth} \alias{impact_auth} \title{Provide a citation for a research publication} \usage{ impact_auth(df, author_list = "author", pub_group = "pmid", max_inital = 1, upset = FALSE, metric = FALSE) } \arguments{ \ite...
/man/impact_auth.Rd
no_license
bibliometrics/impactr
R
false
true
1,355
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/impact_auth.R \name{impact_auth} \alias{impact_auth} \title{Provide a citation for a research publication} \usage{ impact_auth(df, author_list = "author", pub_group = "pmid", max_inital = 1, upset = FALSE, metric = FALSE) } \arguments{ \ite...
/scripts/base_analysis.R
no_license
haachicanoy/PLS_path_modeling
R
false
false
21,290
r
rankall <- function(outcome, num = "best") { ##read outcome data worstFlag <- FALSE #TODO: ugly data <- read.csv("data/outcome-of-care-measures.csv") outcome <- formatOutcome(outcome) ## Check that state and outcome are valid if(!outcome %in% colnames(data)) stop("...
/Assignment3/rankall.R
no_license
MrBanhBao/Coursera-R-Programming-Assignments
R
false
false
2,025
r
rankall <- function(outcome, num = "best") { ##read outcome data worstFlag <- FALSE #TODO: ugly data <- read.csv("data/outcome-of-care-measures.csv") outcome <- formatOutcome(outcome) ## Check that state and outcome are valid if(!outcome %in% colnames(data)) stop("...
## Greetings Warrior! ## 1. # makeCacheMatrix is a function that returns a list of functions # matrix. Contains the following functions: # * setMatrix set the value of a matrix # * getMatrix get the value of a matrix # * cacheInverse get the cahced value (inverse of the matrix) # * getInverse ...
/cachematrix.R
no_license
Suhaada/R-programming-basisc-on-Coursera
R
false
false
1,439
r
## Greetings Warrior! ## 1. # makeCacheMatrix is a function that returns a list of functions # matrix. Contains the following functions: # * setMatrix set the value of a matrix # * getMatrix get the value of a matrix # * cacheInverse get the cahced value (inverse of the matrix) # * getInverse ...
rates <- read.csv("eurofxref-hist.csv", header = T) rates[1:2,] str(rates$Date) rates$Date <- as.Date(rates$Date,"%Y-%m-%d") str(rates$Date) range(rates$Date) rates <- rates[order(rates$Date), ] plot(rates$Date, rates$JPY, type = "l") head(rates$Date,20) years <- format(rates$Date, "%Y") tab <- table(year...
/currency_forecasting_working_model.R
no_license
inso2501/trading
R
false
false
2,253
r
rates <- read.csv("eurofxref-hist.csv", header = T) rates[1:2,] str(rates$Date) rates$Date <- as.Date(rates$Date,"%Y-%m-%d") str(rates$Date) range(rates$Date) rates <- rates[order(rates$Date), ] plot(rates$Date, rates$JPY, type = "l") head(rates$Date,20) years <- format(rates$Date, "%Y") tab <- table(year...
Print("This file was created within RStudio") print("and now it lives in GitHub")
/test.R
no_license
Hemonsalve/R-GIT
R
false
false
84
r
Print("This file was created within RStudio") print("and now it lives in GitHub")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rsurv.R \name{rsurv} \alias{rsurv} \title{Simulation of survival data following a PCH model} \usage{ rsurv(n, cuts = NULL, alpha) } \arguments{ \item{n}{the sample size.} \item{cuts}{the sequence of cuts. Default to NULL which corresponds to...
/man/rsurv.Rd
permissive
obouaziz/FastPseudo
R
false
true
1,046
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rsurv.R \name{rsurv} \alias{rsurv} \title{Simulation of survival data following a PCH model} \usage{ rsurv(n, cuts = NULL, alpha) } \arguments{ \item{n}{the sample size.} \item{cuts}{the sequence of cuts. Default to NULL which corresponds to...
install.packages("KoNLP") install.packages("RColorBrewer") install.packages("wordcloud") library(KoNLP) library(RColorBrewer) library(wordcloud) useSejongDic() pa12<-brewer.pal(8,"Dark2") text<-readLines(file.choose()) noun<-sapply(text,extractNoun,USE.NAMES = F) noun2<-unlist(noun) word_count<-t...
/2020-10-28_연설문 워드 클라우드(작동안됨).R
no_license
hakgyu2298/R_test
R
false
false
502
r
install.packages("KoNLP") install.packages("RColorBrewer") install.packages("wordcloud") library(KoNLP) library(RColorBrewer) library(wordcloud) useSejongDic() pa12<-brewer.pal(8,"Dark2") text<-readLines(file.choose()) noun<-sapply(text,extractNoun,USE.NAMES = F) noun2<-unlist(noun) word_count<-t...
library(shiny) library(shinythemes) ui <- fluidPage(theme = shinytheme("cerulean"), navbarPage("My first app", tabPanel("Navbar 1", sidebarPanel( tags$h3("Input:"), ...
/shinnyapp/app.R
no_license
Aravind-reddyy/string-concatenation2
R
false
false
1,347
r
library(shiny) library(shinythemes) ui <- fluidPage(theme = shinytheme("cerulean"), navbarPage("My first app", tabPanel("Navbar 1", sidebarPanel( tags$h3("Input:"), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SMC.R \name{smcSampler} \alias{smcSampler} \title{SMC sampler} \usage{ smcSampler(bayesianSetup, initialParticles = 1000, iterations = 10, resampling = T, resamplingSteps = 2, proposal = NULL, adaptive = T, proposalScale = 0.5) } \argumen...
/BayesianTools/man/smcSampler.Rd
permissive
alexgenin/BayesianTools
R
false
true
4,610
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SMC.R \name{smcSampler} \alias{smcSampler} \title{SMC sampler} \usage{ smcSampler(bayesianSetup, initialParticles = 1000, iterations = 10, resampling = T, resamplingSteps = 2, proposal = NULL, adaptive = T, proposalScale = 0.5) } \argumen...
#' Tibble con i dati di o3_max_mm8h_d per 15 stazioni della regione PIEMONTE #' #' @format Un tibble con 8 colonne e 10965 osservazioni #' #' @usage #' o3_max_mm8h_d "o3_max_mm8h_d"
/R/o3_max_mm8h_d.R
permissive
progettopulvirus/piemonte
R
false
false
182
r
#' Tibble con i dati di o3_max_mm8h_d per 15 stazioni della regione PIEMONTE #' #' @format Un tibble con 8 colonne e 10965 osservazioni #' #' @usage #' o3_max_mm8h_d "o3_max_mm8h_d"
## The Regents of the University of California and The Broad Institute ## SOFTWARE COPYRIGHT NOTICE AGREEMENT ## This software and its documentation are copyright (2018) by the ## Regents of the University of California abd the ## Broad Institute/Massachusetts Institute of Technology. All rights are ## reserved. ...
/src/run_sctk_module.R
permissive
genepattern/docker-sctk
R
false
false
6,892
r
## The Regents of the University of California and The Broad Institute ## SOFTWARE COPYRIGHT NOTICE AGREEMENT ## This software and its documentation are copyright (2018) by the ## Regents of the University of California abd the ## Broad Institute/Massachusetts Institute of Technology. All rights are ## reserved. ...
## Reads the text file, builds a data-frame raw_data<-read.table("household_power_consumption.txt",sep=";",na.strings="?", col.names=c("Date","Time","Global_active_power", "Global_reactive_power","Voltage", "Global_intensity","Sub_me...
/plot1.R
no_license
yonidahan/ExData_Plotting1
R
false
false
1,611
r
## Reads the text file, builds a data-frame raw_data<-read.table("household_power_consumption.txt",sep=";",na.strings="?", col.names=c("Date","Time","Global_active_power", "Global_reactive_power","Voltage", "Global_intensity","Sub_me...
# Data Science class # project - Hurricane ##################################### #part 0 load packages library(tidyverse) library(Hmisc) library(ggcorrplot) library(viridis) library(sf) library(latticeExtra) library(gganimate) library(gifski) #################################### # part I arra...
/project Hurricane.R
no_license
NechamaBrickner/Data-Science-project-
R
false
false
14,106
r
# Data Science class # project - Hurricane ##################################### #part 0 load packages library(tidyverse) library(Hmisc) library(ggcorrplot) library(viridis) library(sf) library(latticeExtra) library(gganimate) library(gifski) #################################### # part I arra...
## Functions to return an inverse matrix. The first call calculates ## the inverse matrix. Each following call uses the cached matrix. ## inverseMatrix <- cacheSolve(makeCacheMatrix(my_matrix)) ## This function caches the inverse matrix. ## Introduces methods to access the actual and the inverse matrix. makeCacheMat...
/cachematrix.R
no_license
hgf241/ProgrammingAssignment2
R
false
false
1,133
r
## Functions to return an inverse matrix. The first call calculates ## the inverse matrix. Each following call uses the cached matrix. ## inverseMatrix <- cacheSolve(makeCacheMatrix(my_matrix)) ## This function caches the inverse matrix. ## Introduces methods to access the actual and the inverse matrix. makeCacheMat...
.onLoad <- function(libname, pkgname) { ## Calibri isn't working--use sans for now base_family = "sans" ## Define colors brattle.blue <- "#00467f" gray.dark <- "#6a7277" gray.warm <- "#cccdc3" gray.font <- "#000000" # Switched to black in new format "#302f35" gridlines <- "#cac9cf" ...
/R/zzz.R
no_license
KevinRPan/BrattleExtras
R
false
false
5,426
r
.onLoad <- function(libname, pkgname) { ## Calibri isn't working--use sans for now base_family = "sans" ## Define colors brattle.blue <- "#00467f" gray.dark <- "#6a7277" gray.warm <- "#cccdc3" gray.font <- "#000000" # Switched to black in new format "#302f35" gridlines <- "#cac9cf" ...
library(tidyverse) library(sp) library(rgdal) library(geosphere) library(readxl) library(shiny) library(shinydashboard) library(leaflet) library(DT) library(data.table) library(ggplot2) myfile = file.path("data") SIG_1 = readOGR(myfile, "SIG_1") hpdata_z <- read.csv("data/scaled_data.csv") pop = read_xlsx("data/popul...
/visualization/shiny/app.R
no_license
twg12/IntroToDataScience_5
R
false
false
5,974
r
library(tidyverse) library(sp) library(rgdal) library(geosphere) library(readxl) library(shiny) library(shinydashboard) library(leaflet) library(DT) library(data.table) library(ggplot2) myfile = file.path("data") SIG_1 = readOGR(myfile, "SIG_1") hpdata_z <- read.csv("data/scaled_data.csv") pop = read_xlsx("data/popul...
###################### 函数 ################################################## # rIds: 风险源编号向量 # x: 决策向量 # rCnt: 风险源个数 # rVentures: 风险损失 # rCosts: 控制成本 # rProbabilities: 发生概率 # ex: 是否考虑权重放大 # rWeightis: 权重 # re: 是否考虑相关性 ...
/PH_Model_function.R
no_license
AiDatawxy/DiscreteMOPSO
R
false
false
9,875
r
###################### 函数 ################################################## # rIds: 风险源编号向量 # x: 决策向量 # rCnt: 风险源个数 # rVentures: 风险损失 # rCosts: 控制成本 # rProbabilities: 发生概率 # ex: 是否考虑权重放大 # rWeightis: 权重 # re: 是否考虑相关性 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MH_functions.R \name{indep} \alias{indep} \title{Independence sampler updating with fixed distribution Proposes from a MVN with mean prop_mean and variance-covariance matrix prop_Sigma} \usage{ indep(coef, outcome, data, Xmat, ll_func, dprior...
/man/indep.Rd
permissive
lcomm/medBSA
R
false
true
1,071
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MH_functions.R \name{indep} \alias{indep} \title{Independence sampler updating with fixed distribution Proposes from a MVN with mean prop_mean and variance-covariance matrix prop_Sigma} \usage{ indep(coef, outcome, data, Xmat, ll_func, dprior...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(plotly) library(tidyverse) library(readxl) library(shinyWidgets) library(tidyr) library(lub...
/IME_score2/app.R
no_license
agiani99/R_shinyapps
R
false
false
14,253
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(plotly) library(tidyverse) library(readxl) library(shinyWidgets) library(tidyr) library(lub...
library (baycn, lib = '/mnt/lfs2/mart9986/Rpackages/') set.seed(68) # The number of data sets to simulate. M <- 25 # Set the parameters for the simdata function b0 <- 0; N <- 200; s <- 1 p <- 0.45; ssc <- 0.2 nC <- 2 ################################################# # ss = 0.2 #############################...
/data/data_gv_m2_nc_2_N_200.R
no_license
audreyqyfu/baycn_simulations
R
false
false
5,006
r
library (baycn, lib = '/mnt/lfs2/mart9986/Rpackages/') set.seed(68) # The number of data sets to simulate. M <- 25 # Set the parameters for the simdata function b0 <- 0; N <- 200; s <- 1 p <- 0.45; ssc <- 0.2 nC <- 2 ################################################# # ss = 0.2 #############################...
load(url("https://github.com/LucyMcGowan/dr-example-code/raw/master/df_continuous.rda")) ## Fit the propensity score ---- df_continuous$p_1 <- predict(glm(z ~ x_1 + x_2, data = df_continuous, family = binomial("probit")), type = "response") ## Create weights ---- ## Calculate the probability o...
/dr-continuous-example.R
no_license
LucyMcGowan/dr-example-code
R
false
false
1,610
r
load(url("https://github.com/LucyMcGowan/dr-example-code/raw/master/df_continuous.rda")) ## Fit the propensity score ---- df_continuous$p_1 <- predict(glm(z ~ x_1 + x_2, data = df_continuous, family = binomial("probit")), type = "response") ## Create weights ---- ## Calculate the probability o...
/R/eMap.R
permissive
connichiha/recharts
R
false
false
4,758
r
FoldedDataTrain<- read.table("../data/FoldedNetworkUndirectedFeatures.tsv", header = TRUE, stringsAsFactors = FALSE) BonacichCentrality <- read.table("../data/bonacich.dat", header = FALSE, stringsAsFactors = FALSE) colnames(BonacichCentrality) <- c("NID", "BonacichCentrality") FoldedDataTrain$BonCen1 <- BonacichCentr...
/src/linkPredictionWithBonacich.R
no_license
akma327/VCNetworks
R
false
false
2,355
r
FoldedDataTrain<- read.table("../data/FoldedNetworkUndirectedFeatures.tsv", header = TRUE, stringsAsFactors = FALSE) BonacichCentrality <- read.table("../data/bonacich.dat", header = FALSE, stringsAsFactors = FALSE) colnames(BonacichCentrality) <- c("NID", "BonacichCentrality") FoldedDataTrain$BonCen1 <- BonacichCentr...
library(ggplot2) ## Kics supplementary plots ## kics_hered <- c('333', '345', '167', '359', '220', '295', '220', '51', '167', '98', '222', '63', '83', '120', '141', '156', '171', '232', '219') kics_p <- read.csv('~/research/KiCS/kics.hg19.pathogenic.cpg.txt',sep='\t') kics_p <- kics_p[!kics_p$kics_id %in% kics_hered,]...
/figures/supp_fig10_kics.R
no_license
vsubasri/LFS-Germline
R
false
false
1,120
r
library(ggplot2) ## Kics supplementary plots ## kics_hered <- c('333', '345', '167', '359', '220', '295', '220', '51', '167', '98', '222', '63', '83', '120', '141', '156', '171', '232', '219') kics_p <- read.csv('~/research/KiCS/kics.hg19.pathogenic.cpg.txt',sep='\t') kics_p <- kics_p[!kics_p$kics_id %in% kics_hered,]...
CoxEP <- function(data, surv_formula, j, cutoff, n, m, lower_tail) { #' Point estimate of the exceedance probability for Cox model parameters #' #' This function obtains point estimates for the exceedance probability for Cox model parameters. #' @param data survival data (data.frame) #' @param surv_formula ...
/R/ep_cox_boot.R
no_license
bdsegal/exceedProb
R
false
false
5,826
r
CoxEP <- function(data, surv_formula, j, cutoff, n, m, lower_tail) { #' Point estimate of the exceedance probability for Cox model parameters #' #' This function obtains point estimates for the exceedance probability for Cox model parameters. #' @param data survival data (data.frame) #' @param surv_formula ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/redcap-version.R \name{redcap_version} \alias{redcap_version} \title{Determine version of REDCap instance} \usage{ redcap_version( redcap_uri, token, verbose = TRUE, config_options = NULL, handle_httr = NULL ) } \arguments{ \item{re...
/man/redcap_version.Rd
permissive
OuhscBbmc/REDCapR
R
false
true
1,927
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/redcap-version.R \name{redcap_version} \alias{redcap_version} \title{Determine version of REDCap instance} \usage{ redcap_version( redcap_uri, token, verbose = TRUE, config_options = NULL, handle_httr = NULL ) } \arguments{ \item{re...
library(shiny) shinyUI( navbarPage("Shiny Application", tabPanel("Analysis", fluidPage( titlePanel("The relationship between variables and miles per gallon (MPG)"), sidebarLayout( sidebarPanel( ...
/shinny app/UI.R
no_license
MrAbdulQadeer/Data-Products-W4-Project
R
false
false
4,641
r
library(shiny) shinyUI( navbarPage("Shiny Application", tabPanel("Analysis", fluidPage( titlePanel("The relationship between variables and miles per gallon (MPG)"), sidebarLayout( sidebarPanel( ...
## This script processes data, performs statistical tests, and generates figures ## for the revised submission of: ## Title: Motor learning without movement ## Authors: Kim, Forrence, McDougle ### USER TODOS: ---------------------------------------------------------------- homedir <- 'C:/Users/kimol/Documents/Gi...
/KimForrenceMcDougle_statisticalAnalysisAndGenerateFigures.R
no_license
kimoli/LearningFromThePathNotTaken
R
false
false
49,627
r
## This script processes data, performs statistical tests, and generates figures ## for the revised submission of: ## Title: Motor learning without movement ## Authors: Kim, Forrence, McDougle ### USER TODOS: ---------------------------------------------------------------- homedir <- 'C:/Users/kimol/Documents/Gi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modify_fmt_fun.R \name{modify_fmt_fun} \alias{modify_fmt_fun} \title{Modify Formatting Functions} \usage{ modify_fmt_fun(x, update, rows = NULL) } \arguments{ \item{x}{gtsummary object} \item{update}{list of formulas or a single formula spec...
/man/modify_fmt_fun.Rd
permissive
ddsjoberg/gtsummary
R
false
true
2,518
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modify_fmt_fun.R \name{modify_fmt_fun} \alias{modify_fmt_fun} \title{Modify Formatting Functions} \usage{ modify_fmt_fun(x, update, rows = NULL) } \arguments{ \item{x}{gtsummary object} \item{update}{list of formulas or a single formula spec...
#NAMES: # Framework data <- read.csv("Kickstarter.csv",na.strings=c("","NA")) sum<-summary(data) # 1) Set your hypothesis, have a specific goal. # Success of project based on backers, money raised, and category. (Quanitative variables are) # For hyp testing (how do these attributes effect the data) # Pr...
/382_F-RP.R
permissive
karanahuja5598/KickStarter-Analysis
R
false
false
5,366
r
#NAMES: # Framework data <- read.csv("Kickstarter.csv",na.strings=c("","NA")) sum<-summary(data) # 1) Set your hypothesis, have a specific goal. # Success of project based on backers, money raised, and category. (Quanitative variables are) # For hyp testing (how do these attributes effect the data) # Pr...
#' QC across multiple scRNAseq datasets #' #' @description Compare multiple scRNA-seq datasets simultaneously on numerous technical and biological features #' @param inputs string vector of file or path names, or a list of SingleCellExperiment or Seurat v3 objects; \cr #' inputs can be a vector of file names (or a ...
/R/scRNABatchQC.R
no_license
pythseq/scRNABatchQC
R
false
false
44,768
r
#' QC across multiple scRNAseq datasets #' #' @description Compare multiple scRNA-seq datasets simultaneously on numerous technical and biological features #' @param inputs string vector of file or path names, or a list of SingleCellExperiment or Seurat v3 objects; \cr #' inputs can be a vector of file names (or a ...
############################################################################################################- # Calculate total catches and catches by category and area # # The output is stored and should then be pasted to caton.csv and caton_cat_area.csv files that contain # the catch data from all years. # # Created ...
/NSHM/Assessment 2020/scripts/a_data_preparation/a1.1_calculate catches by category and area.R
no_license
ices-eg/wg_WGWIDE
R
false
false
2,308
r
############################################################################################################- # Calculate total catches and catches by category and area # # The output is stored and should then be pasted to caton.csv and caton_cat_area.csv files that contain # the catch data from all years. # # Created ...
\name{edge.creation} \alias{edge.creation} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Creating graph edges } \description{ Generates the graph edges, connecting nodes that are the landscape polygons resulting from the landscape clip by the road network. } \usage{ edge.creation(nod...
/man/edge.creation.Rd
no_license
cran/gDefrag
R
false
false
2,314
rd
\name{edge.creation} \alias{edge.creation} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Creating graph edges } \description{ Generates the graph edges, connecting nodes that are the landscape polygons resulting from the landscape clip by the road network. } \usage{ edge.creation(nod...
% (C) 2015 Christian Margreitter % last update: 2017-02-20 \name{clusters} \alias{clusters} \title{Cluster bar plot} \description{ This function plots clusters over a set of trajectories as joint, coloured bar plots. The clusters are sorted beginning with the most populated one in descending order.} \usage{ clusters( c...
/MDplot/man/clusters.Rd
no_license
MDplot/MDplot
R
false
false
1,450
rd
% (C) 2015 Christian Margreitter % last update: 2017-02-20 \name{clusters} \alias{clusters} \title{Cluster bar plot} \description{ This function plots clusters over a set of trajectories as joint, coloured bar plots. The clusters are sorted beginning with the most populated one in descending order.} \usage{ clusters( c...
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----setup, message = FALSE--------------------------------------------------- library(SwimmeR) library(dplyr) ## ----read_results, message = FALSE---------------------------...
/inst/doc/SwimmeR.R
no_license
cran/SwimmeR
R
false
false
6,310
r
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----setup, message = FALSE--------------------------------------------------- library(SwimmeR) library(dplyr) ## ----read_results, message = FALSE---------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{lensColumns} \alias{lensColumns} \title{The number of columns in a lens.org csv data export.} \format{A numeric value. \describe{ \item{lensColumns}{A numeric value of the number of columns in a lens.org patent d...
/man/lensColumns.Rd
no_license
lupok2001/patentr
R
false
true
730
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{lensColumns} \alias{lensColumns} \title{The number of columns in a lens.org csv data export.} \format{A numeric value. \describe{ \item{lensColumns}{A numeric value of the number of columns in a lens.org patent d...
#The default plotdumpdir = ""; #Override during load? .onLoad <- function(...){ plotdumpdir <<- "/tmp/plotfiles" dir.create(plotdumpdir, showWarnings=F); }
/R/onLoad.R
permissive
stefvanbuuren/pubertyplot
R
false
false
159
r
#The default plotdumpdir = ""; #Override during load? .onLoad <- function(...){ plotdumpdir <<- "/tmp/plotfiles" dir.create(plotdumpdir, showWarnings=F); }
library(ape) testtree <- read.tree("3362_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3362_0_unrooted.txt")
/codeml_files/newick_trees_processed/3362_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("3362_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="3362_0_unrooted.txt")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lampsilini.R \docType{data} \name{lampsilini} \alias{lampsilini} \title{Species of the Tribe Lampsilini} \format{A data frame containing one variable. \describe{ \item{lampsilini}{A character vector containing the Genus and species of ...
/man/lampsilini.Rd
permissive
mpdougherty/mcat
R
false
true
721
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lampsilini.R \docType{data} \name{lampsilini} \alias{lampsilini} \title{Species of the Tribe Lampsilini} \format{A data frame containing one variable. \describe{ \item{lampsilini}{A character vector containing the Genus and species of ...
library(tvm) ### Name: irr ### Title: The IRR is returned as an effective rate with periodicity equal ### to that of the cashflow ### Aliases: irr ### ** Examples irr(cf = c(-1, 0.5, 0.9), ts = c(0, 1, 3))
/data/genthat_extracted_code/tvm/examples/irr.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
215
r
library(tvm) ### Name: irr ### Title: The IRR is returned as an effective rate with periodicity equal ### to that of the cashflow ### Aliases: irr ### ** Examples irr(cf = c(-1, 0.5, 0.9), ts = c(0, 1, 3))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.max_acc.R \name{plotting.max_acc} \alias{plotting.max_acc} \title{Maximum binary accuracy plotting} \usage{ plotting.max_acc(preds, labels, plots = TRUE, ...) } \arguments{ \item{preds}{Type: numeric. The predictions.} \item{labels}{Typ...
/man/plotting.max_acc.Rd
no_license
BruceZhaoR/Laurae
R
false
true
697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.max_acc.R \name{plotting.max_acc} \alias{plotting.max_acc} \title{Maximum binary accuracy plotting} \usage{ plotting.max_acc(preds, labels, plots = TRUE, ...) } \arguments{ \item{preds}{Type: numeric. The predictions.} \item{labels}{Typ...
#!/usr/bin/env Rscript # This script will plot output family size histograms as produced by the # SWIFT UMI pipeline. It searches for files <samplename>.counts2hist and plots the # result for all samples in one figure. Run this script using e.g. # Rscript R/plot_family_size_histogram.R library(tidyr) library(ggplot2)...
/R/plot_family_size_histogram.R
no_license
romunov/MID_UMI
R
false
false
2,194
r
#!/usr/bin/env Rscript # This script will plot output family size histograms as produced by the # SWIFT UMI pipeline. It searches for files <samplename>.counts2hist and plots the # result for all samples in one figure. Run this script using e.g. # Rscript R/plot_family_size_histogram.R library(tidyr) library(ggplot2)...
#' @include internal.R pproto.R Parameter-proto.R NULL #' @export if (!methods::isClass("ScalarParameter")) methods::setOldClass("ScalarParameter") NULL #' Scalar parameter prototype #' #' This prototype is used to represent a parameter has a single value. #' \strong{Only experts should interact directly with this pr...
/fuzzedpackages/oppr/R/ScalarParameter-proto.R
no_license
akhikolla/testpackages
R
false
false
3,340
r
#' @include internal.R pproto.R Parameter-proto.R NULL #' @export if (!methods::isClass("ScalarParameter")) methods::setOldClass("ScalarParameter") NULL #' Scalar parameter prototype #' #' This prototype is used to represent a parameter has a single value. #' \strong{Only experts should interact directly with this pr...
# Definición de la parte server shinyServer(function(input, output) { datos <- reactive({ subset(gapminder,continent==input$continent) }) output$evolucion <- renderPlot({ isolate({color=input$color}) ggplot(datos(),aes(x=year,y=lifeExp,group=country)) + geom_line(stat="smooth",meth...
/kschool/week10/Shiny/reactividad/server.R
no_license
msanzsanz/KSchool_dataScienceMaster
R
false
false
499
r
# Definición de la parte server shinyServer(function(input, output) { datos <- reactive({ subset(gapminder,continent==input$continent) }) output$evolucion <- renderPlot({ isolate({color=input$color}) ggplot(datos(),aes(x=year,y=lifeExp,group=country)) + geom_line(stat="smooth",meth...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/runExample.R \name{run_example} \alias{run_example} \title{A function to run the shiny app} \usage{ run_example() } \description{ A function to run the shiny app }
/man/run_example.Rd
no_license
kcf-jackson/maniTools
R
false
true
242
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/runExample.R \name{run_example} \alias{run_example} \title{A function to run the shiny app} \usage{ run_example() } \description{ A function to run the shiny app }
filename = tempfile("plot", fileext = ".png") png(filename) plot(1:10) dev.off() image = readBin(filename, "raw", 29999) unlink(filename) image
/test_servers/nd.R
no_license
mingot/datacademy_node
R
false
false
146
r
filename = tempfile("plot", fileext = ".png") png(filename) plot(1:10) dev.off() image = readBin(filename, "raw", 29999) unlink(filename) image
if(Sys.info()["user"]=="janus829"){source('~/Desktop/Research/Rhodium/R/setup.R')} if(Sys.info()["user"]=="s7m"){source('~/Research/Rhodium/R/setup.R')} if(Sys.info()["user"]=="Ben"){source('/Users/Ben/Github/Rhodium/R/setup.R')} ################################################################## # Bring in WB data # [...
/R/Databuilder/05 - wbData.R
no_license
s7minhas/Rhodium
R
false
false
1,578
r
if(Sys.info()["user"]=="janus829"){source('~/Desktop/Research/Rhodium/R/setup.R')} if(Sys.info()["user"]=="s7m"){source('~/Research/Rhodium/R/setup.R')} if(Sys.info()["user"]=="Ben"){source('/Users/Ben/Github/Rhodium/R/setup.R')} ################################################################## # Bring in WB data # [...
#' Adjust Daily Values by Linear Addition #' #' @param x vector of values (e.g. daily temperature) #' @param months vector of months corresponding to x #' @param mean_change additive factor (scalar or vector of length 12 for monthly) #' @export adjust_daily_additive <- function(x, months, mean_change=0) { stopifnot(l...
/R/adjust_daily_additive.R
no_license
HydrosystemsGroup/Weather-Generator
R
false
false
653
r
#' Adjust Daily Values by Linear Addition #' #' @param x vector of values (e.g. daily temperature) #' @param months vector of months corresponding to x #' @param mean_change additive factor (scalar or vector of length 12 for monthly) #' @export adjust_daily_additive <- function(x, months, mean_change=0) { stopifnot(l...
# Author Dalton Shepherd - University of South Florida - Morsani College of Medicine # Obtained the life expectancy data from worldometers.info/demographics/life-expectancy/ # ----------------------------------------------------------------------------------------------------------------- # Devtools and roxy...
/Main.R
no_license
daltonwesley/Lifeexpectancy-R-project
R
false
false
4,367
r
# Author Dalton Shepherd - University of South Florida - Morsani College of Medicine # Obtained the life expectancy data from worldometers.info/demographics/life-expectancy/ # ----------------------------------------------------------------------------------------------------------------- # Devtools and roxy...
testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(690512751L, 1853060128L, 1130914162L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 6382452L, 1701992037L, 1668575090L, 640286719L, -1L, -536931879L, -640090112L, 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,...
/dexterMST/inst/testfiles/mutate_booklet_score/libFuzzer_mutate_booklet_score/mutate_booklet_score_valgrind_files/1612727405-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
517
r
testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(690512751L, 1853060128L, 1130914162L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 6382452L, 1701992037L, 1668575090L, 640286719L, -1L, -536931879L, -640090112L, 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,...
\name{corDISC} \alias{corDISC} \title{Correlated evolution binary traits} \description{Fits a model of correlated evolution between two or three binary traits} \usage{ corDISC(phy,data, ntraits=2, rate.mat=NULL, model=c("ER","SYM","ARD"), node.states=c("joint", "marginal", "scaled", "none"), lewis.asc.bias=FALSE, p=NU...
/man/corDISC.Rd
no_license
thej022214/corHMM
R
false
false
6,936
rd
\name{corDISC} \alias{corDISC} \title{Correlated evolution binary traits} \description{Fits a model of correlated evolution between two or three binary traits} \usage{ corDISC(phy,data, ntraits=2, rate.mat=NULL, model=c("ER","SYM","ARD"), node.states=c("joint", "marginal", "scaled", "none"), lewis.asc.bias=FALSE, p=NU...
\name{paginatedAsymmetricalScatterMatrix} \alias{paginatedAsymmetricalScatterMatrix} %- Also NEED an '\alias' for EACH other topic documented here. \title{ paginatedAsymmetricalScatterMatrix } \description{ A function that generates a series of asymmetricalScatterMatrices, so that they can be printed or include...
/man/paginatedAsymmetricalScatterMatrix.Rd
no_license
DBoegner/userfriendlyscience
R
false
false
1,961
rd
\name{paginatedAsymmetricalScatterMatrix} \alias{paginatedAsymmetricalScatterMatrix} %- Also NEED an '\alias' for EACH other topic documented here. \title{ paginatedAsymmetricalScatterMatrix } \description{ A function that generates a series of asymmetricalScatterMatrices, so that they can be printed or include...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opts.R \name{opt_all_caps} \alias{opt_all_caps} \title{Option to use all caps in select table locations} \usage{ opt_all_caps( data, all_caps = TRUE, locations = c("column_labels", "stub", "row_group") ) } \arguments{ \item{data}{A tabl...
/man/opt_all_caps.Rd
permissive
d2squared/gt
R
false
true
2,711
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opts.R \name{opt_all_caps} \alias{opt_all_caps} \title{Option to use all caps in select table locations} \usage{ opt_all_caps( data, all_caps = TRUE, locations = c("column_labels", "stub", "row_group") ) } \arguments{ \item{data}{A tabl...
load("sk.uniq.rda") load("skeleton_metadata.rda") # All neurons, coloured by raw type id plot3d(sk.uniq,col=factor(typeid)) # add (uncoloured) somata spheres3d(t(t(skeleton_metadata$kn.e2006.ALLSKELETONS.FINAL2012.allSomata[,1:3])*c(16.5,16.5,25)),rad=2000) # All neurons, coloured by raw type id plot3d(sk.uniq,col=fa...
/03-helmstaedter2013/02-sample-plots.R
permissive
alexanderbates/nat.examples
R
false
false
928
r
load("sk.uniq.rda") load("skeleton_metadata.rda") # All neurons, coloured by raw type id plot3d(sk.uniq,col=factor(typeid)) # add (uncoloured) somata spheres3d(t(t(skeleton_metadata$kn.e2006.ALLSKELETONS.FINAL2012.allSomata[,1:3])*c(16.5,16.5,25)),rad=2000) # All neurons, coloured by raw type id plot3d(sk.uniq,col=fa...
library(blogdown) blogdown::install_hugo() blogdown::new_site(theme = "seanlane/gochowdown") blogdown::build_site() blogdown::serve_site()
/kick.R
permissive
ytake2/COVID-19-responder-guide
R
false
false
141
r
library(blogdown) blogdown::install_hugo() blogdown::new_site(theme = "seanlane/gochowdown") blogdown::build_site() blogdown::serve_site()
##------------------------------------------------------------------ ## The purpose of this script is to: ## 1. ##------------------------------------------------------------------ ##------------------------------------------------------------------ ## Load libraries ##-------------------------------------------------...
/submissions/S003_Submission.r
no_license
bishopsqueeze/k_all
R
false
false
12,306
r
##------------------------------------------------------------------ ## The purpose of this script is to: ## 1. ##------------------------------------------------------------------ ##------------------------------------------------------------------ ## Load libraries ##-------------------------------------------------...
testlist <- list(ends = c(-1125300777L, 765849512L, -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/1609874675-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
737
r
testlist <- list(ends = c(-1125300777L, 765849512L, -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,...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # ################################################################################ # # # # SERVER FO...
/build/classes/tools/Tool2En/server.R
no_license
lerenardprudent/expostats_hors_ligne
R
false
false
103,106
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # ################################################################################ # # # # SERVER FO...
#library(mice) #library('car') library(nnet) library(caret) library(plyr) library(gbm) library(parallel) library(e1071) #"NormalizedGini" is the other half of the metric. This function does most of the work, though SumModelGini <- function(solution, submission) { df = data.frame(solution = solution, submission = sub...
/kaggleGBM.R
no_license
funjo/kaggle_insurance
R
false
false
1,901
r
#library(mice) #library('car') library(nnet) library(caret) library(plyr) library(gbm) library(parallel) library(e1071) #"NormalizedGini" is the other half of the metric. This function does most of the work, though SumModelGini <- function(solution, submission) { df = data.frame(solution = solution, submission = sub...
args <- commandArgs(trailingOnly = T) args fname <- args[1] p_k1 <- as.numeric(args[2]) p_k2 <- as.numeric(args[3]) p_k3 <- as.numeric(args[4]) p_H1 <- as.numeric(args[5]) p_H3 <- as.numeric(args[6]) #p_a <- as.numeric(args[7]) #p_b <- as.numeric(args[8]) #p_c1 <- as.numeric(args[9]) #p_c2 <- as.numeric(args[10...
/Calorimetry/Modeling/old/NM-model3-opt/SUFEX-Model3.R
no_license
newrou/SUFEX-Kinetics
R
false
false
7,246
r
args <- commandArgs(trailingOnly = T) args fname <- args[1] p_k1 <- as.numeric(args[2]) p_k2 <- as.numeric(args[3]) p_k3 <- as.numeric(args[4]) p_H1 <- as.numeric(args[5]) p_H3 <- as.numeric(args[6]) #p_a <- as.numeric(args[7]) #p_b <- as.numeric(args[8]) #p_c1 <- as.numeric(args[9]) #p_c2 <- as.numeric(args[10...
library(ape) testtree <- read.tree("390_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="390_0_unrooted.txt")
/codeml_files/newick_trees_processed/390_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
133
r
library(ape) testtree <- read.tree("390_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="390_0_unrooted.txt")
suppressPackageStartupMessages(library(pbdMPI)) init() source("utils.r") overhead_pbd <- function(n, wait) { wait <- totaltime/n meas <- system.time({ ret <- pbdLapply(1:n, function(i) Sys.sleep(wait)) })[3] meas <- as.numeric(meas) minimum <- totaltime / comm.size() overhead <- meas-minimum r...
/pbd.r
no_license
wrathematics/overheadbench
R
false
false
568
r
suppressPackageStartupMessages(library(pbdMPI)) init() source("utils.r") overhead_pbd <- function(n, wait) { wait <- totaltime/n meas <- system.time({ ret <- pbdLapply(1:n, function(i) Sys.sleep(wait)) })[3] meas <- as.numeric(meas) minimum <- totaltime / comm.size() overhead <- meas-minimum r...
# required inputs: # demand function: demand # Q: initial inv # T: maximal planning horizon # h: variable holding cost per unit inv per unit time # h0: fixed holding cost per unit time # gamma: discounting factor, defaulted to be annual 15% # demand_asm: assumption on demand, deterministic ("DET") or stoc...
/planning_funs.R
no_license
weibm-amazon/mkd_first_RL
R
false
false
14,841
r
# required inputs: # demand function: demand # Q: initial inv # T: maximal planning horizon # h: variable holding cost per unit inv per unit time # h0: fixed holding cost per unit time # gamma: discounting factor, defaulted to be annual 15% # demand_asm: assumption on demand, deterministic ("DET") or stoc...
################################################################################ #' @useDynLib bigstatsr, .registration = TRUE #' @importFrom Rcpp sourceCpp #' @importFrom methods new #' @import foreach #' #' @param X An object of class [FBM][FBM-class]. #' @param X.code An object of class [FBM.code256][FBM.co...
/R/bigstatsr-package.R
no_license
cran/bigstatsr
R
false
false
2,975
r
################################################################################ #' @useDynLib bigstatsr, .registration = TRUE #' @importFrom Rcpp sourceCpp #' @importFrom methods new #' @import foreach #' #' @param X An object of class [FBM][FBM-class]. #' @param X.code An object of class [FBM.code256][FBM.co...
# Script to: # - assign strand information to CpG sites from bismark file # - remove non-interesting dinucleotides (non-cg methylation for example) # - remove non-interesting chromosomes # Input: # single-cell methylation files output from Bismark. In either one of the two following formats: # input_format=1: # chr ...
/serum_cells/preprocessing/metacc/old/assign_strand_old.R
no_license
chrmaniatis/scNMT-seq
R
false
false
4,919
r
# Script to: # - assign strand information to CpG sites from bismark file # - remove non-interesting dinucleotides (non-cg methylation for example) # - remove non-interesting chromosomes # Input: # single-cell methylation files output from Bismark. In either one of the two following formats: # input_format=1: # chr ...
#' ctStanParnames #' #' Gets internal stan parameter names of a ctStanFit object sampled via stan based on specified substrings. #' #' @param x ctStanFit object #' @param substrings vector of character strings, parameter names of the stan model #' containing any of these strings will be returned. Useful strings may be...
/R/ctDiscretePars.R
no_license
cdriveraus/ctsem
R
false
false
15,499
r
#' ctStanParnames #' #' Gets internal stan parameter names of a ctStanFit object sampled via stan based on specified substrings. #' #' @param x ctStanFit object #' @param substrings vector of character strings, parameter names of the stan model #' containing any of these strings will be returned. Useful strings may be...
library(psych) myvars <- c("mpg", "hp", "wt") describe(mtcars[myvars])
/R_in_action/7_basic_statistics/5.R
permissive
HuangStomach/machine-learning
R
false
false
71
r
library(psych) myvars <- c("mpg", "hp", "wt") describe(mtcars[myvars])
## Pre-processing code for analysis of high-content microscopy images processed using Columbus and exported as text files. ## Libraries required library(tidyverse) library(here) # Set working directory setwd("/Users/jacejones-tabah/OneDrive - McGill University/Documents/SingleCell/2021-07-19 Annotated code for Githu...
/Pre-processing of high content FRET data.R
no_license
HebertLab/Single-Cell-FRET
R
false
false
7,803
r
## Pre-processing code for analysis of high-content microscopy images processed using Columbus and exported as text files. ## Libraries required library(tidyverse) library(here) # Set working directory setwd("/Users/jacejones-tabah/OneDrive - McGill University/Documents/SingleCell/2021-07-19 Annotated code for Githu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/explain.R \name{fit_explanation} \alias{fit_explanation} \title{Fit white box model to the simulated data.} \usage{ fit_explanation(live_object, white_box = "regr.lm", kernel = gaussian_kernel, standardize = FALSE, selection = FALSE, resp...
/man/fit_explanation.Rd
no_license
GapData/live
R
false
true
1,570
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/explain.R \name{fit_explanation} \alias{fit_explanation} \title{Fit white box model to the simulated data.} \usage{ fit_explanation(live_object, white_box = "regr.lm", kernel = gaussian_kernel, standardize = FALSE, selection = FALSE, resp...
library(stable) ### Name: stable.mode ### Title: Mode of a Stable Distribution ### Aliases: stable.mode ### Keywords: distribution ### ** Examples x <- seq(-5,5,by=0.1) plot(x,dstable(x,loc=0,disp=1,skew=-1,tail=1.5),type="l",ylab="f(x)") xhat <- stable.mode(loc=0,disp=1,skew=-1,tail=1.5)$ytilde fxhat <- dstable(x...
/data/genthat_extracted_code/stable/examples/stable.mode.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
403
r
library(stable) ### Name: stable.mode ### Title: Mode of a Stable Distribution ### Aliases: stable.mode ### Keywords: distribution ### ** Examples x <- seq(-5,5,by=0.1) plot(x,dstable(x,loc=0,disp=1,skew=-1,tail=1.5),type="l",ylab="f(x)") xhat <- stable.mode(loc=0,disp=1,skew=-1,tail=1.5)$ytilde fxhat <- dstable(x...
#Run as root .libPaths("/usr/lib/opencpu/library") library(RAppArmor) library(unixtools) setgid(33) setuid("www-data") options(rapache=TRUE) library(opencpu) opencpu:::loadconfigs() cranpath <- "/tmp/ocpu-www-data/cran_library" setwd(tempdir()) aa_change_profile("opencpu-main") #build from scratch. Make sure to get ...
/opencpu-server/scripts/install_all_cran.R
no_license
opencpu/opencpu-server
R
false
false
760
r
#Run as root .libPaths("/usr/lib/opencpu/library") library(RAppArmor) library(unixtools) setgid(33) setuid("www-data") options(rapache=TRUE) library(opencpu) opencpu:::loadconfigs() cranpath <- "/tmp/ocpu-www-data/cran_library" setwd(tempdir()) aa_change_profile("opencpu-main") #build from scratch. Make sure to get ...
\name{xbar} \alias{xbar} %- Also NEED an '\alias' for EACH other topic documented here. \title{ evaluate regular expression } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ Partition a vector by buckets } \usage{ y %xbar% x } %- maybe also 'usage' for other objects documented here....
/man/xbar.Rd
permissive
HikaGenji/fql
R
false
false
1,010
rd
\name{xbar} \alias{xbar} %- Also NEED an '\alias' for EACH other topic documented here. \title{ evaluate regular expression } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ Partition a vector by buckets } \usage{ y %xbar% x } %- maybe also 'usage' for other objects documented here....
library(qat) ### Name: qat_call_save_set_nans ### Title: Produce a savelist-entry for a set NAN ### Aliases: qat_call_save_set_nans ### Keywords: utilities ### ** Examples ## still to come
/data/genthat_extracted_code/qat/examples/qat_call_save_set_nans.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
197
r
library(qat) ### Name: qat_call_save_set_nans ### Title: Produce a savelist-entry for a set NAN ### Aliases: qat_call_save_set_nans ### Keywords: utilities ### ** Examples ## still to come
mapsound <- function(df,fromcol,tocol,sourceval) { base <- which(df[[fromcol]] == sourceval) basedf <- df[base,] # determine which rows of basedf correspond to the various mapped # values sp <- split(basedf,basedf[[tocol]]) retval <- list() retval$counts <- sapply(sp,nrow) retval$images <- sp ...
/code/Ch5/mapsound.R
no_license
RmachineLearning/R_artical
R
false
false
338
r
mapsound <- function(df,fromcol,tocol,sourceval) { base <- which(df[[fromcol]] == sourceval) basedf <- df[base,] # determine which rows of basedf correspond to the various mapped # values sp <- split(basedf,basedf[[tocol]]) retval <- list() retval$counts <- sapply(sp,nrow) retval$images <- sp ...
testlist <- list(a = 0L, b = 0L, x = c(-14352384L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610129798-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
262
r
testlist <- list(a = 0L, b = 0L, x = c(-14352384L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
## Fri Mar 07 18:39:01 2014 ## Original file Copyright © 2016 A.C. Guidoum, K. Boukhetala ## This file is part of the R package Sim.DiffProc ## Department of Probabilities & Statistics ## Faculty of Mathematics ## University of Science and Technology Houari Boumediene ## BP 32 El-Alia, U.S.T.H.B, Algiers ## Alge...
/Sim.DiffProc/R/BB.R
no_license
ingted/R-Examples
R
false
false
2,193
r
## Fri Mar 07 18:39:01 2014 ## Original file Copyright © 2016 A.C. Guidoum, K. Boukhetala ## This file is part of the R package Sim.DiffProc ## Department of Probabilities & Statistics ## Faculty of Mathematics ## University of Science and Technology Houari Boumediene ## BP 32 El-Alia, U.S.T.H.B, Algiers ## Alge...
library("devtools") options(devtools.install.args = "--no-multiarch") library("roxygen2") setwd("./ACGCA") document() devtools::build(vignettes = FALSE) setwd("..") install("ACGCA", build_vignettes = FALSE) library(ACGCA) help(package="ACGCA") #browseVignettes("ACGCA")
/ACGCA_Instance/Model/compile_install_test.R
permissive
Rho-mu/capstone19-20
R
false
false
272
r
library("devtools") options(devtools.install.args = "--no-multiarch") library("roxygen2") setwd("./ACGCA") document() devtools::build(vignettes = FALSE) setwd("..") install("ACGCA", build_vignettes = FALSE) library(ACGCA) help(package="ACGCA") #browseVignettes("ACGCA")
# Reproducera graferna i PNG- och PDF-format. # # Notera att objekten "graph" och "df_domains_diff" måste existera först, # se den explorativa analysen i filen analysis.rmd. library(ggraph) library(extrafont) set.seed(799) # Bild 1. Nätverksgraf. gg_graph <- graph %>% # Sätt till 0.01 för noderna någorlunda utsprit...
/R/create_graphs.r
no_license
peterdalle/snabbtankt-valet2018
R
false
false
2,546
r
# Reproducera graferna i PNG- och PDF-format. # # Notera att objekten "graph" och "df_domains_diff" måste existera först, # se den explorativa analysen i filen analysis.rmd. library(ggraph) library(extrafont) set.seed(799) # Bild 1. Nätverksgraf. gg_graph <- graph %>% # Sätt till 0.01 för noderna någorlunda utsprit...
library(gsw) library(fda) library(dplyr) library(argofda) setwd('/home/dyarger/argofda/') load('analysis/results/joint_TS_20/preds.RData') # conditional predictions source('analysis/code/08_mld/mld_by_pressure.R') # load mld funs # set seed for each job array rseed <- 348 set.seed(rseed) all_seeds <- sample(1:(10^6),...
/analysis/code/09_misc_plots/density_by_pressure_grid.R
no_license
xingcheg/argofda
R
false
false
6,264
r
library(gsw) library(fda) library(dplyr) library(argofda) setwd('/home/dyarger/argofda/') load('analysis/results/joint_TS_20/preds.RData') # conditional predictions source('analysis/code/08_mld/mld_by_pressure.R') # load mld funs # set seed for each job array rseed <- 348 set.seed(rseed) all_seeds <- sample(1:(10^6),...
# dataset.org <- read.csv("square_initialtest.csv") # KL情報量の積分領域 r <- 150 # 初期分布内のKL情報量 mu <- matrix(c(1,1),2,1) sigma <- matrix(c(1,0,0,1),2,2) sigmainv <- solve(sigma) d <- det(sigma) d2norm <- function(x,y) { v <- matrix(c(x,y),2,1) return(1/(2*pi*sqrt(d))*exp(-1/2*(t(v-mu)) %*% sigmainv %*% (v-mu))) } x <- seq...
/EM_algorithm/EM_initialtest_analyzer.R
no_license
templateaholic10/testrepo
R
false
false
441
r
# dataset.org <- read.csv("square_initialtest.csv") # KL情報量の積分領域 r <- 150 # 初期分布内のKL情報量 mu <- matrix(c(1,1),2,1) sigma <- matrix(c(1,0,0,1),2,2) sigmainv <- solve(sigma) d <- det(sigma) d2norm <- function(x,y) { v <- matrix(c(x,y),2,1) return(1/(2*pi*sqrt(d))*exp(-1/2*(t(v-mu)) %*% sigmainv %*% (v-mu))) } x <- seq...
.onAttach <- function(lib, pkg) { packageStartupMessage("litRiddle version: ", utils::packageVersion("litRiddle")) }
/R/zzz.R
no_license
computationalstylistics/litRiddle
R
false
false
122
r
.onAttach <- function(lib, pkg) { packageStartupMessage("litRiddle version: ", utils::packageVersion("litRiddle")) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sortable_js.R \name{render_sortable} \alias{render_sortable} \title{Widget render function for use in Shiny.} \usage{ render_sortable(expr, env = parent.frame(), quoted = FALSE) } \arguments{ \item{expr}{An expression} \item{env}{The environ...
/man/render_sortable.Rd
permissive
cderv/sortable
R
false
true
557
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sortable_js.R \name{render_sortable} \alias{render_sortable} \title{Widget render function for use in Shiny.} \usage{ render_sortable(expr, env = parent.frame(), quoted = FALSE) } \arguments{ \item{expr}{An expression} \item{env}{The environ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.nsCosinor.R \name{summary.nsCosinor} \alias{summary.nsCosinor} \title{Summary for a Non-stationary Cosinor} \usage{ \method{summary}{nsCosinor}(object, ...) } \arguments{ \item{object}{a \code{nsCosinor} object produced by \c...
/man/summary.nsCosinor.Rd
no_license
cran/season
R
false
true
1,689
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.nsCosinor.R \name{summary.nsCosinor} \alias{summary.nsCosinor} \title{Summary for a Non-stationary Cosinor} \usage{ \method{summary}{nsCosinor}(object, ...) } \arguments{ \item{object}{a \code{nsCosinor} object produced by \c...
library(data.table) library(ggplot2) library(reshape2) library(RColorBrewer) library(gridExtra) setwd("/Users/chaoqunchen/Documents/Research/Tobacco/processed_data") load("cigar_hms.rdata") county <- read.csv("county_treatment.csv", header = T) store.pharm <- read.csv("pharmacy_store.csv", header = T) # Set plotting ...
/Boston case/tobacco_hms_eda.R
no_license
Superet/Tobacco
R
false
false
6,934
r
library(data.table) library(ggplot2) library(reshape2) library(RColorBrewer) library(gridExtra) setwd("/Users/chaoqunchen/Documents/Research/Tobacco/processed_data") load("cigar_hms.rdata") county <- read.csv("county_treatment.csv", header = T) store.pharm <- read.csv("pharmacy_store.csv", header = T) # Set plotting ...
require(dplyr) ## Knjižnica za lažje manipuliranje XML in HTML datotek require(rvest) ## require(gsubfn) #webpage <- read_html("http://www.reed.edu/ir/geographic_states.html") ## Imenik oseb na FMF url <- "http://www.fmf.uni-lj.si/si/iskanje?q=.&cmd=+I%C5%A1%C4%8Di+&m=any&wm=beg" ## Branje spletne strani stran <- r...
/06_Podatki_na_spletu/viri/web.r
no_license
aleksandrov2/APPR-15-16
R
false
false
2,228
r
require(dplyr) ## Knjižnica za lažje manipuliranje XML in HTML datotek require(rvest) ## require(gsubfn) #webpage <- read_html("http://www.reed.edu/ir/geographic_states.html") ## Imenik oseb na FMF url <- "http://www.fmf.uni-lj.si/si/iskanje?q=.&cmd=+I%C5%A1%C4%8Di+&m=any&wm=beg" ## Branje spletne strani stran <- r...
#!/usr/bin/env Rscript args <- commandArgs() fname <- normalizePath(sub("--file=", "", args[grepl("--file=", args)])) thisfile <- readLines(fname) newfname <- paste0(tempdir(), "/", basename(fname)) writeLines(thisfile[-1:-which(thisfile == "q(\"no\")")], newfname) rmarkdown::render(newfname, output_dir = dirname(fnam...
/test_markdown.Rmd
no_license
AnitaM123/test
R
false
false
637
rmd
#!/usr/bin/env Rscript args <- commandArgs() fname <- normalizePath(sub("--file=", "", args[grepl("--file=", args)])) thisfile <- readLines(fname) newfname <- paste0(tempdir(), "/", basename(fname)) writeLines(thisfile[-1:-which(thisfile == "q(\"no\")")], newfname) rmarkdown::render(newfname, output_dir = dirname(fnam...
###### # F8. Overeenkomst_tabel ##### ## --------------------------------------------------------------------------------------------------------------------------------- # tables that provide the proportion of overlap between recommendations Overeenkomst_tabel <- function(data, type = c("true", "EPST", "n")){ pro...
/SourceFiles/F8. Tabelcomp.R
no_license
MJBuijs/Data-Archive-Thesis-Teacherbased-Routing
R
false
false
3,484
r
###### # F8. Overeenkomst_tabel ##### ## --------------------------------------------------------------------------------------------------------------------------------- # tables that provide the proportion of overlap between recommendations Overeenkomst_tabel <- function(data, type = c("true", "EPST", "n")){ pro...