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
### Somatic Subclustering for 5 monkey subjects corrected for batch effect by CCA after removing doublets cluster 1 # 2.4.2019 by Qianyi ### Extracted somatic cells and directly merged, did somatic subclustering ### Removed Cluster 1/8 of SCyte/STids-Somatic doublets from somatic subclustering of directly-merged 5 s...
/II.MonkeyTestis/3.Monkey_SomaticSubclustering/4)MonkeySomatic_CCA-5subjects-NoC1.R
no_license
summer-yangqin/humanMonkeyTestis
R
false
false
34,163
r
### Somatic Subclustering for 5 monkey subjects corrected for batch effect by CCA after removing doublets cluster 1 # 2.4.2019 by Qianyi ### Extracted somatic cells and directly merged, did somatic subclustering ### Removed Cluster 1/8 of SCyte/STids-Somatic doublets from somatic subclustering of directly-merged 5 s...
## The function is used to calculate matrix inversion quickly ## by cathing the inverse of a matrix rather than compute it repeatedly. ## The first function caches the inverse of a matrix. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y ...
/cachematrix.R
no_license
Ethan958/ProgrammingAssignment2
R
false
false
1,082
r
## The function is used to calculate matrix inversion quickly ## by cathing the inverse of a matrix rather than compute it repeatedly. ## The first function caches the inverse of a matrix. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y ...
#-------------------Header------------------------------------------------ # Author: USERNAME # Date: 2019 # Purpose: The script extracts annual means (generated in annual_mean01.R) for each locations #*************************************************************************** ### script creates location specific ...
/gbd_2019/risk_factors_code/temperature/1_exposure/ann_mean02.R
no_license
Nermin-Ghith/ihme-modeling
R
false
false
9,848
r
#-------------------Header------------------------------------------------ # Author: USERNAME # Date: 2019 # Purpose: The script extracts annual means (generated in annual_mean01.R) for each locations #*************************************************************************** ### script creates location specific ...
# 3dLME_ISC_OneGroup_n68.R # # Created 5/18/18 by DJ based on 3dLME_ISC_OneGroup.R from EF. # Updated 12/11/18 by DJ - _d3, including inputs to accommodate Vis & Aud versions # Updated 3/4/19 by DJ - a182_v2 version with 69 ok subjects # Updated 4/2/19 by DJ - comments # Updated 8/21/19 by DJ - removed h1161, who saw 2...
/PRJ18_HaskinsStory/Scripts/3dLME_ISC_1Grp_n68.R
no_license
djangraw/FelixScripts
R
false
false
7,319
r
# 3dLME_ISC_OneGroup_n68.R # # Created 5/18/18 by DJ based on 3dLME_ISC_OneGroup.R from EF. # Updated 12/11/18 by DJ - _d3, including inputs to accommodate Vis & Aud versions # Updated 3/4/19 by DJ - a182_v2 version with 69 ok subjects # Updated 4/2/19 by DJ - comments # Updated 8/21/19 by DJ - removed h1161, who saw 2...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/mepstrends/hc_care/json/code/r/pctPOP__region__adult_explain__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
1,681
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...
check_packages = function(names) { for(name in names) { if (!(name %in% installed.packages())) install.packages(name, repos="http://cran.us.r-project.org") library(name, character.only=TRUE) } } ## This function takes the packages that our program needs. ## It makes sure you have them on your ...
/Team 1/text_mining_Wei_Wang/02_shape_data.R
no_license
PHP2560-Statistical-Programming-R/text-mining-review-all-join-this-team
R
false
false
1,710
r
check_packages = function(names) { for(name in names) { if (!(name %in% installed.packages())) install.packages(name, repos="http://cran.us.r-project.org") library(name, character.only=TRUE) } } ## This function takes the packages that our program needs. ## It makes sure you have them on your ...
# Question 2 (a) # Install packages if needed: packages <- c("tidyverse", "WDI", "maps", "countrycode") # List of installed packages installed <- installed.packages()[,1] # Install the packages we need which aren't in the list of installed packages: install.packages(packages[!packages %in% installed]) # Load package...
/q2a.R
no_license
gardiners/a2t3
R
false
false
1,553
r
# Question 2 (a) # Install packages if needed: packages <- c("tidyverse", "WDI", "maps", "countrycode") # List of installed packages installed <- installed.packages()[,1] # Install the packages we need which aren't in the list of installed packages: install.packages(packages[!packages %in% installed]) # Load package...
# # This is a copy of the same file from /Users/hn/Documents/00_GitHub/Ag/chilling/06_fill_in_paper_details # which includes more scripts! # rm(list=ls()) library(data.table) library(dplyr) library(ggpubr) library(ggplot2) ########################################### post_fix <- "/0_replaced_with_367/" dat...
/chilling/07_fill_in_paper_details_Springer_2_Attempt200_ObsHist/ugly_lines/01_median_plot.R
permissive
HNoorazar/Ag
R
false
false
5,664
r
# # This is a copy of the same file from /Users/hn/Documents/00_GitHub/Ag/chilling/06_fill_in_paper_details # which includes more scripts! # rm(list=ls()) library(data.table) library(dplyr) library(ggpubr) library(ggplot2) ########################################### post_fix <- "/0_replaced_with_367/" dat...
################################## # Project: Anopheles gambiae ecological niche and genomics # Process: Converting SNP matrix into geste format with genotype info # Author(s): Devon A DeRaad, Marlon E. Cobos, Claudia Nunez-Penichet # Date: 01/04/2020 (dd/mm/yyyy) ################################## #define a ...
/manipulate.vcfs/A_gambiae_conversion_for_BayeScan.R
no_license
DevonDeRaad/Anopheles
R
false
false
2,874
r
################################## # Project: Anopheles gambiae ecological niche and genomics # Process: Converting SNP matrix into geste format with genotype info # Author(s): Devon A DeRaad, Marlon E. Cobos, Claudia Nunez-Penichet # Date: 01/04/2020 (dd/mm/yyyy) ################################## #define a ...
/Mestrado_MSc/4º Ano/2º Semestre/SI - Computacao Natural/Práticas/Aula 2/cereals_ANN.R
permissive
MikeDM16/Computer-Science-UMinho
R
false
false
1,631
r
shinyUI(pageWithSidebar( headerPanel("UK Deaths from Lung Diseases"), sidebarPanel( sliderInput( "num", "Months:", min = 4, max = 24, value = 12, step = 1 ), sliderInput( "start", ...
/Miscellaneous/DataDemo/ui.r
no_license
Hulalazz/spring-2014-lectures
R
false
false
1,011
r
shinyUI(pageWithSidebar( headerPanel("UK Deaths from Lung Diseases"), sidebarPanel( sliderInput( "num", "Months:", min = 4, max = 24, value = 12, step = 1 ), sliderInput( "start", ...
##----------------------------------------## ## Class definitions ##----------------------------------------## setClass("KEGGPathwayInfo", representation(name="character", org="character", number="character", title="character", ...
/R/kegg2graph-functions.R
no_license
cwt1/KEGGgraph
R
false
false
14,590
r
##----------------------------------------## ## Class definitions ##----------------------------------------## setClass("KEGGPathwayInfo", representation(name="character", org="character", number="character", title="character", ...
### extracting data and summarizing for synthetic geodiversity #### library(raster) library(rgdal) library(plotrix) library(e1071) library(ggplot2) library(reshape) library(devtools) devtools::load_all('/home/annie/Documents/SyntheticLandscape/surface_metrics/geodiv/') # setwd and today's date for file writing setwd("...
/synthetic_geodiversity/code/D1_extracting_data_and_calculating_metrics_5km_20181031.R
permissive
bioXgeo/SyntheticLandscape
R
false
false
33,120
r
### extracting data and summarizing for synthetic geodiversity #### library(raster) library(rgdal) library(plotrix) library(e1071) library(ggplot2) library(reshape) library(devtools) devtools::load_all('/home/annie/Documents/SyntheticLandscape/surface_metrics/geodiv/') # setwd and today's date for file writing setwd("...
\name{CoxBoost} \alias{CoxBoost} \title{Fit a Cox model by likelihood based boosting} \description{ \code{CoxBoost} is used to fit a Cox proportional hazards model by componentwise likelihood based boosting. It is especially suited for models with a large number of predictors and allows for mandatory covariates with ...
/man/CoxBoost.Rd
no_license
kaixinhuaihuai/CoxBoost
R
false
false
11,279
rd
\name{CoxBoost} \alias{CoxBoost} \title{Fit a Cox model by likelihood based boosting} \description{ \code{CoxBoost} is used to fit a Cox proportional hazards model by componentwise likelihood based boosting. It is especially suited for models with a large number of predictors and allows for mandatory covariates with ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directoryservice_operations.R \name{directoryservice_get_directory_limits} \alias{directoryservice_get_directory_limits} \title{Obtains directory limit information for the current region} \usage{ directoryservice_get_directory_limits() } \des...
/paws/man/directoryservice_get_directory_limits.Rd
permissive
peoplecure/paws
R
false
true
483
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directoryservice_operations.R \name{directoryservice_get_directory_limits} \alias{directoryservice_get_directory_limits} \title{Obtains directory limit information for the current region} \usage{ directoryservice_get_directory_limits() } \des...
## Import data_import <- read.csv(file = "villi-data.csv",skipNul = TRUE, stringsAsFactors = F) ## Drop those rows where count is NA data_import <- data_import[!is.na(data_import$count),] ## =========================== Format Data ===================================== ## ===============================================...
/timeseries/OnlineLabourIndex.R
permissive
ox-it/OxfordIDN_htmlwidgets
R
false
false
917
r
## Import data_import <- read.csv(file = "villi-data.csv",skipNul = TRUE, stringsAsFactors = F) ## Drop those rows where count is NA data_import <- data_import[!is.na(data_import$count),] ## =========================== Format Data ===================================== ## ===============================================...
totalArea <- 5 # [km^2] M <- 0.2 # natural mortality q <- 0.5 # catchability # N = pop. size; fracOccSwept = fraction of occ area swept; fracOcc = fraction of # total area occupied df <- expand.grid(N=c(100,200,500), fracOccSwept=c(0.1,0.2,0.5), fracOcc=c(0.25,1)) # aggregation / density of pop df$areaOcc <- df$fracO...
/Marc Sample.R
no_license
MoritzSt/ddcq-and-sole
R
false
false
2,110
r
totalArea <- 5 # [km^2] M <- 0.2 # natural mortality q <- 0.5 # catchability # N = pop. size; fracOccSwept = fraction of occ area swept; fracOcc = fraction of # total area occupied df <- expand.grid(N=c(100,200,500), fracOccSwept=c(0.1,0.2,0.5), fracOcc=c(0.25,1)) # aggregation / density of pop df$areaOcc <- df$fracO...
library(adventofcode18) x <- readLines("./inst/input04.txt") p1_df <- find_sleepiest_minute_of_sleepiest_guard(x) p1 <- p1_df$minute * p1_df$guard p2_df <- find_guard_with_sleepiest_minute(x) p2 <- p2_df$minute * p2_df$guard stopifnot(p1 == aoc18_solutions$day04a) stopifnot(p2 == aoc18_solutions$day04b)
/inst/run-day04.R
no_license
tjmahr/adventofcode18
R
false
false
308
r
library(adventofcode18) x <- readLines("./inst/input04.txt") p1_df <- find_sleepiest_minute_of_sleepiest_guard(x) p1 <- p1_df$minute * p1_df$guard p2_df <- find_guard_with_sleepiest_minute(x) p2 <- p2_df$minute * p2_df$guard stopifnot(p1 == aoc18_solutions$day04a) stopifnot(p2 == aoc18_solutions$day04b)
# Run through for 3rd day # M. Espe # STS 198 source("second_class.R") sac_health <- subset(health, Provider.City == "SACRAMENTO") head(sac_health) table(sac_health$Provider.Name) summary(sac_health) summary(health) sac_defs = table(sac_health$DRG.Definition) length(sac_defs) variable = "189 - PULMONARY EDEMA &...
/R/prep/pre_class3.R
permissive
mespe/STS198
R
false
false
489
r
# Run through for 3rd day # M. Espe # STS 198 source("second_class.R") sac_health <- subset(health, Provider.City == "SACRAMENTO") head(sac_health) table(sac_health$Provider.Name) summary(sac_health) summary(health) sac_defs = table(sac_health$DRG.Definition) length(sac_defs) variable = "189 - PULMONARY EDEMA &...
################################################################### ## OSM DATA IMPORT and FORMART to USE with WEATHER STATION DATA ## ################################################################# # start by maxing out the memory allocation (we use high number to force max allocation) gc() memory.limit(size = 560...
/R/old code/1c-spatial-data-prep.R
no_license
cghoehne/transport-uhi-phx
R
false
false
15,341
r
################################################################### ## OSM DATA IMPORT and FORMART to USE with WEATHER STATION DATA ## ################################################################# # start by maxing out the memory allocation (we use high number to force max allocation) gc() memory.limit(size = 560...
rm(list = ls()) head(airpolu) library(spdep) library(rgdal) library(ggplot2) airpolu <- readOGR(dsn = ".", layer = "EPA_STN1", encoding="utf8") Popn_TWN2 <- readOGR(dsn = ".", layer = "Popn_TWN2", encoding="utf8") #PSI機率=0.3 #1 qnorm(0.3,mean=mean(PSI),sd=sd(PSI),lower.tail = F) #2 par(mfrow=c(1,2)) head(airpolu) a...
/Week3/HW3.R
no_license
clairekan/Spatial-Analysis
R
false
false
4,533
r
rm(list = ls()) head(airpolu) library(spdep) library(rgdal) library(ggplot2) airpolu <- readOGR(dsn = ".", layer = "EPA_STN1", encoding="utf8") Popn_TWN2 <- readOGR(dsn = ".", layer = "Popn_TWN2", encoding="utf8") #PSI機率=0.3 #1 qnorm(0.3,mean=mean(PSI),sd=sd(PSI),lower.tail = F) #2 par(mfrow=c(1,2)) head(airpolu) a...
# devtools::load_all() require(testthat) ################################ ## Tests for compute_lambda() ## ################################ n_v <- 2 # 2 variants n_loc <- 3 # 3 locations T <- 100 # 100 time steps incid <- array(10, dim = c(T, n_loc, n_v)) # constant incidence 10 per day everywhere incid_processed <- ...
/tests/testthat/test-multivariant-input.R
no_license
mrc-ide/EpiEstim
R
false
false
11,901
r
# devtools::load_all() require(testthat) ################################ ## Tests for compute_lambda() ## ################################ n_v <- 2 # 2 variants n_loc <- 3 # 3 locations T <- 100 # 100 time steps incid <- array(10, dim = c(T, n_loc, n_v)) # constant incidence 10 per day everywhere incid_processed <- ...
with(a25da78585bdc45f9ab7aa0c0fecc19d5, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';FRAME878836$business_application[FRAME878836$business_application == ""] <- "None";});
/80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/aqlWZ7xrZvf9b.R
no_license
ayanmanna8/test
R
false
false
282
r
with(a25da78585bdc45f9ab7aa0c0fecc19d5, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';FRAME878836$business_application[FRAME878836$business_application == ""] <- "None";});
library(ggplot2) library(gtools) printSpeedHistogram<-function(fileName){ #import data rawdata<- read.csv(fileName, header = TRUE, sep = ",",stringsAsFactors=FALSE, skip = 78)#80 in my data rawdata<-rawdata[-c(1,2),] #remove unit lines rawdata<-rawdata[,c(1,2,5)]#select specific columns #assign n...
/lapSims/HistogramsLapSim.R
no_license
ryanwu4/fsae
R
false
false
3,389
r
library(ggplot2) library(gtools) printSpeedHistogram<-function(fileName){ #import data rawdata<- read.csv(fileName, header = TRUE, sep = ",",stringsAsFactors=FALSE, skip = 78)#80 in my data rawdata<-rawdata[-c(1,2),] #remove unit lines rawdata<-rawdata[,c(1,2,5)]#select specific columns #assign n...
x=factor(c("male","female","male")) x c=factor(c("low","medium","high",ordered=T)) c c=factor(c("low","medium","high"),levels=c("low","medium","high")) c # # months1<-c("Apr","Jan","Feb","Aug","Dec") months1 month.abb[1:12] months2=factor(months1) months2 months3=factor(months1,levels=month.abb[1:12]) months3 months4=c...
/Data structures/factors.R
no_license
Shubham-Pujan/Practicing_R
R
false
false
783
r
x=factor(c("male","female","male")) x c=factor(c("low","medium","high",ordered=T)) c c=factor(c("low","medium","high"),levels=c("low","medium","high")) c # # months1<-c("Apr","Jan","Feb","Aug","Dec") months1 month.abb[1:12] months2=factor(months1) months2 months3=factor(months1,levels=month.abb[1:12]) months3 months4=c...
#Read and load the data data_file <- "household_power_consumption.txt" data <- read.table(data_file, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") #check the columns names of the dataset #names(data) #Since we have to subset the data from two dates i.e. 2007-02-01 and 2007-02-02 #View(data) ...
/plot1.R
no_license
maniunix/Exploratory_Data_Analysis-Household-Data-
R
false
false
726
r
#Read and load the data data_file <- "household_power_consumption.txt" data <- read.table(data_file, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") #check the columns names of the dataset #names(data) #Since we have to subset the data from two dates i.e. 2007-02-01 and 2007-02-02 #View(data) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mod-results-boxes.R \name{results_boxes_ui} \alias{results_boxes_ui} \alias{results_boxes_server} \title{UI function for results boxes module} \usage{ results_boxes_ui(id) results_boxes_server(input, output, session, results) } \arguments{ \...
/man/results_boxes.Rd
permissive
pitviper6/dccvalidator
R
false
true
1,819
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mod-results-boxes.R \name{results_boxes_ui} \alias{results_boxes_ui} \alias{results_boxes_server} \title{UI function for results boxes module} \usage{ results_boxes_ui(id) results_boxes_server(input, output, session, results) } \arguments{ \...
#' @title d_unk_sex distribute deaths of unknown sex #' #' @param Deaths the standard internal Deaths data.frame, early in the production chain. #' #' @return Deaths rows containing UNK are removed, and these deaths have been distributed proportionally over other deaths of the same Year, Age, Lexis and AgeInterval ...
/HMDLexis/HMDLexis/R/d_unk_sex.R
no_license
timriffe/HMDLexis
R
false
false
3,386
r
#' @title d_unk_sex distribute deaths of unknown sex #' #' @param Deaths the standard internal Deaths data.frame, early in the production chain. #' #' @return Deaths rows containing UNK are removed, and these deaths have been distributed proportionally over other deaths of the same Year, Age, Lexis and AgeInterval ...
# continuous variables conti_ag <- function(dat, by){ require(Hmisc) for(i in names(dat)) if(label(dat[, i]) == "") label(dat[, i]) <- i fn <- function(x) c(n = length(na.omit(x)), n_unique = length(unique(x)), mean = mean(x, na.rm = TRUE), sd = sd...
/descriptivesFunctions.R
no_license
aghaynes/misc
R
false
false
2,985
r
# continuous variables conti_ag <- function(dat, by){ require(Hmisc) for(i in names(dat)) if(label(dat[, i]) == "") label(dat[, i]) <- i fn <- function(x) c(n = length(na.omit(x)), n_unique = length(unique(x)), mean = mean(x, na.rm = TRUE), sd = sd...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/utilities.R \name{non.zero} \alias{non.zero} \title{non zero approximation} \usage{ non.zero(x) } \description{ non zero approximation }
/man/non.zero.Rd
permissive
paulalsrees/conteStreamflow
R
false
false
224
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/utilities.R \name{non.zero} \alias{non.zero} \title{non zero approximation} \usage{ non.zero(x) } \description{ non zero approximation }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvBSC.R \name{mvbsc_fit} \alias{mvbsc_fit} \title{...} \usage{ mvbsc_fit(codes, distance, similarity, k, delta, h, wt, seed) } \arguments{ \item{codes}{...} \item{distance}{...} \item{similarity}{...} \item{k}{...} \item{delta}{...} \ite...
/man/mvbsc_fit.Rd
no_license
QinghaiZheng1992/mvBSC
R
false
true
386
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvBSC.R \name{mvbsc_fit} \alias{mvbsc_fit} \title{...} \usage{ mvbsc_fit(codes, distance, similarity, k, delta, h, wt, seed) } \arguments{ \item{codes}{...} \item{distance}{...} \item{similarity}{...} \item{k}{...} \item{delta}{...} \ite...
## Linear Regression ## SSE = sum of square of error ## RSSE = Root- Mean - square Error , Root(SSE/N) (根號) ## SST = sum of square of base line model (每個點跟 mean 線的平方) ## R square = 1- SSE/SST ## R = 0 <- no improvement over baseline ## R = 1 <- Fit Perfect ## Multiple Regression Model ## What is the best model to use...
/unit2/unit2.R
no_license
okamipride/AnalyticsEdge
R
false
false
3,224
r
## Linear Regression ## SSE = sum of square of error ## RSSE = Root- Mean - square Error , Root(SSE/N) (根號) ## SST = sum of square of base line model (每個點跟 mean 線的平方) ## R square = 1- SSE/SST ## R = 0 <- no improvement over baseline ## R = 1 <- Fit Perfect ## Multiple Regression Model ## What is the best model to use...
#ps.pruned <- prune_taxa(taxa_sums(ps.clean) > 10, ps.clean ) #somedata.maj <- subset(somedata, rowSums(somedata) > 210) #ps.merged <- merge_samples(ps.varstab, "Repeats", mean) #otus.taxa.1[otus.taxa.1 == ""] <- NA #lise.heat.1 <- read.csv("lise.heat.2.csv" , header=TRUE, sep="\t") #lapply(otus.taxa$ID, lise.heat) ...
/scripts_git_done/lise.heat.R
no_license
crabron/temp
R
false
false
1,630
r
#ps.pruned <- prune_taxa(taxa_sums(ps.clean) > 10, ps.clean ) #somedata.maj <- subset(somedata, rowSums(somedata) > 210) #ps.merged <- merge_samples(ps.varstab, "Repeats", mean) #otus.taxa.1[otus.taxa.1 == ""] <- NA #lise.heat.1 <- read.csv("lise.heat.2.csv" , header=TRUE, sep="\t") #lapply(otus.taxa$ID, lise.heat) ...
#' Draw a visual crosstab (mosaic plot) with shading for correlations #' and labels in each cell. #' #' Improves labeling of mosaic plots over \code{mosaic} from the vcd package #' #' @param data a data object, matrix or dataframe, that contains the categorical #' variables to compose the crosstab #' @param...
/R/proficiency_tools.R
no_license
nutterb/eeptools
R
false
false
9,738
r
#' Draw a visual crosstab (mosaic plot) with shading for correlations #' and labels in each cell. #' #' Improves labeling of mosaic plots over \code{mosaic} from the vcd package #' #' @param data a data object, matrix or dataframe, that contains the categorical #' variables to compose the crosstab #' @param...
library(Lahman) library(dplyr) library(broom) library(stringr) library(ggplot2) library(tidyverse) # linear regression with two variables fit <- Teams %>% filter(yearID %in% 1961:2001) %>% mutate(BB = BB/G, HR = HR/G, R = R/G) %>% lm(R ~ BB + HR, data = .) tidy(fit, conf.int = TRUE) #returns estimates and r...
/linear_regression/regression and baseball.R
no_license
juanpablo-cortess/edx_data_science
R
false
false
7,307
r
library(Lahman) library(dplyr) library(broom) library(stringr) library(ggplot2) library(tidyverse) # linear regression with two variables fit <- Teams %>% filter(yearID %in% 1961:2001) %>% mutate(BB = BB/G, HR = HR/G, R = R/G) %>% lm(R ~ BB + HR, data = .) tidy(fit, conf.int = TRUE) #returns estimates and r...
#' The application server-side #' #' @param input,output,session Internal parameters for {shiny}. #' DO NOT REMOVE. #' @import shiny #' @noRd app_server <- function( input, output, session ) { # List the first level callModules here callModule(mod_module_title_server, "module_title_ui_1") callModul...
/R/app_server.R
no_license
eesnizeoa/firstGolemApp
R
false
false
1,059
r
#' The application server-side #' #' @param input,output,session Internal parameters for {shiny}. #' DO NOT REMOVE. #' @import shiny #' @noRd app_server <- function( input, output, session ) { # List the first level callModules here callModule(mod_module_title_server, "module_title_ui_1") callModul...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/buildName.R \name{buildName} \alias{buildName} \title{Build Dynamic Strings} \usage{ buildName(numOfItems, prefix) } \arguments{ \item{numOfItems}{A number. This defines the number of elements to be output.} \item{prefix}{A string. This defi...
/man/buildName.Rd
permissive
SidharthMacherla/conjurer
R
false
true
953
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/buildName.R \name{buildName} \alias{buildName} \title{Build Dynamic Strings} \usage{ buildName(numOfItems, prefix) } \arguments{ \item{numOfItems}{A number. This defines the number of elements to be output.} \item{prefix}{A string. This defi...
#peel.one - #the main change I made was adding a new quantile function pquantile, that handles #things more appropriately for PRIMs purposes (see that function). `peel.one` <- function(x, y, box, peel.alpha, mass.min, threshold, d, n, peel_crit) { box.new <- box mass <- length(y)/n ...
/R/peel.one.r
no_license
cran/sdtoolkit
R
false
false
6,261
r
#peel.one - #the main change I made was adding a new quantile function pquantile, that handles #things more appropriately for PRIMs purposes (see that function). `peel.one` <- function(x, y, box, peel.alpha, mass.min, threshold, d, n, peel_crit) { box.new <- box mass <- length(y)/n ...
#' Student's t Log Likelihood Function #' #' The log likelihood of a Student's t density with data, x, df and ncp #' parameters. #' #' @details The log likelihood is the log of a function of parameters given the data. #' #' @return A numeric scalar for the log likelihood of the Student's t density #' given the data whe...
/R/Student_t.R
no_license
BenBarnard/likelihoodExplore
R
false
false
566
r
#' Student's t Log Likelihood Function #' #' The log likelihood of a Student's t density with data, x, df and ncp #' parameters. #' #' @details The log likelihood is the log of a function of parameters given the data. #' #' @return A numeric scalar for the log likelihood of the Student's t density #' given the data whe...
### KMeans Clustering Toolbox ##Author: Fabio Veronesi tool_exec <- function(in_params, out_params) { if (!requireNamespace("ggplot2", quietly = TRUE)) install.packages("ggplot2") require(ggplot2) if (!requireNamespace("sp", quietly = TRUE)) install.packages("sp") require(sp) if (!requireNames...
/RBridge_TimeSeries.r
no_license
fveronesi/PlottingToolbox
R
false
false
1,839
r
### KMeans Clustering Toolbox ##Author: Fabio Veronesi tool_exec <- function(in_params, out_params) { if (!requireNamespace("ggplot2", quietly = TRUE)) install.packages("ggplot2") require(ggplot2) if (!requireNamespace("sp", quietly = TRUE)) install.packages("sp") require(sp) if (!requireNames...
#source('/vol/cluster-data/mheideme/parallel_running/crf_utils.R') source('crf_utils.R') #source('/vol/cluster-data/mheideme/parallel_running/recosystem.R') source('recosystem.R') #source('/vol/cluster-data/mheideme/parallel_running/target_clustering.R') source('target_clustering.R') require('Matrix') require(foreach) ...
/code/parallel_running/run_crf_drugs.R
no_license
ma-hei/thesis
R
false
false
2,903
r
#source('/vol/cluster-data/mheideme/parallel_running/crf_utils.R') source('crf_utils.R') #source('/vol/cluster-data/mheideme/parallel_running/recosystem.R') source('recosystem.R') #source('/vol/cluster-data/mheideme/parallel_running/target_clustering.R') source('target_clustering.R') require('Matrix') require(foreach) ...
### Building a stepwise regression model # In the absence of subject-matter expertise, stepwise regression can assist with the search for # the most important predictors of the outcome of interest. # In this exercise, you will use a forward stepwise approach to add predictors to the model one-by-one until # no addi...
/01 Supervised Learning : Classification/307 stepwise regression.r
no_license
chunhuayu/Machine-Learning-in-R
R
false
false
6,128
r
### Building a stepwise regression model # In the absence of subject-matter expertise, stepwise regression can assist with the search for # the most important predictors of the outcome of interest. # In this exercise, you will use a forward stepwise approach to add predictors to the model one-by-one until # no addi...
####################################################### # # filename: cpc_tree_adj.R # author: Jason Bell # Created Date: 11/14/2019 # # Description: # This code will find the distance between cpc symbols # from two sources (e.g., machine, contractor) # edit 11/14/2019: in this case, between US and KR # # Input file...
/cpc_tree/cpc_tree_adj.R
no_license
leonbellsprout/cpc-autoclass
R
false
false
5,282
r
####################################################### # # filename: cpc_tree_adj.R # author: Jason Bell # Created Date: 11/14/2019 # # Description: # This code will find the distance between cpc symbols # from two sources (e.g., machine, contractor) # edit 11/14/2019: in this case, between US and KR # # Input file...
#' Title #' #' @param d A standardize vms dataframe #' @param lon.lim A vector specifying the lower and upper longitude boundaries #' to be plotted. #' @param lat.lim A vector specifying the lower and upper latitudinal boundaries #' to be plotted. #' @export #' vms_plot_tracks <- function(d, lon.lim, lat.lim) { has...
/R/vms_plot_tracks.R
no_license
fishvice/ghsllr
R
false
false
1,446
r
#' Title #' #' @param d A standardize vms dataframe #' @param lon.lim A vector specifying the lower and upper longitude boundaries #' to be plotted. #' @param lat.lim A vector specifying the lower and upper latitudinal boundaries #' to be plotted. #' @export #' vms_plot_tracks <- function(d, lon.lim, lat.lim) { has...
#' Load or create a \code{batchtools} registry #' #' @param file.dir [\code{string}]\cr #' File path where the registry is stored. #' @param work.dir [\code{string}]\cr #' File path where the working dir of the registry is set to. #' @param writeable [\code{...
/R/batchtools.R
no_license
Sandyyy123/imbs
R
false
false
2,321
r
#' Load or create a \code{batchtools} registry #' #' @param file.dir [\code{string}]\cr #' File path where the registry is stored. #' @param work.dir [\code{string}]\cr #' File path where the working dir of the registry is set to. #' @param writeable [\code{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_data.R \name{crs.SpatialPointsDataFrame} \alias{crs.SpatialPointsDataFrame} \title{crs.SpatialPointsDataFrame} \usage{ \method{crs}{SpatialPointsDataFrame}(x, ...) } \arguments{ \item{x}{A SpatialPointsDataFrame} \item{...}{other arguem...
/man/crs.SpatialPointsDataFrame.Rd
no_license
trosendal/svis
R
false
true
425
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_data.R \name{crs.SpatialPointsDataFrame} \alias{crs.SpatialPointsDataFrame} \title{crs.SpatialPointsDataFrame} \usage{ \method{crs}{SpatialPointsDataFrame}(x, ...) } \arguments{ \item{x}{A SpatialPointsDataFrame} \item{...}{other arguem...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docdb_operations.R \name{docdb_describe_db_cluster_snapshots} \alias{docdb_describe_db_cluster_snapshots} \title{Returns information about cluster snapshots} \usage{ docdb_describe_db_cluster_snapshots(DBClusterIdentifier, DBClusterSnapshot...
/cran/paws.database/man/docdb_describe_db_cluster_snapshots.Rd
permissive
TWarczak/paws
R
false
true
4,718
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docdb_operations.R \name{docdb_describe_db_cluster_snapshots} \alias{docdb_describe_db_cluster_snapshots} \title{Returns information about cluster snapshots} \usage{ docdb_describe_db_cluster_snapshots(DBClusterIdentifier, DBClusterSnapshot...
f_conditional_ggsave <- function(save = F, p, filepath, w = 6, h = 4) { if(save){ d = w * h * 50 / 3 ggsave(filename = filepath, plot = p, device = "jpeg", dpi = d, width = w, height = h) return(print(paste("Plot saved to:", filepath, sep = "/"))) } }
/Functions/f_conditional_ggsave.R
no_license
tomiaJO/pl_injuries
R
false
false
319
r
f_conditional_ggsave <- function(save = F, p, filepath, w = 6, h = 4) { if(save){ d = w * h * 50 / 3 ggsave(filename = filepath, plot = p, device = "jpeg", dpi = d, width = w, height = h) return(print(paste("Plot saved to:", filepath, sep = "/"))) } }
\name{testPairedEndBam} \alias{testPairedEndBam} \alias{testPairedEndBam,character-method} \alias{testPairedEndBam,BamFile-method} \title{ Quickly test if a BAM file has paired end reads } \description{ Iterate through a BAM file until a paired-end read is encountered or the end of file is reached; repor...
/man/testPairedEndBam.Rd
permissive
Bioconductor/Rsamtools
R
false
false
1,217
rd
\name{testPairedEndBam} \alias{testPairedEndBam} \alias{testPairedEndBam,character-method} \alias{testPairedEndBam,BamFile-method} \title{ Quickly test if a BAM file has paired end reads } \description{ Iterate through a BAM file until a paired-end read is encountered or the end of file is reached; repor...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seq_anova.R \name{seq_anova} \alias{seq_anova} \title{Sequential Analysis of Variance} \usage{ seq_anova( formula, f, alpha = 0.05, power = 0.95, data, verbose = TRUE, plot = FALSE, seq_steps = "single" ) } \a...
/man/seq_anova.Rd
no_license
cran/sprtt
R
false
true
3,418
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seq_anova.R \name{seq_anova} \alias{seq_anova} \title{Sequential Analysis of Variance} \usage{ seq_anova( formula, f, alpha = 0.05, power = 0.95, data, verbose = TRUE, plot = FALSE, seq_steps = "single" ) } \a...
Fn.inv.Bernstein <- function(u, muestra){ # # Entrada: # u = probabilidad para calcular cuantil # muestra = vector de obervaciones univariadas x1,...,xn # x <- sort(muestra) n <- length(x) xm <- rep(0, n + 1) xm[1] <- x[1] xm[n + 1] <- x[n] xm[2:n] <- (x[1:(n-1)] + x[2:n]...
/Bernstein1.R
no_license
vargaslab/temporal-univariate-Latin-Hypercube
R
false
false
1,261
r
Fn.inv.Bernstein <- function(u, muestra){ # # Entrada: # u = probabilidad para calcular cuantil # muestra = vector de obervaciones univariadas x1,...,xn # x <- sort(muestra) n <- length(x) xm <- rep(0, n + 1) xm[1] <- x[1] xm[n + 1] <- x[n] xm[2:n] <- (x[1:(n-1)] + x[2:n]...
####################################################################### # stream - Infrastructure for Data Stream Mining # Copyright (C) 2013 Michael Hahsler, Matthew Bolanos, John Forrest # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
/R/DSC_Window.R
no_license
mhahsler/stream
R
false
false
2,880
r
####################################################################### # stream - Infrastructure for Data Stream Mining # Copyright (C) 2013 Michael Hahsler, Matthew Bolanos, John Forrest # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
add2 <- function(x, y) { x + y } above10 <- function(x) { use <- x > 10 x[use] } above <- function(x, n = 10) { use <- x > n x[use] } columnmean <- function(y, removeNA = TRUE) { nc <- ncol(y) means <- numeric(nc) for (i in 1:nc) { means[i] <- mean(y[, i], na.rm = removeNA) } means }
/R programming/functions.R
no_license
zettascaledata/datasciencecoursera
R
false
false
311
r
add2 <- function(x, y) { x + y } above10 <- function(x) { use <- x > 10 x[use] } above <- function(x, n = 10) { use <- x > n x[use] } columnmean <- function(y, removeNA = TRUE) { nc <- ncol(y) means <- numeric(nc) for (i in 1:nc) { means[i] <- mean(y[, i], na.rm = removeNA) } means }
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818016386547e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L))) result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist) str(result)
/CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615835168-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
270
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818016386547e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L))) result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist) str(result)
## Investigate substrate variation at each xstrm within each year ## Use a stability index: roots= 4 bedrock= 3, boulders= 2, cobbles= 1, gravel,mud,pebbles,sand,silt,wood= 0 ## We assume that the substrate should not change over the course of a summer ## because there are no high flows that would disturbe the bed in...
/AlgalTransects_Substrate.R
no_license
jonahps/EelRiverAlgalTransects
R
false
false
6,952
r
## Investigate substrate variation at each xstrm within each year ## Use a stability index: roots= 4 bedrock= 3, boulders= 2, cobbles= 1, gravel,mud,pebbles,sand,silt,wood= 0 ## We assume that the substrate should not change over the course of a summer ## because there are no high flows that would disturbe the bed in...
library(readxl) library(magrittr) library(readr) suppressMessages(library(tidyr)) suppressMessages(library(dplyr)) library(rvest) library(stringr) get_if_not_exists <- function(url, destfile, overwrite){ if(!file.exists(destfile) | overwrite){ download.file(url, destfile) }else{ message(paste0("A local cop...
/data-raw/get_nawqa.R
no_license
jsta/nawqa
R
false
false
1,240
r
library(readxl) library(magrittr) library(readr) suppressMessages(library(tidyr)) suppressMessages(library(dplyr)) library(rvest) library(stringr) get_if_not_exists <- function(url, destfile, overwrite){ if(!file.exists(destfile) | overwrite){ download.file(url, destfile) }else{ message(paste0("A local cop...
ManhattanmyDMP<-function(myDMP){ library("qqman") library("Haplin") SNP=rownames(myDMP) CHR=myDMP$CHR if(length(grep("X",CHR))>0){ CHR<-sapply(CHR,function(x) gsub(pattern = "X",replacement = "23",x)) CHR<-sapply(CHR,function(x) gsub(pattern = "Y",replacement = "24",x)) } CHR<-as.numeric(CHR) B...
/R/ManhattanmyDMP.R
no_license
Shicheng-Guo/AtrialFibrillation
R
false
false
704
r
ManhattanmyDMP<-function(myDMP){ library("qqman") library("Haplin") SNP=rownames(myDMP) CHR=myDMP$CHR if(length(grep("X",CHR))>0){ CHR<-sapply(CHR,function(x) gsub(pattern = "X",replacement = "23",x)) CHR<-sapply(CHR,function(x) gsub(pattern = "Y",replacement = "24",x)) } CHR<-as.numeric(CHR) B...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/waf_operations.R \name{waf_update_sql_injection_match_set} \alias{waf_update_sql_injection_match_set} \title{Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet} \usage{ waf_update_sql_injection_match_set(Sql...
/paws/man/waf_update_sql_injection_match_set.Rd
permissive
peoplecure/paws
R
false
true
4,113
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/waf_operations.R \name{waf_update_sql_injection_match_set} \alias{waf_update_sql_injection_match_set} \title{Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet} \usage{ waf_update_sql_injection_match_set(Sql...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colname_methods.R \name{getSulfurColName} \alias{getSulfurColName} \title{Get the name of the sulfur column} \usage{ getSulfurColName(ftmsObj) } \arguments{ \item{ftmsObj}{an object of type ftmsData} } \value{ name of sulfur column } \descrip...
/man/getSulfurColName.Rd
permissive
EMSL-Computing/ftmsRanalysis
R
false
true
432
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colname_methods.R \name{getSulfurColName} \alias{getSulfurColName} \title{Get the name of the sulfur column} \usage{ getSulfurColName(ftmsObj) } \arguments{ \item{ftmsObj}{an object of type ftmsData} } \value{ name of sulfur column } \descrip...
install.packages("RcmdrPlugin.EZR", dependencies=TRUE) library(RcmdrPlugin.EZR) library(Rcmdr)
/ProgrammingWorkshops/R/Rcmdr.R
no_license
kho7/SDS
R
false
false
95
r
install.packages("RcmdrPlugin.EZR", dependencies=TRUE) library(RcmdrPlugin.EZR) library(Rcmdr)
library(rvest) # for web scraping library(ggplot2) # for visualizations library(rbokeh) # interactive javascript visualizations library(plotly) # more interactive javascript visualizations # don't worry about this line of code for now setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) getwd() ...
/demos/02_TCU_roster_webscrape_vis.R
no_license
tjvananne/TCU_R_Class
R
false
false
3,490
r
library(rvest) # for web scraping library(ggplot2) # for visualizations library(rbokeh) # interactive javascript visualizations library(plotly) # more interactive javascript visualizations # don't worry about this line of code for now setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) getwd() ...
data <- read.csv('data/household_power_consumption.txt', sep=';', colClasses = c('character', 'character', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric'), na.strings = "?") data$DateTime ...
/plot3.R
no_license
croach/ExData_Plotting1
R
false
false
1,103
r
data <- read.csv('data/household_power_consumption.txt', sep=';', colClasses = c('character', 'character', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric'), na.strings = "?") data$DateTime ...
revert.columns <- function(mat) { mat[, rev(seq(ncol(mat)))] } rep.col <- function(x, n) { matrix(rep(x, each = n), ncol = n, byrow = TRUE) } makevector <- function(x, strand_sign) { if (strand_sign == 1) { if (x == 1) { a <- c(1, 0, 0, 0) } else if (x == 2) { a <- c(0, 1, 0, 0) } else i...
/R/visualization.R
no_license
Alisper/atIndel00
R
false
false
43,247
r
revert.columns <- function(mat) { mat[, rev(seq(ncol(mat)))] } rep.col <- function(x, n) { matrix(rep(x, each = n), ncol = n, byrow = TRUE) } makevector <- function(x, strand_sign) { if (strand_sign == 1) { if (x == 1) { a <- c(1, 0, 0, 0) } else if (x == 2) { a <- c(0, 1, 0, 0) } else i...
\name{CPHshape-internal} \alias{CPHshape-internal} \alias{find.antimodeFULLMLE} \alias{find.beta} \alias{find.decreasingFULLMLE} \alias{find.increasingFULLMLE} \alias{find.modeFULLMLE} \alias{find.unimodalFULLMLE} \alias{find.h.up} \alias{find.h.down} \alias{find.increasingMLE} \alias{find.decreasingMLE} \alias{find.mo...
/man/CPHshape-internal.Rd
no_license
cran/CPHshape
R
false
false
557
rd
\name{CPHshape-internal} \alias{CPHshape-internal} \alias{find.antimodeFULLMLE} \alias{find.beta} \alias{find.decreasingFULLMLE} \alias{find.increasingFULLMLE} \alias{find.modeFULLMLE} \alias{find.unimodalFULLMLE} \alias{find.h.up} \alias{find.h.down} \alias{find.increasingMLE} \alias{find.decreasingMLE} \alias{find.mo...
library(shiny) library(ggplot2) library(caret) library(rpart) library(randomForest) library(gbm) library(scales) shinyServer(function(input, output) { #set.seed(12356) iTrain<-createDataPartition(diamonds$price,p=0.6,list=F) training<-diamonds[iTrain,] testing<-diamonds[-iTrain,] ## Tab Exploratory o...
/server.R
no_license
eaganan/Project_data_products
R
false
false
2,927
r
library(shiny) library(ggplot2) library(caret) library(rpart) library(randomForest) library(gbm) library(scales) shinyServer(function(input, output) { #set.seed(12356) iTrain<-createDataPartition(diamonds$price,p=0.6,list=F) training<-diamonds[iTrain,] testing<-diamonds[-iTrain,] ## Tab Exploratory o...
#' Time zone #' #' Change the time zone, and restore it afterwards. #' #' `with_time_zone()` runs the code with the specified time zone and #' resets it afterwards. #' #' `local_time_zone()` changes the time zone for the caller #' execution environment. #' #' @template with #' @param tz `[character(1)]` a valid time zo...
/R/timezone.R
no_license
cran/withr
R
false
false
1,721
r
#' Time zone #' #' Change the time zone, and restore it afterwards. #' #' `with_time_zone()` runs the code with the specified time zone and #' resets it afterwards. #' #' `local_time_zone()` changes the time zone for the caller #' execution environment. #' #' @template with #' @param tz `[character(1)]` a valid time zo...
instructorURL = "https://api.github.com/users/jtleek/repos" library(httr) Sys.setenv(GITHUB_CONSUMER_SECRET='1a74b9ce0467d429ec38e6b0e085339605cb08a9') myapp = oauth_app("github", "5d96c0f3e326b3d96519") endpts <- oauth_endpoints('github') #endpts <- oauth_endpoint(authorize = "authorize", access = "access_token", base...
/3-Getdata/quiz2.R
no_license
pkuqiuning/coursera_datascience
R
false
false
1,533
r
instructorURL = "https://api.github.com/users/jtleek/repos" library(httr) Sys.setenv(GITHUB_CONSUMER_SECRET='1a74b9ce0467d429ec38e6b0e085339605cb08a9') myapp = oauth_app("github", "5d96c0f3e326b3d96519") endpts <- oauth_endpoints('github') #endpts <- oauth_endpoint(authorize = "authorize", access = "access_token", base...
temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp) colunas <- read.table(unz(temp, "household_power_consumption.txt"), nrows = 1, sep = ";", header = F) colunas <- as.vector(as.matrix(colunas)) tabela <- read.table(unz(temp, "household_power...
/Plot2.R
no_license
mrhnp/ExData_Plotting1
R
false
false
679
r
temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp) colunas <- read.table(unz(temp, "household_power_consumption.txt"), nrows = 1, sep = ";", header = F) colunas <- as.vector(as.matrix(colunas)) tabela <- read.table(unz(temp, "household_power...
###### R Graphics Lecture 1 : Bar Graphs ######## ### install packages for graphics -- if you installed them, do not again #pack_names <- c('ggplots','gcookbook') #install.packages(pack_names) ### loading packages library('ggplot2') # load "ggplot2" package library('gcookbook') # load "gcookbook" for data se...
/Exploratory Data Analysis/Lecture note/ggplot2/Rcodes/R_Graphics_1.R
no_license
hsyliark/HUFS_Statistics_College
R
false
false
5,037
r
###### R Graphics Lecture 1 : Bar Graphs ######## ### install packages for graphics -- if you installed them, do not again #pack_names <- c('ggplots','gcookbook') #install.packages(pack_names) ### loading packages library('ggplot2') # load "ggplot2" package library('gcookbook') # load "gcookbook" for data se...
baseoai <- function() "https://ws.pangaea.de/oai/provider" base <- function() 'https://doi.pangaea.de/' sbase <- function() "https://www.pangaea.de/advanced/search.php" esbase <- function() "https://ws.pangaea.de/es/pangaea/panmd/_search" pgc <- function(x) Filter(Negate(is.null), x) pluck <- function(x, name, type) ...
/R/zzz.R
permissive
astrotuna201/pangaear
R
false
false
1,618
r
baseoai <- function() "https://ws.pangaea.de/oai/provider" base <- function() 'https://doi.pangaea.de/' sbase <- function() "https://www.pangaea.de/advanced/search.php" esbase <- function() "https://ws.pangaea.de/es/pangaea/panmd/_search" pgc <- function(x) Filter(Negate(is.null), x) pluck <- function(x, name, type) ...
## code to prepare `key_crop_yields` dataset goes here library(readr) library(janitor) library(tidyr) library(magrittr) url <- 'https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-09-01/key_crop_yields.csv' key_crop_yields <- read_csv(url) %>% clean_names() %>% pivot_longer( col...
/data-raw/key_crop_yields.R
permissive
Year-97/cwdata
R
false
false
483
r
## code to prepare `key_crop_yields` dataset goes here library(readr) library(janitor) library(tidyr) library(magrittr) url <- 'https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-09-01/key_crop_yields.csv' key_crop_yields <- read_csv(url) %>% clean_names() %>% pivot_longer( col...
# The goal of files, like this one, is to introduce you to the # R programming language. Let's start with by unraveling a # little mystery! # 1. Run the code below to create the vector 'udacious'. # You need to highlight all of the lines of the code and then # run it. You should see "udacious" appear in the workspace....
/2_R_Basics/demistifying.R
no_license
amoghskulkarni/udacity_data_analysis_with_R
R
false
false
6,025
r
# The goal of files, like this one, is to introduce you to the # R programming language. Let's start with by unraveling a # little mystery! # 1. Run the code below to create the vector 'udacious'. # You need to highlight all of the lines of the code and then # run it. You should see "udacious" appear in the workspace....
## Matrix inverse is usually a costly computation. ## These functions cache the inverse of matrix rather than computing it repeatedly ## makeCacheMatrix function creates a special "matrix" object that can cache its inverse. ## It creates a matrix object which can perform the following functions- ## 1. Set the value o...
/cachematrix.R
no_license
rohansurana/ProgrammingAssignment2
R
false
false
1,836
r
## Matrix inverse is usually a costly computation. ## These functions cache the inverse of matrix rather than computing it repeatedly ## makeCacheMatrix function creates a special "matrix" object that can cache its inverse. ## It creates a matrix object which can perform the following functions- ## 1. Set the value o...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 3.01017104395449e-159, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L))) result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist...
/CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615840118-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
333
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 3.01017104395449e-159, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L))) result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist...
#' Prepare Data on Symmetric Positive-Definite (SPD) Manifold #' #' The collection of symmetric positive-definite matrices is a well-known example #' of matrix manifold. It is defined as #' \deqn{\mathcal{S}_{++}^p = \lbrace X \in \mathbf{R}^{p\times p} ~\vert~ X^\top = X,~ \textrm{rank}(X)=p \rbrace} #' where the ra...
/Riemann/R/wrap02spd.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
3,219
r
#' Prepare Data on Symmetric Positive-Definite (SPD) Manifold #' #' The collection of symmetric positive-definite matrices is a well-known example #' of matrix manifold. It is defined as #' \deqn{\mathcal{S}_{++}^p = \lbrace X \in \mathbf{R}^{p\times p} ~\vert~ X^\top = X,~ \textrm{rank}(X)=p \rbrace} #' where the ra...
# install packages: ## source("src/install-packages.R") ## installPackages() # Used libraries library(tidyverse) # includes many useful data analysis tools library(ggplot2) library(GGally) library(DataExplorer) library(corrplot) library(ggpubr) # R source files source("src/data-cleaning.R") source("src/plots/BarPlots....
/main.R
permissive
DawidCieslik/Heart-disease-UCI-analysis
R
false
false
1,847
r
# install packages: ## source("src/install-packages.R") ## installPackages() # Used libraries library(tidyverse) # includes many useful data analysis tools library(ggplot2) library(GGally) library(DataExplorer) library(corrplot) library(ggpubr) # R source files source("src/data-cleaning.R") source("src/plots/BarPlots....
# Load packages library(shiny) library(ggplot2) library(tidyverse) library(DT) # Load data load(url("http://s3.amazonaws.com/assets.datacamp.com/production/course_4850/datasets/movies.Rdata")) # Define UI for application that plots features of movies ui <- fluidPage( br(), # Sidebar layout with a input and ...
/shiny/brush_example.R
no_license
iveksl2/notes
R
false
false
1,676
r
# Load packages library(shiny) library(ggplot2) library(tidyverse) library(DT) # Load data load(url("http://s3.amazonaws.com/assets.datacamp.com/production/course_4850/datasets/movies.Rdata")) # Define UI for application that plots features of movies ui <- fluidPage( br(), # Sidebar layout with a input and ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PIDataServerLicense.r \name{PIDataServerLicense} \alias{PIDataServerLicense} \title{Generate an instance of the PIDataServerLicense PI Web API class} \usage{ PIDataServerLicense(amountLeft = NULL, amountUsed = NULL, name = NULL, totalAmount...
/man/PIDataServerLicense.Rd
permissive
frbl/PI-Web-API-Client-R
R
false
true
792
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PIDataServerLicense.r \name{PIDataServerLicense} \alias{PIDataServerLicense} \title{Generate an instance of the PIDataServerLicense PI Web API class} \usage{ PIDataServerLicense(amountLeft = NULL, amountUsed = NULL, name = NULL, totalAmount...
# Import all GWAS data and extract GWAS and MBSV dbSNP IDs # Author: Michael Geaghan (2020) # Read in GWAS data gwas_files <- list(adhd.2018 = './adhd.2018.gwas.RData', an.2019 = './an.2019.gwas.RData', asd.2019 = './asd.2019.gwas.RData', bip.2018 = './bip.2018....
/analysis/mbsv.analysis.3.R
no_license
mgeaghan/mbsv
R
false
false
1,617
r
# Import all GWAS data and extract GWAS and MBSV dbSNP IDs # Author: Michael Geaghan (2020) # Read in GWAS data gwas_files <- list(adhd.2018 = './adhd.2018.gwas.RData', an.2019 = './an.2019.gwas.RData', asd.2019 = './asd.2019.gwas.RData', bip.2018 = './bip.2018....
passedDay <- function(t_exchanges, t_holders, selected_token) { h1 <- token_info[ (tolower(token_info$symbol) == tolower(selected_token$symbol)) & (token_info$date_time >= (today - 1)) , ] ch_h1 <- round(100 * (as.numeric(t_holders) - as.numeric(h1$sum_holders[1])) / as.numeric(t_holders), 2) h7 <- token_i...
/Backend/methods.R
no_license
trevenk/ES_LAIN_PROJECT
R
false
false
1,790
r
passedDay <- function(t_exchanges, t_holders, selected_token) { h1 <- token_info[ (tolower(token_info$symbol) == tolower(selected_token$symbol)) & (token_info$date_time >= (today - 1)) , ] ch_h1 <- round(100 * (as.numeric(t_holders) - as.numeric(h1$sum_holders[1])) / as.numeric(t_holders), 2) h7 <- token_i...
\name{cudaHostUnregister} \alias{cudaHostUnregister} \title{Unregisters a memory range that was registered with cudaHostRegister} \description{ Unmaps the memory range whose base address is specified by \code{ptr}, and makes it pageable again.} \usage{cudaHostUnregister(ptr)} \arguments{ \item{ptr}{Host pointer to m...
/man/cudaHostUnregister.Rd
no_license
xfbingshan/RCUDA
R
false
false
496
rd
\name{cudaHostUnregister} \alias{cudaHostUnregister} \title{Unregisters a memory range that was registered with cudaHostRegister} \description{ Unmaps the memory range whose base address is specified by \code{ptr}, and makes it pageable again.} \usage{cudaHostUnregister(ptr)} \arguments{ \item{ptr}{Host pointer to m...
### In this problem set, you will tidy up an IAT dataset ### The original data is available at https://osf.io/szwuf/, but it comes as an SPSS .sav file ### I've included trimmed down .csv version of 2019's data in this repository for you to work with # loading libraries --------------------------------------------- ...
/TidyUp_PS.R
no_license
UofTPsychProg-fall-2019/ps8-tianas
R
false
false
8,289
r
### In this problem set, you will tidy up an IAT dataset ### The original data is available at https://osf.io/szwuf/, but it comes as an SPSS .sav file ### I've included trimmed down .csv version of 2019's data in this repository for you to work with # loading libraries --------------------------------------------- ...
tstat <- function(x1, x2) { n1 <- length(x1) n2 <- length(x2) denom <- sqrt((n1-1)*var(x1)/(n1^2) + (n2-1)*var(x2)/(n2^2)) return(meandiff(x1, x2)/denom) } abststat <- function(x1, x2) abs(tstat(x1, x2)) tstat_by <- function(x, group) { group <- factor(group) return(tstat(x[group==levels(group)[1]],x[grou...
/src/stats.R
no_license
ewan/basic_stats
R
false
false
2,060
r
tstat <- function(x1, x2) { n1 <- length(x1) n2 <- length(x2) denom <- sqrt((n1-1)*var(x1)/(n1^2) + (n2-1)*var(x2)/(n2^2)) return(meandiff(x1, x2)/denom) } abststat <- function(x1, x2) abs(tstat(x1, x2)) tstat_by <- function(x, group) { group <- factor(group) return(tstat(x[group==levels(group)[1]],x[grou...
library(utiml) ### Name: as.mlresult ### Title: Convert a matrix prediction in a multi label prediction ### Aliases: as.mlresult as.mlresult.default as.mlresult.mlresult ### ** Examples predictions <- matrix(runif(100), ncol = 10) colnames(predictions) <- paste('label', 1:10, sep='') # Create a mlresult from a mat...
/data/genthat_extracted_code/utiml/examples/as.mlresult.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
592
r
library(utiml) ### Name: as.mlresult ### Title: Convert a matrix prediction in a multi label prediction ### Aliases: as.mlresult as.mlresult.default as.mlresult.mlresult ### ** Examples predictions <- matrix(runif(100), ncol = 10) colnames(predictions) <- paste('label', 1:10, sep='') # Create a mlresult from a mat...
caterplot <- function (mcmcout, parms=NULL, regex=NULL, random=NULL, leaf.marker="[\\[_]", quantiles=list(), collapse=TRUE, denstrip = FALSE, add = FALSE, labels=NULL, labels.loc="axis", las = NULL, cex.labels=NULL, greek = FALSE, horizontal=TRUE, val.lim=NULL, lab.lim=NULL, lwd=c(1, 2), pch=16, eps=0.1, width=NULL, co...
/mcmcplots/R/caterplot.R
no_license
sumtxt/mcmcplots
R
false
false
6,366
r
caterplot <- function (mcmcout, parms=NULL, regex=NULL, random=NULL, leaf.marker="[\\[_]", quantiles=list(), collapse=TRUE, denstrip = FALSE, add = FALSE, labels=NULL, labels.loc="axis", las = NULL, cex.labels=NULL, greek = FALSE, horizontal=TRUE, val.lim=NULL, lab.lim=NULL, lwd=c(1, 2), pch=16, eps=0.1, width=NULL, co...
#' Aggregates or disaggregates a data frame #' #' Aggregates or disaggregates the values of a data frame according to a mapping #' #' By default `"weights"` is set to `NULL`. For aggregations, this means that #' values will be summed as they are. For disaggregations, each component of the #' larger category will take t...
/R/aggregate_map.R
no_license
pik-piam/quitte
R
false
false
12,871
r
#' Aggregates or disaggregates a data frame #' #' Aggregates or disaggregates the values of a data frame according to a mapping #' #' By default `"weights"` is set to `NULL`. For aggregations, this means that #' values will be summed as they are. For disaggregations, each component of the #' larger category will take t...
#### setup: load libraries, data format, etc #### setwd("~/Dropbox/Heise/U19-Ab/antibody/") #load libraries library(ggplot2) library(DOQTL) library(doBy) library(gridExtra) library(reshape2) #load in transformed data (see "Antibody data for mapping pipeline.R") data.type="auc" dat.7=read.csv(paste("data_bin/d7/dat...
/base_codes/qtl_mapping.R
no_license
kenoll/U19-Ab
R
false
false
19,255
r
#### setup: load libraries, data format, etc #### setwd("~/Dropbox/Heise/U19-Ab/antibody/") #load libraries library(ggplot2) library(DOQTL) library(doBy) library(gridExtra) library(reshape2) #load in transformed data (see "Antibody data for mapping pipeline.R") data.type="auc" dat.7=read.csv(paste("data_bin/d7/dat...
test_that("get_rasters works for different raster inputs", { #Fulanus_Ecorasters_download <- # get_rasters( # ext = FulanusDistribution, # margin = 5, # non_fixed_var = c('prec', 'tmin', 'tmax'), # years = c("present", '2050', '2070'), # scenarios = c('rcp26', 'rcp45', 'rcp85'), ...
/tests/testthat/test_get_rasters.R
no_license
gabrielhoc/Mapinguari
R
false
false
1,882
r
test_that("get_rasters works for different raster inputs", { #Fulanus_Ecorasters_download <- # get_rasters( # ext = FulanusDistribution, # margin = 5, # non_fixed_var = c('prec', 'tmin', 'tmax'), # years = c("present", '2050', '2070'), # scenarios = c('rcp26', 'rcp45', 'rcp85'), ...
# Title: Two-sample t-test # # Uses: The two-sample t-test is used when one variable is continuous and one # variable is categorical with two groups. This test assumes that samples have # been drawn from normally distributed popluations and that the popluations have # equal variances. The two-sample t-test is used to t...
/users/kaitcorn/t_test.R
no_license
ActiveDataBio/ADB-User-Study
R
false
false
4,400
r
# Title: Two-sample t-test # # Uses: The two-sample t-test is used when one variable is continuous and one # variable is categorical with two groups. This test assumes that samples have # been drawn from normally distributed popluations and that the popluations have # equal variances. The two-sample t-test is used to t...
library(jmotif) library(stringr) ### In this script we collect all the unique patterns that exist in each dataset # Get data in the form of train-test pairs get_train_test <- function(datasetno) { base_path = str_c('./data/dataset', datasetno) train_path = str_c(base_path, '/train.txt') test_path = str_c(base_...
/HW2/src/features_2.R
no_license
bhavika/DMMultimedia
R
false
false
5,794
r
library(jmotif) library(stringr) ### In this script we collect all the unique patterns that exist in each dataset # Get data in the form of train-test pairs get_train_test <- function(datasetno) { base_path = str_c('./data/dataset', datasetno) train_path = str_c(base_path, '/train.txt') test_path = str_c(base_...
install.packages('lubridate') library(lubridate) tday <- today() tday #Extract year month day from a date year(tday) month(tday) day(tday) #Extract weekday - Sunday is 1 wday(tday) wday(tday, label = TRUE) #Date time memt <- now() memt hour(memt) minute(memt) second(memt) #Date parsing or conversions class(td...
/dates manipulation.R
no_license
pakkhi/analytics1
R
false
false
1,716
r
install.packages('lubridate') library(lubridate) tday <- today() tday #Extract year month day from a date year(tday) month(tday) day(tday) #Extract weekday - Sunday is 1 wday(tday) wday(tday, label = TRUE) #Date time memt <- now() memt hour(memt) minute(memt) second(memt) #Date parsing or conversions class(td...
fivenum(~Longevity, data=MammalLongevity) min(~Longevity, data=MammalLongevity) max(~Longevity, data=MammalLongevity) range(~Longevity, data=MammalLongevity) # subtract to get the numerical range value iqr(~Longevity, data=MammalLongevity) # interquartile range
/inst/snippets/Example2.22.R
no_license
stacyderuiter/Lock5withR
R
false
false
269
r
fivenum(~Longevity, data=MammalLongevity) min(~Longevity, data=MammalLongevity) max(~Longevity, data=MammalLongevity) range(~Longevity, data=MammalLongevity) # subtract to get the numerical range value iqr(~Longevity, data=MammalLongevity) # interquartile range
#' Match names to the Getty ULAN #' #' Queries the Getty ULAN to find matching entries for a given string. You #' may filter the results by specifying an early or late date. #' #' @param names A character vector of names to match to a canonical ULAN id. #' @param early_year Match only artists who died after this year. ...
/R/ulanr.R
permissive
mdlincoln/ulanr
R
false
false
6,713
r
#' Match names to the Getty ULAN #' #' Queries the Getty ULAN to find matching entries for a given string. You #' may filter the results by specifying an early or late date. #' #' @param names A character vector of names to match to a canonical ULAN id. #' @param early_year Match only artists who died after this year. ...
require(nlme) require(doBy) sumfun <- function(x, ...) { c(tm=mean(x,0.025, ...), m = mean(x, ...), md = median(x, ...), v = sd(x, ...), l = length(x)) } maxi<-function(x){ x1<-as.factor(x) a<-summaryBy(x~x1,data=data.frame(x,x1),FUN=length) return(as.character(a[which.max(a[,2]),1])) } zone<-c("C2B","C3B","C3C",...
/FAFSSC_final_analysis/para_envf.R
no_license
npp97/FAFSSC
R
false
false
2,194
r
require(nlme) require(doBy) sumfun <- function(x, ...) { c(tm=mean(x,0.025, ...), m = mean(x, ...), md = median(x, ...), v = sd(x, ...), l = length(x)) } maxi<-function(x){ x1<-as.factor(x) a<-summaryBy(x~x1,data=data.frame(x,x1),FUN=length) return(as.character(a[which.max(a[,2]),1])) } zone<-c("C2B","C3B","C3C",...
#---------------------------------------------------------------------------- ## Copyright (c) 2012 University of Illinois, NCSA. ## All rights reserved. This program and the accompanying materials ## are made available under the terms of the ## University of Illinois/NCSA Open Source License ## which accompanies thi...
/settings/inst/tests/test.read.settings.R
permissive
lovelilyinfall/pecan
R
false
false
3,650
r
#---------------------------------------------------------------------------- ## Copyright (c) 2012 University of Illinois, NCSA. ## All rights reserved. This program and the accompanying materials ## are made available under the terms of the ## University of Illinois/NCSA Open Source License ## which accompanies thi...
library(ggplot2) library(GGally) set.seed(123) d <- read.csv(file='ch.5/input/data-attendance-1.txt') d$A <- as.factor(d$A) N_col <- ncol(d) ggp <- ggpairs(d, upper='blank', diag='blank', lower='blank') for(i in 1:N_col) { x <- d[,i] p <- ggplot(data.frame(x, A=d$A), aes(x)) p <- p + theme_bw(base_size=14) p...
/code/ch.5/fig5-1.R
permissive
rhyeu/study_rstan
R
false
false
2,577
r
library(ggplot2) library(GGally) set.seed(123) d <- read.csv(file='ch.5/input/data-attendance-1.txt') d$A <- as.factor(d$A) N_col <- ncol(d) ggp <- ggpairs(d, upper='blank', diag='blank', lower='blank') for(i in 1:N_col) { x <- d[,i] p <- ggplot(data.frame(x, A=d$A), aes(x)) p <- p + theme_bw(base_size=14) p...
# R version 3.4.1 (2017-06-30) # Platform: x86_64-apple-darwin15.6.0 (64-bit) # Running under: OS X El Capitan 10.11.6 # # Matrix products: default # BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib # LAPACK: /Library/Frameworks/R.framework/Versions/...
/miRNA.R
no_license
ahrbadr/Non-Small-Cell-Lung-Cancer
R
false
false
4,620
r
# R version 3.4.1 (2017-06-30) # Platform: x86_64-apple-darwin15.6.0 (64-bit) # Running under: OS X El Capitan 10.11.6 # # Matrix products: default # BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib # LAPACK: /Library/Frameworks/R.framework/Versions/...
ScanMetadata = function(fn, plot = TRUE){ whatnames = scan(fn, what = character(), sep = ',', nlines = 1) what = list() n = numeric() for(i in whatnames)what[[i]] = n ti = which(whatnames == 't') what[[ti]] = character() M = scan(fn, what = what, sep = ',', skip=1, flush = TRUE) tn...
/R/ScanMetadata.R
no_license
cran/gemlog
R
false
false
546
r
ScanMetadata = function(fn, plot = TRUE){ whatnames = scan(fn, what = character(), sep = ',', nlines = 1) what = list() n = numeric() for(i in whatnames)what[[i]] = n ti = which(whatnames == 't') what[[ti]] = character() M = scan(fn, what = what, sep = ',', skip=1, flush = TRUE) tn...
`treedist` <- function(x, tree, relative = TRUE, match.force = FALSE, ...) { n <- nrow(x) ABJ <- matrix(0, n , n) dmat <- as.matrix(cophenetic(tree)) ## match names if (ncol(x) != ncol(dmat) || match.force) { if(!match.force) warning("Dimensions do not match between 'x' and ...
/R/treedist.R
no_license
vanderleidebastiani/vegan
R
false
false
950
r
`treedist` <- function(x, tree, relative = TRUE, match.force = FALSE, ...) { n <- nrow(x) ABJ <- matrix(0, n , n) dmat <- as.matrix(cophenetic(tree)) ## match names if (ncol(x) != ncol(dmat) || match.force) { if(!match.force) warning("Dimensions do not match between 'x' and ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matViewPipeline.R \name{extraAction} \alias{extraAction} \title{Process the actions required for special handling as instructed for a case from the set available on the MIMIC code repository This function creates a materialized view from thos...
/man/extraAction.Rd
no_license
jraffa/MIMICutil
R
false
true
875
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matViewPipeline.R \name{extraAction} \alias{extraAction} \title{Process the actions required for special handling as instructed for a case from the set available on the MIMIC code repository This function creates a materialized view from thos...