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
#### TITLE: EC urban (UTM) data #### ## ## Author: Yusri Yusup, PhD ## Date: 2016-05-16 ## Version: 1.0 ## R Script to import and process urban EC data from UTM ## ## #### * Preliminaries #### source('R/tool_convert_magic.R') source('R/tool_convert_magic_num.R') source('R/tool_charactersNumeric.R') source('R/tool_...
/R/EC_urban_analysis.R
no_license
yusriy/EC_urban
R
false
false
2,778
r
#### TITLE: EC urban (UTM) data #### ## ## Author: Yusri Yusup, PhD ## Date: 2016-05-16 ## Version: 1.0 ## R Script to import and process urban EC data from UTM ## ## #### * Preliminaries #### source('R/tool_convert_magic.R') source('R/tool_convert_magic_num.R') source('R/tool_charactersNumeric.R') source('R/tool_...
library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0.0144) # The set of varaince of random covariates b as random slope smooth <- 1 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1 cores <- 1 r.sim <- b....
/full simulation/03.13.2018/power test/variance0.0144/seed1/power_0.0144_pca_s_seed1_50_20.R
no_license
wma9/FMRI-project
R
false
false
9,158
r
library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error b.var <- c(0.0144) # The set of varaince of random covariates b as random slope smooth <- 1 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1 cores <- 1 r.sim <- b....
.domessage = function(msg) message(msg) .onLoad = function(libname, pkgname) { ns = asNamespace(pkgname) delayedAssign("BiocRelease", tryCatch(BiocVers(getBiocReleaseVr()), error = function(x) { ...
/R/zzz.R
no_license
Spectra-Infra/switchr
R
false
false
1,243
r
.domessage = function(msg) message(msg) .onLoad = function(libname, pkgname) { ns = asNamespace(pkgname) delayedAssign("BiocRelease", tryCatch(BiocVers(getBiocReleaseVr()), error = function(x) { ...
f<-readRDS("summarySCC_PM25.rds") f2<-readRDS("Source_Classification_Code.rds") a<-split(f[f$fips==24510 , ],f[f$fips==24510 , ]$type) x<-list(arr=array()) for(i in 1:4) { x[[i]]<-tapply(a[[i]]$Emissions, a[[i]]$year,sum) names(x)[i]<- names(a)[[i]] } df<-data.frame(type=character() , year=numeric() , ems=nu...
/plot3.R
no_license
fyras1/PM2.5-assignment
R
false
false
838
r
f<-readRDS("summarySCC_PM25.rds") f2<-readRDS("Source_Classification_Code.rds") a<-split(f[f$fips==24510 , ],f[f$fips==24510 , ]$type) x<-list(arr=array()) for(i in 1:4) { x[[i]]<-tapply(a[[i]]$Emissions, a[[i]]$year,sum) names(x)[i]<- names(a)[[i]] } df<-data.frame(type=character() , year=numeric() , ems=nu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/locate.r \name{invert_match} \alias{invert_match} \title{Switch location of matches to location of non-matches.} \usage{ invert_match(loc) } \arguments{ \item{loc}{matrix of match locations, as from \code{\link{str_locate_all}}} } \value{ num...
/man/invert_match.Rd
no_license
analyticalmonk/stringr
R
false
true
716
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/locate.r \name{invert_match} \alias{invert_match} \title{Switch location of matches to location of non-matches.} \usage{ invert_match(loc) } \arguments{ \item{loc}{matrix of match locations, as from \code{\link{str_locate_all}}} } \value{ num...
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inverse) inv <<- inverse getinv <- function() inv list (set = set, get = get, setinv = setin...
/cachematrix.R
no_license
dasmey/ProgrammingAssignment2
R
false
false
614
r
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinv <- function(inverse) inv <<- inverse getinv <- function() inv list (set = set, get = get, setinv = setin...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/position-stack.r \name{position_stack} \alias{position_stack} \title{Stack overlapping objects on top of one another.} \usage{ position_stack(width = NULL, height = NULL) } \arguments{ \item{width}{Manually specify width (does not aff...
/man/position_stack.Rd
no_license
katto2/ggplot2
R
false
false
1,729
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/position-stack.r \name{position_stack} \alias{position_stack} \title{Stack overlapping objects on top of one another.} \usage{ position_stack(width = NULL, height = NULL) } \arguments{ \item{width}{Manually specify width (does not aff...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mcenKM.R \name{mcenKM} \alias{mcenKM} \title{Estimate Statistics} \usage{ mcenKM(x, group) } \arguments{ \item{x}{an object of "mcens" to compute} \item{group}{the group variable} } \value{ An object of class "survfit." } \description{ Suppo...
/man/mcenKM.Rd
permissive
Zhenglei-BCS/smwrQW
R
false
true
402
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mcenKM.R \name{mcenKM} \alias{mcenKM} \title{Estimate Statistics} \usage{ mcenKM(x, group) } \arguments{ \item{x}{an object of "mcens" to compute} \item{group}{the group variable} } \value{ An object of class "survfit." } \description{ Suppo...
# https://rpubs.com/cen0te/naivebayes-sentimentpolarity # install.packages("mongolite") # install.packages("tm") # install.packages("RTextTools") # install.packages("e1071") # install.packages("dplyr") # install.packages("caret") # Load required libraries library(tm) library(RTextTools) library(e1071) library(dplyr)...
/Dl.R
no_license
marcveens/movie-review-r
R
false
false
12,879
r
# https://rpubs.com/cen0te/naivebayes-sentimentpolarity # install.packages("mongolite") # install.packages("tm") # install.packages("RTextTools") # install.packages("e1071") # install.packages("dplyr") # install.packages("caret") # Load required libraries library(tm) library(RTextTools) library(e1071) library(dplyr)...
\name{bssn-package} \alias{bssn-package} \docType{package} \title{ Birnbaum-Saunders model } \description{ It provides the density, distribution function, quantile function, random number generator, reliability function, failure rate, likelihood function, moments and EM algorithm for Maximum Likelihood estimat...
/man/bssn-package.Rd
no_license
cran/bssn
R
false
false
1,682
rd
\name{bssn-package} \alias{bssn-package} \docType{package} \title{ Birnbaum-Saunders model } \description{ It provides the density, distribution function, quantile function, random number generator, reliability function, failure rate, likelihood function, moments and EM algorithm for Maximum Likelihood estimat...
# #install.packages("googleway") library(googleway) #install.packages("geosphere") library(geosphere) library(dplyr) #install.packages("getopt") library(getopt) #install.packages("jsonlite") library(jsonlite) library(data.table) library(RCurl) x.start <- 51.55313 y.start <- -0.111235 x.end <- 51.563376 y.end <- -0.0...
/archive/hospitalData.R
permissive
sebSteinhauser/PubBrawl
R
false
false
4,425
r
# #install.packages("googleway") library(googleway) #install.packages("geosphere") library(geosphere) library(dplyr) #install.packages("getopt") library(getopt) #install.packages("jsonlite") library(jsonlite) library(data.table) library(RCurl) x.start <- 51.55313 y.start <- -0.111235 x.end <- 51.563376 y.end <- -0.0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/map_constructors.R \name{asmap_step} \alias{asmap_step} \title{A wrapper around ASMap::mstmap with some error handling. Associates success or error and p.value with the output.} \usage{ asmap_step(obj, p.value = 1e-06) } \arguments{ \item{obj...
/man/asmap_step.Rd
no_license
alexwhan/genomap
R
false
true
535
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/map_constructors.R \name{asmap_step} \alias{asmap_step} \title{A wrapper around ASMap::mstmap with some error handling. Associates success or error and p.value with the output.} \usage{ asmap_step(obj, p.value = 1e-06) } \arguments{ \item{obj...
make.mi.map <- function(project){ METADIR <- "/group/stranger-lab/askol/TCGA/TCGA_MetaData" meta.miRNA.file <- paste0(METADIR,"/",project,"_miRNA_meta.txt") mi.map <- read.table(file=meta.miRNA.file, header=T, as.is=T, sep="\t") names(mi.map) <- gsub("file_id", "file_id_mi", names(mi.map)...
/Create_Production_Data_funcs.r
no_license
askol/TCGA_mRNA_miRNA
R
false
false
15,416
r
make.mi.map <- function(project){ METADIR <- "/group/stranger-lab/askol/TCGA/TCGA_MetaData" meta.miRNA.file <- paste0(METADIR,"/",project,"_miRNA_meta.txt") mi.map <- read.table(file=meta.miRNA.file, header=T, as.is=T, sep="\t") names(mi.map) <- gsub("file_id", "file_id_mi", names(mi.map)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-eta-pairs.R \name{eta_pairs} \alias{eta_pairs} \title{This creates an eta correlation which defines the relationship between parameters} \usage{ eta_pairs( title, dname = NULL, type.eta = c("mode", "mean"), text_color = "black", ...
/man/eta_pairs.Rd
no_license
csetraynor/ggPMX
R
false
true
1,817
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-eta-pairs.R \name{eta_pairs} \alias{eta_pairs} \title{This creates an eta correlation which defines the relationship between parameters} \usage{ eta_pairs( title, dname = NULL, type.eta = c("mode", "mean"), text_color = "black", ...
t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) t$Date <- as.Date(t$Date, "%d/%m/%Y") t <- subset(t,Date >= as.Date("2007-2-1") & Date <= as.Date("2007-2-2"...
/plot1.R
no_license
sergeypara/ExData_Plotting1
R
false
false
747
r
t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) t$Date <- as.Date(t$Date, "%d/%m/%Y") t <- subset(t,Date >= as.Date("2007-2-1") & Date <= as.Date("2007-2-2"...
\name{rowMAFs} \alias{rowMAFs} \title{ Rowwise Minor Allele Frequency } \description{ Computes for each SNP represented by a row of a matrix the frequency of the minor allele. } \usage{ rowMAFs(x, check = TRUE) } \arguments{ \item{x}{a matrix in which each row represents a SNP and each column a subject,...
/man/rowMAFs.Rd
no_license
cran/scrime
R
false
false
918
rd
\name{rowMAFs} \alias{rowMAFs} \title{ Rowwise Minor Allele Frequency } \description{ Computes for each SNP represented by a row of a matrix the frequency of the minor allele. } \usage{ rowMAFs(x, check = TRUE) } \arguments{ \item{x}{a matrix in which each row represents a SNP and each column a subject,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{is_internship} \alias{is_internship} \title{Determine if posting is an internship} \usage{ is_internship(text) } \arguments{ \item{text}{= text string} } \value{ overwrites the old rdata file with an updated version (you can nev...
/resmatch/man/is_internship.Rd
no_license
wjburton/resume-matching
R
false
true
421
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{is_internship} \alias{is_internship} \title{Determine if posting is an internship} \usage{ is_internship(text) } \arguments{ \item{text}{= text string} } \value{ overwrites the old rdata file with an updated version (you can nev...
# Author: Matthew Phelps # Desc: Compare expected number of outbreaks to take hold against the actual number rm(list = ls()) devtools::install_github('matthew-phelps/CholeraDataDK', force = F) library(CholeraDataDK) library(tidyverse) source("functions.R") load("data/r0.Rdata") par_cases <- CholeraDataDK::parish_case...
/outbreak-probability.R
no_license
matthew-phelps/Cholera-DK-paper1
R
false
false
802
r
# Author: Matthew Phelps # Desc: Compare expected number of outbreaks to take hold against the actual number rm(list = ls()) devtools::install_github('matthew-phelps/CholeraDataDK', force = F) library(CholeraDataDK) library(tidyverse) source("functions.R") load("data/r0.Rdata") par_cases <- CholeraDataDK::parish_case...
dataset<-read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Fitting decison tree regression to dataset regressor= rpart(formula= Salary ~ ., data=dataset, control=rpart.control(minsplit=0.1)) #predicting a new result y_pred= predict(regressor, data.frame(Level=6.5)) #visualising the result ...
/decisontree.R
no_license
rupinthakur23/Sentiment-Analysis
R
false
false
655
r
dataset<-read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Fitting decison tree regression to dataset regressor= rpart(formula= Salary ~ ., data=dataset, control=rpart.control(minsplit=0.1)) #predicting a new result y_pred= predict(regressor, data.frame(Level=6.5)) #visualising the result ...
setwd("~/Documents/Etudes_Informatique/Cours/UTC/GI04/SY09_Data_Mining/TPs") getwd() source("TP0/prodtrans.R") A<-matrix(1:9,nrow=3,byrow=T) B<-matrix(c(5,3,7,4,6,3,1,6,3,2,8,5),nrow=4,byrow=T) ptA = prodtrans(A) ptB = prodtrans(B)
/TP0/src/1_3_Scripts_Fonctions.R
no_license
raphaelhamonnais/UTC_SY09_DataMining
R
false
false
231
r
setwd("~/Documents/Etudes_Informatique/Cours/UTC/GI04/SY09_Data_Mining/TPs") getwd() source("TP0/prodtrans.R") A<-matrix(1:9,nrow=3,byrow=T) B<-matrix(c(5,3,7,4,6,3,1,6,3,2,8,5),nrow=4,byrow=T) ptA = prodtrans(A) ptB = prodtrans(B)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{tidy.sclr} \alias{tidy.sclr} \title{Tidy a \code{sclr} object.} \usage{ \method{tidy}{sclr}(x, ci_level = 0.95, ...) } \arguments{ \item{x}{An object returned by \code{\link{sclr}}.} \item{ci_level}{Confidence level for the i...
/man/tidy.sclr.Rd
no_license
cran/sclr
R
false
true
804
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{tidy.sclr} \alias{tidy.sclr} \title{Tidy a \code{sclr} object.} \usage{ \method{tidy}{sclr}(x, ci_level = 0.95, ...) } \arguments{ \item{x}{An object returned by \code{\link{sclr}}.} \item{ci_level}{Confidence level for the i...
# Read the base zip file "exdata_data_NEI_data.zip" that contains the data ## This first line will likely take a few seconds. Be patient! dataInput_file <- "exdata_data_NEI_data.zip" if (!file.exists(dataInput_file)) { data_URL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(d...
/plot2.R
no_license
myrba2win/exploratory-data-analysis-course-project-2
R
false
false
1,355
r
# Read the base zip file "exdata_data_NEI_data.zip" that contains the data ## This first line will likely take a few seconds. Be patient! dataInput_file <- "exdata_data_NEI_data.zip" if (!file.exists(dataInput_file)) { data_URL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(d...
#' GH random variate #' Eq. (5) #' #' @param mu GH parameter in the paper #' @param alpha GH parameter in the paper #' @param beta GH parameter in the paper #' @param delta GH parameter in the paper #' @param p GH parameter in the paper #' @param param (mu, delta, alpha, beta, p) instead of above #' @param n.quad numbe...
/pkg/R/gh_rand.R
permissive
PyFE/InvGaussianQuad-R
R
false
false
1,198
r
#' GH random variate #' Eq. (5) #' #' @param mu GH parameter in the paper #' @param alpha GH parameter in the paper #' @param beta GH parameter in the paper #' @param delta GH parameter in the paper #' @param p GH parameter in the paper #' @param param (mu, delta, alpha, beta, p) instead of above #' @param n.quad numbe...
rm(list = ls()) library(tidyverse) library(ggplot2) library(randomForest) library(rmarkdown) getDataPath <- function (...) { return(file.path("C:/Users/n10393021/OneDrive - Queensland University of Technology/Documents/PhD/Project/Chapter2_SoundscapeTemporalAssessment", ...)) } df <- read.csv(getDataPath("15.02.202...
/Chapter2_LongTermAcousticMonitoring/17.02.2022_StatsExploratory.R
permissive
QutEcoacoustics/spatial-acoustics
R
false
false
5,841
r
rm(list = ls()) library(tidyverse) library(ggplot2) library(randomForest) library(rmarkdown) getDataPath <- function (...) { return(file.path("C:/Users/n10393021/OneDrive - Queensland University of Technology/Documents/PhD/Project/Chapter2_SoundscapeTemporalAssessment", ...)) } df <- read.csv(getDataPath("15.02.202...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fs_em.R \name{fs_em} \alias{fs_em} \title{Calculate EM-estimates of m- and u-probabilities} \usage{ fs_em(patterns, mprobs0 = list(0.95), uprobs0 = list(0.02), p0 = 0.05) } \arguments{ \item{patterns}{either a table of patterns (as output by ...
/man/fs_em.Rd
no_license
markvanderloo/reclin
R
false
true
782
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fs_em.R \name{fs_em} \alias{fs_em} \title{Calculate EM-estimates of m- and u-probabilities} \usage{ fs_em(patterns, mprobs0 = list(0.95), uprobs0 = list(0.02), p0 = 0.05) } \arguments{ \item{patterns}{either a table of patterns (as output by ...
rois_sunburst <- function(dataset = NULL, rois = c("CH", "BS", "CB"), parents = TRUE, savepath = NULL){ #Set Up paxTOallen <- function(paxinos){ round(214+(20-(paxinos*1000))/25) } get_roi <- function(dataset, roi = c('MO', 'TH')){ out <- unlist(lapply(roi, function(x)sum(dataset$acronym...
/rois_sunburst.R
no_license
jdknguyen/ZephyrShinyApp
R
false
false
4,881
r
rois_sunburst <- function(dataset = NULL, rois = c("CH", "BS", "CB"), parents = TRUE, savepath = NULL){ #Set Up paxTOallen <- function(paxinos){ round(214+(20-(paxinos*1000))/25) } get_roi <- function(dataset, roi = c('MO', 'TH')){ out <- unlist(lapply(roi, function(x)sum(dataset$acronym...
#' analyse.0.0 #' #' After dividing up the graph into connected.components, #' we do \code{\link{analyse.connected.component.critical.points}} on each one for extracting pk variables definitions. #' for other unknown variables, currently we just keep them as is. #' We may add more code for analysing those part(the oth...
/symbolicR/R/00symbolic.003eqns.R
no_license
isabella232/symbolicR
R
false
false
9,467
r
#' analyse.0.0 #' #' After dividing up the graph into connected.components, #' we do \code{\link{analyse.connected.component.critical.points}} on each one for extracting pk variables definitions. #' for other unknown variables, currently we just keep them as is. #' We may add more code for analysing those part(the oth...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opsworkscm_operations.R \name{opsworkscm_export_server_engine_attribute} \alias{opsworkscm_export_server_engine_attribute} \title{Exports a specified server engine attribute as a base64-encoded string} \usage{ opsworkscm_export_server_engine_...
/cran/paws.management/man/opsworkscm_export_server_engine_attribute.Rd
permissive
johnnytommy/paws
R
false
true
2,529
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opsworkscm_operations.R \name{opsworkscm_export_server_engine_attribute} \alias{opsworkscm_export_server_engine_attribute} \title{Exports a specified server engine attribute as a base64-encoded string} \usage{ opsworkscm_export_server_engine_...
cat('\n\n');timestamp();cat('\n') library(btergm) library(parallel) library(texreg) data_dir <- '/home/sdowning/data/firm_nets_rnr' firm_i <- 'qualtrics' d <- 3 ncpus <- 4 parallel <- "multicore" data_file <- file.path(data_dir,sprintf('%s_d%s.rds',firm_i,d)) nets <- readRDS(data_file) nPeriods <- 11 ## 5 if (!(...
/R/awareness_AMJ_RNR_TERGM_m4-beta2.R
no_license
sdownin/compnet
R
false
false
2,440
r
cat('\n\n');timestamp();cat('\n') library(btergm) library(parallel) library(texreg) data_dir <- '/home/sdowning/data/firm_nets_rnr' firm_i <- 'qualtrics' d <- 3 ncpus <- 4 parallel <- "multicore" data_file <- file.path(data_dir,sprintf('%s_d%s.rds',firm_i,d)) nets <- readRDS(data_file) nPeriods <- 11 ## 5 if (!(...
\name{score.mopt_env} \alias{score.mopt_env} \title{compute the simulated score from the the chain. This is the matrix of the derivative of the moments with respect to the parameters around the best parameter value.} \usage{ score.mopt_env(me) } \description{ compute the simulated score from the the chain. This is ...
/man/score.mopt_env.Rd
no_license
priscillafialho/mopt
R
false
false
435
rd
\name{score.mopt_env} \alias{score.mopt_env} \title{compute the simulated score from the the chain. This is the matrix of the derivative of the moments with respect to the parameters around the best parameter value.} \usage{ score.mopt_env(me) } \description{ compute the simulated score from the the chain. This is ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auto.R \name{auto_dark_light_theme} \alias{auto_dark_light_theme} \alias{set_theme_light} \alias{set_theme_dark} \alias{use_theme_light} \alias{use_theme_dark} \alias{use_theme_toggle} \alias{use_theme_auto} \title{Automatically or manually t...
/man/auto_dark_light_theme.Rd
permissive
g66m/rsthemes
R
false
true
3,577
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auto.R \name{auto_dark_light_theme} \alias{auto_dark_light_theme} \alias{set_theme_light} \alias{set_theme_dark} \alias{use_theme_light} \alias{use_theme_dark} \alias{use_theme_toggle} \alias{use_theme_auto} \title{Automatically or manually t...
install.packages("reshape2") install.packages("ggplot2") library("reshape2") library("ggplot2") require(gdata) ################################ # proportions for DAFi results # ################################ lji_dafi <- read.xls("/Users/amandava/Desktop/HIPC_IOF_amandava/IOF_new/props_DAFi_new_2/LJI_props_4.xlsx",h...
/CV_Plots.R
no_license
am794/PreprocessingAndPlotting
R
false
false
17,833
r
install.packages("reshape2") install.packages("ggplot2") library("reshape2") library("ggplot2") require(gdata) ################################ # proportions for DAFi results # ################################ lji_dafi <- read.xls("/Users/amandava/Desktop/HIPC_IOF_amandava/IOF_new/props_DAFi_new_2/LJI_props_4.xlsx",h...
dat <- read.table("../Datasets/questionnaire.csv", sep = ";", h = T) library(ggplot2) library(reshape2) library(ggridges) dat <- dat[,c(1, order(colMeans(dat[,-1])) + 1)] cmn <- data.frame(ID = 1:(ncol(dat)-1), value = round(colMeans(dat[,-1]),1)) tmp <- melt(dat, id.vars = "ID") g1 <- ggplot(tmp, aes(x = value, y ...
/Code/L01_ProbabilityQuestionnaire/visualize.R
no_license
anhnguyendepocen/hse_bayesian
R
false
false
721
r
dat <- read.table("../Datasets/questionnaire.csv", sep = ";", h = T) library(ggplot2) library(reshape2) library(ggridges) dat <- dat[,c(1, order(colMeans(dat[,-1])) + 1)] cmn <- data.frame(ID = 1:(ncol(dat)-1), value = round(colMeans(dat[,-1]),1)) tmp <- melt(dat, id.vars = "ID") g1 <- ggplot(tmp, aes(x = value, y ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/docgen.R \name{docgen} \alias{docgen} \title{Automatically generate package documentation from a gentest() result} \usage{ docgen(gentest_result, title = attr(gentest_result, "function")) } \arguments{ \item{title}{String, the title o...
/man/docgen.Rd
no_license
alekrutkowski/gentest
R
false
false
983
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/docgen.R \name{docgen} \alias{docgen} \title{Automatically generate package documentation from a gentest() result} \usage{ docgen(gentest_result, title = attr(gentest_result, "function")) } \arguments{ \item{title}{String, the title o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudbuild.R \name{cr_build_wait} \alias{cr_build_wait} \title{Wait for a Build to run} \usage{ cr_build_wait(op = .Last.value, projectId = cr_project_get(), task_id = NULL) } \arguments{ \item{op}{The operation build object to wait for} \...
/man/cr_build_wait.Rd
no_license
j450h1/googleCloudRunner
R
false
true
947
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudbuild.R \name{cr_build_wait} \alias{cr_build_wait} \title{Wait for a Build to run} \usage{ cr_build_wait(op = .Last.value, projectId = cr_project_get(), task_id = NULL) } \arguments{ \item{op}{The operation build object to wait for} \...
# 1. Merges the training and the test sets to create one data set. # set working directory setwd("~/Coursera/Assignments/3. Getting and Cleaning data/UCI HAR Dataset") # Reading data from train folder #import features data features = read.table('features.txt', header = FALSE); #import activity_lab...
/run_analysis.R
no_license
kchawala/Getting-and-Cleaning-Data-Course-Project
R
false
false
4,480
r
# 1. Merges the training and the test sets to create one data set. # set working directory setwd("~/Coursera/Assignments/3. Getting and Cleaning data/UCI HAR Dataset") # Reading data from train folder #import features data features = read.table('features.txt', header = FALSE); #import activity_lab...
#!/usr/bin/env Rscript library(BBmisc) library(cluster) library(dbscan) library(scatterplot3d) library(factoextra) orange <- data.frame(Orange) head(orange) summary(orange) dist_mat <- daisy(orange, metric=c("euclidean")) summary(dist_mat) hc_complete <- hclust(dist_mat, method = "complete") fviz_dend(hc_complete, ...
/Lab 5/ex_4.9.r
no_license
UTBM-AGH-courses/agh-data-mining
R
false
false
676
r
#!/usr/bin/env Rscript library(BBmisc) library(cluster) library(dbscan) library(scatterplot3d) library(factoextra) orange <- data.frame(Orange) head(orange) summary(orange) dist_mat <- daisy(orange, metric=c("euclidean")) summary(dist_mat) hc_complete <- hclust(dist_mat, method = "complete") fviz_dend(hc_complete, ...
6bc46efa0544ea965c54006c982b4bcc c2_BMC_p2_k8.qdimacs 8744 28194
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Mangassarian-Veneris/BMC/c2_BMC_p2_k8/c2_BMC_p2_k8.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
64
r
6bc46efa0544ea965c54006c982b4bcc c2_BMC_p2_k8.qdimacs 8744 28194
# Libraries and Data ----- library(tidyverse) train <- read_csv('titanic/data/train.csv') #test <- read_csv('titanic/data/test.csv') # Cleaning ----- # Looking at nulls lapply(train, function (x) sum(is.na(x))) # Age, Cabin, Embarked # Age # First thing I noticed is people missing age are disproportionately Pclass...
/titanic/EDA.R
no_license
tfaulk13/kaggle
R
false
false
1,871
r
# Libraries and Data ----- library(tidyverse) train <- read_csv('titanic/data/train.csv') #test <- read_csv('titanic/data/test.csv') # Cleaning ----- # Looking at nulls lapply(train, function (x) sum(is.na(x))) # Age, Cabin, Embarked # Age # First thing I noticed is people missing age are disproportionately Pclass...
############################################################# ## Stat 202A - Homework 4 ## Author: Anurag Pande ## Date : 27-10-2016 ## Description: This script implements stagewise regression ## (epsilon boosting) ############################################################# #########################################...
/HW4/Submission/StagewiseRegression.R
no_license
anurag1212/Statistics
R
false
false
2,328
r
############################################################# ## Stat 202A - Homework 4 ## Author: Anurag Pande ## Date : 27-10-2016 ## Description: This script implements stagewise regression ## (epsilon boosting) ############################################################# #########################################...
# Review # object <- function(object) # All of R is about understanding objects and functions. # # Objects are made up of 5 data structures: # vectors, matrices, arrays - can only contain 1 type of information # lists, and dataframes - can hold different types of information # These structures can hold...
/examples (1).R
permissive
dantalus/Rcode
R
false
false
7,556
r
# Review # object <- function(object) # All of R is about understanding objects and functions. # # Objects are made up of 5 data structures: # vectors, matrices, arrays - can only contain 1 type of information # lists, and dataframes - can hold different types of information # These structures can hold...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "fri_c2_500_25") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = mak...
/models/openml_fri_c2_500_25/classification_binaryClass/5e04a6c8ecb3a5db8fb53680931e39e2/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
692
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "fri_c2_500_25") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = mak...
############################################################### ### FUNCTIONS ### ############################################################### source("r/stats.R") freq <- ' "4" = "Always", "3" = "Usually", "2" = "Sometimes/Never", "1" = "Sometimes/Neve...
/mepstrends/hc_tables/hc2_care/app_code.R
no_license
dancy0824/meps_summary_tables_v3
R
false
false
2,667
r
############################################################### ### FUNCTIONS ### ############################################################### source("r/stats.R") freq <- ' "4" = "Always", "3" = "Usually", "2" = "Sometimes/Never", "1" = "Sometimes/Neve...
#Must somehow add a column with wickets after each over setwd("~/R Work") ipl_deliveries <- read.csv("./deliveries.csv", stringsAsFactors = FALSE, header = TRUE) #Which match is in which season? matches <- read.csv("./matches.csv", header = TRUE, stringsAsFactors = FALSE) match_season <- subset(matches, select = c("id...
/ipl_linear_regression_with_wickets.R
no_license
apoorvabhide/ipl_scores_prediction
R
false
false
3,734
r
#Must somehow add a column with wickets after each over setwd("~/R Work") ipl_deliveries <- read.csv("./deliveries.csv", stringsAsFactors = FALSE, header = TRUE) #Which match is in which season? matches <- read.csv("./matches.csv", header = TRUE, stringsAsFactors = FALSE) match_season <- subset(matches, select = c("id...
bonf <- 3.23*(10^-7) highlights <- function(X) { top <- min(X,na.rm=T) wh <- which(X==top) if(length(wh)>1) { cat("more than one top hit: ",paste((X)[wh],collapse=","),"\n") } next.row <- c(wh[1],top,length(X),length(which(X<bonf))) return(next.row) } conditional <- function(X) { top <- min(X,na.rm=T) ...
/working.R
no_license
nicholasjcooper/iChip
R
false
false
17,142
r
bonf <- 3.23*(10^-7) highlights <- function(X) { top <- min(X,na.rm=T) wh <- which(X==top) if(length(wh)>1) { cat("more than one top hit: ",paste((X)[wh],collapse=","),"\n") } next.row <- c(wh[1],top,length(X),length(which(X<bonf))) return(next.row) } conditional <- function(X) { top <- min(X,na.rm=T) ...
library(MiDA) ### Name: MiNTreesAjust ### Title: Ajust number of trees parameter for fitting generalized boosted ### regression models ### Aliases: MiNTreesAjust ### ** Examples #get gene expression and specimen data data("IMexpression");data("IMspecimen") #sample expression matrix and specimen data for binary cl...
/data/genthat_extracted_code/MiDA/examples/MiNTreesAjust.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
806
r
library(MiDA) ### Name: MiNTreesAjust ### Title: Ajust number of trees parameter for fitting generalized boosted ### regression models ### Aliases: MiNTreesAjust ### ** Examples #get gene expression and specimen data data("IMexpression");data("IMspecimen") #sample expression matrix and specimen data for binary cl...
## makeCacheMatrix creates an object of type makeCacheMatrix() that ## stores a matrix (provided as a formal parameter by user) & provides ## 4 methods for operating on the object. [1] set() allows the user to ## reset the matrix. [2] get() allows the user to get the value of the matrix. ## [3] setinv() allows the func...
/cachematrix.R
no_license
fbgithub1/ProgrammingAssignment2
R
false
false
1,677
r
## makeCacheMatrix creates an object of type makeCacheMatrix() that ## stores a matrix (provided as a formal parameter by user) & provides ## 4 methods for operating on the object. [1] set() allows the user to ## reset the matrix. [2] get() allows the user to get the value of the matrix. ## [3] setinv() allows the func...
library(igraph) library(foreach) library(doParallel) library(dplyr) library(tidyr) library(broom) source('functions/data_generators.R') source('functions/covariate_functions.R') source('functions/response_functions.R') source('functions/existing_estimators.R') source('functions/proposed_estimators.R') source('function...
/sim_lim_truth.R
permissive
waterknows/regression-adjustments
R
false
false
1,610
r
library(igraph) library(foreach) library(doParallel) library(dplyr) library(tidyr) library(broom) source('functions/data_generators.R') source('functions/covariate_functions.R') source('functions/response_functions.R') source('functions/existing_estimators.R') source('functions/proposed_estimators.R') source('function...
## setup dataset with all the relevant data on the individual user_wc = data_orig0 %>% group_by(Id) %>% summarize(posts = n(), Female = max(Female), WC = median(WC), WPS = median(WPS), Sixltr = median(Sixltr), Number.Characters = median(Number.Characters),...
/hypothesis_2.R
no_license
lots-of-things/edge_forum
R
false
false
8,031
r
## setup dataset with all the relevant data on the individual user_wc = data_orig0 %>% group_by(Id) %>% summarize(posts = n(), Female = max(Female), WC = median(WC), WPS = median(WPS), Sixltr = median(Sixltr), Number.Characters = median(Number.Characters),...
library(MASS) ### Name: Null ### Title: Null Spaces of Matrices ### Aliases: Null ### Keywords: algebra ### ** Examples # The function is currently defined as function(M) { tmp <- qr(M) set <- if(tmp$rank == 0L) seq_len(ncol(M)) else -seq_len(tmp$rank) qr.Q(tmp, complete = TRUE)[, set, drop = FALSE] } ...
/data/genthat_extracted_code/MASS/examples/Null.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
323
r
library(MASS) ### Name: Null ### Title: Null Spaces of Matrices ### Aliases: Null ### Keywords: algebra ### ** Examples # The function is currently defined as function(M) { tmp <- qr(M) set <- if(tmp$rank == 0L) seq_len(ncol(M)) else -seq_len(tmp$rank) qr.Q(tmp, complete = TRUE)[, set, drop = FALSE] } ...
# Setting the column classes as character for Date and Time Columns # Setting the column classes as Numeric for rest of the seven fields cc <- c(rep("character",2),rep("numeric",7)) # Reading just the header row and converting it into a character vector # This is required since i am skipping reading of all the unwa...
/plot2.R
no_license
ajoykum/ExData_Plotting1
R
false
false
2,035
r
# Setting the column classes as character for Date and Time Columns # Setting the column classes as Numeric for rest of the seven fields cc <- c(rep("character",2),rep("numeric",7)) # Reading just the header row and converting it into a character vector # This is required since i am skipping reading of all the unwa...
######################### R Libraries Required ################################# ################################################################################ library(shiny) library(shinyWidgets) library(shinydashboard) library(dashboardthemes) library(openxlsx) library(readxl) library(dplyr) library(tidy...
/fitpal_app.R
no_license
gargharshul/fitpal-fitness-tracker
R
false
false
63,868
r
######################### R Libraries Required ################################# ################################################################################ library(shiny) library(shinyWidgets) library(shinydashboard) library(dashboardthemes) library(openxlsx) library(readxl) library(dplyr) library(tidy...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spread.R \name{spread} \alias{spread} \title{Spread a key-value pair across multiple columns} \usage{ spread(data, key, value, fill = NA, convert = FALSE, drop = TRUE, sep = NULL) } \arguments{ \item{data}{A data frame.} \item{key, value}{<\...
/man/spread.Rd
permissive
tidyverse/tidyr
R
false
true
2,713
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spread.R \name{spread} \alias{spread} \title{Spread a key-value pair across multiple columns} \usage{ spread(data, key, value, fill = NA, convert = FALSE, drop = TRUE, sep = NULL) } \arguments{ \item{data}{A data frame.} \item{key, value}{<\...
## Exploratory Data Analysis ## Course Project 1 ## Plot 4 # The household_power_consumption.txt file must be located in the working directory # Set language to English so automatically generated x-axis tic labels will be in English (Windows only) Sys.setlocale("LC_TIME", "English") # Read in data for Feb 1, 2007 an...
/figure/plot4.R
no_license
sdcmma/ExData_Plotting1
R
false
false
2,980
r
## Exploratory Data Analysis ## Course Project 1 ## Plot 4 # The household_power_consumption.txt file must be located in the working directory # Set language to English so automatically generated x-axis tic labels will be in English (Windows only) Sys.setlocale("LC_TIME", "English") # Read in data for Feb 1, 2007 an...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_edit_module.R \name{user_edit_module} \alias{user_edit_module} \title{user_edit_module} \usage{ user_edit_module( input, output, session, modal_title, user_to_edit, open_modal_trigger, existing_roles, existing_users ) } \...
/man/user_edit_module.Rd
permissive
axionbio/polished
R
false
true
931
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_edit_module.R \name{user_edit_module} \alias{user_edit_module} \title{user_edit_module} \usage{ user_edit_module( input, output, session, modal_title, user_to_edit, open_modal_trigger, existing_roles, existing_users ) } \...
context("Group by") df <- data.frame(x = rep(1:3, each = 10), y = rep(1:6, each = 5)) srcs <- temp_srcs(c("df", "dt", "sqlite", "postgres")) tbls <- temp_load(srcs, df) test_that("group_by with add = TRUE adds groups", { add_groups1 <- function(tbl) groups(group_by(tbl, x, y, add = TRUE)) add_groups2 <- function...
/tests/testthat/test-group-by.r
no_license
quzengyu/dplyr
R
false
false
7,561
r
context("Group by") df <- data.frame(x = rep(1:3, each = 10), y = rep(1:6, each = 5)) srcs <- temp_srcs(c("df", "dt", "sqlite", "postgres")) tbls <- temp_load(srcs, df) test_that("group_by with add = TRUE adds groups", { add_groups1 <- function(tbl) groups(group_by(tbl, x, y, add = TRUE)) add_groups2 <- function...
#' Create a Framework7 page #' #' Build a Framework7 page #' #' @param ... Slot for shinyMobile skeleton elements: \link{f7Appbar}, \link{f7SingleLayout}, #' \link{f7TabLayout}, \link{f7SplitLayout}. #' @param init App configuration. See \link{f7Init}. #' @param title Page title. #' @param preloader Whether to display ...
/R/f7Page.R
no_license
CristianPachacama/shinyMobile
R
false
false
16,961
r
#' Create a Framework7 page #' #' Build a Framework7 page #' #' @param ... Slot for shinyMobile skeleton elements: \link{f7Appbar}, \link{f7SingleLayout}, #' \link{f7TabLayout}, \link{f7SplitLayout}. #' @param init App configuration. See \link{f7Init}. #' @param title Page title. #' @param preloader Whether to display ...
remove(list = ls(all = TRUE)) gc() library(xtable) library(texreg) library(yacca) library(ggplot2) library(reshape2) require(Hmisc) library(foreign) library(corrgram) library(xlsx) library(dplyr) library(nnet) options(warn=1) set.seed(55333) ## Specify directories data.dir <- "Tax data/" network.data.dir <- "N...
/Survey code/Behavioral_Regression_Models.R
no_license
Breakend/RIBSS_tax_evasion_ABM
R
false
false
26,403
r
remove(list = ls(all = TRUE)) gc() library(xtable) library(texreg) library(yacca) library(ggplot2) library(reshape2) require(Hmisc) library(foreign) library(corrgram) library(xlsx) library(dplyr) library(nnet) options(warn=1) set.seed(55333) ## Specify directories data.dir <- "Tax data/" network.data.dir <- "N...
#### THESE FUNCTIONS NEED MORE TESTING #' Plots island area function through time #' #' @param totaltime total time of simulation #' @param Apars a named list containing area parameters: #' \itemize{ #' \item{[1]: maximum area} #' \item{[2]: value from 0 to 1 indicating where in the island's history the #' pea...
/R/DAISIE_plot_area.R
no_license
jorismoorkamp/DAISIE
R
false
false
10,497
r
#### THESE FUNCTIONS NEED MORE TESTING #' Plots island area function through time #' #' @param totaltime total time of simulation #' @param Apars a named list containing area parameters: #' \itemize{ #' \item{[1]: maximum area} #' \item{[2]: value from 0 to 1 indicating where in the island's history the #' pea...
library(shiny) library(shinythemes) library(plotly) source("analysis.R") ui <- fluidPage( navbarPage( theme = shinytheme("cyborg"), "Sleep Deprivation", tabPanel( "Background", tags$div( h3("About This Project:"), p("In today's society, people sacrifice their sleep time for va...
/app_ui.R
no_license
lawv-1841143/info201agsleepdeprivation
R
false
false
21,167
r
library(shiny) library(shinythemes) library(plotly) source("analysis.R") ui <- fluidPage( navbarPage( theme = shinytheme("cyborg"), "Sleep Deprivation", tabPanel( "Background", tags$div( h3("About This Project:"), p("In today's society, people sacrifice their sleep time for va...
print("Importing Data",quote=F) trainDescr <- read.csv("segmentation.csv") testDescr <- read.csv("segmentation.test.csv")
/import.R
no_license
Salaudeen-Hafeez/uci_mlr_image_seg
R
false
false
121
r
print("Importing Data",quote=F) trainDescr <- read.csv("segmentation.csv") testDescr <- read.csv("segmentation.test.csv")
# The purpose of this script is to generate a heatmap of the genes # in the intersection of the Module 10 RNA-seq features and the Seurat # cell cycle gene list. # # The EdU positive proportion (from IF) is used as an annotation # and to order samples. ################################################################...
/R/MDD_module10CellCycleHeatmap.R
no_license
MEP-LINCS/MDD
R
false
false
6,353
r
# The purpose of this script is to generate a heatmap of the genes # in the intersection of the Module 10 RNA-seq features and the Seurat # cell cycle gene list. # # The EdU positive proportion (from IF) is used as an annotation # and to order samples. ################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/meteo_distance.R \name{deg2rad} \alias{deg2rad} \title{Convert from degrees to radians} \usage{ deg2rad(deg) } \arguments{ \item{deg}{A numeric vector in units of degrees.} } \value{ The input numeric vector, converted to units of radians. } ...
/man/deg2rad.Rd
permissive
mpettis/rnoaa
R
false
true
368
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/meteo_distance.R \name{deg2rad} \alias{deg2rad} \title{Convert from degrees to radians} \usage{ deg2rad(deg) } \arguments{ \item{deg}{A numeric vector in units of degrees.} } \value{ The input numeric vector, converted to units of radians. } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mnist_27.R \docType{data} \name{mnist_27} \alias{mnist_27} \title{Useful example for illustrating machine learning algorithms based on MNIST data} \format{ An object of class \code{list}. } \source{ \href{http://yann.lecun.com/exdb/mnist/}{ht...
/man/mnist_27.Rd
no_license
WinieraSutanto/dslabs
R
false
true
1,247
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mnist_27.R \docType{data} \name{mnist_27} \alias{mnist_27} \title{Useful example for illustrating machine learning algorithms based on MNIST data} \format{ An object of class \code{list}. } \source{ \href{http://yann.lecun.com/exdb/mnist/}{ht...
Args <- commandArgs(T) input_pm = Args[1] # {Cancer_Type}/{Cancer_Type}.pm Signature_num = as.numeric(Args[2]) # the number of signatures mc = as.numeric(Args[3]) # the number of cores outdir = Args[4] # the output dir out_RData = gsub("pm", paste0(paste0("est.sig.",Si...
/pmsignature/getSig.all.R
no_license
ghxdghxd/MutSignatures
R
false
false
6,765
r
Args <- commandArgs(T) input_pm = Args[1] # {Cancer_Type}/{Cancer_Type}.pm Signature_num = as.numeric(Args[2]) # the number of signatures mc = as.numeric(Args[3]) # the number of cores outdir = Args[4] # the output dir out_RData = gsub("pm", paste0(paste0("est.sig.",Si...
## Proportional hazards GSM with random effects require(TMB) require(foreign) require(rstpm2) src <- "#include <TMB.hpp> template<class Type> Type objective_function<Type>::operator() () { DATA_VECTOR(event); // double DATA_MATRIX(X); DATA_MATRIX(XD); DATA_MATRIX(Z); DATA_SCALAR(eps); // boundary value fo...
/tmb-example.R
permissive
mclements/autodiff
R
false
false
1,784
r
## Proportional hazards GSM with random effects require(TMB) require(foreign) require(rstpm2) src <- "#include <TMB.hpp> template<class Type> Type objective_function<Type>::operator() () { DATA_VECTOR(event); // double DATA_MATRIX(X); DATA_MATRIX(XD); DATA_MATRIX(Z); DATA_SCALAR(eps); // boundary value fo...
get_data <- reactive({ # variables start_date <- input$dateRange[1] end_date <- input$dateRange[2] # data frames requests <- subset(data, the_date >= start_date & the_date < end_date) info <- list(calls = calls) return(info) })
/twitch/scripts/reactive.r
no_license
Josh-D/tw_app
R
false
false
256
r
get_data <- reactive({ # variables start_date <- input$dateRange[1] end_date <- input$dateRange[2] # data frames requests <- subset(data, the_date >= start_date & the_date < end_date) info <- list(calls = calls) return(info) })
renv::init() renv::snapshot(prompt = FALSE)
/scripts/001_renv_init.R
no_license
MarcinKosinski/RonAWS
R
false
false
44
r
renv::init() renv::snapshot(prompt = FALSE)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parameters_beta.R \name{parameters_beta} \alias{parameters_beta} \title{hook for beta/Gaussian equivalency tricks} \usage{ parameters_beta(dat, ...) } \arguments{ \item{dat}{a vector of data, purportedly from a Beta distribution} \item{...}{...
/man/parameters_beta.Rd
no_license
VanAndelInstitute/bifurcatoR
R
false
true
1,289
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parameters_beta.R \name{parameters_beta} \alias{parameters_beta} \title{hook for beta/Gaussian equivalency tricks} \usage{ parameters_beta(dat, ...) } \arguments{ \item{dat}{a vector of data, purportedly from a Beta distribution} \item{...}{...
library(dplyr) PlotAllDatasetBestMetrics <- function(metrics, datasets = globalDataSets) { did <- datasets$did all_best <- c() for (id in did) { all_best <- c(all_best, DatasetBestMetrics(id, metrics)) } all_best } MetaAttributesMissingValuesCoverage <- function(meta_attributes = globalQualities) { sa...
/ml-auto-configuration-rules/statistics.R
no_license
quepas/Oy-mate
R
false
false
2,953
r
library(dplyr) PlotAllDatasetBestMetrics <- function(metrics, datasets = globalDataSets) { did <- datasets$did all_best <- c() for (id in did) { all_best <- c(all_best, DatasetBestMetrics(id, metrics)) } all_best } MetaAttributesMissingValuesCoverage <- function(meta_attributes = globalQualities) { sa...
i = 96 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.95.R
no_license
jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples
R
false
false
650
r
i = 96 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("...
library(caret) library(e1071) rm(list = ls()) #variable jumlah_fold = 5 #membaca data main_data = read.csv("data_2_class_seimbang.csv", stringsAsFactors = FALSE) #membagi data menjadi k group print("Membuat kelompok") fold_index = createFolds(main_data$class_label, k=jumlah_fold) if(exists("predict_result")) { rm("pr...
/Naive Bayes/naive bayes_Binary Classification.R
no_license
nolaristiyanti/Cross-Validation
R
false
false
2,332
r
library(caret) library(e1071) rm(list = ls()) #variable jumlah_fold = 5 #membaca data main_data = read.csv("data_2_class_seimbang.csv", stringsAsFactors = FALSE) #membagi data menjadi k group print("Membuat kelompok") fold_index = createFolds(main_data$class_label, k=jumlah_fold) if(exists("predict_result")) { rm("pr...
\name{RegWhy.characterType.nonWordBoundary} \alias{RegWhy.characterType.nonWordBoundary} %- Also NEED an '\alias' for EACH other topic documented here. \title{nonWordBoundary %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ RegWhy.characterType...
/R/RegWhy/man/RegWhy.characterType.nonWordBoundary.Rd
no_license
dmerson/RegWhyMultiLanguage
R
false
false
1,321
rd
\name{RegWhy.characterType.nonWordBoundary} \alias{RegWhy.characterType.nonWordBoundary} %- Also NEED an '\alias' for EACH other topic documented here. \title{nonWordBoundary %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ RegWhy.characterType...
library(tidyverse) library(data.world) library(stringr) library(ISOweek) library(lubridate) library(patchwork) library(grid) data_world <- "katebamford/makeover-monday" renewables_datasheet_sql <- data.world::qry_sql("SELECT * FROM data") renewables_data <- data.world::query(renewables_datasheet_sql, data_world) ren...
/Week_5_makeover_monday.R
no_license
KateBamford/Makeover-Monday
R
false
false
539
r
library(tidyverse) library(data.world) library(stringr) library(ISOweek) library(lubridate) library(patchwork) library(grid) data_world <- "katebamford/makeover-monday" renewables_datasheet_sql <- data.world::qry_sql("SELECT * FROM data") renewables_data <- data.world::query(renewables_datasheet_sql, data_world) ren...
library(stringr) library(dplyr) ## ASA data read in and preproc #### chain<-read.csv('./2019/ASA_PlayerxGChain_per96table.csv', stringsAsFactors = F) A3pass<-read.csv('./2019/ASApassingtable-attackthird.csv', stringsAsFactors = F) M3pass<-read.csv('./2019/ASApassingtable-middlethird.csv', stringsAsFactors = F) D3pass<...
/ASAclusters/preproc_ASA_fbref_2019.R
no_license
mimburgi/SoccerStuff
R
false
false
13,810
r
library(stringr) library(dplyr) ## ASA data read in and preproc #### chain<-read.csv('./2019/ASA_PlayerxGChain_per96table.csv', stringsAsFactors = F) A3pass<-read.csv('./2019/ASApassingtable-attackthird.csv', stringsAsFactors = F) M3pass<-read.csv('./2019/ASApassingtable-middlethird.csv', stringsAsFactors = F) D3pass<...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/itemfit.R \name{orlando_itemf} \alias{orlando_itemf} \title{Orlando's statistic} \usage{ orlando_itemf(patterns, G, zita, model) } \arguments{ \item{patterns}{matrix of patterns response, the frequency of each pattern and the latent ...
/man/orlando_itemf.Rd
no_license
cran/IRTpp
R
false
true
1,569
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/itemfit.R \name{orlando_itemf} \alias{orlando_itemf} \title{Orlando's statistic} \usage{ orlando_itemf(patterns, G, zita, model) } \arguments{ \item{patterns}{matrix of patterns response, the frequency of each pattern and the latent ...
library(arules) library(arulesViz) # Membuat variabel transaksi transaksi <- read.transactions(file="https://storage.googleapis.com/dqlab-dataset/data_transaksi.txt", format="single", sep="\t", cols=c(1,2), skip=1) # Menampilkan daftar item transaksi transaksi@itemInfo # Menampilkan daftar kode transaksi transaksi@i...
/mba_analysis.R
permissive
argaeryzal/market-basket-analysis
R
false
false
2,189
r
library(arules) library(arulesViz) # Membuat variabel transaksi transaksi <- read.transactions(file="https://storage.googleapis.com/dqlab-dataset/data_transaksi.txt", format="single", sep="\t", cols=c(1,2), skip=1) # Menampilkan daftar item transaksi transaksi@itemInfo # Menampilkan daftar kode transaksi transaksi@i...
# # counting sort algorithm # introduction to algorithm, 3rd edition, chapter 3 # # clean the workspace and memory rm( list=ls() ) gc() aaa <- sample(10,10,replace = T) count_sort <- function( aaa ){ k <- max(aaa) bbb <- NULL ccc <- rep(0,k) for(idx in aaa){ ccc[idx] <- ccc[idx] + 1 } ccc <- cumsum(...
/books/cs/general-purpose-algorithms/introduction-to-algorithms/3rd-edition/chapter8/R/counting_sort.R
permissive
Winfredemalx54/algorithm-challenger-1
R
false
false
463
r
# # counting sort algorithm # introduction to algorithm, 3rd edition, chapter 3 # # clean the workspace and memory rm( list=ls() ) gc() aaa <- sample(10,10,replace = T) count_sort <- function( aaa ){ k <- max(aaa) bbb <- NULL ccc <- rep(0,k) for(idx in aaa){ ccc[idx] <- ccc[idx] + 1 } ccc <- cumsum(...
\name{fdiscgammagpd} \alias{fdiscgammagpd} \title{Fit the discrete gamma-GPD spliced threshold model} \usage{ fdiscgammagpd(x, useq, shift = NULL, pvector=NULL, std.err = TRUE, method = "Nelder-Mead", ...) } \description{ This function takes count data and fits the gamma-GPD spliced threshold model to it. The model con...
/man/fdiscgammagpd.Rd
permissive
hillarykoch/powerTCR
R
false
false
2,693
rd
\name{fdiscgammagpd} \alias{fdiscgammagpd} \title{Fit the discrete gamma-GPD spliced threshold model} \usage{ fdiscgammagpd(x, useq, shift = NULL, pvector=NULL, std.err = TRUE, method = "Nelder-Mead", ...) } \description{ This function takes count data and fits the gamma-GPD spliced threshold model to it. The model con...
dataSubsetRaw <- read.table( "./household_power_consumption.txt" , header = FALSE , sep = ";" , col.names = c( "Date" , "Time" , "Global_act...
/plot2.R
no_license
yas91/ExData_Plotting1
R
false
false
3,080
r
dataSubsetRaw <- read.table( "./household_power_consumption.txt" , header = FALSE , sep = ";" , col.names = c( "Date" , "Time" , "Global_act...
test<-function(x){ ## it is a test function showing that ## the symbol "<<-" is give the value to ## a variance in global Environment instead of ## current enviroment a<<-x^2 ## give a value to a in global environment x } makeCacheMatrix <- function(x = numeric()) { m <- NULL set <- function(y) { ...
/assessment.R
no_license
Lchiffon/ExerciseByRprogramming
R
false
false
761
r
test<-function(x){ ## it is a test function showing that ## the symbol "<<-" is give the value to ## a variance in global Environment instead of ## current enviroment a<<-x^2 ## give a value to a in global environment x } makeCacheMatrix <- function(x = numeric()) { m <- NULL set <- function(y) { ...
require(shiny) require(shinydashboard) require(SmarterPoland) require(ggplot2) require(dplyr) require(readxl) require(hablar) dane10 <- read_excel('PM10.xlsx', skip = 1) dane25 <- read_excel('PM25.xlsx', skip = 1) Kody10 <- c('MzWarAlNiepo', 'MpKrakTelime', 'LdLodzRudzka', 'DsWrocOrzech', 'WpPoznChwial', 'PmGdyJozB...
/PraceDomowe/PD7/gr4/Michal_Maciag/PD7.R
no_license
Siemashko/TechnikiWizualizacjiDanych2018
R
false
false
7,684
r
require(shiny) require(shinydashboard) require(SmarterPoland) require(ggplot2) require(dplyr) require(readxl) require(hablar) dane10 <- read_excel('PM10.xlsx', skip = 1) dane25 <- read_excel('PM25.xlsx', skip = 1) Kody10 <- c('MzWarAlNiepo', 'MpKrakTelime', 'LdLodzRudzka', 'DsWrocOrzech', 'WpPoznChwial', 'PmGdyJozB...
### The following file contains functions were constructed in the process of writing the manuscipt and are required # to compile the PDF document. # # A cleaned subset of these functions have been packaged for dissemination as an R package designed to accompany # the paper. While the package is already available throug...
/versionForJCGS/BinningLossFunctions.R
no_license
heike/dbaccess
R
false
false
10,994
r
### The following file contains functions were constructed in the process of writing the manuscipt and are required # to compile the PDF document. # # A cleaned subset of these functions have been packaged for dissemination as an R package designed to accompany # the paper. While the package is already available throug...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/module-post.R \name{post_clean_chance} \alias{post_clean_chance} \title{Scrub processed data with below-chance accuracy} \usage{ post_clean_chance( df, app_type = c("classroom", "explorer"), overall = TRUE, cutoff_dprime = 0, cutoff...
/man/post_clean_chance.Rd
permissive
jessicayounger/aceR
R
false
true
1,690
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/module-post.R \name{post_clean_chance} \alias{post_clean_chance} \title{Scrub processed data with below-chance accuracy} \usage{ post_clean_chance( df, app_type = c("classroom", "explorer"), overall = TRUE, cutoff_dprime = 0, cutoff...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gc_event.R \name{gc_event} \alias{gc_event} \alias{gc_event_query} \alias{gc_event_id} \title{Retrieve a calendar event} \usage{ gc_event_query(x, ..., verbose = TRUE) gc_event_id(x, id, verbose = TRUE) } \arguments{ \item{x}{\code{googlecal...
/man/gc_event.Rd
no_license
paddytobias/googlecalendar
R
false
true
2,074
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gc_event.R \name{gc_event} \alias{gc_event} \alias{gc_event_query} \alias{gc_event_id} \title{Retrieve a calendar event} \usage{ gc_event_query(x, ..., verbose = TRUE) gc_event_id(x, id, verbose = TRUE) } \arguments{ \item{x}{\code{googlecal...
#--------------------------------------------------------------------------------------------------------------- #---------- This code separates the different tiers in the summary_table, change the unit to kgal for everything #-----------------------------------------------------------------------------------------...
/Code/cleaning_summary_table.R
no_license
ianartmor/ca_owrs
R
false
false
6,087
r
#--------------------------------------------------------------------------------------------------------------- #---------- This code separates the different tiers in the summary_table, change the unit to kgal for everything #-----------------------------------------------------------------------------------------...
### creating area averaged line plot rasterdir="/Users/heatherwelch/Dropbox/JPSS/global/alaska_rasters_mask/" csvdir="/Users/heatherwelch/Dropbox/JPSS/global/alaska_csvs_mask/";dir.create(csvdir) rasterlist=list.files(rasterdir,pattern = ".grd") setwd(rasterdir) df=data.frame(number=1:length(rasterlist)) %>% mutate(d...
/code_03.05.19/alaska_chla_v2_log_masked.R
no_license
HeatherWelch/JPSS_VIIRS
R
false
false
2,522
r
### creating area averaged line plot rasterdir="/Users/heatherwelch/Dropbox/JPSS/global/alaska_rasters_mask/" csvdir="/Users/heatherwelch/Dropbox/JPSS/global/alaska_csvs_mask/";dir.create(csvdir) rasterlist=list.files(rasterdir,pattern = ".grd") setwd(rasterdir) df=data.frame(number=1:length(rasterlist)) %>% mutate(d...
#Shiny server using fluidPage template shinyServer(function(input, output) { #Send output (right side of screen) showing number of MTUs output$text1 <- renderText({paste("Modern Time Unit:", input$n) }) #Send output (right side of screen) showing year selection ...
/server.R
no_license
JCurrie2014/DataProducts
R
false
false
954
r
#Shiny server using fluidPage template shinyServer(function(input, output) { #Send output (right side of screen) showing number of MTUs output$text1 <- renderText({paste("Modern Time Unit:", input$n) }) #Send output (right side of screen) showing year selection ...
apple_dataset <- read.csv("Apple_NYSE_NN.csv") apple_stock_data <- cbind(apple_dataset$Date,apple_dataset$Open, apple_dataset$High, apple_dataset$Low, apple_dataset$Close, apple_dataset$Volume, apple_dataset$Adj.Close) apple_stock_data.lm <- lm(Adj.Close~ Open + High + Low + Volume+ Close, data = apple_st...
/Apple_Stock_Analysis.R
no_license
cgajiwala/NYSE-Big-Data-Analytics-Project
R
false
false
1,850
r
apple_dataset <- read.csv("Apple_NYSE_NN.csv") apple_stock_data <- cbind(apple_dataset$Date,apple_dataset$Open, apple_dataset$High, apple_dataset$Low, apple_dataset$Close, apple_dataset$Volume, apple_dataset$Adj.Close) apple_stock_data.lm <- lm(Adj.Close~ Open + High + Low + Volume+ Close, data = apple_st...
## Script for doing the first project in Exploratory Data Analysis ## ## The File household_power_consumption.txt should be in the working directory library(sqldf) library(datasets) library(lubridate) file<-"household_power_consumption.txt" tipos<- list(Date='char', Time='char', Global_active_power='real', Global_react...
/plot3.R
no_license
Cuiteco/ExData_Plotting1
R
false
false
1,053
r
## Script for doing the first project in Exploratory Data Analysis ## ## The File household_power_consumption.txt should be in the working directory library(sqldf) library(datasets) library(lubridate) file<-"household_power_consumption.txt" tipos<- list(Date='char', Time='char', Global_active_power='real', Global_react...
#' Creates an adjacency matrix from a set of edges. #' #' The first step in the ignition workflow (if you are using your own edge set) is #' to convert the edges into an adjacency matrix. This method provides a simple #' framework for doing so. #' #' @param edge.set A data frame with two columns. Each row is an inte...
/R/create_adj_matrix.R
no_license
lancour/ignition
R
false
false
1,747
r
#' Creates an adjacency matrix from a set of edges. #' #' The first step in the ignition workflow (if you are using your own edge set) is #' to convert the edges into an adjacency matrix. This method provides a simple #' framework for doing so. #' #' @param edge.set A data frame with two columns. Each row is an inte...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/likelihoods.R \name{sumcll} \alias{sumcll} \title{Calculate the complete data log-likelihood across all observations.} \usage{ sumcll(..., z, pi_est) } \arguments{ \item{...}{all model parameters and data (par, Ntot, ns0,ns1,nu0,nu1)} \item{...
/man/sumcll.Rd
no_license
RGLab/MIMOSA2
R
false
true
659
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/likelihoods.R \name{sumcll} \alias{sumcll} \title{Calculate the complete data log-likelihood across all observations.} \usage{ sumcll(..., z, pi_est) } \arguments{ \item{...}{all model parameters and data (par, Ntot, ns0,ns1,nu0,nu1)} \item{...
#!/usr/bin/R -f # This piece of code will test the package on main platforms # # Clone then pkgdir <- "/tmp/ramdisk/Rtesting" git_address <- system(paste0("git clone https://github.com/spatial-ews/spatialwarnings ", pkgdir)) # Check on local computer devtools::check(pkg = pkgdir, cr...
/tools/pkg_check.R
permissive
W529/spatialwarnings
R
false
false
789
r
#!/usr/bin/R -f # This piece of code will test the package on main platforms # # Clone then pkgdir <- "/tmp/ramdisk/Rtesting" git_address <- system(paste0("git clone https://github.com/spatial-ews/spatialwarnings ", pkgdir)) # Check on local computer devtools::check(pkg = pkgdir, cr...
library(data.table) library(dplyr) library(ggplot2) # learn ggplot2 T_T options(digits=5) len = length ## load in data # read in crime data c = read.csv('bostonCrime.csv') ac = read.csv('airbnbCalendar.csv', as.is = T) # airbnb calendar ac$price = as.numeric(gsub('\\$|\\,', '', ac$price)) ac = as.data.table(ac) ac = u...
/Project/preliminary.r
no_license
CHENPoHeng/UM-SI618
R
false
false
4,556
r
library(data.table) library(dplyr) library(ggplot2) # learn ggplot2 T_T options(digits=5) len = length ## load in data # read in crime data c = read.csv('bostonCrime.csv') ac = read.csv('airbnbCalendar.csv', as.is = T) # airbnb calendar ac$price = as.numeric(gsub('\\$|\\,', '', ac$price)) ac = as.data.table(ac) ac = u...
## Run required libraries library(lubridate) library(dplyr) ## Download and unzip data file fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if(!file.exists("./data")){dir.create("./data")} download.file(fileUrl, destfile = "./data/powerData.zip", mode = "wb") unzip("....
/plot3.R
no_license
kylelackinger/ExData_Plotting1
R
false
false
1,470
r
## Run required libraries library(lubridate) library(dplyr) ## Download and unzip data file fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if(!file.exists("./data")){dir.create("./data")} download.file(fileUrl, destfile = "./data/powerData.zip", mode = "wb") unzip("....
########################################################## # metropolis for estimating mu and sigma at same time # the data n <- 30 y <- rnorm( n , mean=7 , sd=0.5 ) # priors; these are uninformative prior.mu <- function(theta) dnorm( theta , mean=7 , sd=1000 , log=TRUE ) prior.sigma <- function(theta) dgamma( theta ,...
/OldStuff/metropolis2.r
no_license
npp97-field/Working-Code
R
false
false
2,146
r
########################################################## # metropolis for estimating mu and sigma at same time # the data n <- 30 y <- rnorm( n , mean=7 , sd=0.5 ) # priors; these are uninformative prior.mu <- function(theta) dnorm( theta , mean=7 , sd=1000 , log=TRUE ) prior.sigma <- function(theta) dgamma( theta ,...
# google sheets : https://docs.google.com/spreadsheets/d/1AxvMtxLIJUWyfXUgM_LLo5XV5Bj7ODqcu6JMEtBelE4/edit?usp=sharing SHSZ_table = function(save_csv_file = FALSE){ library(rvest) library(httr) library(progress) url = "https://hq.gucheng.com/gpdmylb.html" %>% read_html() %>% html_nodes("#stock_in...
/[중국] 전 상장기업 재무요약.R
no_license
Hong-Sung-Hyun/R-code-for-finance
R
false
false
5,001
r
# google sheets : https://docs.google.com/spreadsheets/d/1AxvMtxLIJUWyfXUgM_LLo5XV5Bj7ODqcu6JMEtBelE4/edit?usp=sharing SHSZ_table = function(save_csv_file = FALSE){ library(rvest) library(httr) library(progress) url = "https://hq.gucheng.com/gpdmylb.html" %>% read_html() %>% html_nodes("#stock_in...
# this is the start of a new file # should remember to add output to every branch rankall <- function(outcome, num = "best") { ## set working directory setwd("/Users/lingwei/Desktop/coursera/rprog_data_ProgAssignment3-data") ## Read outcome data ...
/rankall.R
no_license
Lingwei-oy/ProgrammingAssignment3
R
false
false
5,701
r
# this is the start of a new file # should remember to add output to every branch rankall <- function(outcome, num = "best") { ## set working directory setwd("/Users/lingwei/Desktop/coursera/rprog_data_ProgAssignment3-data") ## Read outcome data ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CentSim2D.R \name{CSarc.dens.test} \alias{CSarc.dens.test} \title{A test of segregation/association based on arc density of Central Similarity Proximity Catch Digraph (CS-PCD) for 2D data} \usage{ CSarc.dens.test( Xp, Yp, t, ch.cor = ...
/man/CSarc.dens.test.Rd
no_license
elvanceyhan/pcds
R
false
true
5,135
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CentSim2D.R \name{CSarc.dens.test} \alias{CSarc.dens.test} \title{A test of segregation/association based on arc density of Central Similarity Proximity Catch Digraph (CS-PCD) for 2D data} \usage{ CSarc.dens.test( Xp, Yp, t, ch.cor = ...
rm(list=ls()) load('Scaling/ProcBWorkspace.RData') library('tidyverse') library('lme4') library('lmerTest') # rename the columns so that everything is the same colnames(Coral)[which(colnames(Coral)=='Volume'|colnames(Coral)=='SA')]<-c('FinalVol','FinalSA') colnames(Rubble)[which(colnames(Rubble)=='Volume'|colnames...
/Scaling/NutrientUptakeAnalysis.R
no_license
donahuem/CRANE-R
R
false
false
18,264
r
rm(list=ls()) load('Scaling/ProcBWorkspace.RData') library('tidyverse') library('lme4') library('lmerTest') # rename the columns so that everything is the same colnames(Coral)[which(colnames(Coral)=='Volume'|colnames(Coral)=='SA')]<-c('FinalVol','FinalSA') colnames(Rubble)[which(colnames(Rubble)=='Volume'|colnames...