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
############################################################################## ### ### MST ### ### Test Probability ### ############################################################################## ### Copyright (c) 2015-2018, The TRONCO Team (www.troncopackage.org) ### email: tronco@disco.unimib.it ### All rights res...
/experiment_1/test_prob.R
no_license
BIMIB-DISCo/MST
R
false
false
2,601
r
############################################################################## ### ### MST ### ### Test Probability ### ############################################################################## ### Copyright (c) 2015-2018, The TRONCO Team (www.troncopackage.org) ### email: tronco@disco.unimib.it ### All rights res...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cro_fun.R \name{cro_fun} \alias{cro_fun} \alias{cro_fun_df} \alias{cro_mean} \alias{cro_mean_sd_n} \alias{cro_sum} \alias{cro_median} \alias{cro_pearson} \alias{cro_spearman} \alias{combine_functions} \title{Cross-tabulation with custom summa...
/man/cro_fun.Rd
no_license
bookman900/expss
R
false
true
9,999
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cro_fun.R \name{cro_fun} \alias{cro_fun} \alias{cro_fun_df} \alias{cro_mean} \alias{cro_mean_sd_n} \alias{cro_sum} \alias{cro_median} \alias{cro_pearson} \alias{cro_spearman} \alias{combine_functions} \title{Cross-tabulation with custom summa...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/methods.R \name{plot.vblogitfit_marginals} \alias{plot.vblogitfit_marginals} \title{Marginals plot} \usage{ \method{plot}{vblogitfit_marginals}(x, ...) } \arguments{ \item{x}{object from vblogit} \item{...}{ignored.} } \description{ ...
/man/plot.vblogitfit_marginals.Rd
no_license
antiphon/vblogistic
R
false
false
338
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/methods.R \name{plot.vblogitfit_marginals} \alias{plot.vblogitfit_marginals} \title{Marginals plot} \usage{ \method{plot}{vblogitfit_marginals}(x, ...) } \arguments{ \item{x}{object from vblogit} \item{...}{ignored.} } \description{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_eurostat_data.R \name{get_eurostat_data} \alias{get_eurostat_data} \title{Download, extract and filter Eurostat data} \usage{ get_eurostat_data( id, filters = NULL, exact_match = TRUE, date_filter = NULL, label = FALSE, select...
/man/get_eurostat_data.Rd
no_license
minghao2016/restatapi
R
false
true
13,667
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_eurostat_data.R \name{get_eurostat_data} \alias{get_eurostat_data} \title{Download, extract and filter Eurostat data} \usage{ get_eurostat_data( id, filters = NULL, exact_match = TRUE, date_filter = NULL, label = FALSE, select...
set.seed(123412) N = 50 n = 3 x = matrix(rnorm(N*n),nrow = N) y = matrix(rnorm(N*4),nrow = N) vec = c(1,1,2,3) # centered distance matrices #### context("centered distance matrices") test_that("cdms",{ expect_warning(cdm(matrix(1,nrow= N,ncol = n)),"constant") expect_equal(cdm(x),cdm(x,psi = function(...
/tests/testthat/testmultivariances.R
no_license
stjordanis/multivariance
R
false
false
10,946
r
set.seed(123412) N = 50 n = 3 x = matrix(rnorm(N*n),nrow = N) y = matrix(rnorm(N*4),nrow = N) vec = c(1,1,2,3) # centered distance matrices #### context("centered distance matrices") test_that("cdms",{ expect_warning(cdm(matrix(1,nrow= N,ncol = n)),"constant") expect_equal(cdm(x),cdm(x,psi = function(...
\alias{gtkToolButtonGetUseUnderline} \name{gtkToolButtonGetUseUnderline} \title{gtkToolButtonGetUseUnderline} \description{Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu. See \code{\link{gtkToolButtonSetUseUnderline}}.} \usage{gtkToolButtonGetUseUnderline(obje...
/RGtk2/man/gtkToolButtonGetUseUnderline.Rd
no_license
lawremi/RGtk2
R
false
false
605
rd
\alias{gtkToolButtonGetUseUnderline} \name{gtkToolButtonGetUseUnderline} \title{gtkToolButtonGetUseUnderline} \description{Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu. See \code{\link{gtkToolButtonSetUseUnderline}}.} \usage{gtkToolButtonGetUseUnderline(obje...
##Helper Functions find_sha<-function(val_commit){ stopifnot(git2r::is_commit(val_commit)) attr(val_commit,which="sha") } find_time<-function(val_commit){ stopifnot(git2r::is_commit(val_commit)) methods::as((val_commit@committer@when),"POSIXct") } find_msg<-function(val_commit){ stopifnot(git2r::is_commi...
/R/test_time_commit.R
no_license
riyazpanjwani/trackeR
R
false
false
1,851
r
##Helper Functions find_sha<-function(val_commit){ stopifnot(git2r::is_commit(val_commit)) attr(val_commit,which="sha") } find_time<-function(val_commit){ stopifnot(git2r::is_commit(val_commit)) methods::as((val_commit@committer@when),"POSIXct") } find_msg<-function(val_commit){ stopifnot(git2r::is_commi...
# Author : Sunil Mathur # This code is part of the course curriculum for MS - Data Science at University of Delaware # BUAD621 - Decision Analytics and Visualization # Program Objective : Model for Sunny / Cloudy day library(causact) library(tidyverse) ## show graphical model dag_create() %>% dag_node("Ice Cream...
/BUAD621/08-sunnyIce.R
no_license
mathursunil/Data-Science
R
false
false
3,396
r
# Author : Sunil Mathur # This code is part of the course curriculum for MS - Data Science at University of Delaware # BUAD621 - Decision Analytics and Visualization # Program Objective : Model for Sunny / Cloudy day library(causact) library(tidyverse) ## show graphical model dag_create() %>% dag_node("Ice Cream...
#Poker winnings from Monday to Friday poker_vector <- c (140, -50, 20, -120, 240) #Roullete winnings from Monday to Friday roullete_vector <- c (-24, -50, 100, -350, 10) #The variable days_vector days_vector <- c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday") #Assign the names of the day to roullete_vector...
/datacamp/vectors/naming_vectors_2.R
no_license
palomara/R
R
false
false
412
r
#Poker winnings from Monday to Friday poker_vector <- c (140, -50, 20, -120, 240) #Roullete winnings from Monday to Friday roullete_vector <- c (-24, -50, 100, -350, 10) #The variable days_vector days_vector <- c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday") #Assign the names of the day to roullete_vector...
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(jskm) ## ----------------------------------------------------------------------------- #Load dataset library(survival) data(colon) fit <- survfit(Surv(time,status)~rx, d...
/inst/doc/jskm.R
no_license
cran/jskm
R
false
false
2,366
r
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(jskm) ## ----------------------------------------------------------------------------- #Load dataset library(survival) data(colon) fit <- survfit(Surv(time,status)~rx, d...
#library(shiny) #library(leaflet) library(plyr) library(dplyr) #library(grid) #library(vcd) library(plotly) #library(ggplot2) library(googleVis) library(RColorBrewer) library(igraph) library(d3Network) library(rCharts) #For Mac dir() setwd("~/Dropbox/JANO/2016/Conabio/JLarson/LastDataBase") TableP <- read.csv("Maíz....
/global.R
no_license
APonce73/SankeyPlot
R
false
false
9,599
r
#library(shiny) #library(leaflet) library(plyr) library(dplyr) #library(grid) #library(vcd) library(plotly) #library(ggplot2) library(googleVis) library(RColorBrewer) library(igraph) library(d3Network) library(rCharts) #For Mac dir() setwd("~/Dropbox/JANO/2016/Conabio/JLarson/LastDataBase") TableP <- read.csv("Maíz....
# This R script is based on Sandro's python script, which produces a LB score of 0.8655 # This script should produce a LB score of 0.86547 # load libraries library(xgboost) library(readr) library(stringr) library(caret) library(car) set.seed(1) # load data df_train = read_csv("../input/train_users.csv") df_test = re...
/airbnb/one script.R
no_license
richarddeng88/Kaggle
R
false
false
3,440
r
# This R script is based on Sandro's python script, which produces a LB score of 0.8655 # This script should produce a LB score of 0.86547 # load libraries library(xgboost) library(readr) library(stringr) library(caret) library(car) set.seed(1) # load data df_train = read_csv("../input/train_users.csv") df_test = re...
library(shiny) shinyUI ( pageWithSidebar( headerPanel("Roasting Curve Generator"), sidebarPanel( fileInput('file1', 'Choose CSV File', accept=c('text/csv', 'text/comma-separated-values,text/plain', '.csv')), tabsetPanel( tabPanel("Date",uiOutput("Date"),acti...
/ui.R
no_license
AmuroRai/RoastMaster
R
false
false
1,308
r
library(shiny) shinyUI ( pageWithSidebar( headerPanel("Roasting Curve Generator"), sidebarPanel( fileInput('file1', 'Choose CSV File', accept=c('text/csv', 'text/comma-separated-values,text/plain', '.csv')), tabsetPanel( tabPanel("Date",uiOutput("Date"),acti...
rm(list = ls()) ############################# # Install required packages # ############################# # List of packages for session .packages = c("ggplot2", "dplyr", "rstan", "tibble", "bayesplot", "Rmisc", "purrr", "reshape2", "gridExtra", "grid", "parallel", "projpred", "optparse") # Install CRA...
/scripts/gaus_skew_hier_post.R
no_license
sam0per/L.saxatilis-Mate-choice
R
false
false
5,256
r
rm(list = ls()) ############################# # Install required packages # ############################# # List of packages for session .packages = c("ggplot2", "dplyr", "rstan", "tibble", "bayesplot", "Rmisc", "purrr", "reshape2", "gridExtra", "grid", "parallel", "projpred", "optparse") # Install CRA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{chop} \alias{chop} \title{Remove the First or Last n of an Object} \usage{ chop(X, n = 1) } \arguments{ \item{X}{a data.frame or a matrix} \item{n}{an integer. number of row to be removed from last. Same as \code{ head(X, NROW(...
/man/chop.Rd
no_license
lkampoli/featureTweakR
R
false
true
419
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{chop} \alias{chop} \title{Remove the First or Last n of an Object} \usage{ chop(X, n = 1) } \arguments{ \item{X}{a data.frame or a matrix} \item{n}{an integer. number of row to be removed from last. Same as \code{ head(X, NROW(...
model = "predictor" source("matchup_statistics.R") probs = ldply(mcmc, function(x) { season = attr(x,"name") theta = extract(x, "theta")[[1]] sigma = extract(x, "sigma")[[1]] sub = submission[submission$season==season,] n = nrow(sub) prob = numeric(n) for (i in 1:n) { ...
/B_analysts_sources_github/cpsievert/madness/predictor_matchup_statistics.R
no_license
Irbis3/crantasticScrapper
R
false
false
592
r
model = "predictor" source("matchup_statistics.R") probs = ldply(mcmc, function(x) { season = attr(x,"name") theta = extract(x, "theta")[[1]] sigma = extract(x, "sigma")[[1]] sub = submission[submission$season==season,] n = nrow(sub) prob = numeric(n) for (i in 1:n) { ...
#script.R #' Finds the variations within the miRNA coordinates and writes the results #' to a file named default 'results.tsv'. #' #' @param populations A vector of population names. #' @param start The start chromosome number. #' @param end The end chromosome number. #' #' @examples getVariations(c("ACB", "BEB"), 1, 5...
/R/getVariations.R
no_license
ctoste/miRNA-1
R
false
false
6,463
r
#script.R #' Finds the variations within the miRNA coordinates and writes the results #' to a file named default 'results.tsv'. #' #' @param populations A vector of population names. #' @param start The start chromosome number. #' @param end The end chromosome number. #' #' @examples getVariations(c("ACB", "BEB"), 1, 5...
"R has 5 basic atomic classes of objects character, numeric, interger, logical (True/False) - The most basic type of object is Vector. - A vector can only contain objects of the same class. - BUT, one exception is a list, it's represented as a vector. But each element can be of different class, say one element is a c...
/Week01/R_Objects_Attributes.R
no_license
ashmichheda/datascience-coursera
R
false
false
684
r
"R has 5 basic atomic classes of objects character, numeric, interger, logical (True/False) - The most basic type of object is Vector. - A vector can only contain objects of the same class. - BUT, one exception is a list, it's represented as a vector. But each element can be of different class, say one element is a c...
\name{MFAmix} \alias{MFAmix} \title{Multiple factor analysis of mixed data} \description{ Performs multiple factor analysis to analyze a set of individuals (observations) described by several groups of variables. Variables within a group can be a mixture of quantitative and qualitative variables. } \usage{ MFAmix(da...
/man/MFAmix.Rd
no_license
chavent/PCAmixdata
R
false
false
7,512
rd
\name{MFAmix} \alias{MFAmix} \title{Multiple factor analysis of mixed data} \description{ Performs multiple factor analysis to analyze a set of individuals (observations) described by several groups of variables. Variables within a group can be a mixture of quantitative and qualitative variables. } \usage{ MFAmix(da...
#' @title The Family of Finite-Tailed Distributions #' @aliases cdfft pdfft qqft rqft #' #' @description Density function, distribution function, quantile function, and random generation of variates for a specified cdf-quantile distribution. #' #' @param y vector of quantiles. #' @param p vector of probabilities....
/R/qrDfFT.R
no_license
cran/cdfquantreg
R
false
false
14,524
r
#' @title The Family of Finite-Tailed Distributions #' @aliases cdfft pdfft qqft rqft #' #' @description Density function, distribution function, quantile function, and random generation of variates for a specified cdf-quantile distribution. #' #' @param y vector of quantiles. #' @param p vector of probabilities....
% Generated by roxygen2 (4.0.0): do not edit by hand \name{with_config} \alias{with_config} \alias{with_verbose} \title{Execute code with configuration set.} \usage{ with_config(config = config(), expr, override = FALSE) with_verbose(code) } \arguments{ \item{expr}{code to execute under specified configuration} \item...
/man/with_config.Rd
no_license
PavelKoci/httr
R
false
false
875
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{with_config} \alias{with_config} \alias{with_verbose} \title{Execute code with configuration set.} \usage{ with_config(config = config(), expr, override = FALSE) with_verbose(code) } \arguments{ \item{expr}{code to execute under specified configuration} \item...
# Copyright (c) 2018, Brandseye PTY (LTD) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish...
/R/account_topics.R
permissive
brandseye/brandseyer2
R
false
false
1,868
r
# Copyright (c) 2018, Brandseye PTY (LTD) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish...
#1 1:20 20:1 c(1:20,19:1) tmp<-c(4,6,3) rep(tmp,10) c(rep(tmp,10),4) c(rep(4,10),rep(6,20),rep(3,30)) #2 x=seq(3,6,by=0.1) y=exp(x)*cos(x) #3 a=seq(3,36,by=3) b=a-2 c=0.1^a*0.2^b #4 paste("label",1:30) paste0("fn",1:30) #5 x <- c( "Swan swam over the pond, Swim swan swim!", "Swan swam back again - Well swum swa...
/src/dg/r-mon/courseware/homework02.R
no_license
xenron/sandbox-da-r
R
false
false
1,084
r
#1 1:20 20:1 c(1:20,19:1) tmp<-c(4,6,3) rep(tmp,10) c(rep(tmp,10),4) c(rep(4,10),rep(6,20),rep(3,30)) #2 x=seq(3,6,by=0.1) y=exp(x)*cos(x) #3 a=seq(3,36,by=3) b=a-2 c=0.1^a*0.2^b #4 paste("label",1:30) paste0("fn",1:30) #5 x <- c( "Swan swam over the pond, Swim swan swim!", "Swan swam back again - Well swum swa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sql_listtables.R \name{sql_listtables} \alias{sql_listtables} \title{Function to list tables for a connection} \usage{ sql_listtables() } \description{ Function to list tables for a connection } \examples{ sql_listtables() }
/man/sql_listtables.Rd
no_license
jeffchang5/SQLiter
R
false
true
305
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sql_listtables.R \name{sql_listtables} \alias{sql_listtables} \title{Function to list tables for a connection} \usage{ sql_listtables() } \description{ Function to list tables for a connection } \examples{ sql_listtables() }
#heat map of effect size values or p values #plot tree with dots on nodes that correlated to the magnitude of the effect size or #p value #density plot of simulated PIC values for nodes with true PIC indicated (as line) #eidt this later to add color parameter plotNodes <- function(tree, parameter, sd,...
/Plot.R
no_license
tking21/Catharus
R
false
false
1,965
r
#heat map of effect size values or p values #plot tree with dots on nodes that correlated to the magnitude of the effect size or #p value #density plot of simulated PIC values for nodes with true PIC indicated (as line) #eidt this later to add color parameter plotNodes <- function(tree, parameter, sd,...
corr <- function(directory, threshold = 0) { filenames <- list.files(directory, pattern = '.csv', full.names = TRUE) count <- 0 correlations <- 0 for (i in 1:length(filenames)) { data <- read.csv(filenames[i]) complete_measurements <- !is.na(data[['sulfate']]) & !is.na(data[['nitrate']])...
/ProgrammingAssignment1/corr.R
no_license
hamburglar6/rprogrammingcoursera
R
false
false
609
r
corr <- function(directory, threshold = 0) { filenames <- list.files(directory, pattern = '.csv', full.names = TRUE) count <- 0 correlations <- 0 for (i in 1:length(filenames)) { data <- read.csv(filenames[i]) complete_measurements <- !is.na(data[['sulfate']]) & !is.na(data[['nitrate']])...
obj <- readRDS("Amby_6_integrated_harmony_plus_analysis.rds") hepatocyte_DE <- Seurat::FindMarkers(obj, slot="counts", test.use="wilcox", group.by="Core_clusters", ident.1="3", ident.2=c("0","1","4","7"), logfc.threshold=0) saveRDS(hepatocyte_DE, "Amby_6_Empty_integrated_...
/Amby_DE.R
no_license
yingstat/snRNAseq_Pipeline
R
false
false
1,824
r
obj <- readRDS("Amby_6_integrated_harmony_plus_analysis.rds") hepatocyte_DE <- Seurat::FindMarkers(obj, slot="counts", test.use="wilcox", group.by="Core_clusters", ident.1="3", ident.2=c("0","1","4","7"), logfc.threshold=0) saveRDS(hepatocyte_DE, "Amby_6_Empty_integrated_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.R \name{globalaccelerator} \alias{globalaccelerator} \title{AWS Global Accelerator} \usage{ globalaccelerator(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region.} } \description{ T...
/cran/paws/man/globalaccelerator.Rd
permissive
TWarczak/paws
R
false
true
17,216
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.R \name{globalaccelerator} \alias{globalaccelerator} \title{AWS Global Accelerator} \usage{ globalaccelerator(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region.} } \description{ T...
# Polynomial Regression # Importing the dataset dataset = read.csv("Position_Salaries.csv") dataset= dataset[2:3] # Fitting Linear Regression to the dataset linear_regression = lm(formula = Salary ~., data = dataset) # Fitting Polynomial Regression to the dataset dataset$Level2 = dataset$Level...
/position+salary+data.R
no_license
harshaljaiswal/Polynomial_regression
R
false
false
2,312
r
# Polynomial Regression # Importing the dataset dataset = read.csv("Position_Salaries.csv") dataset= dataset[2:3] # Fitting Linear Regression to the dataset linear_regression = lm(formula = Salary ~., data = dataset) # Fitting Polynomial Regression to the dataset dataset$Level2 = dataset$Level...
dotosot <- read.csv ("midetrmseatwork_data.csv") dotosot #TASK3 MeanFunction <- function(dotosot, data, data1){ y<- 0 for(row in 20:70){ y[row] <- ifelse(dotosot[row,1], dotosot[row,1],NA) } mean(y,na.rm = TRUE) } MeanFunction(dotosot, 20, 70) #TASK1 value1 <- function (data,row,col){ data [row,col] } ...
/SW3 Midterm.R
no_license
angelicasilao/Midterm_Repo
R
false
false
438
r
dotosot <- read.csv ("midetrmseatwork_data.csv") dotosot #TASK3 MeanFunction <- function(dotosot, data, data1){ y<- 0 for(row in 20:70){ y[row] <- ifelse(dotosot[row,1], dotosot[row,1],NA) } mean(y,na.rm = TRUE) } MeanFunction(dotosot, 20, 70) #TASK1 value1 <- function (data,row,col){ data [row,col] } ...
# this script implements methods for HawkesN with PL kernel (unmarked, PLN, and marked, mPLN) get_param_names.hawkes_PLN <- function(model) { c('K', 'c', 'theta', 'N') } get_ampl_likelihood.hawkes_PLN <- function(model) { paste( 'sum {cn in 1..HL} ( (1 - 0^(L[cn]-J0[cn]-1)) * (sum {i in J0[cn]+1..L[cn]-1} ('...
/R/PLN.R
permissive
behavioral-ds/evently
R
false
false
3,228
r
# this script implements methods for HawkesN with PL kernel (unmarked, PLN, and marked, mPLN) get_param_names.hawkes_PLN <- function(model) { c('K', 'c', 'theta', 'N') } get_ampl_likelihood.hawkes_PLN <- function(model) { paste( 'sum {cn in 1..HL} ( (1 - 0^(L[cn]-J0[cn]-1)) * (sum {i in J0[cn]+1..L[cn]-1} ('...
library(data.table) rm(list=ls()) subm_01A <- fread("~/Dropbox/fish/sub/subm_full_resnet_cut0.7_20170316.csv") subm_01B <- fread("~/Dropbox/fish/sub/subm_full_resnet_cut0.7_20170320.csv") subm_01C <- fread("~/Dropbox/fish/sub/subm_full_resnet_box_cut0.7_20170322.csv") subm_01D <- fread("~/Dropbox/fish/sub/subm_full_res...
/blend/avg_subs_2503--------0.514.R
no_license
rahasayantan/fish
R
false
false
2,918
r
library(data.table) rm(list=ls()) subm_01A <- fread("~/Dropbox/fish/sub/subm_full_resnet_cut0.7_20170316.csv") subm_01B <- fread("~/Dropbox/fish/sub/subm_full_resnet_cut0.7_20170320.csv") subm_01C <- fread("~/Dropbox/fish/sub/subm_full_resnet_box_cut0.7_20170322.csv") subm_01D <- fread("~/Dropbox/fish/sub/subm_full_res...
\name{readRawInput} \alias{readRawInput} \title{READ THE RAW DATA FILE} \description{Checks and loads into a \code{data.frame} the input file containing raw allele specific read (ASR) counts so that it can be input into \code{\link{filterT}}.} \usage{readRawInput(raw_file, del = "\t", rownames = TRUE, colnames = ...
/man/readRawInput.Rd
no_license
ChristelleReynes/ISoLDE
R
false
false
2,136
rd
\name{readRawInput} \alias{readRawInput} \title{READ THE RAW DATA FILE} \description{Checks and loads into a \code{data.frame} the input file containing raw allele specific read (ASR) counts so that it can be input into \code{\link{filterT}}.} \usage{readRawInput(raw_file, del = "\t", rownames = TRUE, colnames = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/package_data.R \docType{data} \name{Christian_rjags} \alias{Christian_rjags} \title{Latent-state model applied to Christian} \format{A "rjags" object} \usage{ Christian_rjags } \description{ The output of clustNSD function applied to Christia...
/man/Christian_rjags.Rd
no_license
BastilleRousseau/lsmnsd
R
false
true
345
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/package_data.R \docType{data} \name{Christian_rjags} \alias{Christian_rjags} \title{Latent-state model applied to Christian} \format{A "rjags" object} \usage{ Christian_rjags } \description{ The output of clustNSD function applied to Christia...
url <- "http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" # create a temporary directory and temp file tempdir = tempdir() tempfile = tempfile(tmpdir=tempdir, fileext=".zip") # download into the temp file download.file(url, tempfile) # Find the name of the file in the archive file...
/plot2.R
no_license
suryanp/ExData_Plotting1
R
false
false
1,427
r
url <- "http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" # create a temporary directory and temp file tempdir = tempdir() tempfile = tempfile(tmpdir=tempdir, fileext=".zip") # download into the temp file download.file(url, tempfile) # Find the name of the file in the archive file...
# Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly. The # following two functions are used to cache the inverse of a matrix. # makeCacheMatrix creates a list containing a function to # 1. set the value of the matrix # ...
/cachematrix.R
no_license
cindyzhouc/ProgrammingAssignment2
R
false
false
1,622
r
# Matrix inversion is usually a costly computation and there may be some benefit # to caching the inverse of a matrix rather than compute it repeatedly. The # following two functions are used to cache the inverse of a matrix. # makeCacheMatrix creates a list containing a function to # 1. set the value of the matrix # ...
\name{branching.diffusion} \alias{branching.diffusion} \title{Animation of branching random diffusion} \usage{ branching.diffusion(sig2=1, b=0.0023, time.stop=1000, ylim=NULL, smooth=TRUE, pause=0.02, record=NULL, path=NULL) } \arguments{ \item{sig2}{variance of BM process.} \item{b}{birthrate for branchin...
/man/branching.diffusion.Rd
no_license
aghozlane/phytools
R
false
false
1,361
rd
\name{branching.diffusion} \alias{branching.diffusion} \title{Animation of branching random diffusion} \usage{ branching.diffusion(sig2=1, b=0.0023, time.stop=1000, ylim=NULL, smooth=TRUE, pause=0.02, record=NULL, path=NULL) } \arguments{ \item{sig2}{variance of BM process.} \item{b}{birthrate for branchin...
\name{MarkEqRcg} \alias{MarkEqRcg} \title{ Markov equivalence for regression chain graphs. } \description{ \code{MarkEqMag} determines whether two RCGs (or subclasses of RCGs) are Markov equivalent. } \usage{ MarkEqRcg(amat, bmat) } \arguments{ \item{amat}{ An adjacency matrix of an RCG or a graph that...
/man/MarkEqRcg.Rd
no_license
cran/ggm
R
false
false
1,652
rd
\name{MarkEqRcg} \alias{MarkEqRcg} \title{ Markov equivalence for regression chain graphs. } \description{ \code{MarkEqMag} determines whether two RCGs (or subclasses of RCGs) are Markov equivalent. } \usage{ MarkEqRcg(amat, bmat) } \arguments{ \item{amat}{ An adjacency matrix of an RCG or a graph that...
################################ ## CHECKS FOR ARGUMENT TAGS ## ################################ # CONTAINS # get.varType() - grabs first part of string, sep specifiable # argument_check()- check duplicate attribute/model tags + check requests for two model types of one variable + checking other master c...
/R/argumentInputChecker.R
no_license
cran/foreSIGHT
R
false
false
15,188
r
################################ ## CHECKS FOR ARGUMENT TAGS ## ################################ # CONTAINS # get.varType() - grabs first part of string, sep specifiable # argument_check()- check duplicate attribute/model tags + check requests for two model types of one variable + checking other master c...
# ----------------------------------------------------------------------------- context("summarizeByPolygon()") testthat::test_that("summarizeByPolygon properly summarizes", { testthat::expect_equal( dim(summarizeByPolygon(longitude = c(20.383333, -110, 25.433333, 11.330556, 101.766667, -110, -110), ...
/data/genthat_extracted_code/MazamaSpatialUtils/tests/test-summarizePolygons.R
no_license
surayaaramli/typeRrh
R
false
false
647
r
# ----------------------------------------------------------------------------- context("summarizeByPolygon()") testthat::test_that("summarizeByPolygon properly summarizes", { testthat::expect_equal( dim(summarizeByPolygon(longitude = c(20.383333, -110, 25.433333, 11.330556, 101.766667, -110, -110), ...
#' Calculate Total Pathway Probabilities of Decision Tree #' #' Sequential event operations. #' The probabilities are calculate with \code{FUN="product"} #' and the values are calculated with \code{FUN="sum"}. #' #' @param osNode object of class costeffectiveness_tree #' @param FUN sum or product #' #' @return vector ...
/R/calc_pathway_probs.R
no_license
ycphs/treeSimR
R
false
false
2,265
r
#' Calculate Total Pathway Probabilities of Decision Tree #' #' Sequential event operations. #' The probabilities are calculate with \code{FUN="product"} #' and the values are calculated with \code{FUN="sum"}. #' #' @param osNode object of class costeffectiveness_tree #' @param FUN sum or product #' #' @return vector ...
library(ggplot2) library(foreach) library(doMC) library("multicore", quietly=TRUE) registerDoMC(max(multicore:::detectCores()-6,2)) # use all cores minus 2 source("~/ACE/global_vars.R") source(file.path(kRootPath, "util", "load_data.R"), chdir=T) source(file.path(kRootPath, "fitting", "interval_fitting_funcs.R"), chdi...
/scoring/test_consensus.R
no_license
joetidwell/QES2
R
false
false
14,574
r
library(ggplot2) library(foreach) library(doMC) library("multicore", quietly=TRUE) registerDoMC(max(multicore:::detectCores()-6,2)) # use all cores minus 2 source("~/ACE/global_vars.R") source(file.path(kRootPath, "util", "load_data.R"), chdir=T) source(file.path(kRootPath, "fitting", "interval_fitting_funcs.R"), chdi...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/mepstrends/hc_care/json/code/r/pctPOP__agegrps__diab_chol__.r
permissive
RandomCriticalAnalysis/MEPS-summary-tables
R
false
false
2,262
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
library(party) str(iris) head(iris) set.seed(1234) ind <- sample(2,nrow(iris), replace=TRUE, prob=c(0.7,0.3)) trainData <- iris[ind==1,] testData <- iris[ind==2,] myFormula <- Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width iris_ctree <- ctree(myFormula, data=trainData) train_predict <- predi...
/Decision Tree Iris.R
no_license
Gopisahane1/Chatbot
R
false
false
683
r
library(party) str(iris) head(iris) set.seed(1234) ind <- sample(2,nrow(iris), replace=TRUE, prob=c(0.7,0.3)) trainData <- iris[ind==1,] testData <- iris[ind==2,] myFormula <- Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width iris_ctree <- ctree(myFormula, data=trainData) train_predict <- predi...
file_name<-("C:\\Users\\krmanke\\RStudioProjects\\Assignments\\Assignment6\\Assignment6\\") files<-list.files(file_name) Event_Count<-vector() Year<-vector() index<-1 for (i in files){ unzipped_file<-read.csv(paste(file_name, i, sep = ""), stringsAsFactors = FALSE) Event_Count<-append(Event_Count, sum(table(...
/Assignments/Assignment6.R
no_license
mankek/RStudioProjects
R
false
false
488
r
file_name<-("C:\\Users\\krmanke\\RStudioProjects\\Assignments\\Assignment6\\Assignment6\\") files<-list.files(file_name) Event_Count<-vector() Year<-vector() index<-1 for (i in files){ unzipped_file<-read.csv(paste(file_name, i, sep = ""), stringsAsFactors = FALSE) Event_Count<-append(Event_Count, sum(table(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/binary_paths.R \name{ms2geno_binary_path} \alias{ms2geno_binary_path} \title{return the path where ms2geno should be in the R system paths} \usage{ ms2geno_binary_path() } \description{ return the path where ms2geno should be in the R system ...
/man/ms2geno_binary_path.Rd
no_license
eriqande/GSImulator
R
false
true
328
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/binary_paths.R \name{ms2geno_binary_path} \alias{ms2geno_binary_path} \title{return the path where ms2geno should be in the R system paths} \usage{ ms2geno_binary_path() } \description{ return the path where ms2geno should be in the R system ...
fitness = read.table("Regression_Tc2_hom.txt",header=T, sep="\t"); #fitness = read.table("Regression_Tc2_het.txt",header=T, sep="\t"); #not informative fitness$orf = as.character(fitness$orf); tb = read.csv("PowersRankedDeletions.csv"); tb$ORF = as.character(tb$ORF); tb$YPD = fitness$YPD[ match( tb$ORF, fitness$orf) ...
/spelman/2014-2015/KeyanaScottASPIRE/AA_project/robustnessAA/Powers06GND/_121909.powers.R
no_license
hongqin/student.project.archives
R
false
false
1,722
r
fitness = read.table("Regression_Tc2_hom.txt",header=T, sep="\t"); #fitness = read.table("Regression_Tc2_het.txt",header=T, sep="\t"); #not informative fitness$orf = as.character(fitness$orf); tb = read.csv("PowersRankedDeletions.csv"); tb$ORF = as.character(tb$ORF); tb$YPD = fitness$YPD[ match( tb$ORF, fitness$orf) ...
library(Gviz) library(BSgenome.Hsapiens.UCSC.hg19) library(biomaRt) library(TxDb.Hsapiens.UCSC.hg19.knownGene) setwd('C:\\Users\\maxim\\Dropbox (EinsteinMed)\\CloudStation\\PRMT\\RNAseq\\bigwig\\RPKM_bw') bwFile1 <- 'D4C1_Aligned.sortedByCoord.out.RPKM.bw' bwFile2<- 'D2G1_Aligned.sortedByCoord.out.RPKM.bw' bwFil...
/Figure1/gviz_IGV_substitute_d2_PRMTi_RNAseq_bigwigRPKM_GAS5.R
no_license
Shechterlab/PRMTsRegulatePostTranscriptionalDI
R
false
false
1,615
r
library(Gviz) library(BSgenome.Hsapiens.UCSC.hg19) library(biomaRt) library(TxDb.Hsapiens.UCSC.hg19.knownGene) setwd('C:\\Users\\maxim\\Dropbox (EinsteinMed)\\CloudStation\\PRMT\\RNAseq\\bigwig\\RPKM_bw') bwFile1 <- 'D4C1_Aligned.sortedByCoord.out.RPKM.bw' bwFile2<- 'D2G1_Aligned.sortedByCoord.out.RPKM.bw' bwFil...
##Code to draw Exploratory Data Analisys Project 1 Plot 3 dtHouseholdPowerConsumption<-read.csv2("household_power_consumption.txt") KeyDateTime<-strptime(paste(dtHouseholdPowerConsumption[,"Date"],dtHouseholdPowerConsumption[,"Time"]),"%d/%m/%Y %H:%M:%S") dtSubset<-cbind(KeyDateTime,dtHouseholdPowerConsumption) rm(...
/plot3.R
no_license
edgarrodriguez/ExData_Plotting1
R
false
false
1,335
r
##Code to draw Exploratory Data Analisys Project 1 Plot 3 dtHouseholdPowerConsumption<-read.csv2("household_power_consumption.txt") KeyDateTime<-strptime(paste(dtHouseholdPowerConsumption[,"Date"],dtHouseholdPowerConsumption[,"Time"]),"%d/%m/%Y %H:%M:%S") dtSubset<-cbind(KeyDateTime,dtHouseholdPowerConsumption) rm(...
get.beta.statistic = function(set.data, ref.vector, weights) { if (missing("ref.vector")) { ref.vector = colMeans(set.data) } ref.mean = mean(ref.vector) sum.r = apply(set.data, 1, function(x) { # t(ref.vector - ref.mean) %*% (x - mean(x)) / sqrt(t(ref.vector - ref.mean) %*% (ref.vec...
/R/get_statistic.r
no_license
hloefflerwirth/scrat
R
false
false
1,958
r
get.beta.statistic = function(set.data, ref.vector, weights) { if (missing("ref.vector")) { ref.vector = colMeans(set.data) } ref.mean = mean(ref.vector) sum.r = apply(set.data, 1, function(x) { # t(ref.vector - ref.mean) %*% (x - mean(x)) / sqrt(t(ref.vector - ref.mean) %*% (ref.vec...
#' A function to read in the real data of NHANES #' @export read_real_data #' @param select_ear Either "right" or "left" to choose which ear of data is loaded #' @return A list that contains two data: the one for functional and multivariate and the other for the label of tympnometry #' @import foreign #' @importFrom st...
/CoFA/R/read_real_data.R
no_license
jgong9/CoFA
R
false
false
4,132
r
#' A function to read in the real data of NHANES #' @export read_real_data #' @param select_ear Either "right" or "left" to choose which ear of data is loaded #' @return A list that contains two data: the one for functional and multivariate and the other for the label of tympnometry #' @import foreign #' @importFrom st...
library(moments) ct <- read.csv(file.choose()) View(ct) # Hypothesis Testing #Where x-discrete,y-contionous #x1-unitA,x2-unitB,y-diameter of cutlets #Normality test shapiro.test(ct$Unit.A) # p-value = 0.3200 >0.05 so p high null fly => It follows normal distribution shapiro.test(ct$Unit.B) # p-value = 0.522...
/Cutlets.R
no_license
jayasimha338/Data-Science-2
R
false
false
785
r
library(moments) ct <- read.csv(file.choose()) View(ct) # Hypothesis Testing #Where x-discrete,y-contionous #x1-unitA,x2-unitB,y-diameter of cutlets #Normality test shapiro.test(ct$Unit.A) # p-value = 0.3200 >0.05 so p high null fly => It follows normal distribution shapiro.test(ct$Unit.B) # p-value = 0.522...
#Codice R per analisi di immagini satellitari ##### 5. R_CODE_TELERIV # AR - CODICE R PER L'ANALISI DI IMMAGINI SATELLITARI # AR - PACCHETTI UTILIZZATI: "raster", "RStoolbox" # install.packages("raster") # install.packages("RStoolbox") library(raster) library(RStoolbox) setwd("C:/Lab") # AR - FUNZIONE...
/R.code.teleriv.r
no_license
albertoruggeri4/ecologia_R
R
false
false
6,302
r
#Codice R per analisi di immagini satellitari ##### 5. R_CODE_TELERIV # AR - CODICE R PER L'ANALISI DI IMMAGINI SATELLITARI # AR - PACCHETTI UTILIZZATI: "raster", "RStoolbox" # install.packages("raster") # install.packages("RStoolbox") library(raster) library(RStoolbox) setwd("C:/Lab") # AR - FUNZIONE...
#' @title xx #' #' @description xx xx xx #' #' @param x x #' #' @return x #' #' @export #' xx <- function(x){ x } #' @rdname xx #' #' @export #' yy <- function(x){ x }
/R/xx.R
no_license
dapperstats/test
R
false
false
169
r
#' @title xx #' #' @description xx xx xx #' #' @param x x #' #' @return x #' #' @export #' xx <- function(x){ x } #' @rdname xx #' #' @export #' yy <- function(x){ x }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ABC.r \name{ABC_Parallel_JRNMM_sigmuC} \alias{ABC_Parallel_JRNMM_sigmuC} \title{ABC_Parallel_JRNMM_sigmuC} \usage{ ABC_Parallel_JRNMM_sigmuC(in_refData, in_specRef, in_spx, in_T, in_h, in_M, in_w, A, B, a, b, v0, r, vmax) } \value{ d, tilde...
/man/ABC_Parallel_JRNMM_sigmuC.Rd
no_license
massimilianotamborrino/sdbmpABC
R
false
true
419
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ABC.r \name{ABC_Parallel_JRNMM_sigmuC} \alias{ABC_Parallel_JRNMM_sigmuC} \title{ABC_Parallel_JRNMM_sigmuC} \usage{ ABC_Parallel_JRNMM_sigmuC(in_refData, in_specRef, in_spx, in_T, in_h, in_M, in_w, A, B, a, b, v0, r, vmax) } \value{ d, tilde...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_annual_flow_timing.R \name{calc_annual_flow_timing} \alias{calc_annual_flow_timing} \title{Calculate annual flow timing} \usage{ calc_annual_flow_timing(data = NULL, dates = Date, values = Value, groups = STATION_NUMBER, station_number...
/man/calc_annual_flow_timing.Rd
permissive
MonkmanMH/fasstr
R
false
true
4,688
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_annual_flow_timing.R \name{calc_annual_flow_timing} \alias{calc_annual_flow_timing} \title{Calculate annual flow timing} \usage{ calc_annual_flow_timing(data = NULL, dates = Date, values = Value, groups = STATION_NUMBER, station_number...
library(fullfact) ### Name: powerGlmer3 ### Title: Power analysis for non-normal data 3 ### Aliases: powerGlmer3 ### ** Examples ##design object: 2 remaining random effects and 1 continous fixed effect block=c(2,2); blocN=10; position=2; posN=10; offN=20 dam0<- stack(as.data.frame(matrix(1:(block[1]*blocN),ncol=blo...
/data/genthat_extracted_code/fullfact/examples/powerGlmer3.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,243
r
library(fullfact) ### Name: powerGlmer3 ### Title: Power analysis for non-normal data 3 ### Aliases: powerGlmer3 ### ** Examples ##design object: 2 remaining random effects and 1 continous fixed effect block=c(2,2); blocN=10; position=2; posN=10; offN=20 dam0<- stack(as.data.frame(matrix(1:(block[1]*blocN),ncol=blo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.route53_operations.R \name{create_traffic_policy_version} \alias{create_traffic_policy_version} \title{Creates a new version of an existing traffic policy} \usage{ create_traffic_policy_version(Id, Document, Comment = NULL) } \arguments{...
/service/paws.route53/man/create_traffic_policy_version.Rd
permissive
CR-Mercado/paws
R
false
true
1,481
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.route53_operations.R \name{create_traffic_policy_version} \alias{create_traffic_policy_version} \title{Creates a new version of an existing traffic policy} \usage{ create_traffic_policy_version(Id, Document, Comment = NULL) } \arguments{...
CAANutation_NutationInObliquity <- function(JD){ .Call("CAANutation_NutationInObliquity", JD) }
/R/CAANutation_NutationInObliquity.R
no_license
helixcn/skycalc
R
false
false
100
r
CAANutation_NutationInObliquity <- function(JD){ .Call("CAANutation_NutationInObliquity", JD) }
library(readxl) rename_pred <- read_excel("./documentation/Rename_predictors.xlsx",sheet = "Rename",col_names = TRUE)
/scripts/data_manipulation/import_rename_predictors.R
no_license
shubila/LGBTI
R
false
false
119
r
library(readxl) rename_pred <- read_excel("./documentation/Rename_predictors.xlsx",sheet = "Rename",col_names = TRUE)
.get_bref_players_ids <- function(players = c("Aaron McKie", "Aaron Gordon"), player_ids = "bonnean01") { if (players %>% purrr::is_null() && player_ids %>% purrr::is_null()) { stop("Please Enter IDS") } ids <- c() df_bref_player_dict <- dictionary_bref_players() %>% suppressMessages() if ...
/R/bref_bio.R
no_license
lopez12-crypto/nbastatR
R
false
false
16,372
r
.get_bref_players_ids <- function(players = c("Aaron McKie", "Aaron Gordon"), player_ids = "bonnean01") { if (players %>% purrr::is_null() && player_ids %>% purrr::is_null()) { stop("Please Enter IDS") } ids <- c() df_bref_player_dict <- dictionary_bref_players() %>% suppressMessages() if ...
with(afd51ff44fd40425baf3f765710bd570c, {ROOT <- 'D:/ATS2.0/SEMOSS/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/f6ba5938-ef1b-4430-b7b0-261d1cc8174d';rm(list=ls())});
/f6ba5938-ef1b-4430-b7b0-261d1cc8174d/R/Temp/arXRuud6DiOqq.R
no_license
ayanmanna8/test
R
false
false
208
r
with(afd51ff44fd40425baf3f765710bd570c, {ROOT <- 'D:/ATS2.0/SEMOSS/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/f6ba5938-ef1b-4430-b7b0-261d1cc8174d';rm(list=ls())});
#Shuffle bed regions to random regions of the same size and chromosome. si = chromosome sizes, ie. from rtracklayer::SeqinfoForBSGenome() shuffleGenome <- function(x,si){ require(GenomicRanges) lim <- seqlengths(si)[as.character(seqnames(x))] - width(x) pos <- round(runif(length(x),1,lim)) GRanges(seqnames(x),I...
/R/shuffleGenome.R
no_license
ALentini/DIPseqPaper
R
false
false
350
r
#Shuffle bed regions to random regions of the same size and chromosome. si = chromosome sizes, ie. from rtracklayer::SeqinfoForBSGenome() shuffleGenome <- function(x,si){ require(GenomicRanges) lim <- seqlengths(si)[as.character(seqnames(x))] - width(x) pos <- round(runif(length(x),1,lim)) GRanges(seqnames(x),I...
inc <- function(x) { eval.parent(substitute(x <- x + 1)) } binary.evaluation <- function(predictedValues, trueValues) { # Convert predicted and true values to vectors predictedValues <- as.vector(predictedValues) trueValues <- as.vector(trueValues) # Check the length if (length(predictedValues) != length(t...
/exercises/caravan/caravan.R
no_license
mw-mff-uk/NPFL054
R
false
false
2,927
r
inc <- function(x) { eval.parent(substitute(x <- x + 1)) } binary.evaluation <- function(predictedValues, trueValues) { # Convert predicted and true values to vectors predictedValues <- as.vector(predictedValues) trueValues <- as.vector(trueValues) # Check the length if (length(predictedValues) != length(t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mr_ivw-methods.R \name{penalised.weights.delta} \alias{penalised.weights.delta} \title{Calculates p-values for penalization of weights with second-order weights} \usage{ penalised.weights.delta(.Bx, .Bxse, .By, .Byse, .psi) } \argumen...
/man/penalised.weights.delta.Rd
no_license
GeneticResources/MendelianRandomization
R
false
true
1,388
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mr_ivw-methods.R \name{penalised.weights.delta} \alias{penalised.weights.delta} \title{Calculates p-values for penalization of weights with second-order weights} \usage{ penalised.weights.delta(.Bx, .Bxse, .By, .Byse, .psi) } \argumen...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-SDMXREST21RequestBuilder.R, % R/SDMXREST21RequestBuilder-methods.R \docType{class} \name{SDMXREST21RequestBuilder} \alias{SDMXREST21RequestBuilder} \alias{SDMXREST21RequestBuilder-class} \alias{SDMXREST21RequestBuilder,SDMXREST...
/man/SDMXREST21RequestBuilder.Rd
no_license
cran/rsdmx
R
false
true
3,079
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-SDMXREST21RequestBuilder.R, % R/SDMXREST21RequestBuilder-methods.R \docType{class} \name{SDMXREST21RequestBuilder} \alias{SDMXREST21RequestBuilder} \alias{SDMXREST21RequestBuilder-class} \alias{SDMXREST21RequestBuilder,SDMXREST...
#R-session No 2 #Reading CSVs from Data Hub oda0 = read.csv("https://github.com/devinit/digital-platform/user-data/oda.2000/csv/oda.2000.csv") oda1 = read.csv("https://github.com/devinit/digital-platform/blob/master/user-data/oda.2001/csv/oda.2001.csv") #Does not work for some reason, it only gives me 135 obs of ...
/S2 attempt.R
no_license
niklasrie/R-sessions
R
false
false
1,406
r
#R-session No 2 #Reading CSVs from Data Hub oda0 = read.csv("https://github.com/devinit/digital-platform/user-data/oda.2000/csv/oda.2000.csv") oda1 = read.csv("https://github.com/devinit/digital-platform/blob/master/user-data/oda.2001/csv/oda.2001.csv") #Does not work for some reason, it only gives me 135 obs of ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PSEa_woboot.R \name{PSEa_woboot} \alias{PSEa_woboot} \title{PSE without bootstrap} \usage{ PSEa_woboot( Para, n_para, n_cate, ITE, theta.hat, sig.hat, Vcov.matrix, intv, intval, confounders, a ) } \arguments{ \item{Para}...
/man/PSEa_woboot.Rd
no_license
Esther-R-code/momm
R
false
true
2,589
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PSEa_woboot.R \name{PSEa_woboot} \alias{PSEa_woboot} \title{PSE without bootstrap} \usage{ PSEa_woboot( Para, n_para, n_cate, ITE, theta.hat, sig.hat, Vcov.matrix, intv, intval, confounders, a ) } \arguments{ \item{Para}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mk_epoch.R \name{make.asr.mk.epoch} \alias{make.asr.mk.epoch} \title{Marginal ancestral state reconstruction} \usage{ make.asr.mk.epoch(lik) } \arguments{ \item{lik}{A likelihood function returned by \code{make.mk.epoch}} } \value{ A function...
/man/make.asr.mk.epoch.Rd
no_license
blueraleigh/macroevolution
R
false
true
542
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mk_epoch.R \name{make.asr.mk.epoch} \alias{make.asr.mk.epoch} \title{Marginal ancestral state reconstruction} \usage{ make.asr.mk.epoch(lik) } \arguments{ \item{lik}{A likelihood function returned by \code{make.mk.epoch}} } \value{ A function...
#' Convenience Function to Imports and Map Dictionary #' #' Convenience Function to Imports and Map Dictionary: wraps up import() and mapper() #' #' @param file path to file #' @param method choice between reading dictionary from local or GoogleSheets source #' @param \ldots extra params #' @export #' @examples #' \do...
/R/import_map.R
no_license
data-steve/valiData
R
false
false
484
r
#' Convenience Function to Imports and Map Dictionary #' #' Convenience Function to Imports and Map Dictionary: wraps up import() and mapper() #' #' @param file path to file #' @param method choice between reading dictionary from local or GoogleSheets source #' @param \ldots extra params #' @export #' @examples #' \do...
library(ape) testtree <- read.tree("964_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="964_0_unrooted.txt")
/codeml_files/newick_trees_processed/964_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
133
r
library(ape) testtree <- read.tree("964_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="964_0_unrooted.txt")
Print (## This is a markdown file)
/HelloWorld.md.R
no_license
omarfeliciano/datasciencecoursera
R
false
false
37
r
Print (## This is a markdown file)
# Read the csv file zika <- read.csv('~/Documentos/trabalho/programmed_biology/sage_ms_zika_casos_2016.csv') # Convert the dataframe in a matrix and transpose zika_matrix <- as.matrix(zika[,-1]) zika_matrix <- t(zika_matrix) # Open PDF device pdf('zika_r_basenew.pdf', width = 15, height = 3.3) # Set the margins par...
/scripts/zika_r_base.R
no_license
pmdbio/pmdbio.github.io
R
false
false
1,457
r
# Read the csv file zika <- read.csv('~/Documentos/trabalho/programmed_biology/sage_ms_zika_casos_2016.csv') # Convert the dataframe in a matrix and transpose zika_matrix <- as.matrix(zika[,-1]) zika_matrix <- t(zika_matrix) # Open PDF device pdf('zika_r_basenew.pdf', width = 15, height = 3.3) # Set the margins par...
#R_code_exam.r #Cambiamento della temperatura globale degli oceani e dei mari dal 2002 al 2021 (vedere ogni quanti anni) #inserire le librerie necessarie library(raster) library(rasterVis) library (RStoolbox) library(gridExtra) library(ggplot2) library(viridis) #fare il set della working directory setwd("D:/lab/AQUA"...
/R_code_exam.r
no_license
quartanicoletta/Telerilevamento_2021
R
false
false
4,010
r
#R_code_exam.r #Cambiamento della temperatura globale degli oceani e dei mari dal 2002 al 2021 (vedere ogni quanti anni) #inserire le librerie necessarie library(raster) library(rasterVis) library (RStoolbox) library(gridExtra) library(ggplot2) library(viridis) #fare il set della working directory setwd("D:/lab/AQUA"...
setwd('/Volumes/MyBook_3/BD_aging_project/RNAseq/All_tissues_analysis/CIBERSORT/VST_transformed_coutns/') source('RNAseq_analysis_functions.R') library('DESeq2') # 2016-10-19 # run to extract VST transformed counts # 2017-04-05 # add mouse alzheimer's data and 40Hz treated hippocampus # run to extract VST transforme...
/FigureS7_CIBERSORT/VST_transformed_counts/process_RNAseq_datasets.R
permissive
BenayounLaboratory/Mouse_Aging_Epigenomics_2018
R
false
false
6,320
r
setwd('/Volumes/MyBook_3/BD_aging_project/RNAseq/All_tissues_analysis/CIBERSORT/VST_transformed_coutns/') source('RNAseq_analysis_functions.R') library('DESeq2') # 2016-10-19 # run to extract VST transformed counts # 2017-04-05 # add mouse alzheimer's data and 40Hz treated hippocampus # run to extract VST transforme...
#' Shiny app server object #' #' @import shiny #' @import ggplot2 counterUI <- function(id, label = "Counter") { ns <- NS(id) tagList( actionButton(ns("button"), label = label), verbatimTextOutput(ns("out")) ) } counter <- function(input, output, session) { count <- reactiveVal(0) observeEvent(input...
/R/global.R
no_license
nyujwc331/shinypackage
R
false
false
1,294
r
#' Shiny app server object #' #' @import shiny #' @import ggplot2 counterUI <- function(id, label = "Counter") { ns <- NS(id) tagList( actionButton(ns("button"), label = label), verbatimTextOutput(ns("out")) ) } counter <- function(input, output, session) { count <- reactiveVal(0) observeEvent(input...
\name{p_to_d1} \alias{p_to_d1} \title{One-tailed p-value to Standardized Mean Difference (d) } \description{One-tailed p-value reported in the primary study to Standardized Mean Difference (d) } \usage{ p_to_d1(p, n.1, n.2) } \arguments{ \item{p}{One-tailed p-value reported in primary study. } \item{n....
/man/p_to_d1.Rd
no_license
cran/MAd
R
false
false
1,397
rd
\name{p_to_d1} \alias{p_to_d1} \title{One-tailed p-value to Standardized Mean Difference (d) } \description{One-tailed p-value reported in the primary study to Standardized Mean Difference (d) } \usage{ p_to_d1(p, n.1, n.2) } \arguments{ \item{p}{One-tailed p-value reported in primary study. } \item{n....
library(deldir) ### Name: seaweed ### Title: seaweed ### Aliases: seaweed ### Keywords: datasets ### ** Examples # data(seaweed) # It is unnecessary to use \code{data} since \code{seaweed} is # a "first class object". It is "lazily loaded". dsw <- deldir(seaweed) isw <- tileInfo(dsw) options(width=120) # Expand t...
/data/genthat_extracted_code/deldir/examples/seaweed.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
434
r
library(deldir) ### Name: seaweed ### Title: seaweed ### Aliases: seaweed ### Keywords: datasets ### ** Examples # data(seaweed) # It is unnecessary to use \code{data} since \code{seaweed} is # a "first class object". It is "lazily loaded". dsw <- deldir(seaweed) isw <- tileInfo(dsw) options(width=120) # Expand t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{sample_annotation} \alias{sample_annotation} \title{This is data to be included in package} \format{ Sample annotation document \describe{ \item{sample_id}{sample name} \item{tissue}{tissue for comparison} \item{su...
/man/sample_annotation.Rd
no_license
THERMOSTATS/RVA
R
false
true
476
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{sample_annotation} \alias{sample_annotation} \title{This is data to be included in package} \format{ Sample annotation document \describe{ \item{sample_id}{sample name} \item{tissue}{tissue for comparison} \item{su...
#' @import methods #' @import DBI #' @import utils #' @importFrom tibble data_frame #' @importFrom stats as.formula coefficients gaussian na.fail na.omit predict quantile NULL
/R/imports.R
permissive
trinker/sparklyr
R
false
false
176
r
#' @import methods #' @import DBI #' @import utils #' @importFrom tibble data_frame #' @importFrom stats as.formula coefficients gaussian na.fail na.omit predict quantile NULL
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/00symbolic.005ifelse.factor.R \name{design.matrix.of.one.factor} \alias{design.matrix.of.one.factor} \title{Of type, we deal with one variable only \code{ifelse(var1==a1, .. , ifelse( var1==a2, .. ,..))}} \usage{ design.matrix.of.one.factor(e...
/symbolicR/man/design.matrix.of.one.factor.Rd
no_license
isabella232/symbolicR
R
false
true
621
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/00symbolic.005ifelse.factor.R \name{design.matrix.of.one.factor} \alias{design.matrix.of.one.factor} \title{Of type, we deal with one variable only \code{ifelse(var1==a1, .. , ifelse( var1==a2, .. ,..))}} \usage{ design.matrix.of.one.factor(e...
#' Lollipop Chart #' #' Easily create a lollipop chart #' #' @param data Dataset to use for the bar chart #' @param x \code{character} or \code{factor} column of \code{data} #' @param y \code{numeric} column of \code{data} representing the lollipop length. #' If missing, the lollipop length will be proportional ...
/R/lollipop_chart.R
no_license
klahrich/ggcharts
R
false
false
5,427
r
#' Lollipop Chart #' #' Easily create a lollipop chart #' #' @param data Dataset to use for the bar chart #' @param x \code{character} or \code{factor} column of \code{data} #' @param y \code{numeric} column of \code{data} representing the lollipop length. #' If missing, the lollipop length will be proportional ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/headwidthsize.R \name{headwidthsize} \alias{headwidthsize} \title{Converts pollinator (Diptera, Hymenoptera and Lepidoptera) head width (mm) to body size (dry weight (mg)).} \usage{ headwidthsize(HW, Eq = "H97DB") } \arguments{ \item{HW}{A ve...
/man/headwidthsize.Rd
no_license
cran/pollimetry
R
false
true
1,164
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/headwidthsize.R \name{headwidthsize} \alias{headwidthsize} \title{Converts pollinator (Diptera, Hymenoptera and Lepidoptera) head width (mm) to body size (dry weight (mg)).} \usage{ headwidthsize(HW, Eq = "H97DB") } \arguments{ \item{HW}{A ve...
\name{prediction.frame} \alias{prediction.frame} \alias{prediction.frame.default} \title{Produce a Data Frame of Predictions and Independent Variables} \description{ \code{prediction.frame} produces a data frame that contains the independent variables of a model together with model generated predictions. } \usage...
/man/predictionFrame.Rd
no_license
msaidf/memisc
R
false
false
1,957
rd
\name{prediction.frame} \alias{prediction.frame} \alias{prediction.frame.default} \title{Produce a Data Frame of Predictions and Independent Variables} \description{ \code{prediction.frame} produces a data frame that contains the independent variables of a model together with model generated predictions. } \usage...
#----------------------------------------------------------------------------------------------# # compares SIPs in K562 to validated CRISPR data from 3 papers # finds overlaps between promoters or PIRs and gRNAs/disrupted regions # 2x2 tables of results by significance/SIP status library(data.table) library(ggplot2) ...
/scripts/K562_crisper_v2.R
no_license
Jia21/SIP
R
false
false
4,980
r
#----------------------------------------------------------------------------------------------# # compares SIPs in K562 to validated CRISPR data from 3 papers # finds overlaps between promoters or PIRs and gRNAs/disrupted regions # 2x2 tables of results by significance/SIP status library(data.table) library(ggplot2) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table_module.R \name{LoadTableModule} \alias{LoadTableModule} \title{LoadTableModule} \usage{ LoadTableModule(input, output, session, tag, set = list(title = NULL, filetypes = NULL, format = list(header = T, sep = "\\t", quote = "\\"", st...
/man/LoadTableModule.Rd
no_license
JasonBason/Mosaic
R
false
true
540
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table_module.R \name{LoadTableModule} \alias{LoadTableModule} \title{LoadTableModule} \usage{ LoadTableModule(input, output, session, tag, set = list(title = NULL, filetypes = NULL, format = list(header = T, sep = "\\t", quote = "\\"", st...
centroidal <- function(x, eps = .01, max.iter = 100, f = NULL, antideriv.x = NULL, antideriv.y = NULL, divisions = 15, rw = NULL, verbose = 0){ if(class(x) == "deldir") { p <- x$summary[,1:2] T <- x } else if(class(x) == "ve"){ p <- x$p T <- x$T } else if(class(x) %in% c("matrix", "data...
/R/centroidal.R
no_license
cran/voronoi
R
false
false
4,101
r
centroidal <- function(x, eps = .01, max.iter = 100, f = NULL, antideriv.x = NULL, antideriv.y = NULL, divisions = 15, rw = NULL, verbose = 0){ if(class(x) == "deldir") { p <- x$summary[,1:2] T <- x } else if(class(x) == "ve"){ p <- x$p T <- x$T } else if(class(x) %in% c("matrix", "data...
################################### # Script setup sdm_data # R version 4.1 .1 # modler version 0.0.1 ################################### ## Carregague as bibliotecas instaladas library(sp) library(modleR) library(raster) # Ao criar um projeto no Rstudio (e neste exemplo integrado ao Git e Github), o R já entende q...
/R/2-Scripts_ENMs_SDMs/1-setup_sdmdata.R
no_license
KarenSuarezC/M-diamantinensis
R
false
false
3,936
r
################################### # Script setup sdm_data # R version 4.1 .1 # modler version 0.0.1 ################################### ## Carregague as bibliotecas instaladas library(sp) library(modleR) library(raster) # Ao criar um projeto no Rstudio (e neste exemplo integrado ao Git e Github), o R já entende q...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pathoStat.R \name{runPathoStat} \alias{runPathoStat} \title{Statistical Microbiome Analysis on the pathostat input and generates a html report and produces interactive shiny app plots} \usage{ runPathoStat(pstat = NULL, report_file = "PathoSt...
/man/runPathoStat.Rd
no_license
tseanlu/PathoStat
R
false
true
1,084
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pathoStat.R \name{runPathoStat} \alias{runPathoStat} \title{Statistical Microbiome Analysis on the pathostat input and generates a html report and produces interactive shiny app plots} \usage{ runPathoStat(pstat = NULL, report_file = "PathoSt...
random <- function(payoff, ntrials, theta) { #bias towards option 1 (theta) and option 2 b <- c(theta, 1-theta) #empty array to be filled x <- array(0, c(ntrials)) #rewards array to be filled r <- array(0, c(ntrials)) for (t in 1:ntrials) { #agent that chooses randomly between options 1 and 2...
/Module 2/random.R
no_license
anitakurm/Cognitive-Modelling
R
false
false
561
r
random <- function(payoff, ntrials, theta) { #bias towards option 1 (theta) and option 2 b <- c(theta, 1-theta) #empty array to be filled x <- array(0, c(ntrials)) #rewards array to be filled r <- array(0, c(ntrials)) for (t in 1:ntrials) { #agent that chooses randomly between options 1 and 2...
getwd() #get working directory x <- 1 #Storing 1 in x y <- "1" #ztoring character 1 in y class(x) #used to print class of variable class(y) v=c(9,8,7,6,4) v[3] # displaying third element seq a=matrix(c(1,2,3,4),nrow = 2,ncol=2,byrow='TRUE') #creating 2x2 matrix a m=c(5,6) b=rbind(a,m) #used to add a extra row b ...
/Lab 0 - IE 6200 - Sec 07 - Omkar Kalange.R
no_license
komkar123/Probability-Statistics-Assignments
R
false
false
430
r
getwd() #get working directory x <- 1 #Storing 1 in x y <- "1" #ztoring character 1 in y class(x) #used to print class of variable class(y) v=c(9,8,7,6,4) v[3] # displaying third element seq a=matrix(c(1,2,3,4),nrow = 2,ncol=2,byrow='TRUE') #creating 2x2 matrix a m=c(5,6) b=rbind(a,m) #used to add a extra row b ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/monolix2simulx.R \name{monolix2simulx} \alias{monolix2simulx} \title{Convert a Monolix Project into an executable for the simulator Simulx} \usage{ monolix2simulx( project, parameter = NULL, group = NULL, open = FALSE, r.data = TR...
/man/monolix2simulx.Rd
no_license
MarcLavielle/mlxR
R
false
true
1,873
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/monolix2simulx.R \name{monolix2simulx} \alias{monolix2simulx} \title{Convert a Monolix Project into an executable for the simulator Simulx} \usage{ monolix2simulx( project, parameter = NULL, group = NULL, open = FALSE, r.data = TR...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check-helpers.R \name{check_draw_ellipsis} \alias{check_draw_ellipsis} \title{Checks for undesired arguments in ellipsis in $draw_leafdown method} \usage{ check_draw_ellipsis(...) } \arguments{ \item{...}{Additional arguments given to \code{l...
/man/check_draw_ellipsis.Rd
no_license
AlexandrosBB/leafdown
R
false
true
682
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check-helpers.R \name{check_draw_ellipsis} \alias{check_draw_ellipsis} \title{Checks for undesired arguments in ellipsis in $draw_leafdown method} \usage{ check_draw_ellipsis(...) } \arguments{ \item{...}{Additional arguments given to \code{l...
# 1. Preamble --------------- library(here) source(here("Automation/00_Functions_automation.R")) # assigning Drive credentials in the case the script is verified manually if (!"email" %in% ls()){ email <- "gatemonte@gmail.com" } # info country and N drive address ctr <- "Sweden" dir_n <- "N:/COVerAGE-DB/Automat...
/Automation/00_hydra/Sweden.R
permissive
emanudelfava/covid_age
R
false
false
6,783
r
# 1. Preamble --------------- library(here) source(here("Automation/00_Functions_automation.R")) # assigning Drive credentials in the case the script is verified manually if (!"email" %in% ls()){ email <- "gatemonte@gmail.com" } # info country and N drive address ctr <- "Sweden" dir_n <- "N:/COVerAGE-DB/Automat...
#Set your working directory: setwd("yourworkingdirectory") #Read the dataset, that must be in wd electric <- read.delim("household_power_consumption.txt", header = TRUE, sep = ";", dec = ".",stringsAsFactors=FALSE,na.strings = "NA") #Correct the data types for (i in 3:9) { electric[,i] <- as.numeric(electric[,i]) } e...
/plot3.R
no_license
khispa/ExData_Plotting1
R
false
false
982
r
#Set your working directory: setwd("yourworkingdirectory") #Read the dataset, that must be in wd electric <- read.delim("household_power_consumption.txt", header = TRUE, sep = ";", dec = ".",stringsAsFactors=FALSE,na.strings = "NA") #Correct the data types for (i in 3:9) { electric[,i] <- as.numeric(electric[,i]) } e...
source("00_dependencies.R") ################################################################### # Correlation of various asset ownership things (DHS DATA) ################################################################### dhs = readRDS("../data/DHS_output_2020-04-09_aggregatedforidentification.RDS") range01 = f...
/code_figs/figure_s2_indexconstruction.R
no_license
Anustup900/africa_poverty
R
false
false
2,175
r
source("00_dependencies.R") ################################################################### # Correlation of various asset ownership things (DHS DATA) ################################################################### dhs = readRDS("../data/DHS_output_2020-04-09_aggregatedforidentification.RDS") range01 = f...
#' @title singleSlice #' #' @description internal function used by ccl #' @param x a 2D binary matrix, e.g., single slice of lesion mask #' @keywords #' @seealso #' @return matrix with labeled components #' @aliases #' @examples \dontrun{ #' #'} singleSlice <- function(x){ # First pass through columns individually ...
/R/singleSlice.R
no_license
kalinn/ccl
R
false
false
676
r
#' @title singleSlice #' #' @description internal function used by ccl #' @param x a 2D binary matrix, e.g., single slice of lesion mask #' @keywords #' @seealso #' @return matrix with labeled components #' @aliases #' @examples \dontrun{ #' #'} singleSlice <- function(x){ # First pass through columns individually ...
source("helper.R") library("xlsx") library("janitor") library("tidyverse") #consists of communal (+swiss total) and of cantonal areas statbot_src_32001_CH <- function(flag_force_update=FALSE){ destfile<-"temp/bfs_gp.xlsx" download.file("https://www.bfs.admin.ch/bfsstatic/dam/assets/15864450/master",destfile=destf...
/src/32001_CH.R
no_license
jsonspeed/statbot
R
false
false
2,075
r
source("helper.R") library("xlsx") library("janitor") library("tidyverse") #consists of communal (+swiss total) and of cantonal areas statbot_src_32001_CH <- function(flag_force_update=FALSE){ destfile<-"temp/bfs_gp.xlsx" download.file("https://www.bfs.admin.ch/bfsstatic/dam/assets/15864450/master",destfile=destf...
subsettingLinksMatrix <- function(PC_tbl, r) { #local variable: PC_tbl = matrix with HQ link; global variables: 1) minNbLinks; FUNCTIONS: 1) countingHetLinks. #r = ratio #PC_tbl <- fullHQlinksComb #keep pwise Comb with link counts > minNbLinks linksM <- lapply(1:nrow(PC_tbl[,4:7]), function(x) { which(as.numer...
/phasing.v0/subsettingLinksMatrix_function.R
no_license
Adrien-Evo/single_cell
R
false
false
2,620
r
subsettingLinksMatrix <- function(PC_tbl, r) { #local variable: PC_tbl = matrix with HQ link; global variables: 1) minNbLinks; FUNCTIONS: 1) countingHetLinks. #r = ratio #PC_tbl <- fullHQlinksComb #keep pwise Comb with link counts > minNbLinks linksM <- lapply(1:nrow(PC_tbl[,4:7]), function(x) { which(as.numer...
rm(list = ls()) library(profile) filedir = "../inst/extdata" datadir = "../data" rdatadir = "../inst/auxRData" load(file = file.path(datadir,"peaks_ctcf.RData")) windowExt = 1000 start(peaks_ctcf) = peaks_ctcf$summit - windowExt end(peaks_ctcf) = peaks_ctcf$summit + windowExt names = c("H3k27ac","H3k4me1","H3k4me...
/inst/rscripts/example0.R
no_license
duydnguyen/tan-coverage
R
false
false
2,083
r
rm(list = ls()) library(profile) filedir = "../inst/extdata" datadir = "../data" rdatadir = "../inst/auxRData" load(file = file.path(datadir,"peaks_ctcf.RData")) windowExt = 1000 start(peaks_ctcf) = peaks_ctcf$summit - windowExt end(peaks_ctcf) = peaks_ctcf$summit + windowExt names = c("H3k27ac","H3k4me1","H3k4me...