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
Sys.setenv("R_TESTS" = "") library(testthat) #Need to execute the following for manual checking #Sys.setenv(NOT_CRAN = "true") test_check("growthPheno") #test_check("growthPheno", filter = "Rice")#leave out test in name
/tests/testthat.R
no_license
cran/growthPheno
R
false
false
224
r
Sys.setenv("R_TESTS" = "") library(testthat) #Need to execute the following for manual checking #Sys.setenv(NOT_CRAN = "true") test_check("growthPheno") #test_check("growthPheno", filter = "Rice")#leave out test in name
## run setParameters.R source("setParameters.R") ## run setUp.R source("setUp.R") #---------------------------------- # compile c++ code (fuse.cpp) #---------------------------------- Sys.setenv("PKG_CXXFLAGS" = cxxflag.opts) Sys.setenv("PKG_LIBS" = lib.opts) sourceCpp(sprintf("%s/%s",PATHS[4],files[6])) librar...
/sge/buildnetwork/test.R
no_license
cmclean5/rfuse
R
false
false
1,528
r
## run setParameters.R source("setParameters.R") ## run setUp.R source("setUp.R") #---------------------------------- # compile c++ code (fuse.cpp) #---------------------------------- Sys.setenv("PKG_CXXFLAGS" = cxxflag.opts) Sys.setenv("PKG_LIBS" = lib.opts) sourceCpp(sprintf("%s/%s",PATHS[4],files[6])) librar...
mcmcKappa<-function(data,coder,snippets,codelist){ coder<-c(1:coder) snippets<-c(1:snippets) codelist<-codelist } kappaDataCleaner<-function(data){ require(dplyr) require(tidyr) #### before we continue with ICC we have to complete the data # we expect data to be in a form like this # snippet | code...
/MCMCkappa.R
no_license
meier-flo/MCMCkappa
R
false
false
742
r
mcmcKappa<-function(data,coder,snippets,codelist){ coder<-c(1:coder) snippets<-c(1:snippets) codelist<-codelist } kappaDataCleaner<-function(data){ require(dplyr) require(tidyr) #### before we continue with ICC we have to complete the data # we expect data to be in a form like this # snippet | code...
library(EMD) library(data.table) library(dplyr) library(RcppCNPy) # Clear the workspace rm( list = ls() ) data<-read.csv("../../../Data/kddcup.data_10_percent_corrected", stringsAsFactors = FALSE) # Process the data colnames <- read.table("../../../Data/kddcup.names", skip = 1, sep = ":") names(data) <- colnames$V1 d...
/New/KDD10Percentage/V2/DataV2/window100/extractIMF.R
no_license
mertoo76/Anomaly_Detection
R
false
false
1,121
r
library(EMD) library(data.table) library(dplyr) library(RcppCNPy) # Clear the workspace rm( list = ls() ) data<-read.csv("../../../Data/kddcup.data_10_percent_corrected", stringsAsFactors = FALSE) # Process the data colnames <- read.table("../../../Data/kddcup.names", skip = 1, sep = ":") names(data) <- colnames$V1 d...
shinyUI(fluidPage( titlePanel("Setup Low Rank Approximation Model") , navlistPanel(selected = "Data Upload" , id = 'navigationList' ## keeps track of our state for navigation panel on left , tabPanel(title = "Data Upload" , value = "dataUpload" , f...
/inst/webApps/setupSlaveApp/setupSVDSlave/ui.R
no_license
alhanaei/distcomp
R
false
false
2,519
r
shinyUI(fluidPage( titlePanel("Setup Low Rank Approximation Model") , navlistPanel(selected = "Data Upload" , id = 'navigationList' ## keeps track of our state for navigation panel on left , tabPanel(title = "Data Upload" , value = "dataUpload" , f...
###################################################################################### ## population_list.R ## ## Creates a vector of population names needed for the adaptive tau simulations, ## as well as a vector of starting population sizes. ## Also contains some functions useful to subset results into chromosomal a...
/code/functions/population_list.R
no_license
JSHuisman/Recorder
R
false
false
2,981
r
###################################################################################### ## population_list.R ## ## Creates a vector of population names needed for the adaptive tau simulations, ## as well as a vector of starting population sizes. ## Also contains some functions useful to subset results into chromosomal a...
########################################################## # show updating process iteratively # just paste all of this code into R to execute it # generate data n <- 20 y <- rnorm( n , mean=7 , sd=0.5 ) # assign prior and compute posterior as we add each y value to observations prior.mu <- 3 k.sigma <- sd(y) prior.si...
/OldStuff/bayesian+updating+animation.r
no_license
npp97-field/Working-Code
R
false
false
1,177
r
########################################################## # show updating process iteratively # just paste all of this code into R to execute it # generate data n <- 20 y <- rnorm( n , mean=7 , sd=0.5 ) # assign prior and compute posterior as we add each y value to observations prior.mu <- 3 k.sigma <- sd(y) prior.si...
library(BBmisc) ### Name: binPack ### Title: Simple bin packing. ### Aliases: binPack ### ** Examples x = 1:10 bp = binPack(x, 11) xs = split(x, bp) print(xs) print(sapply(xs, sum))
/data/genthat_extracted_code/BBmisc/examples/binPack.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
189
r
library(BBmisc) ### Name: binPack ### Title: Simple bin packing. ### Aliases: binPack ### ** Examples x = 1:10 bp = binPack(x, 11) xs = split(x, bp) print(xs) print(sapply(xs, sum))
# plot2.R source("readData.R") downloadFile() hpc <- readZip() plot2 <- function() { png("plot2.png") with(hpc, plot( newDateTime, Global_active_power, type="l",ylab="Global Active Power (kilowatts)", xlab="" ) ) dev.off() } plot2()
/plot2.R
no_license
lisah2u/ExData_Plotting1
R
false
false
272
r
# plot2.R source("readData.R") downloadFile() hpc <- readZip() plot2 <- function() { png("plot2.png") with(hpc, plot( newDateTime, Global_active_power, type="l",ylab="Global Active Power (kilowatts)", xlab="" ) ) dev.off() } plot2()
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{LDA_test} \alias{LDA_test} \title{LDA object for testing} \format{A LDA_Gibbs object of 10 topics, 1814 documents and 8008 terms} \usage{ LDA_test } \description{ This LDA object is the result of topic modeling the...
/man/LDA_test.Rd
no_license
doritge/tmutilsr
R
false
true
381
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{LDA_test} \alias{LDA_test} \title{LDA object for testing} \format{A LDA_Gibbs object of 10 topics, 1814 documents and 8008 terms} \usage{ LDA_test } \description{ This LDA object is the result of topic modeling the...
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/lymphoid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.55,family="gaussian",standardize=FALSE) sink('./Model/EN/Lasso/lymphoid/lymphoid_062.txt',appe...
/Model/EN/Lasso/lymphoid/lymphoid_062.R
no_license
leon1003/QSMART
R
false
false
358
r
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/lymphoid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.55,family="gaussian",standardize=FALSE) sink('./Model/EN/Lasso/lymphoid/lymphoid_062.txt',appe...
over.hist.pop.sample_2<-function(Pop,Sam,mean_Sam,step=5,color="red",title="",drawmean=FALSE) { NP<-length(Pop) NS<-length(Sam) N_MS<-length(mean_Sam) ra<-range(c(floor(range(Pop)),ceiling(range(Pop)))) lr<-ra[1] ur<-ra[2] histP<-hist(Pop,breaks=(lr:ur),plot=FALSE) plot(range(lr,ur),range(0,max(histP$co...
/function_2.R
no_license
dorucojoc/Central_limit_theorem_app
R
false
false
1,259
r
over.hist.pop.sample_2<-function(Pop,Sam,mean_Sam,step=5,color="red",title="",drawmean=FALSE) { NP<-length(Pop) NS<-length(Sam) N_MS<-length(mean_Sam) ra<-range(c(floor(range(Pop)),ceiling(range(Pop)))) lr<-ra[1] ur<-ra[2] histP<-hist(Pop,breaks=(lr:ur),plot=FALSE) plot(range(lr,ur),range(0,max(histP$co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as_tibble-methods.R \name{as_tibble.sample_data} \alias{as_tibble.sample_data} \title{as_tibble for sample_data} \usage{ as_tibble.sample_data(x) } \description{ as_tibble for sample_data }
/man/as_tibble.sample_data.Rd
permissive
mikemc/phyloseqpp
R
false
true
268
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as_tibble-methods.R \name{as_tibble.sample_data} \alias{as_tibble.sample_data} \title{as_tibble for sample_data} \usage{ as_tibble.sample_data(x) } \description{ as_tibble for sample_data }
setGeneric('individualsAtPatch', function(patDF, indDF, setup) standardGeneric('individualsAtPatch')) setMethod(f = 'individualsAtPatch', signature = c(patDF='matrix', indDF='matrix', setup='data.frame'), definition = function(patDF, indDF, setup){ patDF[,'agentsPresent'] <- 0 # reset count patDF[,'competitionPayOff'...
/methods/individualsAtPatch.r
no_license
marcosmolla/skew_learning
R
false
false
1,061
r
setGeneric('individualsAtPatch', function(patDF, indDF, setup) standardGeneric('individualsAtPatch')) setMethod(f = 'individualsAtPatch', signature = c(patDF='matrix', indDF='matrix', setup='data.frame'), definition = function(patDF, indDF, setup){ patDF[,'agentsPresent'] <- 0 # reset count patDF[,'competitionPayOff'...
testlist <- list(alpha = c(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, 0L, 0L, 0L), cluster = integer(0), i = 0L, inf = NULL, t_inf = integer(0)) result <- do.call(o2geosocial:::cpp_find_all_descendents,testli...
/o2geosocial/inst/testfiles/cpp_find_all_descendents/libFuzzer_cpp_find_all_descendents/cpp_find_all_descendents_valgrind_files/1612732822-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
335
r
testlist <- list(alpha = c(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, 0L, 0L, 0L), cluster = integer(0), i = 0L, inf = NULL, t_inf = integer(0)) result <- do.call(o2geosocial:::cpp_find_all_descendents,testli...
# 01 ---------------------------- # Cargar librerias library(vroom) library(ggplot2) library(lubridate) library(tidyverse) # 02 ---------------------------- # Cargar informacion col_spec <- cols( .default = col_character(), EDAD = col_double(), MES = col_number() ) sinadef_1 <- vroom("fallecidos_sinadef.csv", ...
/Sinadef_peru.R
no_license
EduTole/SINADEFCOVID
R
false
false
1,240
r
# 01 ---------------------------- # Cargar librerias library(vroom) library(ggplot2) library(lubridate) library(tidyverse) # 02 ---------------------------- # Cargar informacion col_spec <- cols( .default = col_character(), EDAD = col_double(), MES = col_number() ) sinadef_1 <- vroom("fallecidos_sinadef.csv", ...
\name{dlmFilter} \alias{dlmFilter} %- Also NEED an '\alias' for EACH other topic documented here. \title{DLM filtering} \description{ The functions applies Kalman filter to compute filtered values of the state vectors, together with their variance/covariance matrices. By default the function returns an object ...
/man/dlmFilter.Rd
no_license
cran/dlm
R
false
false
3,990
rd
\name{dlmFilter} \alias{dlmFilter} %- Also NEED an '\alias' for EACH other topic documented here. \title{DLM filtering} \description{ The functions applies Kalman filter to compute filtered values of the state vectors, together with their variance/covariance matrices. By default the function returns an object ...
pollutantmean <- function(directory, pollutant, id = 1:332){ values = c() previous_directory <- getwd() setwd(directory) files <- dir() if(pollutant == "nitrate"){ for(i in 1:length(id)){ x = read.csv(files[id[i]]) for(j in 1:length(x$nitrate)){ ...
/pollutantmean.R
no_license
PawFran/r-programming
R
false
false
764
r
pollutantmean <- function(directory, pollutant, id = 1:332){ values = c() previous_directory <- getwd() setwd(directory) files <- dir() if(pollutant == "nitrate"){ for(i in 1:length(id)){ x = read.csv(files[id[i]]) for(j in 1:length(x$nitrate)){ ...
library("testthat") test_check("diagis")
/tests/test_all.R
no_license
cran/diagis
R
false
false
43
r
library("testthat") test_check("diagis")
library(readr) library(dplyr) library(data.tree) library(readr) #### ENTROPY FUNCTION ##### entropy <- function(vector){ h <- 0 vector <- factor(vector) total_obs <- length(vector) for(i in levels(vector)){ # class sum is the number of occurences for class i class_sum <- (sum(vector == i)) # probab...
/ID3_Continous.R
no_license
rodolfoocampo/ID3
R
false
false
3,708
r
library(readr) library(dplyr) library(data.tree) library(readr) #### ENTROPY FUNCTION ##### entropy <- function(vector){ h <- 0 vector <- factor(vector) total_obs <- length(vector) for(i in levels(vector)){ # class sum is the number of occurences for class i class_sum <- (sum(vector == i)) # probab...
test_that <- function(desc, code) { # don't run tests on CRAN enabled <- Sys.getenv("RETICULATE_TESTS_ENABLED", unset = "FALSE") if (enabled %in% "FALSE") testthat::skip_on_cran() # skip if we don't have python skip_if_no_python() # delegate to testthat call <- sys.call() call[[1L]] <- quote(tes...
/R/testthat-helpers.R
permissive
rstudio/reticulate
R
false
false
2,898
r
test_that <- function(desc, code) { # don't run tests on CRAN enabled <- Sys.getenv("RETICULATE_TESTS_ENABLED", unset = "FALSE") if (enabled %in% "FALSE") testthat::skip_on_cran() # skip if we don't have python skip_if_no_python() # delegate to testthat call <- sys.call() call[[1L]] <- quote(tes...
library(rCharts) a <- hPlot(Pulse ~ Height, data = MASS::survey, type = "bubble", title = "Zoom demo", subtitle = "bubble chart", size = "Age", group = "Exer") a$colors('rgba(223, 83, 83, .5)', 'rgba(119, 152, 191, .5)', 'rgba(60, 179, 113, .5)') a$chart(zoomType = "xy") a$exporting(enabl...
/survey.R
no_license
yaoran2000/LearningR
R
false
false
329
r
library(rCharts) a <- hPlot(Pulse ~ Height, data = MASS::survey, type = "bubble", title = "Zoom demo", subtitle = "bubble chart", size = "Age", group = "Exer") a$colors('rgba(223, 83, 83, .5)', 'rgba(119, 152, 191, .5)', 'rgba(60, 179, 113, .5)') a$chart(zoomType = "xy") a$exporting(enabl...
test_that("we can get the authors", { desc <- description$new(test_path("D2")) ans <- c( person("Hadley", "Wickham", email = "h.wickham@gmail.com", role = c("aut", "cre", "cph")), person("Peter", "Danenberg", email = "pcd@roxygen.org", role = c("aut", "cph")), person("Manuel", "E...
/tests/testthat/test-authors.R
permissive
cran/desc
R
false
false
13,674
r
test_that("we can get the authors", { desc <- description$new(test_path("D2")) ans <- c( person("Hadley", "Wickham", email = "h.wickham@gmail.com", role = c("aut", "cre", "cph")), person("Peter", "Danenberg", email = "pcd@roxygen.org", role = c("aut", "cph")), person("Manuel", "E...
#' Rectangle plot #' #' @description Function which plots a rectangle #' based on its apexes. #' #' @param x1 Value of the first point on the X axis. #' @param x2 Value of the second point on the X axis. #' @param x3 Value of the third point on the X axis. #' @param x4 Value of the fourth point on the X axis. #' @param...
/R/fo_plotrec.R
permissive
spacea/projekt.2019.pacocha
R
false
false
1,102
r
#' Rectangle plot #' #' @description Function which plots a rectangle #' based on its apexes. #' #' @param x1 Value of the first point on the X axis. #' @param x2 Value of the second point on the X axis. #' @param x3 Value of the third point on the X axis. #' @param x4 Value of the fourth point on the X axis. #' @param...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repositories.R \name{repos} \alias{repos} \alias{repos_accessions} \title{Get repositories} \usage{ repos(id = NULL, parse = TRUE, ...) repos_accessions(repo_id = NULL, page = 1, limit = 10, parse = TRUE, ...) } \arguments{ \item{id}{(inte...
/man/repos.Rd
no_license
sckott/aspacer
R
false
true
902
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repositories.R \name{repos} \alias{repos} \alias{repos_accessions} \title{Get repositories} \usage{ repos(id = NULL, parse = TRUE, ...) repos_accessions(repo_id = NULL, page = 1, limit = 10, parse = TRUE, ...) } \arguments{ \item{id}{(inte...
#' Legend Theme #' #' Basic formatting for ggplot legends #' #' @param fill_col controls plot background colour,default grey97 #' @param line_col controls plot line colour, default black #' @param pos Legend Postion, default right #' #' @export leg_theme = function(fill_col = "grey97",line_col = "black",pos = "righ...
/R/func_leg_theme.R
no_license
shonawilde/wsdmiscr
R
false
false
597
r
#' Legend Theme #' #' Basic formatting for ggplot legends #' #' @param fill_col controls plot background colour,default grey97 #' @param line_col controls plot line colour, default black #' @param pos Legend Postion, default right #' #' @export leg_theme = function(fill_col = "grey97",line_col = "black",pos = "righ...
library(WGCNA) enableWGCNAThreads() options(stringsAsFactors = FALSE) datExpr <- read.table("selected_cog_matrix.csv", header=T, sep=",", row.names=1) #dat0 <- t(sdata) #adat0 <- as.data.frame(t(sdata)); #dat00 <- dat0[, goodGenes(dat0)] #dat00 <- sdata[, goodGenes(sdata)] #datExpr0 <- as.data.frame...
/wgcna/wgcna.R
no_license
byljcron/csc492bio
R
false
false
3,361
r
library(WGCNA) enableWGCNAThreads() options(stringsAsFactors = FALSE) datExpr <- read.table("selected_cog_matrix.csv", header=T, sep=",", row.names=1) #dat0 <- t(sdata) #adat0 <- as.data.frame(t(sdata)); #dat00 <- dat0[, goodGenes(dat0)] #dat00 <- sdata[, goodGenes(sdata)] #datExpr0 <- as.data.frame...
#setwd("~/Data Science/Coursera John Hopkins/10 Capstone/Project") partitionData <- function(ngrams) { for (i in letters) { theLetter <- toupper(i) if (!exists("ngramName")) {ngramName <- deparse(substitute(ngrams))} theName <- paste0(ngramName,theLetter) theSearch <- paste0("^",i) theFile <- ...
/partitionData.R
no_license
ammraleigh/4CastApp
R
false
false
1,033
r
#setwd("~/Data Science/Coursera John Hopkins/10 Capstone/Project") partitionData <- function(ngrams) { for (i in letters) { theLetter <- toupper(i) if (!exists("ngramName")) {ngramName <- deparse(substitute(ngrams))} theName <- paste0(ngramName,theLetter) theSearch <- paste0("^",i) theFile <- ...
floopReflect <- function(x,y,...) { x2 <- rev(y) y2 <- rev(x) return(floop(x=x2,y=y2,...)) }
/R/floopReflect.R
no_license
spencerm89/hysteresis6
R
false
false
93
r
floopReflect <- function(x,y,...) { x2 <- rev(y) y2 <- rev(x) return(floop(x=x2,y=y2,...)) }
/AYO project graphs.R
no_license
pecos27/Summer-2019-Graphics
R
false
false
1,213
r
################################################### ###### DATA MINING II: TEXT MINING I ###### ################################################### # free memory rm(list = ls()) gc() # We will mine text from Twitter. The extracted # text will then be transformed to build a # document-term matrix. Aft...
/Session-6-Text-Mining/R Scripts/ch-text-mining.R
no_license
HanjoStudy/More_data_mining
R
false
false
17,282
r
################################################### ###### DATA MINING II: TEXT MINING I ###### ################################################### # free memory rm(list = ls()) gc() # We will mine text from Twitter. The extracted # text will then be transformed to build a # document-term matrix. Aft...
library(shiny) library(tidyverse) library(easysorter) library(shinythemes) library(cowplot) library(DT) library(plotly) ######################################### # Load data & functions # ######################################### source("functions.R") ######################################### # ...
/QTL_NIL/app.R
no_license
katiesevans/finemap_NIL
R
false
false
19,004
r
library(shiny) library(tidyverse) library(easysorter) library(shinythemes) library(cowplot) library(DT) library(plotly) ######################################### # Load data & functions # ######################################### source("functions.R") ######################################### # ...
library(itree) ### Name: residuals.itree ### Title: Residuals From a Fitted itree Object ### Aliases: residuals.itree ### Keywords: tree ### ** Examples #the rpart example: fit <- itree(skips ~ Opening + Solder + Mask + PadType + Panel, data=solder, method='anova') summary(residuals(fit)) plot(predict(fit),r...
/data/genthat_extracted_code/itree/examples/residuals.itree.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
338
r
library(itree) ### Name: residuals.itree ### Title: Residuals From a Fitted itree Object ### Aliases: residuals.itree ### Keywords: tree ### ** Examples #the rpart example: fit <- itree(skips ~ Opening + Solder + Mask + PadType + Panel, data=solder, method='anova') summary(residuals(fit)) plot(predict(fit),r...
library(tidyverse) library(plotly) library(IRdisplay) data <- Cpu_Raw data$Phone <- factor(data$Phone, levels=c("Mi 9T", "Nexus 5X", "Nexus 5X Monsoon")) # Violin plot with ggplot2 p <- data %>% ggplot(aes(x=Phone, y =Joule)) + geom_violin() + geom_boxplot(width=0.1) p + ggtitle("CPU - high frequency") + yl...
/Processed Results/Both/Cpu - High Frequency/Cpu - R.R
permissive
S2-group/energy-measures-android-apps-benchmark
R
false
false
358
r
library(tidyverse) library(plotly) library(IRdisplay) data <- Cpu_Raw data$Phone <- factor(data$Phone, levels=c("Mi 9T", "Nexus 5X", "Nexus 5X Monsoon")) # Violin plot with ggplot2 p <- data %>% ggplot(aes(x=Phone, y =Joule)) + geom_violin() + geom_boxplot(width=0.1) p + ggtitle("CPU - high frequency") + yl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{AZURE_2A} \alias{AZURE_2A} \title{AZURE, figure 2A} \format{ A data frame of 3,359 observations and 3 variables: \tabular{lll}{ \tab \code{time} \tab event time (in months) \cr \tab \code{event} \tab DFS event indi...
/man/AZURE_2A.Rd
no_license
Owain-S/kmdata
R
false
true
924
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{AZURE_2A} \alias{AZURE_2A} \title{AZURE, figure 2A} \format{ A data frame of 3,359 observations and 3 variables: \tabular{lll}{ \tab \code{time} \tab event time (in months) \cr \tab \code{event} \tab DFS event indi...
library(shiny) library(shinydashboard) library(dplyr) library(ggplot2) library(DT) library(googleVis) shinyServer(function(input, output, session){ ######################## ### map ################ ######################## ######################## ### gender ############# ######################## o...
/Project1-ExploreVis/seankickham/server.R
no_license
xiyuansun/bootcamp009_project
R
false
false
5,436
r
library(shiny) library(shinydashboard) library(dplyr) library(ggplot2) library(DT) library(googleVis) shinyServer(function(input, output, session){ ######################## ### map ################ ######################## ######################## ### gender ############# ######################## o...
load(file="E:/POOJA/2. MSC PART 2/demo/IND_shp.RData") b <- read.csv("E:/POOJA/2. MSC PART 2/demo/crimes.csv",header = T,sep=',') names(b) # Set the year for map year <- c("2001","2002","2003","2004","2005","2006","2007","2008", "2009","2010","2011","2012") source("E:/POOJA/2. MSC PART 2/demo/stateCrime.R",...
/server.R
no_license
sawntpooja21/Project
R
false
false
32,741
r
load(file="E:/POOJA/2. MSC PART 2/demo/IND_shp.RData") b <- read.csv("E:/POOJA/2. MSC PART 2/demo/crimes.csv",header = T,sep=',') names(b) # Set the year for map year <- c("2001","2002","2003","2004","2005","2006","2007","2008", "2009","2010","2011","2012") source("E:/POOJA/2. MSC PART 2/demo/stateCrime.R",...
source('hclust.from.fcbs.R') # example usage #system('ls */nodecounts > countfiles') #pvc = pvclust_from_cpp('1/hc',readLines('countfiles')) #pdf('pvc.pdf') #plot(pvc) #pvrect(pvc) #pvrect(pvc,lty=2,alpha=0.9) #dev.off() #save(pvc,file='pvc.RData') pvclust_from_cpp = function(hcfile,countfiles=NULL){ require(pvclust...
/pvclust.from.fcbs.R
no_license
jashworth-UTS/fcbs
R
false
false
1,080
r
source('hclust.from.fcbs.R') # example usage #system('ls */nodecounts > countfiles') #pvc = pvclust_from_cpp('1/hc',readLines('countfiles')) #pdf('pvc.pdf') #plot(pvc) #pvrect(pvc) #pvrect(pvc,lty=2,alpha=0.9) #dev.off() #save(pvc,file='pvc.RData') pvclust_from_cpp = function(hcfile,countfiles=NULL){ require(pvclust...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeDendrogram.R \name{.makeDendrogram} \alias{.makeDendrogram} \title{Make the dendrogram for heatmap-style plots} \usage{ .makeDendrogram(df, rowVal, colVal, value) } \arguments{ \item{df}{The data frame to be clustered} \item{rowVal}{The ...
/man/dot-makeDendrogram.Rd
no_license
AngelikaKritz/ngsReports
R
false
true
1,062
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeDendrogram.R \name{.makeDendrogram} \alias{.makeDendrogram} \title{Make the dendrogram for heatmap-style plots} \usage{ .makeDendrogram(df, rowVal, colVal, value) } \arguments{ \item{df}{The data frame to be clustered} \item{rowVal}{The ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{largest} \alias{largest} \title{largest} \usage{ largest(input) } \arguments{ \item{input}{input vector} } \value{ maximum number } \description{ function to get maximum element in R vector. } \examples{ v=c(10,50,5,3) small...
/hard/vectorAnalysis/man/largest.Rd
no_license
KhaledAbdelgalil/Tests-for-the-project-MCMC-for-Forensic-Science-R-Projects-GSOC-2020
R
false
true
333
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{largest} \alias{largest} \title{largest} \usage{ largest(input) } \arguments{ \item{input}{input vector} } \value{ maximum number } \description{ function to get maximum element in R vector. } \examples{ v=c(10,50,5,3) small...
library(rstackdeque) ### Name: as.data.frame.rstack ### Title: Convert an rstack to a data.frame ### Aliases: as.data.frame.rstack ### ** Examples s <- rstack() s <- insert_top(s, data.frame(names = c("Bob", "Joe"), ages = c(25, 18))) s <- insert_top(s, data.frame(names = c("Mary", "Kate", "Ashley"), ages = c(27, 2...
/data/genthat_extracted_code/rstackdeque/examples/as.data.frame.rstack.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
971
r
library(rstackdeque) ### Name: as.data.frame.rstack ### Title: Convert an rstack to a data.frame ### Aliases: as.data.frame.rstack ### ** Examples s <- rstack() s <- insert_top(s, data.frame(names = c("Bob", "Joe"), ages = c(25, 18))) s <- insert_top(s, data.frame(names = c("Mary", "Kate", "Ashley"), ages = c(27, 2...
#_______________________________________________________________________ # # Telomere Distance Calculation # # Calculates the distance from the telomere of the specific significant bins # #_______________________________________________________________________ #Needed for analysis: # signif.bins = matrix of the s...
/Telomere Distance Calculation.R
no_license
kimquililan/CRG_Kim_Scripts
R
false
false
1,448
r
#_______________________________________________________________________ # # Telomere Distance Calculation # # Calculates the distance from the telomere of the specific significant bins # #_______________________________________________________________________ #Needed for analysis: # signif.bins = matrix of the s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlst.R \name{get_samples_bt_st} \alias{get_samples_bt_st} \title{get_samples_by_st} \usage{ get_samples_bt_st(st) } \arguments{ \item{st}{A integer MLST} } \value{ Parsed JSON response. } \description{ Given a ST, return the sample IDs with M...
/staphopia/man/get_samples_bt_st.Rd
no_license
rpetit3/staphopia-r
R
false
true
369
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mlst.R \name{get_samples_bt_st} \alias{get_samples_bt_st} \title{get_samples_by_st} \usage{ get_samples_bt_st(st) } \arguments{ \item{st}{A integer MLST} } \value{ Parsed JSON response. } \description{ Given a ST, return the sample IDs with M...
# Libraries library( "dplyr" ) library( "futile.logger" ) library( "CommunityInference" ) # Constants molecule_adj_file <- "processed-data/molecule_adjacency.rds" # Init flog.threshold(TRACE) # Funcitons #source("R/community-inference.R") # Load similarity if ( !exists( "similarities" ) ) similarities <- readRDS( "...
/R/runASLP.R
permissive
sverchkov/metabolite-and-protein-network-from-knockouts
R
false
false
1,242
r
# Libraries library( "dplyr" ) library( "futile.logger" ) library( "CommunityInference" ) # Constants molecule_adj_file <- "processed-data/molecule_adjacency.rds" # Init flog.threshold(TRACE) # Funcitons #source("R/community-inference.R") # Load similarity if ( !exists( "similarities" ) ) similarities <- readRDS( "...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/confInt.R \name{confInt} \alias{confInt} \title{Add point-wise confidence limits to the graphs of Kaplan-Meier and Aalen-Johansen estimates of survival and cumulative incidence.} \usage{ confInt(x, times, newdata, type, citype, cause, col, lt...
/man/confInt.Rd
no_license
arash2060/prodlim
R
false
true
1,639
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/confInt.R \name{confInt} \alias{confInt} \title{Add point-wise confidence limits to the graphs of Kaplan-Meier and Aalen-Johansen estimates of survival and cumulative incidence.} \usage{ confInt(x, times, newdata, type, citype, cause, col, lt...
# Exercise 6: Husky Football 2015 Season # Read in the Husky Football 2015 game data into a variable called `husky.games.2015` husky.games.2015 <- read.csv('./data/huskies_2015.csv', stringsAsFactors=FALSE) # Create a vector of the teams that the Huskies played against during that season husky.opponent <- c(husky.gam...
/exercise-6/exercise.R
permissive
kelvinkaholi/module9-dataframes
R
false
false
1,747
r
# Exercise 6: Husky Football 2015 Season # Read in the Husky Football 2015 game data into a variable called `husky.games.2015` husky.games.2015 <- read.csv('./data/huskies_2015.csv', stringsAsFactors=FALSE) # Create a vector of the teams that the Huskies played against during that season husky.opponent <- c(husky.gam...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/defunct.R \name{get_text} \alias{get_text} \title{This function is defunct.} \usage{ get_text(...) } \description{ This function is defunct. } \keyword{internal}
/man/get_text-defunct.Rd
permissive
behrica/fulltext
R
false
true
240
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/defunct.R \name{get_text} \alias{get_text} \title{This function is defunct.} \usage{ get_text(...) } \description{ This function is defunct. } \keyword{internal}
install.packages("fmsb") library("fmsb") # Reading in the data from .csv file. This .csv contains 3000+ rows, each of which contains information on a discrete individual sentenced to death by an Egyptian court between 2011 and 2018 EDPI <- read.csv ("egypt_individuals_csv.csv", header=TRUE, sep=",", stringsAsFacto...
/egypt_monthly_radar_github.R
no_license
benjspitler/fmsb-radar-egypt-ksa
R
false
false
8,131
r
install.packages("fmsb") library("fmsb") # Reading in the data from .csv file. This .csv contains 3000+ rows, each of which contains information on a discrete individual sentenced to death by an Egyptian court between 2011 and 2018 EDPI <- read.csv ("egypt_individuals_csv.csv", header=TRUE, sep=",", stringsAsFacto...
library(jsonlite) library(DT) library(httr) set_config(config(ssl_verifypeer = 0L)) library(shinydashboard) options(shiny.sanitize.errors = TRUE) base <- "https:///pamoja-tech.herokuapp.com/api/v1/schools/" # get_info <- GET(paste("https:///pamoja-tech.herokuapp.com/api/v1/","tweets", sep = "")) # get_info_json <- fro...
/UI/global.R
no_license
mcaleb808/pamojaTech-API
R
false
false
1,246
r
library(jsonlite) library(DT) library(httr) set_config(config(ssl_verifypeer = 0L)) library(shinydashboard) options(shiny.sanitize.errors = TRUE) base <- "https:///pamoja-tech.herokuapp.com/api/v1/schools/" # get_info <- GET(paste("https:///pamoja-tech.herokuapp.com/api/v1/","tweets", sep = "")) # get_info_json <- fro...
## Below are two functions, makeCacheMatrix - for creating a special "matrix" object which can also store its ## inverse, and cacheSolve to compute the inverse of the matrix returned by makeCacheMatrix. If matrix inverse ## is already computed then cacheSolve will retrieve it from the cache ## makeCacheMatrix - Thi...
/cachematrix.R
no_license
manish-k-gupta/ProgrammingAssignment2
R
false
false
5,210
r
## Below are two functions, makeCacheMatrix - for creating a special "matrix" object which can also store its ## inverse, and cacheSolve to compute the inverse of the matrix returned by makeCacheMatrix. If matrix inverse ## is already computed then cacheSolve will retrieve it from the cache ## makeCacheMatrix - Thi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_PCAs.R \name{calc_PCAs} \alias{calc_PCAs} \title{Run PCA on gene expression count data} \usage{ \code{ calc_PCAs(counts, cpm=TRUE, log2_transform=FALSE, ...)} } \arguments{ \item{counts}{matrix or data frame of gene expression counts, or...
/man/calc_PCAs.Rd
no_license
zhihua-chen/RNAseQC
R
false
true
1,167
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_PCAs.R \name{calc_PCAs} \alias{calc_PCAs} \title{Run PCA on gene expression count data} \usage{ \code{ calc_PCAs(counts, cpm=TRUE, log2_transform=FALSE, ...)} } \arguments{ \item{counts}{matrix or data frame of gene expression counts, or...
rm(list=ls()) require(dplyr) require(tidyr) require(rgbif) require(taxize) PREDICTS <- readRDS("Raw_Data/Taxa/taxa-2019-05-09-02-34-47.rds") #### load PREDICTS Taxa list PREDICTS$Scientific_Name <- paste(PREDICTS$Genus,PREDICTS$Species) #### create column with scientific name PREDICTS<- PREDICTS %>%...
/Backup_original/GBIF_Query_1_Occurrence counts.R
no_license
RLBat/PUP-SDM
R
false
false
4,896
r
rm(list=ls()) require(dplyr) require(tidyr) require(rgbif) require(taxize) PREDICTS <- readRDS("Raw_Data/Taxa/taxa-2019-05-09-02-34-47.rds") #### load PREDICTS Taxa list PREDICTS$Scientific_Name <- paste(PREDICTS$Genus,PREDICTS$Species) #### create column with scientific name PREDICTS<- PREDICTS %>%...
#- set working directory setwd("D:\\Documents\\Study and small Project training\\project_tsunami\\test\\noaa") options(scipen = 999) # load necessary packages library(neuralnet) library(nnet) library(NeuralNetTools) library(dplyr) library(ggplot2) #library(maptools) library(astsa) library(leaflet) librar...
/ann_predict.R
no_license
ijoroyo/noaacode
R
false
false
6,690
r
#- set working directory setwd("D:\\Documents\\Study and small Project training\\project_tsunami\\test\\noaa") options(scipen = 999) # load necessary packages library(neuralnet) library(nnet) library(NeuralNetTools) library(dplyr) library(ggplot2) #library(maptools) library(astsa) library(leaflet) librar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/machine-learning.R \name{looIndex} \alias{looIndex} \title{Indexes without one sample} \usage{ looIndex(size) } \arguments{ \item{size}{The number of samples} } \value{ A list of indices where one sample is excluded } \description{ Performs t...
/man/looIndex.Rd
permissive
llrs/integration-helper
R
false
true
374
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/machine-learning.R \name{looIndex} \alias{looIndex} \title{Indexes without one sample} \usage{ looIndex(size) } \arguments{ \item{size}{The number of samples} } \value{ A list of indices where one sample is excluded } \description{ Performs t...
############################################################################ #SAVERX Sys.setenv(RETICULATE_PYTHON = "~/miniconda3/envs/SAVERX/bin/python3") library(Matrix) library(SAVERX) setwd("./Mouse_5W/") ptm <- proc.time() file <- saverx("./Mouse_5W.rds", data.species = "Mouse", use.pretrain = F...
/Data/figure3/other_Methods_Imputation/methods_of_R_Verision.R
permissive
QuKunLab/WEDGE
R
false
false
1,212
r
############################################################################ #SAVERX Sys.setenv(RETICULATE_PYTHON = "~/miniconda3/envs/SAVERX/bin/python3") library(Matrix) library(SAVERX) setwd("./Mouse_5W/") ptm <- proc.time() file <- saverx("./Mouse_5W.rds", data.species = "Mouse", use.pretrain = F...
rm(list=ls()) library(XML) library(ggplot2) library(reshape2) library(scales) Sys.setenv(TZ='GMT') source('sig_align_helpers.R') subject="6" first=as.POSIXct(strptime(as.character("20150921071000"),"%Y%m%d%H%M%S"),tz="PDT") last=as.POSIXct(strptime(as.character("20150921080000"),"%Y%m%d%H%M%S"),tz="PDT") subject_dir=...
/anna_code/device_validation/sig_align.R
no_license
AshleyLab/myheartcounts
R
false
false
13,956
r
rm(list=ls()) library(XML) library(ggplot2) library(reshape2) library(scales) Sys.setenv(TZ='GMT') source('sig_align_helpers.R') subject="6" first=as.POSIXct(strptime(as.character("20150921071000"),"%Y%m%d%H%M%S"),tz="PDT") last=as.POSIXct(strptime(as.character("20150921080000"),"%Y%m%d%H%M%S"),tz="PDT") subject_dir=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_quebec_cas_par_age.R \name{type_par_pop_anything_quebec} \alias{type_par_pop_anything_quebec} \title{Title} \usage{ type_par_pop_anything_quebec(type, variable) } \arguments{ \item{variable}{genre "cas_totaux_quotidien" ou} \item{group...
/man/type_par_pop_anything_quebec.Rd
permissive
senphil26/covidtwitterbot
R
false
true
816
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/graph_quebec_cas_par_age.R \name{type_par_pop_anything_quebec} \alias{type_par_pop_anything_quebec} \title{Title} \usage{ type_par_pop_anything_quebec(type, variable) } \arguments{ \item{variable}{genre "cas_totaux_quotidien" ou} \item{group...
library(testthat) library(elementary) test_check("elementary")
/tests/testthat.R
permissive
anaidoo/elementary
R
false
false
64
r
library(testthat) library(elementary) test_check("elementary")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pick_recensus.R \name{pick_recensus} \alias{pick_recensus} \title{Pick rows from table x with no-match in table y (e.g. find recensused trees).} \usage{ pick_recensus(x, y, by = NULL, ...) } \arguments{ \item{x, y}{Dataframes to join: \itemiz...
/man/pick_recensus.Rd
no_license
forestgeo/fgeo.misc
R
false
true
2,956
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pick_recensus.R \name{pick_recensus} \alias{pick_recensus} \title{Pick rows from table x with no-match in table y (e.g. find recensused trees).} \usage{ pick_recensus(x, y, by = NULL, ...) } \arguments{ \item{x, y}{Dataframes to join: \itemiz...
library(ggplot2) library(forecast) library(tseries) setwd("~/Projects/Podcasts") data <- read.csv('data_2019-07-29.csv') data$date <- data$date %>% as.Date freq <- 30 ################################################################## # Analyize each podcast time series to determine arima arguments # ####...
/Podcasts.R
no_license
trevorData/Podcast
R
false
false
30,608
r
library(ggplot2) library(forecast) library(tseries) setwd("~/Projects/Podcasts") data <- read.csv('data_2019-07-29.csv') data$date <- data$date %>% as.Date freq <- 30 ################################################################## # Analyize each podcast time series to determine arima arguments # ####...
library(nycflights13) library(tidyverse ) # # Show year, month and day only. # select(flights, year, month, day) # # Show columns between year and day, inclusively # select(flights, year:day) # # Exclude columns year through day # select(flights, - year:day)
/05.Data-tranformation/04.Select-rows-with-select/00.a.select.R
no_license
ReneNyffenegger/R-for-Data-Science
R
false
false
267
r
library(nycflights13) library(tidyverse ) # # Show year, month and day only. # select(flights, year, month, day) # # Show columns between year and day, inclusively # select(flights, year:day) # # Exclude columns year through day # select(flights, - year:day)
#' Keep or drop elements by name/criteria in data.frame/matrix #' #' \code{keep} selects variables/elements from data.frame by their names or by #' criteria (see \link{criteria}). \code{except} drops variables/elements from #' data.frame by their names or by criteria. Names at the top-level can be #' unquoted (non-s...
/R/keep.R
no_license
mattdowle/expss
R
false
false
5,116
r
#' Keep or drop elements by name/criteria in data.frame/matrix #' #' \code{keep} selects variables/elements from data.frame by their names or by #' criteria (see \link{criteria}). \code{except} drops variables/elements from #' data.frame by their names or by criteria. Names at the top-level can be #' unquoted (non-s...
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) ## added chron lib there (in /lustre, outside the singularity container) Sys.setenv(LANG="en_US.UTF-8") lustre_libs = "/lustre/scratch118/humgen/resources/rlibs3.6.0" .libPaths(lustre_libs) library(magrittr) library(dplyr) library(tidyr) library(purrr) libr...
/bin/scrna/unsync.R
no_license
wtsi-hgi/nextflow-pipelines
R
false
false
1,245
r
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) ## added chron lib there (in /lustre, outside the singularity container) Sys.setenv(LANG="en_US.UTF-8") lustre_libs = "/lustre/scratch118/humgen/resources/rlibs3.6.0" .libPaths(lustre_libs) library(magrittr) library(dplyr) library(tidyr) library(purrr) libr...
#' #' MODIStsp_process #' @description main function of MODIStsp tool. Takes as input processing parameters specified by the user using MODIStsp_GUI and saved in #' MODIStsp_Previous.json (Interactive use), or a user specified JSON file (batch use) (See MODIStsp_main for details ) and performs all required #' processin...
/R/MODIStsp_process.R
no_license
Leo-Rain/MODIStsp
R
false
false
47,215
r
#' #' MODIStsp_process #' @description main function of MODIStsp tool. Takes as input processing parameters specified by the user using MODIStsp_GUI and saved in #' MODIStsp_Previous.json (Interactive use), or a user specified JSON file (batch use) (See MODIStsp_main for details ) and performs all required #' processin...
library(oefenwebDatabase) library(ggplot2) library(tidyverse) library(RColorBrewer) library(lintr) # to put the plots together suppressMessages(library("cowplot")) # to prepare data suppressMessages(library("dplyr")) # make database connection con <- connect() #-------------- Log Data -------------- records <- suppre...
/final.R
no_license
yt123/data_visualization
R
false
false
6,467
r
library(oefenwebDatabase) library(ggplot2) library(tidyverse) library(RColorBrewer) library(lintr) # to put the plots together suppressMessages(library("cowplot")) # to prepare data suppressMessages(library("dplyr")) # make database connection con <- connect() #-------------- Log Data -------------- records <- suppre...
library(gdata) library(ggplot2) RNASeq_vs_FUS <- read.xls("data//Ule_EDtable1.xlsx", sheet=2, method=("csv"), header=TRUE, pattern="Chromosome") # Processing of Ule_EDtable1 sheet 2 # Column names within script differ from those within Ule_EDtable1 due to stylistic changes to table during manuscript prepar...
/figure_scripts/Fig1E_Regression_RNAseq_vs_FUS.R
no_license
brianjoseph1990/recursive_splicing
R
false
false
2,894
r
library(gdata) library(ggplot2) RNASeq_vs_FUS <- read.xls("data//Ule_EDtable1.xlsx", sheet=2, method=("csv"), header=TRUE, pattern="Chromosome") # Processing of Ule_EDtable1 sheet 2 # Column names within script differ from those within Ule_EDtable1 due to stylistic changes to table during manuscript prepar...
library(DESeq2) library(tximport) library(rjson) library(readr) library(ashr) library(vsn) source("change_PCs.R") samples <- read.table("samples.txt", header=TRUE) files <- file.path("/home/hdd/4/rna_rpipiens/quants", samples$sample, "quant.sf") # txOut argument avoid genelevel summary since gene level information is ...
/scripts/DE.R
no_license
rameshbalan/Rpipiens_OPP
R
false
false
1,796
r
library(DESeq2) library(tximport) library(rjson) library(readr) library(ashr) library(vsn) source("change_PCs.R") samples <- read.table("samples.txt", header=TRUE) files <- file.path("/home/hdd/4/rna_rpipiens/quants", samples$sample, "quant.sf") # txOut argument avoid genelevel summary since gene level information is ...
# viene de PAPER_MBA by solving the inverse ISING problem (ok) # # # # # # # # # # # # # # # # # CONDICIONES INCIALES # # # # # # # # # # # # # # # # # # # #04-ago-17 # Alternativas de condicionales iniciales de los acoples y/o magnetizaciones - tipe: # a1 = todos igual a cero. # a2 = todos igual al vector de medias p...
/initial_conditions_function.R
no_license
MAValle/BoltzmannMachine
R
false
false
2,550
r
# viene de PAPER_MBA by solving the inverse ISING problem (ok) # # # # # # # # # # # # # # # # # CONDICIONES INCIALES # # # # # # # # # # # # # # # # # # # #04-ago-17 # Alternativas de condicionales iniciales de los acoples y/o magnetizaciones - tipe: # a1 = todos igual a cero. # a2 = todos igual al vector de medias p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genomics_functions.R \name{referencesets.get} \alias{referencesets.get} \title{Gets a reference set.For the definitions of references and other genomics resources, see[Fundamentals of GoogleGenomics](https://cloud.google.com/genomics/fundamen...
/googlegenomicsv1.auto/man/referencesets.get.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,291
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genomics_functions.R \name{referencesets.get} \alias{referencesets.get} \title{Gets a reference set.For the definitions of references and other genomics resources, see[Fundamentals of GoogleGenomics](https://cloud.google.com/genomics/fundamen...
testlist <- list(x = c(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, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), y = integer(0)) result <- do.call(diffrprojects:::dist_mat_absolute,testlist) str(result)
/diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609960751-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
312
r
testlist <- list(x = c(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, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), y = integer(0)) result <- do.call(diffrprojects:::dist_mat_absolute,testlist) str(result)
# # 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/ # library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output, se...
/server.R
no_license
GrzegorzGrz/NLP_Capstone_final
R
false
false
2,686
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/ # library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output, se...
# Radius r <- 2 # Function to compute the volume of a sphere with radius r # Corrected volume formula volume <- function(r) { return(4/3*pi*r^3) } volume(r) # Function to compute the volumes of the spheres with radius r, r^2 and r^3 volume_vector <- function(r) { volumes = c() for (i in 1:3){ volume...
/st2195_assignment_4/foo.R
no_license
Tsih14934/st2195_assignment_4
R
false
false
465
r
# Radius r <- 2 # Function to compute the volume of a sphere with radius r # Corrected volume formula volume <- function(r) { return(4/3*pi*r^3) } volume(r) # Function to compute the volumes of the spheres with radius r, r^2 and r^3 volume_vector <- function(r) { volumes = c() for (i in 1:3){ volume...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gangsta_s3Objects.R \name{compoundFactory} \alias{compoundFactory} \alias{processFactory} \title{Create \code{gangsta} objects} \usage{ compoundFactory(compoundName, molarRatios, initialMolecules, respirationRate = NA, infiniteCompound = F)...
/man/compoundFactory.Rd
no_license
FluvialLandscapeLab/gangsta
R
false
true
8,921
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gangsta_s3Objects.R \name{compoundFactory} \alias{compoundFactory} \alias{processFactory} \title{Create \code{gangsta} objects} \usage{ compoundFactory(compoundName, molarRatios, initialMolecules, respirationRate = NA, infiniteCompound = F)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{moving_cov_est} \alias{moving_cov_est} \title{Obtains the matrix H_t, under the Moving Covariance model} \usage{ moving_cov_est(rt, V) moving_cov_est(rt, V) } \arguments{ \item{rt}{List of daily returns} \item{V}{Length of...
/man/moving_cov_est.Rd
no_license
WMxiaoshitou/dccmidas
R
false
true
620
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R \name{moving_cov_est} \alias{moving_cov_est} \title{Obtains the matrix H_t, under the Moving Covariance model} \usage{ moving_cov_est(rt, V) moving_cov_est(rt, V) } \arguments{ \item{rt}{List of daily returns} \item{V}{Length of...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/battingStats.R \name{PA} \alias{PA} \title{Calculate plate appearances for batters} \usage{ PA(dat = NULL) } \arguments{ \item{dat}{A data frame you would wish to calculate. The data frame must have the same column names found in The \code{La...
/man/PA.Rd
no_license
Sandy4321/baseballDBR
R
false
true
721
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/battingStats.R \name{PA} \alias{PA} \title{Calculate plate appearances for batters} \usage{ PA(dat = NULL) } \arguments{ \item{dat}{A data frame you would wish to calculate. The data frame must have the same column names found in The \code{La...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ct_csv_data.R \name{ct_csv_data} \alias{ct_csv_data} \title{UN Comtrade data extraction via CSV} \usage{ ct_csv_data(url, colname) } \arguments{ \item{url}{Complete url string of the call to the API.} \item{colname}{Indication as to whether ...
/man/ct_csv_data.Rd
no_license
rtaph/comtradr
R
false
true
1,091
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ct_csv_data.R \name{ct_csv_data} \alias{ct_csv_data} \title{UN Comtrade data extraction via CSV} \usage{ ct_csv_data(url, colname) } \arguments{ \item{url}{Complete url string of the call to the API.} \item{colname}{Indication as to whether ...
#function to get abundance estimates by Region getAbundanceRegionHexagonSHARP<-function(dataIn, speciesName){ region.data<-dataIn #run runUnmarked function mod.1<-tryCatch({runUnmarkedAllYearsRegionHexagon(dataIn=region.data, speciesName=speciesName)}, error=function(cond1){ ...
/R_source/getAbundanceRegionHexagonSHARP.R
no_license
zachladin/Salt-Marsh-Integrity-Bird-Abundance-Models
R
false
false
1,093
r
#function to get abundance estimates by Region getAbundanceRegionHexagonSHARP<-function(dataIn, speciesName){ region.data<-dataIn #run runUnmarked function mod.1<-tryCatch({runUnmarkedAllYearsRegionHexagon(dataIn=region.data, speciesName=speciesName)}, error=function(cond1){ ...
library(RxODE) library(nlmixr) library(xpose) library(xpose.nlmixr) library(ggplot2) rm(list=ls(all=TRUE)) graphics.off() dat <- read.table("EBOV.txt", head=TRUE) str(dat) ggplot(dat, aes(TIME, DV)) + geom_line(aes(group=id), col="red") + scale_x_continuous("Time (d)") + scale_y_continuous("log10 Viremia ...
/vivomodel_updated.R
no_license
ONYLAB/nlmixrrep
R
false
false
3,126
r
library(RxODE) library(nlmixr) library(xpose) library(xpose.nlmixr) library(ggplot2) rm(list=ls(all=TRUE)) graphics.off() dat <- read.table("EBOV.txt", head=TRUE) str(dat) ggplot(dat, aes(TIME, DV)) + geom_line(aes(group=id), col="red") + scale_x_continuous("Time (d)") + scale_y_continuous("log10 Viremia ...
#' BamFileSortIndexVisualization #' #' @param input.file.dir #' @param output.file.dir #' @param genome #' #' @return #' @export #' #' @examples #' #' input.file.dir="/projects/scratch/bbc/Project/Danny_chip/Alignment/BWA/" #' output.file.dir="/scratch/projects/bbc/aiminy_project/ #' genome="Hs" #' #' BamFileSort...
/R/BamFileSortIndexVisualization.R
no_license
bioinformatics-gao/ChipSeq
R
false
false
1,982
r
#' BamFileSortIndexVisualization #' #' @param input.file.dir #' @param output.file.dir #' @param genome #' #' @return #' @export #' #' @examples #' #' input.file.dir="/projects/scratch/bbc/Project/Danny_chip/Alignment/BWA/" #' output.file.dir="/scratch/projects/bbc/aiminy_project/ #' genome="Hs" #' #' BamFileSort...
library(shiny) shinyUI(fluidPage( titlePanel("Variants Filtering and Prioritization"), br(), sidebarLayout( sidebarPanel( helpText("Filter your data in order to do the variant prioritization. The file must be separated by tabulations. Limit size of 200MB."), fileInput("file1", "Upload file:"),...
/app-variant-prioritization/ui.R
no_license
alsanju/shiny
R
false
false
505
r
library(shiny) shinyUI(fluidPage( titlePanel("Variants Filtering and Prioritization"), br(), sidebarLayout( sidebarPanel( helpText("Filter your data in order to do the variant prioritization. The file must be separated by tabulations. Limit size of 200MB."), fileInput("file1", "Upload file:"),...
##GAM library(mgcv) library(visreg) library(xtable) setwd('/Users/Michela/Documents/MSc Biostatistics/Seminar/Case Study') # change here ted <- read.csv("ted_for_modeling2.csv") ted$event_binary = 1*(ted$event_binary=='TED') ted$days <- as.numeric(as.Date("2017-09-21") -as.Date(ted$published_date)) #fir the gam...
/mgcv.R
no_license
michelapanarella/2018-SSC-Case-Study
R
false
false
10,406
r
##GAM library(mgcv) library(visreg) library(xtable) setwd('/Users/Michela/Documents/MSc Biostatistics/Seminar/Case Study') # change here ted <- read.csv("ted_for_modeling2.csv") ted$event_binary = 1*(ted$event_binary=='TED') ted$days <- as.numeric(as.Date("2017-09-21") -as.Date(ted$published_date)) #fir the gam...
library(ggplot2) setwd("/Users/jda43/Downloads") d = read.csv("trumpumargin.csv") summary(d) d[,4]=d[,2]-d[,3] colnames(d)[4]='Difference' d=data.frame(d) d$Difference d2=d[order(d$Difference),] d2 str(d2) ggplot(data=d2, aes(x=reorder(University, -Difference),y=Difference,)) + geom_bar(stat = "identity", aes(...
/geneasyanalysis.R
no_license
jaskonas/rfiles-public
R
false
false
839
r
library(ggplot2) setwd("/Users/jda43/Downloads") d = read.csv("trumpumargin.csv") summary(d) d[,4]=d[,2]-d[,3] colnames(d)[4]='Difference' d=data.frame(d) d$Difference d2=d[order(d$Difference),] d2 str(d2) ggplot(data=d2, aes(x=reorder(University, -Difference),y=Difference,)) + geom_bar(stat = "identity", aes(...
library(dplyr) library(rlang) library(base) library(lubridate) library(tibble) require(data.table) AcuteToxSet <- subset(tox_SortMRNLateralityDate, acute==1) na.omit(AcuteToxSet) class(AcuteToxSet) AcuteToxSet$Fatigue which.max(AcuteToxSet$Fatigue) TxItem <- c("Fatigue", "Cosmesis", "Radation_Dermatitis", "Hyperpigm...
/AcuteTox.R
no_license
hongye3000/tox
R
false
false
2,535
r
library(dplyr) library(rlang) library(base) library(lubridate) library(tibble) require(data.table) AcuteToxSet <- subset(tox_SortMRNLateralityDate, acute==1) na.omit(AcuteToxSet) class(AcuteToxSet) AcuteToxSet$Fatigue which.max(AcuteToxSet$Fatigue) TxItem <- c("Fatigue", "Cosmesis", "Radation_Dermatitis", "Hyperpigm...
## Put comments here that give an overall description of what your ## functions do # The following function creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } ...
/cachematrix.R
no_license
datss/ProgrammingAssignment2
R
false
false
1,125
r
## Put comments here that give an overall description of what your ## functions do # The following function creates a special "matrix" object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } ...
data <- loadData() png("plot3.png", width=400, height=400) plot(data$Time,data$Sub_metering_1, type ="l", col = "black", xlab = "", ylab="Energy sub metering") lines(data$Time, data$Sub_metering_2, col="red") lines(data$Time, data$Sub_metering_3, col="blue") legend("topright",col=c("black", "red", "blue"),c("Sub_meteri...
/plot3.R
no_license
francoisReynald/ExData_Plotting1
R
false
false
379
r
data <- loadData() png("plot3.png", width=400, height=400) plot(data$Time,data$Sub_metering_1, type ="l", col = "black", xlab = "", ylab="Energy sub metering") lines(data$Time, data$Sub_metering_2, col="red") lines(data$Time, data$Sub_metering_3, col="blue") legend("topright",col=c("black", "red", "blue"),c("Sub_meteri...
#Question 1 library(lubridate) count_bizday <- function(year) { day1 <- 1 day2 <- 1 c <- (year-1) %/% 100 y <- (year-1) %% 100 w1 <- (1 + y + y%/%4 + c%/%4 +5*c+ 36) %% 7 w2 <- (w1+1) %% 7 if(w1 %in% c(1,0)){day1 <- 0} if(w2 %in% c(1,0)){day2 <- 0} if ((year%%4 != 0) | (year%%400 != 0 & year%%1...
/2019/Assignment/FE8828-Qu Mengyuan/Assignment2/YY_Assignment 2.R
no_license
leafyoung/fe8828
R
false
false
1,769
r
#Question 1 library(lubridate) count_bizday <- function(year) { day1 <- 1 day2 <- 1 c <- (year-1) %/% 100 y <- (year-1) %% 100 w1 <- (1 + y + y%/%4 + c%/%4 +5*c+ 36) %% 7 w2 <- (w1+1) %% 7 if(w1 %in% c(1,0)){day1 <- 0} if(w2 %in% c(1,0)){day2 <- 0} if ((year%%4 != 0) | (year%%400 != 0 & year%%1...
library(dslabs) data("murders") class(murders) # Shows class type str(murders) # Print as a string head(murders) # First few lines names(murders) # Shows column headers # Arrays are called Vectors murders$population # Prints population column class(murders$population) # Numerical Vector pop <- murders$population le...
/examples.r
no_license
mcclowes/r-scripts
R
false
false
599
r
library(dslabs) data("murders") class(murders) # Shows class type str(murders) # Print as a string head(murders) # First few lines names(murders) # Shows column headers # Arrays are called Vectors murders$population # Prints population column class(murders$population) # Numerical Vector pop <- murders$population le...
mkjp <- function( indata, m, bigK, seed = -1, ntree = 1000) { ## must have 2 <= 2*m+2 <= bigK data <- indata ncols <- ncol(data) nrows <- nrow(data) colnames <- names(data) jpout <- list() jpout[[1]] <- c( mean(data[,1]==0), mean(data[,1]==1...
/R/mkjp.R
no_license
cran/salbm
R
false
false
2,480
r
mkjp <- function( indata, m, bigK, seed = -1, ntree = 1000) { ## must have 2 <= 2*m+2 <= bigK data <- indata ncols <- ncol(data) nrows <- nrow(data) colnames <- names(data) jpout <- list() jpout[[1]] <- c( mean(data[,1]==0), mean(data[,1]==1...
\name{seewave} \alias{seewave-package} \alias{seewave} \docType{package} \title{Sound analysis and synthesis} \description{seewave provides functions for analysing, manipulating, displaying, editing and synthesizing time waves (particularly sound). This package processes in particular time analysis (oscillograms an...
/man/seewave.package.Rd
no_license
cran/seewave
R
false
false
2,406
rd
\name{seewave} \alias{seewave-package} \alias{seewave} \docType{package} \title{Sound analysis and synthesis} \description{seewave provides functions for analysing, manipulating, displaying, editing and synthesizing time waves (particularly sound). This package processes in particular time analysis (oscillograms an...
log_slope_luk <- function(a,b){ return(tryCatch(log(abs(b))-log(abs(a)),error = function(e) {print(paste0("Tried slope with: ",a ," ",b));return("log slope error")} )) }
/R/log_slope_luk.R
no_license
microsud/gLVInterNetworks
R
false
false
178
r
log_slope_luk <- function(a,b){ return(tryCatch(log(abs(b))-log(abs(a)),error = function(e) {print(paste0("Tried slope with: ",a ," ",b));return("log slope error")} )) }
library(subspace) ### Name: ProClus ### Title: The ProClus Algorithm for Projected Clustering ### Aliases: ProClus ### ** Examples data("subspace_dataset") ProClus(subspace_dataset,k=12,d=2.5)
/data/genthat_extracted_code/subspace/examples/ProClus.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
200
r
library(subspace) ### Name: ProClus ### Title: The ProClus Algorithm for Projected Clustering ### Aliases: ProClus ### ** Examples data("subspace_dataset") ProClus(subspace_dataset,k=12,d=2.5)
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lgcpInternals.R \name{bt.scalar} \alias{bt.scalar} \title{bt.scalar function} \usage{ bt.scalar(t, theta) } \arguments{ \item{t}{change in time, see Brix and Diggle (2001)} \item{theta}{parameter beta in Brix and Diggle} } \value{ .....
/man/bt.scalar.Rd
no_license
bentaylor1/lgcp
R
false
false
360
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lgcpInternals.R \name{bt.scalar} \alias{bt.scalar} \title{bt.scalar function} \usage{ bt.scalar(t, theta) } \arguments{ \item{t}{change in time, see Brix and Diggle (2001)} \item{theta}{parameter beta in Brix and Diggle} } \value{ .....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/easybiomart.R \name{getSequence_cDNA} \alias{getSequence_cDNA} \title{get cDNA sequence} \usage{ getSequence_cDNA( input, which.mart = mart, which.type = "external_gene_name", which.seq.type = "cdna", fasta.output = "" ) } \argument...
/man/getSequence_cDNA.Rd
no_license
utnesp/Easy-bioMart
R
false
true
411
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/easybiomart.R \name{getSequence_cDNA} \alias{getSequence_cDNA} \title{get cDNA sequence} \usage{ getSequence_cDNA( input, which.mart = mart, which.type = "external_gene_name", which.seq.type = "cdna", fasta.output = "" ) } \argument...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tourism.R \name{getHotelOperationRate} \alias{getHotelOperationRate} \title{Operation Rate} \usage{ getHotelOperationRate(api_key, unit, prefCode) } \arguments{ \item{api_key}{Your API application key} \item{unit}{Unit 0 returns annual data,...
/man/getHotelOperationRate.Rd
no_license
koki25ando/ResasAPI
R
false
true
878
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tourism.R \name{getHotelOperationRate} \alias{getHotelOperationRate} \title{Operation Rate} \usage{ getHotelOperationRate(api_key, unit, prefCode) } \arguments{ \item{api_key}{Your API application key} \item{unit}{Unit 0 returns annual data,...
/man/gcmrec.Rd
no_license
Rumenick/gcmrec
R
false
false
11,601
rd
#################################### # OpenMeta[Analyst] # # ---- # # meta_graph.r # # This R module is responsible for generating # # graphs for n...
/R/src/meta_graph.r
no_license
HocineTighi/OpenMeta-analyst-
R
false
false
490
r
#################################### # OpenMeta[Analyst] # # ---- # # meta_graph.r # # This R module is responsible for generating # # graphs for n...
probabilities <- c(0.99, 0.999, 0.9999) sampleSize <- c(10, 20) graphs <- c("dodecahedron", "grid3", "grid4") scenarios <- expand.grid(method = c("withMerging", "withoutMerging"), sampleSize = sampleSize, stringsAsFactors=FALSE, graph = graphs, nReps = 60000L, probability = probabilities) scenarios$file <- apply(scena...
/SimulationsWithVariance/generateScenarios.R
no_license
rohan-shah/networkReliability
R
false
false
454
r
probabilities <- c(0.99, 0.999, 0.9999) sampleSize <- c(10, 20) graphs <- c("dodecahedron", "grid3", "grid4") scenarios <- expand.grid(method = c("withMerging", "withoutMerging"), sampleSize = sampleSize, stringsAsFactors=FALSE, graph = graphs, nReps = 60000L, probability = probabilities) scenarios$file <- apply(scena...
setwd("C:/Users/dell/Desktop/ProgrammingAssignment2-master/ProgrammingAssignment2-master") # Caching the Inverse of a Matrix: # Matrix inversion is usually a costly computation # There may be some benefit to caching the inverse of a matrix rather than compute it repeatedly. # Here, a pair of functions that are used...
/cachematrix.R
no_license
hali77/R-programming
R
false
false
1,494
r
setwd("C:/Users/dell/Desktop/ProgrammingAssignment2-master/ProgrammingAssignment2-master") # Caching the Inverse of a Matrix: # Matrix inversion is usually a costly computation # There may be some benefit to caching the inverse of a matrix rather than compute it repeatedly. # Here, a pair of functions that are used...
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_water_L232.water_demand_manufacturing #' #' Computes manufacturing water withdrawal/consumption coefficients (m3/GJ output) by region and year #' #' @param command API command to execute #' @param ... other optional parameters, depending on ...
/R/zchunk_L232.water_demand_manufacturing.R
permissive
Liyang-Guo/gcamdata
R
false
false
4,729
r
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_water_L232.water_demand_manufacturing #' #' Computes manufacturing water withdrawal/consumption coefficients (m3/GJ output) by region and year #' #' @param command API command to execute #' @param ... other optional parameters, depending on ...
library(shiny) library(shinyjs) htmlOutput("page")
/ui.R
no_license
shriharsha05/Rshiny-experiments
R
false
false
50
r
library(shiny) library(shinyjs) htmlOutput("page")