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: do not edit by hand % Please edit documentation in R/quantile_glu.R \name{quantile_glu} \alias{quantile_glu} \title{Calculate glucose level quantiles} \usage{ quantile_glu(data, quantiles = c(0, 0.25, 0.5, 0.75, 1)) } \arguments{ \item{data}{DataFrame with column names ("id", "time", and "gl"),...
/man/quantile_glu.Rd
no_license
trippsapientae/iglu
R
false
true
575
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/quantile_glu.R \name{quantile_glu} \alias{quantile_glu} \title{Calculate glucose level quantiles} \usage{ quantile_glu(data, quantiles = c(0, 0.25, 0.5, 0.75, 1)) } \arguments{ \item{data}{DataFrame with column names ("id", "time", and "gl"),...
# Load required libraries library(dplyr) # Set working space script.dir <- dirname(sys.frame(1)$ofile) setwd(script.dir) # Dataset DESCRIPTION print("Openning Features file...") features <- read.table("../features.txt", col.names=c("num","formula")) # 561x1 will be used as X columns names print("Openning Acti...
/run_analysis.R
no_license
ramonbss/datascience_tidydata
R
false
false
3,757
r
# Load required libraries library(dplyr) # Set working space script.dir <- dirname(sys.frame(1)$ofile) setwd(script.dir) # Dataset DESCRIPTION print("Openning Features file...") features <- read.table("../features.txt", col.names=c("num","formula")) # 561x1 will be used as X columns names print("Openning Acti...
{% if Objects %} fdata <- get(load("{{ Object }}")) fdata@Dimnames[[1]] <- make.names(gsub(".ENS.*", "", fdata@Dimnames[[1]]), unique = T) whole <- CreateSeuratObject( counts = fdata, min.cells = 2, min.features = 200, project = "{{ RunName }}" ) whole <- add_metadata(whole) {% endif %} {% if PathsToCounts...
/templates/intro_single.R
no_license
mariafiruleva/automated_processing_scrnaseq
R
false
false
544
r
{% if Objects %} fdata <- get(load("{{ Object }}")) fdata@Dimnames[[1]] <- make.names(gsub(".ENS.*", "", fdata@Dimnames[[1]]), unique = T) whole <- CreateSeuratObject( counts = fdata, min.cells = 2, min.features = 200, project = "{{ RunName }}" ) whole <- add_metadata(whole) {% endif %} {% if PathsToCounts...
library(ape) testtree <- read.tree("10022_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10022_0_unrooted.txt")
/codeml_files/newick_trees_processed/10022_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("10022_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10022_0_unrooted.txt")
# #aggr_to_slots <- aggr_to_slots[1:30] # cycler_id <- 6 # optimal_moves_to_finish(6, game_status, deck_status) optimal_moves_to_finish <- function(cycler_deck_status, calc_from_slot, precalc_data, draw_odds_raw_data = "") { kortit_Dt <- data.table(MOVEMENT = as.numeric(str_split(cycler_deck_status[[1]][1], "...
/scripts/solution/optimal_moves_to_finish.R
no_license
Laurigit/flAImme
R
false
false
14,534
r
# #aggr_to_slots <- aggr_to_slots[1:30] # cycler_id <- 6 # optimal_moves_to_finish(6, game_status, deck_status) optimal_moves_to_finish <- function(cycler_deck_status, calc_from_slot, precalc_data, draw_odds_raw_data = "") { kortit_Dt <- data.table(MOVEMENT = as.numeric(str_split(cycler_deck_status[[1]][1], "...
#!/usr/bin/Rscript ############### COMMON INIT ##################### options(stringsAsFactors = F) library(dplyr) library(tidyr) library(ggplot2) harvdir = "~/data/geno/harvest-aux/" flags = read.table(paste0(harvdir, "harvest-flag-list.txt"), h=T) link = read.table("~/data/mobaqs/p1724/harvest_linkage.csv", sep=";"...
/prep-phenofile-linreg.R
no_license
PerinatalLab/HARVEST_GWAS_main
R
false
false
6,503
r
#!/usr/bin/Rscript ############### COMMON INIT ##################### options(stringsAsFactors = F) library(dplyr) library(tidyr) library(ggplot2) harvdir = "~/data/geno/harvest-aux/" flags = read.table(paste0(harvdir, "harvest-flag-list.txt"), h=T) link = read.table("~/data/mobaqs/p1724/harvest_linkage.csv", sep=";"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nymphaea.R \docType{data} \name{nymphaea} \alias{nymphaea} \title{Example input file of Nymphaea ISSR data, taken from Reid et. al. (2021). This dataset has already been consolidated, and can be used as input for the generation of an nMDS plo...
/man/nymphaea.Rd
no_license
cran/BinMat
R
false
true
881
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nymphaea.R \docType{data} \name{nymphaea} \alias{nymphaea} \title{Example input file of Nymphaea ISSR data, taken from Reid et. al. (2021). This dataset has already been consolidated, and can be used as input for the generation of an nMDS plo...
library(HDCI) ### Name: Lasso ### Title: Lasso ### Aliases: Lasso ### ** Examples library("glmnet") library("mvtnorm") ## generate the data set.seed(2015) n <- 200 # number of obs p <- 500 s <- 10 beta <- rep(0, p) beta[1:s] <- runif(s, 1/3, 1) x <- rmvnorm(n = n, mean = rep(0, p), method = "svd") signal <- ...
/data/genthat_extracted_code/HDCI/examples/Lasso.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
993
r
library(HDCI) ### Name: Lasso ### Title: Lasso ### Aliases: Lasso ### ** Examples library("glmnet") library("mvtnorm") ## generate the data set.seed(2015) n <- 200 # number of obs p <- 500 s <- 10 beta <- rep(0, p) beta[1:s] <- runif(s, 1/3, 1) x <- rmvnorm(n = n, mean = rep(0, p), method = "svd") signal <- ...
repository_dir <- "/home/phrb/org/journal" library(dplyr) csv_dir <- c(repository_dir, "/legup-tuner/", "post_place_and_route/py/results/r_scripts/", "data") experiments <- c("balanced", "area", "perf", "perflat") applications <- c("dfadd", "dfdiv", "dfmul", "sha", "motion", "...
/post_place_and_route/py/results/r_scripts/mean_sd.r
no_license
phrb/legup-tuner
R
false
false
1,584
r
repository_dir <- "/home/phrb/org/journal" library(dplyr) csv_dir <- c(repository_dir, "/legup-tuner/", "post_place_and_route/py/results/r_scripts/", "data") experiments <- c("balanced", "area", "perf", "perflat") applications <- c("dfadd", "dfdiv", "dfmul", "sha", "motion", "...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lazytensor_operations.R \name{concat} \alias{concat} \title{Concatenation.} \usage{ concat(x, y) } \arguments{ \item{x}{A \code{LazyTensor} or a \code{ComplexLazyTensor}.} \item{y}{A \code{LazyTensor} or a \code{ComplexLazyTensor}.} } \value...
/rkeops/man/concat.Rd
permissive
getkeops/keops
R
false
true
1,295
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lazytensor_operations.R \name{concat} \alias{concat} \title{Concatenation.} \usage{ concat(x, y) } \arguments{ \item{x}{A \code{LazyTensor} or a \code{ComplexLazyTensor}.} \item{y}{A \code{LazyTensor} or a \code{ComplexLazyTensor}.} } \value...
# 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 the Apache License, Version 2.0 (the # "License"); you may...
/r/.styler_excludes.R
permissive
romainfrancois/arrow
R
false
false
849
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 the Apache License, Version 2.0 (the # "License"); you may...
run_analysis = function() { #Get data from Internet filename = "dataset.zip" if(file.exists(filename)){ file.remove(filename) } download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", ...
/run_analysis.R
no_license
scottoliver/getting-and-cleaning-data
R
false
false
3,423
r
run_analysis = function() { #Get data from Internet filename = "dataset.zip" if(file.exists(filename)){ file.remove(filename) } download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", ...
# Program name: Results manipulation.R # Created: 11/7/18 # Last edit: 11/7/18 # Author: Eleanor Hayes-Larson ##The purpose of this program is to load the results of the simulations from the Run Simulations.R program # and use datasets to supplement existing results #Install packages needed for code to run library(g...
/Additional results manipulations.R
no_license
ehayeslarson/Time-sims
R
false
false
21,106
r
# Program name: Results manipulation.R # Created: 11/7/18 # Last edit: 11/7/18 # Author: Eleanor Hayes-Larson ##The purpose of this program is to load the results of the simulations from the Run Simulations.R program # and use datasets to supplement existing results #Install packages needed for code to run library(g...
\name{Asthma2} \alias{Asthma2} \docType{data} \title{ Testing effect of treatment on milk induced Eosinophilia in mice } \description{ Milk increases Eosinophil count. Abnormal increase in blood Eosinophils causes narrowing of airways. Curcuma longa is expected to reduce impact of milk. } \usage{data(Asthma2)} \format{...
/man/Asthma2.Rd
no_license
richierocks/gpk
R
false
false
927
rd
\name{Asthma2} \alias{Asthma2} \docType{data} \title{ Testing effect of treatment on milk induced Eosinophilia in mice } \description{ Milk increases Eosinophil count. Abnormal increase in blood Eosinophils causes narrowing of airways. Curcuma longa is expected to reduce impact of milk. } \usage{data(Asthma2)} \format{...
# Function that allows to light the graph when an event occurs: # arrows are in yellow to show perturbations # take event argument, edges and network # This function is then called by flux_lighting # to update edges at the same time arrow_lighting <- function(events, edges, network) { if (network == "network_Ca") { ...
/inst/virtual_patient_simulator/bs4/model_utils.R
no_license
DivadNojnarg/CaPO4Sim
R
false
false
31,551
r
# Function that allows to light the graph when an event occurs: # arrows are in yellow to show perturbations # take event argument, edges and network # This function is then called by flux_lighting # to update edges at the same time arrow_lighting <- function(events, edges, network) { if (network == "network_Ca") { ...
rm(list = ls()) library(ggplot2) library(tictoc) library(debiasedhmc) library(doParallel) library(doRNG) registerDoParallel(cores = detectCores()-2) setmytheme() set.seed(1) # scaling of MALA on standard Normal target in arbitrary dimension # initialize chains from the target (i.e. at equilibrium, i.e. no burn-in) rin...
/inst/scalingdimension/scaling.mala.meetings.R
no_license
pierrejacob/debiasedhmc
R
false
false
8,547
r
rm(list = ls()) library(ggplot2) library(tictoc) library(debiasedhmc) library(doParallel) library(doRNG) registerDoParallel(cores = detectCores()-2) setmytheme() set.seed(1) # scaling of MALA on standard Normal target in arbitrary dimension # initialize chains from the target (i.e. at equilibrium, i.e. no burn-in) rin...
library(monmlp) library(caret) setwd("~/Documents/Models/variant-filtering") set.seed(123) # here I fix the seed of the random generator to have the same random numbers if re-run ###### functions ##### data_summary <- function(x) { m <- median(x) ymin <- as.numeric(quantile(x)[2]) ymax <- as.numeric(quantile(x...
/MLP.r
permissive
tdelhomme/variant-filtering-kidney2Hits
R
false
false
4,282
r
library(monmlp) library(caret) setwd("~/Documents/Models/variant-filtering") set.seed(123) # here I fix the seed of the random generator to have the same random numbers if re-run ###### functions ##### data_summary <- function(x) { m <- median(x) ymin <- as.numeric(quantile(x)[2]) ymax <- as.numeric(quantile(x...
#Download file onto workspace, then run this code new <- read.table('./household_power_consumption.txt',sep=';',header=TRUE,nrows=70000) new[,1] <- as.character(new[,1]) new[,2] <- as.character(new[,2]) for(i in 3:(length(new[1,])-1)){ new[,i] <- as.numeric(as.character(new[,i])) } newer <- new[new$Date == '2/2/2007'...
/plot1.R
no_license
swordguyman/ExData_Plotting1
R
false
false
729
r
#Download file onto workspace, then run this code new <- read.table('./household_power_consumption.txt',sep=';',header=TRUE,nrows=70000) new[,1] <- as.character(new[,1]) new[,2] <- as.character(new[,2]) for(i in 3:(length(new[1,])-1)){ new[,i] <- as.numeric(as.character(new[,i])) } newer <- new[new$Date == '2/2/2007'...
getTrimmedSeqs <- function(qualityThreshold, badQuality, qualityWindow, primer, ltrbit, largeLTRFrag, linker, linker_common, mingDNA, read1, read2, alias, vectorSeq){ ##### Load libraries ##### library("hiReadsProcessor") library("ShortRead") stats <- ...
/intSiteLogic.R
no_license
cnobles/intSiteCaller
R
false
false
20,305
r
getTrimmedSeqs <- function(qualityThreshold, badQuality, qualityWindow, primer, ltrbit, largeLTRFrag, linker, linker_common, mingDNA, read1, read2, alias, vectorSeq){ ##### Load libraries ##### library("hiReadsProcessor") library("ShortRead") stats <- ...
filename <- "household_power_consumption.txt" electric_data <- read.table(filename, skip = 1, sep=";", na.strings = "?", colClasses = c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"), col.names = c("Date","Time","Glob...
/plot1.R
no_license
brianbaquiran/exdata
R
false
false
2,525
r
filename <- "household_power_consumption.txt" electric_data <- read.table(filename, skip = 1, sep=";", na.strings = "?", colClasses = c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"), col.names = c("Date","Time","Glob...
#Load Principle libraries library(dplyr) library(ggplot2) library(scales) library(data.table) rfilename <- "exdata_data_NEI_data.zip" # Checking if file exists. if (!file.exists(rfilename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(fileURL, rfilename) } # C...
/plot6.R
no_license
wegm00/Exploratory_DA_Proj2
R
false
false
1,434
r
#Load Principle libraries library(dplyr) library(ggplot2) library(scales) library(data.table) rfilename <- "exdata_data_NEI_data.zip" # Checking if file exists. if (!file.exists(rfilename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(fileURL, rfilename) } # C...
landscape.kill.locs <- function(l,locs) { for (i in 1:dim(locs)[1]) { kvec=!((locs[i,1]<l$individuals[,4])&(locs[i,3]>l$individuals[,4])& (locs[i,2]<l$individuals[,5])&(locs[i,4]>l$individuals[,5])) l$individuals <- l$individuals[kvec,] } l } landscape.gridlocs <- f...
/inst/examples/helpers.R
no_license
Becheler/kernelPop2
R
false
false
4,201
r
landscape.kill.locs <- function(l,locs) { for (i in 1:dim(locs)[1]) { kvec=!((locs[i,1]<l$individuals[,4])&(locs[i,3]>l$individuals[,4])& (locs[i,2]<l$individuals[,5])&(locs[i,4]>l$individuals[,5])) l$individuals <- l$individuals[kvec,] } l } landscape.gridlocs <- f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen_friedman.R \name{gen_friedman} \alias{gen_friedman} \title{Friedman benchmark data} \usage{ gen_friedman( n_samples = 100, n_features = 10, n_bins = NULL, sigma = 0.1, seed = NULL ) } \arguments{ \item{n_samples}{Integer specify...
/man/gen_friedman.Rd
no_license
koalaverse/vip
R
false
true
1,495
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen_friedman.R \name{gen_friedman} \alias{gen_friedman} \title{Friedman benchmark data} \usage{ gen_friedman( n_samples = 100, n_features = 10, n_bins = NULL, sigma = 0.1, seed = NULL ) } \arguments{ \item{n_samples}{Integer specify...
library(shiny) library(readr) library(dplyr) library(stringr) library(ggplot2) library(tidyr) library(reshape2) library(plotly) library(shinyWidgets) library(viridis) library(shinyjs) m1 <- read_csv("imfoAppMassProfiles.csv") mass <- m1 %>% mutate(`Umbrella Disposition` = ifelse(disposition %in% "landfilling", "Dis...
/Development/Plot building.R
no_license
annawit/IMFOv5_0
R
false
false
7,866
r
library(shiny) library(readr) library(dplyr) library(stringr) library(ggplot2) library(tidyr) library(reshape2) library(plotly) library(shinyWidgets) library(viridis) library(shinyjs) m1 <- read_csv("imfoAppMassProfiles.csv") mass <- m1 %>% mutate(`Umbrella Disposition` = ifelse(disposition %in% "landfilling", "Dis...
# 4. faza: Analiza podatkov # Število skupin n <- 5 skupine <- hclust(dist(scale(drzave$BDPpc))) %>% cutree(n)
/analiza/analiza.r
permissive
AnzeMarinko/APPR-2017
R
false
false
114
r
# 4. faza: Analiza podatkov # Število skupin n <- 5 skupine <- hclust(dist(scale(drzave$BDPpc))) %>% cutree(n)
\name{rym_get_goals} \alias{rym_get_goals} \title{ List of goals } \description{ Returns information about the purpose of the yandex metrica counter. } \usage{ rym_get_goals(counter, login = NULL, token.path = getwd()) } \arguments{ \item{counter}{Yandex Metrika counter ID} \item{login}{character, ...
/man/rym_get_goals.Rd
no_license
grkhr/rym
R
false
false
888
rd
\name{rym_get_goals} \alias{rym_get_goals} \title{ List of goals } \description{ Returns information about the purpose of the yandex metrica counter. } \usage{ rym_get_goals(counter, login = NULL, token.path = getwd()) } \arguments{ \item{counter}{Yandex Metrika counter ID} \item{login}{character, ...
require(pwr) ### bring in camera data cam <- read.csv("./data/pace_lai_through_0604.csv") cam$date <- as.Date(cam$date) # the camera date has been changed to match the drone date closest # camera date 2018-05-10 has been changed to 2018-05-07 # camera date 2018-06-06 has been changed to 2018-06-04 # remove shitty col...
/011_camera_data.R
no_license
atkinsjeff/pace_estate
R
false
false
3,672
r
require(pwr) ### bring in camera data cam <- read.csv("./data/pace_lai_through_0604.csv") cam$date <- as.Date(cam$date) # the camera date has been changed to match the drone date closest # camera date 2018-05-10 has been changed to 2018-05-07 # camera date 2018-06-06 has been changed to 2018-06-04 # remove shitty col...
\name{chadd} \alias{chadd} \title{Add elements to a chplot} \description{ \code{chadd} is a function that adds any further elements to a plot produced with the function \code{chplot}. } \usage{ chadd(param,pos,add.fun,...) } \arguments{ \item{param}{the parameters specifying the plotting regions. As obtai...
/man/chadd.Rd
no_license
cran/chplot
R
false
false
1,277
rd
\name{chadd} \alias{chadd} \title{Add elements to a chplot} \description{ \code{chadd} is a function that adds any further elements to a plot produced with the function \code{chplot}. } \usage{ chadd(param,pos,add.fun,...) } \arguments{ \item{param}{the parameters specifying the plotting regions. As obtai...
#' @title Add RGB product #' @description Modal dialog to define an RGB image. #' @param s2_bands 2-length list (one for TOA, one for BOA), #' each element being a list of S2 bands, as defined in [s2_gui]. #' @author Luigi Ranghetti, phD (2019) #' @references L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (202...
/R/add_rgb_image.R
no_license
cran/sen2r
R
false
false
3,532
r
#' @title Add RGB product #' @description Modal dialog to define an RGB image. #' @param s2_bands 2-length list (one for TOA, one for BOA), #' each element being a list of S2 bands, as defined in [s2_gui]. #' @author Luigi Ranghetti, phD (2019) #' @references L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (202...
library (ggplot2) file <- paste (getwd(), "objects", "cum.1999.2012.csv", sep = "/") cum <- read.csv (file, sep = ",", header = T, as.is = T) grad <- cum[cum$Year == "2012", c(2,3,8)] plot (density(grad$Diplo.KDE)) a <- grad[, rev(sort(grad$Diplo.KDE))] a <- grad[grad$Diplo.KDE, ] p <- ggplot(grad, aes(Diplo.KDE))...
/Diploma Comparison.R
no_license
RobWiederstein/Ky-Grad
R
false
false
1,067
r
library (ggplot2) file <- paste (getwd(), "objects", "cum.1999.2012.csv", sep = "/") cum <- read.csv (file, sep = ",", header = T, as.is = T) grad <- cum[cum$Year == "2012", c(2,3,8)] plot (density(grad$Diplo.KDE)) a <- grad[, rev(sort(grad$Diplo.KDE))] a <- grad[grad$Diplo.KDE, ] p <- ggplot(grad, aes(Diplo.KDE))...
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2277395311739e+146, 4.12396251261199e-221, 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), .Dim = c(5L, 7L))) result <- do.call(multivariance::fastdist,testlist) str(result)
/multivariance/inst/testfiles/fastdist/AFL_fastdist/fastdist_valgrind_files/1613097185-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
302
r
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2277395311739e+146, 4.12396251261199e-221, 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), .Dim = c(5L, 7L))) result <- do.call(multivariance::fastdist,testlist) str(result)
#' Mapping ensembl or entrez ids to symbols #' #' @docType data "id_mapper" #' Common manual labelling #' #' @docType data "labels" #' Metadata on error reasons #' #' @docType data "error_reasons" #' Metadata on topology inference types #' #' @docType data "topinf_types" #' Metadata on prior types #' #' @docType da...
/package/R/data.R
permissive
dynverse/dynbenchmark
R
false
false
769
r
#' Mapping ensembl or entrez ids to symbols #' #' @docType data "id_mapper" #' Common manual labelling #' #' @docType data "labels" #' Metadata on error reasons #' #' @docType data "error_reasons" #' Metadata on topology inference types #' #' @docType data "topinf_types" #' Metadata on prior types #' #' @docType da...
#' Run Benjamini-Hochberg procedure #' #' Runs the original Benjamini-Hochberg procedure. #' #' @param X A nxp design matrix. #' @param y A vector of n responses. #' @param fdr The desired false discovery rate. #' #' @return A list containing: #' \item{X}{n-by-p design matrix.} #' \item{y}{vector of observed response...
/R/run_BHq_base.R
no_license
svteichman/prelim.knockoffs
R
false
false
1,447
r
#' Run Benjamini-Hochberg procedure #' #' Runs the original Benjamini-Hochberg procedure. #' #' @param X A nxp design matrix. #' @param y A vector of n responses. #' @param fdr The desired false discovery rate. #' #' @return A list containing: #' \item{X}{n-by-p design matrix.} #' \item{y}{vector of observed response...
sink("diagnostics/lmer.txt") library(lme4) library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv, dbname="hockey") query <- dbSendQuery(con, " select r.game_id, r.year, r.field as field, r.team_id as team, r.opponent_id as opponent, r.team_score as gs, r.game_length as status, (((r.game_date-f.base...
/href/sos/lmer.R
permissive
wreing/hockey_fork
R
false
false
2,532
r
sink("diagnostics/lmer.txt") library(lme4) library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv, dbname="hockey") query <- dbSendQuery(con, " select r.game_id, r.year, r.field as field, r.team_id as team, r.opponent_id as opponent, r.team_score as gs, r.game_length as status, (((r.game_date-f.base...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/age_ldv.R \name{age_ldv} \alias{age_ldv} \title{Returns amount of vehicles at each age} \usage{ age_ldv(x, name, a = 1.698, b = -0.2, agemin = 1, agemax = 50, k = 1, bystreet = F) } \arguments{ \item{x}{numerical vector of vehicles} \item{...
/man/age_ldv.Rd
no_license
edzer/vein
R
false
true
958
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/age_ldv.R \name{age_ldv} \alias{age_ldv} \title{Returns amount of vehicles at each age} \usage{ age_ldv(x, name, a = 1.698, b = -0.2, agemin = 1, agemax = 50, k = 1, bystreet = F) } \arguments{ \item{x}{numerical vector of vehicles} \item{...
## Functions t0 cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { m<- NULL set<- function(y){ x<<- y m<<- NULL } get<- funct...
/cachematrix.R
no_license
zeaditya/ProgrammingAssignment2
R
false
false
925
r
## Functions t0 cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { m<- NULL set<- function(y){ x<<- y m<<- NULL } get<- funct...
### Read source and create processed data ---- source("~/Google Drive/Skola/SRC/Thesis/Code/Scripts/flex_crops_functions.R") # source("/Users/robinlindstrom/Google Drive/Skola/SRC/Thesis/Code/Scripts/read_trade_data.R") # Read the data----------------- base_path = "~/Google Drive/Skola/SRC/Thesis/Code/Scripts/output/...
/Scripts/crop_import_value_analysis.R
no_license
hansronald/flex-crops
R
false
false
6,650
r
### Read source and create processed data ---- source("~/Google Drive/Skola/SRC/Thesis/Code/Scripts/flex_crops_functions.R") # source("/Users/robinlindstrom/Google Drive/Skola/SRC/Thesis/Code/Scripts/read_trade_data.R") # Read the data----------------- base_path = "~/Google Drive/Skola/SRC/Thesis/Code/Scripts/output/...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mdd.R \name{estimate_mdd_ss_1} \alias{estimate_mdd_ss_1} \alias{estimate_mdd_ss_2} \title{Estimate marginal data density in steady-state MF-BVAR} \usage{ estimate_mdd_ss_1(mfbvar_obj) estimate_mdd_ss_2(mfbvar_obj, p_trunc) } \arguments{ \ite...
/man/estimate_mdd_ss_1.Rd
no_license
mmkuang/mfbvar
R
false
true
1,572
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mdd.R \name{estimate_mdd_ss_1} \alias{estimate_mdd_ss_1} \alias{estimate_mdd_ss_2} \title{Estimate marginal data density in steady-state MF-BVAR} \usage{ estimate_mdd_ss_1(mfbvar_obj) estimate_mdd_ss_2(mfbvar_obj, p_trunc) } \arguments{ \ite...
library(quantmod) library(tseries) library(timeSeries) library(forecast) library(xts) library(readr) library(ggplot2) data_dir = '../data/' data_name= 'DAX30' raw_data <- read_csv(paste0(data_dir, data_name, '.csv'), col_names=TRUE) tsprice <- xts(x=raw_data$Open, order.by = as.Date(raw_data$Date,"%m/%d/%Y"), frequenc...
/code/stock_data_exploration_DAX30.R
no_license
jerry-shijieli/StockPrediction
R
false
false
1,886
r
library(quantmod) library(tseries) library(timeSeries) library(forecast) library(xts) library(readr) library(ggplot2) data_dir = '../data/' data_name= 'DAX30' raw_data <- read_csv(paste0(data_dir, data_name, '.csv'), col_names=TRUE) tsprice <- xts(x=raw_data$Open, order.by = as.Date(raw_data$Date,"%m/%d/%Y"), frequenc...
library(ggplot2) # Basic barplot d = read.csv("io-500.csv") g= ggplot(data=d, aes(x=list, y=number)) + geom_bar(stat="identity", fill="red3") + xlab("List") + ylab("Number of entries in the full list") ggsave("io-500-history.pdf", width=4, height=4)
/isc19-vi4io-poster/io-500-plot.R
no_license
JulianKunkel/hpc-iodc
R
false
false
251
r
library(ggplot2) # Basic barplot d = read.csv("io-500.csv") g= ggplot(data=d, aes(x=list, y=number)) + geom_bar(stat="identity", fill="red3") + xlab("List") + ylab("Number of entries in the full list") ggsave("io-500-history.pdf", width=4, height=4)
#' Bayesian optimization of model parameters. #' #' [tune_bayes()] uses models to generate new candidate tuning parameter #' combinations based on previous results. #' #' @inheritParams tune_grid #' @param metrics A [yardstick::metric_set()] object containing information on how #' models will be evaluated for performa...
/R/tune_Bayes.R
permissive
etiennebr/tune
R
false
false
21,283
r
#' Bayesian optimization of model parameters. #' #' [tune_bayes()] uses models to generate new candidate tuning parameter #' combinations based on previous results. #' #' @inheritParams tune_grid #' @param metrics A [yardstick::metric_set()] object containing information on how #' models will be evaluated for performa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Ref_Draft_Scraper.R \name{Ref_Draft_Scraper} \alias{Ref_Draft_Scraper} \title{HockeyRef Draft URL Scraper} \usage{ Ref_Draft_Scraper(website, ages = c(17, 50), playerStats = "all", goalieStats = "all", Season = "R", sepTeam = F) } \argument...
/man/Ref_Draft_Scraper.Rd
no_license
palmerimatthew/HockeyRefScraper
R
false
true
1,660
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Ref_Draft_Scraper.R \name{Ref_Draft_Scraper} \alias{Ref_Draft_Scraper} \title{HockeyRef Draft URL Scraper} \usage{ Ref_Draft_Scraper(website, ages = c(17, 50), playerStats = "all", goalieStats = "all", Season = "R", sepTeam = F) } \argument...
library(data.table) library(stringr) in_dir='../processed_data/response_eQTL/residual/' glu=fread(sprintf('%s/glucose_residual.tsv',in_dir)) gal=fread(sprintf('%s/galactose_residual.tsv',in_dir)) stopifnot(dim(glu)==dim(gal)) stopifnot(all(glu$gene_id==gal$gene_id)) diff=glu[,2:ncol(glu)]-gal[,2:ncol(gal)] setnames(...
/response_eQTL/lr_difference.R
no_license
boxiangliu/rpe
R
false
false
458
r
library(data.table) library(stringr) in_dir='../processed_data/response_eQTL/residual/' glu=fread(sprintf('%s/glucose_residual.tsv',in_dir)) gal=fread(sprintf('%s/galactose_residual.tsv',in_dir)) stopifnot(dim(glu)==dim(gal)) stopifnot(all(glu$gene_id==gal$gene_id)) diff=glu[,2:ncol(glu)]-gal[,2:ncol(gal)] setnames(...
bob <- function(input) { input <- trimws(input) if (input == "") return("Fine. Be that way!") asking <- endsWith(input, "?") shouting <- grepl("[[:alpha:]]", input) && ! grepl("[[:lower:]]", input) if (shouting && asking) "Calm down, I know what I'm doing!" else if (shouting) "Whoa, chi...
/r/bob/bob.R
no_license
glennj/exercism.io
R
false
false
403
r
bob <- function(input) { input <- trimws(input) if (input == "") return("Fine. Be that way!") asking <- endsWith(input, "?") shouting <- grepl("[[:alpha:]]", input) && ! grepl("[[:lower:]]", input) if (shouting && asking) "Calm down, I know what I'm doing!" else if (shouting) "Whoa, chi...
#' @title get_eurostat #' @description Download dataset from the Eurostat database #' (\url{ec.europa.eu/eurostat}). #' @param id A code name for the dataset of interest. #' See \code{\link{search_eurostat}} or details for how to get code. #' @param time_format a string giving a type of the conversion of the time #' ...
/R/get_eurostat.R
no_license
YohanRobinson/eurostat
R
false
false
5,385
r
#' @title get_eurostat #' @description Download dataset from the Eurostat database #' (\url{ec.europa.eu/eurostat}). #' @param id A code name for the dataset of interest. #' See \code{\link{search_eurostat}} or details for how to get code. #' @param time_format a string giving a type of the conversion of the time #' ...
input = read.table('../household_power_consumption.txt', sep=';', stringsAsFactor=FALSE, na.strings='?', header=TRUE) library(dplyr) my_df = tbl_df(input) plot_days = filter(my_df,Date=='1/2/2007'|Date=='2/2/2007') plot_days <- mutate(plot_days, RDate = as.POSIXct(Date), abbreviate = TRUE) png(file = "plot3.png", widt...
/plot3.R
no_license
runningt/ExData_Plotting1
R
false
false
841
r
input = read.table('../household_power_consumption.txt', sep=';', stringsAsFactor=FALSE, na.strings='?', header=TRUE) library(dplyr) my_df = tbl_df(input) plot_days = filter(my_df,Date=='1/2/2007'|Date=='2/2/2007') plot_days <- mutate(plot_days, RDate = as.POSIXct(Date), abbreviate = TRUE) png(file = "plot3.png", widt...
#' Report Statistics of adp or adv Velocities #' #' Report statistics of ADP or ADV velocities, such as means and variance #' ellipses. #' #' @param x an \code{adp} or \code{adv} object, i.e. one inheriting from #' \code{\link{adp-class}} or \code{\link{adv-class}}. #' @param control An optional \code{\link{list}} used...
/pkgs/oce/R/ad.R
no_license
vaguiar/EDAV_Project_2017
R
false
false
5,915
r
#' Report Statistics of adp or adv Velocities #' #' Report statistics of ADP or ADV velocities, such as means and variance #' ellipses. #' #' @param x an \code{adp} or \code{adv} object, i.e. one inheriting from #' \code{\link{adp-class}} or \code{\link{adv-class}}. #' @param control An optional \code{\link{list}} used...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/color_conversion.R \name{tritan} \alias{tritan} \title{Convert colors using the tritan model of colorblindness} \usage{ tritan(colors, sev = 1) } \arguments{ \item{colors}{Vector of colors to convert} \item{sev}{Severity of the co...
/man/tritan.Rd
permissive
googed/colorblindr
R
false
true
444
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/color_conversion.R \name{tritan} \alias{tritan} \title{Convert colors using the tritan model of colorblindness} \usage{ tritan(colors, sev = 1) } \arguments{ \item{colors}{Vector of colors to convert} \item{sev}{Severity of the co...
library(IsoriX) ### Name: GNIPDataEUagg ### Title: Hydrogen delta values in precipitation water (aggregated per ### location) ### Aliases: GNIPDataEUagg GNIPDataALLagg ### Keywords: datasets ### ** Examples head(GNIPDataALLagg) dim(GNIPDataALLagg) head(GNIPDataEUagg) dim(GNIPDataEUagg)
/data/genthat_extracted_code/IsoriX/examples/GNIPDataEUagg.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
298
r
library(IsoriX) ### Name: GNIPDataEUagg ### Title: Hydrogen delta values in precipitation water (aggregated per ### location) ### Aliases: GNIPDataEUagg GNIPDataALLagg ### Keywords: datasets ### ** Examples head(GNIPDataALLagg) dim(GNIPDataALLagg) head(GNIPDataEUagg) dim(GNIPDataEUagg)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigateway_operations.R \name{apigateway_delete_method_response} \alias{apigateway_delete_method_response} \title{Deletes an existing MethodResponse resource} \usage{ apigateway_delete_method_response( restApiId, resourceId, httpMethod,...
/cran/paws.networking/man/apigateway_delete_method_response.Rd
permissive
paws-r/paws
R
false
true
860
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigateway_operations.R \name{apigateway_delete_method_response} \alias{apigateway_delete_method_response} \title{Deletes an existing MethodResponse resource} \usage{ apigateway_delete_method_response( restApiId, resourceId, httpMethod,...
# Carregando pacotes ---- rm(list=ls()) require(shiny) library(bayesbr) library(fdrtool) require(highcharter) library(DT) library(coda) require(shinydashboard) require(dashboardthemes) require(shinyalert) require(shinyjs) require(openxlsx) require(tidyverse) #--------------------------------------------...
/inst/shiny/shiny_bayesbr/app.R
no_license
cran/bayesbr
R
false
false
3,798
r
# Carregando pacotes ---- rm(list=ls()) require(shiny) library(bayesbr) library(fdrtool) require(highcharter) library(DT) library(coda) require(shinydashboard) require(dashboardthemes) require(shinyalert) require(shinyjs) require(openxlsx) require(tidyverse) #--------------------------------------------...
## find the temporal position of a rate shift using ML ## written by Liam J. Revell 2013, 2014, 2015, 2020, 2023 rateshift<-function(tree,x,nrates=1,niter=10,method="ML",...){ if(!inherits(tree,"phylo")) stop("tree should be an object of class \"phylo\".") if(hasArg(tol)) tol<-list(...)$tol else tol<-1e-8 i...
/R/rateshift.R
no_license
cran/phytools
R
false
false
11,071
r
## find the temporal position of a rate shift using ML ## written by Liam J. Revell 2013, 2014, 2015, 2020, 2023 rateshift<-function(tree,x,nrates=1,niter=10,method="ML",...){ if(!inherits(tree,"phylo")) stop("tree should be an object of class \"phylo\".") if(hasArg(tol)) tol<-list(...)$tol else tol<-1e-8 i...
####################################### # Growth function # # Compatible w/ new LIST structure # # Compatible w/ SAV component # # # # INPUTS: # # x1... LIST[[i]]$SAVmatrix # # x2... LIST[[i+1]]$SAVmatrix # ...
/old FUNCTIONS/GROW_SAV2.R
no_license
mccannecology/model
R
false
false
1,305
r
####################################### # Growth function # # Compatible w/ new LIST structure # # Compatible w/ SAV component # # # # INPUTS: # # x1... LIST[[i]]$SAVmatrix # # x2... LIST[[i+1]]$SAVmatrix # ...
# testStationSnap.R # test harness for StationSnap rm(list=ls()) source("initStationSnap.R") # configure evaluation start dateTime yr <- "14" mo <- "04" day <- "01" require(lubridate) start <- parse_date_time(paste("20",yr,"-",mo,"-",day,sep=""), "ymd") initStationSnap(start) repeat { snap <- nextStationSnap(...
/testStationSnap.R
no_license
gsimpso4/StationDataLoader
R
false
false
660
r
# testStationSnap.R # test harness for StationSnap rm(list=ls()) source("initStationSnap.R") # configure evaluation start dateTime yr <- "14" mo <- "04" day <- "01" require(lubridate) start <- parse_date_time(paste("20",yr,"-",mo,"-",day,sep=""), "ymd") initStationSnap(start) repeat { snap <- nextStationSnap(...
setwd("/Users/Divye/Downloads/DM_Project/") teamstatsPM<-read.csv('Team_Statistics_per_Match.csv',stringsAsFactors = F) teamstatsPM$X<-NULL matchSummary<-read.csv('Match_Summary.csv',stringsAsFactors = F) matchSummary$X<-NULL # Joining home and away stats per match library(dplyr) home<-teamstatsPM[teamstatsPM$Qualif...
/CSGOMWAnalysis_v0.1.R
no_license
divyeg/csgo_matchwinners
R
false
false
9,789
r
setwd("/Users/Divye/Downloads/DM_Project/") teamstatsPM<-read.csv('Team_Statistics_per_Match.csv',stringsAsFactors = F) teamstatsPM$X<-NULL matchSummary<-read.csv('Match_Summary.csv',stringsAsFactors = F) matchSummary$X<-NULL # Joining home and away stats per match library(dplyr) home<-teamstatsPM[teamstatsPM$Qualif...
# Copyright 2016 Joshua R. Davis # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
/geologyGeometry/library/rotUniform.R
permissive
nicolasmroberts/InternalStructureMtEdgar_PR2021
R
false
false
1,641
r
# Copyright 2016 Joshua R. Davis # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
################## ## ## Course: Exploratory Data Analysis ## ## Week 1 Assignement ## ## Plot 3 ## By Jorge Sauma ################## # Load data. It's assumed that the file is in the working directory power_data<-read.table("household_power_consumption.txt", sep=";", header=TRUE) #Subset data and remove the full tab...
/Plot3.R
no_license
JorgeSauma/ExData_Plotting1
R
false
false
1,283
r
################## ## ## Course: Exploratory Data Analysis ## ## Week 1 Assignement ## ## Plot 3 ## By Jorge Sauma ################## # Load data. It's assumed that the file is in the working directory power_data<-read.table("household_power_consumption.txt", sep=";", header=TRUE) #Subset data and remove the full tab...
summary_by_age_cropped <- d_cropped %>% replace_na(list(hand_detected = FALSE, face_detected = FALSE, num_people = 0)) %>% # filter(num_people < 2) %>% mutate(age_day_bin = cut(age_days, bins, labels=round(bin_starts/30,1))) %>% mutate(age_day_bin = as.numeric(as.character(age_day_bin))) %>% group_by(age_day...
/analysis/_old_analysis/one_person_frames_check.R
no_license
brialorelle/headcam-algo
R
false
false
1,700
r
summary_by_age_cropped <- d_cropped %>% replace_na(list(hand_detected = FALSE, face_detected = FALSE, num_people = 0)) %>% # filter(num_people < 2) %>% mutate(age_day_bin = cut(age_days, bins, labels=round(bin_starts/30,1))) %>% mutate(age_day_bin = as.numeric(as.character(age_day_bin))) %>% group_by(age_day...
glmGeneric <- function(X, Y=NULL, link, lambda, parallel=FALSE, nCpus = 4, standardize=TRUE){ if(is.null(Y)){ Z <- X p <- nrow(Z) q <- 0 } if(!is.null(Y)){ if(ncol(X) == ncol(Y)){ Z <- rbind(X, Y) p = nrow(X) q = nrow(Y) } } if(length(lambda)>1){ #ghat = array(0,dim=c(nrow(X),nrow(X),leng...
/PGMs/Package_Trial/T3/expMRF/R/glmGeneric.R
no_license
zhandong/XFam
R
false
false
3,431
r
glmGeneric <- function(X, Y=NULL, link, lambda, parallel=FALSE, nCpus = 4, standardize=TRUE){ if(is.null(Y)){ Z <- X p <- nrow(Z) q <- 0 } if(!is.null(Y)){ if(ncol(X) == ncol(Y)){ Z <- rbind(X, Y) p = nrow(X) q = nrow(Y) } } if(length(lambda)>1){ #ghat = array(0,dim=c(nrow(X),nrow(X),leng...
#' @export #' @importFrom zip zip #' @title compress a folder #' @description compress a folder to a target file. The #' function returns the complete path to target file. #' @param folder folder to compress #' @param target path of the archive to create pack_folder <- function( folder, target ){ target <- absolute_...
/R/pack_folder.R
no_license
Kill3rbee/officer
R
false
false
2,910
r
#' @export #' @importFrom zip zip #' @title compress a folder #' @description compress a folder to a target file. The #' function returns the complete path to target file. #' @param folder folder to compress #' @param target path of the archive to create pack_folder <- function( folder, target ){ target <- absolute_...
rm(list=ls()) library(XML) library(ggplot2) library(reshape2) library(scales) #READ IN STATE CHANGES FILE (i.e. START AND END TIME FOR EACH ACTIVITY) states=data.frame(read.table("states_3.tsv",header=T,sep='\t',stringsAsFactors=FALSE,row.names=1)) states$startTime=strptime(as.character(states$startTime),"%Y%m%d%H%M%S"...
/anna_code/device_validation/full_parse_hr_subject3.R
no_license
AshleyLab/myheartcounts
R
false
false
40,645
r
rm(list=ls()) library(XML) library(ggplot2) library(reshape2) library(scales) #READ IN STATE CHANGES FILE (i.e. START AND END TIME FOR EACH ACTIVITY) states=data.frame(read.table("states_3.tsv",header=T,sep='\t',stringsAsFactors=FALSE,row.names=1)) states$startTime=strptime(as.character(states$startTime),"%Y%m%d%H%M%S"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rabbitpackage.R \name{base_freq} \alias{base_freq} \title{base frequency} \usage{ base_freq(fasta) } \arguments{ \item{fasta}{} } \value{ } \description{ base frequency } \examples{ x<-read_fas("flu_seq.fas") y<-base_freq(x) }
/rabbitpackage/man/base_freq.Rd
no_license
PPeachi/rpackage
R
false
true
306
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rabbitpackage.R \name{base_freq} \alias{base_freq} \title{base frequency} \usage{ base_freq(fasta) } \arguments{ \item{fasta}{} } \value{ } \description{ base frequency } \examples{ x<-read_fas("flu_seq.fas") y<-base_freq(x) }
`design.graeco` <- function (trt1, trt2, serie = 2, seed = 0, kinds = "Super-Duper") { number<-10 if(serie>0) number<-10^serie r <- length(trt1) if (floor(r/2) * 2 == r) { if (r == 6 | r > 13) { cat("not implemented design ", r, "x", r, ", see help(design.graeco)\n") return() } } if (seed == 0) { genera<-r...
/R/design.graeco.R
no_license
velanati/agricolae
R
false
false
3,216
r
`design.graeco` <- function (trt1, trt2, serie = 2, seed = 0, kinds = "Super-Duper") { number<-10 if(serie>0) number<-10^serie r <- length(trt1) if (floor(r/2) * 2 == r) { if (r == 6 | r > 13) { cat("not implemented design ", r, "x", r, ", see help(design.graeco)\n") return() } } if (seed == 0) { genera<-r...
### ### Problem Set 03 ### Taishi Muraoka ### February 25 ### ## ## 1. Let's Make a Deal with S3 ## ## ## a. define a new class, door ## # This function asks you to select Door from 1, 2, or 3 # and stores the number you select as a "door" object. # This function does not take any argument, # and whatever you ent...
/Muraoka_ProblemSet03.R
no_license
tmuraoka320/PS3
R
false
false
4,685
r
### ### Problem Set 03 ### Taishi Muraoka ### February 25 ### ## ## 1. Let's Make a Deal with S3 ## ## ## a. define a new class, door ## # This function asks you to select Door from 1, 2, or 3 # and stores the number you select as a "door" object. # This function does not take any argument, # and whatever you ent...
## Negative Binomial distribution ---------------------------------------------- ## Authors: Multivariate Statistical Modelling Group --------------------------- ## Date: June, 04 2020 --------------------------------------------------------- rm(list=ls()) require(MASS) require(mvtnorm) require(TMB) ## Data simulation ...
/AJS_MGLMM_Overdispersed_Count/Code_as_It_Is/03_negbin_bivariate_var_fixed.R
no_license
guilhermeparreira/papers
R
false
false
4,580
r
## Negative Binomial distribution ---------------------------------------------- ## Authors: Multivariate Statistical Modelling Group --------------------------- ## Date: June, 04 2020 --------------------------------------------------------- rm(list=ls()) require(MASS) require(mvtnorm) require(TMB) ## Data simulation ...
\name{MS_tissueFilter} \alias{MS_tissueFilter} \title{Filter network based on tissue expression data} \description{ This function allows filtering a network based on tissue expression data from the Human Protein Atlas, by removing signaling genes that are not detected in the target tissue(s) (reliability = "approved" o...
/man/MS_tissueFilter.Rd
no_license
AndreaRMICL/MetaboSignal
R
false
false
1,868
rd
\name{MS_tissueFilter} \alias{MS_tissueFilter} \title{Filter network based on tissue expression data} \description{ This function allows filtering a network based on tissue expression data from the Human Protein Atlas, by removing signaling genes that are not detected in the target tissue(s) (reliability = "approved" o...
library(wooldridge) ### Name: ezanders ### Title: ezanders ### Aliases: ezanders ### Keywords: datasets ### ** Examples str(ezanders)
/data/genthat_extracted_code/wooldridge/examples/ezanders.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
142
r
library(wooldridge) ### Name: ezanders ### Title: ezanders ### Aliases: ezanders ### Keywords: datasets ### ** Examples str(ezanders)
library(usethis) ### Name: use_rmarkdown_template ### Title: Add an RMarkdown Template ### Aliases: use_rmarkdown_template ### ** Examples ## Not run: ##D use_rmarkdown_template() ## End(Not run)
/data/genthat_extracted_code/usethis/examples/use_rmarkdown_template.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
204
r
library(usethis) ### Name: use_rmarkdown_template ### Title: Add an RMarkdown Template ### Aliases: use_rmarkdown_template ### ** Examples ## Not run: ##D use_rmarkdown_template() ## End(Not run)
#' module_aglu_batch_an_input_xml #' #' Construct XML data structure for \code{an_input.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code{command}: either a vector of required inputs, #' a vector of output names, or (if \code{comm...
/R/zchunk_batch_an_input_xml.R
permissive
rohmin9122/gcam-korea-release
R
false
false
5,921
r
#' module_aglu_batch_an_input_xml #' #' Construct XML data structure for \code{an_input.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code{command}: either a vector of required inputs, #' a vector of output names, or (if \code{comm...
## R User Group Malaysia Bi-Monthly Meetup ## 17th August 2016 ## For more info, visit: http://www.meetup.com/MY-RUserGroup/ ## Title: Handwritten Recognition using Deep Learning with R ## Presenter: Poo Kuan Hoong #load the training dataset with 42000 rows and 785 columns # # h2o.saveModel(object, dir = "", ...
/ocr.R
no_license
random-alex/OCR_excel
R
false
false
2,817
r
## R User Group Malaysia Bi-Monthly Meetup ## 17th August 2016 ## For more info, visit: http://www.meetup.com/MY-RUserGroup/ ## Title: Handwritten Recognition using Deep Learning with R ## Presenter: Poo Kuan Hoong #load the training dataset with 42000 rows and 785 columns # # h2o.saveModel(object, dir = "", ...
#' Gaussian process with a full power-exponential (Full-Hybrid) correlation structure. #' #' The power-exponential structure is #' \deqn{ R(x_i, x_j)= \exp(\sum_{k=1}^{d} \theta_k (x_{i, k} - x_{j,k})^{\alpha_k}),} #' where \eqn{ 1 \le i, j \le n}, \eqn{\theta_k > 0 } is the sensitivity parameter and #' \eqn{ 1 \le \a...
/R/runBMCMC.power.full.R
no_license
nelsonch/GPflex
R
false
false
6,639
r
#' Gaussian process with a full power-exponential (Full-Hybrid) correlation structure. #' #' The power-exponential structure is #' \deqn{ R(x_i, x_j)= \exp(\sum_{k=1}^{d} \theta_k (x_{i, k} - x_{j,k})^{\alpha_k}),} #' where \eqn{ 1 \le i, j \le n}, \eqn{\theta_k > 0 } is the sensitivity parameter and #' \eqn{ 1 \le \a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_ECx.R \name{extract_ECx} \alias{extract_ECx} \title{extract_ECx} \usage{ extract_ECx( X, ECx.val = 10, precision = 10000, posterior = FALSE, type = "absolute", hormesis.def = "control", xform = NA, x.range = NA, prob...
/man/extract_ECx.Rd
permissive
gerard-ricardo/NEC-estimation
R
false
true
2,078
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_ECx.R \name{extract_ECx} \alias{extract_ECx} \title{extract_ECx} \usage{ extract_ECx( X, ECx.val = 10, precision = 10000, posterior = FALSE, type = "absolute", hormesis.def = "control", xform = NA, x.range = NA, prob...
library(sensR) ### Name: samediffPwr ### Title: Power Analysis for Same-different Experiments ### Aliases: samediffPwr ### Keywords: models ### ** Examples ## Finding the power of a discrimination test with a sensory delta of 2 ## (alternative hypothesis) versus a null hypothesis of delta = 0 with ## a sample of si...
/data/genthat_extracted_code/sensR/examples/samediffPwr.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
471
r
library(sensR) ### Name: samediffPwr ### Title: Power Analysis for Same-different Experiments ### Aliases: samediffPwr ### Keywords: models ### ** Examples ## Finding the power of a discrimination test with a sensory delta of 2 ## (alternative hypothesis) versus a null hypothesis of delta = 0 with ## a sample of si...
context("memo") library(magrittr) library(testthat) # environment used to mark memo execution current.test.env <- function () test.env # memo execution key key.executed <- "executed" ## # Helper to insert expression into function to be executed before the current body. # insert.before <- function (f, expr) { ...
/tests/testthat/testMemo.R
no_license
rwetherall/memofunc
R
false
false
5,061
r
context("memo") library(magrittr) library(testthat) # environment used to mark memo execution current.test.env <- function () test.env # memo execution key key.executed <- "executed" ## # Helper to insert expression into function to be executed before the current body. # insert.before <- function (f, expr) { ...
testlist <- list(A = structure(c(2.31584178476317e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613116579-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
251
r
testlist <- list(A = structure(c(2.31584178476317e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scoringRules_wrappers.R \name{logs} \alias{logs} \title{LogS} \usage{ logs(true_values, predictions) } \arguments{ \item{true_values}{A vector with the true observed values of size n} \item{predictions}{nxN matrix of predictive samples, n (n...
/man/logs.Rd
permissive
nickreich/scoringutils
R
false
true
1,304
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scoringRules_wrappers.R \name{logs} \alias{logs} \title{LogS} \usage{ logs(true_values, predictions) } \arguments{ \item{true_values}{A vector with the true observed values of size n} \item{predictions}{nxN matrix of predictive samples, n (n...
# extractgt devel # library(testthat) #detach(package:vcfR, unload=TRUE) library(vcfR) context("extract.gt functions") # data(vcfR_example) #vcf_file <- system.file("extdata", "pinf_sc1_100_sub.vcf.gz", package = "vcfR") #seq_file <- system.file("extdata", "pinf_sc100.fasta", package = "vcfR") #gff_file <- system.fi...
/tests/testthat/test_3_extract_gt.R
no_license
zhaoxiaohe/vcfR
R
false
false
8,980
r
# extractgt devel # library(testthat) #detach(package:vcfR, unload=TRUE) library(vcfR) context("extract.gt functions") # data(vcfR_example) #vcf_file <- system.file("extdata", "pinf_sc1_100_sub.vcf.gz", package = "vcfR") #seq_file <- system.file("extdata", "pinf_sc100.fasta", package = "vcfR") #gff_file <- system.fi...
source("analysis.init.R") df.preprocessed.orig <- df.preprocessed df <- df.preprocessed <- df.preprocessed.orig knit("pagecounts.Rmd") # --------------------------------- print("Generic summaries") # Markdown # Summary tables tmp <- generate_summary_tables(df.preprocessed, df.orig, output.folder) # ---------------...
/inst/examples/analysis.R
no_license
bhughesshelton/estc-1
R
false
false
1,963
r
source("analysis.init.R") df.preprocessed.orig <- df.preprocessed df <- df.preprocessed <- df.preprocessed.orig knit("pagecounts.Rmd") # --------------------------------- print("Generic summaries") # Markdown # Summary tables tmp <- generate_summary_tables(df.preprocessed, df.orig, output.folder) # ---------------...
#Survival Analysis requires dealing with sensored data. Hospital data. require(survival) head(bladder) ?bladder bladder[100:105,] survObject <- with(bladder[100:105,], Surv(stop,event)) survObject survObject[,1:2] cox1 <- coxph(Surv(stop,event)~rx+number+size+enum,bladder) summary(cox1) plot(survfit(c...
/Survival Analysis.R
no_license
poarnold/R_
R
false
false
678
r
#Survival Analysis requires dealing with sensored data. Hospital data. require(survival) head(bladder) ?bladder bladder[100:105,] survObject <- with(bladder[100:105,], Surv(stop,event)) survObject survObject[,1:2] cox1 <- coxph(Surv(stop,event)~rx+number+size+enum,bladder) summary(cox1) plot(survfit(c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/macie2_operations.R \name{macie2_delete_member} \alias{macie2_delete_member} \title{Deletes the association between an Amazon Macie administrator account and an account} \usage{ macie2_delete_member(id) } \arguments{ \item{id}{[required] The ...
/cran/paws.security.identity/man/macie2_delete_member.Rd
permissive
paws-r/paws
R
false
true
610
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/macie2_operations.R \name{macie2_delete_member} \alias{macie2_delete_member} \title{Deletes the association between an Amazon Macie administrator account and an account} \usage{ macie2_delete_member(id) } \arguments{ \item{id}{[required] The ...
td.sample <- function(tdf,sizes=10,otable="",odatabase="") { if(!is.td.data.frame(tdf)) stop("'tdf' is not a td data frame") obj <- .td.object(attr(tdf,"tableName"),attr(tdf,"database")) exprs <- attr(tdf, "expressions") query <- .td.tdf2sql(tdf, sizes) if(nchar(otable)) { if(obj == oObj...
/R/td.sample.R
no_license
ghuiber/teradataR
R
false
false
852
r
td.sample <- function(tdf,sizes=10,otable="",odatabase="") { if(!is.td.data.frame(tdf)) stop("'tdf' is not a td data frame") obj <- .td.object(attr(tdf,"tableName"),attr(tdf,"database")) exprs <- attr(tdf, "expressions") query <- .td.tdf2sql(tdf, sizes) if(nchar(otable)) { if(obj == oObj...
# Creates or coerces the object of type "numeric"a double-precision vector of the specified length with each # element equal to 0 # Creates a special "vector", which is really a list containing a function to # 1. Set the value of the vector # 2. Get the value of the vector # 3. Set the value of the mean # 4. Get th...
/JHDSS/cacheVectorMean.R
no_license
renelar/flux
R
false
false
1,209
r
# Creates or coerces the object of type "numeric"a double-precision vector of the specified length with each # element equal to 0 # Creates a special "vector", which is really a list containing a function to # 1. Set the value of the vector # 2. Get the value of the vector # 3. Set the value of the mean # 4. Get th...
#' Manage appenders for loggers #' #' Provides functions for adding and removing appenders. #' #' @section Usage: #' # Get the appender for the given logger\cr #' flog.appender(name) \%::\% character : Function\cr #' flog.appender(name='ROOT') #' #' # Set the appender for the given logger\cr #' flog.appender(fn, name...
/data/r/1969ced6e73dcd0fa77a863596c898e5_appender.R
permissive
maxim5/code-inspector
R
false
false
2,947
r
#' Manage appenders for loggers #' #' Provides functions for adding and removing appenders. #' #' @section Usage: #' # Get the appender for the given logger\cr #' flog.appender(name) \%::\% character : Function\cr #' flog.appender(name='ROOT') #' #' # Set the appender for the given logger\cr #' flog.appender(fn, name...
x<-read.table("household_power_consumption.txt", TRUE, ";", na.strings = "?") x<-x[x$Date %in% c("1/2/2007","2/2/2007") ,] DTme<-paste(x$Date,x$Time) DTme<-strptime(DTme,"%d/%m/%Y %H:%M:%S") png("plot4.png", width = 480, height = 480) par(mfrow=c(2,2)) plot(DTme, x$Global_active_power,ylab="global active power",xlab...
/plot4.R
no_license
WargodHernandez/ExData_Plotting1
R
false
false
938
r
x<-read.table("household_power_consumption.txt", TRUE, ";", na.strings = "?") x<-x[x$Date %in% c("1/2/2007","2/2/2007") ,] DTme<-paste(x$Date,x$Time) DTme<-strptime(DTme,"%d/%m/%Y %H:%M:%S") png("plot4.png", width = 480, height = 480) par(mfrow=c(2,2)) plot(DTme, x$Global_active_power,ylab="global active power",xlab...
##' Goodness of Fit ##' ##' An internal function for estimating correlation metrics for cross-validation procedures ##' ##' @author Peter Mahoney ##' @param do the 'test' data set used in cross-validation procedures. ##' @param fits the predicted values derived from a training model with test data as inputs. ##' @p...
/R/gof.R
no_license
ABoVE-AotM/above
R
false
false
2,179
r
##' Goodness of Fit ##' ##' An internal function for estimating correlation metrics for cross-validation procedures ##' ##' @author Peter Mahoney ##' @param do the 'test' data set used in cross-validation procedures. ##' @param fits the predicted values derived from a training model with test data as inputs. ##' @p...
## Getting full dataset data_full <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data_full, subset=(...
/plot4.R
no_license
deba1991/ExData_Plotting1
R
false
false
1,210
r
## Getting full dataset data_full <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data_full, subset=(...
library(tidyverse) ##You should be in the directory where you stored the dataset x_test <- read.delim("./UCI HAR Dataset/test/X_test.txt", header = FALSE, sep = "", dec = ".") y_test <- read.delim("./UCI HAR Dataset/test/Y_test.txt", col.names = c("Activity"), header = FALSE, sep = "") subject_test <- read.table("./U...
/run_analysis.R
no_license
JustinAbbottcs/jhu-class3-project
R
false
false
2,452
r
library(tidyverse) ##You should be in the directory where you stored the dataset x_test <- read.delim("./UCI HAR Dataset/test/X_test.txt", header = FALSE, sep = "", dec = ".") y_test <- read.delim("./UCI HAR Dataset/test/Y_test.txt", col.names = c("Activity"), header = FALSE, sep = "") subject_test <- read.table("./U...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oldestplayer.R \name{oldestplayer} \alias{oldestplayer} \title{A NBA Function} \usage{ oldestplayer(year) } \arguments{ \item{year}{The specific year/season} } \description{ This function returns the oldest player in the NBA data for a given ...
/man/oldestplayer.Rd
no_license
Joe-Jiang96/NBAP
R
false
true
489
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oldestplayer.R \name{oldestplayer} \alias{oldestplayer} \title{A NBA Function} \usage{ oldestplayer(year) } \arguments{ \item{year}{The specific year/season} } \description{ This function returns the oldest player in the NBA data for a given ...
##reading date correctly sourced post on stackoverflow ##https://stackoverflow.com/questions/13022299/specify-custom-date-format-for-colclasses-argument-in-read-table-read-csv library(lubridate) ##download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","hpc.zip") ##unzip("...
/plot1.R
no_license
jimmejames/ExData_Plotting1
R
false
false
1,212
r
##reading date correctly sourced post on stackoverflow ##https://stackoverflow.com/questions/13022299/specify-custom-date-format-for-colclasses-argument-in-read-table-read-csv library(lubridate) ##download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","hpc.zip") ##unzip("...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 8312 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 8300 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 8300 c c Input Parameter (command line, fil...
/code/dcnf-ankit-optimized/Results/PCNF-TRACK-2018/E1/Experiments/ttt_5x5-shape-1-GTTT-1-2-torus-1/ttt_5x5-shape-1-GTTT-1-2-torus-1.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
776
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 8312 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 8300 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 8300 c c Input Parameter (command line, fil...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/util.R \name{woe} \alias{woe} \title{Liczy WoE} \usage{ woe(br) } \arguments{ \item{br}{wartość prawdopodobieństwa.} } \value{ } \description{ Liczy WoE } \author{ Michał Danaj }
/man/woe.Rd
no_license
michaldanaj/MDBinom
R
false
true
262
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/util.R \name{woe} \alias{woe} \title{Liczy WoE} \usage{ woe(br) } \arguments{ \item{br}{wartość prawdopodobieństwa.} } \value{ } \description{ Liczy WoE } \author{ Michał Danaj }
#line plot comparing FST distributions from different simulations. library(ggplot2); library(dplyr) #datasets comparing different generation sizes data_1 <- read.table("~/ms_sims/orig_sim/FST_msSims1.out", header = F) data_2 <- read.table("~/ms_sims/orig_sim/FST_msSims2.out", header = F) data_3 <- read.table("~/ms_si...
/comp_msms_sim_plots.R
no_license
mcadamme/GA_and_GAR
R
false
false
3,963
r
#line plot comparing FST distributions from different simulations. library(ggplot2); library(dplyr) #datasets comparing different generation sizes data_1 <- read.table("~/ms_sims/orig_sim/FST_msSims1.out", header = F) data_2 <- read.table("~/ms_sims/orig_sim/FST_msSims2.out", header = F) data_3 <- read.table("~/ms_si...
#' @title moments #' #' @description Calculate statistical moments of a distribution #' #' @param x numeric vector #' @param plot plot of distribution (TRUE/FALSE) #' #' @return A vector with the following values: #' * min Minimum #' * 25th 25th percentile #' * mean Arithmetic mean #' * gmean Geom...
/R/moments.R
no_license
cran/spatialEco
R
false
false
3,857
r
#' @title moments #' #' @description Calculate statistical moments of a distribution #' #' @param x numeric vector #' @param plot plot of distribution (TRUE/FALSE) #' #' @return A vector with the following values: #' * min Minimum #' * 25th 25th percentile #' * mean Arithmetic mean #' * gmean Geom...
library(brglm) library(ROSE) data <- read.csv("train.csv") nrow(data) data[data == -1] <- NA data <- na.omit(data) nrow(data) train.index <- sample(nrow(data), size = nrow(train)*.8) train.data <- data[train.index, ] test.data <- data[-train.index, ] log.fit <- glm(target ~ . -id, data = train...
/TP2.R
no_license
eebucchieri/TP2
R
false
false
1,091
r
library(brglm) library(ROSE) data <- read.csv("train.csv") nrow(data) data[data == -1] <- NA data <- na.omit(data) nrow(data) train.index <- sample(nrow(data), size = nrow(train)*.8) train.data <- data[train.index, ] test.data <- data[-train.index, ] log.fit <- glm(target ~ . -id, data = train...
setClassUnion("OptionalNumeric", c("numeric", "NULL")) setClassUnion("OptionalList", c("list","NULL")) #' committee_set-class #' #' Class for a committee set of models. It #' contains most of the information regarding #' a \code{\link{constructive_aggregation-class}} #' #' @slot committee_set list of subsets #' @slot...
/sources/tests_tsensembler/tsensembler3/R/ca-classes-methods.r
no_license
postyear/ModelSelection
R
false
false
10,252
r
setClassUnion("OptionalNumeric", c("numeric", "NULL")) setClassUnion("OptionalList", c("list","NULL")) #' committee_set-class #' #' Class for a committee set of models. It #' contains most of the information regarding #' a \code{\link{constructive_aggregation-class}} #' #' @slot committee_set list of subsets #' @slot...
Regression = read.csv('C:/R/statistic/Regression.csv') # 산점도 library(ggplot2) ggplot(Regression, aes(x=X, y=y)) + geom_point() + geom_smooth(method = 'lm') + theme_classic() # 단순 선형 회귀분석 Reg = lm(y~X, data = Regression) anova(Reg) summary(Reg) ''' Analysis of Variance Table Response: y Df ...
/statistics/regression.R
no_license
leejukyu/R
R
false
false
1,486
r
Regression = read.csv('C:/R/statistic/Regression.csv') # 산점도 library(ggplot2) ggplot(Regression, aes(x=X, y=y)) + geom_point() + geom_smooth(method = 'lm') + theme_classic() # 단순 선형 회귀분석 Reg = lm(y~X, data = Regression) anova(Reg) summary(Reg) ''' Analysis of Variance Table Response: y Df ...
file.fractal.wrapper = function(filename_path, data_path_out, param, debug = FALSE) { # INITIALIZE -------------------------------------------------------------- # Check input just_filename = tail(strsplit(filename_path, .Platform$file.sep)[[1]], 1) filecode = strsplit(just_filename, '_')[[1]][1] ca...
/PLR_reconstruction/subfunctions/file_velocityAndAcceleration_wrapper.R
no_license
petteriTeikari/R-PLR
R
false
false
799
r
file.fractal.wrapper = function(filename_path, data_path_out, param, debug = FALSE) { # INITIALIZE -------------------------------------------------------------- # Check input just_filename = tail(strsplit(filename_path, .Platform$file.sep)[[1]], 1) filecode = strsplit(just_filename, '_')[[1]][1] ca...
setwd('/Volumes/core/Genomics/Analysis/Yu/ron_yu/cry6/data/long/expr_files') exprs <- dir(pattern = "*genes_100.expr") all.genes.uniq <- read.table("justgeneids.txt") cuff.df <- data.frame(matrix(data = NA, nrow = nrow(all.genes.uniq), ncol = length(exprs) + 1)) colnames(cuff.df)[1] <- "ens_id" colnames(cuff.df)[2:ncol...
/rna_seq/old/rna_seq_gene_analysis.R
no_license
vlandham/biobot
R
false
false
3,251
r
setwd('/Volumes/core/Genomics/Analysis/Yu/ron_yu/cry6/data/long/expr_files') exprs <- dir(pattern = "*genes_100.expr") all.genes.uniq <- read.table("justgeneids.txt") cuff.df <- data.frame(matrix(data = NA, nrow = nrow(all.genes.uniq), ncol = length(exprs) + 1)) colnames(cuff.df)[1] <- "ens_id" colnames(cuff.df)[2:ncol...
######### The "rtiesShared" file includes functions that support all the rties analyses #' Reformat a user-provided dataframe in a generic form appropriate for \emph{rties} modeling #' #' In the dataframe, the partners within each dyad must have the same number of observations (e.g. rows of data), although those can...
/R/shared.R
no_license
ebmtnprof/qid
R
false
false
14,249
r
######### The "rtiesShared" file includes functions that support all the rties analyses #' Reformat a user-provided dataframe in a generic form appropriate for \emph{rties} modeling #' #' In the dataframe, the partners within each dyad must have the same number of observations (e.g. rows of data), although those can...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getDrugSpw.R \name{getDrugSpw} \alias{getDrugSpw} \title{SubtypeDrug internal function} \usage{ getDrugSpw( drug_target_data, spw_matrix_rnames, drug.P.value.threshold, drug.min.sz, drug.max.sz ) } \arguments{ \item{drug_target_data...
/man/getDrugSpw.Rd
no_license
hanjunwei-lab/SubtypeDrug
R
false
true
1,576
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getDrugSpw.R \name{getDrugSpw} \alias{getDrugSpw} \title{SubtypeDrug internal function} \usage{ getDrugSpw( drug_target_data, spw_matrix_rnames, drug.P.value.threshold, drug.min.sz, drug.max.sz ) } \arguments{ \item{drug_target_data...