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
## This function will computing the inverse of a square matrix ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { MatrixInv <- NULL ## set inversion matrix value to null set <- function(y) { x <<- y MatrixInv <<- NULL } get <- function() x setInverse <...
/cachematrix.R
no_license
Terryjewell/ProgrammingAssignment2
R
false
false
771
r
## This function will computing the inverse of a square matrix ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { MatrixInv <- NULL ## set inversion matrix value to null set <- function(y) { x <<- y MatrixInv <<- NULL } get <- function() x setInverse <...
#' Function to create a DataTable with Add, Edit, and Delete buttons. #' #' This object will maintain data state. However, in order of the data to persist #' between Shiny instances, data needs to be saved to some external format (e.g. #' database or R data file). The callback functions provide a mechanism for this #' ...
/R/dtedit.R
no_license
vitoravancini/DTedit
R
false
false
22,555
r
#' Function to create a DataTable with Add, Edit, and Delete buttons. #' #' This object will maintain data state. However, in order of the data to persist #' between Shiny instances, data needs to be saved to some external format (e.g. #' database or R data file). The callback functions provide a mechanism for this #' ...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "jungle_chess_2pcs_endgame_elephant_elephant") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, tar...
/models/openml_jungle_chess_2pcs_endgame_elephant_elephant/classification_class/41fd69386085b3a0031dcaedfe908287/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
717
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "jungle_chess_2pcs_endgame_elephant_elephant") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, tar...
expect_identical_graph <- function(g1, g2) { expect_true(igraph::identical_graphs(g1, g2)) } expect_equivalent_dm <- function(dm1, dm2) { tables1 <- dm_get_tables_impl(dm1) %>% map(collect) tables2 <- dm_get_tables_impl(dm2) %>% map(collect) expect_identical(names(tables1), names(tables2)) walk2(tables1, ta...
/tests/testthat/helper-expectations.R
permissive
lorenzwalthert/dm
R
false
false
570
r
expect_identical_graph <- function(g1, g2) { expect_true(igraph::identical_graphs(g1, g2)) } expect_equivalent_dm <- function(dm1, dm2) { tables1 <- dm_get_tables_impl(dm1) %>% map(collect) tables2 <- dm_get_tables_impl(dm2) %>% map(collect) expect_identical(names(tables1), names(tables2)) walk2(tables1, ta...
## load data source("loadData.R") ## plot to PNG png(filename="plot4.png",width=640,height=480) par(mfrow = c(2, 2)) ## plot on screen plot(targetData$Time, targetData$Global_active_power, type="l", ylab="Global Active Power (kilowatts)", xlab="") ## plot 2 on screen plot(targetData$Time ,tar...
/plot4.R
no_license
plukasin/ExData_Plotting1
R
false
false
1,089
r
## load data source("loadData.R") ## plot to PNG png(filename="plot4.png",width=640,height=480) par(mfrow = c(2, 2)) ## plot on screen plot(targetData$Time, targetData$Global_active_power, type="l", ylab="Global Active Power (kilowatts)", xlab="") ## plot 2 on screen plot(targetData$Time ,tar...
\name{is.st3} \alias{is.st3} \title{Is a Distribution Parameter Object Typed as 3-Parameter Student t Distribution} \description{ The distribution parameter object returned by functions of \pkg{lmomco} such as by \code{\link{parst3}} are typed by an attribute \code{type}. This function checks that \code{type} is \code{...
/man/is.st3.Rd
no_license
wasquith/lmomco
R
false
false
876
rd
\name{is.st3} \alias{is.st3} \title{Is a Distribution Parameter Object Typed as 3-Parameter Student t Distribution} \description{ The distribution parameter object returned by functions of \pkg{lmomco} such as by \code{\link{parst3}} are typed by an attribute \code{type}. This function checks that \code{type} is \code{...
#' Read He 2016 #' #' Read in the data from Yuji He's 2016 Science paper as a raw csv file #' #' @param Yujie_file The raw csv data #' #' @return ISRaD compliant file structure with only columns that overlap with original data #' #' @importFrom rcrossref cr_citation read_YujiHe2016 <- function(Yujie_file = NULL){ r...
/R/read_YujiHe2016.R
no_license
AuHau/ISRaD
R
false
false
7,379
r
#' Read He 2016 #' #' Read in the data from Yuji He's 2016 Science paper as a raw csv file #' #' @param Yujie_file The raw csv data #' #' @return ISRaD compliant file structure with only columns that overlap with original data #' #' @importFrom rcrossref cr_citation read_YujiHe2016 <- function(Yujie_file = NULL){ r...
filterSpecial <- function(phrases, n = 10, log = TRUE){ # Log printout constant freqUpdate <- 25000 filtered <- vector() skipped = 0 set.seed(1234) if (n == 1){ indices = c(1:length(phrases)) } else{ indice...
/DataScienceCapstone/filterSpecial.R
no_license
myrupsaple/DataScienceCapstone
R
false
false
1,397
r
filterSpecial <- function(phrases, n = 10, log = TRUE){ # Log printout constant freqUpdate <- 25000 filtered <- vector() skipped = 0 set.seed(1234) if (n == 1){ indices = c(1:length(phrases)) } else{ indice...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{kfamilyDiffNet} \alias{kfamilyDiffNet} \title{\code{diffnet} version of the Korean Family Planning data} \format{A \code{\link{diffnet}} class object.} \usage{ kfamilyDiffNet } \description{ A directed dynamic grap...
/man/kfamilyDiffNet.Rd
no_license
martynplummer/netdiffuseR
R
false
true
804
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{kfamilyDiffNet} \alias{kfamilyDiffNet} \title{\code{diffnet} version of the Korean Family Planning data} \format{A \code{\link{diffnet}} class object.} \usage{ kfamilyDiffNet } \description{ A directed dynamic grap...
#' @param name Character, new <%= name %> name if not specified as part of #' \code{path}. This will force \code{path} to be treated as a folder, even if #' it is character and lacks a trailing slash. <%= default %>
/man-roxygen/name.R
no_license
hturner/googledrive
R
false
false
220
r
#' @param name Character, new <%= name %> name if not specified as part of #' \code{path}. This will force \code{path} to be treated as a folder, even if #' it is character and lacks a trailing slash. <%= default %>
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ModelArray_S4Methods.R \name{sources,ModelArray-method} \alias{sources,ModelArray-method} \title{Source filenames of an ModelArray object} \usage{ \S4method{sources}{ModelArray}(x) } \arguments{ \item{x}{An ModelArray object} } \value{ A list...
/man/sources-ModelArray-method.Rd
permissive
PennLINC/ModelArray
R
false
true
400
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ModelArray_S4Methods.R \name{sources,ModelArray-method} \alias{sources,ModelArray-method} \title{Source filenames of an ModelArray object} \usage{ \S4method{sources}{ModelArray}(x) } \arguments{ \item{x}{An ModelArray object} } \value{ A list...
## Put comments here that give an overall description of what your ## functions do ## Name: makeCacheMatrix() ## Purpose: create a matrix object that stores it matrix inverse ## Arguments: x - matrix of floats to be stored ## Returns: matrix object created makeCacheMatrix <- function(x = matrix()) { inv <- NULL ...
/cachematrix.R
no_license
guycohn947/ProgrammingAssignment2
R
false
false
1,105
r
## Put comments here that give an overall description of what your ## functions do ## Name: makeCacheMatrix() ## Purpose: create a matrix object that stores it matrix inverse ## Arguments: x - matrix of floats to be stored ## Returns: matrix object created makeCacheMatrix <- function(x = matrix()) { inv <- NULL ...
data <- read.csv("outcome-of-care-measures.csv", colClasses = 'character') colnames(data)[c(2, 11, 17, 23)] <- c("hospital name", "heart attack", "heart failure", "pneumonia") best <- function(state, outcome, list = FALSE) { if(!(outcome %in% c("heart attack", "heart failure", "pneumonia"))) { stop("Not a val...
/Programming Assessment 2 (Hospitals).R
no_license
Dukejukem/introdatascience
R
false
false
2,449
r
data <- read.csv("outcome-of-care-measures.csv", colClasses = 'character') colnames(data)[c(2, 11, 17, 23)] <- c("hospital name", "heart attack", "heart failure", "pneumonia") best <- function(state, outcome, list = FALSE) { if(!(outcome %in% c("heart attack", "heart failure", "pneumonia"))) { stop("Not a val...
compute_mean_risks <- function(mean_risks, legend){ Reduce( lapply( 1:length(mean_risks), FUN = function(k){ data.frame( cost = mean_risks[[k]][2,], risk = mean_risks[[k]][1,], type = legend, chain = as.factor(k) ) } ), f = rbi...
/pauwels2014/R/compute_mean_risks.R
no_license
ingted/R-Examples
R
false
false
329
r
compute_mean_risks <- function(mean_risks, legend){ Reduce( lapply( 1:length(mean_risks), FUN = function(k){ data.frame( cost = mean_risks[[k]][2,], risk = mean_risks[[k]][1,], type = legend, chain = as.factor(k) ) } ), f = rbi...
# draw one sample of chpts and states from the posterior draw.from.post <- function( logprobs , cpt.locs , types ){ n <- length(logprobs) l.probs <- logprobs[[n]] seg.locs <- cpt.locs[[n]] seg.types <- types[[n]] ind <- 1:length(l.probs) a <- sample( ind , size=1 , replace = TRUE, exp( l.probs ) ) # ...
/get_samples/draw_single_value.R
no_license
DrRoad/AbnormalRegionDetection
R
false
false
2,233
r
# draw one sample of chpts and states from the posterior draw.from.post <- function( logprobs , cpt.locs , types ){ n <- length(logprobs) l.probs <- logprobs[[n]] seg.locs <- cpt.locs[[n]] seg.types <- types[[n]] ind <- 1:length(l.probs) a <- sample( ind , size=1 , replace = TRUE, exp( l.probs ) ) # ...
library(SmartSifter) ### Name: Train ### Title: Train ### Aliases: Train ### ** Examples ##parametric model test initial=matrix(c(0.5,0,0,1,0,0,1,0.5,1,1,1,0,0,1),nrow=1) const = c(0,1,2,0.1,0.1,2,2) param=TRUE y=matrix(c(1,3,1,0,1,1),nrow=2) smart = Train(y,param,const,initial)$smart hellingerScore = Train(y,param...
/data/genthat_extracted_code/SmartSifter/examples/Train.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
774
r
library(SmartSifter) ### Name: Train ### Title: Train ### Aliases: Train ### ** Examples ##parametric model test initial=matrix(c(0.5,0,0,1,0,0,1,0.5,1,1,1,0,0,1),nrow=1) const = c(0,1,2,0.1,0.1,2,2) param=TRUE y=matrix(c(1,3,1,0,1,1),nrow=2) smart = Train(y,param,const,initial)$smart hellingerScore = Train(y,param...
\alias{cairoGetCurrentPoint} \name{cairoGetCurrentPoint} \title{cairoGetCurrentPoint} \description{Gets the current point of the current path, which is conceptually the final point reached by the path so far.} \usage{cairoGetCurrentPoint(cr, x, y)} \arguments{ \item{\verb{cr}}{[\code{\link{Cairo}}] a cairo context} \i...
/RGtk2/man/cairoGetCurrentPoint.Rd
no_license
lawremi/RGtk2
R
false
false
1,673
rd
\alias{cairoGetCurrentPoint} \name{cairoGetCurrentPoint} \title{cairoGetCurrentPoint} \description{Gets the current point of the current path, which is conceptually the final point reached by the path so far.} \usage{cairoGetCurrentPoint(cr, x, y)} \arguments{ \item{\verb{cr}}{[\code{\link{Cairo}}] a cairo context} \i...
splitFSbyGate <- function(x,aGate=NULL) { if ("filter"%in%is(aGate)) { z <- match.call()["aGate"] tmp <- sub(".+\\[(.+)]]","\\1",z) if (exists(tmp)) { z <- get(tmp) } # might not need exists here gateName <- gsub("[\"]","",z) print(paste0("applying gate ",gateName)) ingate <- Subset(x,aGate...
/src/splitFSbyGate.R
no_license
brandtn/DarachFlowAnalysis
R
false
false
939
r
splitFSbyGate <- function(x,aGate=NULL) { if ("filter"%in%is(aGate)) { z <- match.call()["aGate"] tmp <- sub(".+\\[(.+)]]","\\1",z) if (exists(tmp)) { z <- get(tmp) } # might not need exists here gateName <- gsub("[\"]","",z) print(paste0("applying gate ",gateName)) ingate <- Subset(x,aGate...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/utilities.R \name{clean} \alias{clean} \usage{ clean(oldframe, svector, tvector) } \arguments{ \item{oldframe}{the old data frame} \item{svector}{the vector of section labels} \item{tvector}{the vector of factor type labels} } \valu...
/man/clean.Rd
no_license
kbdave314/pgsc-survey-analysis
R
false
false
461
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/utilities.R \name{clean} \alias{clean} \usage{ clean(oldframe, svector, tvector) } \arguments{ \item{oldframe}{the old data frame} \item{svector}{the vector of section labels} \item{tvector}{the vector of factor type labels} } \valu...
read_alignment<-function(brg) # takes bamRange { #print(paste( mateReverseStrand(align), insertSize(align), sep=" " ) ) rewind(brg) pp = vector(mode="integer") dc = vector(mode="integer") align <- getNextAlign(brg) while(!is.null(align)) { #if (!unmapped(align) & !mateUnmapped(align) & ins...
/R/denovo_alignment/lib/read_alignment.R
permissive
hjanime/IGCSA
R
false
false
851
r
read_alignment<-function(brg) # takes bamRange { #print(paste( mateReverseStrand(align), insertSize(align), sep=" " ) ) rewind(brg) pp = vector(mode="integer") dc = vector(mode="integer") align <- getNextAlign(brg) while(!is.null(align)) { #if (!unmapped(align) & !mateUnmapped(align) & ins...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/potential_synapses.R \name{potential_synapses} \alias{potential_synapses} \alias{potential_synapses.dotprops} \alias{potential_synapses.neuron} \alias{potential_synapses.neuronlist} \title{Calculate number of potential synapses between two ne...
/man/potential_synapses.Rd
no_license
naveedst/nat
R
false
true
2,423
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/potential_synapses.R \name{potential_synapses} \alias{potential_synapses} \alias{potential_synapses.dotprops} \alias{potential_synapses.neuron} \alias{potential_synapses.neuronlist} \title{Calculate number of potential synapses between two ne...
library(xgboost) library(tidyverse) Iris <- iris y0 <- Iris$Species var.levels <- levels(y0) y <- as.integer(y0) - 1 Exp <- Iris[,-5] x <- Exp[, c('Sepal.Length', 'Sepal.Width', 'Petal.Length', 'Petal.Width')] var.names <- names(x) x = as.matrix(x) params <- list( "objective" = "multi:softprob" ,"eval_metric" = "...
/inst.R
no_license
huili2010/MultiClassModel
R
false
false
741
r
library(xgboost) library(tidyverse) Iris <- iris y0 <- Iris$Species var.levels <- levels(y0) y <- as.integer(y0) - 1 Exp <- Iris[,-5] x <- Exp[, c('Sepal.Length', 'Sepal.Width', 'Petal.Length', 'Petal.Width')] var.names <- names(x) x = as.matrix(x) params <- list( "objective" = "multi:softprob" ,"eval_metric" = "...
if(interactive()) { w <- gwindow("Selection widgets") g <- gvbox(cont=w) fl <- gformlayout(cont=g) gcheckbox("checkbox", checked=TRUE, cont=fl, label="checkbox") gradio(state.name[1:4], selected=2, horizontal=TRUE, cont=fl, label="gradio") gcheckboxgroup(state.name[1:4], horizontal=FALSE, cont=fl, label="c...
/prog_files/library/gWidgets2/examples/ex-selectionwidgets.R
no_license
iNZightVIT/iNZightVIT-WIN
R
false
false
450
r
if(interactive()) { w <- gwindow("Selection widgets") g <- gvbox(cont=w) fl <- gformlayout(cont=g) gcheckbox("checkbox", checked=TRUE, cont=fl, label="checkbox") gradio(state.name[1:4], selected=2, horizontal=TRUE, cont=fl, label="gradio") gcheckboxgroup(state.name[1:4], horizontal=FALSE, cont=fl, label="c...
#Neural Network Algorithm #Build a Neural Network model for 50_startups data to predict profit library(neuralnet) #Lets Import the Data startup <- read.csv(file.choose()) attach(startup) summary(startup) sum(is.na(startup)) dim(startup) names(startup) startup1 <- startup[,-4] #We exclude the 4th column as it hold...
/Algorithms/Neural Netwok/50_Startup/Startup_NeuralNet.R
no_license
Rashmi1404/Data-Science-R-code
R
false
false
3,405
r
#Neural Network Algorithm #Build a Neural Network model for 50_startups data to predict profit library(neuralnet) #Lets Import the Data startup <- read.csv(file.choose()) attach(startup) summary(startup) sum(is.na(startup)) dim(startup) names(startup) startup1 <- startup[,-4] #We exclude the 4th column as it hold...
\name{mmpp} \alias{mmpp} \title{Markov Modulated Poisson Process Object} \description{ Creates a Markov modulated Poisson process model object with class \code{"mmpp"}. } \usage{ mmpp(tau, Q, delta, lambda, nonstat = TRUE) } \arguments{ \item{tau}{vector containing the \emph{event times}. Note that the first even...
/thirdParty/HiddenMarkov.mod/man/mmpp.Rd
no_license
karl616/gNOMePeaks
R
false
false
2,110
rd
\name{mmpp} \alias{mmpp} \title{Markov Modulated Poisson Process Object} \description{ Creates a Markov modulated Poisson process model object with class \code{"mmpp"}. } \usage{ mmpp(tau, Q, delta, lambda, nonstat = TRUE) } \arguments{ \item{tau}{vector containing the \emph{event times}. Note that the first even...
setnames <- `names<-` patterns <- c(rsprintf="(?<!%)%[\\s\\+\\-\\#\\.\\d]*\\w", rprintv="(?<!\\$)\\$[\\w\\.]+(:[\\s\\+\\-\\#\\.\\d]*\\w)?", rprintn="(?<!\\{)\\{\\d+(:[\\s\\+\\-\\#\\.\\d]*\\w)?\\}(?!\\})", rsprintf=".") rprintf.match <- function(x,fun,args) { do.call(fun,c(x,args)) } makelist <- funct...
/R/internal.R
permissive
jcizel/rprintf
R
false
false
567
r
setnames <- `names<-` patterns <- c(rsprintf="(?<!%)%[\\s\\+\\-\\#\\.\\d]*\\w", rprintv="(?<!\\$)\\$[\\w\\.]+(:[\\s\\+\\-\\#\\.\\d]*\\w)?", rprintn="(?<!\\{)\\{\\d+(:[\\s\\+\\-\\#\\.\\d]*\\w)?\\}(?!\\})", rsprintf=".") rprintf.match <- function(x,fun,args) { do.call(fun,c(x,args)) } makelist <- funct...
library(data.table) # Reading the data set colNames = c("date", "globalActivePower") dat <- fread("data/household_power_consumption.txt", sep=";", na.strings="?", drop=c(2,4,5,6,7,8,9), col.names=colNames) # Parsing data and getting only needed days dat$date <- as.Date(dat$date, format="%d/%m/%Y") dat <-...
/04_eda/w1/project/plot2.R
no_license
josoriov/ds-coursera
R
false
false
689
r
library(data.table) # Reading the data set colNames = c("date", "globalActivePower") dat <- fread("data/household_power_consumption.txt", sep=";", na.strings="?", drop=c(2,4,5,6,7,8,9), col.names=colNames) # Parsing data and getting only needed days dat$date <- as.Date(dat$date, format="%d/%m/%Y") dat <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R, R/collect.R, R/grid_performance.R, % R/iteration_results.R, R/symbol.R, R/tune_bayes.R, R/tune_grid.R, R/utils.R \name{check_rset} \alias{check_rset} \alias{check_parameters} \alias{check_workflow} \alias{check_metrics} \alias{che...
/man/empty_ellipses.Rd
no_license
cran/tune
R
false
true
2,509
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R, R/collect.R, R/grid_performance.R, % R/iteration_results.R, R/symbol.R, R/tune_bayes.R, R/tune_grid.R, R/utils.R \name{check_rset} \alias{check_rset} \alias{check_parameters} \alias{check_workflow} \alias{check_metrics} \alias{che...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) suppressPackageStartupMessages( c(library(stringr), library(stylo), libra...
/ShinyApp/server.R
no_license
tporwal/DataScienceCapstoneProject-SwiftKey
R
false
false
884
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) suppressPackageStartupMessages( c(library(stringr), library(stylo), libra...
context("plot.chi") test_that("plot.chi behaves as it should", { skip_on_cran() skip_on_travis() chi <- chi(wavesurge) par(mfrow=c(1,2),pty="m") res <- plot(chi,mainChiBar="Figure 8.11 of Coles (2001)\nChi Bar") plot(chi, show=c("Chi"=FALSE,"ChiBar"=TRUE)) plot(chi, show=c("Chi"=TRUE,"ChiBar"=FALSE)) e...
/fuzzedpackages/texmex/tests/testthat/test-plot.chi.R
no_license
akhikolla/testpackages
R
false
false
397
r
context("plot.chi") test_that("plot.chi behaves as it should", { skip_on_cran() skip_on_travis() chi <- chi(wavesurge) par(mfrow=c(1,2),pty="m") res <- plot(chi,mainChiBar="Figure 8.11 of Coles (2001)\nChi Bar") plot(chi, show=c("Chi"=FALSE,"ChiBar"=TRUE)) plot(chi, show=c("Chi"=TRUE,"ChiBar"=FALSE)) e...
# Attempts at GLM ---- d <- read.csv(paste(p.data, "AggregateSimData.csv", sep = ""), strip.white = TRUE, stringsAsFactors = F) d[is.na(d)]<-"" # this makes NA's into blanks since they will later be changed d <- d[,-1] # FILL IN BLANKS TO 0 FOR INTRINSIC AND EXTRINSIC, SINCE THESE DENOTE SOMETHING for these purposes ...
/scripts/GLM-Attempt.R
no_license
Jfakers/Final-Project
R
false
false
6,058
r
# Attempts at GLM ---- d <- read.csv(paste(p.data, "AggregateSimData.csv", sep = ""), strip.white = TRUE, stringsAsFactors = F) d[is.na(d)]<-"" # this makes NA's into blanks since they will later be changed d <- d[,-1] # FILL IN BLANKS TO 0 FOR INTRINSIC AND EXTRINSIC, SINCE THESE DENOTE SOMETHING for these purposes ...
##----------------------------------------------------------------------------## ## html_icon ##----------------------------------------------------------------------------## # # -- Reference # DT内でアイコンを表示する # https://gist.github.com/cecilialee/e848068cfd5862fd63961b03b42ead78 # # Font Awesomeのクラス # https://sar...
/shiny/html/server_icon.R
no_license
milktea-muffin/r-shiny-electron
R
false
false
1,855
r
##----------------------------------------------------------------------------## ## html_icon ##----------------------------------------------------------------------------## # # -- Reference # DT内でアイコンを表示する # https://gist.github.com/cecilialee/e848068cfd5862fd63961b03b42ead78 # # Font Awesomeのクラス # https://sar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flatlizards.R \docType{data} \name{flatlizards} \alias{flatlizards} \title{Augrabies Male Flat Lizards: Contest Results and Predictor Variables} \format{This dataset is a list containing two data frames: \code{flatlizards$contests} and \code{...
/man/flatlizards.Rd
no_license
hturner/BradleyTerry2
R
false
true
6,583
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flatlizards.R \docType{data} \name{flatlizards} \alias{flatlizards} \title{Augrabies Male Flat Lizards: Contest Results and Predictor Variables} \format{This dataset is a list containing two data frames: \code{flatlizards$contests} and \code{...
# echoWaterGetFacilitiesInfo # ========================================================= #' Downloads EPA ECHO water facility information #' #' Returns a dataframe or simplefeature dataframe of permitted facilities returned by the query. #' Uses EPA's ECHO API: \url{https://echo.epa.gov/tools/web-services/facility-se...
/R/water.R
permissive
mps9506/echor
R
false
false
13,307
r
# echoWaterGetFacilitiesInfo # ========================================================= #' Downloads EPA ECHO water facility information #' #' Returns a dataframe or simplefeature dataframe of permitted facilities returned by the query. #' Uses EPA's ECHO API: \url{https://echo.epa.gov/tools/web-services/facility-se...
#' Example catch data #' #' Subset of catch and effort data from west-coast Vancouver Island commercial #' troll fishery for Chinook salmon. #' #' @format A data frame with 56 rows and five variables. #' \describe{ #' \item{region}{abbreviated catch region} #' \item{month_n}{month (numeric)} #' \item{year}{year}...
/R/data.R
no_license
pbs-assess/stockseasonr
R
false
false
1,335
r
#' Example catch data #' #' Subset of catch and effort data from west-coast Vancouver Island commercial #' troll fishery for Chinook salmon. #' #' @format A data frame with 56 rows and five variables. #' \describe{ #' \item{region}{abbreviated catch region} #' \item{month_n}{month (numeric)} #' \item{year}{year}...
testlist <- list(inv1 = structure(c(1.33779158334884e+255, 1014.41659610807, 5.85929043357043e-147, 7.38820098576188e+48, 4.31633818039447e+275, 4.77241229424564e+213, 1.536788205081e-70, 1.35985283229e-200, 2.88148870178626e-36, 3.37445149680423e-242, 4.33314130601525e+197, 1.5271771130006e+47, NaN, 4.023981409219...
/issuestests/Opt5PL/inst/testfiles/D_weight_1/D_weight_1_output/log_8b5cc82ae205558021dd1737e64d22ead469c93b/D_weight_1-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
9,217
r
testlist <- list(inv1 = structure(c(1.33779158334884e+255, 1014.41659610807, 5.85929043357043e-147, 7.38820098576188e+48, 4.31633818039447e+275, 4.77241229424564e+213, 1.536788205081e-70, 1.35985283229e-200, 2.88148870178626e-36, 3.37445149680423e-242, 4.33314130601525e+197, 1.5271771130006e+47, NaN, 4.023981409219...
model <- lm(mpg ~ ., data = mtcars) summary(model)
/model.r
no_license
toyeiei/datarockie-bootcamp-batch3-test
R
false
false
51
r
model <- lm(mpg ~ ., data = mtcars) summary(model)
## Getting and cleaning the data course project script ## Prep: set the working directory, download file, extract the data. Not needed for grading. #setwd("./Getting and cleaning data/Project") #url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" #...
/run_analysis.R
no_license
jalbrec/get_clean_courseproject
R
false
false
5,181
r
## Getting and cleaning the data course project script ## Prep: set the working directory, download file, extract the data. Not needed for grading. #setwd("./Getting and cleaning data/Project") #url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" #...
# ~/code/svn/eclipse38_dynlang/R_one-offs library(ggplot2) summary(seals) # Vector field of seal movements z = 1 r = 1 a <- ggplot(seals, aes(x=long, y=lat)) a + geom_curve(aes(xend=long + delta_long, yend = lat + delta_lat, curvature=z)) a + geom_spoke(aes(xend=long + delta_long, yend = lat + delta_lat, angle=z, radi...
/ggplot2-book.exercise-XXX.R
no_license
knbknb/R_grabbag
R
false
false
604
r
# ~/code/svn/eclipse38_dynlang/R_one-offs library(ggplot2) summary(seals) # Vector field of seal movements z = 1 r = 1 a <- ggplot(seals, aes(x=long, y=lat)) a + geom_curve(aes(xend=long + delta_long, yend = lat + delta_lat, curvature=z)) a + geom_spoke(aes(xend=long + delta_long, yend = lat + delta_lat, angle=z, radi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Dice_Roller.R \name{roll_d6} \alias{roll_d6} \title{Roll d6} \usage{ roll_d6(dice = 1, bonus = 0, each = FALSE) } \arguments{ \item{dice}{The number of dice to be rolled. Defaults to 1} \item{bonus}{Any bonus amount to be added or subtracted...
/man/roll_d6.Rd
no_license
zrodnick/dnddiceroller
R
false
true
622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Dice_Roller.R \name{roll_d6} \alias{roll_d6} \title{Roll d6} \usage{ roll_d6(dice = 1, bonus = 0, each = FALSE) } \arguments{ \item{dice}{The number of dice to be rolled. Defaults to 1} \item{bonus}{Any bonus amount to be added or subtracted...
\name{create.points.by.offset} \alias{create.points.by.offset} \title{ Create point dataframe offset from line} \description{ For a set of observations with x,y locations on the line and a perpendicular distance, create a new observation dataframe with true x,y point locations. } \usage{ create.points.by.offset(lines, ...
/DSpat/man/create.points.by.offset.Rd
no_license
albrizre/spatstat.revdep
R
false
false
1,355
rd
\name{create.points.by.offset} \alias{create.points.by.offset} \title{ Create point dataframe offset from line} \description{ For a set of observations with x,y locations on the line and a perpendicular distance, create a new observation dataframe with true x,y point locations. } \usage{ create.points.by.offset(lines, ...
## Put comments here that give an overall description of what your ## functions do ##As inverting a matrix can be a timeconsuming and costly operation (moreso when ##done often), this functions looks to be able to cache the inverse of a matrix ##being more efficient. ## Write a short comment describing this functio...
/cachematrix.R
no_license
im-inaki/ProgrammingAssignment2
R
false
false
1,154
r
## Put comments here that give an overall description of what your ## functions do ##As inverting a matrix can be a timeconsuming and costly operation (moreso when ##done often), this functions looks to be able to cache the inverse of a matrix ##being more efficient. ## Write a short comment describing this functio...
#Math E-156 Script 4A-ChiSquare.R #An exploration of sections 3.4.2 and 3.5 in the textbook #Topic 1 -- when should we expecte a chi-square distribution? #We have a cell in a contingency table where the expected number of observations is Exp. #The observed number is Obs. #A standard chi-squared test assumes that...
/Math_E156/class4/4A-ChiSquare.R
no_license
ddarl4/ModernKicks
R
false
false
7,494
r
#Math E-156 Script 4A-ChiSquare.R #An exploration of sections 3.4.2 and 3.5 in the textbook #Topic 1 -- when should we expecte a chi-square distribution? #We have a cell in a contingency table where the expected number of observations is Exp. #The observed number is Obs. #A standard chi-squared test assumes that...
source("201511_Harshal_R_Functions.R") ## read x<-universe_merge_files("./importiosrc",".*csv") ## make sure you replace it with semi-colon in csv if not done already #------------------------------------------------------------ ## most recent funding stage fundlist <- strsplit(x$funding.stage,";") # check w...
/Import_IO_Process.R
no_license
harshalpatilR/Rutil
R
false
false
7,047
r
source("201511_Harshal_R_Functions.R") ## read x<-universe_merge_files("./importiosrc",".*csv") ## make sure you replace it with semi-colon in csv if not done already #------------------------------------------------------------ ## most recent funding stage fundlist <- strsplit(x$funding.stage,";") # check w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crossvalidate.R \name{ocv} \alias{ocv} \title{Ordinary Crossvalidation score Following Wood (2006), p. 174} \usage{ ocv(object) } \arguments{ \item{object}{a model object with methods for `residuals` and `hatvalues`.} } \description{ Ordinary...
/man/ocv.Rd
no_license
markwh/markstats
R
false
true
375
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crossvalidate.R \name{ocv} \alias{ocv} \title{Ordinary Crossvalidation score Following Wood (2006), p. 174} \usage{ ocv(object) } \arguments{ \item{object}{a model object with methods for `residuals` and `hatvalues`.} } \description{ Ordinary...
################################################ ## ## Oracle Machine Learning for R Vignette ## ## Graph Analytics and Anomaly Detection ## ## Copyright (c) 2020 Oracle Corporation ## ## The Universal Permissive License (UPL), Version 1.0 ## ## https://oss.oracle.com/licenses/upl/ ## #######...
/machine-learning/r/oml4r/oml4r-vignette-09-graph-analytics-anomaly-detection.r
permissive
nigelbayliss/oracle-db-examples
R
false
false
14,273
r
################################################ ## ## Oracle Machine Learning for R Vignette ## ## Graph Analytics and Anomaly Detection ## ## Copyright (c) 2020 Oracle Corporation ## ## The Universal Permissive License (UPL), Version 1.0 ## ## https://oss.oracle.com/licenses/upl/ ## #######...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.epicontacts.R \name{print.epicontacts} \alias{print.epicontacts} \title{Print method for epicontacts objects} \usage{ \method{print}{epicontacts}(x, ...) } \arguments{ \item{x}{an \code{\link{epicontacts}} object} \item{...}{further pa...
/man/print.epicontacts.Rd
no_license
reconhub/epicontacts
R
false
true
582
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.epicontacts.R \name{print.epicontacts} \alias{print.epicontacts} \title{Print method for epicontacts objects} \usage{ \method{print}{epicontacts}(x, ...) } \arguments{ \item{x}{an \code{\link{epicontacts}} object} \item{...}{further pa...
context("testthat cleanup") unlink("ex.tre") unlink("ex.xml") unlink("tmp.xml")
/tests/testthat/test_zzz_cleanup.R
permissive
ropensci/RNeXML
R
false
false
79
r
context("testthat cleanup") unlink("ex.tre") unlink("ex.xml") unlink("tmp.xml")
#!usr/bin/env Rscript library(methods) library(Matrix) library(MASS) #library(Rcpp) library(lme4) # Read in your data as an R dataframe basedir <- c("/seastor/helenhelen/ISR_2015") resultdir <- paste(basedir,"/me/tmap/results/ln",sep="/") setwd(resultdir) r.itemInfo <- matrix(data=NA, nr=2, nc=4) ## read data #get data...
/ROI_based/me/ln/itemInfo_LIFG_RANG.R
no_license
QQXiao/ISR_2015
R
false
false
1,626
r
#!usr/bin/env Rscript library(methods) library(Matrix) library(MASS) #library(Rcpp) library(lme4) # Read in your data as an R dataframe basedir <- c("/seastor/helenhelen/ISR_2015") resultdir <- paste(basedir,"/me/tmap/results/ln",sep="/") setwd(resultdir) r.itemInfo <- matrix(data=NA, nr=2, nc=4) ## read data #get data...
## OVERALL DESCRIPTION OF WHAT THESE 2 FUNCTIONS DO: ## (1) The makeCacheMatrix and cacheSolve functions work as a pair ## to create a special "matrix" object that can cache its inverse, ## so that time consuming computation of the inverse does not have to be repeated ## if the contents of the matr...
/cachematrix.R
no_license
konstant2500/ProgrammingAssignment2
R
false
false
3,733
r
## OVERALL DESCRIPTION OF WHAT THESE 2 FUNCTIONS DO: ## (1) The makeCacheMatrix and cacheSolve functions work as a pair ## to create a special "matrix" object that can cache its inverse, ## so that time consuming computation of the inverse does not have to be repeated ## if the contents of the matr...
# Find collection of minimal (s,t) vertex cut sets minimalVertexPairCutSets <- function(graph, start, terminate) { # Get all separators stCutSets <- igraph::minimal.st.separators(graph) # Double check separator (there was a bug in igraph early 0.6 releases) stCutSets <- subset(stCutSets, vapply(s...
/sig2.2/R/minimalVertexPairCutSets.R
no_license
mqlabc/signature
R
false
false
1,220
r
# Find collection of minimal (s,t) vertex cut sets minimalVertexPairCutSets <- function(graph, start, terminate) { # Get all separators stCutSets <- igraph::minimal.st.separators(graph) # Double check separator (there was a bug in igraph early 0.6 releases) stCutSets <- subset(stCutSets, vapply(s...
library(dplyr) library(here) library(tidyverse) library(haven) ###Task 1 #Creating dataframe Justice <- c("Clarence Thomas", "Ruth Bader Ginsburg", "Stephen Breyer", "John Robers", "Samuel Alito", "Sonia Sotomayor", "Elena Kagan", "Neil Gorsuch", "Brett Kavanaugh") State <- c(...
/exercise-7-data-manipulation.R
no_license
evanderwilden/PS811-Exercises
R
false
false
3,937
r
library(dplyr) library(here) library(tidyverse) library(haven) ###Task 1 #Creating dataframe Justice <- c("Clarence Thomas", "Ruth Bader Ginsburg", "Stephen Breyer", "John Robers", "Samuel Alito", "Sonia Sotomayor", "Elena Kagan", "Neil Gorsuch", "Brett Kavanaugh") State <- c(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/norvasStabelGrvar.R \name{norvarStabelGrvar} \alias{norvarStabelGrvar} \title{Plot stablede andeler per grupperingsvariabel} \usage{ norvarStabelGrvar( plotMatrise, grtxt = "", outfile = "", legendTxt = NA, tittel = "", xlab = " A...
/man/norvarStabelGrvar.Rd
no_license
Rapporteket/norvas
R
false
true
457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/norvasStabelGrvar.R \name{norvarStabelGrvar} \alias{norvarStabelGrvar} \title{Plot stablede andeler per grupperingsvariabel} \usage{ norvarStabelGrvar( plotMatrise, grtxt = "", outfile = "", legendTxt = NA, tittel = "", xlab = " A...
#install.packages("jsonlite") #install.packages("caTools") #install.packages("reshape2") #install.packages("plyr") library(jsonlite) library(caTools) library(reshape2) library(plyr) args = commandArgs(trailingOnly=TRUE) arg1 <- args[1] arg2 <- args[2] ## parsing data to a matrix and seperating clicked ones all_dat...
/ml_experiment.R
no_license
limoneren/dev.akademi2018
R
false
false
3,408
r
#install.packages("jsonlite") #install.packages("caTools") #install.packages("reshape2") #install.packages("plyr") library(jsonlite) library(caTools) library(reshape2) library(plyr) args = commandArgs(trailingOnly=TRUE) arg1 <- args[1] arg2 <- args[2] ## parsing data to a matrix and seperating clicked ones all_dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-SDMXSchema.R, R/SDMXSchema-methods.R \docType{class} \name{SDMXSchema} \alias{SDMXSchema} \alias{SDMXSchema-class} \alias{SDMXSchema,SDMXSchema-method} \title{Class "SDMXSchema"} \usage{ SDMXSchema(xmlObj, namespaces) } \arguments{ \ite...
/man/SDMXSchema.Rd
no_license
opensdmx/rsdmx
R
false
true
961
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-SDMXSchema.R, R/SDMXSchema-methods.R \docType{class} \name{SDMXSchema} \alias{SDMXSchema} \alias{SDMXSchema-class} \alias{SDMXSchema,SDMXSchema-method} \title{Class "SDMXSchema"} \usage{ SDMXSchema(xmlObj, namespaces) } \arguments{ \ite...
require(randomForest) require(pROC) require(MASS) library(caret) names <- c("id", "clumpThickness", "uniformityOfCellSize", "uniformityOfCellShape", "marginalAdhesion", "singleEpithelialCellSize", "bareNuclei", "blandChromatin", "normalNucleoli", "mitoses", "class") data <- read.table("./breast-c...
/lab2.r
no_license
fagonzalezm/minera-lab2
R
false
false
7,307
r
require(randomForest) require(pROC) require(MASS) library(caret) names <- c("id", "clumpThickness", "uniformityOfCellSize", "uniformityOfCellShape", "marginalAdhesion", "singleEpithelialCellSize", "bareNuclei", "blandChromatin", "normalNucleoli", "mitoses", "class") data <- read.table("./breast-c...
## Copyright 2018, Suso Baleato <jesus.benitez-baleato@uni-konstanz.de> ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any lat...
/r/divider.r
no_license
susobaleato/ds-prog
R
false
false
1,368
r
## Copyright 2018, Suso Baleato <jesus.benitez-baleato@uni-konstanz.de> ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any lat...
library(TeachingDemos) ### Name: dynIdentify ### Title: Interacively place labels for points in a plot ### Aliases: dynIdentify TkIdentify ### Keywords: dynamic aplot ### ** Examples if(interactive()) { tmp <- TkIdentify(state.x77[,'Frost'], state.x77[,'Murder'], state.abb) ### now move the labels ##...
/data/genthat_extracted_code/TeachingDemos/examples/dynIdentify.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
603
r
library(TeachingDemos) ### Name: dynIdentify ### Title: Interacively place labels for points in a plot ### Aliases: dynIdentify TkIdentify ### Keywords: dynamic aplot ### ** Examples if(interactive()) { tmp <- TkIdentify(state.x77[,'Frost'], state.x77[,'Murder'], state.abb) ### now move the labels ##...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/to_lang.R \name{toPortuguese} \alias{toPortuguese} \title{Translate texts into Portuguese using DeepL API Pro} \usage{ toPortuguese( text, source_lang = NULL, split_sentences = TRUE, preserve_formatting = FALSE, get_detect = FALSE, ...
/man/toPortuguese.Rd
permissive
zumbov2/deeplr
R
false
true
2,519
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/to_lang.R \name{toPortuguese} \alias{toPortuguese} \title{Translate texts into Portuguese using DeepL API Pro} \usage{ toPortuguese( text, source_lang = NULL, split_sentences = TRUE, preserve_formatting = FALSE, get_detect = FALSE, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/queue.R \name{qpush} \alias{qpush} \title{Add an element to the front of a queue} \usage{ qpush(Q, x) } \arguments{ \item{Q}{rdeque class object} \item{x}{an element to add to the front of the queue} } \value{ the updated queue } \descriptio...
/man/qpush.Rd
permissive
BigelowLab/rasf
R
false
true
416
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/queue.R \name{qpush} \alias{qpush} \title{Add an element to the front of a queue} \usage{ qpush(Q, x) } \arguments{ \item{Q}{rdeque class object} \item{x}{an element to add to the front of the queue} } \value{ the updated queue } \descriptio...
spectral_post <- function(m1,a1,m2,a2,ew,dat){ # Proposals are all symmetric and so can be ignored priorm <- -2*log(emean.range) priora <- log(dgamma(a1,ashape,arate))+log(dgamma(a2,ashape,arate)) prior_ew <- log(dbeta(ew,ewt_ab,ewt_ab)) value <- sum(log(ew*dgamma(dat,a1,a1/m1)+(1-ew)*dgamma(dat,a2,a2/m2...
/additional_functions/spectral_post_extended_full.R
no_license
lfcampos/Space-and-time-with-fixed-K
R
false
false
366
r
spectral_post <- function(m1,a1,m2,a2,ew,dat){ # Proposals are all symmetric and so can be ignored priorm <- -2*log(emean.range) priora <- log(dgamma(a1,ashape,arate))+log(dgamma(a2,ashape,arate)) prior_ew <- log(dbeta(ew,ewt_ab,ewt_ab)) value <- sum(log(ew*dgamma(dat,a1,a1/m1)+(1-ew)*dgamma(dat,a2,a2/m2...
a2<-read.csv('Trained_blog_basic.csv') x.a1<-as.matrix(a2[1:5000,1:10]) y.a1<-as.matrix(a2[1:5000,11]) scaled.a1<-scale(x.a1,center = TRUE) NewA<-cbind(scaled.a1,y.a1) a1<-subset(NewA, NewA[,11]>0) a3<-subset(NewA,NewA[,11]<1) comments=a1[,1:10] nocomments=a3[,1:10] c2<-colSums(comments) c3<-colSums(nocomments) f...
/Project 2_Rmosek.R
no_license
dikshaub/WeatherPrediction
R
false
false
2,764
r
a2<-read.csv('Trained_blog_basic.csv') x.a1<-as.matrix(a2[1:5000,1:10]) y.a1<-as.matrix(a2[1:5000,11]) scaled.a1<-scale(x.a1,center = TRUE) NewA<-cbind(scaled.a1,y.a1) a1<-subset(NewA, NewA[,11]>0) a3<-subset(NewA,NewA[,11]<1) comments=a1[,1:10] nocomments=a3[,1:10] c2<-colSums(comments) c3<-colSums(nocomments) f...
available_packages <- memoise::memoise(function(repos, type) { available.packages(contrib.url(repos, type), type = type) }) package_url <- function(package, repos, available = available_packages(repos, "source")) { ok <- (available[, "Package"] == package) ok <- ok & !is.na(ok) if (!an...
/R/cran.R
no_license
2954722256/devtools
R
false
false
1,081
r
available_packages <- memoise::memoise(function(repos, type) { available.packages(contrib.url(repos, type), type = type) }) package_url <- function(package, repos, available = available_packages(repos, "source")) { ok <- (available[, "Package"] == package) ok <- ok & !is.na(ok) if (!an...
\name{questionComments} \alias{questionComments} \alias{comments} \alias{transformComment} \title{ Define a Commenting Scheme } \description{ These functions are used to specify how the result of a comparison between two objects should be converted to a set of comments for feedback. } \usage{ questionComments(ans...
/man/questionComments.Rd
no_license
cran/compare
R
false
false
1,742
rd
\name{questionComments} \alias{questionComments} \alias{comments} \alias{transformComment} \title{ Define a Commenting Scheme } \description{ These functions are used to specify how the result of a comparison between two objects should be converted to a set of comments for feedback. } \usage{ questionComments(ans...
#Equal means and variances across studies, same correlations across studies but ref is different library(MASS) library(stats) ##### ### Basic setting ##### d.X = 3 # number of covariates. mu.1 = matrix(rep(0,d.X), nrow=d.X) # mean vector of the covariates. mu.2 = matrix(rep(0,d.X), nrow=d.X) # mean vector of the covar...
/log_normal_results/Simulation_5.R
no_license
kundupro/GENMETA
R
false
false
9,020
r
#Equal means and variances across studies, same correlations across studies but ref is different library(MASS) library(stats) ##### ### Basic setting ##### d.X = 3 # number of covariates. mu.1 = matrix(rep(0,d.X), nrow=d.X) # mean vector of the covariates. mu.2 = matrix(rep(0,d.X), nrow=d.X) # mean vector of the covar...
data <- read.csv("F:/uas.csv", header=TRUE,sep=",") data dimas fajar imanto model <- lm(yi ~ ï..xi, data = data) summary(model) yi <- function(x){ return(-93.6+2.7*x) } yi(55) nomor 1b install.packages("polynom") library(polynom) data2 <- read.csv("F:/uas2.csv", header=TRUE,sep=",") data2 x <- c(0,1,2,3,4) y...
/17523193UAS.r
no_license
difaim/UAS2
R
false
false
1,290
r
data <- read.csv("F:/uas.csv", header=TRUE,sep=",") data dimas fajar imanto model <- lm(yi ~ ï..xi, data = data) summary(model) yi <- function(x){ return(-93.6+2.7*x) } yi(55) nomor 1b install.packages("polynom") library(polynom) data2 <- read.csv("F:/uas2.csv", header=TRUE,sep=",") data2 x <- c(0,1,2,3,4) y...
hist(algae$mxPH,prob=T,xlab='',main="Histogram of maximum pH value",ylim=c(0,1)) lines(density(algae$mxPH,na.rm=T)) rug(jitter(algae$mxPH))
/picture R/hist.density.rug.R
no_license
fanchongR/learnProgramming
R
false
false
141
r
hist(algae$mxPH,prob=T,xlab='',main="Histogram of maximum pH value",ylim=c(0,1)) lines(density(algae$mxPH,na.rm=T)) rug(jitter(algae$mxPH))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimators.R \name{taperingEst} \alias{taperingEst} \title{Tapering Estimator} \usage{ taperingEst(dat, k) } \arguments{ \item{dat}{A numeric \code{data.frame}, \code{matrix}, or similar object.} \item{k}{A non-negative, even \code{numeric} ...
/man/taperingEst.Rd
permissive
PhilBoileau/cvCovEst
R
false
true
1,346
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimators.R \name{taperingEst} \alias{taperingEst} \title{Tapering Estimator} \usage{ taperingEst(dat, k) } \arguments{ \item{dat}{A numeric \code{data.frame}, \code{matrix}, or similar object.} \item{k}{A non-negative, even \code{numeric} ...
##' grpack: useful functions, classes, and methods for econometric ##' analysis. ##' ##' A Package for Econometric Applications ##' ##' \tabular{ll}{ ##' Package: \tab grpack\cr ##' Type: \tab Package\cr ##' Version: \tab 0.1-1\cr ##' Date: \tab 2011-12-01\cr ##' License: \tab GPL (>= 2)\cr ##' LazyLoad: \tab yes\cr ...
/R/grpack.R
no_license
gragusa/grpack
R
false
false
1,224
r
##' grpack: useful functions, classes, and methods for econometric ##' analysis. ##' ##' A Package for Econometric Applications ##' ##' \tabular{ll}{ ##' Package: \tab grpack\cr ##' Type: \tab Package\cr ##' Version: \tab 0.1-1\cr ##' Date: \tab 2011-12-01\cr ##' License: \tab GPL (>= 2)\cr ##' LazyLoad: \tab yes\cr ...
# Author: TAM # This file includes several required functions # 1. getbeta - computes the density dependent fecundity beta paramter # # 2. ft - computes the fecundity as a function of population size and other # parameters) depends on "getbeta()" # # 3. getRedFac - comput...
/FolderArchitecture2runCode/Functions/reqfuns.R
no_license
MCarolinaMarques/CARMMHApapersSI
R
false
false
17,640
r
# Author: TAM # This file includes several required functions # 1. getbeta - computes the density dependent fecundity beta paramter # # 2. ft - computes the fecundity as a function of population size and other # parameters) depends on "getbeta()" # # 3. getRedFac - comput...
#' #'@title Plot time series of TCSAM 2015 model sex ratio for recruits #' #'@description Plots the recruitment sex ratio time series from a TCSAM 2015 model run. #' #'@param res - list object from TCSM 2015 model report file #'@param xlab - x axis title #'@param ylab - y axis title #'@param xlim - x axis limits #'@par...
/R/plotRecruits.SexRatio.R
permissive
wStockhausen/rTCSAM2015
R
false
false
1,791
r
#' #'@title Plot time series of TCSAM 2015 model sex ratio for recruits #' #'@description Plots the recruitment sex ratio time series from a TCSAM 2015 model run. #' #'@param res - list object from TCSM 2015 model report file #'@param xlab - x axis title #'@param ylab - y axis title #'@param xlim - x axis limits #'@par...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shinythemes) library(DT) library(ggpubr) library(data.table) # setRepositories(addURLs =c( BioCsoft ="http...
/app.R
no_license
lily-wx/imprint
R
false
false
21,319
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shinythemes) library(DT) library(ggpubr) library(data.table) # setRepositories(addURLs =c( BioCsoft ="http...
#' Find the influence of the dates in a Bchronology run #' #' This function takes as input a \code{\link{Bchronology}} run and allows the user to estimate a value of 'influence' for either a particular date (by name or number), for all dates in a core (\code{whichDate = 'all'}), or for all internal dates (\code{whichD...
/R/dateInfluence.BchronologyRun.R
no_license
allisonstegner/Bchron
R
false
false
18,271
r
#' Find the influence of the dates in a Bchronology run #' #' This function takes as input a \code{\link{Bchronology}} run and allows the user to estimate a value of 'influence' for either a particular date (by name or number), for all dates in a core (\code{whichDate = 'all'}), or for all internal dates (\code{whichD...
require("Rfacebook") require(RPostgreSQL) dbQuery <- function(ret,conn,query,debug=0,note=""){ execute <-1 if(debug){ print(paste0("--",note," ",query)) } if(execute) if(ret) return (fetch(dbSendQuery(conn,query),n=-1)) else dbGetQuery(conn,query) } delete.two.firsts.spaces <...
/import_friends_R.R
no_license
rangeonnicolas/facebookNetworkAnalysis
R
false
false
26,124
r
require("Rfacebook") require(RPostgreSQL) dbQuery <- function(ret,conn,query,debug=0,note=""){ execute <-1 if(debug){ print(paste0("--",note," ",query)) } if(execute) if(ret) return (fetch(dbSendQuery(conn,query),n=-1)) else dbGetQuery(conn,query) } delete.two.firsts.spaces <...
#' Print Summary Statistics of Alpha Level Cutoffs #' #' @note [bcbioRNASeq] does not support contrast definitions, since the #' object contains an internal [DESeqDataSet] with an empty design formula. #' #' @rdname alphaSummary #' @name alphaSummary #' @family Differential Expression Utilities #' @author Michael Ste...
/R/methods-alphaSummary.R
permissive
hliu2016/bcbioRNASeq
R
false
false
3,734
r
#' Print Summary Statistics of Alpha Level Cutoffs #' #' @note [bcbioRNASeq] does not support contrast definitions, since the #' object contains an internal [DESeqDataSet] with an empty design formula. #' #' @rdname alphaSummary #' @name alphaSummary #' @family Differential Expression Utilities #' @author Michael Ste...
#' @include legend-draw.r NULL #' Graphical units #' #' Multiply size in mm by these constants in order to convert to the units #' that grid uses internally for \code{lwd} and \code{fontsize}. #' #' @name graphical-units NULL #' @export #' @rdname graphical-units .pt <- 1 / 0.352777778 #' @export #' @rdname graphical...
/R/geom-.r
no_license
ParideBertulio/ggplot2
R
false
false
2,811
r
#' @include legend-draw.r NULL #' Graphical units #' #' Multiply size in mm by these constants in order to convert to the units #' that grid uses internally for \code{lwd} and \code{fontsize}. #' #' @name graphical-units NULL #' @export #' @rdname graphical-units .pt <- 1 / 0.352777778 #' @export #' @rdname graphical...
context("CCM") library(psychTestR) app <- AppTester$new("apps/CCM_en_default") app$expect_ui_text("Please enter your ID Continue") app$set_inputs(p_id = "abcde") app$click_next() app$expect_ui_text("Please read the following list of musical activities and select the ones that you have done during the last three mont...
/tests/testthat/test-CCM_EN.R
permissive
fmhoeger/psyquest
R
false
false
2,736
r
context("CCM") library(psychTestR) app <- AppTester$new("apps/CCM_en_default") app$expect_ui_text("Please enter your ID Continue") app$set_inputs(p_id = "abcde") app$click_next() app$expect_ui_text("Please read the following list of musical activities and select the ones that you have done during the last three mont...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/select_vpfiles.R \name{match_filenames} \alias{match_filenames} \title{Match a set of regex expression to a list of files} \usage{ match_filenames(filelist, regexlist) } \arguments{ \item{filelist}{Character list of filenames/filepaths.} \it...
/man/match_filenames.Rd
permissive
BerendWijers/bioRad
R
false
true
818
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/select_vpfiles.R \name{match_filenames} \alias{match_filenames} \title{Match a set of regex expression to a list of files} \usage{ match_filenames(filelist, regexlist) } \arguments{ \item{filelist}{Character list of filenames/filepaths.} \it...
\name{predict.mvr} \alias{predict.mvr} \title{MVR predictions} \usage{predict.mvr(object, newX, nlv, \dots)} \description{Prediction for MVR (PCR, PLS) models. New responses are predicted using a previously defined model and a new matrix of independent observations.} \arguments{ \item{object}{a MVR model} \ite...
/man/predict.mvr.Rd
no_license
cran/pls.pcr
R
false
false
706
rd
\name{predict.mvr} \alias{predict.mvr} \title{MVR predictions} \usage{predict.mvr(object, newX, nlv, \dots)} \description{Prediction for MVR (PCR, PLS) models. New responses are predicted using a previously defined model and a new matrix of independent observations.} \arguments{ \item{object}{a MVR model} \ite...
dictionary.sites <- function() { df_formulas <- data_frame( nameSite = c("bref", "yahoo", "realgm", "hoopshype"), formulatDict = c( "dictionary.bref.nba.missing()", "dictionary.yahoo.nba.missing()", "dictionary.realgm.nba.missing()", "dictionary.hoo...
/R/resolver.R
no_license
chadmillard/nbastatR
R
false
false
9,658
r
dictionary.sites <- function() { df_formulas <- data_frame( nameSite = c("bref", "yahoo", "realgm", "hoopshype"), formulatDict = c( "dictionary.bref.nba.missing()", "dictionary.yahoo.nba.missing()", "dictionary.realgm.nba.missing()", "dictionary.hoo...
################################################## # CÓDIGO PARA LA ESTIMACIÓN DE GRIN SIN VIAJES # # PABLO VELÁZQUEZ # ################################################## # NOTA: El modelo contempla que el usuario introduzca variables de número de usuarios, scooters y viajes para estim...
/Grin scooters.R
no_license
pgvelazquez87/grin
R
false
false
4,667
r
################################################## # CÓDIGO PARA LA ESTIMACIÓN DE GRIN SIN VIAJES # # PABLO VELÁZQUEZ # ################################################## # NOTA: El modelo contempla que el usuario introduzca variables de número de usuarios, scooters y viajes para estim...
do_detect_and_read <- function(at_level, this_level, out_l, simplify, simple, omit) { if (at_level >= 1 & (this_level < 1)) { out_l$info <- detect_and_read(out_l$file_name, omit = omit) out_l$stage <- read_cell_task_orders[1] if (simplify) { simple <- out_l$info$content } } list(out_l = ou...
/R/read_cells_stages.R
permissive
dondealban/tidycells
R
false
false
4,608
r
do_detect_and_read <- function(at_level, this_level, out_l, simplify, simple, omit) { if (at_level >= 1 & (this_level < 1)) { out_l$info <- detect_and_read(out_l$file_name, omit = omit) out_l$stage <- read_cell_task_orders[1] if (simplify) { simple <- out_l$info$content } } list(out_l = ou...
#' Resolve Polytomies by Order of First Appearance #' #' Resolves polytomies in trees with lineages arranged in a pectinate pattern #' (i.e. a ladder-like subtree), ordered by the time of first appearance (FAD) #' for each lineage. #' #' @details #' This method of resolving polytomies assumes that the order of strati...
/R/timeLadderTree.R
permissive
pnovack-gottshall/paleotree
R
false
false
4,914
r
#' Resolve Polytomies by Order of First Appearance #' #' Resolves polytomies in trees with lineages arranged in a pectinate pattern #' (i.e. a ladder-like subtree), ordered by the time of first appearance (FAD) #' for each lineage. #' #' @details #' This method of resolving polytomies assumes that the order of strati...
/US15 - analise_US5_Aula.r
no_license
AndreyMenezes/LAV2-2.0
R
false
false
5,809
r
# bind global variables utils::globalVariables(c("xn", "vld", "l.ci", "u.ci")) #' @importFrom dplyr filter sjp.emm <- function(fit, swapPredictors = FALSE, plevel = 0.05, title = NULL, geom.colors = "Set1", axisTitle.x ...
/R/sjPlotAncovaLSMeans.R
no_license
bgarrels/devel
R
false
false
28,281
r
# bind global variables utils::globalVariables(c("xn", "vld", "l.ci", "u.ci")) #' @importFrom dplyr filter sjp.emm <- function(fit, swapPredictors = FALSE, plevel = 0.05, title = NULL, geom.colors = "Set1", axisTitle.x ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_476} \alias{movie_476} \title{Midnight Cowboy} \format{ igraph object } \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0064665 } \...
/man/movie_476.Rd
permissive
schochastics/networkdata
R
false
true
1,013
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-movie.R \docType{data} \name{movie_476} \alias{movie_476} \title{Midnight Cowboy} \format{ igraph object } \source{ https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3 https://www.imdb.com/title/tt0064665 } \...
#' Re-prompt R code #' #' Remove prompts from R code and output and comment the output, much like knitr does by default #' #' @param comment a character string to precede each line of output #' @param file a file containing mixed R code and output. If \code{NULL}, the edit buffer will #' be used. #' @param prompt,cont...
/R/reprompt.R
no_license
rpruim/rjp
R
false
false
1,534
r
#' Re-prompt R code #' #' Remove prompts from R code and output and comment the output, much like knitr does by default #' #' @param comment a character string to precede each line of output #' @param file a file containing mixed R code and output. If \code{NULL}, the edit buffer will #' be used. #' @param prompt,cont...
#### classifiation tree - aim (ii) #### # previous working ------------------------------------------------------- dat <- remainORleave library(rpart) library(rpart.plot) dat$Constituency <- as.numeric(dat$Constituency) #Step1: Begin with a small cp set.seed(123) tree <- rpart(LeaveRemain ~ Voting.1 + Voting.2 + V...
/class_tree_aim(ii).R
no_license
Andrew-Lehman/Datamining-Prac-2
R
false
false
5,542
r
#### classifiation tree - aim (ii) #### # previous working ------------------------------------------------------- dat <- remainORleave library(rpart) library(rpart.plot) dat$Constituency <- as.numeric(dat$Constituency) #Step1: Begin with a small cp set.seed(123) tree <- rpart(LeaveRemain ~ Voting.1 + Voting.2 + V...
library(dplyr) library(rjson) library(rhdf5) library(tidyr) library(rlist) library(parallel) library(stringr) rm(list = ls()) setwd("/Users/zijiangred/changjiang/dataset/feature") # function to make coauthor dataframe makecadf <- function(j,fl){ i <- fl[j] data <- fromJSON(file = paste0("/Users/zijiang...
/coauthor.R
no_license
DongboShi/chinese_author_disambiguation
R
false
false
12,237
r
library(dplyr) library(rjson) library(rhdf5) library(tidyr) library(rlist) library(parallel) library(stringr) rm(list = ls()) setwd("/Users/zijiangred/changjiang/dataset/feature") # function to make coauthor dataframe makecadf <- function(j,fl){ i <- fl[j] data <- fromJSON(file = paste0("/Users/zijiang...
source("analysis_functions/1_load_data_and_functions.R") alleQTL = list() for(tis in names(tissuePeaks)) alleQTL[[tis]] = generatePlotTissue(tissuePeaks[[tis]],tissueCis[[tis]],dfReturn=T) dfeQTL = reshape2::melt(do.call(rbind,lapply(alleQTL,function(x)table(factor(x$type,levels=c("cis","trans")))))) %>% dplyr::rename...
/figures_and_tables/Fig3B_eqtl_by_tissue_count.R
no_license
ichakraborty/worm_sceQTL
R
false
false
1,075
r
source("analysis_functions/1_load_data_and_functions.R") alleQTL = list() for(tis in names(tissuePeaks)) alleQTL[[tis]] = generatePlotTissue(tissuePeaks[[tis]],tissueCis[[tis]],dfReturn=T) dfeQTL = reshape2::melt(do.call(rbind,lapply(alleQTL,function(x)table(factor(x$type,levels=c("cis","trans")))))) %>% dplyr::rename...
#' @title Prior density #' #' @description Computes density of a prior #' distribution across a range of values. #' #' @param x a prior #' @param x_seq sequence of x coordinates #' @param x_range vector of length two with #' lower and upper range for the support #' (used if \code{x_seq} is unspecified) #' @param x_rang...
/R/priors-density.R
no_license
FBartos/BayesTools
R
false
false
22,530
r
#' @title Prior density #' #' @description Computes density of a prior #' distribution across a range of values. #' #' @param x a prior #' @param x_seq sequence of x coordinates #' @param x_range vector of length two with #' lower and upper range for the support #' (used if \code{x_seq} is unspecified) #' @param x_rang...
#' Shiny ggBivariate Test #' #' Test the shiny ggBivariate module as a stand-alone application. #' #' @inheritParams tomic_to #' @inheritParams ggBivServer #' #' @returns a \code{shiny} app #' #' @examples #' #' if (interactive()) { #' shiny_ggbiv_test( #' add_pca_loadings(brauer_2008_triple, npcs = 5), #' pl...
/R/module_ggbiv.R
no_license
DavisVaughan/romic
R
false
false
10,660
r
#' Shiny ggBivariate Test #' #' Test the shiny ggBivariate module as a stand-alone application. #' #' @inheritParams tomic_to #' @inheritParams ggBivServer #' #' @returns a \code{shiny} app #' #' @examples #' #' if (interactive()) { #' shiny_ggbiv_test( #' add_pca_loadings(brauer_2008_triple, npcs = 5), #' pl...
library(jsonlite) source('scripts/get_lat_lng.r') # This function will call to the API and query for the information # requested to the user get_data <- function(queryData) { base_url <- "https://zilyo.p.mashape.com/search?" key_parameter <- "mashape-key=" key <- "nowlV7qpGSmshTJ2jv6AeLUAGUrjp1632Pzjsn40XflJySx...
/scripts/api_query.r
no_license
brandonthai/info498-final-project
R
false
false
3,575
r
library(jsonlite) source('scripts/get_lat_lng.r') # This function will call to the API and query for the information # requested to the user get_data <- function(queryData) { base_url <- "https://zilyo.p.mashape.com/search?" key_parameter <- "mashape-key=" key <- "nowlV7qpGSmshTJ2jv6AeLUAGUrjp1632Pzjsn40XflJySx...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parseClamp.R \name{parseCLAMP} \alias{parseCLAMP} \title{Parse CLAMP NLP Output} \usage{ parseCLAMP(filename) } \arguments{ \item{filename}{File name for a single file containing CLAMP output.} } \value{ A data.table object with columns for f...
/EHR/man/parseCLAMP.Rd
no_license
choileena/EHR
R
false
true
1,470
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parseClamp.R \name{parseCLAMP} \alias{parseCLAMP} \title{Parse CLAMP NLP Output} \usage{ parseCLAMP(filename) } \arguments{ \item{filename}{File name for a single file containing CLAMP output.} } \value{ A data.table object with columns for f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear.tools.R \name{stripGlmLR} \alias{stripGlmLR} \title{make the lm or glm thin} \usage{ stripGlmLR(model) } \arguments{ \item{model}{glm or lm.} } \value{ a thinner model } \description{ make the lm or glm thin } \author{ Nina Zumel } \ke...
/man/stripGlmLR.Rd
no_license
Fan-Yang-Econ/linear.tools_github
R
false
true
337
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear.tools.R \name{stripGlmLR} \alias{stripGlmLR} \title{make the lm or glm thin} \usage{ stripGlmLR(model) } \arguments{ \item{model}{glm or lm.} } \value{ a thinner model } \description{ make the lm or glm thin } \author{ Nina Zumel } \ke...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content.R \name{content_item} \alias{content_item} \title{Get Content Item} \usage{ content_item(connect, guid) } \arguments{ \item{connect}{A Connect object} \item{guid}{The GUID for the content item to be retrieved} } \value{ A Content obj...
/man/content_item.Rd
no_license
colearendt/connectapi
R
false
true
711
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content.R \name{content_item} \alias{content_item} \title{Get Content Item} \usage{ content_item(connect, guid) } \arguments{ \item{connect}{A Connect object} \item{guid}{The GUID for the content item to be retrieved} } \value{ A Content obj...
# Author: Tokhir Dadaev # License: MIT + file LICENSE.txt # About ------------------------------------------------------------------- # Server file for shiny # Define Server ----------------------------------------------------------- shinyServer(function(input, output, session) { # geneListVCFselected <- reactive(...
/server.R
permissive
oncogenetics/NGS
R
false
false
26,354
r
# Author: Tokhir Dadaev # License: MIT + file LICENSE.txt # About ------------------------------------------------------------------- # Server file for shiny # Define Server ----------------------------------------------------------- shinyServer(function(input, output, session) { # geneListVCFselected <- reactive(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/desc.r \name{desc} \alias{desc} \title{Descending order} \usage{ desc(x) } \arguments{ \item{x}{vector to transform} } \description{ Transform a vector into a format that will be sorted in descending order. This is useful within \code{\link[=...
/man/desc.Rd
permissive
apreshill/dplyr
R
false
true
511
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/desc.r \name{desc} \alias{desc} \title{Descending order} \usage{ desc(x) } \arguments{ \item{x}{vector to transform} } \description{ Transform a vector into a format that will be sorted in descending order. This is useful within \code{\link[=...
############################################################################# # Copyright (c) 2014 Mathieu Ribatet # ...
/R/uvpot-fitGPD.R
no_license
cran/POT
R
false
false
4,031
r
############################################################################# # Copyright (c) 2014 Mathieu Ribatet # ...
\name{scale_codes} \alias{scale_codes} \title{Show which events are scaleable} \usage{ scale_codes(es) } \arguments{ \item{es}{Eventscale} } \value{ Array of scaleable event codes } \description{ Shows which events codes are covered by a scale } \details{ Returns an array of event codes to which an eventscale...
/man/scale_codes.Rd
no_license
cran/events
R
false
false
366
rd
\name{scale_codes} \alias{scale_codes} \title{Show which events are scaleable} \usage{ scale_codes(es) } \arguments{ \item{es}{Eventscale} } \value{ Array of scaleable event codes } \description{ Shows which events codes are covered by a scale } \details{ Returns an array of event codes to which an eventscale...