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
setwd("~/R Projects/lectures-ml/competition/titanic-classification/titanic-kaggle") library(doParallel) cl <- makeCluster(detectCores(), type='PSOCK') registerDoParallel(cl) library(ggplot2) library(plyr) library(dplyr) library(pROC) library(zoo) library(caret) training <- read.csv("./data/train.csv", stringsAsFac...
/titanic-classification-model-tuning.R
no_license
designervga/titanic-kaggle
R
false
false
15,611
r
setwd("~/R Projects/lectures-ml/competition/titanic-classification/titanic-kaggle") library(doParallel) cl <- makeCluster(detectCores(), type='PSOCK') registerDoParallel(cl) library(ggplot2) library(plyr) library(dplyr) library(pROC) library(zoo) library(caret) training <- read.csv("./data/train.csv", stringsAsFac...
ibrary(tidyverse) load("rdas/murders.rda") murders %>% mutate(abb = reorder(abb, rate)) %>% ggplot(aes(abb, rate)) + geom_bar(width = 0.5, stat = "identity", color = "black") + coord_flip() ggsave("figs/barplot.png")
/analysis.R
no_license
Shaolin-Mei/murders
R
false
false
230
r
ibrary(tidyverse) load("rdas/murders.rda") murders %>% mutate(abb = reorder(abb, rate)) %>% ggplot(aes(abb, rate)) + geom_bar(width = 0.5, stat = "identity", color = "black") + coord_flip() ggsave("figs/barplot.png")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/function_prepare.R \name{stat_segm} \alias{stat_segm} \title{Calculate statistics on a given segmentation} \usage{ stat_segm( data, diag.var, order.var = NULL, param = NULL, seg.type = NULL, nseg ) } \arguments{ \i...
/man/stat_segm.Rd
no_license
rpatin/segclust2d
R
false
true
1,304
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/function_prepare.R \name{stat_segm} \alias{stat_segm} \title{Calculate statistics on a given segmentation} \usage{ stat_segm( data, diag.var, order.var = NULL, param = NULL, seg.type = NULL, nseg ) } \arguments{ \i...
shinyServer(function(input, output) { value<-reactiveValues(click=FALSE) Data <- reactive({ # input$file1 will be NULL initially. After the user selects and uploads a # file, it will be a data frame with 'name', 'size', 'type', and 'datapath' # columns. The 'datapath' column will co...
/admin/server.R
no_license
shubham414/Analytics-in-Academics
R
false
false
20,964
r
shinyServer(function(input, output) { value<-reactiveValues(click=FALSE) Data <- reactive({ # input$file1 will be NULL initially. After the user selects and uploads a # file, it will be a data frame with 'name', 'size', 'type', and 'datapath' # columns. The 'datapath' column will co...
library(MESS) ### Name: clotting ### Title: Blood clotting for 158 rats ### Aliases: clotting ### Keywords: datasets ### ** Examples data(clotting) dim(clotting) head(clotting) day0= transform(clotting, day=0, pca=PCA0) day4= transform(clotting, day=4, pca=PCA4) day.both= rbind(day0,day4) m1= lm(pca ~ rat +...
/data/genthat_extracted_code/MESS/examples/clotting.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
541
r
library(MESS) ### Name: clotting ### Title: Blood clotting for 158 rats ### Aliases: clotting ### Keywords: datasets ### ** Examples data(clotting) dim(clotting) head(clotting) day0= transform(clotting, day=0, pca=PCA0) day4= transform(clotting, day=4, pca=PCA4) day.both= rbind(day0,day4) m1= lm(pca ~ rat +...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/facet_gridh_paginate.R \docType{data} \name{facet_gridh_paginate} \alias{facet_gridh_paginate} \alias{FacetGridhPaginate} \title{Split facet_grid from boxploth over multiple plots} \usage{ facet_gridh_paginate( facets, margins = FALSE, ...
/man/facet_gridh_paginate.Rd
no_license
crotoc/ggfaceth
R
false
true
4,197
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/facet_gridh_paginate.R \docType{data} \name{facet_gridh_paginate} \alias{facet_gridh_paginate} \alias{FacetGridhPaginate} \title{Split facet_grid from boxploth over multiple plots} \usage{ facet_gridh_paginate( facets, margins = FALSE, ...
\name{california.blkgrp} \Rdversion{1.1} \alias{california.blkgrp} \docType{data} \title{ california.blkgrp } \description{ california.blkgrp is a \code{\link[sp:SpatialPolygonsDataFrame]{SpatialPolygonsDataFrame}} with polygons made from the 2000 US Census tiger/line boundary files (\url{http://www.census.gov/geo/www...
/man/california.blkgrp.Rd
no_license
cran/UScensus2000blkgrp
R
false
false
9,851
rd
\name{california.blkgrp} \Rdversion{1.1} \alias{california.blkgrp} \docType{data} \title{ california.blkgrp } \description{ california.blkgrp is a \code{\link[sp:SpatialPolygonsDataFrame]{SpatialPolygonsDataFrame}} with polygons made from the 2000 US Census tiger/line boundary files (\url{http://www.census.gov/geo/www...
############################### Calculate beta diversity for datasets ######### # R function to script # R script (09/13) for analyses in Weissbecker et al. 2018 # version: August 2018 ###################### library(vegan) #vegan_2.5-2 library(gdata) #gdata_2.18.0 #sessionInfo() #R version 3.5.1 ...
/09_Plot_beta_fungi_localtree_function.R
no_license
cw-ufz/BEFChina_fungaldiversity
R
false
false
1,369
r
############################### Calculate beta diversity for datasets ######### # R function to script # R script (09/13) for analyses in Weissbecker et al. 2018 # version: August 2018 ###################### library(vegan) #vegan_2.5-2 library(gdata) #gdata_2.18.0 #sessionInfo() #R version 3.5.1 ...
#cmd -> 프로젝트폴더로 이동 # -> java -Dwebdriver.chrome.driver="chromedriver.exe" -jar selenium-server-standalone-4.0.0-alpha-1.jar -port 4445 library(RSelenium) remDr <- remoteDriver(remoteServerAddr = "localhost" , port = 4445, browserName = "chrome") remDr$open() site <- 'https://www.acmicpc.net/pro...
/s_project.R
no_license
lee-dk/R
R
false
false
2,812
r
#cmd -> 프로젝트폴더로 이동 # -> java -Dwebdriver.chrome.driver="chromedriver.exe" -jar selenium-server-standalone-4.0.0-alpha-1.jar -port 4445 library(RSelenium) remDr <- remoteDriver(remoteServerAddr = "localhost" , port = 4445, browserName = "chrome") remDr$open() site <- 'https://www.acmicpc.net/pro...
library(powstreams) library(streamMetabolizer) library(plyr) library(fBasics) #Elevation files required a little clean-up ahead of importing into R. #Following sites caused problems importing data, so they were deleted: #02231254, 03220510, 295554095095093402, 46093912.... #Set working directory workingDir <- "c:/Use...
/sandbox_ted/dielSaturation06022015.R
permissive
tedstets-usgs/stream_metab_usa
R
false
false
6,824
r
library(powstreams) library(streamMetabolizer) library(plyr) library(fBasics) #Elevation files required a little clean-up ahead of importing into R. #Following sites caused problems importing data, so they were deleted: #02231254, 03220510, 295554095095093402, 46093912.... #Set working directory workingDir <- "c:/Use...
# harmony suppressMessages(library("arrow")) suppressMessages(library("Seurat")) suppressMessages(library("harmony")) source("../../scripts/cluster_tools.r") samplingPos <- "." OUT <- paste0("03-expression/merged/cellAlign/", samplingPos) dir.create(OUT, showWarnings = F, recursive = T) #load(file = paste0(OUT, "/cel...
/scRNA-seq/pooled_data_all/17_thymus/do_cellAlign.r
permissive
shunsunsun/GeACT
R
false
false
4,350
r
# harmony suppressMessages(library("arrow")) suppressMessages(library("Seurat")) suppressMessages(library("harmony")) source("../../scripts/cluster_tools.r") samplingPos <- "." OUT <- paste0("03-expression/merged/cellAlign/", samplingPos) dir.create(OUT, showWarnings = F, recursive = T) #load(file = paste0(OUT, "/cel...
#' mkhist() function to create #' histograms from df variables #' @export mkhist <- function(x){ print(x %>% head()) x %>% gather() %>% head() ggplot(gather(x), aes(value)) + geom_histogram(bins=20) + facet_wrap(~key, scales='free_x') }
/R/mkhist.R
no_license
wyocompbio/mkhist
R
false
false
248
r
#' mkhist() function to create #' histograms from df variables #' @export mkhist <- function(x){ print(x %>% head()) x %>% gather() %>% head() ggplot(gather(x), aes(value)) + geom_histogram(bins=20) + facet_wrap(~key, scales='free_x') }
#Plot method GWAS_Manhattan<- function(GWAS,col.snps=c("black","gray"),col.detected=c("blue"),col.text="black",title="GWAS Tutorial Manhattan Plot",display.text=TRUE){ manhat<-GWAS[!grepl("[A-z]",GWAS$chr),] #sort the data by chromosome and then location manhat.ord<-manhat[order(as.numeric(m...
/GWAS_ManhattanFunction.R
no_license
foulkes/GWAS-Tutorial
R
false
false
2,414
r
#Plot method GWAS_Manhattan<- function(GWAS,col.snps=c("black","gray"),col.detected=c("blue"),col.text="black",title="GWAS Tutorial Manhattan Plot",display.text=TRUE){ manhat<-GWAS[!grepl("[A-z]",GWAS$chr),] #sort the data by chromosome and then location manhat.ord<-manhat[order(as.numeric(m...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kpDataBackground.R \name{kpDataBackground} \alias{kpDataBackground} \title{kpDataBackground} \usage{ kpDataBackground(karyoplot, r0=NULL, r1=NULL, data.panel=1, color="gray90", ...) } \arguments{ \item{karyoplot}{(a \code{KaryoPlot} object) T...
/man/kpDataBackground.Rd
no_license
YTLogos/karyoploteR
R
false
true
2,933
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kpDataBackground.R \name{kpDataBackground} \alias{kpDataBackground} \title{kpDataBackground} \usage{ kpDataBackground(karyoplot, r0=NULL, r1=NULL, data.panel=1, color="gray90", ...) } \arguments{ \item{karyoplot}{(a \code{KaryoPlot} object) T...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chem_scatter.R \name{chem_scatter} \alias{chem_scatter} \title{Creates a scatterplot with regression line} \usage{ chem_scatter(data, xvar, yvar, xlab = "Insert X-axis label", ylab = "Insert Y-axis label", intercept = NULL, reg_line = TRUE)...
/man/chem_scatter.Rd
no_license
ismayc/chemistr
R
false
true
1,092
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chem_scatter.R \name{chem_scatter} \alias{chem_scatter} \title{Creates a scatterplot with regression line} \usage{ chem_scatter(data, xvar, yvar, xlab = "Insert X-axis label", ylab = "Insert Y-axis label", intercept = NULL, reg_line = TRUE)...
#!/usr/bin/env Rscript #' ---------------------------------------------------------------------------- #' title: run_tests.R #' description: #' Script to run all unittests for the distributed Cox Proportional Hazards #' algorithm. #' author: #' Melle Sieswerda <m.sieswerda@iknl.nl> #' Anna van der Zalm <a.vand...
/run_tests.R
permissive
AnanyaCN/d_coxph
R
false
false
645
r
#!/usr/bin/env Rscript #' ---------------------------------------------------------------------------- #' title: run_tests.R #' description: #' Script to run all unittests for the distributed Cox Proportional Hazards #' algorithm. #' author: #' Melle Sieswerda <m.sieswerda@iknl.nl> #' Anna van der Zalm <a.vand...
#Manipulacao de dados library(tidyverse) #Manipulacao de series temporais library(tsibble) #Funcoes de previsao library(fable) #Graficos e estatistitcas de series temporais library(feasts) #Series temporais tidy library(tsibbledata) #Todos itens acima e mais library(fpp3) #Plot library(ggplot2) #um tibb...
/covid.R
no_license
eduardo92005-debug/Cienc.Dados
R
false
false
3,714
r
#Manipulacao de dados library(tidyverse) #Manipulacao de series temporais library(tsibble) #Funcoes de previsao library(fable) #Graficos e estatistitcas de series temporais library(feasts) #Series temporais tidy library(tsibbledata) #Todos itens acima e mais library(fpp3) #Plot library(ggplot2) #um tibb...
DESeq2_gprofiler <- tabItem(tabName = "DESeq2_gprofiler", br(), br(), h2("Pathway and Gene Ontology"), br() ,boxPlus(collapsible=T, closable=F, width = 10, title = "DGE results table" ,status = "primary", solidHeader = TRUE ...
/shared/DESeq2_gprofilerUI.R
no_license
rosericazondekon/irnaa
R
false
false
863
r
DESeq2_gprofiler <- tabItem(tabName = "DESeq2_gprofiler", br(), br(), h2("Pathway and Gene Ontology"), br() ,boxPlus(collapsible=T, closable=F, width = 10, title = "DGE results table" ,status = "primary", solidHeader = TRUE ...
#'@section Standard descriptive variables (generated by this package): #' \describe{ #' #' \item{extended_country_name}{The name of the country in the Gleditsch-Ward #' system of states, or the official name of the #' entity (for non-sovereign entities and states not in the Gleditsch and Ward #' system of states) ...
/man-roxygen/standard-variables.R
no_license
Vittoriabrown/democracyData
R
false
false
1,896
r
#'@section Standard descriptive variables (generated by this package): #' \describe{ #' #' \item{extended_country_name}{The name of the country in the Gleditsch-Ward #' system of states, or the official name of the #' entity (for non-sovereign entities and states not in the Gleditsch and Ward #' system of states) ...
library(ape) testtree <- read.tree("4265_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4265_0_unrooted.txt")
/codeml_files/newick_trees_processed/4265_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("4265_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4265_0_unrooted.txt")
library(imager) library(shiny) library(ggplot2) library(ggpubr) # img <- load.image("03-Rscripts/zoom-plots/www/Captura.PNG") # img <- load.image("03-Rscripts/zoom-plots/www/jaime_pino.png") # img <- load.image("03-Rscripts/zoom-plots/www/Pinu_gorria_02_Asier.png") # ABRIR PRIMERO LA IMAGEN CON IMAGER #### UI #### ui...
/03-Rscripts/zoom-plots/app-imager-ggplot.R
no_license
Joacala/trini
R
false
false
1,809
r
library(imager) library(shiny) library(ggplot2) library(ggpubr) # img <- load.image("03-Rscripts/zoom-plots/www/Captura.PNG") # img <- load.image("03-Rscripts/zoom-plots/www/jaime_pino.png") # img <- load.image("03-Rscripts/zoom-plots/www/Pinu_gorria_02_Asier.png") # ABRIR PRIMERO LA IMAGEN CON IMAGER #### UI #### ui...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coef.CBFM.R \name{coef.CBFM} \alias{coef.CBFM} \title{Extract model coefficients from a CBFM fit} \usage{ \method{coef}{CBFM}(object, ...) } \arguments{ \item{object}{An object of class \code{CBFM}.} \item{...}{Not used in this case.} } \val...
/man/coef.CBFM.Rd
no_license
fhui28/CBFM
R
false
true
4,559
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coef.CBFM.R \name{coef.CBFM} \alias{coef.CBFM} \title{Extract model coefficients from a CBFM fit} \usage{ \method{coef}{CBFM}(object, ...) } \arguments{ \item{object}{An object of class \code{CBFM}.} \item{...}{Not used in this case.} } \val...
library(rvest) #-- Clare Accommodation -- ClareAccommodation <- read_html("https://www.tripadvisor.ie/Hotels-g186595-County_Clare-Hotels.html") ClareAccommodation <- ClareAccommodation %>% html_nodes('.prw_filters_hsx_radio_resp .label') %>% html_text() ClareAccommodation #-- Cork Accommodation -- Cor...
/SoftwareProject/DataCollection/Accomodation/MunsterAccomodation.R
no_license
robbiejenkinson/SoftwareProject
R
false
false
1,696
r
library(rvest) #-- Clare Accommodation -- ClareAccommodation <- read_html("https://www.tripadvisor.ie/Hotels-g186595-County_Clare-Hotels.html") ClareAccommodation <- ClareAccommodation %>% html_nodes('.prw_filters_hsx_radio_resp .label') %>% html_text() ClareAccommodation #-- Cork Accommodation -- Cor...
FindT1Up <- function(patterns, now) { t1 <- tail(patterns$t2.x[patterns$t2.x < now], 1) t1 <- which.min(points[t1:now]) + t1 -1 while(now - t1 >= move.duration) { t1 <- which.min(points[t1:now]) + t1 -1 } t1 } FindT1Down <- function(patterns, now) { t1 <- tail(patterns$t2.x[patterns$t2.x < now...
/global/R/lookback_global.R
no_license
prashantg123/PMnPred
R
false
false
13,848
r
FindT1Up <- function(patterns, now) { t1 <- tail(patterns$t2.x[patterns$t2.x < now], 1) t1 <- which.min(points[t1:now]) + t1 -1 while(now - t1 >= move.duration) { t1 <- which.min(points[t1:now]) + t1 -1 } t1 } FindT1Down <- function(patterns, now) { t1 <- tail(patterns$t2.x[patterns$t2.x < now...
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.526018204...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854999-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
883
r
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.526018204...
library(survival) library(cmprsk) # sample size ndim = 1000 nsim = 1000 ### true parameters ### beta11=0.2 beta12=-0.5 beta13=1 p=0.65 T0 = c(20,21,22) for(m in 1:nsim) { ### generate the covariates ### z1=rnorm(ndim) z1=pmax(pmin(z1,3.5),-3.5) z2=ifelse(runif(ndim)<0.7,1,0) z3=rnorm(ndim) z3=pmax(p...
/Simulation/Fine/Under Alternative/TrueFineNRI1.R
permissive
WangandYu/NRIandIDI
R
false
false
4,866
r
library(survival) library(cmprsk) # sample size ndim = 1000 nsim = 1000 ### true parameters ### beta11=0.2 beta12=-0.5 beta13=1 p=0.65 T0 = c(20,21,22) for(m in 1:nsim) { ### generate the covariates ### z1=rnorm(ndim) z1=pmax(pmin(z1,3.5),-3.5) z2=ifelse(runif(ndim)<0.7,1,0) z3=rnorm(ndim) z3=pmax(p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Train.R \name{train_generic} \alias{train_generic} \title{Train an h2o model using the generic architecture} \usage{ train_generic(model, info) } \arguments{ \item{model}{the name of the function to run} \item{info}{the data for use with the...
/man/train_generic.Rd
no_license
NSAPH/airpred
R
false
true
370
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Train.R \name{train_generic} \alias{train_generic} \title{Train an h2o model using the generic architecture} \usage{ train_generic(model, info) } \arguments{ \item{model}{the name of the function to run} \item{info}{the data for use with the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elb_service.R \name{elb} \alias{elb} \title{Elastic Load Balancing} \usage{ elb(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region. \itemize{ \item{\strong{access_key_id}:} {AWS access ...
/man/elb.Rd
no_license
cran/paws.networking
R
false
true
8,538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elb_service.R \name{elb} \alias{elb} \title{Elastic Load Balancing} \usage{ elb(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region. \itemize{ \item{\strong{access_key_id}:} {AWS access ...
data <-read.csv("household_power_consumption.txt",head=TRUE,sep=";",na.strings = "?") data2 <- transform(data, MyTime=strptime(paste(Date,Time,sep=""),format="%d/%m/%Y %T")) startInterval <- strptime("2007-02-01 00:00:01",format="%Y-%m-%d %T") endtInterval <- strptime("2007-02-02 23:59:59",format="%Y-%m-%d %T") data3 <...
/plot1.R
no_license
pacosoft2000/ExData_Plotting1
R
false
false
589
r
data <-read.csv("household_power_consumption.txt",head=TRUE,sep=";",na.strings = "?") data2 <- transform(data, MyTime=strptime(paste(Date,Time,sep=""),format="%d/%m/%Y %T")) startInterval <- strptime("2007-02-01 00:00:01",format="%Y-%m-%d %T") endtInterval <- strptime("2007-02-02 23:59:59",format="%Y-%m-%d %T") data3 <...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pastef.r \name{pastef} \alias{pastef} \title{Paste with "/" as the separator} \usage{ pastef(...) } \arguments{ \item{...}{Objects to paste together} } \description{ Paste with "/" as the separator }
/man/pastef.Rd
no_license
James-Thorson/ss3sim
R
false
true
279
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pastef.r \name{pastef} \alias{pastef} \title{Paste with "/" as the separator} \usage{ pastef(...) } \arguments{ \item{...}{Objects to paste together} } \description{ Paste with "/" as the separator }
context("SQLDataFrame-methods") test.db <- system.file("extdata", "test.db", package = "SQLDataFrame") conn <- DBI::dbConnect(dbDriver("SQLite"), dbname = test.db) obj <- SQLDataFrame(conn = conn, dbtable = "colData", dbkey = "sampleID") ## methods test_that("[[,SQLDataFrame works", { ## key v...
/tests/testthat/test_SQLDataFrame-methods.R
no_license
Bioconductor/SQLDataFrame
R
false
false
3,662
r
context("SQLDataFrame-methods") test.db <- system.file("extdata", "test.db", package = "SQLDataFrame") conn <- DBI::dbConnect(dbDriver("SQLite"), dbname = test.db) obj <- SQLDataFrame(conn = conn, dbtable = "colData", dbkey = "sampleID") ## methods test_that("[[,SQLDataFrame works", { ## key v...
testlist <- list(Rs = numeric(0), atmp = c(-6.73292524882432e+44, 1.25561609525069e+163, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(7.64681398433...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615864065-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
608
r
testlist <- list(Rs = numeric(0), atmp = c(-6.73292524882432e+44, 1.25561609525069e+163, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(7.64681398433...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lightsail_operations.R \name{lightsail_get_relational_database_master_user_password} \alias{lightsail_get_relational_database_master_user_password} \title{Returns the current, previous, or pending versions of the master user password for a Li...
/cran/paws.compute/man/lightsail_get_relational_database_master_user_password.Rd
permissive
peoplecure/paws
R
false
true
1,491
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lightsail_operations.R \name{lightsail_get_relational_database_master_user_password} \alias{lightsail_get_relational_database_master_user_password} \title{Returns the current, previous, or pending versions of the master user password for a Li...
rm(list = ls()) library(tools) hydat_tecplot<-function(workdirectory,filename_list,summary_file,save_filename){ setwd(workdirectory) time_origin<-('19000101') # set the reference date, here 1900Jan01 is the excel time for (i in 1:length(filename_list)) { filename=filename_list[i] ncol...
/Hydat_Tecplot_R/Hydat_Tecplot_monthly.R
no_license
namedyangfan/R_Aquanty
R
false
false
2,767
r
rm(list = ls()) library(tools) hydat_tecplot<-function(workdirectory,filename_list,summary_file,save_filename){ setwd(workdirectory) time_origin<-('19000101') # set the reference date, here 1900Jan01 is the excel time for (i in 1:length(filename_list)) { filename=filename_list[i] ncol...
context("npn_phenophases") test_that("npn_phenophases works", { npn_set_env(get_test_env()) vcr::use_cassette("npn_phenophases_1", { pp <- npn_phenophases() }) expect_is(pp, "data.frame") expect_is(pp$phenophase_name, "character") expect_equal(trimws(pp[1,"phenophase_name"]),"First leaf") expect_g...
/tests/testthat/test-npn-phenophases.R
permissive
hulaba/rnpn
R
false
false
3,573
r
context("npn_phenophases") test_that("npn_phenophases works", { npn_set_env(get_test_env()) vcr::use_cassette("npn_phenophases_1", { pp <- npn_phenophases() }) expect_is(pp, "data.frame") expect_is(pp$phenophase_name, "character") expect_equal(trimws(pp[1,"phenophase_name"]),"First leaf") expect_g...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metR_ArrowGrob.R \name{makeContent.arrow2} \alias{makeContent.arrow2} \title{Make content for an arrow} \usage{ \method{makeContent}{arrow2}(x) } \arguments{ \item{x}{: a grid grob} } \value{ a grid grob or gTree } \description{ Function to m...
/man/makeContent.arrow2.Rd
permissive
wStockhausen/wtsGIS
R
false
true
536
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metR_ArrowGrob.R \name{makeContent.arrow2} \alias{makeContent.arrow2} \title{Make content for an arrow} \usage{ \method{makeContent}{arrow2}(x) } \arguments{ \item{x}{: a grid grob} } \value{ a grid grob or gTree } \description{ Function to m...
library(tester) ### Name: is_single_negative_decimal ### Title: Is single negative decimal ### Aliases: is_single_negative_decimal ### ** Examples is_single_negative_decimal(-3/4) # TRUE is_single_negative_decimal(0.01) # FALSE is_single_negative_decimal("hoskdflksfd") # FALSE is_single_negative_decimal("1.0") ...
/data/genthat_extracted_code/tester/examples/is_single_negative_decimal.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
372
r
library(tester) ### Name: is_single_negative_decimal ### Title: Is single negative decimal ### Aliases: is_single_negative_decimal ### ** Examples is_single_negative_decimal(-3/4) # TRUE is_single_negative_decimal(0.01) # FALSE is_single_negative_decimal("hoskdflksfd") # FALSE is_single_negative_decimal("1.0") ...
### Explanatory Data Analysis: Course Project 2 ###Plot 4 # Across the United States, how have emissions from coal combustion-related sources changed from 1999???2008? library(plyr) library(ggplot2) ##Read in data NEI <- readRDS("./exploratory analysis/Course Project 2/exdata-data-NEI_data/summarySCC_PM25.rds") SCC ...
/Course Project 2/plot4.R
no_license
jonneyliu/Exploratory-Data-Analysis
R
false
false
1,473
r
### Explanatory Data Analysis: Course Project 2 ###Plot 4 # Across the United States, how have emissions from coal combustion-related sources changed from 1999???2008? library(plyr) library(ggplot2) ##Read in data NEI <- readRDS("./exploratory analysis/Course Project 2/exdata-data-NEI_data/summarySCC_PM25.rds") SCC ...
# # 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(dplyr) library(tidyr) library(ggplot2) library(ggthemes) library(animation) ...
/app.R
no_license
tanghd/climate-change
R
false
false
9,180
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(dplyr) library(tidyr) library(ggplot2) library(ggthemes) library(animation) ...
#Karoliina Suonpää, 7.2.2017 #RStudio Exercise 3, data wrangling (data: UCI Machine Learning Repository, Student Alcohol consumption) #set workind directory setwd("Z:/Jatko-opinnot/Tilastotiede 2016/IODS/IODS-project/Data") #check working directory getwd() #read the data from portuguese class por<-read.csv("studen...
/Data/create_alc.R
no_license
karosuon/IODS-project
R
false
false
2,733
r
#Karoliina Suonpää, 7.2.2017 #RStudio Exercise 3, data wrangling (data: UCI Machine Learning Repository, Student Alcohol consumption) #set workind directory setwd("Z:/Jatko-opinnot/Tilastotiede 2016/IODS/IODS-project/Data") #check working directory getwd() #read the data from portuguese class por<-read.csv("studen...
#!/usr/bin/env Rscript ## Plotting permutations as circle plots. args = commandArgs(trailingOnly=TRUE) library(tidyverse) library(forcats) library(ggrepel) library(wesanderson) library(rstatix) outdir <- "plots" indir <- "../../data_release/" outroot<- "Fig_LMER" breednames <- as_tibble(read.csv(paste(indir,"/Refe...
/plot/plot_LMER.R
no_license
DarwinsArk/muttomics
R
false
false
15,670
r
#!/usr/bin/env Rscript ## Plotting permutations as circle plots. args = commandArgs(trailingOnly=TRUE) library(tidyverse) library(forcats) library(ggrepel) library(wesanderson) library(rstatix) outdir <- "plots" indir <- "../../data_release/" outroot<- "Fig_LMER" breednames <- as_tibble(read.csv(paste(indir,"/Refe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dtable-bind_order_prune_subset.R \name{dtable_subset} \alias{dtable_subset} \title{subset a dtable} \usage{ dtable_subset(x, ..., all.attr = FALSE) } \arguments{ \item{x}{a dtable} \item{...}{arguments passed to \code{subset}} \item{all.att...
/man/dtable_subset.Rd
no_license
renlund/descripteur
R
false
true
412
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dtable-bind_order_prune_subset.R \name{dtable_subset} \alias{dtable_subset} \title{subset a dtable} \usage{ dtable_subset(x, ..., all.attr = FALSE) } \arguments{ \item{x}{a dtable} \item{...}{arguments passed to \code{subset}} \item{all.att...
library(featurefinder) ### Name: parseSplits ### Title: parseSplits ### Aliases: parseSplits ### Keywords: saveTree ### ** Examples require(featurefinder) data(examples) parseSplits(treesAll[[1]][[2]])
/data/genthat_extracted_code/featurefinder/examples/parseSplits.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
210
r
library(featurefinder) ### Name: parseSplits ### Title: parseSplits ### Aliases: parseSplits ### Keywords: saveTree ### ** Examples require(featurefinder) data(examples) parseSplits(treesAll[[1]][[2]])
% Generated by roxygen2 (4.0.2): do not edit by hand \name{fixed.intervals} \alias{fixed.intervals} \title{Fixed intervals} \usage{ fixed.intervals(n, M) } \arguments{ \item{n}{a number of endpoints to choose from} \item{M}{a number of intervals to generate} } \value{ a 2-column matrix with start (first column) and en...
/man/fixed.intervals.Rd
no_license
pra1981/wbs
R
false
false
1,013
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{fixed.intervals} \alias{fixed.intervals} \title{Fixed intervals} \usage{ fixed.intervals(n, M) } \arguments{ \item{n}{a number of endpoints to choose from} \item{M}{a number of intervals to generate} } \value{ a 2-column matrix with start (first column) and en...
summary_des <- function(J, type, alpha, beta, delta, ratio, Pi0, Pi1, nCmax, equal, w, piO, efficacy, futility, efficacy_type, efficacy_param, futility_type, futility_param) { if (J == 1) { stage <- "one-stage...
/R/summaries.R
no_license
cran/ph2rand
R
false
false
21,759
r
summary_des <- function(J, type, alpha, beta, delta, ratio, Pi0, Pi1, nCmax, equal, w, piO, efficacy, futility, efficacy_type, efficacy_param, futility_type, futility_param) { if (J == 1) { stage <- "one-stage...
hpc <- read.csv('household_power_consumption.txt', sep=";", na.strings="?", as.is=T) feb_hpc <- hpc[hpc$Date == '1/2/2007' | hpc$Date == '2/2/2007', ] feb_hpc$DateTime <- strptime(paste(feb_hpc$Date, feb_hpc$Time, sep=" "), format="%d/%m/%Y %H:%M:%S") png(file="plot4.png",width=480,height=480) par(mfcol=c(2,2)) plot(fe...
/plot4.R
no_license
retrofactor/ExData_Plotting1
R
false
false
897
r
hpc <- read.csv('household_power_consumption.txt', sep=";", na.strings="?", as.is=T) feb_hpc <- hpc[hpc$Date == '1/2/2007' | hpc$Date == '2/2/2007', ] feb_hpc$DateTime <- strptime(paste(feb_hpc$Date, feb_hpc$Time, sep=" "), format="%d/%m/%Y %H:%M:%S") png(file="plot4.png",width=480,height=480) par(mfcol=c(2,2)) plot(fe...
rm( list = ls( all.names = TRUE) ) ; invisible( gc( ) ) setwd( "/users/user/Desktop/studies 2014-2015/Robust methods/assign02/tex" ) Sweave( file = "../assign02.Stex" ) B <- pnorm( .5 ) C <- 8 * ( 1 - B ) / ( 3 * pi ) ## Define functions ## The actual distribution function F <- function( x ) suppressWarnings( C ...
/year_14_15/fall_2014/robust_methods/assignments/assign02/problem_3.R
permissive
ivannz/study_notes
R
false
false
2,585
r
rm( list = ls( all.names = TRUE) ) ; invisible( gc( ) ) setwd( "/users/user/Desktop/studies 2014-2015/Robust methods/assign02/tex" ) Sweave( file = "../assign02.Stex" ) B <- pnorm( .5 ) C <- 8 * ( 1 - B ) / ( 3 * pi ) ## Define functions ## The actual distribution function F <- function( x ) suppressWarnings( C ...
# Sentiment lexicons # Load dplyr and tidytext library(dplyr) library(tidytext) # Choose the bing lexicon get_sentiments("bing") # Choose the nrc lexicon get_sentiments("nrc") %>% count(sentiment) # Count words by sentiment ############################################################### ## Inner join to impleme...
/Tidy Text Mining.R
no_license
spensorflow/Utilities
R
false
false
17,902
r
# Sentiment lexicons # Load dplyr and tidytext library(dplyr) library(tidytext) # Choose the bing lexicon get_sentiments("bing") # Choose the nrc lexicon get_sentiments("nrc") %>% count(sentiment) # Count words by sentiment ############################################################### ## Inner join to impleme...
/Operaciones de matrices.R
no_license
Katherine-Ramirez-Cubillos/Introducci-n-Programaci-n
R
false
false
2,268
r
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lfda.R \name{\%^\%} \alias{\%^\%} \title{Negative One Half Matrix Power Operator} \usage{ x \%^\% n } \arguments{ \item{x}{the matrix we want to operate on} \item{n}{the exponent} } \value{ the matrix after negative one half power } ...
/pkg/caret/man/grapes-pow-grapes.Rd
no_license
wwbrannon/caret
R
false
false
413
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lfda.R \name{\%^\%} \alias{\%^\%} \title{Negative One Half Matrix Power Operator} \usage{ x \%^\% n } \arguments{ \item{x}{the matrix we want to operate on} \item{n}{the exponent} } \value{ the matrix after negative one half power } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/http-browse.r \name{BROWSE} \alias{BROWSE} \title{Open specified url in browser.} \usage{ BROWSE(url = NULL, config = list(), ..., handle = NULL) } \arguments{ \item{url}{the url of the page to retrieve} \item{config}{All configuration optio...
/man/BROWSE.Rd
permissive
r-lib/httr
R
false
true
1,537
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/http-browse.r \name{BROWSE} \alias{BROWSE} \title{Open specified url in browser.} \usage{ BROWSE(url = NULL, config = list(), ..., handle = NULL) } \arguments{ \item{url}{the url of the page to retrieve} \item{config}{All configuration optio...
library(BiodiversityR) ### Name: accumresult ### Title: Alternative Species Accumulation Curve Results ### Aliases: accumresult accumplot accumcomp ### Keywords: multivariate ### ** Examples library(vegan) data(dune.env) data(dune) dune.env$site.totals <- apply(dune,1,sum) Accum.1 <- accumresult(dune, y=dune.env, s...
/data/genthat_extracted_code/BiodiversityR/examples/accumresult.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
614
r
library(BiodiversityR) ### Name: accumresult ### Title: Alternative Species Accumulation Curve Results ### Aliases: accumresult accumplot accumcomp ### Keywords: multivariate ### ** Examples library(vegan) data(dune.env) data(dune) dune.env$site.totals <- apply(dune,1,sum) Accum.1 <- accumresult(dune, y=dune.env, s...
source('load.R') library(bayesm) col.boxscores <- function(x) { colSums( x[ , 5:ncol(x)], na.rm = TRUE ) } espn.schedule <- dbGetData( "SELECT * FROM `schedule`" ) ratings <- dbGetData("SELECT * FROM `ratings`") strength <- dbGetData("SELECT * FROM `strength`") for(i in 3:ncol(strength)) { strength[ , i ] <- as.n...
/mcmc_approx.R
no_license
drewlanenga/jackboot-firebase
R
false
false
4,828
r
source('load.R') library(bayesm) col.boxscores <- function(x) { colSums( x[ , 5:ncol(x)], na.rm = TRUE ) } espn.schedule <- dbGetData( "SELECT * FROM `schedule`" ) ratings <- dbGetData("SELECT * FROM `ratings`") strength <- dbGetData("SELECT * FROM `strength`") for(i in 3:ncol(strength)) { strength[ , i ] <- as.n...
\name{NextTable} \alias{NextTable} \title{Calculates the table of Kendall distances in (N+1)! space, given those in N! space.} \usage{ NextTable(last.table, N.last) } \arguments{ \item{last.table}{Table of distances in N! space.} \item{N.last}{N} } \value{ Table of distances in (N+1)! space. } \description{ ...
/man/NextTable.Rd
no_license
cran/RMallow
R
false
false
502
rd
\name{NextTable} \alias{NextTable} \title{Calculates the table of Kendall distances in (N+1)! space, given those in N! space.} \usage{ NextTable(last.table, N.last) } \arguments{ \item{last.table}{Table of distances in N! space.} \item{N.last}{N} } \value{ Table of distances in (N+1)! space. } \description{ ...
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
/R/aggregate.R
permissive
ovative-group/GeoexperimentsResearch
R
false
false
1,978
r
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary_sc.R \name{summary_sc} \alias{summary_sc} \title{Summary of indicator performance scores} \usage{ summary_sc(scores_tbl, crit_scores = INDperform::crit_scores_tmpl) } \arguments{ \item{scores_tbl}{The output tibble from the \code{\lin...
/man/summary_sc.Rd
no_license
romainfrancois/INDperform
R
false
true
1,620
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary_sc.R \name{summary_sc} \alias{summary_sc} \title{Summary of indicator performance scores} \usage{ summary_sc(scores_tbl, crit_scores = INDperform::crit_scores_tmpl) } \arguments{ \item{scores_tbl}{The output tibble from the \code{\lin...
\name{HyperGParams-class} \docType{class} %% I don't know where these really belong :-( \alias{conditional} \alias{conditional<-} \alias{geneIds<-} \alias{ontology} \alias{ontology<-} \alias{pvalueCutoff<-} \alias{testDirection<-} \alias{universeGeneIds} %% end :-( \alias{HyperGParams-class} \alias{initialize,HyperGP...
/man/HyperGParams-class.Rd
no_license
Bioconductor/Category
R
false
false
4,698
rd
\name{HyperGParams-class} \docType{class} %% I don't know where these really belong :-( \alias{conditional} \alias{conditional<-} \alias{geneIds<-} \alias{ontology} \alias{ontology<-} \alias{pvalueCutoff<-} \alias{testDirection<-} \alias{universeGeneIds} %% end :-( \alias{HyperGParams-class} \alias{initialize,HyperGP...
#' Microaggregation #' #' Function to perform various methods of microaggregation. #' #' On \url{http://neon.vb.cbs.nl/casc/Glossary.htm} one can found the #' \dQuote{official} definition of microaggregation: #' #' Records are grouped based on a proximity measure of variables of interest, #' and the same small groups o...
/R/microaggregation.R
no_license
thijsbenschop/sdcMicro
R
false
false
38,121
r
#' Microaggregation #' #' Function to perform various methods of microaggregation. #' #' On \url{http://neon.vb.cbs.nl/casc/Glossary.htm} one can found the #' \dQuote{official} definition of microaggregation: #' #' Records are grouped based on a proximity measure of variables of interest, #' and the same small groups o...
rm(list=ls()) poisson<-function(n){ y<-0:(n-1) y<-(pi^y/factorial(y))*exp(-pi) return(1-sum(y)) } n<-5 poisson(n)
/ex7.R
permissive
LAntoine/DEMI2E2-TPs-R
R
false
false
119
r
rm(list=ls()) poisson<-function(n){ y<-0:(n-1) y<-(pi^y/factorial(y))*exp(-pi) return(1-sum(y)) } n<-5 poisson(n)
Test translator definition with union output
/test/unittest/translators/tst.UnionOutputTrans.r
permissive
oracle/dtrace-utils
R
false
false
45
r
Test translator definition with union output
findNum <- function(data, alpha = 0.95, min.frac = 0.05, nlam = 20, type = "linear", num = 5, del = 0.9){ reset <- 10 step <- 1 gamma <- 0.8 inner.iter <- 1000 outer.iter <- 1000 thresh = 10^(-3) outer.thresh = thresh n <- nrow(data$x) if(type == "linear"){ X <- data$x y <- data$y n <- nrow(X) p <- n...
/Experiments/Tibshirani2013/SGL/R/zPathCalcExact.r
no_license
adityagc/MS-Research
R
false
false
2,087
r
findNum <- function(data, alpha = 0.95, min.frac = 0.05, nlam = 20, type = "linear", num = 5, del = 0.9){ reset <- 10 step <- 1 gamma <- 0.8 inner.iter <- 1000 outer.iter <- 1000 thresh = 10^(-3) outer.thresh = thresh n <- nrow(data$x) if(type == "linear"){ X <- data$x y <- data$y n <- nrow(X) p <- n...
fast_SFET <- function(strata, treatment, nsubjects, nresponders, case, data = NULL, prec = 1e-4, side = c("up")){ nstrata <- strata %>% unique() %>% length() if (data %>% is.null()) { indata <- tibble(strata = strata, treatment = treatment, nsubjects = nsubjects, ...
/SFET/R/fast_SFET.R
no_license
KenLi93/Stratified-Fisher-Exact-Test
R
false
false
4,713
r
fast_SFET <- function(strata, treatment, nsubjects, nresponders, case, data = NULL, prec = 1e-4, side = c("up")){ nstrata <- strata %>% unique() %>% length() if (data %>% is.null()) { indata <- tibble(strata = strata, treatment = treatment, nsubjects = nsubjects, ...
117984e2d590475c0e94c743c3c5d79d query64_query51_1344n.qdimacs 1143 2701
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query64_query51_1344n/query64_query51_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
72
r
117984e2d590475c0e94c743c3c5d79d query64_query51_1344n.qdimacs 1143 2701
######### ## Experiment ######### resdir = 'res/' assets = c("EURUSD","EURGBP") filterings = c(6,9,12) correlations = seq(from=-0.95,to=0.95,by=0.05) omega0 = 144 source('functions.R') library(doParallel) cl <- makeCluster(40) registerDoParallel(cl) for(filtering in filterings){ # load data x1=lpDataFro...
/Models/experiment.R
no_license
zone86/synthetic_data
R
false
false
2,040
r
######### ## Experiment ######### resdir = 'res/' assets = c("EURUSD","EURGBP") filterings = c(6,9,12) correlations = seq(from=-0.95,to=0.95,by=0.05) omega0 = 144 source('functions.R') library(doParallel) cl <- makeCluster(40) registerDoParallel(cl) for(filtering in filterings){ # load data x1=lpDataFro...
#devtools::test("asremlPlus") context("prediction_presentation") asr41.lib <- "D:\\Analyses\\R ASReml4.1" cat("#### Test for Intercept prediction on Oats with asreml41\n") test_that("predict_Intercept4", { skip_if_not_installed("asreml") skip_on_cran() library(asreml, lib.loc = asr41.lib) library(asr...
/tests/testthat/test41PredictionsPresentation.r
no_license
cran/asremlPlus
R
false
false
29,280
r
#devtools::test("asremlPlus") context("prediction_presentation") asr41.lib <- "D:\\Analyses\\R ASReml4.1" cat("#### Test for Intercept prediction on Oats with asreml41\n") test_that("predict_Intercept4", { skip_if_not_installed("asreml") skip_on_cran() library(asreml, lib.loc = asr41.lib) library(asr...
\name{richards} \alias{richards} \alias{richards.deriv} \alias{richards.deriv.x} \alias{richards.inv} \alias{solveB} \alias{solveE} \title{ Richards functions: Five parameter (5PL) logistic curves } \description{ The Richards function, the inverse of the function, and the derivative of \code{richards(x)} (and...
/man/richards.Rd
no_license
cran/richards
R
false
false
7,016
rd
\name{richards} \alias{richards} \alias{richards.deriv} \alias{richards.deriv.x} \alias{richards.inv} \alias{solveB} \alias{solveE} \title{ Richards functions: Five parameter (5PL) logistic curves } \description{ The Richards function, the inverse of the function, and the derivative of \code{richards(x)} (and...
## This script needs to be run in the same folder as "exdata-data-household_power_consumption.zip" ## This script outputs a png file, plot4.png for Exploratory Data Analysis Course Project 1 ## Unzip Data unzip("exdata-data-household_power_consumption.zip") ## load files electricPowerConsumption <- read.table("househ...
/plot4.R
no_license
Luciferase/ExData_Plotting1
R
false
false
2,337
r
## This script needs to be run in the same folder as "exdata-data-household_power_consumption.zip" ## This script outputs a png file, plot4.png for Exploratory Data Analysis Course Project 1 ## Unzip Data unzip("exdata-data-household_power_consumption.zip") ## load files electricPowerConsumption <- read.table("househ...
#load the gene names with the high expression with the mouse names that are not the human names. total_human_membrane<-read.delim("index/uniprot_human_cellmembrane_Aug2017.tab") row.names(total_human_membrane)<-total_human_membrane$Entry total_human_secreted<-read.delim("index/uniprot_human_secreted_Aug2017.tab") ro...
/ExpressedGenesinCompartment.R
no_license
verma014/Cell-Cell-interaction
R
false
false
1,401
r
#load the gene names with the high expression with the mouse names that are not the human names. total_human_membrane<-read.delim("index/uniprot_human_cellmembrane_Aug2017.tab") row.names(total_human_membrane)<-total_human_membrane$Entry total_human_secreted<-read.delim("index/uniprot_human_secreted_Aug2017.tab") ro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pit.R \name{pit_df} \alias{pit_df} \title{Probability Integral Transformation (data.frame Format)} \usage{ pit_df( data, plot = TRUE, full_output = FALSE, n_replicates = 100, num_bins = NULL, verbose = FALSE ) } \arguments{ \item{...
/man/pit_df.Rd
permissive
elray1/scoringutils
R
false
true
2,052
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pit.R \name{pit_df} \alias{pit_df} \title{Probability Integral Transformation (data.frame Format)} \usage{ pit_df( data, plot = TRUE, full_output = FALSE, n_replicates = 100, num_bins = NULL, verbose = FALSE ) } \arguments{ \item{...
## GENOME UTILS #' Tag duplicate names by increasing numbers. #' @param names a vector of characters #' @export tagDuplicates <- function(names) { sel <- paste(names,".1",sep="") cnt <- 2 while( sum(duplicated(sel)) ) { sel[duplicated(sel)] <- sub("\\..*",paste(".",cnt,sep=""), ...
/R/coor2index.R
no_license
raim/segmenTools
R
false
false
26,982
r
## GENOME UTILS #' Tag duplicate names by increasing numbers. #' @param names a vector of characters #' @export tagDuplicates <- function(names) { sel <- paste(names,".1",sep="") cnt <- 2 while( sum(duplicated(sel)) ) { sel[duplicated(sel)] <- sub("\\..*",paste(".",cnt,sep=""), ...
#' R Markdown format for Distill articles #' #' Scientific and technical writing, native to the web. #' #' Distill articles feature attractive, reader-friendly typography, flexible #' layout options for visualizations, and full support for footnotes and #' citations. #' #' @inheritParams rmarkdown::html_document #' #...
/R/distill_article.R
permissive
rmflight/distill
R
false
false
15,831
r
#' R Markdown format for Distill articles #' #' Scientific and technical writing, native to the web. #' #' Distill articles feature attractive, reader-friendly typography, flexible #' layout options for visualizations, and full support for footnotes and #' citations. #' #' @inheritParams rmarkdown::html_document #' #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prediction_objects.R \name{List} \alias{List} \title{List Object} \usage{ List(items = NULL, nextPageToken = NULL, selfLink = NULL) } \arguments{ \item{items}{List of models} \item{nextPageToken}{Pagination token to fetch the next page, if o...
/googlepredictionv16.auto/man/List.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
531
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prediction_objects.R \name{List} \alias{List} \title{List Object} \usage{ List(items = NULL, nextPageToken = NULL, selfLink = NULL) } \arguments{ \item{items}{List of models} \item{nextPageToken}{Pagination token to fetch the next page, if o...
################################################################################## ## ADDS "LAND BEAR" STATUS TO ALL.V2 DATABASE ############################ ## ############################ ################################################################################## # CREATES TABLE FOR REPRODUCTIV...
/add_land_bear_to_allv2_and_repro_table.R
no_license
anniekellner/ch1_landing
R
false
false
1,247
r
################################################################################## ## ADDS "LAND BEAR" STATUS TO ALL.V2 DATABASE ############################ ## ############################ ################################################################################## # CREATES TABLE FOR REPRODUCTIV...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SegmentedHypTestEngine.R \name{run_scenario.SegmentedHypTestEngine} \alias{run_scenario.SegmentedHypTestEngine} \title{run_scenario.SegmentedHypTestEngine} \usage{ \method{run_scenario}{SegmentedHypTestEngine}( segmented_hyp_test_engine, ...
/R/segHT v1.4.0/man/run_scenario.SegmentedHypTestEngine.Rd
no_license
milleratotago/Independent_Segments_R
R
false
true
1,429
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SegmentedHypTestEngine.R \name{run_scenario.SegmentedHypTestEngine} \alias{run_scenario.SegmentedHypTestEngine} \title{run_scenario.SegmentedHypTestEngine} \usage{ \method{run_scenario}{SegmentedHypTestEngine}( segmented_hyp_test_engine, ...
parentalSplit <- function(x,expressionChildren,expressionParental,verbose=FALSE, debugMode=0){ if(verbose && debugMode==1)if(x%%100==0)cat("parentalSplit starting withour errors in checkpoint for row:",x,"\n") s <- proc.time() expressionParentalRow <- expressionParental[which(rownames(expressionParental) %in% rownam...
/backup/parentalSplit.r
no_license
KonradZych/GBIC2011
R
false
false
1,431
r
parentalSplit <- function(x,expressionChildren,expressionParental,verbose=FALSE, debugMode=0){ if(verbose && debugMode==1)if(x%%100==0)cat("parentalSplit starting withour errors in checkpoint for row:",x,"\n") s <- proc.time() expressionParentalRow <- expressionParental[which(rownames(expressionParental) %in% rownam...
#This program for confirmed and deaths percentages over USA library(ggplot2) library(formattable) prgname = "usa_states_percentages.r" # # reading the external dataset (covid=19 confirmed and deaths up to 12 June 2020) cvdata <- read.csv("/home/jayanthikishore/Desktop/SASUniversityEdition/myfolders/COVID-19/USAcovid_...
/R_prg8.r
no_license
Kishore1818/R_programs
R
false
false
2,104
r
#This program for confirmed and deaths percentages over USA library(ggplot2) library(formattable) prgname = "usa_states_percentages.r" # # reading the external dataset (covid=19 confirmed and deaths up to 12 June 2020) cvdata <- read.csv("/home/jayanthikishore/Desktop/SASUniversityEdition/myfolders/COVID-19/USAcovid_...
# Sam Welch # A simple script to determine the possible 1,2,4 and 8 combinations of 8 stressors across 4 categories. # 7th May 2018 setwd("C:/Users/Sam Welch/Google Drive/ICL Ecological Applications/Project/Scripts") stressors <- c("Chloramphenicol", "Amoxycillin", "Atrazine", "Metaldehyde", "Copper", "Cadmium", "Benz...
/Scripts/Code/Archive/Combination_Calculator.R
no_license
samawelch/MScProject
R
false
false
795
r
# Sam Welch # A simple script to determine the possible 1,2,4 and 8 combinations of 8 stressors across 4 categories. # 7th May 2018 setwd("C:/Users/Sam Welch/Google Drive/ICL Ecological Applications/Project/Scripts") stressors <- c("Chloramphenicol", "Amoxycillin", "Atrazine", "Metaldehyde", "Copper", "Cadmium", "Benz...
\name{YearEntrez-methods} \docType{methods} \alias{YearEntrez-methods} \alias{YearEntrez,Medline-method} \title{ ~~ Methods for Function \code{YearEntrez} in Package \pkg{RISmed} ~~} \description{ ~~ Methods for function \code{YearEntrez} in package \pkg{RISmed} ~~ } \section{Methods}{ \describe{ \item{\code{signatur...
/man/YearEntrez-methods.Rd
no_license
mayunlong89/RISmed
R
false
false
403
rd
\name{YearEntrez-methods} \docType{methods} \alias{YearEntrez-methods} \alias{YearEntrez,Medline-method} \title{ ~~ Methods for Function \code{YearEntrez} in Package \pkg{RISmed} ~~} \description{ ~~ Methods for function \code{YearEntrez} in package \pkg{RISmed} ~~ } \section{Methods}{ \describe{ \item{\code{signatur...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iterators.R \name{igraph-vs-indexing2} \alias{igraph-vs-indexing2} \alias{[[.igraph.vs} \title{Select vertices and show their metadata} \usage{ \method{[[}{igraph.vs}(x, ...) } \arguments{ \item{x}{A vertex sequence.} \item{...}{Additional a...
/man/igraph-vs-indexing2.Rd
no_license
andresrabinovich/igraph
R
false
true
2,124
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iterators.R \name{igraph-vs-indexing2} \alias{igraph-vs-indexing2} \alias{[[.igraph.vs} \title{Select vertices and show their metadata} \usage{ \method{[[}{igraph.vs}(x, ...) } \arguments{ \item{x}{A vertex sequence.} \item{...}{Additional a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit.R \name{ssd_fit_dists} \alias{ssd_fit_dists} \title{Fit Distributions} \usage{ ssd_fit_dists(data, left = "Conc", right = left, weight = NULL, dists = c("lnorm", "llog", "gompertz", "lgumbel", "gamma", "weibull"), silent = FALSE) } \a...
/man/ssd_fit_dists.Rd
permissive
flor14/ssdtools
R
false
true
1,875
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit.R \name{ssd_fit_dists} \alias{ssd_fit_dists} \title{Fit Distributions} \usage{ ssd_fit_dists(data, left = "Conc", right = left, weight = NULL, dists = c("lnorm", "llog", "gompertz", "lgumbel", "gamma", "weibull"), silent = FALSE) } \a...
# Script to compile the RegMap data. # # Before running this script, download the RegMap data from # bergelson.uchicago.edu/wp-content/uploads/2015/04/call_method_75.tar.gz # and extract the file call_method_75_TAIR9.csv into the "data" directory. # library(methods) library(data.table) source("functions.R") # LOAD SA...
/code/compile.regmap.R
no_license
argdata/R-large-scale
R
false
false
2,017
r
# Script to compile the RegMap data. # # Before running this script, download the RegMap data from # bergelson.uchicago.edu/wp-content/uploads/2015/04/call_method_75.tar.gz # and extract the file call_method_75_TAIR9.csv into the "data" directory. # library(methods) library(data.table) source("functions.R") # LOAD SA...
# 03-layout.R library(shiny) ui <- fluidPage( fluidRow( column(3), column(5, sliderInput(inputId = "num", label = "Choose a number", value = 25, min = 1, max = 100)) ), fluidRow( column(4, offset = 8, plotOutput("hist") ) ) ) server <- function(input, output) { output$hist <- ...
/ch04-shiny/shiny.rstudio.com-tutorial/part-3-code/03-layout.R
no_license
spylu/sta141b-notes
R
false
false
403
r
# 03-layout.R library(shiny) ui <- fluidPage( fluidRow( column(3), column(5, sliderInput(inputId = "num", label = "Choose a number", value = 25, min = 1, max = 100)) ), fluidRow( column(4, offset = 8, plotOutput("hist") ) ) ) server <- function(input, output) { output$hist <- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/components.R \name{list_group_386} \alias{list_group_386} \title{Create a Bootstrap 386 list group container} \usage{ list_group_386(..., width = 4) } \arguments{ \item{...}{Slot for \link{list_group_item_386}.} \item{width}{List group width...
/man/list_group_386.Rd
permissive
bright-spark/shiny386
R
false
true
2,241
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/components.R \name{list_group_386} \alias{list_group_386} \title{Create a Bootstrap 386 list group container} \usage{ list_group_386(..., width = 4) } \arguments{ \item{...}{Slot for \link{list_group_item_386}.} \item{width}{List group width...
# @file OhdsiRTools.R # # Copyright 2020 Observational Health Data Sciences and Informatics # # This file is part of OhdsiRTools # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:/...
/R/OhdsiRTools.R
permissive
rachita-c/OhdsiRTools
R
false
false
1,052
r
# @file OhdsiRTools.R # # Copyright 2020 Observational Health Data Sciences and Informatics # # This file is part of OhdsiRTools # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:/...
# format-funs.R #' Format a numeric vector as currency #' #' @export currency <- function(x, digits = 2) { signif(x, digits = digits) %>% { scales::dollar_format()(.) } %>% str_replace("\\$-", "-$") } #' Format a numeric vector as millions of dollars #' #' @export Mdollar <- function(x, digits = 2) { ...
/R/format-funs.R
permissive
USEPA/ONG-NSPS-OOOOa-Policy-Review-Analysis
R
false
false
652
r
# format-funs.R #' Format a numeric vector as currency #' #' @export currency <- function(x, digits = 2) { signif(x, digits = digits) %>% { scales::dollar_format()(.) } %>% str_replace("\\$-", "-$") } #' Format a numeric vector as millions of dollars #' #' @export Mdollar <- function(x, digits = 2) { ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/ripal.R \name{topPasswords} \alias{topPasswords} \title{Extract top "n" passwords from a password list} \usage{ topPasswords(passwords, n = 10) } \arguments{ \item{passwords}{a data frame of passwords} \item{n}{how many most prevalen...
/man/topPasswords.Rd
permissive
stevecoward/ripal
R
false
false
637
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/ripal.R \name{topPasswords} \alias{topPasswords} \title{Extract top "n" passwords from a password list} \usage{ topPasswords(passwords, n = 10) } \arguments{ \item{passwords}{a data frame of passwords} \item{n}{how many most prevalen...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/InfinitySparseMatrix.R \name{as.InfinitySparseMatrix} \alias{as.InfinitySparseMatrix} \title{Convert an object to InfinitySparseMatrix} \usage{ as.InfinitySparseMatrix(x) } \arguments{ \item{x}{An object which can be coerced into InfinitySpar...
/man/as.InfinitySparseMatrix.Rd
permissive
markmfredrickson/optmatch
R
false
true
445
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/InfinitySparseMatrix.R \name{as.InfinitySparseMatrix} \alias{as.InfinitySparseMatrix} \title{Convert an object to InfinitySparseMatrix} \usage{ as.InfinitySparseMatrix(x) } \arguments{ \item{x}{An object which can be coerced into InfinitySpar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selection_module.R \name{selection_module} \alias{selection_module} \title{Feature Selection Module} \usage{ selection_module(CBRMSR, method = c("BIRF", "rknn")) } \arguments{ \item{CBRMSR}{A CBRMSR object} \item{method}{The method for featu...
/man/selection_module.Rd
no_license
bhioswego/CBRMSR
R
false
true
675
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selection_module.R \name{selection_module} \alias{selection_module} \title{Feature Selection Module} \usage{ selection_module(CBRMSR, method = c("BIRF", "rknn")) } \arguments{ \item{CBRMSR}{A CBRMSR object} \item{method}{The method for featu...
\name{geneSim} \alias{geneSim} \title{Semantic Similarity Between two Genes} \usage{ geneSim(gene1, gene2, ont = "MF", organism = "human", measure = "Wang", drop = "IEA", combine = "BMA") } \arguments{ \item{gene1}{Entrez gene id.} \item{gene2}{Another entrez gene id.} \item{ont}{One of "MF", "BP", and "C...
/2X/2.14/GOSemSim/man/geneSim.Rd
no_license
GuangchuangYu/bioc-release
R
false
false
1,777
rd
\name{geneSim} \alias{geneSim} \title{Semantic Similarity Between two Genes} \usage{ geneSim(gene1, gene2, ont = "MF", organism = "human", measure = "Wang", drop = "IEA", combine = "BMA") } \arguments{ \item{gene1}{Entrez gene id.} \item{gene2}{Another entrez gene id.} \item{ont}{One of "MF", "BP", and "C...
# Sesion 2 pacman::p_load(tidyverse,tidytext,schrute,tm,ggthemes,pals) mydata <- schrute::theoffice mydata ################# Frecuencias stop_words <- stopwords(kind="en") other_stop <- c("oh","ok","okay","uh","yeah","hey","well") #ley de zipf #las palabras que menos importan son las que más frecuentes son token...
/EjerciciosClases/theOffice-bigrams.R
no_license
nerudista/Curso_Virtual_Text_Mining
R
false
false
2,138
r
# Sesion 2 pacman::p_load(tidyverse,tidytext,schrute,tm,ggthemes,pals) mydata <- schrute::theoffice mydata ################# Frecuencias stop_words <- stopwords(kind="en") other_stop <- c("oh","ok","okay","uh","yeah","hey","well") #ley de zipf #las palabras que menos importan son las que más frecuentes son token...
createHist <- function(){ hist(as.numeric(OOCM[,11]), main = "Frequency of Death Rates after Heart Attack", xlab = "% of Heart Attack Patients who Die", ylab = "Number of Hospitals") }
/2 - R Programming/R Programming Week 4 - Final Project/CreateHist.R
no_license
sandyjaugust/Data-Science-Specialization-Coursera
R
false
false
190
r
createHist <- function(){ hist(as.numeric(OOCM[,11]), main = "Frequency of Death Rates after Heart Attack", xlab = "% of Heart Attack Patients who Die", ylab = "Number of Hospitals") }
library(deSolve) t <- seq(0, 300, by = 0.01) init <- c(0, 0.5, 0, 0, 1) inf_info <- data.frame() # Protein Stuff # X[1] = SFT # X[2] = SP # X[3] = FA # X[4] = SFT/SP Ratio # X[5] = Number of leaves # X[6] = Change in number of leaves parms_list <- list( ...
/project_marinara/Tomato_Models/tomato_model.R
no_license
jkhta/Runcie_Lab
R
false
false
3,208
r
library(deSolve) t <- seq(0, 300, by = 0.01) init <- c(0, 0.5, 0, 0, 1) inf_info <- data.frame() # Protein Stuff # X[1] = SFT # X[2] = SP # X[3] = FA # X[4] = SFT/SP Ratio # X[5] = Number of leaves # X[6] = Change in number of leaves parms_list <- list( ...
library(ggplot2) library(reshape2) library(scales) args <- commandArgs( trailingOnly = TRUE ) data <- read.csv( args[1], sep=",", header=TRUE ) rownames(data) <- data[,1] data[,1] <- NULL x <- data.frame( Sample=names(data), Total_Reads=as.numeric(as.matrix(data["Number_of_input_reads",])), Unique_Reads=as.numeric(a...
/scripts/map_stats.R
no_license
vangalamaheshh/trim_and_align
R
false
false
1,023
r
library(ggplot2) library(reshape2) library(scales) args <- commandArgs( trailingOnly = TRUE ) data <- read.csv( args[1], sep=",", header=TRUE ) rownames(data) <- data[,1] data[,1] <- NULL x <- data.frame( Sample=names(data), Total_Reads=as.numeric(as.matrix(data["Number_of_input_reads",])), Unique_Reads=as.numeric(a...
#' Creates an object of class naRes (NA Result) #' #' This function takes in an omicsData object, and outputs a list of two data #' frames, one containing the number of missing values by sample, and the other #' containing the number of missing values by molecule #' #' @param omicsData an object of class "pepData", "pr...
/R/missingval_result.R
permissive
clabornd/pmartR
R
false
false
4,411
r
#' Creates an object of class naRes (NA Result) #' #' This function takes in an omicsData object, and outputs a list of two data #' frames, one containing the number of missing values by sample, and the other #' containing the number of missing values by molecule #' #' @param omicsData an object of class "pepData", "pr...
ggplot(vantazh, aes(y=y2013, x=reorder(type, -y2013)))+geom_bar(stat="identity", fill="#da2028", width=.5)+ xlab("Види транспорту")+ ylab("Одиниці")+ ggtitle("Заголовок")+ labs(subtitle="Підзаголовок", caption="Дані з data.gov.ua")+ theme( legend.title=element_blank(), plot.title = element_text(size=2...
/bar.R
no_license
n-mouse/R-templates
R
false
false
2,366
r
ggplot(vantazh, aes(y=y2013, x=reorder(type, -y2013)))+geom_bar(stat="identity", fill="#da2028", width=.5)+ xlab("Види транспорту")+ ylab("Одиниці")+ ggtitle("Заголовок")+ labs(subtitle="Підзаголовок", caption="Дані з data.gov.ua")+ theme( legend.title=element_blank(), plot.title = element_text(size=2...
#' Use Redundancy Rule to Simulate Ecological Diversification of a Biota. #' #' Implement Monte Carlo simulation of a biota undergoing ecological #' diversification using the redundancy rule. #' #' @param nreps Vector of integers (such as a sequence) specifying sample number #' produced. Only used when function...
/R/redundancy.R
no_license
cran/ecospace
R
false
false
7,755
r
#' Use Redundancy Rule to Simulate Ecological Diversification of a Biota. #' #' Implement Monte Carlo simulation of a biota undergoing ecological #' diversification using the redundancy rule. #' #' @param nreps Vector of integers (such as a sequence) specifying sample number #' produced. Only used when function...
# Overlap of two densities of circular distributions # Use ants to test # dat_common should be loaded library(circular) library(sfsmisc) # test with two time datasets testdat <- dat_common %>% filter(site == 'Duke', chamber %in% c(2,3), sp == 'apru') x1 <- testdat$time[testdat$chamber == 2] x2 <- testdat$time[te...
/deprecated/testcircular.R
no_license
maryglover/anttime
R
false
false
2,664
r
# Overlap of two densities of circular distributions # Use ants to test # dat_common should be loaded library(circular) library(sfsmisc) # test with two time datasets testdat <- dat_common %>% filter(site == 'Duke', chamber %in% c(2,3), sp == 'apru') x1 <- testdat$time[testdat$chamber == 2] x2 <- testdat$time[te...
library('Matrix') library(igraph) library(ggplot2) library(patchwork) eX <- readMM('datasets/morphineNeurons/mock/control.mtx') rownames(eX) <- readLines('datasets/morphineNeurons/mock/controlGenes.tsv') eX <- rowMeans(eX) eY <- readMM('datasets/morphineNeurons/morphine/morphine.mtx') rownames(eY) <- readLines('datas...
/inst/manuscript/EDcomparison.R
no_license
Leonrunning/scTenifoldNet
R
false
false
3,004
r
library('Matrix') library(igraph) library(ggplot2) library(patchwork) eX <- readMM('datasets/morphineNeurons/mock/control.mtx') rownames(eX) <- readLines('datasets/morphineNeurons/mock/controlGenes.tsv') eX <- rowMeans(eX) eY <- readMM('datasets/morphineNeurons/morphine/morphine.mtx') rownames(eY) <- readLines('datas...
#' calculate_primary_doctor #' #' @param doctor_npi1 #' @param doctor_npi2 #' @param group_reqs #' @param class_reqs #' @param specialization_reqs #' #' @return #' @export #' #' @examples calculate_primary_doctor <- function(doctor_npi1, doctor_npi2, ...
/R/calculate_primary_doctor.R
no_license
utah-osa/hcctools2
R
false
false
3,565
r
#' calculate_primary_doctor #' #' @param doctor_npi1 #' @param doctor_npi2 #' @param group_reqs #' @param class_reqs #' @param specialization_reqs #' #' @return #' @export #' #' @examples calculate_primary_doctor <- function(doctor_npi1, doctor_npi2, ...
graphics.off() remove(list = ls()) library(ggplot2) library(cowplot) library(reshape2) valeurs <- data.frame(read.csv("MDH2 0.5Xan Xox ph6.55 ttes10s.csv", sep = ';', dec = ".", header = TRUE)) c <- 1:ncol(valeurs[-1]) df <- valeurs[-1][ , c%%6==1] df <- cbind(df[1:31], valeurs[1]) colnames(df) <- c(c(1:31), "wavele...
/air12/MDH2 0.5Xan Xox ph6.55.R
no_license
CathyCat88/thesis
R
false
false
715
r
graphics.off() remove(list = ls()) library(ggplot2) library(cowplot) library(reshape2) valeurs <- data.frame(read.csv("MDH2 0.5Xan Xox ph6.55 ttes10s.csv", sep = ';', dec = ".", header = TRUE)) c <- 1:ncol(valeurs[-1]) df <- valeurs[-1][ , c%%6==1] df <- cbind(df[1:31], valeurs[1]) colnames(df) <- c(c(1:31), "wavele...