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
\name{FreqSurv_HReg} \alias{FreqSurv_HReg} %- Also NEED an '\alias' for EACH other topic documented here. \title{ The function to fit parametric Weibull models for the frequentist analysis of univariate survival data. } \description{ Independent univariate right-censored survival data can be analyzed using hierarchical...
/man/FreqSurv_HReg.Rd
no_license
csetraynor/SemiCompRisks
R
false
false
2,427
rd
\name{FreqSurv_HReg} \alias{FreqSurv_HReg} %- Also NEED an '\alias' for EACH other topic documented here. \title{ The function to fit parametric Weibull models for the frequentist analysis of univariate survival data. } \description{ Independent univariate right-censored survival data can be analyzed using hierarchical...
library(beadarrayMSV) ### Name: findPolyploidClusters ### Title: K-means clustering ### Aliases: findPolyploidClusters ### ** Examples ## Not run: ##D #Read pre-processed data directly into AlleleSetIllumina object ##D rPath <- system.file("extdata", package="beadarrayMSV") ##D normOpts <- setNormOptions() ##D dat...
/data/genthat_extracted_code/beadarrayMSV/examples/findPolyploidClusters.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,423
r
library(beadarrayMSV) ### Name: findPolyploidClusters ### Title: K-means clustering ### Aliases: findPolyploidClusters ### ** Examples ## Not run: ##D #Read pre-processed data directly into AlleleSetIllumina object ##D rPath <- system.file("extdata", package="beadarrayMSV") ##D normOpts <- setNormOptions() ##D dat...
AAmap <- read.table("AAmap.chr1.txt", header=TRUE) #calculating cM/Mb by dividing the difference in cM divided by difference in Mb #between current and next row cM <- (AAmap$Genetic_Map.cM.[-1] - AAmap$Genetic_Map.cM.) Mb <- ((AAmap$Physical_Position_Build36.hg18.[-1] - AAmap$Physical_Position_Build36.hg18.)/1e6) A...
/SLiM_ratesfiles/calculate_rates.R
no_license
imanhamid/misc_scripts
R
false
false
351
r
AAmap <- read.table("AAmap.chr1.txt", header=TRUE) #calculating cM/Mb by dividing the difference in cM divided by difference in Mb #between current and next row cM <- (AAmap$Genetic_Map.cM.[-1] - AAmap$Genetic_Map.cM.) Mb <- ((AAmap$Physical_Position_Build36.hg18.[-1] - AAmap$Physical_Position_Build36.hg18.)/1e6) A...
################################################################################ ################################################################################ ### SIMPLE VERTICAL MULTIPLE-RESPONSE ### ### BAR CHART ...
/Barcharts/Barchart Multiple Categories Vertical .R
no_license
sicabi/RGraphics
R
false
false
11,586
r
################################################################################ ################################################################################ ### SIMPLE VERTICAL MULTIPLE-RESPONSE ### ### BAR CHART ...
# plot2.R ## 1. Load data ### 1.1 Set Data file name and path path <- "./household_power_consumption.txt" ### 1.2 Read out data RawData <- read.table(path, header=TRUE, sep=";", na.strings = "?") ### 1.3 Define Subset of data as request SubsetData <- RawData[RawData$Date %in% c("1/2/2007","2/2/2007"),] ### 1.4 Convert ...
/plot2.R
no_license
Yage0820/ExData_Plotting1
R
false
false
688
r
# plot2.R ## 1. Load data ### 1.1 Set Data file name and path path <- "./household_power_consumption.txt" ### 1.2 Read out data RawData <- read.table(path, header=TRUE, sep=";", na.strings = "?") ### 1.3 Define Subset of data as request SubsetData <- RawData[RawData$Date %in% c("1/2/2007","2/2/2007"),] ### 1.4 Convert ...
db_get_last_prediction <- function(wt_query, table_cast_results = "CAST_RESULTS", db_config){ # OJO usar comillas simples para encerrar CHAR variables de la BDD. iam=match.call()[[1]] type_condition= paste0(" AND `type` = '",tolower(wt_query$type),"'"); if("type" %in% names(wt_query) && wt_query$t...
/functions_common/db_get_last_prediction.R
permissive
alecuba16/SOM_windturbine
R
false
false
1,112
r
db_get_last_prediction <- function(wt_query, table_cast_results = "CAST_RESULTS", db_config){ # OJO usar comillas simples para encerrar CHAR variables de la BDD. iam=match.call()[[1]] type_condition= paste0(" AND `type` = '",tolower(wt_query$type),"'"); if("type" %in% names(wt_query) && wt_query$t...
options( java.parameters = "-Xmx4g" ) getwd() setwd("C:/ProgramExt/WS-R/SnomedCT_TrOWL") getwd() pdf("SnomedCT_10_Samples_TrOWL.pdf", width=9) # ## read file myData <- read.csv("snomed_jan17.owl_10Samples_TrOWL.csv") ## make a plot plot(AxiomCount ~ msec, ylab="Axiom Count of Sample", xlab="Execution Time of a Sam...
/S.5.2/TrOWL.model.generation/source.code/Reg_AxiomCount - TrOWL.r
no_license
IsaGuclu/ResourceAwareApproach
R
false
false
1,544
r
options( java.parameters = "-Xmx4g" ) getwd() setwd("C:/ProgramExt/WS-R/SnomedCT_TrOWL") getwd() pdf("SnomedCT_10_Samples_TrOWL.pdf", width=9) # ## read file myData <- read.csv("snomed_jan17.owl_10Samples_TrOWL.csv") ## make a plot plot(AxiomCount ~ msec, ylab="Axiom Count of Sample", xlab="Execution Time of a Sam...
x = read.table("/home/zabolotsky/abbakumov_r/R_занятие_06_регрессия/03_ts_graphs/wine_Austral.dat", header=T, sep="\t") print(names(x)) print(head(x)) print(dim(x)) plot(x$sweet, type="l") par(mfrow=c(1,2)) plot(x$red, type="l") log_red = log(x$red) plot(log_red, type="l") time_ = 1:(168+12) time_2 = time_^2 month_01 =...
/lec7_3.R
no_license
bognev/abbakumovr
R
false
false
1,807
r
x = read.table("/home/zabolotsky/abbakumov_r/R_занятие_06_регрессия/03_ts_graphs/wine_Austral.dat", header=T, sep="\t") print(names(x)) print(head(x)) print(dim(x)) plot(x$sweet, type="l") par(mfrow=c(1,2)) plot(x$red, type="l") log_red = log(x$red) plot(log_red, type="l") time_ = 1:(168+12) time_2 = time_^2 month_01 =...
library(data.table) require(ggplot2) require(grid) require(gridExtra) library(RColorBrewer) source("/home/diogo/workspace/tagc-rainet-RNA/src/fr/tagc/rainet/core/execution/analysis/RBPDomain/Rscripts/r_functions.R") #inputFile = "/home/diogo/Documents/RAINET_data/TAGC/rainetDatabase/results/ReadCatrapid/Ensembl82/mrn...
/src/fr/tagc/rainet/core/execution/analysis/lncRNA_vs_mRNA/odds_ratio_distribution.R
no_license
diogomribeiro/RAINET
R
false
false
1,039
r
library(data.table) require(ggplot2) require(grid) require(gridExtra) library(RColorBrewer) source("/home/diogo/workspace/tagc-rainet-RNA/src/fr/tagc/rainet/core/execution/analysis/RBPDomain/Rscripts/r_functions.R") #inputFile = "/home/diogo/Documents/RAINET_data/TAGC/rainetDatabase/results/ReadCatrapid/Ensembl82/mrn...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utilities.R \name{order_by_slide_and_tissue_category} \alias{order_by_slide_and_tissue_category} \title{Order a data frame by slide ID and tissue category, putting the categories in the given order and the "Total" category in the proper place...
/man/order_by_slide_and_tissue_category.Rd
permissive
iceberg22/phenoptrReports
R
false
true
787
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utilities.R \name{order_by_slide_and_tissue_category} \alias{order_by_slide_and_tissue_category} \title{Order a data frame by slide ID and tissue category, putting the categories in the given order and the "Total" category in the proper place...
#' A local source. #' #' This is mainly useful for testing, since makes it possible to refer to #' local and remote tables using exactly the same syntax. #' #' Generally, \code{src_local} should not be called directly, but instead #' one of the (currently three) constructors should be used. #' #' @param tbl name of the...
/dplyr/R/src-local.r
no_license
radfordneal/R-package-mods
R
false
false
1,905
r
#' A local source. #' #' This is mainly useful for testing, since makes it possible to refer to #' local and remote tables using exactly the same syntax. #' #' Generally, \code{src_local} should not be called directly, but instead #' one of the (currently three) constructors should be used. #' #' @param tbl name of the...
source("global.R") ###Setting up the dashboard page dashboardPage( dashboardHeader( title = "OHI Global Data Explorer", titleWidth = 300), ### Dashboard Sidebar dashboardSidebar( sidebarMenu( menuItem("The OHI Story", tabName = "dashboard", icon = icon("globe", lib="glyphicon")), ...
/ui.R
no_license
camilavargasp/global-dashboard
R
false
false
9,741
r
source("global.R") ###Setting up the dashboard page dashboardPage( dashboardHeader( title = "OHI Global Data Explorer", titleWidth = 300), ### Dashboard Sidebar dashboardSidebar( sidebarMenu( menuItem("The OHI Story", tabName = "dashboard", icon = icon("globe", lib="glyphicon")), ...
data <- read.csv("data/household_power_consumption.txt", sep = ";") data = read.table("data/household_power_consumption.txt", header = TRUE, sep = ";", na = "?", colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric")) data$formatted_date <- strptime(paste(d...
/plot4.R
no_license
misewerin/ExData_Plotting1
R
false
false
1,227
r
data <- read.csv("data/household_power_consumption.txt", sep = ";") data = read.table("data/household_power_consumption.txt", header = TRUE, sep = ";", na = "?", colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric")) data$formatted_date <- strptime(paste(d...
################################################################################ ## R - NLP & Text Mining Project 4 ## Analysis of 2014 time frame Elon Musk's Tweets. ################################################################################ ############################################################...
/2014_Tweet_Analysis/2014-Elon Musk Tweet Analysis.R
permissive
drdataSpp/Spp-NLP-On-Elon-Musks-Tweets
R
false
false
7,092
r
################################################################################ ## R - NLP & Text Mining Project 4 ## Analysis of 2014 time frame Elon Musk's Tweets. ################################################################################ ############################################################...
##' @include semiParametric.R survivalModels.R NULL ##' Method to calculate model restricted means ##' @name calcModelRmst ##' @rdname calcModelRmst-methods ##' @param object (SurvivalModel) A survival model - note there cannot be ##' any covariates and armAsFactor must be FALSE ##' @param ... additional arguments f...
/R/rmst.R
no_license
scientific-computing-solutions/sibyl
R
false
false
8,338
r
##' @include semiParametric.R survivalModels.R NULL ##' Method to calculate model restricted means ##' @name calcModelRmst ##' @rdname calcModelRmst-methods ##' @param object (SurvivalModel) A survival model - note there cannot be ##' any covariates and armAsFactor must be FALSE ##' @param ... additional arguments f...
train <- read.csv('~/kaggle/Whale/download/data/train.csv') w <- train$label print_bits <- function(w) { n <- length(w) bits <- paste(as.character(w[1:(n-2)]), as.character(w[2:(n-1)]), as.character(w[3:(n-0)]),sep='') print(table(bits)) return(table(bits)) } l ...
/Whale/analysis/next_previous.R
no_license
chrishefele/kaggle-sample-code
R
false
false
510
r
train <- read.csv('~/kaggle/Whale/download/data/train.csv') w <- train$label print_bits <- function(w) { n <- length(w) bits <- paste(as.character(w[1:(n-2)]), as.character(w[2:(n-1)]), as.character(w[3:(n-0)]),sep='') print(table(bits)) return(table(bits)) } l ...
data <- scan("data/iotest1.txt") sort(data) sort(data, decreasing = T) sum(data) mean(data)
/Rexam/test1.R
no_license
HWANG593/R_Programming
R
false
false
92
r
data <- scan("data/iotest1.txt") sort(data) sort(data, decreasing = T) sum(data) mean(data)
#R class final project, analysis stock rm(list = ls()) #install.packages("quantmod") library("quantmod") ############################data select: #find company, default: search data from yahoo #input stock name you want to search. Ex:GOOG, 2330.TW... StockName<-scan(what = "") yourStock<-getSymbols(StockNam...
/final_project.R
no_license
ipwefpo/R_final-project
R
false
false
4,152
r
#R class final project, analysis stock rm(list = ls()) #install.packages("quantmod") library("quantmod") ############################data select: #find company, default: search data from yahoo #input stock name you want to search. Ex:GOOG, 2330.TW... StockName<-scan(what = "") yourStock<-getSymbols(StockNam...
##-------------------------------------------- ## ## Class: PCE 350 Data Science Methods Class ## ##---- Test normaization ---- ## ## Read the tweet data set tweets = read.csv('Binary Classification_ Twitter sentiment analysis.csv', header = TRUE, stringsAsFactors = FALSE) colnames(tweets) <- c("se...
/R/Lecture10/Lecture10/old/NormalizeText.R
no_license
StephenElston/DataScience410
R
false
false
4,123
r
##-------------------------------------------- ## ## Class: PCE 350 Data Science Methods Class ## ##---- Test normaization ---- ## ## Read the tweet data set tweets = read.csv('Binary Classification_ Twitter sentiment analysis.csv', header = TRUE, stringsAsFactors = FALSE) colnames(tweets) <- c("se...
library(checkarg) ### Name: isNumberOrInfScalar ### Title: Wrapper for the checkarg function, using specific parameter ### settings. ### Aliases: isNumberOrInfScalar ### ** Examples isNumberOrInfScalar(2) # returns TRUE (argument is valid) isNumberOrInfScalar("X") # returns FALSE (argument is invalid) #isNu...
/data/genthat_extracted_code/checkarg/examples/isNumberOrInfScalar.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
791
r
library(checkarg) ### Name: isNumberOrInfScalar ### Title: Wrapper for the checkarg function, using specific parameter ### settings. ### Aliases: isNumberOrInfScalar ### ** Examples isNumberOrInfScalar(2) # returns TRUE (argument is valid) isNumberOrInfScalar("X") # returns FALSE (argument is invalid) #isNu...
[variance explained](http://varianceexplained.org/r/trump-tweets/) [student project](https://www.msi.co.jp/tmstudio/stu17contents/No4_muc17_TMS.pdf) [teaching notes](http://utstat.toronto.edu/~nathan/teaching/sta4002/Class4/trumptweets-students.html) ## geom_bar() vs geom_col() https://ggplot2.tidyverse.org/reference/g...
/studyNotes/trumptweets.R
no_license
ThymeLy/100DaysofML
R
false
false
3,945
r
[variance explained](http://varianceexplained.org/r/trump-tweets/) [student project](https://www.msi.co.jp/tmstudio/stu17contents/No4_muc17_TMS.pdf) [teaching notes](http://utstat.toronto.edu/~nathan/teaching/sta4002/Class4/trumptweets-students.html) ## geom_bar() vs geom_col() https://ggplot2.tidyverse.org/reference/g...
library(animint2) #Reading Happiness Index Data of 2015 HappinessData <- read.csv('./data/2015.csv') viz.plot.one <- ggplot()+ ggtitle("Happiness Score vs. Life Expectancy")+ geom_point(aes(x=Happiness.Score, y=Health..Life.Expectancy., color=Region), size=6, showSelected="Region", ...
/Other Viz/AnimatedEasyTask.R
no_license
lazycipher/Tests-for-Animated-interactive-ggplots
R
false
false
1,435
r
library(animint2) #Reading Happiness Index Data of 2015 HappinessData <- read.csv('./data/2015.csv') viz.plot.one <- ggplot()+ ggtitle("Happiness Score vs. Life Expectancy")+ geom_point(aes(x=Happiness.Score, y=Health..Life.Expectancy., color=Region), size=6, showSelected="Region", ...
fun_circle1 <- function() { fun_circle2() return(NULL) } fun_circle2 <- function() { fun_circle3() return(NULL) } fun_circle3 <- function() { fun_circle4() return(NULL) } fun_circle4 <- function() { fun_circle1() return(NULL) }
/data/r-testfile-2.R
no_license
ims-fhs/badhacker
R
false
false
247
r
fun_circle1 <- function() { fun_circle2() return(NULL) } fun_circle2 <- function() { fun_circle3() return(NULL) } fun_circle3 <- function() { fun_circle4() return(NULL) } fun_circle4 <- function() { fun_circle1() return(NULL) }
\name{KellyRatio} \alias{KellyRatio} \title{calculate Kelly criterion ratio (leverage or bet size) for a strategy} \usage{ KellyRatio(R, Rf = 0, method = "half") } \arguments{ \item{R}{a vector of returns to perform a mean over} \item{Rf}{risk free rate, in same period as your returns} \item{method}{method=ha...
/man/KellyRatio.Rd
no_license
sanjivkv/PerformanceAnalytics
R
false
false
1,880
rd
\name{KellyRatio} \alias{KellyRatio} \title{calculate Kelly criterion ratio (leverage or bet size) for a strategy} \usage{ KellyRatio(R, Rf = 0, method = "half") } \arguments{ \item{R}{a vector of returns to perform a mean over} \item{Rf}{risk free rate, in same period as your returns} \item{method}{method=ha...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tool_functions.R \name{prune_model} \alias{prune_model} \title{Prune the model} \usage{ prune_model(ztrain, ztest, model, int, Time, vel, mle, condition = 0) } \arguments{ \item{ztrain}{training neural data} \item{ztest}{testing neural data}...
/man/prune_model.Rd
no_license
fmatano/StateSpaceStepwise
R
false
true
708
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tool_functions.R \name{prune_model} \alias{prune_model} \title{Prune the model} \usage{ prune_model(ztrain, ztest, model, int, Time, vel, mle, condition = 0) } \arguments{ \item{ztrain}{training neural data} \item{ztest}{testing neural data}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isValidFunctions.R \name{isValidTime} \alias{isValidTime} \title{Check Time String Format} \usage{ isValidTime(date, format = "\%H:\%M:\%S") } \arguments{ \item{format}{By default equals to "\%H:\%M:\%S"} } \description{ Return a boolean depe...
/man/isValidTime.Rd
permissive
fabarca/reutiles
R
false
true
386
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isValidFunctions.R \name{isValidTime} \alias{isValidTime} \title{Check Time String Format} \usage{ isValidTime(date, format = "\%H:\%M:\%S") } \arguments{ \item{format}{By default equals to "\%H:\%M:\%S"} } \description{ Return a boolean depe...
\name{rp.skewness} \alias{rp.skewness} \title{Skewness} \usage{ rp.skewness(...) } \arguments{ \item{...}{parameters to be passed to \code{rp.univar} function} } \value{ a numeric value with variable's skewness } \description{ Calculates skewness of given variable. See \code{\link{rp.univar}} for details. }...
/man/rp.skewness.Rd
no_license
casunlight/rapport
R
false
false
322
rd
\name{rp.skewness} \alias{rp.skewness} \title{Skewness} \usage{ rp.skewness(...) } \arguments{ \item{...}{parameters to be passed to \code{rp.univar} function} } \value{ a numeric value with variable's skewness } \description{ Calculates skewness of given variable. See \code{\link{rp.univar}} for details. }...
/01_Sensitivity/Morris.R
no_license
tdeswaef/AquaCrop-Identifiability
R
false
false
21,408
r
abcrf.formula <- function(formula, data, group=list(), lda=TRUE, ntree=500, sampsize=min(1e5, nrow(data)), paral=FALSE, ncores= if(paral) max(detectCores()-1,1) else 1, ...) { # formula and data.frame check if (!inherits(formula, "formula")) stop("abcrf.formula is only for...
/R/abcrf.R
no_license
JulienPascal/abcrf
R
false
false
3,840
r
abcrf.formula <- function(formula, data, group=list(), lda=TRUE, ntree=500, sampsize=min(1e5, nrow(data)), paral=FALSE, ncores= if(paral) max(detectCores()-1,1) else 1, ...) { # formula and data.frame check if (!inherits(formula, "formula")) stop("abcrf.formula is only for...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blob.R \name{ps_blob_file} \alias{ps_blob_file} \title{Blob File} \usage{ ps_blob_file(file) } \arguments{ \item{file}{A string of the file name.} } \description{ Converts a file in the directory into a named blob. }
/man/ps_blob_file.Rd
permissive
poissonconsulting/poissqlite
R
false
true
295
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blob.R \name{ps_blob_file} \alias{ps_blob_file} \title{Blob File} \usage{ ps_blob_file(file) } \arguments{ \item{file}{A string of the file name.} } \description{ Converts a file in the directory into a named blob. }
steepest.ascent <- function(X, start, step=.0005){ #X is the vector with all sample values xi #start should be given as a 5-element vector c(p, mu1, mu2, sigma1, sigma2) #I only had one p value because p2 = 1-p1 #M[1]=p, M[2]=mu1, M[3]=mu2, M[4]=sigma1, M[5]=sigma2 M <- start #M matrix will store each ...
/Steepest Ascent.R
no_license
LannyFox/HW3
R
false
false
2,542
r
steepest.ascent <- function(X, start, step=.0005){ #X is the vector with all sample values xi #start should be given as a 5-element vector c(p, mu1, mu2, sigma1, sigma2) #I only had one p value because p2 = 1-p1 #M[1]=p, M[2]=mu1, M[3]=mu2, M[4]=sigma1, M[5]=sigma2 M <- start #M matrix will store each ...
\name{mvdv-class} \Rdversion{1.1} \docType{class} \alias{mvdv-class} \alias{dmvdv} \alias{pmvdv} \alias{rmvdv} \title{Multivariate Distributions Constructed from Vines} \description{ Density, distribution function, and random generator for a multivariate distribution via vines. The class \code{"mvdv"} is designed a...
/man/mvdv-class.Rd
no_license
DianaCarrera/VinecopulaedasExtra
R
false
false
2,264
rd
\name{mvdv-class} \Rdversion{1.1} \docType{class} \alias{mvdv-class} \alias{dmvdv} \alias{pmvdv} \alias{rmvdv} \title{Multivariate Distributions Constructed from Vines} \description{ Density, distribution function, and random generator for a multivariate distribution via vines. The class \code{"mvdv"} is designed a...
### Iván Eduardo Sedeño Jiménez ### R code for ISLR chapter 2. ##Ex.3 setwd("/Users/invitado/Documents/Temas compu") bias = function(x)350*exp(-0.65*x) variance = function(x)x^3/3 train_error = function(x)450/(exp(0.7*x-1.5)+1)+15 test_error = function(x)variance(x)+bias(x)+bayes_error(x)+rnorm(1,mean=100,sd=20) bayes...
/Tarea_01.R
no_license
Iseez/ISLR_curso
R
false
false
3,289
r
### Iván Eduardo Sedeño Jiménez ### R code for ISLR chapter 2. ##Ex.3 setwd("/Users/invitado/Documents/Temas compu") bias = function(x)350*exp(-0.65*x) variance = function(x)x^3/3 train_error = function(x)450/(exp(0.7*x-1.5)+1)+15 test_error = function(x)variance(x)+bias(x)+bayes_error(x)+rnorm(1,mean=100,sd=20) bayes...
getUnconstrainedSamples = function(fit) { usamples_list = lapply(fit$latent_dynamics_files(), function(file) { read_csv(file, comment = "#", col_types = cols(.default = col_double())) %>% select(-lp__, -accept_stat__, -stepsize__, -treedepth__, -n_leapfrog__, -divergent__, -energy__, -starts_wi...
/R/helpers.R
no_license
yizhang-yiz/campfire
R
false
false
1,362
r
getUnconstrainedSamples = function(fit) { usamples_list = lapply(fit$latent_dynamics_files(), function(file) { read_csv(file, comment = "#", col_types = cols(.default = col_double())) %>% select(-lp__, -accept_stat__, -stepsize__, -treedepth__, -n_leapfrog__, -divergent__, -energy__, -starts_wi...
library(doParallel) .fork_not_windows <- function(expected, expr) { err <- NULL obs <- tryCatch(expr, error=function(e) { if (!all(grepl("fork clusters are not supported on Windows", conditionMessage(e)))) err <<- conditionMessage(e) expected }) checkT...
/inst/unitTests/test_bpvectorize.R
no_license
vjcitn/BiocParallel
R
false
false
859
r
library(doParallel) .fork_not_windows <- function(expected, expr) { err <- NULL obs <- tryCatch(expr, error=function(e) { if (!all(grepl("fork clusters are not supported on Windows", conditionMessage(e)))) err <<- conditionMessage(e) expected }) checkT...
#' Split river segments at runoff unit (polygon) boundaries. #' #' Splits an 'sf' linestring object at the boundaries of #' runoff units (polygons). #' #' @param zoneID Name of the column in \code{HS} with unique IDs. #' @inheritParams compute_HSweights #' #' @return Returns an 'sf' linestring object which has been...
/R/split_river_with_grid.R
permissive
tanxuezhi/hydrostreamer
R
false
false
2,810
r
#' Split river segments at runoff unit (polygon) boundaries. #' #' Splits an 'sf' linestring object at the boundaries of #' runoff units (polygons). #' #' @param zoneID Name of the column in \code{HS} with unique IDs. #' @inheritParams compute_HSweights #' #' @return Returns an 'sf' linestring object which has been...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heatmap.R \name{merge_heatmap_opts} \alias{merge_heatmap_opts} \title{Merge default options for a heatmap} \usage{ merge_heatmap_opts(opts = list()) } \arguments{ \item{opts}{[list] A partially specified list used to customize appearance in g...
/man/merge_heatmap_opts.Rd
no_license
krisrs1128/ggscaffold
R
false
true
592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heatmap.R \name{merge_heatmap_opts} \alias{merge_heatmap_opts} \title{Merge default options for a heatmap} \usage{ merge_heatmap_opts(opts = list()) } \arguments{ \item{opts}{[list] A partially specified list used to customize appearance in g...
library(ggvis) shinyUI( navbarPage(p(h5(strong("Navigate Bar for Plots"), style = "color:Green")), tabPanel(p(h3(strong("Input Data"),style = "color:green")), titlePanel(p(h2("Basic Visualisation Tool",style = "color:orange"))), ...
/shiny_cluster_8sep/graficas/Carpeta sin título 2/ui.R
no_license
isabelmillan/shiny_B
R
false
false
10,467
r
library(ggvis) shinyUI( navbarPage(p(h5(strong("Navigate Bar for Plots"), style = "color:Green")), tabPanel(p(h3(strong("Input Data"),style = "color:green")), titlePanel(p(h2("Basic Visualisation Tool",style = "color:orange"))), ...
library(ggplot2) library(data.table) library(usmap) # First three lines are metadata metadata <- readLines('./CollegeData.csv', n = 3) metadata <- strsplit(metadata, ',') fullColumnNames <- metadata[[1]] columnNames <- metadata[[2]] columnClasses <- metadata[[3]] # Custom class for date formatting setClass('myDate') ...
/Regression.R
no_license
jackson-nestelroad/global-health-project-regression
R
false
false
4,271
r
library(ggplot2) library(data.table) library(usmap) # First three lines are metadata metadata <- readLines('./CollegeData.csv', n = 3) metadata <- strsplit(metadata, ',') fullColumnNames <- metadata[[1]] columnNames <- metadata[[2]] columnClasses <- metadata[[3]] # Custom class for date formatting setClass('myDate') ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocessing_filtering_reduction.R \name{create_scExp} \alias{create_scExp} \title{Wrapper to create the single cell experiment from count matrix and feature dataframe} \usage{ create_scExp( datamatrix, annot, remove_zero_cells = TRUE,...
/man/create_scExp.Rd
no_license
vallotlab/ChromSCape
R
false
true
1,476
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocessing_filtering_reduction.R \name{create_scExp} \alias{create_scExp} \title{Wrapper to create the single cell experiment from count matrix and feature dataframe} \usage{ create_scExp( datamatrix, annot, remove_zero_cells = TRUE,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emmGrid-methods.R \name{regrid} \alias{regrid} \title{Reconstruct a reference grid with a new transformation or posterior sample} \usage{ regrid(object, transform = c("response", "mu", "unlink", "none", "pass", links), inv.link.lbl = "respo...
/man/regrid.Rd
no_license
karthy257/emmeans
R
false
true
6,005
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emmGrid-methods.R \name{regrid} \alias{regrid} \title{Reconstruct a reference grid with a new transformation or posterior sample} \usage{ regrid(object, transform = c("response", "mu", "unlink", "none", "pass", links), inv.link.lbl = "respo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Alin.R \name{compute.score} \alias{compute.score} \title{Compute score} \usage{ compute.score(als2, Sim) } \description{ Compute score } \keyword{internal}
/man/compute.score.Rd
no_license
KariAntonio/AligNet
R
false
true
235
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Alin.R \name{compute.score} \alias{compute.score} \title{Compute score} \usage{ compute.score(als2, Sim) } \description{ Compute score } \keyword{internal}
# # # # # # # # # # # # # # # # PCR and PLS regression # # # # # # # # # # # # # # # # library(ISLR) library(pls) # Omit missing values Hitters = na.omit(Hitters) # PCR set.seed(2) pcr.fit = pcr(Salary~.,data=Hitters,scale=TRUE,validation="CV") summary(pcr.fit) # Plot results validationplot(pcr.fit,val.type = "MS...
/Tutorial7.R
no_license
ruibarrigana/Rtutorials
R
false
false
1,061
r
# # # # # # # # # # # # # # # # PCR and PLS regression # # # # # # # # # # # # # # # # library(ISLR) library(pls) # Omit missing values Hitters = na.omit(Hitters) # PCR set.seed(2) pcr.fit = pcr(Salary~.,data=Hitters,scale=TRUE,validation="CV") summary(pcr.fit) # Plot results validationplot(pcr.fit,val.type = "MS...
#' @title Extract i.i.d. decomposition from a Cox model #' @description Compute the influence function for each observation used to estimate the model #' @name iid #' #' @param object object The fitted Cox regression model object either #' obtained with \code{coxph} (survival package) or \code{cph} #' (rms pac...
/R/iidCox.R
no_license
PablitoCho/riskRegression
R
false
false
14,526
r
#' @title Extract i.i.d. decomposition from a Cox model #' @description Compute the influence function for each observation used to estimate the model #' @name iid #' #' @param object object The fitted Cox regression model object either #' obtained with \code{coxph} (survival package) or \code{cph} #' (rms pac...
## Contaminated read simulation NUCLEOTIDES <- c('A', 'T', 'C', 'G') #adapters <- list("solexa_adapter_1"="AGATCGGAAGAGCTCGTATGCCGTCTTCTGCTTG") adapter <- "AGATCGGAAGAGCTCGTATGCCGTCTTCTGCTTG" #adapter <- "TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT" set.seed(0) addErrors <- # given a sequence, add errors based on an Illumin...
/testing/read-sim.R
permissive
hjanime/scythe
R
false
false
2,623
r
## Contaminated read simulation NUCLEOTIDES <- c('A', 'T', 'C', 'G') #adapters <- list("solexa_adapter_1"="AGATCGGAAGAGCTCGTATGCCGTCTTCTGCTTG") adapter <- "AGATCGGAAGAGCTCGTATGCCGTCTTCTGCTTG" #adapter <- "TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT" set.seed(0) addErrors <- # given a sequence, add errors based on an Illumin...
# # 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) # Define UI for application that draws a histogram ui <- fluidPage( # Application title t...
/app.R
no_license
nielsenmarkus11/healthcare-prod
R
false
false
1,263
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) # Define UI for application that draws a histogram ui <- fluidPage( # Application title t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/score_lnk.r \name{score_lnk} \alias{score_lnk} \title{Score Linkage Variables} \usage{ score_lnk(df) } \arguments{ \item{df}{site MSD file} } \description{ Score Linkage Variables }
/man/score_lnk.Rd
permissive
USAID-OHA-SI/asSIMSble
R
false
true
260
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/score_lnk.r \name{score_lnk} \alias{score_lnk} \title{Score Linkage Variables} \usage{ score_lnk(df) } \arguments{ \item{df}{site MSD file} } \description{ Score Linkage Variables }
## HyperG R Package ## ## Copyright (c) 2021 David J. Marchette <dmarchette@gmail.com> ## ## Permission is hereby granted, free of charge, to any person obtaining a copy ## of this software and associated documentation files (the "Software"), to deal ## in the Software without restriction, including without limitatio...
/R/summary.hypergraph.R
no_license
cran/HyperG
R
false
false
1,729
r
## HyperG R Package ## ## Copyright (c) 2021 David J. Marchette <dmarchette@gmail.com> ## ## Permission is hereby granted, free of charge, to any person obtaining a copy ## of this software and associated documentation files (the "Software"), to deal ## in the Software without restriction, including without limitatio...
#----To clear the console----- dev.off() # Clear the graph window cat('\014') # Clear the console rm(list=ls()) # Clear all user objects from the environment!!! ######-------- Part 1--------------------------- #Import data fname <- file.choose() fname df <- read.csv(fname, header=T, stringsAsFactors = F) ...
/Rcode_311_Calls.R
no_license
iamlalitmohan/Info-Visualization
R
false
false
6,374
r
#----To clear the console----- dev.off() # Clear the graph window cat('\014') # Clear the console rm(list=ls()) # Clear all user objects from the environment!!! ######-------- Part 1--------------------------- #Import data fname <- file.choose() fname df <- read.csv(fname, header=T, stringsAsFactors = F) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internals.R \name{merge.snpR.stats} \alias{merge.snpR.stats} \title{Merge newly calculated stats into a snpRdata object.} \usage{ \method{merge}{snpR.stats}(x, stats, type = "stats") } \arguments{ \item{x}{snpRdata object} \item{stats}{data....
/man/merge.snpR.stats.Rd
no_license
ldutoit/snpR
R
false
true
1,069
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internals.R \name{merge.snpR.stats} \alias{merge.snpR.stats} \title{Merge newly calculated stats into a snpRdata object.} \usage{ \method{merge}{snpR.stats}(x, stats, type = "stats") } \arguments{ \item{x}{snpRdata object} \item{stats}{data....
############################### Simulation - MCMC kernels (E-step) ############################# mcmc<-function(model,data,control=list()) { # E-step - simulate unknown parameters # Input: kiter, Uargs, structural.model, mean.phi (unchanged) # Output: varList, DYF, phiM (changed) kiter <- 1 Gamma.laplace <- NUL...
/fsaem/code/R/mcmc_final.R
no_license
BelhalK/PapersCode
R
false
false
29,015
r
############################### Simulation - MCMC kernels (E-step) ############################# mcmc<-function(model,data,control=list()) { # E-step - simulate unknown parameters # Input: kiter, Uargs, structural.model, mean.phi (unchanged) # Output: varList, DYF, phiM (changed) kiter <- 1 Gamma.laplace <- NUL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_labels_to_reduced_matrix.R \name{add_labels_to_reduced_matrix} \alias{add_labels_to_reduced_matrix} \title{Augment a reduced matrix with label information and transition counts from original dataset} \usage{ add_labels_to_reduced_matrix(r...
/R/rkf/man/add_labels_to_reduced_matrix.Rd
no_license
alan-turing-institute/KnowledgeFlows
R
false
true
815
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_labels_to_reduced_matrix.R \name{add_labels_to_reduced_matrix} \alias{add_labels_to_reduced_matrix} \title{Augment a reduced matrix with label information and transition counts from original dataset} \usage{ add_labels_to_reduced_matrix(r...
library("aroma.affymetrix") verbose <- Arguments$getVerbose(-8, timestamp=TRUE) # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Setup data set # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dataSet <- "HapMap,CEU,testset" chipType <- "Mapping50K_Hind240" cdf <- AffymetrixCdfFile...
/inst/testScripts/system/chipTypes/Mapping50K_Hind240/12.justSNPRMA,CRLMM.R
no_license
HenrikBengtsson/aroma.affymetrix
R
false
false
1,894
r
library("aroma.affymetrix") verbose <- Arguments$getVerbose(-8, timestamp=TRUE) # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Setup data set # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dataSet <- "HapMap,CEU,testset" chipType <- "Mapping50K_Hind240" cdf <- AffymetrixCdfFile...
/RawGeno/man/Treecon.inv.Rd
no_license
arrigon/RawGeno
R
false
false
898
rd
# This script uses the context likelihood of relatedness (CLR) network inference method to predict interactions between TF genes and gene modules. ''' CLR network inference: Faith JJ, Hayete B, Thaden JT, Mogno I, Wierzbowski J, Cottarel G, et al. Large-scale mapping and validation of Escherichia coli transcriptional...
/step5_clr_inference.R
no_license
zhuqingquan5510/rsv3-network
R
false
false
1,333
r
# This script uses the context likelihood of relatedness (CLR) network inference method to predict interactions between TF genes and gene modules. ''' CLR network inference: Faith JJ, Hayete B, Thaden JT, Mogno I, Wierzbowski J, Cottarel G, et al. Large-scale mapping and validation of Escherichia coli transcriptional...
#=========================================================================== # BASIC TEXAS SETUP #=========================================================================== root = getwd() while(basename(root) != "texas") { root = dirname(root) } library(tidyverse) library(lubridate) library(readxl) source(file.pat...
/code/Data_Cleaning/glo_output.R
no_license
vmolchan/public_cs_texas
R
false
false
9,583
r
#=========================================================================== # BASIC TEXAS SETUP #=========================================================================== root = getwd() while(basename(root) != "texas") { root = dirname(root) } library(tidyverse) library(lubridate) library(readxl) source(file.pat...
testlist <- list(x = structure(c(0, 1.39234637988959e+188, 0, 8.64639514365796e-275, 1.98730118526674e-168, 5.28313590379074e-312, 2.00689190195556e-314, 4.62271829730836e-178, 3.41641322345409e-312, 0, 0, 3.45972424407988e-168, 3.81867046820952e-152, 6.80705808407373e-145, 5.68910722257131e-304, 8.37633803288811e-...
/bravo/inst/testfiles/colSumSq_matrix/libFuzzer_colSumSq_matrix/colSumSq_matrix_valgrind_files/1609959812-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
728
r
testlist <- list(x = structure(c(0, 1.39234637988959e+188, 0, 8.64639514365796e-275, 1.98730118526674e-168, 5.28313590379074e-312, 2.00689190195556e-314, 4.62271829730836e-178, 3.41641322345409e-312, 0, 0, 3.45972424407988e-168, 3.81867046820952e-152, 6.80705808407373e-145, 5.68910722257131e-304, 8.37633803288811e-...
library( dplyr, warn.conflicts = FALSE ) library( ggplot2 , warn.conflicts = FALSE ) source("../scripts/plotting/mytheme.R") argv <- commandArgs( trailingOnly = TRUE ) datafile <- argv[1] outplot <- argv[2] mactvalues <- as.numeric( unlist( strsplit( argv[3], " " ) ) ) nc <- as.numeric( argv[4] ) # Load data and c...
/figures/scripts/plotting/plot-instantaneous-speed-MactLact-facet-selection.R
permissive
ingewortel/2020-ucsp
R
false
false
3,363
r
library( dplyr, warn.conflicts = FALSE ) library( ggplot2 , warn.conflicts = FALSE ) source("../scripts/plotting/mytheme.R") argv <- commandArgs( trailingOnly = TRUE ) datafile <- argv[1] outplot <- argv[2] mactvalues <- as.numeric( unlist( strsplit( argv[3], " " ) ) ) nc <- as.numeric( argv[4] ) # Load data and c...
\name{RGB2HSL} \alias{RGB2HSL} \title{Convert RGB coordinates to HSL} \description{\code{RGB2HSL} Converts RGB coordinates to HSL. } \usage{RGB2HSL(RGBmatrix) } \arguments{ \item{RGBmatrix}{ RGB coordinates} } \value{ HSL coordinates } \source{ Logicol S.r.l., 2014 EasyRGB color search engine \url{http://www.easyrg...
/man/RGB2HSL.Rd
no_license
playwar/colorscience
R
false
false
507
rd
\name{RGB2HSL} \alias{RGB2HSL} \title{Convert RGB coordinates to HSL} \description{\code{RGB2HSL} Converts RGB coordinates to HSL. } \usage{RGB2HSL(RGBmatrix) } \arguments{ \item{RGBmatrix}{ RGB coordinates} } \value{ HSL coordinates } \source{ Logicol S.r.l., 2014 EasyRGB color search engine \url{http://www.easyrg...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convertOne.r \name{convertOne} \alias{convertOne} \title{Convert an Excel spreadsheet to match the CoVaxON schema} \arguments{ \item{file}{Character scalar. Names the path to an Excel file to convert.} } \value{ Void } \description{ \code{con...
/man/convertOne.Rd
permissive
DurhamRegionHARP/verto2covax
R
false
true
511
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convertOne.r \name{convertOne} \alias{convertOne} \title{Convert an Excel spreadsheet to match the CoVaxON schema} \arguments{ \item{file}{Character scalar. Names the path to an Excel file to convert.} } \value{ Void } \description{ \code{con...
# rm(list=ls()) library(jagsUI) library(dplyr) library(tidyverse) library(lubridate) library(PKPDmisc) ################################################################# ########## BUGS CODE ############################################ ################################################################# # Define the mo...
/R_scripts/03_bayesian_model.R
no_license
mishafredmeyer/flathead_sewage
R
false
false
8,204
r
# rm(list=ls()) library(jagsUI) library(dplyr) library(tidyverse) library(lubridate) library(PKPDmisc) ################################################################# ########## BUGS CODE ############################################ ################################################################# # Define the mo...
##*********************************************************************** ## methods to compute the spacings for diffrent objects. ## ## First sort in descending order, then diff and possibly weight. ## ## Author: Yves Deville <deville.yves@alpestat.com> ## ##***********************************************************...
/R/spacings.R
no_license
cran/Renext
R
false
false
2,142
r
##*********************************************************************** ## methods to compute the spacings for diffrent objects. ## ## First sort in descending order, then diff and possibly weight. ## ## Author: Yves Deville <deville.yves@alpestat.com> ## ##***********************************************************...
utils::globalVariables(c("station_values", "date_start", "date_end", "keyword", "network", "date_range", "station", "show", "show_date", "word", "snippet", ".x")) sfj <- purrr::safely(jsonlite::fromJSON) s_head <- purrr::safely(httr::HEAD)
/R/aaa.r
no_license
hrbrmstr/newsflash
R
false
false
266
r
utils::globalVariables(c("station_values", "date_start", "date_end", "keyword", "network", "date_range", "station", "show", "show_date", "word", "snippet", ".x")) sfj <- purrr::safely(jsonlite::fromJSON) s_head <- purrr::safely(httr::HEAD)
#.libPaths("/data/Rlibs") options(mrgsolve.soloc = "build") knitr::opts_chunk$set( comment = '.', fig.height = 5, fig.width = 9, fig.align = "center", message = FALSE, warning = FALSE ) ggplot2::theme_set(ggplot2::theme_bw())
/src/global.R
no_license
kylebaron/mpss-mrgsolve
R
false
false
241
r
#.libPaths("/data/Rlibs") options(mrgsolve.soloc = "build") knitr::opts_chunk$set( comment = '.', fig.height = 5, fig.width = 9, fig.align = "center", message = FALSE, warning = FALSE ) ggplot2::theme_set(ggplot2::theme_bw())
#shield for input type number_check2 <-function(x,y) { n <- as.numeric(x,y) {return(ifelse(is.na(n), 'ValueError', 'ValueError'))} } #test print(number_check2(2,'h')) number_check1 <-function(x) { as.numeric(x) if (is.na(x)) {return('ValueError')} } #test print(number_check1('h')) exponential <-f...
/CA5/CA 5.R
no_license
LAWLORAE/al_pbd
R
false
false
2,865
r
#shield for input type number_check2 <-function(x,y) { n <- as.numeric(x,y) {return(ifelse(is.na(n), 'ValueError', 'ValueError'))} } #test print(number_check2(2,'h')) number_check1 <-function(x) { as.numeric(x) if (is.na(x)) {return('ValueError')} } #test print(number_check1('h')) exponential <-f...
# -------------------------------------------------------------------------------- # 동적시각화와 관련된 다양한 패키지를 소개합니다. # -------------------------------------------------------------------------------- # 이번 장은 다양한 패키지를 일괄적으로 나열하여 보여드립니다. #### 1. plotly #### # plotly(이하 플로틀리)의 미션은 # Plotly is helping leading organization...
/python/수업자료/머신러닝/R_edu-master/R_NCS_2020/1_day/source/1_6_Interactive_graph.R
no_license
denim5409/connected
R
false
false
7,032
r
# -------------------------------------------------------------------------------- # 동적시각화와 관련된 다양한 패키지를 소개합니다. # -------------------------------------------------------------------------------- # 이번 장은 다양한 패키지를 일괄적으로 나열하여 보여드립니다. #### 1. plotly #### # plotly(이하 플로틀리)의 미션은 # Plotly is helping leading organization...
# R code file that constructs the PLOT 2 for the Projet 1. The Code File include # the code for reading the data so that the plot can be fully reproduced. It # also creates the PNG file. file.png = "plot2.png" filename = "household_power_consumption.txt" # check if the data is in the current working directory. If no...
/plot2.R
no_license
gitranz/ExData_Plotting1
R
false
false
2,645
r
# R code file that constructs the PLOT 2 for the Projet 1. The Code File include # the code for reading the data so that the plot can be fully reproduced. It # also creates the PNG file. file.png = "plot2.png" filename = "household_power_consumption.txt" # check if the data is in the current working directory. If no...
get_coeffs <- function(taxon_list, survey, date, save=F){ library(data.table) library(dplyr) library(readr) library(rfishbase) library(stringr) s_time <- Sys.time() ### Load Data datalw <- taxon_list %>% dplyr::rename(level = rank) %>% mutate(species = str_split(taxa, " ", simplify=...
/functions/get_length_weight_coeffs_rfishbase.R
no_license
AquaAuma/FishGlob_data
R
false
false
4,284
r
get_coeffs <- function(taxon_list, survey, date, save=F){ library(data.table) library(dplyr) library(readr) library(rfishbase) library(stringr) s_time <- Sys.time() ### Load Data datalw <- taxon_list %>% dplyr::rename(level = rank) %>% mutate(species = str_split(taxa, " ", simplify=...
################################################################################################################## # 2015 earthquake in nepal # ########################################################################################...
/Earthquake_in_Nepal_Vis.R
no_license
BkrmDahal/Nepal_earthquake
R
false
false
6,537
r
################################################################################################################## # 2015 earthquake in nepal # ########################################################################################...
######################################################### ### Problem #1: 3 different ways to make 5 x 5 matrix.### ######################################################### ### Method #1: method1<- matrix(1:25, 5, 5) method1 method2_a <- 1:5 method2_b <- 6:10 method2_c <- 11:15 method2_d <- 16:20 metho...
/Homework_2.R
no_license
poplock100/NYC_Data_Science
R
false
false
5,579
r
######################################################### ### Problem #1: 3 different ways to make 5 x 5 matrix.### ######################################################### ### Method #1: method1<- matrix(1:25, 5, 5) method1 method2_a <- 1:5 method2_b <- 6:10 method2_c <- 11:15 method2_d <- 16:20 metho...
# Data Frame Operations # 1. Creating data frames empty <- data.frame() # It creates empty data frame empty c1 <- 1:10 c1 letters c2 <- letters c2 <- letters[1:10] c2 c1 c2 df <- data.frame(col.name.1 = c1, col.name.2 = c2) df # 2. Importing and Exporting data write.csv(df,file = "saved_df.csv") read.csv('sav...
/Data Frame Operations.R
no_license
Lakshhmi/R-Course
R
false
false
2,174
r
# Data Frame Operations # 1. Creating data frames empty <- data.frame() # It creates empty data frame empty c1 <- 1:10 c1 letters c2 <- letters c2 <- letters[1:10] c2 c1 c2 df <- data.frame(col.name.1 = c1, col.name.2 = c2) df # 2. Importing and Exporting data write.csv(df,file = "saved_df.csv") read.csv('sav...
title.extraction.function <- function(name.original) { name.split <- strsplit(name.original, ", ")[[1]][2] title <- strsplit(name.split, ". ")[[1]][1] return (title) } fetch.mean.age.for.title.function <- function(title,aggregate.age.per.title) { return (aggregate.age.per.title$MeanAge[aggregate.age.per.ti...
/titanic_helper.R
no_license
aman-290698/Titanic_Analysis_R
R
false
false
1,816
r
title.extraction.function <- function(name.original) { name.split <- strsplit(name.original, ", ")[[1]][2] title <- strsplit(name.split, ". ")[[1]][1] return (title) } fetch.mean.age.for.title.function <- function(title,aggregate.age.per.title) { return (aggregate.age.per.title$MeanAge[aggregate.age.per.ti...
# Copyright 2020 Observational Health Data Sciences and Informatics # # This file is part of CensoringSensAnalysis # # 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.or...
/extras/CensoringSensAnalysis/R/Main.R
permissive
sebastiaan101/Legend
R
false
false
2,391
r
# Copyright 2020 Observational Health Data Sciences and Informatics # # This file is part of CensoringSensAnalysis # # 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.or...
# generate_anthro_1850.R # # Generate final figures for the emissions_gridding paper. # # Read instructions in gridding_paper_figures.R, then run this file. # # Matt Nicholson # 12/17/19 source('code/gridding-paper-figures/gridding_paper_figures.R') CH4_1850 <- file.path(HISTORICAL_EMS_DIR, 'CH4-em-anthro_input4MIPs_e...
/CEDS/generate_anthro_1850.R
permissive
mnichol3/my_jgcri
R
false
false
2,699
r
# generate_anthro_1850.R # # Generate final figures for the emissions_gridding paper. # # Read instructions in gridding_paper_figures.R, then run this file. # # Matt Nicholson # 12/17/19 source('code/gridding-paper-figures/gridding_paper_figures.R') CH4_1850 <- file.path(HISTORICAL_EMS_DIR, 'CH4-em-anthro_input4MIPs_e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_objects.R \name{TextToColumnsRequest} \alias{TextToColumnsRequest} \title{TextToColumnsRequest Object} \usage{ TextToColumnsRequest(delimiter = NULL, source = NULL, delimiterType = NULL) } \arguments{ \item{delimiter}{The delimiter t...
/man/TextToColumnsRequest.Rd
no_license
key-Mustang/googleSheetsR
R
false
true
659
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_objects.R \name{TextToColumnsRequest} \alias{TextToColumnsRequest} \title{TextToColumnsRequest Object} \usage{ TextToColumnsRequest(delimiter = NULL, source = NULL, delimiterType = NULL) } \arguments{ \item{delimiter}{The delimiter t...
library("ISLR") names(Smarket) #Nos tira los nombres de las columnas View(Smarket) data(Smarket) dim(Smarket) #Nos dice la cantidad de filas y columnas summary(Smarket) #Hace un resumen de estadisticas descriptivas cor(Smarket[,-9]) #Armamos una matrix de correlacion entre cada columna omitiendo la variable c...
/Regresion logistica.R
no_license
DaroMiceliPy/AnalisisCuantitativoR
R
false
false
3,101
r
library("ISLR") names(Smarket) #Nos tira los nombres de las columnas View(Smarket) data(Smarket) dim(Smarket) #Nos dice la cantidad de filas y columnas summary(Smarket) #Hace un resumen de estadisticas descriptivas cor(Smarket[,-9]) #Armamos una matrix de correlacion entre cada columna omitiendo la variable c...
# This is a version with suggested updates by T Therneau # All updates are stolen from survexp in the survival package, with comments. # Most changes are used, some further corrections were required. rformulate <- function (formula, data = parent.frame(), ratetable, na.action, rmap, int, ce...
/R/rformulate.r
no_license
cran/relsurv
R
false
false
8,526
r
# This is a version with suggested updates by T Therneau # All updates are stolen from survexp in the survival package, with comments. # Most changes are used, some further corrections were required. rformulate <- function (formula, data = parent.frame(), ratetable, na.action, rmap, int, ce...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse-utils.R \name{is_association_id} \alias{is_association_id} \title{Is a string a GWAS Catalog association accession ID?} \usage{ is_association_id(str, convert_NA_to_FALSE = TRUE) } \arguments{ \item{str}{A character vector of strings.} ...
/man/is_association_id.Rd
permissive
ramiromagno/gwasrapidd
R
false
true
756
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse-utils.R \name{is_association_id} \alias{is_association_id} \title{Is a string a GWAS Catalog association accession ID?} \usage{ is_association_id(str, convert_NA_to_FALSE = TRUE) } \arguments{ \item{str}{A character vector of strings.} ...
library(igraph) library(Matrix) library(R.matlab) x<-data.frame(c(0,1,0,0,1,0),c(1,0,1,0,1,0),c(0,1,0,1,0,0),c(0,0,1,0,1,1),c(1,1,0,0,1,0),c(0,0,0,1,0,0)) ##### c=0 for(i in 1:nrow(x)){ for(j in 1:ncol(x)){ print(x[i,j]) c=c+1 } } print(c) ### grap<-matrix(nrow=5,ncol=5) grap<-matrix(nrow=5,ncol=5) for(i i...
/Assignment3/1/GAnet/GAnet.R
no_license
ckant96/Datamining
R
false
false
10,087
r
library(igraph) library(Matrix) library(R.matlab) x<-data.frame(c(0,1,0,0,1,0),c(1,0,1,0,1,0),c(0,1,0,1,0,0),c(0,0,1,0,1,1),c(1,1,0,0,1,0),c(0,0,0,1,0,0)) ##### c=0 for(i in 1:nrow(x)){ for(j in 1:ncol(x)){ print(x[i,j]) c=c+1 } } print(c) ### grap<-matrix(nrow=5,ncol=5) grap<-matrix(nrow=5,ncol=5) for(i i...
/Retos/Reto 1/intentoItatira.R
no_license
escobartc/AnalisisNumerico-2130
R
false
false
5,217
r
library(ERP) ### Name: ERP-package ### Title: Significance Analysis of Event-Related Potentials Data: ### Significance Analysis of Event-Related Potentials Data ### Aliases: ERP-package ERP ### ** Examples ## Not run: ##D ##D data(impulsivity) ##D ##D # Paired t-tests for the comparison of the ERP curves in t...
/data/genthat_extracted_code/ERP/examples/ERP-package.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,359
r
library(ERP) ### Name: ERP-package ### Title: Significance Analysis of Event-Related Potentials Data: ### Significance Analysis of Event-Related Potentials Data ### Aliases: ERP-package ERP ### ** Examples ## Not run: ##D ##D data(impulsivity) ##D ##D # Paired t-tests for the comparison of the ERP curves in t...
#!/usr/bin/env Rscript # # Wrapper for running CIBERSORT.R by command line. # CIBERSORT.R uses 3 parallel threads. # Note: writes CIBERSORT-Results.txt file to working directory library(optparse) # Command line arguments opt_list = list( make_option(c("-l", "--library"), type="character", default=".", help="F...
/src/runCibersort.r
no_license
skoplev/hpc-cibersort
R
false
false
1,296
r
#!/usr/bin/env Rscript # # Wrapper for running CIBERSORT.R by command line. # CIBERSORT.R uses 3 parallel threads. # Note: writes CIBERSORT-Results.txt file to working directory library(optparse) # Command line arguments opt_list = list( make_option(c("-l", "--library"), type="character", default=".", help="F...
#Set Working Directory and Read Data getwd() #windows setwd("C:/Users/user hp/Documents/GitHub/DataMining-master/DataMining-master/Datasets") getwd() stats <- read.csv("Test-Data.csv") stats #Split the Data 1960 & 2013 stats[stats$Year == "1960",] df1960 <- stats[c(1:187),] df1960 df2013 <- stats[c(188:374),] df2013...
/Unit_1/Exams/Exam.R
no_license
Angi-Reynoso/Mineria_de_Datos
R
false
false
9,242
r
#Set Working Directory and Read Data getwd() #windows setwd("C:/Users/user hp/Documents/GitHub/DataMining-master/DataMining-master/Datasets") getwd() stats <- read.csv("Test-Data.csv") stats #Split the Data 1960 & 2013 stats[stats$Year == "1960",] df1960 <- stats[c(1:187),] df1960 df2013 <- stats[c(188:374),] df2013...
#' Convert `dataspice` metadata to EML #' #' Performs an (imperfect) conversion of `dataspice` metadata to EML. It's #' very likely you will get validation errors and need to fix them afterwards #' but `spice_to_eml` is a good way to a richer metadata schema (EML) when #' you're already using `dataspice` but need a ric...
/R/spice_to_eml.R
permissive
drakileshr/dataspice
R
false
false
2,614
r
#' Convert `dataspice` metadata to EML #' #' Performs an (imperfect) conversion of `dataspice` metadata to EML. It's #' very likely you will get validation errors and need to fix them afterwards #' but `spice_to_eml` is a good way to a richer metadata schema (EML) when #' you're already using `dataspice` but need a ric...
testlist <- list(doy = numeric(0), latitude = c(-6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, 2.77448001761892e+180, 2.77448001762435e+180, 2.77448001762435e+180, 2.77448001762435e+180, 2.774480...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612735860-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
613
r
testlist <- list(doy = numeric(0), latitude = c(-6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, -6.82852703442279e-229, 2.77448001761892e+180, 2.77448001762435e+180, 2.77448001762435e+180, 2.77448001762435e+180, 2.774480...
\name{translate.humar} \alias{translate.humar} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ translate.humar } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ This package translates the column names in the humar data set from Ice...
/man/translate.humar.Rd
no_license
pfrater/LogbooksTranslate
R
false
false
1,267
rd
\name{translate.humar} \alias{translate.humar} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ translate.humar } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ This package translates the column names in the humar data set from Ice...
/DomacaNaloga3/arhiv/naloga2Andraz.r
no_license
tinarazic/machine_learning
R
false
false
8,562
r
setwd("/home/user/education/rprogs") library(tidyverse) mpg ?mpg ggplot(data=mpg) + geom_point(mapping = aes(x=displ, y = hwy)) ggplot(data=mpg) nrow(mtcars) ncol(mtcars) ggplot(data = mpg) + geom_point(mapping = aes(x = hwy, y = cyl)) ggplot(data = mpg) + geom_point(mapping = aes(x = class, y = drv)) ggp...
/ggplot.R
no_license
ArtHouse5/r_progs
R
false
false
2,815
r
setwd("/home/user/education/rprogs") library(tidyverse) mpg ?mpg ggplot(data=mpg) + geom_point(mapping = aes(x=displ, y = hwy)) ggplot(data=mpg) nrow(mtcars) ncol(mtcars) ggplot(data = mpg) + geom_point(mapping = aes(x = hwy, y = cyl)) ggplot(data = mpg) + geom_point(mapping = aes(x = class, y = drv)) ggp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stat_summed_mean_difference.R \name{stat_summed_mean_difference} \alias{stat_summed_mean_difference} \title{Mean difference test statistic.} \usage{ stat_summed_mean_difference(data) } \arguments{ \item{data}{A data frame which contains colum...
/man/stat_summed_mean_difference.Rd
no_license
jlkravitz/texttest
R
false
true
400
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stat_summed_mean_difference.R \name{stat_summed_mean_difference} \alias{stat_summed_mean_difference} \title{Mean difference test statistic.} \usage{ stat_summed_mean_difference(data) } \arguments{ \item{data}{A data frame which contains colum...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CovariateGraph.R \name{CovariateGraph} \alias{CovariateGraph} \title{CovariateGraph} \usage{ Value <- CovariateGraph(X, nbin) } \arguments{ \item{X}{Data of primary variate X[, 1] and covariate X[, 2] (double(n, 2))} \item{nbin}{(optional) N...
/man/CovariateGraph.Rd
no_license
ceesfdevalk/EVTools
R
false
true
1,254
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CovariateGraph.R \name{CovariateGraph} \alias{CovariateGraph} \title{CovariateGraph} \usage{ Value <- CovariateGraph(X, nbin) } \arguments{ \item{X}{Data of primary variate X[, 1] and covariate X[, 2] (double(n, 2))} \item{nbin}{(optional) N...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IO-methods.R \name{import_biom} \alias{import_biom} \title{Import phyloseq data from biom-format file} \usage{ import_biom(BIOMfilename, treefilename=NULL, refseqfilename=NULL, refseqFunction=readDNAStringSet, refseqArgs=NULL, parseFunctio...
/man/import_biom.Rd
no_license
antagomir/phyloseq
R
false
true
8,232
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/IO-methods.R \name{import_biom} \alias{import_biom} \title{Import phyloseq data from biom-format file} \usage{ import_biom(BIOMfilename, treefilename=NULL, refseqfilename=NULL, refseqFunction=readDNAStringSet, refseqArgs=NULL, parseFunctio...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{rlomax} \alias{rlomax} \title{rlomax} \usage{ rlomax(n, alpha, lambda) } \description{ Draws from the lomax (Pareto type II) distribution with shape alpha and scale lambda. }
/man/rlomax.Rd
permissive
bobverity/bobFunctions
R
false
true
266
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{rlomax} \alias{rlomax} \title{rlomax} \usage{ rlomax(n, alpha, lambda) } \description{ Draws from the lomax (Pareto type II) distribution with shape alpha and scale lambda. }
\name{accuracy} \alias{accuracy} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculates the accuracy of a matrix } \description{ Calculates the accuracy of a given matrix. } \usage{ accuracy(accuracy_matrix, classification_vector, config, return_hit_vector = TRUE) } %- maybe also 'usage' fo...
/man/accuracy.Rd
no_license
cran/frbf
R
false
false
1,272
rd
\name{accuracy} \alias{accuracy} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculates the accuracy of a matrix } \description{ Calculates the accuracy of a given matrix. } \usage{ accuracy(accuracy_matrix, classification_vector, config, return_hit_vector = TRUE) } %- maybe also 'usage' fo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/conversion.R \name{convert_cols} \alias{convert_cols} \alias{convert_cols.data.table} \title{convert all columns of specified type to another type} \usage{ convert_cols(x, ...) \method{convert_cols}{data.table}(x, from_class, to_class, inpla...
/man/convert_cols.Rd
permissive
vh-d/RETL
R
false
true
572
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/conversion.R \name{convert_cols} \alias{convert_cols} \alias{convert_cols.data.table} \title{convert all columns of specified type to another type} \usage{ convert_cols(x, ...) \method{convert_cols}{data.table}(x, from_class, to_class, inpla...
library(testthat) library(FAtools) test_check("FAtools")
/tests/testthat.R
no_license
Shareryu/FAtools
R
false
false
58
r
library(testthat) library(FAtools) test_check("FAtools")
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "cmc") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLearner("...
/models/openml_cmc/classification_binaryClass/8f19495b5a800014be447eb3fbdefe7d/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
680
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "cmc") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLearner("...
########################################################################### # reduced skillspace estimation gdm_est_skillspace <- function(Ngroup, pi.k , Z, G , delta , eps=1E-10 ){ # gg <- 1 covdelta <- as.list(1:G) for (gg in 1:G){ ntheta <- Ngroup[gg] * pi.k[,gg] ntheta <- ntheta / sum(ntheta ) lnth...
/R/gdm_est_skillspace.R
no_license
strategist922/CDM
R
false
false
729
r
########################################################################### # reduced skillspace estimation gdm_est_skillspace <- function(Ngroup, pi.k , Z, G , delta , eps=1E-10 ){ # gg <- 1 covdelta <- as.list(1:G) for (gg in 1:G){ ntheta <- Ngroup[gg] * pi.k[,gg] ntheta <- ntheta / sum(ntheta ) lnth...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/open.R \name{openSesame} \alias{openSesame} \title{The openSesame pipeline} \usage{ openSesame(x, platform = "", manifest = NULL, what = "beta", BPPARAM = SerialParam(), ...) } \arguments{ \item{x}{SigSet(s), IDAT prefix(es), minfi GenomicR...
/man/openSesame.Rd
permissive
jamorrison/sesame
R
false
true
1,124
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/open.R \name{openSesame} \alias{openSesame} \title{The openSesame pipeline} \usage{ openSesame(x, platform = "", manifest = NULL, what = "beta", BPPARAM = SerialParam(), ...) } \arguments{ \item{x}{SigSet(s), IDAT prefix(es), minfi GenomicR...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HRJfunctions.R \name{writeHRJAccessDatabase} \alias{writeHRJAccessDatabase} \title{(HRJ) Write HRJ "B" & "C" tables to MS Access database.} \usage{ writeHRJAccessDatabase(hrj, filename) } \arguments{ \item{hrj}{A list usually comprising of tw...
/man/writeHRJAccessDatabase.Rd
no_license
seananderson/ctctools
R
false
true
1,306
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HRJfunctions.R \name{writeHRJAccessDatabase} \alias{writeHRJAccessDatabase} \title{(HRJ) Write HRJ "B" & "C" tables to MS Access database.} \usage{ writeHRJAccessDatabase(hrj, filename) } \arguments{ \item{hrj}{A list usually comprising of tw...
\name{anRpackage-package} \alias{anRpackage-package} \alias{anRpackage} \docType{package} \title{ What the package does (short line) ~~ package title ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab anRpa...
/folders/anRpackage/man/anRpackage-package.Rd
permissive
bwtian/Rtemplate
R
false
false
1,051
rd
\name{anRpackage-package} \alias{anRpackage-package} \alias{anRpackage} \docType{package} \title{ What the package does (short line) ~~ package title ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab anRpa...