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
#' RCIT - tests whether x and y are conditionally independent given z. Calls RIT if z is empty. #' @param x Random variable x. #' @param y Random variable y. #' @param z Random variable z. #' @param approx Method for approximating the null distribution. Options include: #' "lpd4," the Lindsay-Pilla-Basak method (defaul...
/src/spn/algorithms/splitting/RCIT.R
permissive
kripa-experiments/SPFlow
R
false
false
3,522
r
#' RCIT - tests whether x and y are conditionally independent given z. Calls RIT if z is empty. #' @param x Random variable x. #' @param y Random variable y. #' @param z Random variable z. #' @param approx Method for approximating the null distribution. Options include: #' "lpd4," the Lindsay-Pilla-Basak method (defaul...
rankhospital <- function(state,outcome,rank = "best"){ #Read data from the input file outcomes <- read.csv("outcome-of-care-measures.csv", colClasses = "character") sameState <- split(outcomes,outcomes$State) #Check that the state and the outcome are valid if(!stateValid(state,names(sameState))){ st...
/Rstudio_docs/Assignment3/rankhospital.R
no_license
fpasserini/DataScienceCoursera
R
false
false
2,540
r
rankhospital <- function(state,outcome,rank = "best"){ #Read data from the input file outcomes <- read.csv("outcome-of-care-measures.csv", colClasses = "character") sameState <- split(outcomes,outcomes$State) #Check that the state and the outcome are valid if(!stateValid(state,names(sameState))){ st...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotIRF.GDINA.R \name{plot.GDINA} \alias{plot.GDINA} \title{Create plots for GDINA estimates} \usage{ \method{plot}{GDINA}(x, what = "IRF", item = "all", withSE = FALSE, SE.type = 2, person = 1, att.names = NULL, ...) } \arguments{ \item{x}...
/man/plot.GDINA.Rd
no_license
momo609/GDINA
R
false
true
1,504
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotIRF.GDINA.R \name{plot.GDINA} \alias{plot.GDINA} \title{Create plots for GDINA estimates} \usage{ \method{plot}{GDINA}(x, what = "IRF", item = "all", withSE = FALSE, SE.type = 2, person = 1, att.names = NULL, ...) } \arguments{ \item{x}...
#' Retrieve a CRAN or Bioc checks or run R CMD check #' #' @inheritParams pkg_ref_cache #' @family package reference cache #' @return a \code{pkg_ref} object #' @keywords internal pkg_ref_cache.remote_checks <- function (x, ...) { UseMethod("pkg_ref_cache.remote_checks") } pkg_ref_cache.remote_checks.default <- fun...
/R/pkg_ref_cache_remote_checks.R
permissive
LucyNjoki/riskmetric
R
false
false
1,720
r
#' Retrieve a CRAN or Bioc checks or run R CMD check #' #' @inheritParams pkg_ref_cache #' @family package reference cache #' @return a \code{pkg_ref} object #' @keywords internal pkg_ref_cache.remote_checks <- function (x, ...) { UseMethod("pkg_ref_cache.remote_checks") } pkg_ref_cache.remote_checks.default <- fun...
########## # Plot 2 Line Graph # Stephen Kennedy-Clark # 21 May 2016 ########## library(data.table) # much faster to use data.table dataFile = "household_power_consumption.txt" plotData <- fread(dataFile, sep=";", header=TRUE, na.strings=c("?","NA") ) # filter data to exclude what we dont want first plotData <- plotD...
/plot2.R
no_license
stephenclark/ExData_Plotting1
R
false
false
930
r
########## # Plot 2 Line Graph # Stephen Kennedy-Clark # 21 May 2016 ########## library(data.table) # much faster to use data.table dataFile = "household_power_consumption.txt" plotData <- fread(dataFile, sep=";", header=TRUE, na.strings=c("?","NA") ) # filter data to exclude what we dont want first plotData <- plotD...
Sys.setlocale("LC_TIME", "English") #change directory to working directory setwd("c:/courses/exploratory data analysis") # load data table from file classes = c("character", "character", "character", "character", "character", "character", "character", "character", "character") data <- read.table("household_power_cons...
/plot2.R
no_license
idagani/ExData_Plotting1
R
false
false
971
r
Sys.setlocale("LC_TIME", "English") #change directory to working directory setwd("c:/courses/exploratory data analysis") # load data table from file classes = c("character", "character", "character", "character", "character", "character", "character", "character", "character") data <- read.table("household_power_cons...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stats.R \name{dgr} \alias{dgr} \alias{degree} \alias{indegree} \alias{outdegree} \alias{plot.diffnet_degSeq} \title{Indegree, outdegree and degree of the vertices} \usage{ dgr(graph, cmode = "degree", undirected = getOption("diffnet.undirecte...
/man/dgr.Rd
no_license
manlius/netdiffuseR
R
false
true
3,529
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stats.R \name{dgr} \alias{dgr} \alias{degree} \alias{indegree} \alias{outdegree} \alias{plot.diffnet_degSeq} \title{Indegree, outdegree and degree of the vertices} \usage{ dgr(graph, cmode = "degree", undirected = getOption("diffnet.undirecte...
#' Functions for listing all possible partitions or just counting the number of them #' #' The function \code{nkpartitions} lists all possible partitions of n objects in to k clusters. #' # #' @usage nkpartitions(n, k, exact = TRUE, print = FALSE) # #' nkpar(n, k) #' #' @param n Number of units/objects. #' @p...
/R/nkpartitions.R
no_license
cran/blockmodeling
R
false
false
3,503
r
#' Functions for listing all possible partitions or just counting the number of them #' #' The function \code{nkpartitions} lists all possible partitions of n objects in to k clusters. #' # #' @usage nkpartitions(n, k, exact = TRUE, print = FALSE) # #' nkpar(n, k) #' #' @param n Number of units/objects. #' @p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Clam_ind_main.R \name{Clam_ind_main} \alias{Clam_ind_main} \title{Clam bioenergetic individual model} \usage{ Clam_ind_main(userpath, forcings) } \arguments{ \item{userpath}{the path where the working folder is located} \item{forc...
/man/Clam_ind_main.Rd
no_license
juliablanchard/RAC
R
false
true
861
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Clam_ind_main.R \name{Clam_ind_main} \alias{Clam_ind_main} \title{Clam bioenergetic individual model} \usage{ Clam_ind_main(userpath, forcings) } \arguments{ \item{userpath}{the path where the working folder is located} \item{forc...
rm(list = ls()) library(data.table) library(tidyr) ###Dist year from VRI2019 vri2019 <- data.table(read.csv("J:/!Workgrp/Inventory/MPB regeneration_WenliGrp/compiled data/Lillooet/overstory_VRI2019.txt")) vri2019_poly <- unique(data.table(Plot = vri2019$Call_Num, BEC = vri2019$BEC_ZO...
/rcodes/4.2 (cont) Lillooet_data cleaning_add missing disturb date.R
permissive
bcgov/MPB-regeneration
R
false
false
2,314
r
rm(list = ls()) library(data.table) library(tidyr) ###Dist year from VRI2019 vri2019 <- data.table(read.csv("J:/!Workgrp/Inventory/MPB regeneration_WenliGrp/compiled data/Lillooet/overstory_VRI2019.txt")) vri2019_poly <- unique(data.table(Plot = vri2019$Call_Num, BEC = vri2019$BEC_ZO...
/GABI-biogeography_NEW/Paleo_analyses_NEW/Paleo_latitude.R
no_license
Dayenari/GABI-biogeography
R
false
false
9,822
r
% Auto-generated: do not edit by hand \name{htmlMulticol} \alias{htmlMulticol} \title{Multicol component} \description{ Multicol is a wrapper for the <multicol> HTML5 element. OBSOLETE: <multicol> is included for completeness, but should be avoided as it is not supported by any modern browsers. For detailed attrib...
/man/htmlMulticol.Rd
permissive
Kri1919/dash-html-components
R
false
false
3,440
rd
% Auto-generated: do not edit by hand \name{htmlMulticol} \alias{htmlMulticol} \title{Multicol component} \description{ Multicol is a wrapper for the <multicol> HTML5 element. OBSOLETE: <multicol> is included for completeness, but should be avoided as it is not supported by any modern browsers. For detailed attrib...
## Script Name: 01_tidy_data.R ## Purpose: Tidy Asha's fish data ## Initial Author: Dr. Micheline Campbell ## Contributing Authors: Dr. Asha McNeill ## Date Created: 20200424 ## Last Edited: ## By: MC ## Email: michelineleecampbell@gmail.com ## Notes: Step 1 in the how to R guide for Ash! ## ## Libraries ## ## you w...
/scripts/01_tidy_data.R
no_license
MichelineCampbell/TrainingProject
R
false
false
1,543
r
## Script Name: 01_tidy_data.R ## Purpose: Tidy Asha's fish data ## Initial Author: Dr. Micheline Campbell ## Contributing Authors: Dr. Asha McNeill ## Date Created: 20200424 ## Last Edited: ## By: MC ## Email: michelineleecampbell@gmail.com ## Notes: Step 1 in the how to R guide for Ash! ## ## Libraries ## ## you w...
movies=read.csv(file.choose()) View(movies) str(movies) library(arules) library(arulesViz) #Apriori we=apriori(as.matrix(movies[,(6:15)]),parameter = list(support=0.02,confidence=0.7,minlen=2)) we1=apriori(as.matrix(movies[,(6:15)]),parameter = list(support=0.05,confidence=0.9,minlen=3)) we inspect(head(sort(w...
/my_movies_asso.R
no_license
SarthakChitre/DS_Association-Rules
R
false
false
396
r
movies=read.csv(file.choose()) View(movies) str(movies) library(arules) library(arulesViz) #Apriori we=apriori(as.matrix(movies[,(6:15)]),parameter = list(support=0.02,confidence=0.7,minlen=2)) we1=apriori(as.matrix(movies[,(6:15)]),parameter = list(support=0.05,confidence=0.9,minlen=3)) we inspect(head(sort(w...
# Testing to see whether move to Dropbox worked. #' @title "stability-favoring" harvest control rule. Uses catch in the previous year, as well as traditional "hockey-stick" HCR parameters, to determine what the fishing rate will be in the following year. #' \code{calc.F.cfp} returns the fishing rate, given biomass and ...
/Control Rules/cfp.R
no_license
mcsiple/ff-mse2
R
false
false
5,641
r
# Testing to see whether move to Dropbox worked. #' @title "stability-favoring" harvest control rule. Uses catch in the previous year, as well as traditional "hockey-stick" HCR parameters, to determine what the fishing rate will be in the following year. #' \code{calc.F.cfp} returns the fishing rate, given biomass and ...
#' Get MAGMA Paths #' #' Gets paths to folders based on location of the GWAS summary statistics file. This avoids the GWAS sumstats folder becoming a mess. #' #' @param gwas_sumstats_path Path to the GWAS summary statistics file #' @param upstream_kb How many kb upstream of the gene should SNPs be included? #' @param d...
/R/get.magma.paths.r
no_license
mayunlong89/MAGMA_Celltyping
R
false
false
2,947
r
#' Get MAGMA Paths #' #' Gets paths to folders based on location of the GWAS summary statistics file. This avoids the GWAS sumstats folder becoming a mess. #' #' @param gwas_sumstats_path Path to the GWAS summary statistics file #' @param upstream_kb How many kb upstream of the gene should SNPs be included? #' @param d...
\name{labkey.getDefaultViewDetails} \alias{labkey.getDefaultViewDetails} \title{Retrieve the fields of a LabKey query view} \description{ Fetch a list of output fields and their attributes that are avaialble from the default view of a given query} \usage{ labkey.getDefaultViewDetails(baseUrl, folderPath, schemaName...
/Rlabkey/man/labkey.getDefaultViewDetails.Rd
permissive
LabKey/labkey-api-r
R
false
false
2,059
rd
\name{labkey.getDefaultViewDetails} \alias{labkey.getDefaultViewDetails} \title{Retrieve the fields of a LabKey query view} \description{ Fetch a list of output fields and their attributes that are avaialble from the default view of a given query} \usage{ labkey.getDefaultViewDetails(baseUrl, folderPath, schemaName...
#get classifcation rasters of soil vs urban and soil vs roof. #gather soils of both #classify soil types library(caret) library(randomForest) library(e1071) library(raster) library(maptools) library(RStoolbox) library(rgeos) library(parallel) #input data soilurban <- raster(file.choose()) soilroof <- raster(file.choo...
/classify soil types.R
no_license
yangxhcaf/Randomforest-classification
R
false
false
4,029
r
#get classifcation rasters of soil vs urban and soil vs roof. #gather soils of both #classify soil types library(caret) library(randomForest) library(e1071) library(raster) library(maptools) library(RStoolbox) library(rgeos) library(parallel) #input data soilurban <- raster(file.choose()) soilroof <- raster(file.choo...
# Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # training_set = subset(dataset, split == TRU...
/Part 2 - Regression/R/RandomForest_regression.R
no_license
its-Kumar/Machine-Learning
R
false
false
1,246
r
# Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # training_set = subset(dataset, split == TRU...
library(moments) ### Name: central2raw ### Title: Central to raw moments ### Aliases: central2raw ### Keywords: math univar ### ** Examples set.seed(1234) x <- rnorm(10000) mu.raw.x <- all.moments( x, order.max=4 ) eta.x <- mu.raw.x[2] mu.central.x <- all.moments( x, central=TRUE, order.max=4 ) central2raw( mu.cent...
/data/genthat_extracted_code/moments/examples/central2raw.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
741
r
library(moments) ### Name: central2raw ### Title: Central to raw moments ### Aliases: central2raw ### Keywords: math univar ### ** Examples set.seed(1234) x <- rnorm(10000) mu.raw.x <- all.moments( x, order.max=4 ) eta.x <- mu.raw.x[2] mu.central.x <- all.moments( x, central=TRUE, order.max=4 ) central2raw( mu.cent...
library(rpart) # load credit_train, credit_test load("data/credit_ch1_train_test.RData") # Train the model (to predict 'default') credit_model <- rpart(formula = default ~ ., data = credit_train, method = "class") # Look at the model output ...
/exercises/solution_01_08.R
permissive
open-data-courses/tree-based-models-in-r
R
false
false
342
r
library(rpart) # load credit_train, credit_test load("data/credit_ch1_train_test.RData") # Train the model (to predict 'default') credit_model <- rpart(formula = default ~ ., data = credit_train, method = "class") # Look at the model output ...
# set working directory setwd("~/R/Hopkins_Data_Science_Specialization/Exploratory_Data_Analysis/Course_Project_2") # original file URL downloadUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" # file check if (!file.exists("summarySCC_PM25.rds") | !file.exists("Source_Classification_Code....
/Course_Project_2/plot2.R
no_license
benjamin22-314/Exploratory_Data_Analysis
R
false
false
1,487
r
# set working directory setwd("~/R/Hopkins_Data_Science_Specialization/Exploratory_Data_Analysis/Course_Project_2") # original file URL downloadUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" # file check if (!file.exists("summarySCC_PM25.rds") | !file.exists("Source_Classification_Code....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wrapper_scPipeCPP.R \name{sc_gene_counting} \alias{sc_gene_counting} \title{sc_gene_counting} \usage{ sc_gene_counting(outdir, bc_anno, UMI_cor = 1, gene_fl = FALSE) } \arguments{ \item{outdir}{output folder that contains \code{sc_demultiplex...
/man/sc_gene_counting.Rd
no_license
mritchie/scPipe
R
false
true
1,029
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wrapper_scPipeCPP.R \name{sc_gene_counting} \alias{sc_gene_counting} \title{sc_gene_counting} \usage{ sc_gene_counting(outdir, bc_anno, UMI_cor = 1, gene_fl = FALSE) } \arguments{ \item{outdir}{output folder that contains \code{sc_demultiplex...
rm(list = ls()) source("functions_subtyping.R") A_out <- read.csv("PPCGUKA_wgd_ordering_plot_file.txt", sep = "\t") B_out <- read.csv("PPCGUKB_wgd_ordering_plot_file.txt", sep = "\t") plot_A=plot_tm_ordering(A_out, "UKA") plot_B=plot_tm_ordering(B_out, "UKB") combined_orderings <- grid.arrange(plot_A, plot_B, ncol=2...
/R/tm_UK_orderingplot.R
permissive
mairenileath/PLTimeR
R
false
false
417
r
rm(list = ls()) source("functions_subtyping.R") A_out <- read.csv("PPCGUKA_wgd_ordering_plot_file.txt", sep = "\t") B_out <- read.csv("PPCGUKB_wgd_ordering_plot_file.txt", sep = "\t") plot_A=plot_tm_ordering(A_out, "UKA") plot_B=plot_tm_ordering(B_out, "UKB") combined_orderings <- grid.arrange(plot_A, plot_B, ncol=2...
library('shiny') library('genoPlotR') library(uuid) library(shinyjs) options(shiny.maxRequestSize=8*1024^2, shiny.reactlog=FALSE) shinyServer(function(input, output, session) { hideTab("vchot6ss", "results") observeEvent(input$submit, { shiny::validate( need(input$fastaFile, "Please select a file to ...
/t6ss/server.R
permissive
jordanlab/vibriocholera.com
R
false
false
1,799
r
library('shiny') library('genoPlotR') library(uuid) library(shinyjs) options(shiny.maxRequestSize=8*1024^2, shiny.reactlog=FALSE) shinyServer(function(input, output, session) { hideTab("vchot6ss", "results") observeEvent(input$submit, { shiny::validate( need(input$fastaFile, "Please select a file to ...
# ================== # = Load Libraries = # ================== library(circular) library(raster) library(SDMTools) library(maps) # =============================== # = Guess appropriate directory = # =============================== if(Sys.info()["sysname"]=="Linux"){ setwd("~/Documents/School&Work/pinskyPost") }else...
/Scripts/Figures/plotHadISST.R
no_license
rBatt/trawl
R
false
false
5,748
r
# ================== # = Load Libraries = # ================== library(circular) library(raster) library(SDMTools) library(maps) # =============================== # = Guess appropriate directory = # =============================== if(Sys.info()["sysname"]=="Linux"){ setwd("~/Documents/School&Work/pinskyPost") }else...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "heart-statlog") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearn...
/models/openml_heart-statlog/classification_class/55d9da4cd3a5ba736e76f5ad1e8b9eb5/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
1,474
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "heart-statlog") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearn...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exploysPipline.R \name{twoGroupComp} \alias{twoGroupComp} \title{This is a wrapper function to streamline the analysis pipeline} \usage{ twoGroupComp(group1, group2, category, subcat = NULL, or = TRUE, conf = FALSE, tests = "goodness") } \a...
/man/twoGroupComp.Rd
no_license
thunder001/exploys
R
false
true
1,040
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exploysPipline.R \name{twoGroupComp} \alias{twoGroupComp} \title{This is a wrapper function to streamline the analysis pipeline} \usage{ twoGroupComp(group1, group2, category, subcat = NULL, or = TRUE, conf = FALSE, tests = "goodness") } \a...
########################## 02_baselines_results ################################ ################################################################################ ######################### Evaluation of baseline results ####################### ############################################################################...
/01_baselines/archive/02_baselines_results.R
no_license
thfuchs/MAcode
R
false
false
2,339
r
########################## 02_baselines_results ################################ ################################################################################ ######################### Evaluation of baseline results ####################### ############################################################################...
context("lm") sc <- testthat_spark_connection() expect_coef_equal <- function(lhs, rhs) { nm <- names(lhs) lhs <- lhs[nm] rhs <- rhs[nm] expect_true(all.equal(lhs, rhs, tolerance = 0.01)) } test_that("ml_linear_regression and 'penalized' produce similar model fits", { skip_on_cran() skip_if_not_installed...
/tests/testthat/test-ml-linear-regression.R
permissive
gfrmin/sparklyr
R
false
false
1,012
r
context("lm") sc <- testthat_spark_connection() expect_coef_equal <- function(lhs, rhs) { nm <- names(lhs) lhs <- lhs[nm] rhs <- rhs[nm] expect_true(all.equal(lhs, rhs, tolerance = 0.01)) } test_that("ml_linear_regression and 'penalized' produce similar model fits", { skip_on_cran() skip_if_not_installed...
##--------------------------------------------------------------- ## Required libraries ##--------------------------------------------------------------- #----- Parallel computing library(doParallel) #----- Make clusters based on the number of CPU cores cl<-makeCluster(4) registerDoParallel(cl) getDoParWorkers() #-...
/Plot_Surface2.R
no_license
lit777/MultipleMediators
R
false
false
1,631
r
##--------------------------------------------------------------- ## Required libraries ##--------------------------------------------------------------- #----- Parallel computing library(doParallel) #----- Make clusters based on the number of CPU cores cl<-makeCluster(4) registerDoParallel(cl) getDoParWorkers() #-...
\name{price.gb.option} \alias{price.gb.option} \title{Generalized Beta Option Pricing} \description{ \code{price.gb.option} computes the price of options. } \usage{ price.gb.option(r, te, s0, k, y, a, b, v, w) } \arguments{ \item{r}{risk free interest rate} \item{te}{time to expiration} \item{s0}{cu...
/man/price.gb.option.Rd
no_license
freephys/RND
R
false
false
1,931
rd
\name{price.gb.option} \alias{price.gb.option} \title{Generalized Beta Option Pricing} \description{ \code{price.gb.option} computes the price of options. } \usage{ price.gb.option(r, te, s0, k, y, a, b, v, w) } \arguments{ \item{r}{risk free interest rate} \item{te}{time to expiration} \item{s0}{cu...
library(dplyr) library(googleVis) options(stringsAsFactors = FALSE) stats.df <- read.csv('stats_2009-2015.csv', stringsAsFactors = FALSE) stats.df[is.na(stats.df)] <- 0 team.name.list <- c("Arizona Cardinals", "Atlanta Falcons", "Baltimore Ravens", "Buffalo Bills", "Carolina Panthers", "Chicago...
/newShiny/global.R
no_license
lchu122/NFL-Compare
R
false
false
6,712
r
library(dplyr) library(googleVis) options(stringsAsFactors = FALSE) stats.df <- read.csv('stats_2009-2015.csv', stringsAsFactors = FALSE) stats.df[is.na(stats.df)] <- 0 team.name.list <- c("Arizona Cardinals", "Atlanta Falcons", "Baltimore Ravens", "Buffalo Bills", "Carolina Panthers", "Chicago...
#run ssgsea C7 gmt file ##############gsva library(GSVA) library(Biobase) #library(readgmt) ### #' @export read_gmt read_gmt <- function(file, tidy = FALSE) { con <- file(file, "r") gmt_lines <- readLines(file, warn = FALSE) close(con) rlist <- purrr::map(gmt_lines, parse_gmt_lines) rlist_names <- purrr::map_...
/9.AZAdata.GBM/GSE51811/ssgsea/run.gsva.hallmarker.aza.GSE51811.R
no_license
LovelyMonkey123/immune.overdrive
R
false
false
2,327
r
#run ssgsea C7 gmt file ##############gsva library(GSVA) library(Biobase) #library(readgmt) ### #' @export read_gmt read_gmt <- function(file, tidy = FALSE) { con <- file(file, "r") gmt_lines <- readLines(file, warn = FALSE) close(con) rlist <- purrr::map(gmt_lines, parse_gmt_lines) rlist_names <- purrr::map_...
library(openxlsx) library(reshape) library(ggplot2) library(sqldf) #set working directing using input args path = commandArgs(trailingOnly=TRUE) setwd(path) #PLOT ELECTRICITY OUTPUT OF TECHNOLOGIES PER HOUR data = read.xlsx("results_conversion.xlsx","Output_energy_Elec") data_stor = read.xlsx("results_storage.xlsx",...
/analysis_scripts/hslu_lecture/generate_plots.R
no_license
cremimau/ehub-modeling-tool
R
false
false
9,247
r
library(openxlsx) library(reshape) library(ggplot2) library(sqldf) #set working directing using input args path = commandArgs(trailingOnly=TRUE) setwd(path) #PLOT ELECTRICITY OUTPUT OF TECHNOLOGIES PER HOUR data = read.xlsx("results_conversion.xlsx","Output_energy_Elec") data_stor = read.xlsx("results_storage.xlsx",...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/os.manage.R \name{os.manage} \alias{os.manage} \title{Gives managing option to the current OS (shutdown, restart, sleep, hibernate, etc...)} \usage{ os.manage(GUI = TRUE, ask = TRUE, ...) } \arguments{ \item{GUI}{a logical indicating whether ...
/man/os.manage.Rd
no_license
zengfengbo/installr
R
false
true
1,626
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/os.manage.R \name{os.manage} \alias{os.manage} \title{Gives managing option to the current OS (shutdown, restart, sleep, hibernate, etc...)} \usage{ os.manage(GUI = TRUE, ask = TRUE, ...) } \arguments{ \item{GUI}{a logical indicating whether ...
i = 119 library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/") bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed" setwd("/lustre/scr/w/e/weisun/TCGA/bam/") cmd = "ls *_asCounts_hetSNP_EA_hap1.bam" ffs = system(cmd, intern=TRUE) length(ffs) head(ffs) sams = gsub(...
/data_preparation/R_batch3/_step3/step3_countReads_EA.118.R
no_license
jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples
R
false
false
651
r
i = 119 library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/") bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed" setwd("/lustre/scr/w/e/weisun/TCGA/bam/") cmd = "ls *_asCounts_hetSNP_EA_hap1.bam" ffs = system(cmd, intern=TRUE) length(ffs) head(ffs) sams = gsub(...
rm(list=ls(all=TRUE)) library("arm") library("foreign") #read in megapoll and attach marriage.data <- read.dta("data/gay_marriage_megapoll.dta", convert.underscore = TRUE) #read in state-level dataset Statelevel <- read.dta("data/state_level_update.dta",convert.underscore = TRUE) Statelevel <- Statelevel[order(Sta...
/script.R
no_license
medewitt/mrp_example
R
false
false
3,702
r
rm(list=ls(all=TRUE)) library("arm") library("foreign") #read in megapoll and attach marriage.data <- read.dta("data/gay_marriage_megapoll.dta", convert.underscore = TRUE) #read in state-level dataset Statelevel <- read.dta("data/state_level_update.dta",convert.underscore = TRUE) Statelevel <- Statelevel[order(Sta...
## Utilities for the Harwell-Boeing and MatrixMarket formats readone <- function(ln, iwd, nper, conv) { ln <- gsub("D", "E", ln) inds <- seq(0, by = iwd, length = nper + 1) (conv)(substring(ln, 1 + inds[-length(inds)], inds[-1])) } readmany <- function(conn, nlines, nvals, fmt, conv) { if (!grep("[[:d...
/branches/Matrix-mer2/R/HBMM.R
no_license
LTLA/Matrix
R
false
false
5,150
r
## Utilities for the Harwell-Boeing and MatrixMarket formats readone <- function(ln, iwd, nper, conv) { ln <- gsub("D", "E", ln) inds <- seq(0, by = iwd, length = nper + 1) (conv)(substring(ln, 1 + inds[-length(inds)], inds[-1])) } readmany <- function(conn, nlines, nvals, fmt, conv) { if (!grep("[[:d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_similarity.R \name{chisq.perm} \alias{chisq.perm} \title{Chi-square permutation test} \usage{ chisq.perm(df1, df2, size = 10000, nperm = 10000) } \arguments{ \item{df1}{a one-column data frame storing feature values} \item{df2}{a one...
/man/chisq.perm.Rd
permissive
anu-bioinfo/Mocap
R
false
true
692
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_similarity.R \name{chisq.perm} \alias{chisq.perm} \title{Chi-square permutation test} \usage{ chisq.perm(df1, df2, size = 10000, nperm = 10000) } \arguments{ \item{df1}{a one-column data frame storing feature values} \item{df2}{a one...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/mepstrends/hc_use/json/code/r/totEXP__health__sex__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
1,654
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
source("include.R") #plot of the frequencies of the true population pdf("fig/fig-truepop-spectrum.pdf", width = 8, height = 6) plot(sort(true_pop$counts, decreasing = TRUE), xlab = "h", ylab = expression(n[h])) dev.off() #proportion of singletons sum(true_pop$counts == 1L) / sum(true_pop$counts)
/analyses/y23-European-5-loci/analyse-population.R
no_license
mikldk/rare-haplotype
R
false
false
301
r
source("include.R") #plot of the frequencies of the true population pdf("fig/fig-truepop-spectrum.pdf", width = 8, height = 6) plot(sort(true_pop$counts, decreasing = TRUE), xlab = "h", ylab = expression(n[h])) dev.off() #proportion of singletons sum(true_pop$counts == 1L) / sum(true_pop$counts)
#Bayes vs ML exercise #Brian O'Meara, 9 Aug 2014 #let's look at a log likelihood plot xvals<-seq(from=-1, to=1, length.out=1000) plot(xvals, log(sapply(xvals, dnorm, mean=0, sd=4)), type="l", bty="n", xlab="value", ylab="Log likelihood",ylim=c(-2,2)) abline(h=0, lty="dotted") sd.vector <- seq(from=1, to=0.05, length....
/Exercis_5.1/BayesVsMLExerciseAnswers.R
no_license
helixcn/EQG2014
R
false
false
5,494
r
#Bayes vs ML exercise #Brian O'Meara, 9 Aug 2014 #let's look at a log likelihood plot xvals<-seq(from=-1, to=1, length.out=1000) plot(xvals, log(sapply(xvals, dnorm, mean=0, sd=4)), type="l", bty="n", xlab="value", ylab="Log likelihood",ylim=c(-2,2)) abline(h=0, lty="dotted") sd.vector <- seq(from=1, to=0.05, length....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotTss.R \name{plotTss} \alias{plotTss} \title{plotTss} \usage{ plotTss(all_cordf, deg_cordf, xlim = c(-2, 2), ylim = c(-10, 10), interesting_genes, title) } \description{ produce plot as in Figure 3C and 3D }
/chromatin_accessibility_in_human_prostate_cancer_progression/gene_expression/myhelpers/man/plotTss.Rd
permissive
NykterLab/Tampere_PC
R
false
true
291
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotTss.R \name{plotTss} \alias{plotTss} \title{plotTss} \usage{ plotTss(all_cordf, deg_cordf, xlim = c(-2, 2), ylim = c(-10, 10), interesting_genes, title) } \description{ produce plot as in Figure 3C and 3D }
## File Name: tam_import_MASS_ginv.R ## File Version: 0.02 tam_import_MASS_ginv <- function(X, ...) { require_namespace_msg("MASS") y <- MASS::ginv(X=X, ...) return(y) }
/R/tam_import_MASS_ginv.R
no_license
alexanderrobitzsch/TAM
R
false
false
183
r
## File Name: tam_import_MASS_ginv.R ## File Version: 0.02 tam_import_MASS_ginv <- function(X, ...) { require_namespace_msg("MASS") y <- MASS::ginv(X=X, ...) return(y) }
#' Fuzzy match plant names according to the Leipzig Catalogue of Plants (LCVP) #' #' Same as \code{\link[lcvplants:lcvp_search]{lcvp_search}}, but it returns #' all matches from a fuzzy search of plant taxa names listed in the "Leipzig #' Catalogue of Vascular Plants" (LCVP). #' #' @param splist A character vector spec...
/R/lcvp_fuzzy_search.R
permissive
idiv-biodiversity/lcvplants
R
false
false
11,072
r
#' Fuzzy match plant names according to the Leipzig Catalogue of Plants (LCVP) #' #' Same as \code{\link[lcvplants:lcvp_search]{lcvp_search}}, but it returns #' all matches from a fuzzy search of plant taxa names listed in the "Leipzig #' Catalogue of Vascular Plants" (LCVP). #' #' @param splist A character vector spec...
#' Change the unit of figure size #' #' By default, figure size of R Markdown is specified with inches. #' This function changes the default unit. #' #' As a side effect, `fig.retina` is set to `NULL` because of #' <https://github.com/yihui/knitr/issues/1876>. #' #' @param unit A string of an unit (default: "mm"). Avai...
/R/hook_figure_unit.R
no_license
cran/chunkhooks
R
false
false
1,205
r
#' Change the unit of figure size #' #' By default, figure size of R Markdown is specified with inches. #' This function changes the default unit. #' #' As a side effect, `fig.retina` is set to `NULL` because of #' <https://github.com/yihui/knitr/issues/1876>. #' #' @param unit A string of an unit (default: "mm"). Avai...
#Import the Data getwd() setwd("C:\\Users\\user\\Documents\\R\\Udemy_R_AZ") mov <- read.csv("Section6-Homework-Data.csv") #Data Exploration head(mov) #top rows summary(mov) #column summaries str(mov) #structure of the dataset #Activate GGPlot2 #install.packages("ggplot2") library(ggplot2) #{Offtopic} This Is A Cool ...
/Section6-Homework-FillInTheBlanks.R
no_license
rohitturankar/R_projects_udemy
R
false
false
3,342
r
#Import the Data getwd() setwd("C:\\Users\\user\\Documents\\R\\Udemy_R_AZ") mov <- read.csv("Section6-Homework-Data.csv") #Data Exploration head(mov) #top rows summary(mov) #column summaries str(mov) #structure of the dataset #Activate GGPlot2 #install.packages("ggplot2") library(ggplot2) #{Offtopic} This Is A Cool ...
myCenter <- function(x) { if (is.numeric(x)) { return(x - mean(x)) } if (is.factor(x)) { x <- as.numeric(x) return(x - mean(x)) } if (is.data.frame(x) || is.matrix(x)) { m <- matrix(nrow=nrow(x), ncol=ncol(x)) colnames(m) <- paste("c", colnames(x), sep="") for (i in 1:ncol(x)) { if (...
/experiments/4_dp_priors_evidencestrength/results/rscripts/helpers.R
permissive
thegricean/diskurspartikeln
R
false
false
1,073
r
myCenter <- function(x) { if (is.numeric(x)) { return(x - mean(x)) } if (is.factor(x)) { x <- as.numeric(x) return(x - mean(x)) } if (is.data.frame(x) || is.matrix(x)) { m <- matrix(nrow=nrow(x), ncol=ncol(x)) colnames(m) <- paste("c", colnames(x), sep="") for (i in 1:ncol(x)) { if (...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/color-spaces.R \name{lab_to_rgb} \alias{lab_to_rgb} \title{Convert from Lab space into RGB colour channels.} \usage{ lab_to_rgb(lab, transformation = "sRGB", linear_func = NULL) } \arguments{ \item{lab}{A dataframe or matrix with L, a and b c...
/man/lab_to_rgb.Rd
no_license
stuart-morrison/schemr
R
false
true
1,176
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/color-spaces.R \name{lab_to_rgb} \alias{lab_to_rgb} \title{Convert from Lab space into RGB colour channels.} \usage{ lab_to_rgb(lab, transformation = "sRGB", linear_func = NULL) } \arguments{ \item{lab}{A dataframe or matrix with L, a and b c...
\name{swallowfarms} \alias{swallowfarms} \docType{data} \title{ Number of fledged Barn Swallows per nest } \description{ This is an adapted a data set from Grueebler et al. (2010) on Barn Swallow Hirundo rustica nestling survival (we have selected a non-random sample to be able to fit a simple model; hence, the resul...
/man/swallowfarms.Rd
no_license
fraenzi/blmeco
R
false
false
1,514
rd
\name{swallowfarms} \alias{swallowfarms} \docType{data} \title{ Number of fledged Barn Swallows per nest } \description{ This is an adapted a data set from Grueebler et al. (2010) on Barn Swallow Hirundo rustica nestling survival (we have selected a non-random sample to be able to fit a simple model; hence, the resul...
# File name: ex_pca_serial.r # Run: Rscript --vanilla ex_pca_serial.r ### PCA implication my.pca.projection <- function(X, alpha = 0.5){ ### Standardized. X.mean <- colMeans(X) X.std <- apply(X, 2, function(x) sqrt(var(x))) Y <- t((t(X) - X.mean) / X.std) ### Apply SVD. # Y.svd <- svd(Y) # u <- Y.svd$u ...
/hpsc/cookbook/ex_pca_serial.r
no_license
snoweye/snoweye.github.io
R
false
false
1,653
r
# File name: ex_pca_serial.r # Run: Rscript --vanilla ex_pca_serial.r ### PCA implication my.pca.projection <- function(X, alpha = 0.5){ ### Standardized. X.mean <- colMeans(X) X.std <- apply(X, 2, function(x) sqrt(var(x))) Y <- t((t(X) - X.mean) / X.std) ### Apply SVD. # Y.svd <- svd(Y) # u <- Y.svd$u ...
# Design an app that allows the user to set a number (x) between 1 and 50, # displaying the result of multiplying this number by 5. # This is a first attempt with an error: library(shiny) ui <- fluidPage( sliderInput("x", label = "If x is", min = 1, max = 50, value = 30), "then 5 times x is", textOutput("produ...
/test_app/2_first_shiny_app/exercise_2/app.R
no_license
portolan75/shiny
R
false
false
733
r
# Design an app that allows the user to set a number (x) between 1 and 50, # displaying the result of multiplying this number by 5. # This is a first attempt with an error: library(shiny) ui <- fluidPage( sliderInput("x", label = "If x is", min = 1, max = 50, value = 30), "then 5 times x is", textOutput("produ...
# Defines the SingleCellExperiment class. setClass("SingleCellExperiment", slots=c(int_elementMetadata = "DataFrame", int_colData = "DataFrame", int_metadata = "list", reducedDims = "SimpleList"), contains = "RangedSummarizedExperiment", pro...
/R/AllClasses.R
no_license
HePeng2016/SingleCellExperiment
R
false
false
6,777
r
# Defines the SingleCellExperiment class. setClass("SingleCellExperiment", slots=c(int_elementMetadata = "DataFrame", int_colData = "DataFrame", int_metadata = "list", reducedDims = "SimpleList"), contains = "RangedSummarizedExperiment", pro...
fileUrl1 = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if (!file.exists("./household_power_consumption.zip")) { download.file(fileUrl1, destfile = "./household_power_consumption.zip") } #read data e_pow <- read.table(unz("household_power_consumption.zip", "household_power_...
/plot2.R
no_license
sophianazarova/ExData_Plotting1
R
false
false
980
r
fileUrl1 = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if (!file.exists("./household_power_consumption.zip")) { download.file(fileUrl1, destfile = "./household_power_consumption.zip") } #read data e_pow <- read.table(unz("household_power_consumption.zip", "household_power_...
#' Gives us ortonomal basis #' #' Calculates a dot product between matrices #' #' @param x1 The first vector. #' @param x2 The second vector. #' #' @return Should give us a number. #' @export ortonormalBasis <- function(x1,x2){ x2x1 <- t(x1) %*% x2 x1x1 <- t(x1) %*% x1 v1 <- x1 v2 <- x2 - drop(x2x1/x1x1) * x1...
/R/ortonormalBasis.R
permissive
lucasbagge/LinAlg4
R
false
false
450
r
#' Gives us ortonomal basis #' #' Calculates a dot product between matrices #' #' @param x1 The first vector. #' @param x2 The second vector. #' #' @return Should give us a number. #' @export ortonormalBasis <- function(x1,x2){ x2x1 <- t(x1) %*% x2 x1x1 <- t(x1) %*% x1 v1 <- x1 v2 <- x2 - drop(x2x1/x1x1) * x1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_corr_yx.R \name{calc_corr_yx} \alias{calc_corr_yx} \title{Calculate Expected Matrix of Correlations between Outcomes (Y) and Covariates (X) for Correlated Systems of Continuous Variables} \usage{ calc_corr_yx(betas = NULL, corr.x =...
/man/calc_corr_yx.Rd
no_license
cran/SimRepeat
R
false
true
6,647
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_corr_yx.R \name{calc_corr_yx} \alias{calc_corr_yx} \title{Calculate Expected Matrix of Correlations between Outcomes (Y) and Covariates (X) for Correlated Systems of Continuous Variables} \usage{ calc_corr_yx(betas = NULL, corr.x =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oceanTime_FindFile.R \name{oceanTime_FindFile} \alias{oceanTime_FindFile} \title{Find the file in which an input ocean_time is bracketed} \usage{ oceanTime_FindFile( ocean_time, dfr_files = NULL, path = "", pattern = "*.nc", ref = a...
/man/oceanTime_FindFile.Rd
permissive
wStockhausen/wtsROMS
R
false
true
1,242
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oceanTime_FindFile.R \name{oceanTime_FindFile} \alias{oceanTime_FindFile} \title{Find the file in which an input ocean_time is bracketed} \usage{ oceanTime_FindFile( ocean_time, dfr_files = NULL, path = "", pattern = "*.nc", ref = a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gr_adjust_pval.R \name{gr_adjust_pval} \alias{gr_adjust_pval} \title{Internal. Adjust a vector of the enrichment results for multiple testing} \usage{ gr_adjust_pval(x, adjust_pval_by = "fdr", log10_transformed = FALSE) } \arguments{ \item{x}...
/man/gr_adjust_pval.Rd
no_license
mdozmorov/MDgenomerunner
R
false
true
1,074
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gr_adjust_pval.R \name{gr_adjust_pval} \alias{gr_adjust_pval} \title{Internal. Adjust a vector of the enrichment results for multiple testing} \usage{ gr_adjust_pval(x, adjust_pval_by = "fdr", log10_transformed = FALSE) } \arguments{ \item{x}...
rm(list=ls()) votes = read.csv("voting.csv", sep = ',', header = TRUE) votes = votes[-which(votes$From == "Australia" | votes$From == "Serbia and Montenegro" | votes$To == "Australia" | votes$To == "Serbia and Montenegro"),] data = aggregate(votes$Score, by = list(From = votes$From, To = votes$To), FUN = mean)...
/clustering.R
no_license
mykhailodorokhov/dm_project2016
R
false
false
1,889
r
rm(list=ls()) votes = read.csv("voting.csv", sep = ',', header = TRUE) votes = votes[-which(votes$From == "Australia" | votes$From == "Serbia and Montenegro" | votes$To == "Australia" | votes$To == "Serbia and Montenegro"),] data = aggregate(votes$Score, by = list(From = votes$From, To = votes$To), FUN = mean)...
#' Return the dates of a particular week #' @description Returns the dates of a particular week. #' The week can be defined by ISO week or epi week. #' @param year a value for the year. #' @param wkIndex a value for the week index of the year. #' @param wkMethod a character string for the week-counting method....
/R/dateFromWeek.R
no_license
cran/wktmo
R
false
false
3,135
r
#' Return the dates of a particular week #' @description Returns the dates of a particular week. #' The week can be defined by ISO week or epi week. #' @param year a value for the year. #' @param wkIndex a value for the week index of the year. #' @param wkMethod a character string for the week-counting method....
# load data data = load("/restricted/projectnb/camplab/home/syyang/contamination/data/cellBenchData/CellBench_data_08112019/data/sincell_with_class.RData") cell.lines = c("HCC827", "H1975", "H2228") counts.n.z = function(sce, cellLine=cell.lines) { counts = sce@assays$data$counts z_demuxlet = sce@colData...
/DecontX/BenchData/analysis_fix/sinCell3/celseq2.R
permissive
campbio/Manuscripts
R
false
false
874
r
# load data data = load("/restricted/projectnb/camplab/home/syyang/contamination/data/cellBenchData/CellBench_data_08112019/data/sincell_with_class.RData") cell.lines = c("HCC827", "H1975", "H2228") counts.n.z = function(sce, cellLine=cell.lines) { counts = sce@assays$data$counts z_demuxlet = sce@colData...
# Calculate variables for MMRDetect MMRDetect.compute.subcatalogue.exposure <- function(sub_cat, tissue_type,MMR_subsig96=MMRKO_subsig,tissue_subsig96){ # Generate catalouge for subs_highburden sub_catalouge <- sub_cat # Step 2: Signature fitting for subs using Andrea's tissue-specific signatures ...
/MMRDetect/MMRDetect.compute.variables.R
no_license
xqzou/COMSIG_KO
R
false
false
11,126
r
# Calculate variables for MMRDetect MMRDetect.compute.subcatalogue.exposure <- function(sub_cat, tissue_type,MMR_subsig96=MMRKO_subsig,tissue_subsig96){ # Generate catalouge for subs_highburden sub_catalouge <- sub_cat # Step 2: Signature fitting for subs using Andrea's tissue-specific signatures ...
#' Bhattacharyya distance #' #' Measures the distance between two multivariate distributions #' #' @param d1 matrix or numeric dataframe #' @param d2 matrix or numeric dataframe #' @param ... additional arguments to be passed to \code{cov} or \code{mean} #' #' @return Bhattacharyya distance #' #' @import fpc #' #'...
/R/bhatt_dist.R
no_license
Swarchal/phenoDist
R
false
false
692
r
#' Bhattacharyya distance #' #' Measures the distance between two multivariate distributions #' #' @param d1 matrix or numeric dataframe #' @param d2 matrix or numeric dataframe #' @param ... additional arguments to be passed to \code{cov} or \code{mean} #' #' @return Bhattacharyya distance #' #' @import fpc #' #'...
### Consultation Vignette : DPCS & D-Lab ### R-studio, ggplot2, geom_line(), geom_smooth() ## 2020-03-30 ## avery.richards@berkeley.edu # Documented here are the results for solving: # - "How to plot a line geom with ggplot() when we only have a frequency count of (x) ?" - # Answer: it was done by creating a "table"...
/plotting_freq_lines_with_no_y.R
no_license
Averysaurus/SF_ODM
R
false
false
4,620
r
### Consultation Vignette : DPCS & D-Lab ### R-studio, ggplot2, geom_line(), geom_smooth() ## 2020-03-30 ## avery.richards@berkeley.edu # Documented here are the results for solving: # - "How to plot a line geom with ggplot() when we only have a frequency count of (x) ?" - # Answer: it was done by creating a "table"...
# This script investigates the space of my climbing data set, to better # understand issues of collinearity and address them appropriately. # Then we perform an exhaustive search for the best model amongst my data # # MA4710 Spring 2020 # Date Last Modified: 6/27/19 # @author Daniel Henderson library(car) library(leaps...
/Project5/model_selection.R
no_license
danphenderson/regression-analysis-climbing-data
R
false
false
2,184
r
# This script investigates the space of my climbing data set, to better # understand issues of collinearity and address them appropriately. # Then we perform an exhaustive search for the best model amongst my data # # MA4710 Spring 2020 # Date Last Modified: 6/27/19 # @author Daniel Henderson library(car) library(leaps...
setwd('~/workspace/numerai/') library(Rtsne) library(caret) library(MLmetrics) ## 80% of the sample size smp_size <- floor(0.80 * nrow(trainX)) ## set the seed to make your partition reproductible set.seed(1337) train_ind <- sample(seq_len(nrow(trainX)), size = smp_size) training <- trainX[train_ind, ] testing <- t...
/numerai_rtsne-logreg.R
no_license
ekamioka/competitions_solutions
R
false
false
2,415
r
setwd('~/workspace/numerai/') library(Rtsne) library(caret) library(MLmetrics) ## 80% of the sample size smp_size <- floor(0.80 * nrow(trainX)) ## set the seed to make your partition reproductible set.seed(1337) train_ind <- sample(seq_len(nrow(trainX)), size = smp_size) training <- trainX[train_ind, ] testing <- t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RCy3.R \name{makeSimpleGraph} \alias{makeSimpleGraph} \title{Make Simple Graph} \usage{ makeSimpleGraph() } \value{ A \code{graphNEL} object with a few nodes, edges and attributes } \description{ This function creates a simple graphNEL object...
/man/makeSimpleGraph.Rd
permissive
cytoscape/RCy3
R
false
true
554
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RCy3.R \name{makeSimpleGraph} \alias{makeSimpleGraph} \title{Make Simple Graph} \usage{ makeSimpleGraph() } \value{ A \code{graphNEL} object with a few nodes, edges and attributes } \description{ This function creates a simple graphNEL object...
#' creates dataframe of row,column,data from wellID and data #' #' internal function #' #' @param data numeric data to be used as colour scale #' @param well alpha-numeric well IDs, e.g 'A01' #' @return dataframe #' @export plate_map <- function(data, well){ platemap <- as.data.frame(well) names(platemap)[1] ...
/R/plate_map.R
no_license
VizWizard/phenoScreen
R
false
false
3,402
r
#' creates dataframe of row,column,data from wellID and data #' #' internal function #' #' @param data numeric data to be used as colour scale #' @param well alpha-numeric well IDs, e.g 'A01' #' @return dataframe #' @export plate_map <- function(data, well){ platemap <- as.data.frame(well) names(platemap)[1] ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Generics.R \docType{methods} \name{id_plot,idealstan-method} \alias{id_plot,idealstan-method} \title{Plot Results of \code{\link{id_estimate}}} \usage{ \S4method{id_plot}{idealstan}(object, plot_type = "legislators", ...) } \arguments{ \item{...
/man/id_plot-idealstan-method.Rd
no_license
tz2261/idealstan
R
false
true
1,608
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Generics.R \docType{methods} \name{id_plot,idealstan-method} \alias{id_plot,idealstan-method} \title{Plot Results of \code{\link{id_estimate}}} \usage{ \S4method{id_plot}{idealstan}(object, plot_type = "legislators", ...) } \arguments{ \item{...
\name{ACC-v2.0.0} \alias{ ACC-v2.0.0 } \docType{data} \title{ Adrenocortical carcinoma } \description{ A document describing the TCGA cancer code } \details{ \preformatted{ > experiments( ACC ) ExperimentList class object of length 11: [1] ACC_CNASNP-20160128: RaggedExperiment with 79861 rows and 180 columns [2] ACC...
/man/ACC-v2.0.0.Rd
no_license
shawnspei/curatedTCGAData
R
false
false
5,266
rd
\name{ACC-v2.0.0} \alias{ ACC-v2.0.0 } \docType{data} \title{ Adrenocortical carcinoma } \description{ A document describing the TCGA cancer code } \details{ \preformatted{ > experiments( ACC ) ExperimentList class object of length 11: [1] ACC_CNASNP-20160128: RaggedExperiment with 79861 rows and 180 columns [2] ACC...
#### Sources Start ######### setwd("E:/ACUO/projects/acuo-allocation/test/v0.0.3/") source("src/generalFunctions.R") library("XLConnect") #### Sources END ########### callInfoPath <- "testNoncashInternal/callInfo.xlsx" assetInfoPath <- "testNoncashInternal/assetInfo.xlsx" availAssetPath <- "testNoncashInternal/avail...
/test/v0.0.3/testNoncashInternal/inputData.R
no_license
AcuoFS/acuo-allocation
R
false
false
3,337
r
#### Sources Start ######### setwd("E:/ACUO/projects/acuo-allocation/test/v0.0.3/") source("src/generalFunctions.R") library("XLConnect") #### Sources END ########### callInfoPath <- "testNoncashInternal/callInfo.xlsx" assetInfoPath <- "testNoncashInternal/assetInfo.xlsx" availAssetPath <- "testNoncashInternal/avail...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visualize.continuous.R \name{visualize.continuous} \alias{visualize.continuous} \title{Graphing function for Continuous Distributions.} \usage{ visualize.continuous(dist, stat = c(0, 1), params, section = "lower") } \arguments{ \item{dist}{co...
/man/visualize.continuous.Rd
permissive
coatless-rpkg/visualize
R
false
true
2,253
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/visualize.continuous.R \name{visualize.continuous} \alias{visualize.continuous} \title{Graphing function for Continuous Distributions.} \usage{ visualize.continuous(dist, stat = c(0, 1), params, section = "lower") } \arguments{ \item{dist}{co...
# SPDX-License-Identifier: MIT # Copyright (c) 2019 Taras Zakharko #' grammar-machine.R #' ------- #' Implements a DSL for specifying grammars #' #' #' #' @name grammar #' #' #' @importFrom purrr map map_chr map_lgl keep map2 map_int detect_index reduce modify_if #' @importFrom crayon %+% #' @importFrom stringr...
/R/grammar-machine.R
permissive
tzakharko/parsetools
R
false
false
28,285
r
# SPDX-License-Identifier: MIT # Copyright (c) 2019 Taras Zakharko #' grammar-machine.R #' ------- #' Implements a DSL for specifying grammars #' #' #' #' @name grammar #' #' #' @importFrom purrr map map_chr map_lgl keep map2 map_int detect_index reduce modify_if #' @importFrom crayon %+% #' @importFrom stringr...
#' Construct a analysis of variance table for multiple regression, highlighting #' the null hypothesis of no effect from any of the covariates. This table #' is common in statistical text books. #' #' @param object A fit as created by lm. #' @return A matrix with three rows, corresponing to model, error and total, #' ...
/R/traditionalanova.R
no_license
kolassa-dev/NonparametricHeuristic
R
false
false
3,190
r
#' Construct a analysis of variance table for multiple regression, highlighting #' the null hypothesis of no effect from any of the covariates. This table #' is common in statistical text books. #' #' @param object A fit as created by lm. #' @return A matrix with three rows, corresponing to model, error and total, #' ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/two-column-layouts.R \name{gt_two_column_layout} \alias{gt_two_column_layout} \title{Create a two-column layout from a list of two gt tables} \usage{ gt_two_column_layout( tables = NULL, output = "viewer", filename = NULL, path = NULL...
/man/gt_two_column_layout.Rd
permissive
adamkemberling/gtExtras
R
false
true
5,490
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/two-column-layouts.R \name{gt_two_column_layout} \alias{gt_two_column_layout} \title{Create a two-column layout from a list of two gt tables} \usage{ gt_two_column_layout( tables = NULL, output = "viewer", filename = NULL, path = NULL...
netwulf <- function(network, type = "png") { require(reticulate) tmp_dir <- tempdir() tf <- tempfile(tmpdir = tmp_dir) write_graph(network, tf, format = "graphml") nx <- import("networkx") wulf <- import("netwulf") plt <- import("matplotlib.pyplot") g <- nx$read_graphml(tf) config <-...
/netwulf.R
no_license
ramorel/netwulf_wrapper
R
false
false
499
r
netwulf <- function(network, type = "png") { require(reticulate) tmp_dir <- tempdir() tf <- tempfile(tmpdir = tmp_dir) write_graph(network, tf, format = "graphml") nx <- import("networkx") wulf <- import("netwulf") plt <- import("matplotlib.pyplot") g <- nx$read_graphml(tf) config <-...
# Calculate daily MED. med <- function(codeine, fentanyl, hydrocodone, hydromorphone, morphine, oxycodone, oxymorphone) { med = sum((codeine * 0.15), (fentanyl * 2.4), (hydrocodone * 1), (hydromorphone * 4), (morphine * 1), (oxycodone * 1.5), (oxymorphone * 3)) ...
/Developing_Data_Products/Assignment_3/server.R
no_license
sgopal9/datasciencecoursera
R
false
false
1,021
r
# Calculate daily MED. med <- function(codeine, fentanyl, hydrocodone, hydromorphone, morphine, oxycodone, oxymorphone) { med = sum((codeine * 0.15), (fentanyl * 2.4), (hydrocodone * 1), (hydromorphone * 4), (morphine * 1), (oxycodone * 1.5), (oxymorphone * 3)) ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/simulateBinnningProcess.R \name{replicateBins} \alias{replicateBins} \title{For any bin creates replicates from the uniform distribution of coins places in that bin} \usage{ replicateBins(count, n, lowerBound, upperBound, cutSize) } \...
/man/replicateBins.Rd
no_license
aserlich/gameify
R
false
false
425
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/simulateBinnningProcess.R \name{replicateBins} \alias{replicateBins} \title{For any bin creates replicates from the uniform distribution of coins places in that bin} \usage{ replicateBins(count, n, lowerBound, upperBound, cutSize) } \...
testlist <- list(m = NULL, repetitions = -304992360L, in_m = structure(c(2.31584307392677e+77, 2.82731971897428e+296, 1.22810536108214e+146), .Dim = c(3L, 1L ))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) str(result)
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615786377-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
254
r
testlist <- list(m = NULL, repetitions = -304992360L, in_m = structure(c(2.31584307392677e+77, 2.82731971897428e+296, 1.22810536108214e+146), .Dim = c(3L, 1L ))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) str(result)
# 2018 Scholars' Day Model Code # An Application of Mixed Effects Modeling to eSports Data # PI: Brett Cutts # Faculty Sponsor: Dr. Aaron R. Baggett package_list <- c("tidyverse", "lme4", "piecewiseSEM") utils::install.packages(package_list) # Load pacakge libraries library(tidyverse) library(lme4) library(piecewise...
/R/models_hero.R
permissive
BrettCutts/overwatch
R
false
false
1,068
r
# 2018 Scholars' Day Model Code # An Application of Mixed Effects Modeling to eSports Data # PI: Brett Cutts # Faculty Sponsor: Dr. Aaron R. Baggett package_list <- c("tidyverse", "lme4", "piecewiseSEM") utils::install.packages(package_list) # Load pacakge libraries library(tidyverse) library(lme4) library(piecewise...
source("S:/Institutional Research/Chen/R setup/ODBC Connection.R") #for short name of college COLLNM <- sqlFetch(SISInfo, 'COLLEGE') PAG <- sqlQuery(MSUEDW, "select distinct Pid, Cohort, COLLEGE_FIRST, COLLEGE_DEGREE, MAJOR_FIRST_SEMESTER, MAJOR_NAME_FIRST, MAJOR_DEGREE, MAJOR_NAME_DEGREE ...
/jsonbyColl.R
no_license
chendi1020/mjrmigration
R
false
false
7,008
r
source("S:/Institutional Research/Chen/R setup/ODBC Connection.R") #for short name of college COLLNM <- sqlFetch(SISInfo, 'COLLEGE') PAG <- sqlQuery(MSUEDW, "select distinct Pid, Cohort, COLLEGE_FIRST, COLLEGE_DEGREE, MAJOR_FIRST_SEMESTER, MAJOR_NAME_FIRST, MAJOR_DEGREE, MAJOR_NAME_DEGREE ...
#' Cosine_similarity #' #' Returns cosine similarity between x1 and x2, computed along dim. #' #' \deqn{ #' \text{similarity} = \dfrac{x_1 \cdot x_2}{\max(\Vert x_1 \Vert _2 \cdot \Vert x_2 \Vert _2, \epsilon)} #' } #' #' #' @param x1 (Tensor) First input. #' @param x2 (Tensor) Second input (of size matching x1). ...
/R/nnf-distance.R
permissive
qykong/torch
R
false
false
1,705
r
#' Cosine_similarity #' #' Returns cosine similarity between x1 and x2, computed along dim. #' #' \deqn{ #' \text{similarity} = \dfrac{x_1 \cdot x_2}{\max(\Vert x_1 \Vert _2 \cdot \Vert x_2 \Vert _2, \epsilon)} #' } #' #' #' @param x1 (Tensor) First input. #' @param x2 (Tensor) Second input (of size matching x1). ...
# Assignment: ASSIGNMENT 3 # Name: Anjale, Jiteshwar # Date: 2021-03-30 ## Load the ggplot2 package library(ggplot2) theme_set(theme_minimal()) ## Set the working directory to the root of your DSC 520 directory setwd('C:/Users/anjal/OneDrive/Desktop/MS/DSC520/dsc520') ## Load the `data/r4ds/heights.csv` to heights_d...
/Week3/assignment_03_AnjaleJiteshwar.R
no_license
jiteshwar/dsc520
R
false
false
2,083
r
# Assignment: ASSIGNMENT 3 # Name: Anjale, Jiteshwar # Date: 2021-03-30 ## Load the ggplot2 package library(ggplot2) theme_set(theme_minimal()) ## Set the working directory to the root of your DSC 520 directory setwd('C:/Users/anjal/OneDrive/Desktop/MS/DSC520/dsc520') ## Load the `data/r4ds/heights.csv` to heights_d...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "ionosphere") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearner(...
/models/openml_ionosphere/classification_class/883e142bc670eb7014fb42c308b3faf0/code.R
no_license
lukaszbrzozowski/CaseStudies2019S
R
false
false
731
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "ionosphere") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearner(...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 26485 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 26485 c c Input Parameter (command line, file): c input filename QBFLIB/Miller-Marin/incrementer-encoder/incrementer-enc06-non...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/incrementer-encoder/incrementer-enc06-nonuniform-depth-10/incrementer-enc06-nonuniform-depth-10.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
710
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 26485 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 26485 c c Input Parameter (command line, file): c input filename QBFLIB/Miller-Marin/incrementer-encoder/incrementer-enc06-non...
library(pracma) library(xlsx) load(file = "f:/UCDAVIS/C2VSIM_FG_OR/C2Vsim_FG_v2/ERS_proj/DGW2015.Rdata") script_path = "F:/UCDAVIS/C2VSIM_FG_OR/C2Vsim_FG_v2/ERS_proj/" c2vsim_path <- "f:/UCDAVIS/C2VSIM_FG_OR/C2Vsim_FG_v2/C2VSimFG-BETA_PublicRelease/" # Kings elements subregions are defined in a spreadsheet Kings <- r...
/ERS_proj/KingsDGW.R
no_license
giorgk/C2Vsim_FG_v2
R
false
false
1,413
r
library(pracma) library(xlsx) load(file = "f:/UCDAVIS/C2VSIM_FG_OR/C2Vsim_FG_v2/ERS_proj/DGW2015.Rdata") script_path = "F:/UCDAVIS/C2VSIM_FG_OR/C2Vsim_FG_v2/ERS_proj/" c2vsim_path <- "f:/UCDAVIS/C2VSIM_FG_OR/C2Vsim_FG_v2/C2VSimFG-BETA_PublicRelease/" # Kings elements subregions are defined in a spreadsheet Kings <- r...
df_combined_metrics <- df_messed_collection %>% filter(model != "svm_linear") %>% mutate(match = map(df_test, ~.$match)) %>% select(model, error_rate, train_sample, match, pred_probs) %>% spread(model, pred_probs) %>% mutate(nn_rf_probs = map2(nn, rf, ~(2*.x+.y)/2), nn_rf = map2(match, nn_rf_...
/R/paper2/bak/combined_models.R
no_license
pinformatics/ml_census_link
R
false
false
1,512
r
df_combined_metrics <- df_messed_collection %>% filter(model != "svm_linear") %>% mutate(match = map(df_test, ~.$match)) %>% select(model, error_rate, train_sample, match, pred_probs) %>% spread(model, pred_probs) %>% mutate(nn_rf_probs = map2(nn, rf, ~(2*.x+.y)/2), nn_rf = map2(match, nn_rf_...
# STA 250 HW 1 Part 1: Method 1 # Author: Nicholas Lytal (991834259) # Method 1: Piping in shell commands through R to # read columns of CSV files and create a vector # of arrival delays. # In this case, all .csv files have already been extracted # from Delays1987_2013.tar.bz2 with the shell command # "tar -xjvf Dela...
/STA_250_HW1a.R
no_license
njlytal/STA_250_HW1
R
false
false
4,471
r
# STA 250 HW 1 Part 1: Method 1 # Author: Nicholas Lytal (991834259) # Method 1: Piping in shell commands through R to # read columns of CSV files and create a vector # of arrival delays. # In this case, all .csv files have already been extracted # from Delays1987_2013.tar.bz2 with the shell command # "tar -xjvf Dela...
\name{Goslate} \alias{Goslate} \title{Translate Text} \description{ R interface to the Python package Goslate (Version 1.5.0). Goslate provides an API to Google's free online language translation service by querying the Google translation website. } \usage{ Goslate(name="Goslate", writing=c("native", "roman", "both"),...
/man/Goslate.Rd
no_license
cran/Goslate
R
false
false
5,683
rd
\name{Goslate} \alias{Goslate} \title{Translate Text} \description{ R interface to the Python package Goslate (Version 1.5.0). Goslate provides an API to Google's free online language translation service by querying the Google translation website. } \usage{ Goslate(name="Goslate", writing=c("native", "roman", "both"),...
country_compare <- function(data1, country_choose){ #build a function, and the only interest is an input dataset data2 <- data1[data1$country %in% country_choose, ] ggplot(data= data2, aes(x=year, y=value, colour = country))+ #choosing data, x lab, ylab and country is group geom_line() + facet_wrap(~id)+#pl...
/Assignment2/visualizing_function.R
permissive
MA615-Midterm-Project/MA615
R
false
false
1,288
r
country_compare <- function(data1, country_choose){ #build a function, and the only interest is an input dataset data2 <- data1[data1$country %in% country_choose, ] ggplot(data= data2, aes(x=year, y=value, colour = country))+ #choosing data, x lab, ylab and country is group geom_line() + facet_wrap(~id)+#pl...
context("gisd functions") test_that("gisd works", { skip_on_cran() sp <- c("Carpobrotus edulis", "Rosmarinus officinalis") aa <- gisd(sp, verbose = FALSE) expect_is(aa, "list") expect_named(aa, sp) expect_is(aa[[1]], "list") expect_is(aa[[2]], "list") }) test_that("fails well - species not found when ...
/tests/testthat/test-gisd.R
permissive
ibartomeus/originr
R
false
false
507
r
context("gisd functions") test_that("gisd works", { skip_on_cran() sp <- c("Carpobrotus edulis", "Rosmarinus officinalis") aa <- gisd(sp, verbose = FALSE) expect_is(aa, "list") expect_named(aa, sp) expect_is(aa[[1]], "list") expect_is(aa[[2]], "list") }) test_that("fails well - species not found when ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prodlim-package.R, R/prodlim.R \docType{package} \name{prodlim} \alias{prodlim} \alias{prodlim-package} \title{Functions for estimating probabilities from right censored data} \usage{ prodlim(formula, data = parent.frame(), subset, na.action ...
/man/prodlim.Rd
no_license
statwonk/prodlim
R
false
true
10,424
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prodlim-package.R, R/prodlim.R \docType{package} \name{prodlim} \alias{prodlim} \alias{prodlim-package} \title{Functions for estimating probabilities from right censored data} \usage{ prodlim(formula, data = parent.frame(), subset, na.action ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.BchronDensityRun.R \name{summary.BchronDensityRun} \alias{summary.BchronDensityRun} \title{Summarise a Bchron density object} \usage{ \method{summary}{BchronDensityRun}(object, prob = 0.95, ..., digits = max(3, getOption("digits") - 3...
/man/summary.BchronDensityRun.Rd
no_license
andrewcparnell/Bchron
R
false
true
660
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.BchronDensityRun.R \name{summary.BchronDensityRun} \alias{summary.BchronDensityRun} \title{Summarise a Bchron density object} \usage{ \method{summary}{BchronDensityRun}(object, prob = 0.95, ..., digits = max(3, getOption("digits") - 3...
\name{global_methylation_distribution} \alias{global_methylation_distribution} \title{ Global methylation distribution } \description{ Global methylation distribution } \usage{ global_methylation_distribution(sample_id, annotation, annotation_color = structure(seq_along(unique(annotation)), names = unique(annotatio...
/man/global_methylation_distribution.rd
no_license
inambioinfo/cotools
R
false
false
1,155
rd
\name{global_methylation_distribution} \alias{global_methylation_distribution} \title{ Global methylation distribution } \description{ Global methylation distribution } \usage{ global_methylation_distribution(sample_id, annotation, annotation_color = structure(seq_along(unique(annotation)), names = unique(annotatio...
\name{RegWhy.do.dontDetect} \alias{RegWhy.do.dontDetect} %- Also NEED an '\alias' for EACH other topic documented here. \title{dontDetect %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ RegWhy.do.dontDetect(statementToSearch, regWhyStatement) ...
/R/RegWhy/man/RegWhy.do.dontDetect.Rd
no_license
dmerson/RegWhyMultiLanguage
R
false
false
1,548
rd
\name{RegWhy.do.dontDetect} \alias{RegWhy.do.dontDetect} %- Also NEED an '\alias' for EACH other topic documented here. \title{dontDetect %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ RegWhy.do.dontDetect(statementToSearch, regWhyStatement) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xtabs_hk.R \name{xtabs_hk} \alias{xtabs_hk} \title{FUNCTION_TITLE} \usage{ xtabs_hk(...) } \arguments{ \item{...}{PARAM_DESCRIPTION} } \value{ OUTPUT_DESCRIPTION } \description{ FUNCTION_DESCRIPTION } \details{ DETAILS } \examples{ \dontrun{ ...
/man/xtabs_hk.Rd
no_license
holgerman/toolboxH
R
false
true
357
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xtabs_hk.R \name{xtabs_hk} \alias{xtabs_hk} \title{FUNCTION_TITLE} \usage{ xtabs_hk(...) } \arguments{ \item{...}{PARAM_DESCRIPTION} } \value{ OUTPUT_DESCRIPTION } \description{ FUNCTION_DESCRIPTION } \details{ DETAILS } \examples{ \dontrun{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculateDistance.R \name{calculateDistance} \alias{calculateDistance} \title{calculateDistance} \usage{ calculateDistance(myData) } \arguments{ \item{myData}{data.frame with ship registers} } \value{ data.frame with ids of the observations (...
/man/calculateDistance.Rd
no_license
diegoforteza/recruitment_task
R
false
true
466
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculateDistance.R \name{calculateDistance} \alias{calculateDistance} \title{calculateDistance} \usage{ calculateDistance(myData) } \arguments{ \item{myData}{data.frame with ship registers} } \value{ data.frame with ids of the observations (...
### longitudinal.R (2005-05-06) ### ### Data structure for longitudinal data ### ### Copyright 2005 Korbinian Strimmer ### ### ### ### This file is part of the `GeneTS' library for R and related languages. ### It is made available under the terms of the GNU General Public ### License, version 3, or at your option...
/R/longitudinal.R
no_license
cran/longitudinal
R
false
false
3,595
r
### longitudinal.R (2005-05-06) ### ### Data structure for longitudinal data ### ### Copyright 2005 Korbinian Strimmer ### ### ### ### This file is part of the `GeneTS' library for R and related languages. ### It is made available under the terms of the GNU General Public ### License, version 3, or at your option...
library(lme4) library(reshape2) library(lmerTest) library(MatchIt) library(readxl) library(corrplot) library(Hmisc) library(lm.beta) library(yhat) setwd("/Users/nikol/Documents/LEQ PRoject/Paper 2-2020/May2020/ReviewerComments_11-18/") ##loading data, format data and generate label numbers from QuANTs output## load("...
/LEQ_Neuroimaging.R
no_license
NikKinney/Social-LEQ
R
false
false
29,426
r
library(lme4) library(reshape2) library(lmerTest) library(MatchIt) library(readxl) library(corrplot) library(Hmisc) library(lm.beta) library(yhat) setwd("/Users/nikol/Documents/LEQ PRoject/Paper 2-2020/May2020/ReviewerComments_11-18/") ##loading data, format data and generate label numbers from QuANTs output## load("...