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/zz-test-queue.R \name{test_queue} \alias{test_queue} \title{test_queue} \usage{ test_queue(q_obj, verbose = TRUE, ...) } \arguments{ \item{q_obj}{queue object} \item{verbose}{toggle} \item{...}{These params are passed onto \code{queue}. \co...
/man/test_queue.Rd
permissive
glass-consortium/flowr
R
false
true
772
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zz-test-queue.R \name{test_queue} \alias{test_queue} \title{test_queue} \usage{ test_queue(q_obj, verbose = TRUE, ...) } \arguments{ \item{q_obj}{queue object} \item{verbose}{toggle} \item{...}{These params are passed onto \code{queue}. \co...
#' Neural transfer style #' #' The popular neural style transfer described here: #' #' https://arxiv.org/abs/1508.06576 and https://arxiv.org/abs/1605.04603 #' #' and taken from François Chollet's implementation #' #' https://keras.io/examples/generative/neural_style_transfer/ #' #' and titu1994's modifications...
/R/neuralTransferStyle.R
permissive
ANTsX/ANTsRNet
R
false
false
18,458
r
#' Neural transfer style #' #' The popular neural style transfer described here: #' #' https://arxiv.org/abs/1508.06576 and https://arxiv.org/abs/1605.04603 #' #' and taken from François Chollet's implementation #' #' https://keras.io/examples/generative/neural_style_transfer/ #' #' and titu1994's modifications...
#' Read TIFF files into R and and create spatial data object #' #' @usage read.spatial.files() #' #' @param rois vector of ROI names (directory names) #' @param roi.loc working directory for ROIs #' @param multi.tiff Default FALSE. Currently we don't support reading in multipage TIFF files #' @param correct.extent Corr...
/R/read.spatial.files.R
permissive
denvercal1234GitHub/Spectre
R
false
false
5,177
r
#' Read TIFF files into R and and create spatial data object #' #' @usage read.spatial.files() #' #' @param rois vector of ROI names (directory names) #' @param roi.loc working directory for ROIs #' @param multi.tiff Default FALSE. Currently we don't support reading in multipage TIFF files #' @param correct.extent Corr...
#' Estimate somatic variant allele fraction (VAF) #' #' Given copy-number and purity estimates, calculates the two expected alllele fractions of a mutation in a tumor. #' Use \code{expected_vaf_germline} for germline mutations and \code{expected_vaf_somatic} for somatic mutations #' #' @param purity Sample purity. #' @...
/R/estimate-vaf.R
no_license
qindan2008/kpjmisc
R
false
false
1,712
r
#' Estimate somatic variant allele fraction (VAF) #' #' Given copy-number and purity estimates, calculates the two expected alllele fractions of a mutation in a tumor. #' Use \code{expected_vaf_germline} for germline mutations and \code{expected_vaf_somatic} for somatic mutations #' #' @param purity Sample purity. #' @...
## Exploratory data analysis, Project 1, Plot 3 ## Set folder my.wd <- paste(getwd(), '/', sep='') ## Load full dataset from working directory, truncate to relevant days, set column classes fulldata <- read.table(paste(my.wd,'household_power_consumption.txt', sep=''), sep = ";", col.names = c...
/plot3.R
no_license
Courserajgp/ExData_Plotting1
R
false
false
1,824
r
## Exploratory data analysis, Project 1, Plot 3 ## Set folder my.wd <- paste(getwd(), '/', sep='') ## Load full dataset from working directory, truncate to relevant days, set column classes fulldata <- read.table(paste(my.wd,'household_power_consumption.txt', sep=''), sep = ";", col.names = c...
# Martone Hakai Rocky Shore Seaweed Surveys # # by Matt Whalen # This script uses community trajectory analysis on Martone seaweed community data # load libraries library( tidyverse ) library( vegclust ) # CTA, length, angles, directionality, projection, distances between segments/trajectories library( adespatial ...
/R/Community_trajectories.R
permissive
mawhal/martone_calvert
R
false
false
12,510
r
# Martone Hakai Rocky Shore Seaweed Surveys # # by Matt Whalen # This script uses community trajectory analysis on Martone seaweed community data # load libraries library( tidyverse ) library( vegclust ) # CTA, length, angles, directionality, projection, distances between segments/trajectories library( adespatial ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/untested.R \name{untested} \alias{untested} \title{Demo function to return the value of pi} \usage{ untested() } \value{ something like 3.14 } \description{ Demo function to return the value of pi }
/man/untested.Rd
permissive
codecov/example-r
R
false
false
286
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/untested.R \name{untested} \alias{untested} \title{Demo function to return the value of pi} \usage{ untested() } \value{ something like 3.14 } \description{ Demo function to return the value of pi }
/repo/R/workspace/science/mybarplot.R
no_license
PiotrekSotor/PracaMagisterska
R
false
false
2,235
r
## ----echo=FALSE---------------------------------------------------------- suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(knitr)) knitr::opts_chunk$set( warning=FALSE , error=FALSE , echo=FALSE , message=FALSE , fig.height = 4.5 , fig.pos="t" , collapse = TRUE ) k...
/scripts/introduction.R
no_license
PirateGrunt/intermediate_r
R
false
false
1,050
r
## ----echo=FALSE---------------------------------------------------------- suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(knitr)) knitr::opts_chunk$set( warning=FALSE , error=FALSE , echo=FALSE , message=FALSE , fig.height = 4.5 , fig.pos="t" , collapse = TRUE ) k...
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{package} \name{dscr-package} \alias{dscr} \alias{dscr-package} \title{Dynamic Statistical Comparisons in R} \description{ Package containing functions to help build dynamic statistical comparisons in R \tabular{ll}{ Package: \tab dscr\cr Type: \tab Package\...
/man/dscr-package.Rd
no_license
mengyin/dscr
R
false
false
452
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \docType{package} \name{dscr-package} \alias{dscr} \alias{dscr-package} \title{Dynamic Statistical Comparisons in R} \description{ Package containing functions to help build dynamic statistical comparisons in R \tabular{ll}{ Package: \tab dscr\cr Type: \tab Package\...
set.seed(123) library(mvtnorm) library(optimx) all_diff_f=list() all_diff_r=list() reps=100 for (kk in 1:reps){ print(kk) now=aco=c(1,0) acofreq=c(25,75) total_sample=10000 n=ceiling(total_sample*acofreq[1]*0.01) data=matrix(nrow=n,ncol=17) colnames(data)=c("acoqtr","yea...
/Simulation-ARI-0.25.R
no_license
kiwijomalley/programs
R
false
false
14,188
r
set.seed(123) library(mvtnorm) library(optimx) all_diff_f=list() all_diff_r=list() reps=100 for (kk in 1:reps){ print(kk) now=aco=c(1,0) acofreq=c(25,75) total_sample=10000 n=ceiling(total_sample*acofreq[1]*0.01) data=matrix(nrow=n,ncol=17) colnames(data)=c("acoqtr","yea...
stopwords<-read.table('C:/Users/Admin/Dropbox/Sentiment Analysis/Dictionary/stopwordsplus.txt') stopwords_full<-stopwords$V1 cleantweet<-function(x){ x<-gsub('(#\\w*\\b)','',x) x<-gsub('(@\\w*\\b)','',x) return(x) } twittertract<-function(x){ library(stringr) tags<-str_extract_all(x,regex('(#\\w*\\b)')) ...
/Scripts/Functions/prepro.R
no_license
msaeltzer/scrape
R
false
false
1,118
r
stopwords<-read.table('C:/Users/Admin/Dropbox/Sentiment Analysis/Dictionary/stopwordsplus.txt') stopwords_full<-stopwords$V1 cleantweet<-function(x){ x<-gsub('(#\\w*\\b)','',x) x<-gsub('(@\\w*\\b)','',x) return(x) } twittertract<-function(x){ library(stringr) tags<-str_extract_all(x,regex('(#\\w*\\b)')) ...
makexMat<-function(dd, TRL, TRU,SORC,xType="optim"){ x1<-seq(from=TRL[dd[1]],to=TRU[dd[1]],length=100) x2<-seq(from=TRL[dd[2]],to=TRU[dd[2]],length=100) xMat0<-expand.grid(x=x1,y=x2) switch(xType, "optim"={xMat<-matrix(SORC$solu,nrow=nrow(xMat0),ncol=SORC$dimension,byrow=TRUE)} ...
/visualizenD.R
no_license
saminehbagheri/SOCU
R
false
false
7,719
r
makexMat<-function(dd, TRL, TRU,SORC,xType="optim"){ x1<-seq(from=TRL[dd[1]],to=TRU[dd[1]],length=100) x2<-seq(from=TRL[dd[2]],to=TRU[dd[2]],length=100) xMat0<-expand.grid(x=x1,y=x2) switch(xType, "optim"={xMat<-matrix(SORC$solu,nrow=nrow(xMat0),ncol=SORC$dimension,byrow=TRUE)} ...
# Load libraries library(tidyverse) # Download and unzip main file if(!file.exists("exdata_data_NEI_data.zip")) {download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip", destfile = "exdata_data_NEI_data.zip")} if(!(file.exists("Source_Classification_Code.rds") & file.exists("summarySCC_PM25....
/plot5.R
no_license
jboydca89/JHUExpData-Proj2
R
false
false
1,612
r
# Load libraries library(tidyverse) # Download and unzip main file if(!file.exists("exdata_data_NEI_data.zip")) {download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip", destfile = "exdata_data_NEI_data.zip")} if(!(file.exists("Source_Classification_Code.rds") & file.exists("summarySCC_PM25....
library(shutterstock) ### Name: listAudioLicenses ### Title: List audio licenses ### Aliases: listAudioLicenses ### ** Examples ## Not run: ##D listAudioLicenses() ##D listAudioLicenses(audio_id = 442583) ## End(Not run)
/data/genthat_extracted_code/shutterstock/examples/listAudioLicenses.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
229
r
library(shutterstock) ### Name: listAudioLicenses ### Title: List audio licenses ### Aliases: listAudioLicenses ### ** Examples ## Not run: ##D listAudioLicenses() ##D listAudioLicenses(audio_id = 442583) ## End(Not run)
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { } ## Write a short comment describing this function cacheSolve <- function(x, ...) { ## Return a matrix that is the inverse of 'x...
/cachematrix.R
no_license
dimaspratama/ProgrammingAssignment2
R
false
false
333
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { } ## Write a short comment describing this function cacheSolve <- function(x, ...) { ## Return a matrix that is the inverse of 'x...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{just_wait} \alias{just_wait} \title{just_wait} \usage{ just_wait(obj, sec = 1) } \description{ just_wait }
/man/just_wait.Rd
no_license
favstats/tweetsel
R
false
true
199
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{just_wait} \alias{just_wait} \title{just_wait} \usage{ just_wait(obj, sec = 1) } \description{ just_wait }
#set working directory location to where gpx files are located# setwd("C:/Users/treneau/Dropbox/WCMCseed/Analysis/GPX_AnalysisReneau/workspace") #read file that contains dates with 10%+ data missing# tod_df <- read.csv("throw_out_dates_all_cohorts.csv",stringsAsFactors = FALSE) re_matrix <- matrix(nrow = 0, ncol ...
/Roaming Entropy/daily entropy calculator (new).R
no_license
manateelab/MANATEE-Lab-Scripts
R
false
false
9,669
r
#set working directory location to where gpx files are located# setwd("C:/Users/treneau/Dropbox/WCMCseed/Analysis/GPX_AnalysisReneau/workspace") #read file that contains dates with 10%+ data missing# tod_df <- read.csv("throw_out_dates_all_cohorts.csv",stringsAsFactors = FALSE) re_matrix <- matrix(nrow = 0, ncol ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BenchDesign.R \name{print.BenchDesign} \alias{print.BenchDesign} \title{Pretty print BenchDesign} \usage{ \method{print}{BenchDesign}(x, ...) } \arguments{ \item{x}{BenchDesign object.} \item{...}{other parameters.} } \value{ Prints summary ...
/man/print.BenchDesign.Rd
no_license
stephaniehicks/SummarizedBenchmark
R
false
true
496
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BenchDesign.R \name{print.BenchDesign} \alias{print.BenchDesign} \title{Pretty print BenchDesign} \usage{ \method{print}{BenchDesign}(x, ...) } \arguments{ \item{x}{BenchDesign object.} \item{...}{other parameters.} } \value{ Prints summary ...
#fixme wing-specific simplifyRois <- function(rois){ rois <- rbind(rois, transform(rois, roi=ifelse(str_detect(roi, "interL|InterL|postL5"), "intervein", ifelse(str_detect(roi, "^L[0-9]{1}$"), "vein", ac(roi))))) rois <- subset(rois, !duplicated(rois)) return(rois) } addRawRoi <- function(rois, dataWit...
/commons/RoiCommons.R
permissive
SysSynBio/tissue_miner
R
false
false
4,776
r
#fixme wing-specific simplifyRois <- function(rois){ rois <- rbind(rois, transform(rois, roi=ifelse(str_detect(roi, "interL|InterL|postL5"), "intervein", ifelse(str_detect(roi, "^L[0-9]{1}$"), "vein", ac(roi))))) rois <- subset(rois, !duplicated(rois)) return(rois) } addRawRoi <- function(rois, dataWit...
##1st, checks if the file was downloaded## if(!file.exists("household_power_consumption.txt")){ download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",destfile = "hpc.zip") unzip("hpc.zip") data01 <- read.table("household_power_consumption.txt",head...
/Plot4.R
no_license
jorgeh08/ExData_Plotting1
R
false
false
1,946
r
##1st, checks if the file was downloaded## if(!file.exists("household_power_consumption.txt")){ download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",destfile = "hpc.zip") unzip("hpc.zip") data01 <- read.table("household_power_consumption.txt",head...
require(tidyverse) require(rvest) require(stringr) scrap_mzes_projs <- function(url) { read_html(url) ->proj_a proj_a %>% html_nodes("div.views-field-field-project-number") %>% html_text %>% str_trim -> proj_num proj_a %>% html_nodes("div.research-project-title") %>% html_text %>% str_trim -> proj_title proj_a...
/scrape.R
no_license
SocialScienceDataLab/mzes_igraph
R
false
false
1,474
r
require(tidyverse) require(rvest) require(stringr) scrap_mzes_projs <- function(url) { read_html(url) ->proj_a proj_a %>% html_nodes("div.views-field-field-project-number") %>% html_text %>% str_trim -> proj_num proj_a %>% html_nodes("div.research-project-title") %>% html_text %>% str_trim -> proj_title proj_a...
#' Returns number of CV folds. #' #' @param asscenario [\code{\link{ASScenario}}]\cr #' Algorithm selection scenario. #' @return [\code{integer(1)}]. #' @export getNumberOfCVFolds = function(asscenario) { assertClass(asscenario, "ASScenario") return(max(asscenario$cv.splits$fold)) } #' Returns number of CV repe...
/aslib/R/getCV.R
no_license
coseal/aslib-r
R
false
false
597
r
#' Returns number of CV folds. #' #' @param asscenario [\code{\link{ASScenario}}]\cr #' Algorithm selection scenario. #' @return [\code{integer(1)}]. #' @export getNumberOfCVFolds = function(asscenario) { assertClass(asscenario, "ASScenario") return(max(asscenario$cv.splits$fold)) } #' Returns number of CV repe...
if (require("testthat", character.only = TRUE)) { test_check("trinROC") }
/tests/testthat.R
no_license
cran/trinROC
R
false
false
76
r
if (require("testthat", character.only = TRUE)) { test_check("trinROC") }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gt_theme_538.R \name{gt_dinnR} \alias{gt_dinnR} \title{Custom {gt} Styles} \usage{ gt_dinnR(.data) } \arguments{ \item{.data}{a gt object.} } \value{ a gt object } \description{ Some extra styling for the tables used in this app. }
/man/gt_dinnR.Rd
permissive
uincity/dinnR
R
false
true
310
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gt_theme_538.R \name{gt_dinnR} \alias{gt_dinnR} \title{Custom {gt} Styles} \usage{ gt_dinnR(.data) } \arguments{ \item{.data}{a gt object.} } \value{ a gt object } \description{ Some extra styling for the tables used in this app. }
# Tidy Tuesday Jan 21, 2020 # Spotify metadata install.packages('spotifyr') devtools::install_github('charlie86/spotifyr') library("spotifyr") library("tidyverse") library("knitr") library("lubridate") library("ggtext") library(ggiraphExtra) library(ggplot2) Sys.setenv(SPOTIFY_CLIENT_ID = '7fe745bee36d4c2dafb2b...
/CodeFiles/Jan21.20.R
no_license
jakelawlor/TidyTuesday_JL
R
false
false
10,720
r
# Tidy Tuesday Jan 21, 2020 # Spotify metadata install.packages('spotifyr') devtools::install_github('charlie86/spotifyr') library("spotifyr") library("tidyverse") library("knitr") library("lubridate") library("ggtext") library(ggiraphExtra) library(ggplot2) Sys.setenv(SPOTIFY_CLIENT_ID = '7fe745bee36d4c2dafb2b...
gapModuleUI <- function(id) { ns <- NS(id) tagList( plotOutput(ns("plot")), sliderInput(ns("year"), "Select Year", value = 1952, min = 1952, max = 2007, step = 5, animate = animationOptions(interval = 500)) ) } gapModule <- function(input, output, session, data) { ...
/shiny-learning/module-example/gapModule.R
no_license
Huffyphenix/hello-world
R
false
false
1,484
r
gapModuleUI <- function(id) { ns <- NS(id) tagList( plotOutput(ns("plot")), sliderInput(ns("year"), "Select Year", value = 1952, min = 1952, max = 2007, step = 5, animate = animationOptions(interval = 500)) ) } gapModule <- function(input, output, session, data) { ...
# stop words from http://www.nettiapina.fi/finnish-stopword-list/ # with some manual additions # tuomo.a.nieminen@gmail.com # 16.2.2016 fin_stopwords <- read.table("../data/fin_stopwords.txt") fi_stop <- as.character(fin_stopwords$V1) save(file="../data/fi_stopwords.Rda",fi_stop)
/utility/save_fi_stopwords.R
no_license
TuomoNieminen/StubbTweets
R
false
false
283
r
# stop words from http://www.nettiapina.fi/finnish-stopword-list/ # with some manual additions # tuomo.a.nieminen@gmail.com # 16.2.2016 fin_stopwords <- read.table("../data/fin_stopwords.txt") fi_stop <- as.character(fin_stopwords$V1) save(file="../data/fi_stopwords.Rda",fi_stop)
# Required libraries library(tidyverse) #################################################################################### # Find structure: column name, column type and first rows f_structure <- function(df_structure) { #glimpse(df_structure) #names(df_structure) #sapply(df_structure, class) #sapply(df_stru...
/sources/4-wranglers/1-evaluate/1-profile/patterns/r/profile_structure.r
permissive
UN-AVT/kamino-source
R
false
false
517
r
# Required libraries library(tidyverse) #################################################################################### # Find structure: column name, column type and first rows f_structure <- function(df_structure) { #glimpse(df_structure) #names(df_structure) #sapply(df_structure, class) #sapply(df_stru...
library(rjags) design <- read.csv("D:/univ/2014-2015/thesis/KERMIT/results february/design_results_febr_counts.csv") counts <- design$LMG7866 evenness <- design$evenness cellcount <- log10(design$cellcount) ### ----------------------------------------- ## Using JAGGS ### ----------------------------------------- ja...
/Modelling/deprecated/results february/statistics/poissonMCMC_rjags.R
no_license
watsang/masterthesis-2014-2015
R
false
false
2,934
r
library(rjags) design <- read.csv("D:/univ/2014-2015/thesis/KERMIT/results february/design_results_febr_counts.csv") counts <- design$LMG7866 evenness <- design$evenness cellcount <- log10(design$cellcount) ### ----------------------------------------- ## Using JAGGS ### ----------------------------------------- ja...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 get_cpplib <- function() { .Call(`_jwutil_get_cpplib`) } getOmpMaxThreads <- function() { .Call(`_jwutil_getOmpMaxThreads`) } getOmpThreads <- function() { .Call(`_jwutil_getOmpTh...
/R/RcppExports.R
no_license
jackwasey/jwutil
R
false
false
2,792
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 get_cpplib <- function() { .Call(`_jwutil_get_cpplib`) } getOmpMaxThreads <- function() { .Call(`_jwutil_getOmpMaxThreads`) } getOmpThreads <- function() { .Call(`_jwutil_getOmpTh...
#' @title Classification Logistic Model Trees Learner #' @author henrifnk #' @name mlr_learners_classif.LMT #' #' @template class_learner #' @templateVar id classif.LMT #' @templateVar caller LMT #' #' @section Custom mlr3 defaults: #' - `output_debug_info`: #' - original id: output-debug-info #' #' - `do_not_check_c...
/R/learner_RWeka_classif_LMT.R
no_license
0livier1O1/mlr3extralearners
R
false
false
3,920
r
#' @title Classification Logistic Model Trees Learner #' @author henrifnk #' @name mlr_learners_classif.LMT #' #' @template class_learner #' @templateVar id classif.LMT #' @templateVar caller LMT #' #' @section Custom mlr3 defaults: #' - `output_debug_info`: #' - original id: output-debug-info #' #' - `do_not_check_c...
library(DT) library(ssrch) library(restfulSE) #if (!exists("rangedHtxSE")) load("rangedHtxSE.rda") if (!exists("se")) { se = HumanTranscriptomeCompendium::htx_load() se = HumanTranscriptomeCompendium::addRD(se) } sefilter = function(se, y) se[,which(se$study_accession %in% y)] docs = docset = ssrch::ds_can1009b() t...
/inst/ca43kAnVIL/server.R
no_license
bjstubbs/HumanTranscriptomeCompendium
R
false
false
5,539
r
library(DT) library(ssrch) library(restfulSE) #if (!exists("rangedHtxSE")) load("rangedHtxSE.rda") if (!exists("se")) { se = HumanTranscriptomeCompendium::htx_load() se = HumanTranscriptomeCompendium::addRD(se) } sefilter = function(se, y) se[,which(se$study_accession %in% y)] docs = docset = ssrch::ds_can1009b() t...
\name{Whitestar} \alias{Whitestar} \docType{data} \title{Titanic Survivors} \description{ For each person on board the fatal maiden voyage of the ocean liner Titanic, this dataset records sex, age (adult/child), economic status (first/second/third class, or crew) and whether or not that person survived. The na...
/man/Whitestar.Rd
no_license
nicholaskarlson/alr4
R
false
false
1,164
rd
\name{Whitestar} \alias{Whitestar} \docType{data} \title{Titanic Survivors} \description{ For each person on board the fatal maiden voyage of the ocean liner Titanic, this dataset records sex, age (adult/child), economic status (first/second/third class, or crew) and whether or not that person survived. The na...
#villageMapVars.R #160816 #Kiki Chang(ychang64@jhu.edu) #This file contains data and variables used in graphing village map. #The map is provided by Ministry of Transportation (src: http://data.gov.tw/node/7438 ) #NOTE: workspace must be cleared [ -> rm(list=ls()) on the console] before running this program. #--------...
/villageMapVars.R
no_license
kikichang/TWmap
R
false
false
1,551
r
#villageMapVars.R #160816 #Kiki Chang(ychang64@jhu.edu) #This file contains data and variables used in graphing village map. #The map is provided by Ministry of Transportation (src: http://data.gov.tw/node/7438 ) #NOTE: workspace must be cleared [ -> rm(list=ls()) on the console] before running this program. #--------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{icd9} \alias{icd9} \title{ICD9 codes} \format{A data frame with 19 rows and 2 columns} \usage{ data(icd9) } \description{ A data set that contains the International Statistical Classification of Diseases and Relat...
/man/icd9.Rd
no_license
jarad/ISDSWorkshop
R
false
true
585
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{icd9} \alias{icd9} \title{ICD9 codes} \format{A data frame with 19 rows and 2 columns} \usage{ data(icd9) } \description{ A data set that contains the International Statistical Classification of Diseases and Relat...
\name{daysbetween} \alias{daysbetween} \title{Number of days between two dates} \description{ Number of days between date1 and date2. } \usage{daysbetween(d1,d2)} \arguments{ \item{d1}{Date as a character string 'DD.MM.YYYY'.} \item{d2}{Date as s character string 'DD.MM.YYYY'.} } \value{ \item{ndays}{Number of days...
/man/daysbetween.Rd
no_license
cran/pheno
R
false
false
458
rd
\name{daysbetween} \alias{daysbetween} \title{Number of days between two dates} \description{ Number of days between date1 and date2. } \usage{daysbetween(d1,d2)} \arguments{ \item{d1}{Date as a character string 'DD.MM.YYYY'.} \item{d2}{Date as s character string 'DD.MM.YYYY'.} } \value{ \item{ndays}{Number of days...
# ***************************************************************************** # Global variables * # ***************************************************************************** data_dir <- "UCI HAR Dataset"; #General Files features_file = paste(data...
/run_analysis.R
no_license
almatarm/getdata-project
R
false
false
4,590
r
# ***************************************************************************** # Global variables * # ***************************************************************************** data_dir <- "UCI HAR Dataset"; #General Files features_file = paste(data...
/ScrapeBrefFunction.R
no_license
richjand/Scrape-Baseball-Reference
R
false
false
8,303
r
# Lesson 4: Data wrangling and manipulation with tidyverse # Created by: Caitlin Allen Akselrud # Contact: caitlin.allen_akselrud@noaa.gov # Created: 2020-12-18 # Modified: 2021-01-18
/code/1_header.R
permissive
EmilyMarkowitz-NOAA/FishR101-TidyPt2
R
false
false
183
r
# Lesson 4: Data wrangling and manipulation with tidyverse # Created by: Caitlin Allen Akselrud # Contact: caitlin.allen_akselrud@noaa.gov # Created: 2020-12-18 # Modified: 2021-01-18
fn <- match.fun(fn) B <- 10 # Extract random effects .resample.cgr <- function(model){ model.ranef <- random.effects(model) # Extract residuals model.resid <- residuals(model) # Higher levels Uhat.list <- lapply(seq_along(model.ranef), FUN = function(i) { ...
/misc/test_files/cgr_nlme.R
no_license
mwest80/lmeresampler
R
false
false
2,224
r
fn <- match.fun(fn) B <- 10 # Extract random effects .resample.cgr <- function(model){ model.ranef <- random.effects(model) # Extract residuals model.resid <- residuals(model) # Higher levels Uhat.list <- lapply(seq_along(model.ranef), FUN = function(i) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/split_lines.R \name{split_lines} \alias{split_lines} \title{Split lines into same length segments} \usage{ split_lines(spatial_line, split_length = 500) } \arguments{ \item{spatial_line}{An "sp" object of class SpatialLines or SpatialLinesDat...
/man/split_lines.Rd
no_license
bmsasilva/roadHotspots
R
false
true
909
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/split_lines.R \name{split_lines} \alias{split_lines} \title{Split lines into same length segments} \usage{ split_lines(spatial_line, split_length = 500) } \arguments{ \item{spatial_line}{An "sp" object of class SpatialLines or SpatialLinesDat...
##' QGIS Algorithm provided by GRASS r.mask.vect (grass7:r.mask.vect) ##' ##' @title QGIS algorithm r.mask.vect ##' ##' @param vector `source` - Name of vector map to use as mask. Path to a vector layer. ##' @param input `raster` - Name of raster map to which apply the mask. Path to a raster layer. ##' @param cats `str...
/R/grass7_r_mask_vect.R
permissive
VB6Hobbyst7/r_package_qgis
R
false
false
3,252
r
##' QGIS Algorithm provided by GRASS r.mask.vect (grass7:r.mask.vect) ##' ##' @title QGIS algorithm r.mask.vect ##' ##' @param vector `source` - Name of vector map to use as mask. Path to a vector layer. ##' @param input `raster` - Name of raster map to which apply the mask. Path to a raster layer. ##' @param cats `str...
## makeCacheMatrix creates a cache for matrix 'x' ## cacheSolve returns the inverse matrix of 'x' makeCacheMatrix <- function(x = matrix()) { ## Create a cache for matrix x inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inverse) in...
/cachematrix.R
no_license
vinceCWS91/ProgrammingAssignment2
R
false
false
698
r
## makeCacheMatrix creates a cache for matrix 'x' ## cacheSolve returns the inverse matrix of 'x' makeCacheMatrix <- function(x = matrix()) { ## Create a cache for matrix x inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inverse) in...
# focal_hpc helper functions focal_hpc_precheck <- function(x,window_dims,window_center,processing_unit,verbose) { if(verbose) message("Performing pre-checks...") if(length(window_dims)==1) window_dims=c(window_dims,window_dims) if(length(window_center)==1) window_center <- c(window_center,window_cent...
/R/focal_hpc.R
no_license
mblasirom/spatial.tools
R
false
false
39,648
r
# focal_hpc helper functions focal_hpc_precheck <- function(x,window_dims,window_center,processing_unit,verbose) { if(verbose) message("Performing pre-checks...") if(length(window_dims)==1) window_dims=c(window_dims,window_dims) if(length(window_center)==1) window_center <- c(window_center,window_cent...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statistics_functions.R \name{get_stats} \alias{get_stats} \title{Function to calculate full set of measures from a confusion data frame} \usage{ get_stats(df) } \arguments{ \item{df}{confusion dataframe} } \value{ a data frame with several me...
/man/get_stats.Rd
permissive
rafnunser/ExpHunterSuite
R
false
true
501
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statistics_functions.R \name{get_stats} \alias{get_stats} \title{Function to calculate full set of measures from a confusion data frame} \usage{ get_stats(df) } \arguments{ \item{df}{confusion dataframe} } \value{ a data frame with several me...
Net.TS <- function(exact = TRUE, ...){ if(exact){ return(ExactNet.TS(...)) }else{ return(ApproxNet.TS(...)) } } Net.TS.Para <- function(exact = TRUE,...){ if(exact){ return(ExactNet.TS.Para(...)) }else{ return(ApproxNet.TS.Para(...)) } } ExactNet.TS <- function(X, Y, alpha = 1, family = ...
/pathwise_net_ts.R
no_license
devcao/High-dimensional-inference
R
false
false
9,212
r
Net.TS <- function(exact = TRUE, ...){ if(exact){ return(ExactNet.TS(...)) }else{ return(ApproxNet.TS(...)) } } Net.TS.Para <- function(exact = TRUE,...){ if(exact){ return(ExactNet.TS.Para(...)) }else{ return(ApproxNet.TS.Para(...)) } } ExactNet.TS <- function(X, Y, alpha = 1, family = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{five_rel_list} \alias{five_rel_list} \title{Features of five human Rel A proteins} \format{ Large List of 5 elements - one element for each protein } \source{ Uniprot {http://www.uniprot.org} Accession numbers Q042...
/man/five_rel_list.Rd
permissive
brennanpincardiff/drawProteins
R
false
true
571
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{five_rel_list} \alias{five_rel_list} \title{Features of five human Rel A proteins} \format{ Large List of 5 elements - one element for each protein } \source{ Uniprot {http://www.uniprot.org} Accession numbers Q042...
library("animation") library("scatterplot3d") ## ---- matrices ------ D = matrix(c(0.4, -0.8, 0, 0.8, 0.4, 0, 0, 0, 0.94), byrow = TRUE, nrow = 3) V = matrix(c(-0.626453810742332, 0.183643324222082, -0.835628612410047, 1.59528080213779, 0.329507771815361, -0.820...
/day05/R/demo.R
permissive
rokko-ed17q1/slides
R
false
false
1,182
r
library("animation") library("scatterplot3d") ## ---- matrices ------ D = matrix(c(0.4, -0.8, 0, 0.8, 0.4, 0, 0, 0, 0.94), byrow = TRUE, nrow = 3) V = matrix(c(-0.626453810742332, 0.183643324222082, -0.835628612410047, 1.59528080213779, 0.329507771815361, -0.820...
##RNA-Seq Gene Expression Analysis using Limma## library(limma) library(edgeR) library(biomaRt) analysis.name<-"GH_HEK_48h" #Label analysis setwd(dir = "/Users/clairegreen/Documents/PhD/TDP-43/TDP-43_Data/GeneExpressionAnalysis/RNA-seq/Petrucelli/") # Counts <- read.table(file = 'GSE67196_Petrucelli2015_ALS_genes.raw...
/DiffExpr_RNA-Seq.R
no_license
zerland/PhD_Code
R
false
false
3,735
r
##RNA-Seq Gene Expression Analysis using Limma## library(limma) library(edgeR) library(biomaRt) analysis.name<-"GH_HEK_48h" #Label analysis setwd(dir = "/Users/clairegreen/Documents/PhD/TDP-43/TDP-43_Data/GeneExpressionAnalysis/RNA-seq/Petrucelli/") # Counts <- read.table(file = 'GSE67196_Petrucelli2015_ALS_genes.raw...
testthat::context("Testing create_html_pack") testthat::test_that("Test that function runs - Complex output", { print(getwd()) # Create output list to export output_list <- list() for (ii in 1:2){ jj_list <- list() for (jj in 1:2){ temp_plot <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::...
/tests/testthat/test_create_html_pack.R
no_license
gloverd2/codeBase
R
false
false
3,969
r
testthat::context("Testing create_html_pack") testthat::test_that("Test that function runs - Complex output", { print(getwd()) # Create output list to export output_list <- list() for (ii in 1:2){ jj_list <- list() for (jj in 1:2){ temp_plot <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findPathwaysByXref.R \name{findPathwaysByXref} \alias{findPathwaysByXref} \title{Find Pathways By Xref} \usage{ findPathwaysByXref(identifier, systemCode) } \arguments{ \item{identifier}{The official ID specified by a data source or system} ...
/man/findPathwaysByXref.Rd
permissive
schymane/rwikipathways
R
false
true
873
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findPathwaysByXref.R \name{findPathwaysByXref} \alias{findPathwaysByXref} \title{Find Pathways By Xref} \usage{ findPathwaysByXref(identifier, systemCode) } \arguments{ \item{identifier}{The official ID specified by a data source or system} ...
testlist <- list(x = c(1466527309L, NA, 1702308136L, NA, 543387502L, 1936992617L, 1697207080L, 1480947536L, 543387502L, 1948909567L, -1L, -15018449L, -56064L, 7799023L, -1L, -58625L, -6316129L, -1616928769L, 805271775L, -687865857L, -1L, -10726L), y = NA_integer_) result <- do.call(diffrprojects:::dist_mat_absolute,...
/diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609960919-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
341
r
testlist <- list(x = c(1466527309L, NA, 1702308136L, NA, 543387502L, 1936992617L, 1697207080L, 1480947536L, 543387502L, 1948909567L, -1L, -15018449L, -56064L, 7799023L, -1L, -58625L, -6316129L, -1616928769L, 805271775L, -687865857L, -1L, -10726L), y = NA_integer_) result <- do.call(diffrprojects:::dist_mat_absolute,...
rollno <-paste(c("S"),1:30,sep="") rollno set.seed(12) gender<- sample(x=c("Male","Female"), size=30, replace=T, prob= c(0.4,0.6)) gender play<- sample(x=c("Play","Not Play"), size=30, replace=T, prob= c(0.3,0.7)) play student<- data.frame(gender,play) student row.names(student)<- rollno summary(student) table(studen...
/decisiontree_1.R
no_license
Joel-17510031/R_Analytics_Workshop
R
false
false
1,293
r
rollno <-paste(c("S"),1:30,sep="") rollno set.seed(12) gender<- sample(x=c("Male","Female"), size=30, replace=T, prob= c(0.4,0.6)) gender play<- sample(x=c("Play","Not Play"), size=30, replace=T, prob= c(0.3,0.7)) play student<- data.frame(gender,play) student row.names(student)<- rollno summary(student) table(studen...
library(httr) library(jsonlite) body = '{ "pc_id":0, "speed":0.6 } ' POST("http://127.0.0.1:9000/api/config", content_type_json(), body = body, encode = "json") a <- GET("http://127.0.0.1:9000/api/config", content_type_json(), encode = "json") aa <- fromJSON(body) speed_params <- list(pc_id = 0, speed = 0)
/API/postPavelAPI.R
no_license
kibiras/api-bs2019
R
false
false
311
r
library(httr) library(jsonlite) body = '{ "pc_id":0, "speed":0.6 } ' POST("http://127.0.0.1:9000/api/config", content_type_json(), body = body, encode = "json") a <- GET("http://127.0.0.1:9000/api/config", content_type_json(), encode = "json") aa <- fromJSON(body) speed_params <- list(pc_id = 0, speed = 0)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lightsail_operations.R \name{lightsail_start_relational_database} \alias{lightsail_start_relational_database} \title{Starts a specific database from a stopped state in Amazon Lightsail} \usage{ lightsail_start_relational_database(relationalDa...
/paws/man/lightsail_start_relational_database.Rd
permissive
sanchezvivi/paws
R
false
true
933
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lightsail_operations.R \name{lightsail_start_relational_database} \alias{lightsail_start_relational_database} \title{Starts a specific database from a stopped state in Amazon Lightsail} \usage{ lightsail_start_relational_database(relationalDa...
# Define server logic shinyServer(function(input,output,session) { observeEvent( eventExpr = input[["submit"]], handlerExpr = { print("Running") } ) # this starts once the "submit" button as been hit output$done <- eventReactive(input$submit,{ #input the u...
/server.R
no_license
CR-Mercado/Caption-Filler
R
false
false
2,598
r
# Define server logic shinyServer(function(input,output,session) { observeEvent( eventExpr = input[["submit"]], handlerExpr = { print("Running") } ) # this starts once the "submit" button as been hit output$done <- eventReactive(input$submit,{ #input the u...
############################### Simulation - MCMC kernels (E-step) ############################# estep_incremental<-function(kiter, Uargs, Dargs, opt, structural.model, mean.phi, varList, DYF, phiM,saemixObject,l,ind_rand) { # E-step - simulate unknown parameters # Input: kiter, Uargs, structural.model, mean.phi (un...
/ISAEM/oldISAEM/incremental/R/main_estep_incremental_work.R
no_license
BelhalK/AccelerationTrainingAlgorithms
R
false
false
13,865
r
############################### Simulation - MCMC kernels (E-step) ############################# estep_incremental<-function(kiter, Uargs, Dargs, opt, structural.model, mean.phi, varList, DYF, phiM,saemixObject,l,ind_rand) { # E-step - simulate unknown parameters # Input: kiter, Uargs, structural.model, mean.phi (un...
# Read in data ----------------------------------------------------------------- { if (Sys.info()[8] == "dpritch") { setwd("/home/dpritch/Documents/Projects/Dunson Day Specific/Software") outPath <- "/home/dpritch/Documents/Projects/Dunson Day Specific/Software/Output" } else { setwd("/Users/Sam/Docu...
/MCMC_Scripts/DataAnalyExample.R
no_license
dpritchLibre/DSP_Software
R
false
false
1,569
r
# Read in data ----------------------------------------------------------------- { if (Sys.info()[8] == "dpritch") { setwd("/home/dpritch/Documents/Projects/Dunson Day Specific/Software") outPath <- "/home/dpritch/Documents/Projects/Dunson Day Specific/Software/Output" } else { setwd("/Users/Sam/Docu...
# PROBLEM 1 - EXPLORATION AND LOGISTIC REGRESSION gerber <- read.csv("gerber.csv") # What proportion of people in this dataset voted in this election? mean(gerber$voting) # Which of the four "treatment groups" had the largest percentage of people who actually voted (voting = 1)? neiVote <- gerber$neighbors[gerber$vot...
/Week4/Assignment1.R
no_license
Abhigpt92/MITx-The-Analytics-Edge
R
false
false
4,869
r
# PROBLEM 1 - EXPLORATION AND LOGISTIC REGRESSION gerber <- read.csv("gerber.csv") # What proportion of people in this dataset voted in this election? mean(gerber$voting) # Which of the four "treatment groups" had the largest percentage of people who actually voted (voting = 1)? neiVote <- gerber$neighbors[gerber$vot...
#setwd("~/NYCDSA/Data_Analysis_With_R/shinyProject") library(tidyverse) library(ggplot2) library(googleVis) # Reading the csv files into list of data frames vax_names <- list.files(path = './immunization_coverage', pattern = '*.csv', full.names = FALSE) vax_filepaths <- paste0('./immunization_coverage/', vax_names)...
/global.R
no_license
cosmochoi/WHO_Immunization_Trends
R
false
false
2,613
r
#setwd("~/NYCDSA/Data_Analysis_With_R/shinyProject") library(tidyverse) library(ggplot2) library(googleVis) # Reading the csv files into list of data frames vax_names <- list.files(path = './immunization_coverage', pattern = '*.csv', full.names = FALSE) vax_filepaths <- paste0('./immunization_coverage/', vax_names)...
setwd("C:\\Users\\shikhagarg.CORP\\Documents\\R\\dyd\\test-date-your-data") test = read.csv("test.csv") internship = read.csv("Internship.csv") student = read.csv("Student.csv") test_int = left_join(test, internship) test_int_f = test_int[which(colnames(test_int) %in% c("Internship_Profile","Start_Date","Skills_...
/test_dyd.R
no_license
shikhagarg0192/Analytics_vidya
R
false
false
4,513
r
setwd("C:\\Users\\shikhagarg.CORP\\Documents\\R\\dyd\\test-date-your-data") test = read.csv("test.csv") internship = read.csv("Internship.csv") student = read.csv("Student.csv") test_int = left_join(test, internship) test_int_f = test_int[which(colnames(test_int) %in% c("Internship_Profile","Start_Date","Skills_...
testlist <- list(mu = 4.94660802946055e+173, var = -9.25517680478241e+61) result <- do.call(metafolio:::est_beta_params,testlist) str(result)
/metafolio/inst/testfiles/est_beta_params/libFuzzer_est_beta_params/est_beta_params_valgrind_files/1612988077-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
141
r
testlist <- list(mu = 4.94660802946055e+173, var = -9.25517680478241e+61) result <- do.call(metafolio:::est_beta_params,testlist) str(result)
EntitiesBios <- fread("data/VentureSource/EntitiesBios.csv") Deals <- unique(fread("raw/VentureSource/01Deals.csv")[ , .(EntityID,EntityName, FoundingDate = StartDate)]) setkey(Deals,EntityID) setkey(EntitiesBios,EntityID) EntitiesBios <- Deals[EntitiesBios] # Save data fwrite(EntitiesBios,"data/VentureSource/Ent...
/empirics/code/VentureSource/linkEntitiesToEntityNamesAndFoundingDates.R
no_license
nfernandez-arias/Endogenous-growth-with-spinouts
R
false
false
390
r
EntitiesBios <- fread("data/VentureSource/EntitiesBios.csv") Deals <- unique(fread("raw/VentureSource/01Deals.csv")[ , .(EntityID,EntityName, FoundingDate = StartDate)]) setkey(Deals,EntityID) setkey(EntitiesBios,EntityID) EntitiesBios <- Deals[EntitiesBios] # Save data fwrite(EntitiesBios,"data/VentureSource/Ent...
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test VendorOrderSubmissionSingleResponse") model.instance <- VendorOrderSubmissionSingleResponse$new() test_that("@context", { # tests for the property `@context` (array[character]) # T...
/tests/testthat/test_vendor_order_submission_single_response.R
no_license
Breeding-Insight/brapi-r-v2
R
false
false
1,065
r
# Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate context("Test VendorOrderSubmissionSingleResponse") model.instance <- VendorOrderSubmissionSingleResponse$new() test_that("@context", { # tests for the property `@context` (array[character]) # T...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/decompress_gii.R \name{decompress_gii} \alias{decompress_gii} \title{Decompress Gzipped GIFTI (with extension .gz)} \usage{ decompress_gii(file) } \arguments{ \item{file}{file name of GIFTI file} } \value{ Filename of decompressed GIFTI } \de...
/man/decompress_gii.Rd
no_license
muschellij2/gifti
R
false
true
636
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/decompress_gii.R \name{decompress_gii} \alias{decompress_gii} \title{Decompress Gzipped GIFTI (with extension .gz)} \usage{ decompress_gii(file) } \arguments{ \item{file}{file name of GIFTI file} } \value{ Filename of decompressed GIFTI } \de...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gold_pdf.R \name{gold_pdf} \alias{gold_pdf} \title{Estimate of PDF from GOLD} \usage{ gold_pdf(x, gold_output, burnin = NA) } \arguments{ \item{x}{A single value or vector of values at which to calculate the PDF. These values are to be entere...
/man/gold_pdf.Rd
no_license
reykp/biRd
R
false
true
2,975
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gold_pdf.R \name{gold_pdf} \alias{gold_pdf} \title{Estimate of PDF from GOLD} \usage{ gold_pdf(x, gold_output, burnin = NA) } \arguments{ \item{x}{A single value or vector of values at which to calculate the PDF. These values are to be entere...
#--------------------------------------------------LOAD-------------------------------------------------------# rm(list = ls()) #set directory setwd("/Users/chloeli/Documents/02. EmailPrediction_CL/011.Data") #load neccessary packages #Note, you might need to install pacman first pacman::p_load("party","gridExtra","gg...
/012.SandBox/ctreeTry.R
no_license
chloeMobovida/Email-Prediction-Analysis
R
false
false
1,337
r
#--------------------------------------------------LOAD-------------------------------------------------------# rm(list = ls()) #set directory setwd("/Users/chloeli/Documents/02. EmailPrediction_CL/011.Data") #load neccessary packages #Note, you might need to install pacman first pacman::p_load("party","gridExtra","gg...
#' read control file from SS #' #' Read Stock Synthesis control file into list object in R. This function is a #' wrapper which calls either SS_readctl_3.24 or SS_readctl_3.30 (not yet written). #' This setup allows those functions to be cleaner (if somewhat redundant) #' than a single function that attempts to do eve...
/R/SS_readctl.R
no_license
thefaylab/r4ss
R
false
false
3,511
r
#' read control file from SS #' #' Read Stock Synthesis control file into list object in R. This function is a #' wrapper which calls either SS_readctl_3.24 or SS_readctl_3.30 (not yet written). #' This setup allows those functions to be cleaner (if somewhat redundant) #' than a single function that attempts to do eve...
# Load packages library(readr) library(dplyr) library(ggplot2) setwd("/Users/jessymin/Documents/instacart_data_analysis") # Load data setwd("/Users/jessymin/Documents/instacart_dataset/data") department <- read_csv('departments.csv') aisle <- read_csv('aisles.csv') product <- read_csv('products.csv') product <- pro...
/preprocessing.R
no_license
JessyMin/instacart_data_analysis
R
false
false
2,440
r
# Load packages library(readr) library(dplyr) library(ggplot2) setwd("/Users/jessymin/Documents/instacart_data_analysis") # Load data setwd("/Users/jessymin/Documents/instacart_dataset/data") department <- read_csv('departments.csv') aisle <- read_csv('aisles.csv') product <- read_csv('products.csv') product <- pro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{url_decode} \alias{url_decode} \alias{url_encode} \title{Encode or decode a URI} \usage{ url_decode(urls) url_encode(urls) } \arguments{ \item{urls}{a vector of URLs to decode or encode.} } \value{ a character vector cont...
/man/encoder.Rd
permissive
quartin/urltools
R
false
true
2,709
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{url_decode} \alias{url_decode} \alias{url_encode} \title{Encode or decode a URI} \usage{ url_decode(urls) url_encode(urls) } \arguments{ \item{urls}{a vector of URLs to decode or encode.} } \value{ a character vector cont...
setwd("~/Documents/GitHub/RProjectsVL/") getwd() pkgs <- c("scales","car","RColorBrewer", "scatterplot3d","plot3D","lattice", "dplyr","knitr") for (pkg in pkgs) { if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) } require(pkg, character.only = TRUE) } rm(pkgs, pkg) # R...
/Code/Project 1.R
no_license
vmlo222/RProjectsVL
R
false
false
12,713
r
setwd("~/Documents/GitHub/RProjectsVL/") getwd() pkgs <- c("scales","car","RColorBrewer", "scatterplot3d","plot3D","lattice", "dplyr","knitr") for (pkg in pkgs) { if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) } require(pkg, character.only = TRUE) } rm(pkgs, pkg) # R...
### Noch Frage stellen!!! #Stackoverflow library(shiny) ui <- shinyUI(pageWithSidebar( headerPanel("Header"), sidebarPanel( conditionalPanel( condition = "input.tabselected ==1", sliderInput( inputId = "slider1", label = "Slider 1", ...
/fuer_Stackoverflow/app.R
no_license
Kale14/shiny_apps
R
false
false
3,040
r
### Noch Frage stellen!!! #Stackoverflow library(shiny) ui <- shinyUI(pageWithSidebar( headerPanel("Header"), sidebarPanel( conditionalPanel( condition = "input.tabselected ==1", sliderInput( inputId = "slider1", label = "Slider 1", ...
## ## Titanic Analysis using MLR ## ## Libraries library(tidyverse) ## Read in the Data titanic.train <- read.csv(file = "../Data/train.csv", stringsAsFactors = FALSE) titanic.test <- read.csv(file="../Data/test.csv", stringsAsFactors = FALSE) titanic <- bind_rows(titanic.train, titanic.test) ## Take a quick look at...
/Titanic/TitanicModels.R
no_license
skylerg022/nlp-twitter-disaster
R
false
false
8,573
r
## ## Titanic Analysis using MLR ## ## Libraries library(tidyverse) ## Read in the Data titanic.train <- read.csv(file = "../Data/train.csv", stringsAsFactors = FALSE) titanic.test <- read.csv(file="../Data/test.csv", stringsAsFactors = FALSE) titanic <- bind_rows(titanic.train, titanic.test) ## Take a quick look at...
#' --- #' title: "Test: term_rprofile" #' author: "Ivan Jacob Agaloos Pesigan" #' date: "`r Sys.Date()`" #' output: rmarkdown::html_vignette #' vignette: > #' %\VignetteIndexEntry{Test: term_rprofile} #' %\VignetteEngine{knitr::rmarkdown} #' %\VignetteEncoding{UTF-8} #' --- #' #+ include=FALSE, cache=FALSE knitr:...
/tests/testthat/test_term_rprofile.R
permissive
jeksterslabds/jeksterslabRterm
R
false
false
1,148
r
#' --- #' title: "Test: term_rprofile" #' author: "Ivan Jacob Agaloos Pesigan" #' date: "`r Sys.Date()`" #' output: rmarkdown::html_vignette #' vignette: > #' %\VignetteIndexEntry{Test: term_rprofile} #' %\VignetteEngine{knitr::rmarkdown} #' %\VignetteEncoding{UTF-8} #' --- #' #+ include=FALSE, cache=FALSE knitr:...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mapReduce.R \name{rasterizeReduced} \alias{rasterizeReduced} \title{Convert reduced representation to full raster} \usage{ rasterizeReduced( reduced, fullRaster, newRasterCols, mapcode = names(fullRaster), ... ) } \arguments{ \item{...
/man/rasterizeReduced.Rd
no_license
cran/SpaDES.tools
R
false
true
2,764
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mapReduce.R \name{rasterizeReduced} \alias{rasterizeReduced} \title{Convert reduced representation to full raster} \usage{ rasterizeReduced( reduced, fullRaster, newRasterCols, mapcode = names(fullRaster), ... ) } \arguments{ \item{...
source("./COMMON.R") width <- 3.0 # inch height <- 3.0 # inch plot.poly <- function(v.x, v.y) polygon( c(min(v.x), v.x, max(v.x)), c(0, v.y, 0), # assuming mu = 0! border = NA, col = "#c0c0c0" ) # tau, non-informative prior tau <- exp(seq(log(1.0E-3), log(10), length = 100)) g <- c(1, 1.0E-2, 1.0E-4) ylim <- c(...
/kubobook_2012/hbm/plot.gamma.R
no_license
yoshiki146/Stat_Modelling_for_Data_Analysis
R
false
false
854
r
source("./COMMON.R") width <- 3.0 # inch height <- 3.0 # inch plot.poly <- function(v.x, v.y) polygon( c(min(v.x), v.x, max(v.x)), c(0, v.y, 0), # assuming mu = 0! border = NA, col = "#c0c0c0" ) # tau, non-informative prior tau <- exp(seq(log(1.0E-3), log(10), length = 100)) g <- c(1, 1.0E-2, 1.0E-4) ylim <- c(...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(tidyverse) library(DT) library(shiny) source("utils.R") setup_workspace() time_strings <- union(master$ti...
/app_v1.R
no_license
klausfrieler/icmpc16_escom11_shiny_programme
R
false
false
6,597
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(tidyverse) library(DT) library(shiny) source("utils.R") setup_workspace() time_strings <- union(master$ti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CIBER.R, R/detStructCIBER.R \name{CIBER} \alias{CIBER} \alias{detStructCIBER} \title{Confidence Interval-Based Estimation of Relevance (CIBER)} \usage{ CIBER(data, determinants, targets, conf.level = list(means = 0.9999, associations = 0.95...
/man/CIBER.Rd
no_license
academy-of-behavior-change/behaviorchange
R
false
true
8,518
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CIBER.R, R/detStructCIBER.R \name{CIBER} \alias{CIBER} \alias{detStructCIBER} \title{Confidence Interval-Based Estimation of Relevance (CIBER)} \usage{ CIBER(data, determinants, targets, conf.level = list(means = 0.9999, associations = 0.95...
testlist <- list(data = structure(c(7.29112200599156e-304, 3.2974655982571e-229, 6.37967266358748e-304, 0, 2.90905852271326e-319, 0, 2.17292371941896e-311, 1.88274989461794e-183, 2.65642258638294e-309, 1.61344522674997e-231, 4.80513649348264e-299, 2.37636445785166e-212, 4.94065645841247e-324, 3.79212874880738e+146,...
/distr6/inst/testfiles/C_EmpiricalMVPdf/libFuzzer_C_EmpiricalMVPdf/C_EmpiricalMVPdf_valgrind_files/1610035718-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
2,166
r
testlist <- list(data = structure(c(7.29112200599156e-304, 3.2974655982571e-229, 6.37967266358748e-304, 0, 2.90905852271326e-319, 0, 2.17292371941896e-311, 1.88274989461794e-183, 2.65642258638294e-309, 1.61344522674997e-231, 4.80513649348264e-299, 2.37636445785166e-212, 4.94065645841247e-324, 3.79212874880738e+146,...
library(rvest) setwd("~/git/digital-platform/reference/") colors <- read.csv("color.csv") col2pantone <- function(colVector){ pantone <- character(length(colVector)) for(i in 1:length(colVector)){ col <- col2rgb(colVector[i]) r <- col[1,] g <- col[2,] b <- col[3,] url <- paste0("http://www.netf...
/DevInit/R/pantone.R
no_license
akmiller01/alexm-util
R
false
false
738
r
library(rvest) setwd("~/git/digital-platform/reference/") colors <- read.csv("color.csv") col2pantone <- function(colVector){ pantone <- character(length(colVector)) for(i in 1:length(colVector)){ col <- col2rgb(colVector[i]) r <- col[1,] g <- col[2,] b <- col[3,] url <- paste0("http://www.netf...
ReadMetaData <- function(wb){ # reads a PCWG Share 01 file and returns meta data about the submission # # Args: # data.file: name of the data file to be read # # Returns: # data.frame containing data from the "Meta Data" tab require(XLConnect) # initalize the data fram data.meta = data.frame(data...
/code/ReadMetaData.R
no_license
lcameron05/PCWG-Share-01
R
false
false
10,803
r
ReadMetaData <- function(wb){ # reads a PCWG Share 01 file and returns meta data about the submission # # Args: # data.file: name of the data file to be read # # Returns: # data.frame containing data from the "Meta Data" tab require(XLConnect) # initalize the data fram data.meta = data.frame(data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Utility_functions.R \name{check_flx2015_version} \alias{check_flx2015_version} \title{Checks that FLUXNET2015 version defined correctly} \usage{ check_flx2015_version(dataset, version) } \description{ Checks that FLUXNET2015 version defined...
/man/check_flx2015_version.Rd
no_license
winggy/FluxnetLSM
R
false
true
334
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Utility_functions.R \name{check_flx2015_version} \alias{check_flx2015_version} \title{Checks that FLUXNET2015 version defined correctly} \usage{ check_flx2015_version(dataset, version) } \description{ Checks that FLUXNET2015 version defined...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/importVCF.R \name{importVCF} \alias{importVCF} \title{Import a VCF directly into MTseeker} \usage{ importVCF(x, gzip = TRUE, biscuit = FALSE, verbose = TRUE) } \arguments{ \item{x}{character, list or dataframe for file name of VCF(and BAM)} ...
/man/importVCF.Rd
no_license
nsohail19/MTseeker
R
false
true
579
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/importVCF.R \name{importVCF} \alias{importVCF} \title{Import a VCF directly into MTseeker} \usage{ importVCF(x, gzip = TRUE, biscuit = FALSE, verbose = TRUE) } \arguments{ \item{x}{character, list or dataframe for file name of VCF(and BAM)} ...
context("test layer load") avail <- available_layers() fn_names <- avail$layer_name[!(avail$local) & !grepl("cded_", avail$layer_name)] # Only test bec and tsa once in a while - they're really big fn_names <- setdiff(fn_names, c("bec", "tsa")) test_that("All sf layer function work wi...
/tests/testthat/test-data_functions.R
permissive
bcgov/bcmaps
R
false
false
741
r
context("test layer load") avail <- available_layers() fn_names <- avail$layer_name[!(avail$local) & !grepl("cded_", avail$layer_name)] # Only test bec and tsa once in a while - they're really big fn_names <- setdiff(fn_names, c("bec", "tsa")) test_that("All sf layer function work wi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_data.R \name{read.abif2} \alias{read.abif2} \title{Read FSA file} \usage{ read.abif2(filename, max.bytes.in.file = file.info(filename)$size, pied.de.pilote = 1.2, verbose = FALSE) } \arguments{ \item{filename}{The name of the file.} \...
/man/read.abif2.Rd
no_license
smaguire-neb/CEzyme
R
false
true
1,045
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_data.R \name{read.abif2} \alias{read.abif2} \title{Read FSA file} \usage{ read.abif2(filename, max.bytes.in.file = file.info(filename)$size, pied.de.pilote = 1.2, verbose = FALSE) } \arguments{ \item{filename}{The name of the file.} \...
picea.abies.volV <- function (dbh, trh, bark, units) { dmb <- dbh/10 h <- trh/10 if (bark == "ub") { dub <- dmb - ((1.07745 + 0.88992 * dmb - 0.00327 * dmb * dmb - 0.01346 * h * h + 0.03278 * dmb * dmb/(h * h))/10) } if (bark == "mb") { vol <- 0.6844 * (h^3...
/R/PiceaAbiesVolV.R
no_license
cantonfe/sitree
R
false
false
683
r
picea.abies.volV <- function (dbh, trh, bark, units) { dmb <- dbh/10 h <- trh/10 if (bark == "ub") { dub <- dmb - ((1.07745 + 0.88992 * dmb - 0.00327 * dmb * dmb - 0.01346 * h * h + 0.03278 * dmb * dmb/(h * h))/10) } if (bark == "mb") { vol <- 0.6844 * (h^3...
# Setting the working directory setwd("C:/Users/Albert Blanchart/Desktop/Applied Pharmaceuticals Bioinformatics/") # Download the data and load into R # Downloading the data fileURL <- "http://pele.farmbio.uu.se/practicalpharmbio/resources/exam.Rdata" if(!file.exists("./exam.Rdata")) { download.file(fil...
/part2.R
no_license
Changomazo/Applied-pharmaceutical-Bioinformatics
R
false
false
2,653
r
# Setting the working directory setwd("C:/Users/Albert Blanchart/Desktop/Applied Pharmaceuticals Bioinformatics/") # Download the data and load into R # Downloading the data fileURL <- "http://pele.farmbio.uu.se/practicalpharmbio/resources/exam.Rdata" if(!file.exists("./exam.Rdata")) { download.file(fil...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/1_dpm.R \docType{class} \name{dpm-class} \alias{dpm-class} \title{Dynamic Panel Model (\code{dpm}) class} \description{ Models fit using \code{\link[=dpm]{dpm()}} return values of this class, which inherits from \code{\link[lavaan]{lavaan-cla...
/man/dpm-class.Rd
no_license
zhaowill/dpm
R
false
true
642
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/1_dpm.R \docType{class} \name{dpm-class} \alias{dpm-class} \title{Dynamic Panel Model (\code{dpm}) class} \description{ Models fit using \code{\link[=dpm]{dpm()}} return values of this class, which inherits from \code{\link[lavaan]{lavaan-cla...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigateway_operations.R \name{apigateway_get_integration_response} \alias{apigateway_get_integration_response} \title{Represents a get integration response} \usage{ apigateway_get_integration_response( restApiId, resourceId, httpMethod,...
/cran/paws.networking/man/apigateway_get_integration_response.Rd
permissive
paws-r/paws
R
false
true
889
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigateway_operations.R \name{apigateway_get_integration_response} \alias{apigateway_get_integration_response} \title{Represents a get integration response} \usage{ apigateway_get_integration_response( restApiId, resourceId, httpMethod,...
`LRtest` <- function(object, splitcr = "median", se = TRUE) UseMethod("LRtest")
/R/LRtest.R
no_license
cran/eRm
R
false
false
81
r
`LRtest` <- function(object, splitcr = "median", se = TRUE) UseMethod("LRtest")
install.packages("data.table") library("data.table") getwd() setwd("C:/Users/anshu/Desktop/UNCC Courses/Advanced Business Analytics/Homework4 - Time Series Analysis") data <- fread("ATT_Twitter.csv", sep=",", header=T, strip.white = T, na.strings = c("NA","NaN","","?")) head(data) install.packages("ts", repos = "...
/Homework4.R
no_license
anshusingh43/Time-Series-Analysis-using-Twitter
R
false
false
1,752
r
install.packages("data.table") library("data.table") getwd() setwd("C:/Users/anshu/Desktop/UNCC Courses/Advanced Business Analytics/Homework4 - Time Series Analysis") data <- fread("ATT_Twitter.csv", sep=",", header=T, strip.white = T, na.strings = c("NA","NaN","","?")) head(data) install.packages("ts", repos = "...
# https://github.com/srinikumar/carvaluation/blob/master/carvaluation/carvaluation.r library(ggplot2) library(stringr) library(party) # Setting the directory - set it to yours #setwd("<Location of where your files are. Make sure that the script and data files are in the same directory>") # Note: be careful if you us...
/unda/practice/car_valuation.R
no_license
mbannert/slidedeck
R
false
false
2,057
r
# https://github.com/srinikumar/carvaluation/blob/master/carvaluation/carvaluation.r library(ggplot2) library(stringr) library(party) # Setting the directory - set it to yours #setwd("<Location of where your files are. Make sure that the script and data files are in the same directory>") # Note: be careful if you us...
png('gno2_simulation.png' ,width = 6, height = 6, units = "in", res = 200) par(mfrow=c(1,1)) tab = read.table('graph_points.txt') # simulation tab2 = read.table('old_graph_points.txt') # original plot(tab2$V1,tab2$V2,xlab=c("# Genomes"),ylab=c("h/m"),main='User_spec', col=rgb(0, 0, 0)) points(tab$V1...
/step3_conSpeciFix/simulation_master_script_v1.0_beta/make_hm_graph_points_simulation.R
no_license
lyy005/conspecifix_arbovirus
R
false
false
448
r
png('gno2_simulation.png' ,width = 6, height = 6, units = "in", res = 200) par(mfrow=c(1,1)) tab = read.table('graph_points.txt') # simulation tab2 = read.table('old_graph_points.txt') # original plot(tab2$V1,tab2$V2,xlab=c("# Genomes"),ylab=c("h/m"),main='User_spec', col=rgb(0, 0, 0)) points(tab$V1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Design.R \docType{class} \name{WeightedDesign-class} \alias{WeightedDesign-class} \title{Weighted Design} \description{ Weighted Design } \section{Slots}{ \describe{ \item{\code{Weights}}{Weights} }}
/man/WeightedDesign-class.Rd
no_license
jingyizh/RItools
R
false
true
280
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Design.R \docType{class} \name{WeightedDesign-class} \alias{WeightedDesign-class} \title{Weighted Design} \description{ Weighted Design } \section{Slots}{ \describe{ \item{\code{Weights}}{Weights} }}
library(isa2) ### Name: ppa.unique ### Title: Filter co-modules that are very similar to each other ### Aliases: ppa.unique ppa.unique,list,list-method ### Keywords: cluster ### ** Examples ## Create an PPA module set set.seed(1) insili <- ppa.in.silico(noise=0.01) ## Random seeds seeds <- generate.seeds(length=nr...
/data/genthat_extracted_code/isa2/examples/ppa.unique.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,038
r
library(isa2) ### Name: ppa.unique ### Title: Filter co-modules that are very similar to each other ### Aliases: ppa.unique ppa.unique,list,list-method ### Keywords: cluster ### ** Examples ## Create an PPA module set set.seed(1) insili <- ppa.in.silico(noise=0.01) ## Random seeds seeds <- generate.seeds(length=nr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simu.R \name{create_exp_grp} \alias{create_exp_grp} \title{Function to create the experimental group} \usage{ create_exp_grp(n, plates = NA, sex = F, age = F) } \arguments{ \item{n}{The number of patients} \item{plates}{NA by default, if you...
/man/create_exp_grp.Rd
no_license
hnlmarcus/medepir
R
false
true
646
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simu.R \name{create_exp_grp} \alias{create_exp_grp} \title{Function to create the experimental group} \usage{ create_exp_grp(n, plates = NA, sex = F, age = F) } \arguments{ \item{n}{The number of patients} \item{plates}{NA by default, if you...
#' Import NIST MSP File #' #' @description Import a NIST formatted .msp file and convert columns to numeric #' data types #' #' @param mspPath file path to NIST .msp file #' #' @return a data.table #' @export #' import_NIST_MSP <- function(mspPath){ library(mspReader) library(data.table) #Import mspData ...
/PreProcess_MSP.R
no_license
pmbrophy/PeptideML
R
false
false
9,323
r
#' Import NIST MSP File #' #' @description Import a NIST formatted .msp file and convert columns to numeric #' data types #' #' @param mspPath file path to NIST .msp file #' #' @return a data.table #' @export #' import_NIST_MSP <- function(mspPath){ library(mspReader) library(data.table) #Import mspData ...
#TEMPLATE FOR ODE FUNCTIONS LAO/RAI ModelS #shiny version of library(deSolve) library(shiny) library(TSA) ui <- fluidPage( tabsetPanel( id="panels", tabPanel(title = strong("Typology Parameters"), column(3, sliderInput(inputId="API", label = "baseline API", value = 100, min...
/v7 - Richard/app.R
no_license
SaiTheinThanTun/rm
R
false
false
37,990
r
#TEMPLATE FOR ODE FUNCTIONS LAO/RAI ModelS #shiny version of library(deSolve) library(shiny) library(TSA) ui <- fluidPage( tabsetPanel( id="panels", tabPanel(title = strong("Typology Parameters"), column(3, sliderInput(inputId="API", label = "baseline API", value = 100, min...
library(dplyr) source("fun.R") # part 1 t1 <- read_reactions("test1.txt") l1 <- trace_back_level1(x = t1) print(l1$ore_needed$Q == 31) t2 <- read_reactions("test2.txt") l2 <- trace_back_level1(x = t2) print(l2$ore_needed$Q == 165) t3 <- read_reactions("test3.txt") l3 <- trace_back_level1(x = t3) print(l3$ore_neede...
/Day14/day14.R
no_license
Darius-Jaraminas/advent_of_code_2019
R
false
false
860
r
library(dplyr) source("fun.R") # part 1 t1 <- read_reactions("test1.txt") l1 <- trace_back_level1(x = t1) print(l1$ore_needed$Q == 31) t2 <- read_reactions("test2.txt") l2 <- trace_back_level1(x = t2) print(l2$ore_needed$Q == 165) t3 <- read_reactions("test3.txt") l3 <- trace_back_level1(x = t3) print(l3$ore_neede...