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
library(microbenchmark) naive <- function(val) { factors <- c(1, val) for (x in seq(2:val - 1)) { for (y in seq(x:val - 1)){ if ( (x * y) == val) { factors <- c(factors, c(y)) } } } return(factors) } improved <- function(val, limit=0) { factors <- c(1) for (x in seq(2:val -...
/R/r_gcf.r
no_license
daniel-partington/GCF-Calculator
R
false
false
1,376
r
library(microbenchmark) naive <- function(val) { factors <- c(1, val) for (x in seq(2:val - 1)) { for (y in seq(x:val - 1)){ if ( (x * y) == val) { factors <- c(factors, c(y)) } } } return(factors) } improved <- function(val, limit=0) { factors <- c(1) for (x in seq(2:val -...
##' Gets coefficients and standard errors for an nls object ##' @param x an nls object ##' @return a 1-row data frame. Yes, this is dumb: it should be a vector ##' @export get_nls_coefs <- function(x) { # x is a nls fit coeffs <- summary(x)$coefficients data.frame(Km=coeffs[1, 1], Km.se=coeffs[1, 2]...
/R/get_nls_coefs.R
no_license
adsteen/subspec
R
false
false
390
r
##' Gets coefficients and standard errors for an nls object ##' @param x an nls object ##' @return a 1-row data frame. Yes, this is dumb: it should be a vector ##' @export get_nls_coefs <- function(x) { # x is a nls fit coeffs <- summary(x)$coefficients data.frame(Km=coeffs[1, 1], Km.se=coeffs[1, 2]...
# f - function: R -> R # x0 - start point # eps1 eps2 - accuracy DSKPNew <- function(f, int, eps1,eps2) { x <- rep(0,3) x[1] <- int[1] x[3] <- int[2] x[2] <- (x[1]+x[3])/2 xastr <- x[2] + (x[2] - x[1])*(fv[1] - fv[3])/2/(fv[1]-2*fv[2]+fv[3]) x <- c(x[1],x[2],x[3],xastr) x <- sort (x) ...
/dskp.r
no_license
kverhun/Optimization
R
false
false
2,166
r
# f - function: R -> R # x0 - start point # eps1 eps2 - accuracy DSKPNew <- function(f, int, eps1,eps2) { x <- rep(0,3) x[1] <- int[1] x[3] <- int[2] x[2] <- (x[1]+x[3])/2 xastr <- x[2] + (x[2] - x[1])*(fv[1] - fv[3])/2/(fv[1]-2*fv[2]+fv[3]) x <- c(x[1],x[2],x[3],xastr) x <- sort (x) ...
#-------------------------------------------------------------------------------------------------------------------------------- #-------------------------------------------------------------------------------------------------------------------------------- # R-3.4.1 # mordor # Objective : Extract clusters from KCCA ...
/scripts/06b.2_KCCA.Brain.splitclusters.R
no_license
aditiq/CSC-lupien
R
false
false
5,650
r
#-------------------------------------------------------------------------------------------------------------------------------- #-------------------------------------------------------------------------------------------------------------------------------- # R-3.4.1 # mordor # Objective : Extract clusters from KCCA ...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/large_intestine.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=TRUE) sink('./large_intestine_069...
/Model/EN/Correlation/large_intestine/large_intestine_069.R
no_license
esbgkannan/QSMART
R
false
false
368
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/large_intestine.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=TRUE) sink('./large_intestine_069...
\name{quebrar_letras} \alias{quebrar_letras} %- Also NEED an '\alias' for EACH other topic documented here. \title{quebrar_letras %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ quebrar_letras(x) } %- maybe also 'usage' for other o...
/man/quebrar_letras.Rd
no_license
ThiagoNato/decryptSound
R
false
false
1,356
rd
\name{quebrar_letras} \alias{quebrar_letras} %- Also NEED an '\alias' for EACH other topic documented here. \title{quebrar_letras %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ quebrar_letras(x) } %- maybe also 'usage' for other o...
# r # input for plot_echam.r message("###################### namelist.general.plot.r start ##########################") # clear work space if (T) { message("clear work space ...") ws <- ls() ws <- ws[-which(ws == "repopath")] rm(list=ws) } # load helper functions of this repo script_helper_functions ...
/namelist.general.plot.r
no_license
chrisdane/echam
R
false
false
9,190
r
# r # input for plot_echam.r message("###################### namelist.general.plot.r start ##########################") # clear work space if (T) { message("clear work space ...") ws <- ls() ws <- ws[-which(ws == "repopath")] rm(list=ws) } # load helper functions of this repo script_helper_functions ...
hdfs.init() hdfs.ls('/') hdfs.mkdir("/taxi_data") hdfs.put('/home/hadoop/R/taxi_com.csv','/taxi_data/taxi_com') #### map function mapper_taxi = function(.,fields) { w_day = as.character(fields[[13]]) trip_duration = as.numeric(as.character(fields[[12]])) output = data.frame(num = 1, trip_duration = trip_durat...
/taxi_durationPerDay.R
no_license
bigblesslee/kagglewithrhadoop
R
false
false
964
r
hdfs.init() hdfs.ls('/') hdfs.mkdir("/taxi_data") hdfs.put('/home/hadoop/R/taxi_com.csv','/taxi_data/taxi_com') #### map function mapper_taxi = function(.,fields) { w_day = as.character(fields[[13]]) trip_duration = as.numeric(as.character(fields[[12]])) output = data.frame(num = 1, trip_duration = trip_durat...
.myClassificationBenchmarking=function(inputDataList,ncores=1,expClassName="proband",methodsList=list("reg","logReg","lda","qda","sqda","ridgeReg","lassoReg","ridgeLogReg","lassoLogReg","elasticNetLogReg","randomForest","boosting","bagging","neuralNet")){ #inputDataList=resultsPosterior;ncores=1;expClassName="prob...
/6_sample scores/ClassificationModule.R
no_license
bobaoai/autism_classifier
R
false
false
58,237
r
.myClassificationBenchmarking=function(inputDataList,ncores=1,expClassName="proband",methodsList=list("reg","logReg","lda","qda","sqda","ridgeReg","lassoReg","ridgeLogReg","lassoLogReg","elasticNetLogReg","randomForest","boosting","bagging","neuralNet")){ #inputDataList=resultsPosterior;ncores=1;expClassName="prob...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_radar_imagery.R \name{get_radar_imagery} \alias{get_radar_imagery} \title{Get \acronym{BOM} Radar Imagery} \usage{ get_radar_imagery(product_id, path = NULL, download_only = FALSE) } \arguments{ \item{product_id}{Character. \acronym{BOM} ...
/man/get_radar_imagery.Rd
permissive
basaks/bomrang
R
false
true
1,959
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_radar_imagery.R \name{get_radar_imagery} \alias{get_radar_imagery} \title{Get \acronym{BOM} Radar Imagery} \usage{ get_radar_imagery(product_id, path = NULL, download_only = FALSE) } \arguments{ \item{product_id}{Character. \acronym{BOM} ...
## ######################################################### ## PURPOSE: Given a list of points' coordinates and the values ## observed at those points, return a scatterplot with points ## located as specified by the coordinates and coded by color ## and/or size to represnt the observed value at the locati...
/R/plot3d_points.R
no_license
cran/aqfig
R
false
false
6,718
r
## ######################################################### ## PURPOSE: Given a list of points' coordinates and the values ## observed at those points, return a scatterplot with points ## located as specified by the coordinates and coded by color ## and/or size to represnt the observed value at the locati...
# Applied hierarchical modeling in ecology # Modeling distribution, abundance and species richness using R and BUGS # Volume 2: Dynamic and Advanced models # Marc Kéry & J. Andy Royle # # Chapter 4 : MODELING SPECIES DISTRIBUTION AND RANGE DYNAMICS, AND POPULATION # DYNAMICS USING DYNAMIC OCCUPANCY ...
/AHM2_ch04/AHM2_04.06.R
no_license
rhine3/AHM_code
R
false
false
7,547
r
# Applied hierarchical modeling in ecology # Modeling distribution, abundance and species richness using R and BUGS # Volume 2: Dynamic and Advanced models # Marc Kéry & J. Andy Royle # # Chapter 4 : MODELING SPECIES DISTRIBUTION AND RANGE DYNAMICS, AND POPULATION # DYNAMICS USING DYNAMIC OCCUPANCY ...
#' @title Open a specific portfolio.optimization package tutorial #' #' @description #' \code{po.tutorial} returns the filename of a specific portfolio.optimization #' package tutorial. If no tutorial is given or the tutorial is missspelled, a #' list of available tutorials is printed. #' #' @param tutorial name of ...
/R/po.tutorial.R
no_license
CaptainTsao/portfolio.optimization
R
false
false
1,067
r
#' @title Open a specific portfolio.optimization package tutorial #' #' @description #' \code{po.tutorial} returns the filename of a specific portfolio.optimization #' package tutorial. If no tutorial is given or the tutorial is missspelled, a #' list of available tutorials is printed. #' #' @param tutorial name of ...
## Parameter settings ## number of monte carlo trials per experiment default.trials = 5000 ## Discrete parameter space to search. Each parameter now contains a list ## of possible values rather than a single value. ## Latency factor F = c(0.85) ## Extra category penalty cat.penalty = c(-999); ## Total source ac...
/parameters.r
no_license
pealco/Simple-ACT-R
R
false
false
1,160
r
## Parameter settings ## number of monte carlo trials per experiment default.trials = 5000 ## Discrete parameter space to search. Each parameter now contains a list ## of possible values rather than a single value. ## Latency factor F = c(0.85) ## Extra category penalty cat.penalty = c(-999); ## Total source ac...
#' Vertx Contingency Table Values - Bipartite #' #' This function calculates the components of a contingency table for each pair of column vertices. #' @param net is an unweighted bipartite graph where the columns are the observations of interest #' @keywords contingency #' @export #' @examples #' contingency2() "cont...
/contingency2.R
no_license
mmh5423/network-analysis-ck
R
false
false
1,102
r
#' Vertx Contingency Table Values - Bipartite #' #' This function calculates the components of a contingency table for each pair of column vertices. #' @param net is an unweighted bipartite graph where the columns are the observations of interest #' @keywords contingency #' @export #' @examples #' contingency2() "cont...
library(rstan) library(bayesplot) options(mc.cores=parallel::detectCores()) data <- read.csv('~/BMS/ch08/SSPI2015.csv') #年収が0または2500万以上は除外 data <- data[data$Y>0 & data$Y<2500,] #年収を対数化する data$Y <- log(data$Y) data.ssp2015 = list( y = data$Y, N = length(data$Y), EDU = data$EDU, FEM = data$FEM ) #[プロセスA] fit...
/ch_10.R
no_license
kthimuo/BMS_study_ch10
R
false
false
1,300
r
library(rstan) library(bayesplot) options(mc.cores=parallel::detectCores()) data <- read.csv('~/BMS/ch08/SSPI2015.csv') #年収が0または2500万以上は除外 data <- data[data$Y>0 & data$Y<2500,] #年収を対数化する data$Y <- log(data$Y) data.ssp2015 = list( y = data$Y, N = length(data$Y), EDU = data$EDU, FEM = data$FEM ) #[プロセスA] fit...
#' Function to export a filter #' #' This function exports a filter as a .FLT file. #' #' @param object #' \code{\linkS4class{Filter}} to export #' @param file.name #' \link{character} name of the .FLT file that will contain the filter properties. #' #' @return #' The function creates a new txt file containing the f...
/R/export_Filter.R
no_license
dstreble/LumReader
R
false
false
2,254
r
#' Function to export a filter #' #' This function exports a filter as a .FLT file. #' #' @param object #' \code{\linkS4class{Filter}} to export #' @param file.name #' \link{character} name of the .FLT file that will contain the filter properties. #' #' @return #' The function creates a new txt file containing the f...
one_mean <- mtcars_df %>% specify(response = mpg) %>% # formula alt: mpg ~ NULL hypothesize(null = "point", mu = 25) one_mean_specify <- mtcars_df %>% specify(response = mpg) one_median <- mtcars_df %>% specify(response = mpg) %>% # formula alt: mpg ~ NULL hypothesize(null = "point", med = 26) one_prop <- ...
/tests/testthat/test-hypothesize.R
permissive
wjhopper/infer
R
false
false
6,715
r
one_mean <- mtcars_df %>% specify(response = mpg) %>% # formula alt: mpg ~ NULL hypothesize(null = "point", mu = 25) one_mean_specify <- mtcars_df %>% specify(response = mpg) one_median <- mtcars_df %>% specify(response = mpg) %>% # formula alt: mpg ~ NULL hypothesize(null = "point", med = 26) one_prop <- ...
#' @title Firm value in Merton's model #' #' @description #' With this function we simulate \code{n} trajectories of firm value based on #' Merton's model. #' #' @param V0 firm value at time \code{t = 0}. #' @param r risk-free interest rate (constant for all t). #' @param sigma volatility (constant for all t). #' @para...
/R/Merton.sim.R
no_license
Karagul/CreditRisk
R
false
false
2,258
r
#' @title Firm value in Merton's model #' #' @description #' With this function we simulate \code{n} trajectories of firm value based on #' Merton's model. #' #' @param V0 firm value at time \code{t = 0}. #' @param r risk-free interest rate (constant for all t). #' @param sigma volatility (constant for all t). #' @para...
\name{bind.fv} \alias{bind.fv} \alias{cbind.fv} \title{ Combine Function Value Tables } \description{ Advanced Use Only. Combine objects of class \code{"fv"}, or glue extra columns of data onto an existing \code{"fv"} object. } \usage{ \method{cbind}{fv}(...) bind.fv(x, y, labl = NULL, desc = NULL, preferred = ...
/man/bind.fv.Rd
no_license
rubak/spatstat
R
false
false
3,562
rd
\name{bind.fv} \alias{bind.fv} \alias{cbind.fv} \title{ Combine Function Value Tables } \description{ Advanced Use Only. Combine objects of class \code{"fv"}, or glue extra columns of data onto an existing \code{"fv"} object. } \usage{ \method{cbind}{fv}(...) bind.fv(x, y, labl = NULL, desc = NULL, preferred = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-res.R \name{rownG} \alias{rownG} \title{rown} \usage{ rownG(var) } \arguments{ \item{var}{Variable from stan output} } \description{ \code{rown} Extract row }
/man/rownG.Rd
no_license
kralljr/stansa
R
false
true
242
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-res.R \name{rownG} \alias{rownG} \title{rown} \usage{ rownG(var) } \arguments{ \item{var}{Variable from stan output} } \description{ \code{rown} Extract row }
printHeader <- function(plpData, cohortId, outcomeId , analysisId, analysisName, ExecutionDateTime){ ParallelLogger::logInfo(paste0('Patient-Level Prediction Package version ', utils::packageVersion("PatientLevelPrediction"))) ParallelLogger::logInfo(paste0('Study started at: ', ExecutionDateTime)) Paral...
/R/RunPlpHelpers.R
permissive
anthonysena/PatientLevelPrediction
R
false
false
4,009
r
printHeader <- function(plpData, cohortId, outcomeId , analysisId, analysisName, ExecutionDateTime){ ParallelLogger::logInfo(paste0('Patient-Level Prediction Package version ', utils::packageVersion("PatientLevelPrediction"))) ParallelLogger::logInfo(paste0('Study started at: ', ExecutionDateTime)) Paral...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/UShoard.R \docType{package} \name{UShoard} \alias{UShoard} \alias{UShoard-package} \title{UShoard: Data of Sales Volume of US Treasury Bills and Bonds} \description{ UShoard: Data of Sales Volume of US Treasury Bills and Bonds } \section{Sour...
/man/UShoard.Rd
no_license
AndreMikulec/UShoard
R
false
true
2,056
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/UShoard.R \docType{package} \name{UShoard} \alias{UShoard} \alias{UShoard-package} \title{UShoard: Data of Sales Volume of US Treasury Bills and Bonds} \description{ UShoard: Data of Sales Volume of US Treasury Bills and Bonds } \section{Sour...
library(DBI) library(lattice) library(Hmisc) library(dplyr) library(RMySQL) library(plotrix) library(reshape2) library(graphics) con <- dbConnect(MySQL(), user = 'root', password = 'admin', host = 'localhost', dbname='changehistory') #vetorPaths <- c("dom","javascript","javascript_extras","javascript_xpconnect","layout...
/Scripts/R Scripts/1.R
no_license
gustavo95/vulnerability-detection-tool
R
false
false
1,356
r
library(DBI) library(lattice) library(Hmisc) library(dplyr) library(RMySQL) library(plotrix) library(reshape2) library(graphics) con <- dbConnect(MySQL(), user = 'root', password = 'admin', host = 'localhost', dbname='changehistory') #vetorPaths <- c("dom","javascript","javascript_extras","javascript_xpconnect","layout...
library(shiny) library(plyr) library(scales) library(ggplot2) shinyServer(function(input,output) { d <- reactive({ o = rdply(input$n_sims, { totalCount = rpois(1, input$rate * input$t) times = sort(runif(totalCount, 0, input$t)) data.frame(times=c(0,times,input$t), count=c(0:totalCount,totalCou...
/poisson_process/server.R
permissive
jarad/shiny-server
R
false
false
1,263
r
library(shiny) library(plyr) library(scales) library(ggplot2) shinyServer(function(input,output) { d <- reactive({ o = rdply(input$n_sims, { totalCount = rpois(1, input$rate * input$t) times = sort(runif(totalCount, 0, input$t)) data.frame(times=c(0,times,input$t), count=c(0:totalCount,totalCou...
#' @title #' Average Hausdorff Distance computation. #' #' @description #' Computes the average Hausdroff distance measure between two point sets. #' #' @template arg_pointset_A #' @template arg_pointset_B #' @param p [\code{numeric(1)}]\cr #' Parameter p of the average Hausdoff metrix. Default is 1. See the descript...
/R/computeAverageHausdorffDistance.R
no_license
niiwise/ecr2
R
false
false
5,276
r
#' @title #' Average Hausdorff Distance computation. #' #' @description #' Computes the average Hausdroff distance measure between two point sets. #' #' @template arg_pointset_A #' @template arg_pointset_B #' @param p [\code{numeric(1)}]\cr #' Parameter p of the average Hausdoff metrix. Default is 1. See the descript...
##read data power<-read.table("household_power_consumption.txt",header=T,na.strings = "?",sep = ";") head(power) ##subset data power_Feb<-subset(power,Date %in% c("1/2/2007","2/2/2007")) power_Feb$Date<-as.Date(power_Feb$Date,"%d/%m/%Y") ##making plot 2 datetime<-paste(as.Date(power_Feb$Date),power_Feb$Time) power_Feb$...
/plot2.R
no_license
Mary0523/ExData_Plotting1
R
false
false
524
r
##read data power<-read.table("household_power_consumption.txt",header=T,na.strings = "?",sep = ";") head(power) ##subset data power_Feb<-subset(power,Date %in% c("1/2/2007","2/2/2007")) power_Feb$Date<-as.Date(power_Feb$Date,"%d/%m/%Y") ##making plot 2 datetime<-paste(as.Date(power_Feb$Date),power_Feb$Time) power_Feb$...
# source("D:/GitHub/powerfamily/U_tool.R") # datapath = "D:/GitHub/powerfamily/data/" source("/home/wang3660/Research/PF/U_tool_server.R") datapath = "/home/wang3660/Research/PF/data/" # dyn.load("D:/GitHub/powerfamily/O_hsvmlassoNET.dll") dyn.load("/home/wang3660/Research/PF/crossvalidation/O_hsvmlassoNET.so") dat =...
/cross-validation/02_11/T_simpleversion.R
no_license
boxiang-wang/powerfamily
R
false
false
6,384
r
# source("D:/GitHub/powerfamily/U_tool.R") # datapath = "D:/GitHub/powerfamily/data/" source("/home/wang3660/Research/PF/U_tool_server.R") datapath = "/home/wang3660/Research/PF/data/" # dyn.load("D:/GitHub/powerfamily/O_hsvmlassoNET.dll") dyn.load("/home/wang3660/Research/PF/crossvalidation/O_hsvmlassoNET.so") dat =...
moda <- function(x){ tab <- table(x) md <- as.numeric(names(which(tab == max(tab)))) return(md) }
/moda.R
no_license
fernandomayer/Rutilities
R
false
false
110
r
moda <- function(x){ tab <- table(x) md <- as.numeric(names(which(tab == max(tab)))) return(md) }
##################################################################################### # Estimate mlVAR # A+M network subset 5a ##################################################################################### # Load packages/functions library(mlVAR) library(ggplot2) library(qgraph) library("imputeTS") # kalman ...
/R code/Appendix/H. Additional networks/mlVAR_subset5a.R
permissive
MyrtheV/Family_Affect_Systems
R
false
false
11,707
r
##################################################################################### # Estimate mlVAR # A+M network subset 5a ##################################################################################### # Load packages/functions library(mlVAR) library(ggplot2) library(qgraph) library("imputeTS") # kalman ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear_SPP.R \name{do.spp} \alias{do.spp} \title{Sparsity Preserving Projection} \usage{ do.spp(X, ndim = 2, preprocess = c("center", "scale", "cscale", "decorrelate", "whiten"), reltol = 1e-04) } \arguments{ \item{X}{an \eqn{(n\times p)} m...
/man/linear_SPP.Rd
no_license
rcannood/Rdimtools
R
false
true
1,827
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear_SPP.R \name{do.spp} \alias{do.spp} \title{Sparsity Preserving Projection} \usage{ do.spp(X, ndim = 2, preprocess = c("center", "scale", "cscale", "decorrelate", "whiten"), reltol = 1e-04) } \arguments{ \item{X}{an \eqn{(n\times p)} m...
testlist <- list(a = 0L, b = 0L, x = c(0L, 0L, 255L, -117440512L, 0L, 0L, 255L, -1L, -16318465L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610128249-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
451
r
testlist <- list(a = 0L, b = 0L, x = c(0L, 0L, 255L, -117440512L, 0L, 0L, 255L, -1L, -16318465L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
#' @title See or set arguments for common RFishBC functions #' #' @description The \code{\link{digitizeRadii}} and \code{\link{showDigitizedImage}} functions have a variety of arguments that create great flexibility. Default values for these arguments can be seen with this function. #' #' Additionally, a user may...
/R/RFBCoptions.R
no_license
cran/RFishBC
R
false
false
15,027
r
#' @title See or set arguments for common RFishBC functions #' #' @description The \code{\link{digitizeRadii}} and \code{\link{showDigitizedImage}} functions have a variety of arguments that create great flexibility. Default values for these arguments can be seen with this function. #' #' Additionally, a user may...
gesm <- function(formula, data, family, eta, burn.in, post.sam.s, thin){ if(family!="Normal" & family!="Student-t" & family!="Slash" & family!="Hyperbolic" & family!="ContNormal" & family!="Laplace") stop("Family of Distributions specified by the user is not supported, Check documentation!!",call.=FALSE) if(f...
/BayesGESM/R/gesm.R
no_license
ingted/R-Examples
R
false
false
10,150
r
gesm <- function(formula, data, family, eta, burn.in, post.sam.s, thin){ if(family!="Normal" & family!="Student-t" & family!="Slash" & family!="Hyperbolic" & family!="ContNormal" & family!="Laplace") stop("Family of Distributions specified by the user is not supported, Check documentation!!",call.=FALSE) if(f...
#' Computes classification accuracy from the confusion matrix summary based on a #' set of predicted and truth classes for a signature. #' #' For each class, we calculate the classification accuracy in order to summarize #' its performance for the signature. We compute one of two aggregate scores, #' to summarize the o...
/R/accuracy.r
no_license
PNNL-Comp-Mass-Spec/glmnetGLR
R
false
false
2,474
r
#' Computes classification accuracy from the confusion matrix summary based on a #' set of predicted and truth classes for a signature. #' #' For each class, we calculate the classification accuracy in order to summarize #' its performance for the signature. We compute one of two aggregate scores, #' to summarize the o...
library("reshape2",lib.loc="R-3.4.1/library") library("ggplot2",lib.loc="R-3.4.1/library") data <- read.table("top.30.genus.log.txt.tt.boxplot.txt",header=T,check.name=F,sep="\t") data1 <- melt(data) data1$group <- factor(data1$group,levels=c("Healthy","SCAD","UA","MI")) color <- c("#4daf4a","#377eb8","#984ea3","#e41a...
/rat/diff/top.30.genus.significant_species.boxplot.R
no_license
Nonewood/Bioinformatics
R
false
false
3,206
r
library("reshape2",lib.loc="R-3.4.1/library") library("ggplot2",lib.loc="R-3.4.1/library") data <- read.table("top.30.genus.log.txt.tt.boxplot.txt",header=T,check.name=F,sep="\t") data1 <- melt(data) data1$group <- factor(data1$group,levels=c("Healthy","SCAD","UA","MI")) color <- c("#4daf4a","#377eb8","#984ea3","#e41a...
#' @rdname prediction #' @param re.form An argument passed forward to \code{\link[lme4]{predict.merMod}}. #' @export prediction.merMod <- function(model, data = find_data(model), at = NULL, type = c("response", "link"), re.form = NULL, calculate_se = FALSE, ...) { type <- match.arg(type) # extract pr...
/R/prediction_merMod.R
permissive
leeper/prediction
R
false
false
1,445
r
#' @rdname prediction #' @param re.form An argument passed forward to \code{\link[lme4]{predict.merMod}}. #' @export prediction.merMod <- function(model, data = find_data(model), at = NULL, type = c("response", "link"), re.form = NULL, calculate_se = FALSE, ...) { type <- match.arg(type) # extract pr...
corr <- function(directory, threshold=0) { df <- complete(directory) ids = df[df["Nobs"] > threshold, ]$Id corrs = numeric() for (id in ids) { fileName <- sprintf("%03d.csv",id) filePath <- paste(directory,"/",fileName,sep="") tempData <- na.omit(read.csv(filePath,header=TRUE,sep=",")) cdf = tem...
/cousera/R/Week2/Quiz1/corr.R
no_license
balexander123/R
R
false
false
427
r
corr <- function(directory, threshold=0) { df <- complete(directory) ids = df[df["Nobs"] > threshold, ]$Id corrs = numeric() for (id in ids) { fileName <- sprintf("%03d.csv",id) filePath <- paste(directory,"/",fileName,sep="") tempData <- na.omit(read.csv(filePath,header=TRUE,sep=",")) cdf = tem...
\name{GUIDE-package} \alias{GUIDE-package} \title{ The main menu for the GUIDE package. } \description{ Function to bring up the main menu for the GUIDE package } \usage{ GUIDE() } \details{ Entering "GUIDE()" brings up a GUI containing the following menus:\cr Forwards\cr Futures\cr Options\cr Swaps\cr ...
/man/GUIDE-package.Rd
no_license
cran/GUIDE
R
false
false
610
rd
\name{GUIDE-package} \alias{GUIDE-package} \title{ The main menu for the GUIDE package. } \description{ Function to bring up the main menu for the GUIDE package } \usage{ GUIDE() } \details{ Entering "GUIDE()" brings up a GUI containing the following menus:\cr Forwards\cr Futures\cr Options\cr Swaps\cr ...
## Put comments here that give an overall description of what your ## functions do ## The first function, makeCacheMatrix creates a special "matrix", which is really a list containing a function to ## 1.set the value of the matrix ## 2.get the value of the matrix ## 3.set the value of the inverse of the matrix ## 4.g...
/cachematrix.R
no_license
TARASANKAR/ProgrammingAssignment2
R
false
false
3,791
r
## Put comments here that give an overall description of what your ## functions do ## The first function, makeCacheMatrix creates a special "matrix", which is really a list containing a function to ## 1.set the value of the matrix ## 2.get the value of the matrix ## 3.set the value of the inverse of the matrix ## 4.g...
setwd("/Users/apurv/Documents/SMU/6372 - Applied Statistics/Unit -3/Unit3/Unit3PreLive") ACT<-read.csv("MathACT.csv") #Attaching the data set, creating a function, and creating a summary stats table. Note: In line 23 below, you can add other statistics like median, IQR,etc. attach(ACT) mysummary<-function(x){ re...
/Unit 3/Unit 3 Homework.R
no_license
apurvmittal-MSDS/Applied-Stats
R
false
false
4,915
r
setwd("/Users/apurv/Documents/SMU/6372 - Applied Statistics/Unit -3/Unit3/Unit3PreLive") ACT<-read.csv("MathACT.csv") #Attaching the data set, creating a function, and creating a summary stats table. Note: In line 23 below, you can add other statistics like median, IQR,etc. attach(ACT) mysummary<-function(x){ re...
library(modeltools) ### Name: ModelEnvFormula ### Title: Generate a model environment from a classical formula based ### interface. ### Aliases: ModelEnvFormula ### Keywords: misc ### ** Examples ### the `usual' interface data(iris) mf <- ModelEnvFormula(Species ~ ., data = iris) mf ### extract data from the Mo...
/data/genthat_extracted_code/modeltools/examples/ModelEnvFormula.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
977
r
library(modeltools) ### Name: ModelEnvFormula ### Title: Generate a model environment from a classical formula based ### interface. ### Aliases: ModelEnvFormula ### Keywords: misc ### ** Examples ### the `usual' interface data(iris) mf <- ModelEnvFormula(Species ~ ., data = iris) mf ### extract data from the Mo...
# importação das bibliotecas necessárias # install.packages("R.matlab", "control") library(R.matlab) library(control) # leitura e processamento dos dados dados <- readMat("inputs/amostras_equipe7.mat") tempo <- dados[[3]] degrau <- dados[[1]] resp <- dados[[2]] # método dos mínimos quadrados size <- length(tempo) f ...
/script_normalizado.R
permissive
JoaoGustavoRogel/projeto-pid-embarcados
R
false
false
2,439
r
# importação das bibliotecas necessárias # install.packages("R.matlab", "control") library(R.matlab) library(control) # leitura e processamento dos dados dados <- readMat("inputs/amostras_equipe7.mat") tempo <- dados[[3]] degrau <- dados[[1]] resp <- dados[[2]] # método dos mínimos quadrados size <- length(tempo) f ...
library(tidyverse) load("data/gus.RData") przyrost_16_17 <- left_join(x = przyrost2016, y = przyrost2017) przyrost_16_17 <- left_join(x = przyrost2016, y = przyrost2017, by = c("id" = "id", "name")) przyrost_16_17r <- right_join(x = przyrost2017, y = przyrost2016) przyrost_15_17 <- inner_join(x = przyrost2015, y =...
/podstawy_programowania/2022_2023/ppr20230114_laczenie.R
no_license
lwawrowski/cdv_bigdata
R
false
false
1,882
r
library(tidyverse) load("data/gus.RData") przyrost_16_17 <- left_join(x = przyrost2016, y = przyrost2017) przyrost_16_17 <- left_join(x = przyrost2016, y = przyrost2017, by = c("id" = "id", "name")) przyrost_16_17r <- right_join(x = przyrost2017, y = przyrost2016) przyrost_15_17 <- inner_join(x = przyrost2015, y =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aaa_models.R \name{set_new_model} \alias{set_new_model} \alias{set_model_mode} \alias{set_model_engine} \alias{set_model_arg} \alias{set_dependency} \alias{get_dependency} \alias{set_fit} \alias{get_fit} \alias{set_pred} \alias{get_pred_type}...
/man/set_new_model.Rd
no_license
aespar21/parsnip
R
false
true
4,046
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aaa_models.R \name{set_new_model} \alias{set_new_model} \alias{set_model_mode} \alias{set_model_engine} \alias{set_model_arg} \alias{set_dependency} \alias{get_dependency} \alias{set_fit} \alias{get_fit} \alias{set_pred} \alias{get_pred_type}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/root_tree_in_outgroup.R \name{root_tree_in_outgroup} \alias{root_tree_in_outgroup} \title{Root phylogenetic tree of a phyloseq object} \usage{ root_tree_in_outgroup(physeq = ps) } \arguments{ \item{physeq}{a phyloseq object containing a phylo...
/man/root_tree_in_outgroup.Rd
no_license
simeross/CuPhyR
R
false
true
1,026
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/root_tree_in_outgroup.R \name{root_tree_in_outgroup} \alias{root_tree_in_outgroup} \title{Root phylogenetic tree of a phyloseq object} \usage{ root_tree_in_outgroup(physeq = ps) } \arguments{ \item{physeq}{a phyloseq object containing a phylo...
######PLOTTING MAPS######### #######STANDARD MAPS####### library(maps) library(mapdata) library(maptools) #for shapefiles library(scales) #for transparency pcontorta <- readShapePoly("pinucont.shp") #layer of data for species range samps <- read.csv("FieldSamples.csv") #my data for sampling sites, contains a c...
/R/general/Maps.R
permissive
maehrlich1/Funhe_Gen
R
false
false
3,187
r
######PLOTTING MAPS######### #######STANDARD MAPS####### library(maps) library(mapdata) library(maptools) #for shapefiles library(scales) #for transparency pcontorta <- readShapePoly("pinucont.shp") #layer of data for species range samps <- read.csv("FieldSamples.csv") #my data for sampling sites, contains a c...
library(ggplot2) library(tidyverse) library(dslabs) library(tibbletime) library(lubridate) library(reshape2) library(data.table) library(pracma) # read data events_data <- read_csv("events_for_multiple_providers_from_19-06-11_to_19-06-18.csv") loc_data <- read_csv("locations_for_multiple_providers_from_19-06-11_to_19-...
/brand_preference/brand_preference_with_district.R
no_license
alicepaul/pvd_summer
R
false
false
5,531
r
library(ggplot2) library(tidyverse) library(dslabs) library(tibbletime) library(lubridate) library(reshape2) library(data.table) library(pracma) # read data events_data <- read_csv("events_for_multiple_providers_from_19-06-11_to_19-06-18.csv") loc_data <- read_csv("locations_for_multiple_providers_from_19-06-11_to_19-...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/generics.R \name{WAIC} \alias{WAIC} \alias{WAIC.brmsfit} \title{Compute the WAIC} \usage{ WAIC(x, ..., compare = TRUE) } \arguments{ \item{x}{A fitted model object typically of class \code{brmsfit}.} \item{...}{Optionally more fitted...
/man/WAIC.Rd
no_license
npp97-field/brms
R
false
false
1,774
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/generics.R \name{WAIC} \alias{WAIC} \alias{WAIC.brmsfit} \title{Compute the WAIC} \usage{ WAIC(x, ..., compare = TRUE) } \arguments{ \item{x}{A fitted model object typically of class \code{brmsfit}.} \item{...}{Optionally more fitted...
library(ggplot2) library(plotly) # load a tmap file tmapZ<-read.table('data/riboZ/cmpR3907.R3907_C3RGLACXX.gtf.tmap', header=T, sep='\t') gtitleZ <- "R3907 riboZ" tmapZ<-read.table('data/riboZ/cmpR3907.R3907_C3RGLACXX.gtf.tmap', header=T, sep='\t') tmapZ<-subset(tmapZ, FPK...
/gffcmp_xplore2.R
no_license
gpertea/Rgffcmp
R
false
false
4,121
r
library(ggplot2) library(plotly) # load a tmap file tmapZ<-read.table('data/riboZ/cmpR3907.R3907_C3RGLACXX.gtf.tmap', header=T, sep='\t') gtitleZ <- "R3907 riboZ" tmapZ<-read.table('data/riboZ/cmpR3907.R3907_C3RGLACXX.gtf.tmap', header=T, sep='\t') tmapZ<-subset(tmapZ, FPK...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adaptiveSchemes.R \name{initialiseAMCMC.constanth} \alias{initialiseAMCMC.constanth} \title{initaliseAMCMC.constanth function} \usage{ \method{initialiseAMCMC}{constanth}(obj, ...) } \arguments{ \item{obj}{an object} \item{...}{additional ar...
/man/initialiseAMCMC.constanth.Rd
no_license
goldingn/lgcp
R
false
true
457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adaptiveSchemes.R \name{initialiseAMCMC.constanth} \alias{initialiseAMCMC.constanth} \title{initaliseAMCMC.constanth function} \usage{ \method{initialiseAMCMC}{constanth}(obj, ...) } \arguments{ \item{obj}{an object} \item{...}{additional ar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tidy.R \name{tidy.model_fit} \alias{tidy.model_fit} \title{Turn a parsnip model object into a tidy tibble} \usage{ tidy.model_fit(x, ...) } \arguments{ \item{x}{An object to be converted into a tidy \code{\link[tibble:tibble]{tibble::tibble()...
/man/tidy.model_fit.Rd
no_license
aespar21/parsnip
R
false
true
485
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tidy.R \name{tidy.model_fit} \alias{tidy.model_fit} \title{Turn a parsnip model object into a tidy tibble} \usage{ tidy.model_fit(x, ...) } \arguments{ \item{x}{An object to be converted into a tidy \code{\link[tibble:tibble]{tibble::tibble()...
library(SRAdb) sqlfile <- file.path(system.file('extdata', package='SRAdb'), 'SRAmetadb_demo.sqlite') ## Real file from SRA is > 40Gb! sra_con <- dbConnect(SQLite(),sqlfile) study_info <- dbGetQuery(sra_con, "select study_accession, study_description from study where study_description like '%coli%' ") sraConvert( ...
/Chapter08/recipe_4.R
permissive
PacktPublishing/R-Bioinformatics-Cookbook
R
false
false
546
r
library(SRAdb) sqlfile <- file.path(system.file('extdata', package='SRAdb'), 'SRAmetadb_demo.sqlite') ## Real file from SRA is > 40Gb! sra_con <- dbConnect(SQLite(),sqlfile) study_info <- dbGetQuery(sra_con, "select study_accession, study_description from study where study_description like '%coli%' ") sraConvert( ...
library(parsec) ### Name: average_ranks ### Title: Average Ranks ### Aliases: average_ranks average_ranks.incidence average_ranks.cover ### ** Examples profiles <- var2prof(varlen = c(3, 2, 2)) Z <- getzeta(profiles) res <- average_ranks(Z) plot(res)
/data/genthat_extracted_code/parsec/examples/average_ranks.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
258
r
library(parsec) ### Name: average_ranks ### Title: Average Ranks ### Aliases: average_ranks average_ranks.incidence average_ranks.cover ### ** Examples profiles <- var2prof(varlen = c(3, 2, 2)) Z <- getzeta(profiles) res <- average_ranks(Z) plot(res)
# Regression analysis and plotting ## Preamble - load libraries and clear environment remove(list=ls()) ### Step 1. Load data load("data/processed_data/rikz.Rdata") ### Step 2. Linear regression lm.out <- lm(Richness~NAP, data=rikz.data) summary(lm.out) ### Step 3. Plot results plot(rikz.data$NAP, rikz.data$Richnes...
/student_folders/Kelsey/activity1b_data_analysis.R
no_license
vitensek/TWS_kelsey_test
R
false
false
338
r
# Regression analysis and plotting ## Preamble - load libraries and clear environment remove(list=ls()) ### Step 1. Load data load("data/processed_data/rikz.Rdata") ### Step 2. Linear regression lm.out <- lm(Richness~NAP, data=rikz.data) summary(lm.out) ### Step 3. Plot results plot(rikz.data$NAP, rikz.data$Richnes...
#libraries used in this project library(biglasso) library(bigmemory) library(bigmemory.sri) library(ggplot2) library(dplyr) library(corrplot) library(Amelia) library(caTools) library(rpart) library(rpart.plot) library(caret) library(caretEnsemble) library(VIM) library(gridExtra) library(randomForest) ...
/BlackFriday.R
no_license
ParveenA14/BlackFridaySalesAnalysis
R
false
false
9,147
r
#libraries used in this project library(biglasso) library(bigmemory) library(bigmemory.sri) library(ggplot2) library(dplyr) library(corrplot) library(Amelia) library(caTools) library(rpart) library(rpart.plot) library(caret) library(caretEnsemble) library(VIM) library(gridExtra) library(randomForest) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dax_operations.R \name{dax_reboot_node} \alias{dax_reboot_node} \title{Reboots a single node of a DAX cluster} \usage{ dax_reboot_node(ClusterName, NodeId) } \arguments{ \item{ClusterName}{[required] The name of the DAX cluster containing the...
/cran/paws.database/man/dax_reboot_node.Rd
permissive
TWarczak/paws
R
false
true
2,159
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dax_operations.R \name{dax_reboot_node} \alias{dax_reboot_node} \title{Reboots a single node of a DAX cluster} \usage{ dax_reboot_node(ClusterName, NodeId) } \arguments{ \item{ClusterName}{[required] The name of the DAX cluster containing the...
######################################## # Thesis Script 2.3: Reformatting to long ######################################## library(tidyverse) library(lubridate) library(reshape2) setwd("~/Desktop/Code/Thesis") load("~/Desktop/Code/Thesis/Data_for_Analysis/bfinal.Rdata") load("~/Desktop/Code/Thesis/Data_for_Analysis/...
/rscripts/final/2.3_reformatting.R
no_license
cschwab1/Berlin-Gentrification-Project.github.io
R
false
false
8,678
r
######################################## # Thesis Script 2.3: Reformatting to long ######################################## library(tidyverse) library(lubridate) library(reshape2) setwd("~/Desktop/Code/Thesis") load("~/Desktop/Code/Thesis/Data_for_Analysis/bfinal.Rdata") load("~/Desktop/Code/Thesis/Data_for_Analysis/...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geotype.R \name{geotype} \alias{geotype} \title{Infer Type of Data as FIPS / ANSI Codes or Names of U.S. Geographies} \usage{ geotype(x) } \arguments{ \item{x}{Required vector of one or more numeric or character FIPS and/or names of geographi...
/man/geotype.Rd
permissive
HKCaesar/ejanalysis
R
false
true
1,159
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geotype.R \name{geotype} \alias{geotype} \title{Infer Type of Data as FIPS / ANSI Codes or Names of U.S. Geographies} \usage{ geotype(x) } \arguments{ \item{x}{Required vector of one or more numeric or character FIPS and/or names of geographi...
#Project : Genetic algorithm - parallel version #Author : Dago Quevedo #Date : Oct 2017 library(testit) library(parallel) knapsack <- function(capacity, weight, value) { n <- length(weight) pt <- sum(weight) assert(n == length(value)) vt <- sum(value) if (pt < capacity) { return(vt)...
/P10/P10_B.r
no_license
dagoquevedo/parallelr
R
false
false
4,828
r
#Project : Genetic algorithm - parallel version #Author : Dago Quevedo #Date : Oct 2017 library(testit) library(parallel) knapsack <- function(capacity, weight, value) { n <- length(weight) pt <- sum(weight) assert(n == length(value)) vt <- sum(value) if (pt < capacity) { return(vt)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/run.pc.tsne.R \name{run.pc.tsne} \alias{run.pc.tsne} \title{Run tSNE on PCA data} \usage{ run.pc.tsne(x = NULL, dims = 1:20) } \arguments{ \item{x}{An object of class scSeqR.} \item{dims}{PC dimentions to be used for tSNE analysis.} } \value...
/man/run.pc.tsne.Rd
no_license
yf0205/scSeqR
R
false
true
508
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/run.pc.tsne.R \name{run.pc.tsne} \alias{run.pc.tsne} \title{Run tSNE on PCA data} \usage{ run.pc.tsne(x = NULL, dims = 1:20) } \arguments{ \item{x}{An object of class scSeqR.} \item{dims}{PC dimentions to be used for tSNE analysis.} } \value...
#' Evaluate a model with replication #' #' `eval_model_rep` is similar to `[eval_model()]` but it allows for multiple #' evaluations. Though it is mostly a wrapper for `[eval_model()]` and #' `replicate`, the function adds additional ability to analyze results by #' returning the standard deviation of model performance...
/R/eval_model_rep.R
no_license
awqx/qsarr
R
false
false
2,375
r
#' Evaluate a model with replication #' #' `eval_model_rep` is similar to `[eval_model()]` but it allows for multiple #' evaluations. Though it is mostly a wrapper for `[eval_model()]` and #' `replicate`, the function adds additional ability to analyze results by #' returning the standard deviation of model performance...
#!/usr/bin/env Rscript # Nicole Gay library(data.table) options(stringsAsFactors = FALSE) options(scipen=10000) # Convert VCFs (admixed individuals and reference panels) to required input format for RFMix args <- commandArgs(trailingOnly=TRUE) subjects <- args[1] # text file with admixed subject IDs, one per line, u...
/rfmix/format-rfmix.R
no_license
nicolerg/gtex-admixture-la
R
false
false
6,202
r
#!/usr/bin/env Rscript # Nicole Gay library(data.table) options(stringsAsFactors = FALSE) options(scipen=10000) # Convert VCFs (admixed individuals and reference panels) to required input format for RFMix args <- commandArgs(trailingOnly=TRUE) subjects <- args[1] # text file with admixed subject IDs, one per line, u...
library(Seurat) library(cowplot) library(SeuratData) library(ggplot2) InstallData("ifnb") #data("ifnb.SeuratData::ifnb") ifnb.list = SplitObject(ifnb.SeuratData::ifnb, split.by = "stim") ifnb.list = lapply(ifnb.list, function(x) { x = NormalizeData(x) x = FindVariableFeatures(x, selection.method = "vst", nfeat...
/seurat_stim_vs_ctrl.R
no_license
JesseRop/seurat_practice
R
false
false
4,703
r
library(Seurat) library(cowplot) library(SeuratData) library(ggplot2) InstallData("ifnb") #data("ifnb.SeuratData::ifnb") ifnb.list = SplitObject(ifnb.SeuratData::ifnb, split.by = "stim") ifnb.list = lapply(ifnb.list, function(x) { x = NormalizeData(x) x = FindVariableFeatures(x, selection.method = "vst", nfeat...
## # Author: Autogenerated on 2013-12-05 22:49:50 # gitHash: dbc23230f6666890a6cb7c4234e68e540e096e0c # SEED: 779905237530228736 ## source('./findNSourceUtils.R') simpleFilterTest_poker10_8 <- function(conn) { Log.info("...
/R/tests/testdir_autoGen/runit_simpleFilterTest_poker10_8.R
permissive
jmcclell/h2o
R
false
false
2,686
r
## # Author: Autogenerated on 2013-12-05 22:49:50 # gitHash: dbc23230f6666890a6cb7c4234e68e540e096e0c # SEED: 779905237530228736 ## source('./findNSourceUtils.R') simpleFilterTest_poker10_8 <- function(conn) { Log.info("...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 14 c Performing E1-Autarky iteration. c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query09_trueque_1344n.qdimacs c output filename /tmp/d...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query09_trueque_1344n/query09_trueque_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
699
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 14 c Performing E1-Autarky iteration. c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query09_trueque_1344n.qdimacs c output filename /tmp/d...
# Prepare benchmark folder structure # NOTE: SNP only so far... prep_benchmark_folder <- function(df, mtype = "SNP", scope = "coastwide", version = "X.X.X") { # Set folder name folder.name <- paste0("b", two.letter.code , "_", mtype , "_", scope ...
/01_scripts/utilities/prep_benchmark_folder.R
no_license
RycroftC/simple_pop_stats
R
false
false
1,395
r
# Prepare benchmark folder structure # NOTE: SNP only so far... prep_benchmark_folder <- function(df, mtype = "SNP", scope = "coastwide", version = "X.X.X") { # Set folder name folder.name <- paste0("b", two.letter.code , "_", mtype , "_", scope ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/02-get_publishers.R \name{get_publishers} \alias{get_publishers} \title{get_publishers} \usage{ get_publishers(url, query, value) } \arguments{ \item{url}{URL for websites containing IATI-compliant datasets.} \item{query}{Search/query parame...
/man/get_publishers.Rd
permissive
Edouard-Legoupil/oipa
R
false
true
760
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/02-get_publishers.R \name{get_publishers} \alias{get_publishers} \title{get_publishers} \usage{ get_publishers(url, query, value) } \arguments{ \item{url}{URL for websites containing IATI-compliant datasets.} \item{query}{Search/query parame...
## http://www.inside-r.org/r-doc/graphics/par ## https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/barplot.html ## http://rfunction.com/archives/1783 ## https://thomaslevine.com/!/r-curses-for-data-witches/ ## http://www.stat.ubc.ca/~jenny/STAT545A/block14_colors.html ## http://www.r-bloggers.com/what-a-nice-...
/charts-base-r-ggplot-and-lubridate.R
no_license
triadicaxis/quickr
R
false
false
7,714
r
## http://www.inside-r.org/r-doc/graphics/par ## https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/barplot.html ## http://rfunction.com/archives/1783 ## https://thomaslevine.com/!/r-curses-for-data-witches/ ## http://www.stat.ubc.ca/~jenny/STAT545A/block14_colors.html ## http://www.r-bloggers.com/what-a-nice-...
best <- function(state, outcome) { ## Read outcome data ## Check that state and outcome are valid ## Return hospital name in that state with lowest 30-day death ## rate ## If an invalid state value function should throw message “invalid state”. ## If an invalid outcome value is passed throw message “invalid outcome”...
/best.R
no_license
DataScienceGB/test
R
false
false
2,486
r
best <- function(state, outcome) { ## Read outcome data ## Check that state and outcome are valid ## Return hospital name in that state with lowest 30-day death ## rate ## If an invalid state value function should throw message “invalid state”. ## If an invalid outcome value is passed throw message “invalid outcome”...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colocr.R \docType{package} \name{colocr} \alias{colocr} \title{\code{colocr}: Conduct Co-localization Analysis of Microscopy Images.} \description{ Automate the co-localization analysis of fluorescence microscopy images. Selecting regions of ...
/man/colocr.Rd
no_license
cran/colocr
R
false
true
568
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colocr.R \docType{package} \name{colocr} \alias{colocr} \title{\code{colocr}: Conduct Co-localization Analysis of Microscopy Images.} \description{ Automate the co-localization analysis of fluorescence microscopy images. Selecting regions of ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/3_buildMST.R \name{PlotNumbers} \alias{PlotNumbers} \title{Plot the index of each node} \usage{ PlotNumbers( fsom, view = "MST", main = NULL, nodeSize = fsom$MST$size, fontSize = 1, backgroundValues = NULL, backgroundColor = fun...
/man/PlotNumbers.Rd
no_license
labsyspharm/FlowSOM
R
false
true
2,212
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/3_buildMST.R \name{PlotNumbers} \alias{PlotNumbers} \title{Plot the index of each node} \usage{ PlotNumbers( fsom, view = "MST", main = NULL, nodeSize = fsom$MST$size, fontSize = 1, backgroundValues = NULL, backgroundColor = fun...
#' Player list #' #' @return data frame with all players #' @keywords player #' @export #' @examples #' # GetPlayerIDs() GetPlayerIDs <- function(...) { endpoint <- 'commonallplayers' referer <- 'player' ix <- 1 param.keys <- c('IsOnlyCurrentSeason', 'LeagueID', 'Season') return(GetData(endpoint, referer,...
/nbaTools1/R/player_scrape.R
no_license
coolnomad/nbaTools
R
false
false
2,068
r
#' Player list #' #' @return data frame with all players #' @keywords player #' @export #' @examples #' # GetPlayerIDs() GetPlayerIDs <- function(...) { endpoint <- 'commonallplayers' referer <- 'player' ix <- 1 param.keys <- c('IsOnlyCurrentSeason', 'LeagueID', 'Season') return(GetData(endpoint, referer,...
library(xlsx) library(dplyr) library(ggplot2) library(readxl) library(data.table) library(scales) library(randomForestSRC) library(doMC) library(glmnet) library(gridExtra) library(grid) library(tidyr) multiplot <- function(..., plotlist=NULL, cols=1, layout=NULL) { # Make a list from the ... arguments and plotlis...
/predict/predict_wins.R
no_license
klarsen1/NBA
R
false
false
26,930
r
library(xlsx) library(dplyr) library(ggplot2) library(readxl) library(data.table) library(scales) library(randomForestSRC) library(doMC) library(glmnet) library(gridExtra) library(grid) library(tidyr) multiplot <- function(..., plotlist=NULL, cols=1, layout=NULL) { # Make a list from the ... arguments and plotlis...
# Loading the rvest package # install.packages('rvest') library(rvest) #Specifying the url for desired website to be scraped url <- 'https://www.imdb.com/search/title/?year=2019&title_type=feature&' #Reading the HTML code from the website webpage <- read?html(url) # Here the list of columns are # List: ...
/webscrapping.R
no_license
Ditskih/Scrapy
R
false
false
10,960
r
# Loading the rvest package # install.packages('rvest') library(rvest) #Specifying the url for desired website to be scraped url <- 'https://www.imdb.com/search/title/?year=2019&title_type=feature&' #Reading the HTML code from the website webpage <- read?html(url) # Here the list of columns are # List: ...
dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";") newdata <- data[which(data$Date = c("1/2/2007","2/2/2007")) ,] globalActivePower <- as.numeric(newdata$Global_active_power) png("plot1.png", width=480, height=480) hist(globalActivePower, col="red", main="Global Act...
/plot1.R
no_license
AbhigyanKhaund/Exploratory-Data-Analysis
R
false
false
381
r
dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";") newdata <- data[which(data$Date = c("1/2/2007","2/2/2007")) ,] globalActivePower <- as.numeric(newdata$Global_active_power) png("plot1.png", width=480, height=480) hist(globalActivePower, col="red", main="Global Act...
# Example script for Fig.5 # This figure demonstrates how HOF models built on a large scale dataset quantifying # the responses of specific OTUs to soil pH ("train" dataset), can be used to predict community structure in # an independent "test" dataset using only the pH data for the test dataset. #script assu...
/Fig.5_example_code.R
no_license
brijon/Beyond_taxonomic_identification
R
false
false
8,244
r
# Example script for Fig.5 # This figure demonstrates how HOF models built on a large scale dataset quantifying # the responses of specific OTUs to soil pH ("train" dataset), can be used to predict community structure in # an independent "test" dataset using only the pH data for the test dataset. #script assu...
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ---- fig.width = 6, fig.height= 4, fig.align = "center", warning = FALSE----- library(Rmbal) library(Rrelperm) library(pracma) library(minpack.lm) library(ggplot2)...
/inst/doc/VolatileOil.R
no_license
cran/Rmbal
R
false
false
14,057
r
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ---- fig.width = 6, fig.height= 4, fig.align = "center", warning = FALSE----- library(Rmbal) library(Rrelperm) library(pracma) library(minpack.lm) library(ggplot2)...
#txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene #geneDB <- genes(txdb, columns=c("gene_id")) require(TxDb.Hsapiens.UCSC.hg19.knownGene) require( org.Hs.eg.db) .cmValues <- function(segTable, hg){ cmLocs <- .locateCM(segTable, hg) out <- lapply(cmLocs, function(locs){ c(segTable$seg.mean[locs[1]], segTabl...
/inst/shinyProfile/byGene.R
no_license
dhruv-github/rCGH
R
false
false
4,750
r
#txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene #geneDB <- genes(txdb, columns=c("gene_id")) require(TxDb.Hsapiens.UCSC.hg19.knownGene) require( org.Hs.eg.db) .cmValues <- function(segTable, hg){ cmLocs <- .locateCM(segTable, hg) out <- lapply(cmLocs, function(locs){ c(segTable$seg.mean[locs[1]], segTabl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_data_handling.R \name{merge_pred_and_obs} \alias{merge_pred_and_obs} \title{Merge Forecast Data And Observations} \usage{ merge_pred_and_obs( forecasts, observations, join = c("left", "full", "right"), by = NULL ) } \arguments{ ...
/man/merge_pred_and_obs.Rd
permissive
epiforecasts/scoringutils
R
false
true
1,329
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_data_handling.R \name{merge_pred_and_obs} \alias{merge_pred_and_obs} \title{Merge Forecast Data And Observations} \usage{ merge_pred_and_obs( forecasts, observations, join = c("left", "full", "right"), by = NULL ) } \arguments{ ...
#' Get a data frame with a 'Time' column and a specific parameter from a SWMM output file #' @param outFile Path to the '.out' output file. #' @param iType Numeric id for the SWMM element type to read. See the swmmr::read_out function. #' @param objectName Name of the element in the SWMM output file to get data from. S...
/R/get_swmm_parameter.R
no_license
hydrojumbo/swmmscenario
R
false
false
1,309
r
#' Get a data frame with a 'Time' column and a specific parameter from a SWMM output file #' @param outFile Path to the '.out' output file. #' @param iType Numeric id for the SWMM element type to read. See the swmmr::read_out function. #' @param objectName Name of the element in the SWMM output file to get data from. S...
#' Use to check whether the given value falls inbetween the bounds. #' #' @param \code{x} numeric value #' @param \code{leftBound} left numeric value #' @param \code{rightBound} right numeric value #' @param \code{inclusive} should the comparison be inclusive (TRUE) or exclusive (FALSE) #' @return whether or not the x...
/R/in.bounds.R
no_license
axrt/CellCountpp
R
false
false
657
r
#' Use to check whether the given value falls inbetween the bounds. #' #' @param \code{x} numeric value #' @param \code{leftBound} left numeric value #' @param \code{rightBound} right numeric value #' @param \code{inclusive} should the comparison be inclusive (TRUE) or exclusive (FALSE) #' @return whether or not the x...
library("shiny") getwd() setwd("/Users/kedarpatil/Documents/St-4701 - Data Visualization/team-shiny/Shiny_Tutorial") runApp("old_faithful") runApp("old_faithful", display.mode="showcase") #GO FURTHER - LESSON1 system.file("examples", package="shiny") runExample("01_hello") # a histogram runExample("02_text") # table...
/Kedar_Shiny_Tutorial/execution_script.R
no_license
denniskorablev/team-shiny
R
false
false
754
r
library("shiny") getwd() setwd("/Users/kedarpatil/Documents/St-4701 - Data Visualization/team-shiny/Shiny_Tutorial") runApp("old_faithful") runApp("old_faithful", display.mode="showcase") #GO FURTHER - LESSON1 system.file("examples", package="shiny") runExample("01_hello") # a histogram runExample("02_text") # table...
if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } power <- read.table(file, header=T, sep=";") power$Date <- as.Date(power$Date,...
/Final_project.R
no_license
kshitij1995/ExData_Plotting1
R
false
false
2,887
r
if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } power <- read.table(file, header=T, sep=";") power$Date <- as.Date(power$Date,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download_dramms.R \name{install_dramms} \alias{install_dramms} \title{Install DRAMMS Source} \usage{ install_dramms(tarfile = NULL, install_dir = "/usr/local/dramms") } \arguments{ \item{tarfile}{Name ofDRAMMS source file} \item{install_dir}...
/man/install_dramms.Rd
no_license
muschellij2/drammsr
R
false
true
390
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download_dramms.R \name{install_dramms} \alias{install_dramms} \title{Install DRAMMS Source} \usage{ install_dramms(tarfile = NULL, install_dir = "/usr/local/dramms") } \arguments{ \item{tarfile}{Name ofDRAMMS source file} \item{install_dir}...
#' shiny UI session management in HIDAP-AGROFIMS #' #' #' @author Omar Benites Ivan Perez #' @param type type of ui element; default is a tab in a shiny dashboard #' @param title display title #' @param name a reference name #' @export ui_session <- function(type="tab",title="User session",name="open_fieldbook" ){ ...
/R/ui_session.R
permissive
AGROFIMS/agsession
R
false
false
2,349
r
#' shiny UI session management in HIDAP-AGROFIMS #' #' #' @author Omar Benites Ivan Perez #' @param type type of ui element; default is a tab in a shiny dashboard #' @param title display title #' @param name a reference name #' @export ui_session <- function(type="tab",title="User session",name="open_fieldbook" ){ ...
#' getLastValueJumpPredict #' #' Just predict zero "jump" (for reference, benchmarking at least). #' #' @inheritParams computeForecast #' @inheritParams getZeroJumpPredict #' #' @aliases J_LastValue #' getLastValueJumpPredict = function(data, today, memory, predict_from, horizon, params, ...) { 0 }
/pkg/R/J_LastValue.R
permissive
yagu0/talweg
R
false
false
302
r
#' getLastValueJumpPredict #' #' Just predict zero "jump" (for reference, benchmarking at least). #' #' @inheritParams computeForecast #' @inheritParams getZeroJumpPredict #' #' @aliases J_LastValue #' getLastValueJumpPredict = function(data, today, memory, predict_from, horizon, params, ...) { 0 }
test_that("multiplication works", { expect_equal(2 * 2, 4) })
/tests/testthat/test-ExperimentHub.R
no_license
LieberInstitute/spatialLIBD
R
false
false
66
r
test_that("multiplication works", { expect_equal(2 * 2, 4) })
library(geozoning) ### Name: updateZK ### Title: updateZK called by lastPass ### Aliases: updateZK ### Keywords: internal ### ** Examples data(mapTest) # run zoning with 2 quantiles corresponding to probability values 0.4 and 0.7 criti=correctionTree(c(0.4,0.7),mapTest,LASTPASS=FALSE) K1=criti$zk[[1]][[1]]#initial ...
/data/genthat_extracted_code/geozoning/examples/updateZK.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
694
r
library(geozoning) ### Name: updateZK ### Title: updateZK called by lastPass ### Aliases: updateZK ### Keywords: internal ### ** Examples data(mapTest) # run zoning with 2 quantiles corresponding to probability values 0.4 and 0.7 criti=correctionTree(c(0.4,0.7),mapTest,LASTPASS=FALSE) K1=criti$zk[[1]][[1]]#initial ...
#!/usr/bin/env R # This dataset is built into R and can be loaded with: data(ChickWeight) # To begin, take a look at the weights of all observations over time and color the points to represent the Diet: head(ChickWeight) plot( ChickWeight$Time, ChickWeight$weight, col=ChickWeight$Diet) # First, notice that the rows ...
/Mann-Whitney-Wilcoxon_Test_Exercises.R
no_license
albinobrow/edx
R
false
false
1,687
r
#!/usr/bin/env R # This dataset is built into R and can be loaded with: data(ChickWeight) # To begin, take a look at the weights of all observations over time and color the points to represent the Diet: head(ChickWeight) plot( ChickWeight$Time, ChickWeight$weight, col=ChickWeight$Diet) # First, notice that the rows ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wrappers-utils.R \name{detectCPUs} \alias{detectCPUs} \title{Detect Available OpenCL enabled CPUs} \usage{ detectCPUs(platform_idx = NULL) } \arguments{ \item{platform_idx}{An integer value indicating which platform to query. If NUL...
/man/detectCPUs.Rd
no_license
cran/gpuR
R
false
true
552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wrappers-utils.R \name{detectCPUs} \alias{detectCPUs} \title{Detect Available OpenCL enabled CPUs} \usage{ detectCPUs(platform_idx = NULL) } \arguments{ \item{platform_idx}{An integer value indicating which platform to query. If NUL...
#' Read Package Settings #' #' @param x a yaml file containing the package settings #' @param environ a string specifying what environment to use, either "Production" or "Testing" #' #' @return a list of the settings to use. #' @export #' readPackageSettings <- function(x = 'settings.yaml', environ = "Production") { ...
/R/readPackageSettings.R
no_license
minimenchmuncher/courseraSkCapstone
R
false
false
429
r
#' Read Package Settings #' #' @param x a yaml file containing the package settings #' @param environ a string specifying what environment to use, either "Production" or "Testing" #' #' @return a list of the settings to use. #' @export #' readPackageSettings <- function(x = 'settings.yaml', environ = "Production") { ...
\name{denstrip-package} \alias{denstrip-package} \docType{package} \title{ Overview of the denstrip package } \description{ Graphical methods for compactly illustrating and comparing distributions, particularly distributions arising from parameter estimation or prediction. } \details{ \code{\link{denstrip}} im...
/man/denstrip-package.Rd
no_license
cran/denstrip
R
false
false
2,403
rd
\name{denstrip-package} \alias{denstrip-package} \docType{package} \title{ Overview of the denstrip package } \description{ Graphical methods for compactly illustrating and comparing distributions, particularly distributions arising from parameter estimation or prediction. } \details{ \code{\link{denstrip}} im...
#' Remove percent from a column, and transform in number #' #' @description #' When use col2percent function to add a percent in a column, the type of this column now is character, #' colpct2num function remove percent from this column and transform in number. #' #' @param x a dataframe #' @param start number of...
/R/colpct2num.R
no_license
cran/metools
R
false
false
1,033
r
#' Remove percent from a column, and transform in number #' #' @description #' When use col2percent function to add a percent in a column, the type of this column now is character, #' colpct2num function remove percent from this column and transform in number. #' #' @param x a dataframe #' @param start number of...
library(sqldf) # ------- STEP 1 # First... get the test data in R and merge for subject,activity label, # and remaining 561 data columns. Note that the working directory should be set # to '/data' folder under the root or main directory where this file exists prior to this file # execution. The working directory con...
/run_analysis.R
no_license
woodbask/TidyDataRepo
R
false
false
6,501
r
library(sqldf) # ------- STEP 1 # First... get the test data in R and merge for subject,activity label, # and remaining 561 data columns. Note that the working directory should be set # to '/data' folder under the root or main directory where this file exists prior to this file # execution. The working directory con...
#UNIVERSITY OF WARSAW #Faculty of Economic sciences #Advanced econometrics project report #Estimation of the impact of GDP components on total compensation of employees. Panel data approach. # #Prepared by: #Sergey Amarin ##################################### #import libraries if (!require("reshape2")) in...
/panel_data.R
no_license
SerjWeesp/econometrics
R
false
false
6,135
r
#UNIVERSITY OF WARSAW #Faculty of Economic sciences #Advanced econometrics project report #Estimation of the impact of GDP components on total compensation of employees. Panel data approach. # #Prepared by: #Sergey Amarin ##################################### #import libraries if (!require("reshape2")) in...
testlist <- list(x = c(1948789370L, 1919251315L, 1600286581L, 1852057896L, 1668247155L, -1L, -1L, -1769472L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
/diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609962056-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
432
r
testlist <- list(x = c(1948789370L, 1919251315L, 1600286581L, 1852057896L, 1668247155L, -1L, -1L, -1769472L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
#' Function aiming to choose the best k values based on Similarity of Original vs Reconstructed #' signal. This comes from a NMF estimation where different k values are explored such as: #' estimate <- nmf(mut96_mat, rank=2:14, method="brunet", nrun=100, seed=123456,.options="kvp2") #' Previous one uses two cores in ...
/deNovo_Signatures/custom_workflow/summaryCosSim.R
no_license
MMaqueda/MutSig_WGSvsWES
R
false
false
1,281
r
#' Function aiming to choose the best k values based on Similarity of Original vs Reconstructed #' signal. This comes from a NMF estimation where different k values are explored such as: #' estimate <- nmf(mut96_mat, rank=2:14, method="brunet", nrun=100, seed=123456,.options="kvp2") #' Previous one uses two cores in ...
.onAttach <- function(libname, pkgname){ packageStartupMessage("Valet's terms and conditions: https://www.bankofcanada.ca/terms/") }
/R/zzz.R
no_license
jdemello/valetr
R
false
false
135
r
.onAttach <- function(libname, pkgname){ packageStartupMessage("Valet's terms and conditions: https://www.bankofcanada.ca/terms/") }
library(BAS) ### Name: confint.pred.bas ### Title: Compute Credible (Bayesian Confidence) Intervals for a BAS ### predict object ### Aliases: confint.pred.bas ### Keywords: regression ### ** Examples data("Hald") hald.gprior = bas.lm(Y~ ., data=Hald, alpha=13, prior="g-prior") hald.pred = predict(hald.gprior, e...
/data/genthat_extracted_code/BAS/examples/confint.pred.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
527
r
library(BAS) ### Name: confint.pred.bas ### Title: Compute Credible (Bayesian Confidence) Intervals for a BAS ### predict object ### Aliases: confint.pred.bas ### Keywords: regression ### ** Examples data("Hald") hald.gprior = bas.lm(Y~ ., data=Hald, alpha=13, prior="g-prior") hald.pred = predict(hald.gprior, e...