content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2 (4.0.2): do not edit by hand \name{print.summary.rpt} \alias{print.summary.rpt} \title{Prints the summary of a rpt object} \usage{ \method{print}{summary.rpt}(x, ...) } \arguments{ \item{x}{An rpt object returned from one of the rpt functions} \item{\dots}{Additional arguments; none are used in...
/man/print.summary.rpt.Rd
no_license
hschielzeth/rptR
R
false
false
1,131
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{print.summary.rpt} \alias{print.summary.rpt} \title{Prints the summary of a rpt object} \usage{ \method{print}{summary.rpt}(x, ...) } \arguments{ \item{x}{An rpt object returned from one of the rpt functions} \item{\dots}{Additional arguments; none are used in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigateway_operations.R \name{apigateway_get_gateway_responses} \alias{apigateway_get_gateway_responses} \title{Gets the GatewayResponses collection on the given RestApi} \usage{ apigateway_get_gateway_responses(restApiId, position, limit) } ...
/cran/paws.networking/man/apigateway_get_gateway_responses.Rd
permissive
TWarczak/paws
R
false
true
1,961
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigateway_operations.R \name{apigateway_get_gateway_responses} \alias{apigateway_get_gateway_responses} \title{Gets the GatewayResponses collection on the given RestApi} \usage{ apigateway_get_gateway_responses(restApiId, position, limit) } ...
##The makeCacheMatrix function takes a matrix object as an argument and builds a special matrix object that can ## save a matrix and its inverse. ## setm() receives matrix as an argument and stores it in x object ## getm() returns stored object ## setinv(inv) -> Receives inverse of matrix as an argument and sa...
/cachematrix.R
no_license
halitaker/asssignment
R
false
false
1,309
r
##The makeCacheMatrix function takes a matrix object as an argument and builds a special matrix object that can ## save a matrix and its inverse. ## setm() receives matrix as an argument and stores it in x object ## getm() returns stored object ## setinv(inv) -> Receives inverse of matrix as an argument and sa...
library(dplyr) library(tidyverse) library(ggpubr) library(rstatix) setwd('/Users/YJC/Dropbox/ExpRecord_OSD') dat <- read.table('RevOSD.txt', header = FALSE) colnames(dat) <- c('ID', 'Device', 'Direction', 'iRow', 'iCol', 'reqRow', 'reqCol', '...
/DataAnalysis/ExtraStep.R
permissive
EJ-Chang/OSD-Study
R
false
false
1,160
r
library(dplyr) library(tidyverse) library(ggpubr) library(rstatix) setwd('/Users/YJC/Dropbox/ExpRecord_OSD') dat <- read.table('RevOSD.txt', header = FALSE) colnames(dat) <- c('ID', 'Device', 'Direction', 'iRow', 'iCol', 'reqRow', 'reqCol', '...
##a function specifically for sqrt'ing a matrix for the GSVD weights. sqrt.mat <- function(X){ ##first, test if it is symmetric in size if(!isSymmetric.matrix(X)){ stop("Weight/Mass matrix is not symmetric") } ##test if it is a diagonal matrix -- then just sqrt it and send back. if(isDiagonal.matrix(X)){ ret...
/R/sqrt.mat.R
no_license
cran/ExPosition
R
false
false
739
r
##a function specifically for sqrt'ing a matrix for the GSVD weights. sqrt.mat <- function(X){ ##first, test if it is symmetric in size if(!isSymmetric.matrix(X)){ stop("Weight/Mass matrix is not symmetric") } ##test if it is a diagonal matrix -- then just sqrt it and send back. if(isDiagonal.matrix(X)){ ret...
#' Coerse to powermean #' #' Functions to check if an object is a \code{powermean} or coerce an #' object into a \code{powermean}. #' #' \code{powermean} is a class of object output from calculating #' \code{alpha}, \code{alphabar}, \code{rho}, #' \code{rhobar}, and \code{gamma} diversity terms; #' \code{beta} a...
/R/as.powermean.R
permissive
claireh93/rdiversity
R
false
false
2,285
r
#' Coerse to powermean #' #' Functions to check if an object is a \code{powermean} or coerce an #' object into a \code{powermean}. #' #' \code{powermean} is a class of object output from calculating #' \code{alpha}, \code{alphabar}, \code{rho}, #' \code{rhobar}, and \code{gamma} diversity terms; #' \code{beta} a...
#' General purpose R client for ERDDAP servers #' #' @section ERDDAP info: #' NOAA's ERDDAP service holds many datasets of interest. It's built on top of #' OPenDAP \url{http://www.opendap.org/}. You can search for datasets via #' \code{\link{ed_search}}, list datasets via \code{\link{ed_datasets}}, #' get information ...
/R/rerddap-package.r
permissive
galuardi/rerddap
R
false
false
2,414
r
#' General purpose R client for ERDDAP servers #' #' @section ERDDAP info: #' NOAA's ERDDAP service holds many datasets of interest. It's built on top of #' OPenDAP \url{http://www.opendap.org/}. You can search for datasets via #' \code{\link{ed_search}}, list datasets via \code{\link{ed_datasets}}, #' get information ...
dim(H1B_project) unique(H1B_project$job) unique(H1B_project$employer) unique(H1B_project$job_title) unique(H1B_project$status) head(H1B_project) H1B_project1=H1B_project[,-1] head(H1B_project1) sum(is.na(H1B_project1)) H1B_project1=na.omit(H1B_project1) head(H1B_project1) sum(is.na(H1B_project1)) dim(H1B_project1) dim(...
/H1B.R
no_license
haroonaamash/H1B-webscraping
R
false
false
1,020
r
dim(H1B_project) unique(H1B_project$job) unique(H1B_project$employer) unique(H1B_project$job_title) unique(H1B_project$status) head(H1B_project) H1B_project1=H1B_project[,-1] head(H1B_project1) sum(is.na(H1B_project1)) H1B_project1=na.omit(H1B_project1) head(H1B_project1) sum(is.na(H1B_project1)) dim(H1B_project1) dim(...
#' Plot of recruitment distribution among areas and seasons #' #' Image plot shows fraction of recruitment in each combination of area and #' season. This is based on the RECRUITMENT_DIST section of the Report.sso #' file. #' #' #' @param replist list created by \code{SS_output} #' @param plot plot to active plot de...
/R/SSplotRecdist.R
no_license
amart/r4ss
R
false
false
3,519
r
#' Plot of recruitment distribution among areas and seasons #' #' Image plot shows fraction of recruitment in each combination of area and #' season. This is based on the RECRUITMENT_DIST section of the Report.sso #' file. #' #' #' @param replist list created by \code{SS_output} #' @param plot plot to active plot de...
#' Rename Patches #' #' @param Data Dataset #' #' @export renamePatches <- function(Data) { Data$Island %<>% as.factor Data$IslandFullNames <- Data$Island levels(Data$IslandFullNames) <- c( "Island 1", "Island 2", "Island 3", "Island 4", "Island 5", "Coastal\nGrassland", "Beach\nDunes" ) retu...
/R/renamePatches.R
no_license
ksauby/GTMNERRproc
R
false
false
331
r
#' Rename Patches #' #' @param Data Dataset #' #' @export renamePatches <- function(Data) { Data$Island %<>% as.factor Data$IslandFullNames <- Data$Island levels(Data$IslandFullNames) <- c( "Island 1", "Island 2", "Island 3", "Island 4", "Island 5", "Coastal\nGrassland", "Beach\nDunes" ) retu...
seasonalQ <- function(per,nt) { Q <- matrix(0, nrow=nt, ncol=nt) Ks <- matrix( 0, nrow=per, ncol=nt) for(i in 1:per ) { Ks[i,] <- c( rep(0, i-1), rep(1,per), rep(0, nt-per-i+1) ) } Q[1,]=Ks[1,] Q[nt,]=Ks[1,nt:1] for(i in 2:per) { Q[i,] = apply( Ks[1:i,] , 2 , sum ) Q[nt-i+1,...
/m1utils.R
no_license
dliang-cbl/besBACI
R
false
false
4,773
r
seasonalQ <- function(per,nt) { Q <- matrix(0, nrow=nt, ncol=nt) Ks <- matrix( 0, nrow=per, ncol=nt) for(i in 1:per ) { Ks[i,] <- c( rep(0, i-1), rep(1,per), rep(0, nt-per-i+1) ) } Q[1,]=Ks[1,] Q[nt,]=Ks[1,nt:1] for(i in 2:per) { Q[i,] = apply( Ks[1:i,] , 2 , sum ) Q[nt-i+1,...
library(rprojroot) library(tidyverse) getCurrentFileLocation <- function() { this_file <- commandArgs() %>% tibble::enframe(name = NULL) %>% tidyr::separate(col=value, into=c("key", "value"), sep="=", fill='right') %>% dplyr::filter(key == "--file") %>% dplyr::pull(value) if (length(th...
/gender_differences/old/run_density_ggplot.R
no_license
DashaZhernakova/umcg_scripts
R
false
false
8,262
r
library(rprojroot) library(tidyverse) getCurrentFileLocation <- function() { this_file <- commandArgs() %>% tibble::enframe(name = NULL) %>% tidyr::separate(col=value, into=c("key", "value"), sep="=", fill='right') %>% dplyr::filter(key == "--file") %>% dplyr::pull(value) if (length(th...
#' Delete a node from an existing graph object #' @description From a graph object of class #' \code{dgr_graph}, delete an existing node by #' specifying its node ID. #' @param graph a graph object of class #' \code{dgr_graph}. #' @param node a node ID for the node to be deleted #' from the graph. #' @return a graph ob...
/R/delete_node.R
permissive
FeifanXie/DiagrammeR
R
false
false
3,824
r
#' Delete a node from an existing graph object #' @description From a graph object of class #' \code{dgr_graph}, delete an existing node by #' specifying its node ID. #' @param graph a graph object of class #' \code{dgr_graph}. #' @param node a node ID for the node to be deleted #' from the graph. #' @return a graph ob...
\name{rmhmodel.ppm} \alias{rmhmodel.ppm} \title{Interpret Fitted Model for Metropolis-Hastings Simulation.} \description{ Converts a fitted point process model into a format that can be used to simulate the model by the Metropolis-Hastings algorithm. } \usage{ \method{rmhmodel}{ppm}(model, w, ..., verbose=TRUE...
/man/rmhmodel.ppm.Rd
no_license
chenjiaxun9/spatstat
R
false
false
5,156
rd
\name{rmhmodel.ppm} \alias{rmhmodel.ppm} \title{Interpret Fitted Model for Metropolis-Hastings Simulation.} \description{ Converts a fitted point process model into a format that can be used to simulate the model by the Metropolis-Hastings algorithm. } \usage{ \method{rmhmodel}{ppm}(model, w, ..., verbose=TRUE...
train_data <- read.csv('train.csv') test_data <- read.csv('test.csv') train_data$TripType <- factor(train_data$TripType) train_data$TripType <- as.numeric(train_data.factor) freq <- table(train_data$TripType) ####################################################################################### train_data$TripType...
/file3.R
no_license
aishnupur/Market-Basket-Analysis
R
false
false
6,170
r
train_data <- read.csv('train.csv') test_data <- read.csv('test.csv') train_data$TripType <- factor(train_data$TripType) train_data$TripType <- as.numeric(train_data.factor) freq <- table(train_data$TripType) ####################################################################################### train_data$TripType...
# get values from extension-set env values lim <- Sys.getenv("VSCR_LIM") NEW_PACKAGE_STRING <- "NEW_PACKAGES" cat( lim, tools::startDynamicHelp(), lim, sep = "" ) currentPackages <- NULL while (TRUE) { newPackages <- installed.packages(fields = "Packaged")[, c("Version", "Packaged")] if (!id...
/R/help/helpServer.R
permissive
MilesMcBain/vscode-R
R
false
false
518
r
# get values from extension-set env values lim <- Sys.getenv("VSCR_LIM") NEW_PACKAGE_STRING <- "NEW_PACKAGES" cat( lim, tools::startDynamicHelp(), lim, sep = "" ) currentPackages <- NULL while (TRUE) { newPackages <- installed.packages(fields = "Packaged")[, c("Version", "Packaged")] if (!id...
makeNgramms<-function(data, n = 1, sparsity = 0){ data<-VCorpus(VectorSource(data),readerControl = list(language="en")) ##transformation data <- tm_map(data,iconv,from = "UTF-8", to = "ASCII", sub = 'byte'); data <- tm_map(data,removeNumbers) data<- tm_map(data,gsub,pattern = "<[...
/makeNgramms.R
no_license
dimakg/capstoneDS
R
false
false
1,115
r
makeNgramms<-function(data, n = 1, sparsity = 0){ data<-VCorpus(VectorSource(data),readerControl = list(language="en")) ##transformation data <- tm_map(data,iconv,from = "UTF-8", to = "ASCII", sub = 'byte'); data <- tm_map(data,removeNumbers) data<- tm_map(data,gsub,pattern = "<[...
setwd("~/R/Explanatory Data Analysis/Assignement01/exdata-data-household_power_consumption") downloadFileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" downloadFileTarget <- "./Data/household_power_consumption.zip" household_power_consumption <- "./Data/household_power_co...
/plot1.R
no_license
maxcar/ExData_Plotting1
R
false
false
1,542
r
setwd("~/R/Explanatory Data Analysis/Assignement01/exdata-data-household_power_consumption") downloadFileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" downloadFileTarget <- "./Data/household_power_consumption.zip" household_power_consumption <- "./Data/household_power_co...
library(quanteda) ;library(DT) library(stringi) library(data.table) library(dplyr) library(tm) Word_prediction<- function(test_str) { test_str_split <- unlist(strsplit(Clean_TextString(test_str),split=" ")) test_str_length <- length(test_str_split) QuadGram_check<- NULL TriGram_check<- NULL BiGram_check<-...
/WordPred/Word_prediction_R.R
no_license
AbhilashSunkam/Next-Word-Prediction
R
false
false
2,954
r
library(quanteda) ;library(DT) library(stringi) library(data.table) library(dplyr) library(tm) Word_prediction<- function(test_str) { test_str_split <- unlist(strsplit(Clean_TextString(test_str),split=" ")) test_str_length <- length(test_str_split) QuadGram_check<- NULL TriGram_check<- NULL BiGram_check<-...
## Machine Learning Online Class # Exercise 6 | Support Vector Machines # # Instructions # ------------ # # This file contains code that helps you get started on the # exercise. You will need to complete the following functions: # # gaussianKernel.R # dataset3Params.R # processEmail.R # emailFeatu...
/starter/6/ex6.R
no_license
faridcher/ml-course
R
false
false
4,797
r
## Machine Learning Online Class # Exercise 6 | Support Vector Machines # # Instructions # ------------ # # This file contains code that helps you get started on the # exercise. You will need to complete the following functions: # # gaussianKernel.R # dataset3Params.R # processEmail.R # emailFeatu...
#!/usr/bin/env Rscript ## library packages = c( "ggplot2", "Seurat", "dplyr", "plyr", "data.table" ) for (pkg_name_tmp in packages) { if (!(pkg_name_tmp %in% installed.packages()[,1])) { print(paste0("No ", pkg_name_tmp, " Installed!")) } else { print(paste0("", pkg_name_tmp, " Installed!")) }...
/integration/30_aliquot_integration/subset/subset_normal_epithelial_cells.R
no_license
ding-lab/ccRCC_snRNA_analysis
R
false
false
2,283
r
#!/usr/bin/env Rscript ## library packages = c( "ggplot2", "Seurat", "dplyr", "plyr", "data.table" ) for (pkg_name_tmp in packages) { if (!(pkg_name_tmp %in% installed.packages()[,1])) { print(paste0("No ", pkg_name_tmp, " Installed!")) } else { print(paste0("", pkg_name_tmp, " Installed!")) }...
# loading_data_into_FLR.R - How to load data from outside R into FLR objects # loading_data_into_FLR.R # Copyright 2013 JRC FISHREG. Distributed under the GPL 2 or later # Maintainer: JRC FISHREG # $Id: $ # Created: 14/03/2013 # Modified: #--------------------------------------------------------------- # Basics #----...
/Sessions/02 Load data & EDA/02.01 Loading data into FLR/loading_data_into_FLR.R
no_license
iagomosqueira/FLRforQuantFishSci
R
false
false
5,752
r
# loading_data_into_FLR.R - How to load data from outside R into FLR objects # loading_data_into_FLR.R # Copyright 2013 JRC FISHREG. Distributed under the GPL 2 or later # Maintainer: JRC FISHREG # $Id: $ # Created: 14/03/2013 # Modified: #--------------------------------------------------------------- # Basics #----...
library(tidyverse) ## Loading DMwr to balance the unbalanced class library(DMwR) ## Train test split library(caTools) ## ROCR curve library(ROCR) ## MSMOTE source('MSMOTE.R') data <- read.csv('data/payments_ppdb_app_category_code_aggregated.csv') x <- data %>% filter(age >= 50) x[x$approval_real_price_sum_by_by_a...
/analysis/logit_with_msmote_category_code.R
permissive
desaip2468/deguri
R
false
false
3,319
r
library(tidyverse) ## Loading DMwr to balance the unbalanced class library(DMwR) ## Train test split library(caTools) ## ROCR curve library(ROCR) ## MSMOTE source('MSMOTE.R') data <- read.csv('data/payments_ppdb_app_category_code_aggregated.csv') x <- data %>% filter(age >= 50) x[x$approval_real_price_sum_by_by_a...
# bcratio --- calculates the ratio of positive to # negative elements in a flow model # INPUT = flow matrix # OUTPUT = ratio of positive to negetive elements # # S. Borrett | July 2011 # --------------------------------------------------- bcratio <- function(x='matrix'){ plus <- sum(sum(abs(x[x>0]))) # sum positiv...
/src/debugging/diff/enaR200/R/bcratio.R
no_license
SEELab/enaR_development
R
false
false
468
r
# bcratio --- calculates the ratio of positive to # negative elements in a flow model # INPUT = flow matrix # OUTPUT = ratio of positive to negetive elements # # S. Borrett | July 2011 # --------------------------------------------------- bcratio <- function(x='matrix'){ plus <- sum(sum(abs(x[x>0]))) # sum positiv...
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
/epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926484-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,101
r
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emuR-dataDocs.R \docType{data} \name{fric.dft} \alias{fric.dft} \title{Spectral trackdata object from the segment list fric.} \format{trackdata object} \description{ An EMU dataset } \keyword{datasets}
/man/fric.dft.Rd
no_license
fsuettmann/emuR
R
false
true
280
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emuR-dataDocs.R \docType{data} \name{fric.dft} \alias{fric.dft} \title{Spectral trackdata object from the segment list fric.} \format{trackdata object} \description{ An EMU dataset } \keyword{datasets}
library(ape) testtree <- read.tree("13151_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="13151_0_unrooted.txt")
/codeml_files/newick_trees_processed/13151_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("13151_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="13151_0_unrooted.txt")
#' Evaluate aesthetics by group #' #' aesply splits a data frame into pieces, evaluates a list of aesthetics within #' each piece, and combines the results into a new data frame. Each aesthetic in #' the list must return either a single value per piece or a single value per #' row in the piece. #' #' @keywords internal...
/R/aesply.r
no_license
qinuse/ggsubplot
R
false
false
4,488
r
#' Evaluate aesthetics by group #' #' aesply splits a data frame into pieces, evaluates a list of aesthetics within #' each piece, and combines the results into a new data frame. Each aesthetic in #' the list must return either a single value per piece or a single value per #' row in the piece. #' #' @keywords internal...
# --- Parse the command line arguments --- args <- commandArgs(TRUE) if (length(args) < 1) { args <- c("--help") } if("--help" %in% args) { cat(" Binning of NMR spectra Arguments: --input=path - input file path --output=path - output file path --pattern=path - path to a pattern fi...
/tameNMR/ProcessSpectra/BinSpectra.R
no_license
jjhelmus/tameNMR
R
false
false
2,582
r
# --- Parse the command line arguments --- args <- commandArgs(TRUE) if (length(args) < 1) { args <- c("--help") } if("--help" %in% args) { cat(" Binning of NMR spectra Arguments: --input=path - input file path --output=path - output file path --pattern=path - path to a pattern fi...
################################################################################################################# ######## Plots of Phylo Beta Diversity (spatial) ################################################################ ######## Hannah E. Marx, 20 Jan 2019 #######################################################...
/R/04_BetaDiv/plot_betaDiv_Total.R
no_license
hmarx/Sawtooth-Alpine-PD
R
false
false
9,223
r
################################################################################################################# ######## Plots of Phylo Beta Diversity (spatial) ################################################################ ######## Hannah E. Marx, 20 Jan 2019 #######################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_funcs.R \name{MaternCov} \alias{MaternCov} \title{Matern covariance function} \usage{ MaternCov(grid, nu = 0.5, theta = 1, sig = 1) } \arguments{ \item{grid}{An \code{nx2} matrix of locations over which to compute the covarian...
/sppmix/man/MaternCov.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
1,324
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_funcs.R \name{MaternCov} \alias{MaternCov} \title{Matern covariance function} \usage{ MaternCov(grid, nu = 0.5, theta = 1, sig = 1) } \arguments{ \item{grid}{An \code{nx2} matrix of locations over which to compute the covarian...
/Script en R/obtener listado materias de graduados.R
no_license
Charlesluis63/MetodologiaProyecto
R
false
false
446
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tracing_objects.R \name{SpanUpdates} \alias{SpanUpdates} \title{SpanUpdates Object} \usage{ SpanUpdates(spans = NULL) } \arguments{ \item{spans}{A collection of spans} } \value{ SpanUpdates object } \description{ SpanUpdates Object } \details...
/googletracingv1.auto/man/SpanUpdates.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
423
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tracing_objects.R \name{SpanUpdates} \alias{SpanUpdates} \title{SpanUpdates Object} \usage{ SpanUpdates(spans = NULL) } \arguments{ \item{spans}{A collection of spans} } \value{ SpanUpdates object } \description{ SpanUpdates Object } \details...
#' Check for internal data #' #' Provides access to the internal data listing all NHANES files #' #' @return A data frame with the list of files that can be accessed through the NHANES website. Should not generally be used. Present for debugging purposes and transparency. #' @export find_data <- function(){ ethnic0...
/R/check_internal_data.R
no_license
jwilliman/ethnicNZ
R
false
false
326
r
#' Check for internal data #' #' Provides access to the internal data listing all NHANES files #' #' @return A data frame with the list of files that can be accessed through the NHANES website. Should not generally be used. Present for debugging purposes and transparency. #' @export find_data <- function(){ ethnic0...
his is an updated version from last week - March 31st, 2020 ----------------------------------------------------------------------------------------------------------- ########################################################################################################### # Tracing and modeling the spread o...
/tracing_the_spread_of_covid-19_git.R
no_license
OperAI/Code
R
false
false
9,826
r
his is an updated version from last week - March 31st, 2020 ----------------------------------------------------------------------------------------------------------- ########################################################################################################### # Tracing and modeling the spread o...
#' Make certain values in a \code{data.frame} \code{NA} #' #' Sometimes, after having read in data, one needs to replace certain values by #' \code{\link{NA}}. One approach is to use \code{mydf[mydf == #' "some-character"] <- NA}. However, in many cases that results in a #' \code{data.frame} where variables which sho...
/R/makemeNA.R
no_license
Libardo1/mrdwabmisc
R
false
false
1,591
r
#' Make certain values in a \code{data.frame} \code{NA} #' #' Sometimes, after having read in data, one needs to replace certain values by #' \code{\link{NA}}. One approach is to use \code{mydf[mydf == #' "some-character"] <- NA}. However, in many cases that results in a #' \code{data.frame} where variables which sho...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/img_moments.R \name{img_moments} \alias{img_moments} \alias{img_moments_central} \alias{img_moments_normalised} \title{Image moments} \usage{ img_moments(x, order = 3) img_moments_central(x, order = 3) img_moments_normalised(x, order = 3) }...
/man/img_moments.Rd
no_license
jiho/morphr
R
false
true
3,016
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/img_moments.R \name{img_moments} \alias{img_moments} \alias{img_moments_central} \alias{img_moments_normalised} \title{Image moments} \usage{ img_moments(x, order = 3) img_moments_central(x, order = 3) img_moments_normalised(x, order = 3) }...
library(packrat) packrat::init() ##################### library(readr) library(lime) library(xgboost) # the classifier library(caret) library(dplyr) library(text2vec) tweets <- read_csv('tweets.csv') str(tweets) table(tweets$handle) all_tweets <- tweets %>% rename(author = handle) %>% select(author, text) %...
/clinton_trump_tweets_prediction&interpretation.R
no_license
KKulma/clinton_trump_tweets_explanations
R
false
false
4,011
r
library(packrat) packrat::init() ##################### library(readr) library(lime) library(xgboost) # the classifier library(caret) library(dplyr) library(text2vec) tweets <- read_csv('tweets.csv') str(tweets) table(tweets$handle) all_tweets <- tweets %>% rename(author = handle) %>% select(author, text) %...
x <- c(7, 4, 3, 8, 9, 25) for(i in 1:4){ print(x[i]) }
/scripts/loops/2.r
no_license
flaviohugo14/Homework-R
R
false
false
57
r
x <- c(7, 4, 3, 8, 9, 25) for(i in 1:4){ print(x[i]) }
#install.packages("normalregMix_1.0.tar.gz", repos = NULL, type="source") library(snow) library(doParallel) library(Rmpi) library(normalregMix) ## Generates EM test result according to the dimension of X PerformEMtest <- function (sample, q, an, m = 1, z = NULL, parallel) { library(doParallel) # workers might need in...
/experiments/Table4/archive/1vs2TestCoarseTestRMPI_rmpi.R
no_license
hkasahar/normalregMix
R
false
false
5,179
r
#install.packages("normalregMix_1.0.tar.gz", repos = NULL, type="source") library(snow) library(doParallel) library(Rmpi) library(normalregMix) ## Generates EM test result according to the dimension of X PerformEMtest <- function (sample, q, an, m = 1, z = NULL, parallel) { library(doParallel) # workers might need in...
# Kenny Raymond # INFO 370 # Quiz 4 # 1. Determine the probability of having at least 3 girls in a family of 5 siblings. # (a) Simulate the result and provide figures. # (b) Provide a histogram of probabilities for all scenarios (at least 0, 1, 2, 3, 4 and 5 girls in a family of five siblings). # nu...
/quiz4/quiz4.r
no_license
kar34/kenny_raymond
R
false
false
4,711
r
# Kenny Raymond # INFO 370 # Quiz 4 # 1. Determine the probability of having at least 3 girls in a family of 5 siblings. # (a) Simulate the result and provide figures. # (b) Provide a histogram of probabilities for all scenarios (at least 0, 1, 2, 3, 4 and 5 girls in a family of five siblings). # nu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bino.R \name{bin_mode} \alias{bin_mode} \title{bin_mode} \usage{ bin_mode(trials, prob) } \arguments{ \item{trials}{number of trials} \item{prob}{probability of success} } \value{ a numeric number represents the mode } \description{ Computes...
/binomial/man/bin_mode.Rd
no_license
stat133-sp19/hw-stat133-shellyzhou331
R
false
true
440
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bino.R \name{bin_mode} \alias{bin_mode} \title{bin_mode} \usage{ bin_mode(trials, prob) } \arguments{ \item{trials}{number of trials} \item{prob}{probability of success} } \value{ a numeric number represents the mode } \description{ Computes...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ergastR-core.R \name{getJSONbyURL} \alias{getJSONbyURL} \title{Get JSON data} \usage{ getJSONbyURL(URL) } \arguments{ \item{character}{URL for data request} } \value{ JSON data from ergast API } \description{ *TO DO - really should have a han...
/man/getJSONbyURL.Rd
no_license
psychemedia/ergastR
R
false
true
371
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ergastR-core.R \name{getJSONbyURL} \alias{getJSONbyURL} \title{Get JSON data} \usage{ getJSONbyURL(URL) } \arguments{ \item{character}{URL for data request} } \value{ JSON data from ergast API } \description{ *TO DO - really should have a han...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/androidenterprise_functions.R \name{enterprises.setStoreLayout} \alias{enterprises.setStoreLayout} \title{Sets the store layout for the enterprise. By default, storeLayoutType is set to 'basic' and the basic store layout is enabled. The basic...
/googleandroidenterprisev1.auto/man/enterprises.setStoreLayout.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,435
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/androidenterprise_functions.R \name{enterprises.setStoreLayout} \alias{enterprises.setStoreLayout} \title{Sets the store layout for the enterprise. By default, storeLayoutType is set to 'basic' and the basic store layout is enabled. The basic...
test_that("with_extlib successfully works with no packages provided", { skip_on_cran() ## Make sure packrat mode is off if (packrat:::isPackratModeOn()) packrat::off() orig_libs <- packrat:::getLibPaths() .libPaths(c(file.path(getwd(), "packages"), orig_libs)) on.exit(.libPaths(orig_libs), add = TRUE)...
/tests/testthat/test-with_extlib.R
no_license
rstudio/packrat
R
false
false
660
r
test_that("with_extlib successfully works with no packages provided", { skip_on_cran() ## Make sure packrat mode is off if (packrat:::isPackratModeOn()) packrat::off() orig_libs <- packrat:::getLibPaths() .libPaths(c(file.path(getwd(), "packages"), orig_libs)) on.exit(.libPaths(orig_libs), add = TRUE)...
# ABS connections abs_urls <- list( `5655.01` =list( file_name = "565501", url = "http://www.abs.gov.au/AUSSTATS/abs@archive.nsf/log?openagent&565501.xls&5655.0&Time%20Series%20Spreadsheet&1045F58FB7109D3ECA2581380017AD0B&0&Mar%202017&08.06.2017&Latest" ), `6345.01` =list( file_name = "634501", u...
/R/abs url list.R
permissive
rosseji/example
R
false
false
500
r
# ABS connections abs_urls <- list( `5655.01` =list( file_name = "565501", url = "http://www.abs.gov.au/AUSSTATS/abs@archive.nsf/log?openagent&565501.xls&5655.0&Time%20Series%20Spreadsheet&1045F58FB7109D3ECA2581380017AD0B&0&Mar%202017&08.06.2017&Latest" ), `6345.01` =list( file_name = "634501", u...
testlist <- list(testX = c(191493125665849920, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), trainX ...
/dann/inst/testfiles/calc_distance_C/AFL_calc_distance_C/calc_distance_C_valgrind_files/1609866862-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,199
r
testlist <- list(testX = c(191493125665849920, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), trainX ...
\name{rimpala.refresh} \alias{rimpala.refresh} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Refreshes and loads the new metadata for the given table} \description{This function refreshes the metadata of the table passed as an argument to it.} %- maybe also 'usage' for other objects documented...
/src/man/RImpala_refresh.Rd
permissive
Mu-Sigma/RImpala
R
false
false
1,221
rd
\name{rimpala.refresh} \alias{rimpala.refresh} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Refreshes and loads the new metadata for the given table} \description{This function refreshes the metadata of the table passed as an argument to it.} %- maybe also 'usage' for other objects documented...
library(carx) ### Name: xreg ### Title: Return the 'xreg' part of the 'cenTS' object ### Aliases: xreg ### ** Examples strDates <- c("2000-01-01", "2000-01-02", "2000-01-03", "2000-01-04", "2000-01-05") ts <- cenTS(value=c(1,-2,1,NA,0), order.by=as.Date(strDates,"%Y-%m-%d"), lcl=c(-3,-2,-1,-...
/data/genthat_extracted_code/carx/examples/xreg.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
426
r
library(carx) ### Name: xreg ### Title: Return the 'xreg' part of the 'cenTS' object ### Aliases: xreg ### ** Examples strDates <- c("2000-01-01", "2000-01-02", "2000-01-03", "2000-01-04", "2000-01-05") ts <- cenTS(value=c(1,-2,1,NA,0), order.by=as.Date(strDates,"%Y-%m-%d"), lcl=c(-3,-2,-1,-...
#' @input: 0 #' @output: exp.rda PlotGeneExpDist <- function(mtr) { ##to find out what is the value that we assume the genes with this exp value is not expressed... med <- apply(mtr,1,median) pdf('PlotGeneExpDist.pdf') hist(med,breaks=100,xlab='Median of gene expression') dev.off() med } zero2...
/a.0.prep.r
no_license
htc502/myLncMod
R
false
false
2,859
r
#' @input: 0 #' @output: exp.rda PlotGeneExpDist <- function(mtr) { ##to find out what is the value that we assume the genes with this exp value is not expressed... med <- apply(mtr,1,median) pdf('PlotGeneExpDist.pdf') hist(med,breaks=100,xlab='Median of gene expression') dev.off() med } zero2...
\name{Instalment} \alias{Instalment} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ Instalment(amount, rate, tenor) } %- maybe also 'usage' for other objects documented he...
/man/Instalment.Rd
no_license
mrausch91/THM_US
R
false
false
1,482
rd
\name{Instalment} \alias{Instalment} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ Instalment(amount, rate, tenor) } %- maybe also 'usage' for other objects documented he...
library(data.table) library(GenomicRanges) Junc_annot=fread(sprintf('%s/Maxime/Splicing/NoisySplicing/AllJunctions_V7.txt',EVO_IMMUNO_POP)) Junc_annot$start=Junc_annot$start+1 # by default in all previous scripts, start is the last bp of the previous exons and end is the last bp of the intron. we change it to firt/...
/01_junction_analysis/01_Junction_Analysis_V7.R
permissive
mrotival/EvoImmunoPop_Splicing
R
false
false
32,664
r
library(data.table) library(GenomicRanges) Junc_annot=fread(sprintf('%s/Maxime/Splicing/NoisySplicing/AllJunctions_V7.txt',EVO_IMMUNO_POP)) Junc_annot$start=Junc_annot$start+1 # by default in all previous scripts, start is the last bp of the previous exons and end is the last bp of the intron. we change it to firt/...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 22510 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 22510 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#134.A#48.c#.w#7.s#39.asp/ctrl.e#1.a#3.E#134.A#48.c#.w#7.s#39.asp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
732
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 22510 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 22510 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
\name{wfe} \alias{wfe} \title{Fitting the Weighted Fixed Effects Model for Causal Inference} \description{ \code{wfe} is used to fit weighted fixed effects model for causal inference. \code{wfe} also derives the regression weights for different causal quantity of interest. } \usage{ wfe(formula, da...
/man/wfe.Rd
no_license
YeWang1576/wfe
R
false
false
14,351
rd
\name{wfe} \alias{wfe} \title{Fitting the Weighted Fixed Effects Model for Causal Inference} \description{ \code{wfe} is used to fit weighted fixed effects model for causal inference. \code{wfe} also derives the regression weights for different causal quantity of interest. } \usage{ wfe(formula, da...
readEPC <- function() { #this function reads the txt file and creates the dataframe dfEPClocal <- NULL filename <- file("./household_power_consumption.txt") rows= read.table(filename,header= TRUE,sep=";", nrows = 5) #read the first 5 rows, to get the classes classes = sapply(rows,class) library(sqldf) #...
/plot3.R
no_license
MatwB/ExData_Plotting1
R
false
false
1,570
r
readEPC <- function() { #this function reads the txt file and creates the dataframe dfEPClocal <- NULL filename <- file("./household_power_consumption.txt") rows= read.table(filename,header= TRUE,sep=";", nrows = 5) #read the first 5 rows, to get the classes classes = sapply(rows,class) library(sqldf) #...
# # Prepare the King County data # #*************************************************************************************************** library(tidyverse) library(kingCoData) base_path <- 'c:/dropbox/andy/public/' data_path <- file.path(base_path, 'ready') end_year <- 2019 ### Load Data ---------------------...
/scripts/merge_data.R
no_license
anonymousreauthor/kingCoData
R
false
false
9,635
r
# # Prepare the King County data # #*************************************************************************************************** library(tidyverse) library(kingCoData) base_path <- 'c:/dropbox/andy/public/' data_path <- file.path(base_path, 'ready') end_year <- 2019 ### Load Data ---------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emr_operations.R \name{emr_add_instance_fleet} \alias{emr_add_instance_fleet} \title{Adds an instance fleet to a running cluster} \usage{ emr_add_instance_fleet(ClusterId, InstanceFleet) } \arguments{ \item{ClusterId}{[required] The unique id...
/cran/paws.analytics/man/emr_add_instance_fleet.Rd
permissive
sanchezvivi/paws
R
false
true
2,017
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emr_operations.R \name{emr_add_instance_fleet} \alias{emr_add_instance_fleet} \title{Adds an instance fleet to a running cluster} \usage{ emr_add_instance_fleet(ClusterId, InstanceFleet) } \arguments{ \item{ClusterId}{[required] The unique id...
##You should create one R script called run_analysis.R that does the following. ##1 Merges the training and the test sets to create one data set. ##2 Extracts only the measurements on the mean and standard deviation for each measurement. ##3 Uses descriptive activity names to name the activities in the data set ##4 A...
/run_analysis.R
no_license
asdst14/getdata
R
false
false
2,598
r
##You should create one R script called run_analysis.R that does the following. ##1 Merges the training and the test sets to create one data set. ##2 Extracts only the measurements on the mean and standard deviation for each measurement. ##3 Uses descriptive activity names to name the activities in the data set ##4 A...
# Adobe Experience Manager OSGI config (AEM) API # # Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # # OpenAPI spec version: 1.0.0-pre.0 # Contact: opensource@shinesolutions.com # Generated by: https://openapi-generator.tech #' OrgApacheSlingDistributionTransp...
/clients/r/generated/R/OrgApacheSlingDistributionTransportImplUserCredentialsDistributiInfo.r
permissive
shinesolutions/swagger-aem-osgi
R
false
false
4,992
r
# Adobe Experience Manager OSGI config (AEM) API # # Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # # OpenAPI spec version: 1.0.0-pre.0 # Contact: opensource@shinesolutions.com # Generated by: https://openapi-generator.tech #' OrgApacheSlingDistributionTransp...
## H-ggplot.R # Helper for the ggplot theme mgmt. # # Copyright Antoine Lizee 2016 # Helper for theme_bw ----------------------------------------------------- theme_perso <- function(angle = 0, ...) { hjust = c(0, 0.5, 1)[(angle >= 0) + (angle > 0) + 1] theme_bw(...) + theme( strip.background = element_rect(f...
/R-Code/H-ggplot.R
permissive
antoine-lizee/thinklytics
R
false
false
1,052
r
## H-ggplot.R # Helper for the ggplot theme mgmt. # # Copyright Antoine Lizee 2016 # Helper for theme_bw ----------------------------------------------------- theme_perso <- function(angle = 0, ...) { hjust = c(0, 0.5, 1)[(angle >= 0) + (angle > 0) + 1] theme_bw(...) + theme( strip.background = element_rect(f...
library(shiny) library(shinydashboard) #library(shinyBS) library(e1071) library(randomForest) library(caret) createFolds = caret::createFolds confusionMatrix = caret::confusionMatrix #dataTableOutput = DT::dataTableOutput #renderDataTable = DT::renderDataTable
/ml-ui/packages.r
permissive
suraj-deshmukh/myCodes
R
false
false
260
r
library(shiny) library(shinydashboard) #library(shinyBS) library(e1071) library(randomForest) library(caret) createFolds = caret::createFolds confusionMatrix = caret::confusionMatrix #dataTableOutput = DT::dataTableOutput #renderDataTable = DT::renderDataTable
# Exercise 4: practicing with dplyr # Install the `nycflights13` package. Load (`library()`) the package. # You'll also need to load `dplyr` install.packages("nycflights13") library(nycflights13) # The data frame `flights` should now be accessible to you. # Use functions to inspect it: how many rows and columns does ...
/exercise-4/exercise.R
permissive
ursulamichelle/ch10-dplyr
R
false
false
2,403
r
# Exercise 4: practicing with dplyr # Install the `nycflights13` package. Load (`library()`) the package. # You'll also need to load `dplyr` install.packages("nycflights13") library(nycflights13) # The data frame `flights` should now be accessible to you. # Use functions to inspect it: how many rows and columns does ...
# Loading the libraries required: library(glmnet) library(dummies) source("data_type_fun.R") source("libraries.R") df <- read.csv("sample/sample_0.011.csv") # Delete block and lot: df <- subset(df, select = -c(block,lot)) # Categorical variables and converting to dummies: col_var <- c("cd","schooldist","council","zi...
/Other models/Ridge_Regression_and_Linear.R
no_license
Arjuna-Menon/NYC-Property-Evaluation-Capstone-Project
R
false
false
2,783
r
# Loading the libraries required: library(glmnet) library(dummies) source("data_type_fun.R") source("libraries.R") df <- read.csv("sample/sample_0.011.csv") # Delete block and lot: df <- subset(df, select = -c(block,lot)) # Categorical variables and converting to dummies: col_var <- c("cd","schooldist","council","zi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{egage} \alias{egage} \title{subset of Horvath clock CpGs available on EPIC} \format{ GRanges } \usage{ egage } \description{ subset of Horvath clock CpGs available on EPIC } \note{ derived from 13059_2013_3156_MOES...
/man/egage.Rd
no_license
vjcitn/meffilTools
R
false
true
454
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{egage} \alias{egage} \title{subset of Horvath clock CpGs available on EPIC} \format{ GRanges } \usage{ egage } \description{ subset of Horvath clock CpGs available on EPIC } \note{ derived from 13059_2013_3156_MOES...
#' @title Prefiltering summary #' #' @description Summary of prefiltering results. #' #' @aliases show,Prefiltered-method #' #' @param object output of prefilter function setMethod( f="show", signature="Prefiltered", definition=function( object ) { gene.before <- colnames(object@inputdata$data)...
/R/methods_Prefiltered.R
no_license
dongjunchung/pathclust
R
false
false
774
r
#' @title Prefiltering summary #' #' @description Summary of prefiltering results. #' #' @aliases show,Prefiltered-method #' #' @param object output of prefilter function setMethod( f="show", signature="Prefiltered", definition=function( object ) { gene.before <- colnames(object@inputdata$data)...
library(shiny) library(shinydashboard) library(tidyverse) library(data.table) library(readr) library(DT) library(stringr) library(readxl) library(dplyr) library(ggplot2) library(BiocManager) options(repos = BiocManager::repositories()) library(Biostrings) library(plotly) library(circlize) library(DECIPHER) library(vir...
/server.R
no_license
khaoula-oueslati/ConvMsa
R
false
false
11,707
r
library(shiny) library(shinydashboard) library(tidyverse) library(data.table) library(readr) library(DT) library(stringr) library(readxl) library(dplyr) library(ggplot2) library(BiocManager) options(repos = BiocManager::repositories()) library(Biostrings) library(plotly) library(circlize) library(DECIPHER) library(vir...
#' GeneTonic #' #' GeneTonic, main function for the Shiny app #' #' @param dds A `DESeqDataSet` object, normally obtained after running your data #' through the `DESeq2` framework. #' @param res_de A `DESeqResults` object. As for the `dds` parameter, this is #' also commonly used in the `DESeq2` framework. #' @param re...
/R/GeneTonic.R
permissive
KGZaker/GeneTonic
R
false
false
74,862
r
#' GeneTonic #' #' GeneTonic, main function for the Shiny app #' #' @param dds A `DESeqDataSet` object, normally obtained after running your data #' through the `DESeq2` framework. #' @param res_de A `DESeqResults` object. As for the `dds` parameter, this is #' also commonly used in the `DESeq2` framework. #' @param re...
########################### # File: Kickers.R # Description: Kicker rankings # Date: 6/9/2013 # Author: Isaac Petersen (isaac@fantasyfootballanalytics.net) # Notes: # To do: ########################### #Load libraries library("XML") library("stringr") #Functions source(paste(getwd(), "/R Scripts/Functions/Global Sett...
/R Scripts/Rankings/Kickers.R
no_license
bpafoshizle/FantasyFootballAnalyticsR
R
false
false
2,330
r
########################### # File: Kickers.R # Description: Kicker rankings # Date: 6/9/2013 # Author: Isaac Petersen (isaac@fantasyfootballanalytics.net) # Notes: # To do: ########################### #Load libraries library("XML") library("stringr") #Functions source(paste(getwd(), "/R Scripts/Functions/Global Sett...
doAnalyzePowerSpectrum<-function (my.data, my.series = 1, loess.span = 0.75, dt = 1, dj = 1/20, lowerPeriod = 2 * dt, upperPeriod = floor(nrow(my.data)/3) * dt, make.pval = T, method = "white.noise", params = NULL, n.sim = 100, verbose = T) { if (verbose == T) { out <- function...
/div/doAnalyzePowerSpectrum.R
no_license
finen/waveletDecomp
R
false
false
2,567
r
doAnalyzePowerSpectrum<-function (my.data, my.series = 1, loess.span = 0.75, dt = 1, dj = 1/20, lowerPeriod = 2 * dt, upperPeriod = floor(nrow(my.data)/3) * dt, make.pval = T, method = "white.noise", params = NULL, n.sim = 100, verbose = T) { if (verbose == T) { out <- function...
heatmap_cluster_gsva = function(adj_result){ ### Install and library packages if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("pheatmap") BiocManager::install("RColorBrewer") library(pheatmap) library(RColorBrewer) nadj_result = phea...
/R/heatmap_cluster_gsva.R
no_license
Chengshu21/SS_Benchmark
R
false
false
1,295
r
heatmap_cluster_gsva = function(adj_result){ ### Install and library packages if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("pheatmap") BiocManager::install("RColorBrewer") library(pheatmap) library(RColorBrewer) nadj_result = phea...
testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ...
/metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615769611-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
727
r
testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ...
#logistic_regresssion library(mlbench) data("PimaIndiansDiabetes") View(PimaIndiansDiabetes) dim(PimaIndiansDiabetes) str(PimaIndiansDiabetes) summary(PimaIndiansDiabetes) table(PimaIndiansDiabetes$diabetes) colSums(is.na(PimaIndiansDiabetes)) head(PimaIndiansDiabetes) #we are omitting last column 'diabetes' ...
/R_logistic.R
no_license
pmslssr/teju
R
false
false
2,203
r
#logistic_regresssion library(mlbench) data("PimaIndiansDiabetes") View(PimaIndiansDiabetes) dim(PimaIndiansDiabetes) str(PimaIndiansDiabetes) summary(PimaIndiansDiabetes) table(PimaIndiansDiabetes$diabetes) colSums(is.na(PimaIndiansDiabetes)) head(PimaIndiansDiabetes) #we are omitting last column 'diabetes' ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pFunc.R \name{pFunc} \alias{pFunc} \title{A parametric g formula prediction function} \usage{ pFunc(mod, ndat) } \arguments{ \item{mod}{A model object to predict from.} \item{ndat}{The new data to predict from.} } \description{ This function...
/man/pFunc.Rd
permissive
ainaimi/pgf
R
false
true
430
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pFunc.R \name{pFunc} \alias{pFunc} \title{A parametric g formula prediction function} \usage{ pFunc(mod, ndat) } \arguments{ \item{mod}{A model object to predict from.} \item{ndat}{The new data to predict from.} } \description{ This function...
### Andrew Trister ### Sage Bionetworks ### Seattle, WA ### 20120912 ### Use the populated data to look at survival with POSTN in Grade 2+3 Gliomas (REMBRANDT) ## require(ggplot2) require(survival) require(mixtools) source("./src/ggkm.R") ## ## Now just the grade II and III patients: #and fit a model to it hist(rem...
/src/POSTN-grade2and3.R
no_license
trister/GBM-POSTN
R
false
false
2,539
r
### Andrew Trister ### Sage Bionetworks ### Seattle, WA ### 20120912 ### Use the populated data to look at survival with POSTN in Grade 2+3 Gliomas (REMBRANDT) ## require(ggplot2) require(survival) require(mixtools) source("./src/ggkm.R") ## ## Now just the grade II and III patients: #and fit a model to it hist(rem...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/default.r \name{default} \alias{default} \title{GBCC default R markdown format} \usage{ default(toc = FALSE, toc_depth = 3, number_sections = FALSE, fig_width = 7, fig_height = 5, fig_retina = if (!fig_caption) 2, fig_caption = FALSE, dev...
/man/default.Rd
no_license
data210g/gbccmarkdown
R
false
true
3,807
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/default.r \name{default} \alias{default} \title{GBCC default R markdown format} \usage{ default(toc = FALSE, toc_depth = 3, number_sections = FALSE, fig_width = 7, fig_height = 5, fig_retina = if (!fig_caption) 2, fig_caption = FALSE, dev...
sbc_targets <- list( tar_target( sbc_one_prior_simulations, do.call( generate_obs, c( retro_args, list( obs = retro_validation_obs, datasets = sbc_datasets, strains = 1, model = single_model, overdispersion = ove...
/targets/sbc.R
permissive
epiforecasts/evaluate-delta-for-forecasting
R
false
false
2,264
r
sbc_targets <- list( tar_target( sbc_one_prior_simulations, do.call( generate_obs, c( retro_args, list( obs = retro_validation_obs, datasets = sbc_datasets, strains = 1, model = single_model, overdispersion = ove...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pt.alpha.R \name{pt.alpha} \alias{pt.alpha} \title{Stock return alpha} \usage{ pt.alpha(ar,br) } \arguments{ \item{ar}{:a vector of a risk asset return} \item{br}{:a vector of benchmark return} } \description{ Alpha is the intercept of a fit...
/man/pt.alpha.Rd
no_license
cran/YRmisc
R
false
true
683
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pt.alpha.R \name{pt.alpha} \alias{pt.alpha} \title{Stock return alpha} \usage{ pt.alpha(ar,br) } \arguments{ \item{ar}{:a vector of a risk asset return} \item{br}{:a vector of benchmark return} } \description{ Alpha is the intercept of a fit...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opal.table.R \name{opal.table_get} \alias{opal.table_get} \title{Get a Opal table as a tibble} \usage{ opal.table_get( opal, project, table, id.name = "id", variables = NULL, missings = TRUE ) } \arguments{ \item{opal}{Opal connec...
/man/opal.table_get.Rd
no_license
obiba/opalr
R
false
true
2,026
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opal.table.R \name{opal.table_get} \alias{opal.table_get} \title{Get a Opal table as a tibble} \usage{ opal.table_get( opal, project, table, id.name = "id", variables = NULL, missings = TRUE ) } \arguments{ \item{opal}{Opal connec...
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(adpss) .cost0 <- c(1683.45766074111, 1555.0203968489900, 1545.2777876660502, 1528.3974722278008, 1471.7273013354791) ## ----------------------------------------------...
/fuzzedpackages/adpss/inst/doc/adpss_ex.R
no_license
akhikolla/testpackages
R
false
false
4,807
r
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(adpss) .cost0 <- c(1683.45766074111, 1555.0203968489900, 1545.2777876660502, 1528.3974722278008, 1471.7273013354791) ## ----------------------------------------------...
\name{MDexists} \alias{MDexists} \title{Check Variable Existance} \usage{ MDexists(meta.obj, vars) } \arguments{ \item{meta.obj}{An MDlist (an object from \code{read.MD}).} \item{vars}{A character vector of variable names to check existance.} } \description{ Logical test to check the existance of variables...
/man/MDexists.Rd
no_license
trinker/metaDAT
R
false
false
487
rd
\name{MDexists} \alias{MDexists} \title{Check Variable Existance} \usage{ MDexists(meta.obj, vars) } \arguments{ \item{meta.obj}{An MDlist (an object from \code{read.MD}).} \item{vars}{A character vector of variable names to check existance.} } \description{ Logical test to check the existance of variables...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggplot2loon-ggplot.R \name{ggplot2loon} \alias{ggplot2loon} \title{\code{ggplot} to \code{loon}} \usage{ ggplot2loon( ggObj, ..., activeGeomLayers = integer(0), layerId = NULL, scaleToFun = NULL, ggGuides = FALSE, parent = NULL,...
/man/ggplot2loon.Rd
no_license
great-northern-diver/loon.ggplot
R
false
true
3,807
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggplot2loon-ggplot.R \name{ggplot2loon} \alias{ggplot2loon} \title{\code{ggplot} to \code{loon}} \usage{ ggplot2loon( ggObj, ..., activeGeomLayers = integer(0), layerId = NULL, scaleToFun = NULL, ggGuides = FALSE, parent = NULL,...
############################################################## # # Rat tumor problem # # rm(list=ls()) data <- read.table("~/Downloads/est46111_betabinomial_data.txt", header=T) y <- data$y n <- data$N J <- length(y) ############################################################## log.prior <- function(alpha,beta) {...
/proyfin/est46111_s11_betabinomialjerarquico.R
no_license
abraham314/FEST2018
R
false
false
5,933
r
############################################################## # # Rat tumor problem # # rm(list=ls()) data <- read.table("~/Downloads/est46111_betabinomial_data.txt", header=T) y <- data$y n <- data$N J <- length(y) ############################################################## log.prior <- function(alpha,beta) {...
library(tidyverse) library(readxl) homology <- read_delim('data/human_homology/rattlesnake_human.BestBlast_results.wSymbol.txt',delim=' ',col_names = F) %>% select('crovir'=1,'Human'=2,'symbol'=3) %>% mutate(crovir = str_split_fixed(crovir,'[|]',2)[,2]) %>% mutate(crovir = str_replace_all(crovir,'protein','...
/data/goAnalysis/formatForCluego.R
no_license
blairperry/VenomGlandPhysiol
R
false
false
1,331
r
library(tidyverse) library(readxl) homology <- read_delim('data/human_homology/rattlesnake_human.BestBlast_results.wSymbol.txt',delim=' ',col_names = F) %>% select('crovir'=1,'Human'=2,'symbol'=3) %>% mutate(crovir = str_split_fixed(crovir,'[|]',2)[,2]) %>% mutate(crovir = str_replace_all(crovir,'protein','...
# Main author: Dr. Jennifer Asimit. stepwise <- function(GWAS,Gmat,N,fstub) { tsnps <- colnames(Gmat) rownames(GWAS) <- GWAS$rs zout <- data.frame(GWAS[tsnps,c("rs","chr","ps","allele1","allele0","af","beta","se")]) names(zout) <- c("rsid","chromosome","position","allele1","allele2","maf","beta","se") raf <- z...
/SW.R
no_license
nicolashernandezb/flashfm-analysis
R
false
false
3,249
r
# Main author: Dr. Jennifer Asimit. stepwise <- function(GWAS,Gmat,N,fstub) { tsnps <- colnames(Gmat) rownames(GWAS) <- GWAS$rs zout <- data.frame(GWAS[tsnps,c("rs","chr","ps","allele1","allele0","af","beta","se")]) names(zout) <- c("rsid","chromosome","position","allele1","allele2","maf","beta","se") raf <- z...
# Required Libraries # - dplyr # - geojsonio # - here # - leaflet # - shiny # - tidyr dependencies <- c("dplyr", "geojsonio", "here", "leaflet", "shiny", "tidyr") for (dep in dependencies) { if(!(dep %in% installed.packages()[, "Package"])) { install.packages(dep) } } library(dplyr) library(geojsonio) librar...
/modules/libs.R
no_license
josefigueroa168/Iviz-Project
R
false
false
374
r
# Required Libraries # - dplyr # - geojsonio # - here # - leaflet # - shiny # - tidyr dependencies <- c("dplyr", "geojsonio", "here", "leaflet", "shiny", "tidyr") for (dep in dependencies) { if(!(dep %in% installed.packages()[, "Package"])) { install.packages(dep) } } library(dplyr) library(geojsonio) librar...
#'Fonction qui sépare les listes de réactions : id R1... R2... R3... ko #' #' @param data frame des reactions extraites du KGML en listes #' @keywords kegg #' @examples RUnitTest() RUnitTest <- function(){ myTestSuite <- RUnit::defineTestSuite("RUnit Example", system.file("R", packag...
/R/Test/RunitTest.R
no_license
sandraTL/PathQuantPadigm
R
false
false
428
r
#'Fonction qui sépare les listes de réactions : id R1... R2... R3... ko #' #' @param data frame des reactions extraites du KGML en listes #' @keywords kegg #' @examples RUnitTest() RUnitTest <- function(){ myTestSuite <- RUnit::defineTestSuite("RUnit Example", system.file("R", packag...
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415716053L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10...
/dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615939624-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
826
r
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415716053L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/taxonomy--docs.R \name{name_classifications} \alias{name_classifications} \title{Get classifications of taxa} \arguments{ \item{obj}{(\code{\link[=taxmap]{taxmap()}})} \item{sep}{(\code{character} of length 1) The character(s) to place betwe...
/man/name_classifications.Rd
permissive
grunwald/taxa
R
false
true
948
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/taxonomy--docs.R \name{name_classifications} \alias{name_classifications} \title{Get classifications of taxa} \arguments{ \item{obj}{(\code{\link[=taxmap]{taxmap()}})} \item{sep}{(\code{character} of length 1) The character(s) to place betwe...
#set direction getwd() setwd("C:/Users/Xi/Documents/Explortory data analysis") #get data data1 <- read.table("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data1$Date <- as.Date(data1$Date, format="%d/%m/%Y") dim(dat...
/plot2.R
no_license
kevinwang16/Explortory
R
false
false
717
r
#set direction getwd() setwd("C:/Users/Xi/Documents/Explortory data analysis") #get data data1 <- read.table("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data1$Date <- as.Date(data1$Date, format="%d/%m/%Y") dim(dat...
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/NSCLC.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="mae",alpha=0.45,family="gaussian",standardize=FALSE) sink('./Model/EN/Lasso/NSCLC/NSCLC_056.txt',append=TRUE) ...
/Model/EN/Lasso/NSCLC/NSCLC_056.R
no_license
leon1003/QSMART
R
false
false
349
r
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/NSCLC.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="mae",alpha=0.45,family="gaussian",standardize=FALSE) sink('./Model/EN/Lasso/NSCLC/NSCLC_056.txt',append=TRUE) ...
#' Represents a session: a collection of connections to the same #' database with the same parameters. #' @slot database the name of the database associated with this session #' @slot driver a \code{\link{dbDriver}} object. #' @slot parameters parameters to \code{\link{dbConnect}} #' @slot connect.func currently unuse...
/R/session.R
no_license
rtirrell/databasr
R
false
false
5,845
r
#' Represents a session: a collection of connections to the same #' database with the same parameters. #' @slot database the name of the database associated with this session #' @slot driver a \code{\link{dbDriver}} object. #' @slot parameters parameters to \code{\link{dbConnect}} #' @slot connect.func currently unuse...
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
/src/test/scripts/functions/codegen/rowAggPattern32.R
permissive
apache/systemds
R
false
false
1,137
r
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
# Extend and redistribute open age group to 105+ census_workflow_extend_to_105 <- function(popM, popF, Age, LocID, Year, ...
/census_workflow_extend_to_105.R
no_license
peterdavjohnson/ddharmony
R
false
false
6,531
r
# Extend and redistribute open age group to 105+ census_workflow_extend_to_105 <- function(popM, popF, Age, LocID, Year, ...
#' @title #' fars_read() #' #' @description #' This function checks if the file exists, stops with a message if it does not or loads the file if it does. #' #' @param filename character. The file name of the file to be loaded #' #' #' @return returns a tibble with the data #' #' @examples #' \dontrun{ #' fars_read...
/R/fars_functions.R
no_license
EV201/TestNewPackage
R
false
false
4,564
r
#' @title #' fars_read() #' #' @description #' This function checks if the file exists, stops with a message if it does not or loads the file if it does. #' #' @param filename character. The file name of the file to be loaded #' #' #' @return returns a tibble with the data #' #' @examples #' \dontrun{ #' fars_read...
library(shiny) library(ggplot2) library(tools) load(url("http://s3.amazonaws.com/assets.datacamp.com/production/course_4850/datasets/movies.Rdata")) # UI ui <- fluidPage( sidebarLayout( # Input sidebarPanel( # Enter text for plot title textInput(inputId = "plot_title", ...
/01_R/Reporting/Building Web Applications in R with Shiny/12_isolate.R
no_license
IVI-M/datacamp
R
false
false
2,783
r
library(shiny) library(ggplot2) library(tools) load(url("http://s3.amazonaws.com/assets.datacamp.com/production/course_4850/datasets/movies.Rdata")) # UI ui <- fluidPage( sidebarLayout( # Input sidebarPanel( # Enter text for plot title textInput(inputId = "plot_title", ...
testlist <- list(b = NA_integer_) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
/mcga/inst/testfiles/ByteVectorToDoubles/libFuzzer_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1612761300-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
100
r
testlist <- list(b = NA_integer_) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
require(reshape2) #' Make co-occurrence from multivariate abundance. #' #' This function creates a co-occurrence matrix from a multivariate abundance #' matrix. By default, this function assumes that rows are sites and columns #' are taxa. This is end-user modifiable TODO. #' #' TODO testing #' #' @param mat multivari...
/R/make_cooc.r
no_license
psmits/paleoutils
R
false
false
647
r
require(reshape2) #' Make co-occurrence from multivariate abundance. #' #' This function creates a co-occurrence matrix from a multivariate abundance #' matrix. By default, this function assumes that rows are sites and columns #' are taxa. This is end-user modifiable TODO. #' #' TODO testing #' #' @param mat multivari...
# mini map pdf("C:/Users/ftw712/Desktop/miniMap.pdf") # plot.mpg and plot.diamonds were defined earlier library(viridis) library(ggplot2) library(cowplot) p1 = ggplot(diamonds, aes(clarity, fill = cut)) + geom_bar() + theme(axis.text.x = element_text(angle=70, vjust=0.5)) p2 = ggplot(mpg, aes(x = cty, y = hwy, col...
/R/miniMap.r
no_license
jhnwllr/es50
R
false
false
454
r
# mini map pdf("C:/Users/ftw712/Desktop/miniMap.pdf") # plot.mpg and plot.diamonds were defined earlier library(viridis) library(ggplot2) library(cowplot) p1 = ggplot(diamonds, aes(clarity, fill = cut)) + geom_bar() + theme(axis.text.x = element_text(angle=70, vjust=0.5)) p2 = ggplot(mpg, aes(x = cty, y = hwy, col...
## cache potentially time-consuming computations ## matrix inversion ## create a special object that stores a matrix and caches its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() x setinv <- function(inve...
/cachematrix.R
no_license
wiensian/ProgrammingAssignment2
R
false
false
848
r
## cache potentially time-consuming computations ## matrix inversion ## create a special object that stores a matrix and caches its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() x setinv <- function(inve...
missing.column.safe.rbind <- function ( matA, matB, matA.name, matB.name ) { stopifnot( !is.na( nrow( matA ) ) ); stopifnot( !is.na( nrow( matB ) ) ); all.colnames <- union( colnames( matA ), colnames( matB ) ); .rv <- matrix( NA, nrow = nrow( matA ) + nrow( matB ), ncol = length( all.c...
/getResultsByRegionAndTime_safetosource.R
permissive
philliplab/hiv-founder-id
R
false
false
22,656
r
missing.column.safe.rbind <- function ( matA, matB, matA.name, matB.name ) { stopifnot( !is.na( nrow( matA ) ) ); stopifnot( !is.na( nrow( matB ) ) ); all.colnames <- union( colnames( matA ), colnames( matB ) ); .rv <- matrix( NA, nrow = nrow( matA ) + nrow( matB ), ncol = length( all.c...