content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Imagine.R \name{Imagine} \alias{Imagine} \title{Plotting of site-by-species interaction matrices} \usage{ Imagine(comm, col = c(0, 1), order = TRUE, scores = 1, fill = TRUE, xlab = "Species", ylab = "Site", yline = 2, xline = 2, sitenames...
/man/Imagine.Rd
no_license
noamross/metacom
R
false
true
2,026
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Imagine.R \name{Imagine} \alias{Imagine} \title{Plotting of site-by-species interaction matrices} \usage{ Imagine(comm, col = c(0, 1), order = TRUE, scores = 1, fill = TRUE, xlab = "Species", ylab = "Site", yline = 2, xline = 2, sitenames...
rcbalance <- function(distance.structure, near.exact = NULL, fb.list = NULL, treated.info = NULL, control.info = NULL, exclude.treated = FALSE, target.group = NULL, k = 1, penalty = 3, tol = 1e-5){ #################### CHECK INPUT #################### if(!(k > 0)){ stop("k must be larger than zero") } if(!(p...
/rcbalance/R/rcbalance.R
no_license
ingted/R-Examples
R
false
false
8,991
r
rcbalance <- function(distance.structure, near.exact = NULL, fb.list = NULL, treated.info = NULL, control.info = NULL, exclude.treated = FALSE, target.group = NULL, k = 1, penalty = 3, tol = 1e-5){ #################### CHECK INPUT #################### if(!(k > 0)){ stop("k must be larger than zero") } if(!(p...
f.read.analyze.volume<-function(file){ #Reads in a .img file into an array file.name<-substring(file,1,nchar(file)-4) file.hdr<-paste(file.name,".hdr",sep="") file.img<-paste(file.name,".img",sep="") hdr<-f.read.analyze.header(file.hdr) #f.analyze.file.summary(file) num.dim<-hdr$dim[1] dim<-hdr$di...
/R/f.read.analyze.volume.R
no_license
cran/AnalyzeIO
R
false
false
2,065
r
f.read.analyze.volume<-function(file){ #Reads in a .img file into an array file.name<-substring(file,1,nchar(file)-4) file.hdr<-paste(file.name,".hdr",sep="") file.img<-paste(file.name,".img",sep="") hdr<-f.read.analyze.header(file.hdr) #f.analyze.file.summary(file) num.dim<-hdr$dim[1] dim<-hdr$di...
#[ status: on-going] #[ note: 1. use foreach to perform parallel processing when convert raster to dataframe # number of core to be used is usually (available.core-1), # but since other tasks must be process on a shared server, only 85% was allocated (available.core - 5) # 2. can improve usi...
/code/kbdi-calculation.R
no_license
nkitratporn/regional-suitable-habitat
R
false
false
18,149
r
#[ status: on-going] #[ note: 1. use foreach to perform parallel processing when convert raster to dataframe # number of core to be used is usually (available.core-1), # but since other tasks must be process on a shared server, only 85% was allocated (available.core - 5) # 2. can improve usi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataSet.R \name{summary.DataSet} \alias{summary.DataSet} \title{S3 generic summary operator for DataSet} \usage{ \method{summary}{DataSet}(object, ...) } \arguments{ \item{object}{A DataSet object} \item{...}{Arguments passed to other method...
/man/summary.DataSet.Rd
permissive
nojhan/IOHanalyzer
R
false
true
508
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DataSet.R \name{summary.DataSet} \alias{summary.DataSet} \title{S3 generic summary operator for DataSet} \usage{ \method{summary}{DataSet}(object, ...) } \arguments{ \item{object}{A DataSet object} \item{...}{Arguments passed to other method...
.densHistogram.x <- function(k, x, x0, xmin, xmax, hx, cx, px) { output <- .C(C_RdensHistogramX, k = as.integer(k), n = as.integer(length(x)), x = as.double(x), y = double(length(x)), x0 = as.double(x0), xmin = as.double(xmin), xmax = as.double(xmax), hx = as.double(hx), ...
/R/densHistogram.x.R
no_license
cran/rebmix
R
false
false
650
r
.densHistogram.x <- function(k, x, x0, xmin, xmax, hx, cx, px) { output <- .C(C_RdensHistogramX, k = as.integer(k), n = as.integer(length(x)), x = as.double(x), y = double(length(x)), x0 = as.double(x0), xmin = as.double(xmin), xmax = as.double(xmax), hx = as.double(hx), ...
plot.ts(airquality$Global_active_power, xaxt = "n", ylab = "Global Active Power (kilowatts)") > axis(side = 1, at = 0, labels = "Thurs") > axis(side = 1, at = 1500, labels = "Fri") > axis(side = 1, at = 2500, labels = "Sat")
/Plot2.R
no_license
ElGordo1978/ExData_Plotting1
R
false
false
224
r
plot.ts(airquality$Global_active_power, xaxt = "n", ylab = "Global Active Power (kilowatts)") > axis(side = 1, at = 0, labels = "Thurs") > axis(side = 1, at = 1500, labels = "Fri") > axis(side = 1, at = 2500, labels = "Sat")
#' #' H2O Model Related Functions #' #' @importFrom graphics strwidth par legend polygon #' @importFrom grDevices dev.copy dev.off png NULL #----------------------------------------------------------------------------------------------------------------------- # Helper Functions #-----------------------------------...
/h2o-r/h2o-package/R/models.R
permissive
thomascherickal/h2o-3
R
false
false
165,147
r
#' #' H2O Model Related Functions #' #' @importFrom graphics strwidth par legend polygon #' @importFrom grDevices dev.copy dev.off png NULL #----------------------------------------------------------------------------------------------------------------------- # Helper Functions #-----------------------------------...
###library library(RJDBC) library(Rwordseg) library(hash) ###data base connection port = "30015" host = "10.128.84.28" uid = "SYSTEM" pwd = "manager" ##change the option############## options(stringsAsFactors = FALSE) ###JDBC connect to the database################################################### jdbcDriver <- JDB...
/R/myproj/analysis1.R
no_license
yywe/mylib
R
false
false
1,811
r
###library library(RJDBC) library(Rwordseg) library(hash) ###data base connection port = "30015" host = "10.128.84.28" uid = "SYSTEM" pwd = "manager" ##change the option############## options(stringsAsFactors = FALSE) ###JDBC connect to the database################################################### jdbcDriver <- JDB...
# Put custom tests in this file. # Uncommenting the following line of code will disable # auto-detection of new variables and thus prevent swirl from # executing every command twice, which can slow things down. # AUTO_DETECT_NEWVAR <- FALSE # However, this means that you should detect user-created ...
/Courses/IEG301_R_Programming_E/Basic_Building_Blocks/customTests.R
no_license
yusriy/R_swirl
R
false
false
2,143
r
# Put custom tests in this file. # Uncommenting the following line of code will disable # auto-detection of new variables and thus prevent swirl from # executing every command twice, which can slow things down. # AUTO_DETECT_NEWVAR <- FALSE # However, this means that you should detect user-created ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aaGenerics.R, R/methods-BFodds.R \docType{methods} \name{priorOdds<-} \alias{priorOdds<-} \alias{priorOdds<-,BFodds,numeric-method} \title{Set prior odds in an object} \usage{ priorOdds(object) <- value \S4method{priorOdds}{BFodds,numeric}(o...
/pkg/BayesFactor/man/priorOdds-method.Rd
no_license
jonathon-love/BayesFactor
R
false
true
460
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aaGenerics.R, R/methods-BFodds.R \docType{methods} \name{priorOdds<-} \alias{priorOdds<-} \alias{priorOdds<-,BFodds,numeric-method} \title{Set prior odds in an object} \usage{ priorOdds(object) <- value \S4method{priorOdds}{BFodds,numeric}(o...
library(doParallel) cl <- makePSOCKcluster(parallel::detectCores() - 1) registerDoParallel(cl) library(tidyverse) library(magrittr) library(readr) dir.create("m5A") # CalendaImport ----------------------------------------------------------- calendar <- read_csv("m5-forecasting-accuracy/calendar.csv") head(calendar...
/m5AccuracyValidation.R
no_license
thecourtofowls/m5ForecastingTimeSeries
R
false
false
158,797
r
library(doParallel) cl <- makePSOCKcluster(parallel::detectCores() - 1) registerDoParallel(cl) library(tidyverse) library(magrittr) library(readr) dir.create("m5A") # CalendaImport ----------------------------------------------------------- calendar <- read_csv("m5-forecasting-accuracy/calendar.csv") head(calendar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ffts.R \name{ffts} \alias{ffts} \title{Extract the fundamental frequency values as a time series} \usage{ ffts(X, wl = 512, length.out = 20, wn = "hanning", ovlp = 70, bp = c(0, 22), threshold = 15, img = TRUE, parallel = 1, path = NULL, im...
/man/ffts.Rd
no_license
fburkitt/warbleR
R
false
true
5,067
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ffts.R \name{ffts} \alias{ffts} \title{Extract the fundamental frequency values as a time series} \usage{ ffts(X, wl = 512, length.out = 20, wn = "hanning", ovlp = 70, bp = c(0, 22), threshold = 15, img = TRUE, parallel = 1, path = NULL, im...
############################# # Class: https://class.coursera.org/getdata-002 # Assignment: Getting and Cleaning Data Project # Student: Jeanne-Anne Jensen, jana.jensen@comcast.net ############################# # Per instructions: # - run_analysis.R can be run as long as the Samsung data is in your # ...
/run_analysis.R
no_license
JanaJensen/datasciencecoursera-GetData-PA
R
false
false
4,395
r
############################# # Class: https://class.coursera.org/getdata-002 # Assignment: Getting and Cleaning Data Project # Student: Jeanne-Anne Jensen, jana.jensen@comcast.net ############################# # Per instructions: # - run_analysis.R can be run as long as the Samsung data is in your # ...
Author: GathingirahWilfredWakanya library(twitteR) library(httr) library(streamR) #Set directory setwd("C:/Users/waka-the-fisi/Desktop/twitter") #Accessing Twitter API consumer_key <- 'D2SoRvRrWwWo87ysS8hq1zpPk' consumer_secret <- 'vVkxMgu4t3Hk0ZHnhl7ACJpRXMQyVogBP8vPaGgQReWUG3yfsp' access_token <- '2561...
/twitter.R
no_license
wilfredwakanya/TwitterHatespeech-Analysis
R
false
false
2,981
r
Author: GathingirahWilfredWakanya library(twitteR) library(httr) library(streamR) #Set directory setwd("C:/Users/waka-the-fisi/Desktop/twitter") #Accessing Twitter API consumer_key <- 'D2SoRvRrWwWo87ysS8hq1zpPk' consumer_secret <- 'vVkxMgu4t3Hk0ZHnhl7ACJpRXMQyVogBP8vPaGgQReWUG3yfsp' access_token <- '2561...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/db.R \name{remove_old_key} \alias{remove_old_key} \title{remove old keys to maintain uniqueness of "id" for the sake of force pushing} \usage{ remove_old_key(dbconn, tbl_name, ids, key) } \arguments{ \item{dbconn}{SQLConnection. The d...
/man/remove_old_key.Rd
no_license
kirillseva/cachemeifyoucan
R
false
false
579
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/db.R \name{remove_old_key} \alias{remove_old_key} \title{remove old keys to maintain uniqueness of "id" for the sake of force pushing} \usage{ remove_old_key(dbconn, tbl_name, ids, key) } \arguments{ \item{dbconn}{SQLConnection. The d...
source("~/Desktop/personalityTest/aux.R") #Dataset her: http://personality-testing.info/_rawdata/duckworth-grit-scale-data.zip df = read.csv("~/Desktop/personalityTest/duckworth.csv") #Remove extraneous variables n = names(df) drops = n[grep("operatingsystem|browser|screen|elapse|X",n)] df = drop(df, drops) #Turn ...
/cleaner.R
no_license
JonahSinick/personalityTest
R
false
false
1,998
r
source("~/Desktop/personalityTest/aux.R") #Dataset her: http://personality-testing.info/_rawdata/duckworth-grit-scale-data.zip df = read.csv("~/Desktop/personalityTest/duckworth.csv") #Remove extraneous variables n = names(df) drops = n[grep("operatingsystem|browser|screen|elapse|X",n)] df = drop(df, drops) #Turn ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internal.R \name{sm_desc_comp} \alias{sm_desc_comp} \title{Returns big.matrix descriptor offset by 1 (for row by row comparisons)} \usage{ sm_desc_comp(.self, start) } \arguments{ \item{.self}{Data frame} \item{start}{1 or 2} } \value{ big.m...
/man/sm_desc_comp.Rd
no_license
jeblundell/multiplyr
R
false
true
474
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/internal.R \name{sm_desc_comp} \alias{sm_desc_comp} \title{Returns big.matrix descriptor offset by 1 (for row by row comparisons)} \usage{ sm_desc_comp(.self, start) } \arguments{ \item{.self}{Data frame} \item{start}{1 or 2} } \value{ big.m...
# Total Balance BAL.EQF = function(model) { if (!model$HIT) { # No hit. Return NA return(NA) } bal = 0 if(!is.null(model$trades) && length(model$trades) > 0) { bal = sum(sapply(model$trades, function(t) t$BalanceAmount)) } return(bal) } # Total Revolving Balance RBAL.EQF = function(model) {...
/xgboost/dependencies/Equifax_Consumer_Credit_Data/CUA/BAL.R
no_license
kspaulding-NF/KS-ML
R
false
false
833
r
# Total Balance BAL.EQF = function(model) { if (!model$HIT) { # No hit. Return NA return(NA) } bal = 0 if(!is.null(model$trades) && length(model$trades) > 0) { bal = sum(sapply(model$trades, function(t) t$BalanceAmount)) } return(bal) } # Total Revolving Balance RBAL.EQF = function(model) {...
testlist <- list(x = c(2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865479e-289, 2.18144495932078e-311, -6.7301027013416e+306, 5.42203113280934e...
/diceR/inst/testfiles/indicator_matrix/libFuzzer_indicator_matrix/indicator_matrix_valgrind_files/1609960228-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
604
r
testlist <- list(x = c(2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865526e-289, 2.56734752865479e-289, 2.18144495932078e-311, -6.7301027013416e+306, 5.42203113280934e...
library("jsonlite") library("ggplot2") json_data_cpu <- fromJSON("/usr/local/r_project_git/watch_analysis/cpu_request_result.txt",flatten=TRUE) base <- ggplot(json_data_cpu$metricstatistics,aes(x=timestamp,y=average,group=1)) base + geom_point() + geom_line() + stat_smooth(method='loess') ggsave(file="cpu_average.png")...
/watch_analysis/analyze.R
no_license
starwinds/rscript
R
false
false
321
r
library("jsonlite") library("ggplot2") json_data_cpu <- fromJSON("/usr/local/r_project_git/watch_analysis/cpu_request_result.txt",flatten=TRUE) base <- ggplot(json_data_cpu$metricstatistics,aes(x=timestamp,y=average,group=1)) base + geom_point() + geom_line() + stat_smooth(method='loess') ggsave(file="cpu_average.png")...
kdemode <- function(data,type=c("diffusion","SJ","nrd0"),outplot=c(FALSE,TRUE)){ # Return mode of a vector as calculated using KDE # # Inputs: # data One-dimensional vector of data # type Bandwidth selection: # - diffusion: Kernel Density Estimation Via Diffusion, Botev el al. 2010 # ...
/R/kdemode.R
no_license
dereckson/TStools
R
false
false
6,516
r
kdemode <- function(data,type=c("diffusion","SJ","nrd0"),outplot=c(FALSE,TRUE)){ # Return mode of a vector as calculated using KDE # # Inputs: # data One-dimensional vector of data # type Bandwidth selection: # - diffusion: Kernel Density Estimation Via Diffusion, Botev el al. 2010 # ...
#=== main.R #== Load necessary files source('code/masterrun.R') require(lattice) require(gridExtra) require(ggplot2) require(grid) require(extrafont) # Graph Font font <- 'serif' # Labels labB.name <- 'HRAS/anammox vs. MLE' labC.name <- 'AnMBR/anammox vs. MLE' labD.name <- 'HRAS/anammox/n-damo vs. MLE' labE.name <- ...
/code/SensitivityStudy.R
permissive
cogerk/ndamo-econ
R
false
false
7,827
r
#=== main.R #== Load necessary files source('code/masterrun.R') require(lattice) require(gridExtra) require(ggplot2) require(grid) require(extrafont) # Graph Font font <- 'serif' # Labels labB.name <- 'HRAS/anammox vs. MLE' labC.name <- 'AnMBR/anammox vs. MLE' labD.name <- 'HRAS/anammox/n-damo vs. MLE' labE.name <- ...
#' Retrieve Reasons for Not Achieving Good Status #' @description Retrieves details of Reasons for Not Achieving Good (RNAG) #' status and Reasons For Failure (RFF) from EA Catchment Data Explorer site. #' Data can be retrieved by specifying waterbody id #' (\code{WBID}), Management Catchment (\code{MC}), Operational ...
/R/get_rnag.r
permissive
JingningShi/cde
R
false
false
5,399
r
#' Retrieve Reasons for Not Achieving Good Status #' @description Retrieves details of Reasons for Not Achieving Good (RNAG) #' status and Reasons For Failure (RFF) from EA Catchment Data Explorer site. #' Data can be retrieved by specifying waterbody id #' (\code{WBID}), Management Catchment (\code{MC}), Operational ...
#Multiple Linear Regression #Omni Store sales= c(4141,3842,3056,3519,4226, 4630,3507,3754, 5000,5120,4011, 5015,1916,675, 3636,3224,2295, 2730,2618,4421, 4113,3746, 3532, 3825,1096, 761,2088,820,2114, 1882,2159,1602,3354,2927) price = c(59,59,59,59,59,59,59,59,59,59,59,59, 79,79,79,79,79,79,79,79,79, 79,79,79,99,99,...
/mltiple regression.R
no_license
dhanapalaprudhviraj/analyticsproject1
R
false
false
2,393
r
#Multiple Linear Regression #Omni Store sales= c(4141,3842,3056,3519,4226, 4630,3507,3754, 5000,5120,4011, 5015,1916,675, 3636,3224,2295, 2730,2618,4421, 4113,3746, 3532, 3825,1096, 761,2088,820,2114, 1882,2159,1602,3354,2927) price = c(59,59,59,59,59,59,59,59,59,59,59,59, 79,79,79,79,79,79,79,79,79, 79,79,79,99,99,...
\name{FABDataHandler-package} \alias{FABDataHandler-package} \alias{FABDataHandler} \docType{package} \title{ \packageTitle{FABDataHandler} } \description{ \packageDescription{FABDataHandler} } \details{ The DESCRIPTION file: \packageDESCRIPTION{FABDataHandler} \packageIndices{FABDataHandler} ~~ An overview of how to ...
/FABDataHandler/man/FABDataHandler-package.Rd
permissive
AmirHKiani98/FABM-DataHandler-R
R
false
false
856
rd
\name{FABDataHandler-package} \alias{FABDataHandler-package} \alias{FABDataHandler} \docType{package} \title{ \packageTitle{FABDataHandler} } \description{ \packageDescription{FABDataHandler} } \details{ The DESCRIPTION file: \packageDESCRIPTION{FABDataHandler} \packageIndices{FABDataHandler} ~~ An overview of how to ...
context("kinematics functions") test_that("half.wave works fine", { x <- seq(0,pi,0.01) y <- sin(x^2*pi) w <- halfwave(x,y,method="zeros",fit=TRUE,smoothing="spline") expect_is(w,"list") expect_named(w,c("method", "names", "dat")) expect_type(w$names$x,type= "double") expect_type(w$dat$...
/tests/testthat/test-kin.2d.R
no_license
ckenaley/trackter
R
false
false
2,773
r
context("kinematics functions") test_that("half.wave works fine", { x <- seq(0,pi,0.01) y <- sin(x^2*pi) w <- halfwave(x,y,method="zeros",fit=TRUE,smoothing="spline") expect_is(w,"list") expect_named(w,c("method", "names", "dat")) expect_type(w$names$x,type= "double") expect_type(w$dat$...
\name{stat_bin2d} \alias{stat_bin2d} \title{Count number of observation in rectangular bins.} \usage{ stat_bin2d(mapping = NULL, data = NULL, geom = NULL, position = "identity", bins = 30, drop = TRUE, ...) } \arguments{ \item{bins}{numeric vector giving number of bins in both vertical and horizontal directio...
/man/stat_bin2d.Rd
no_license
ThierryO/ggplot2
R
false
false
2,039
rd
\name{stat_bin2d} \alias{stat_bin2d} \title{Count number of observation in rectangular bins.} \usage{ stat_bin2d(mapping = NULL, data = NULL, geom = NULL, position = "identity", bins = 30, drop = TRUE, ...) } \arguments{ \item{bins}{numeric vector giving number of bins in both vertical and horizontal directio...
library(tidyverse) setwd("C:/Docs/Drive/Uni/18F/Genome scale algorithms/Project 1") # Load data df_build.naive = read.csv( "Test - SuffixTree Build - Naive.csv" ) colnames(df_build.naive) = c("Function", "Time", "Test", "text.len", "pattern.len", "occurrences", "?") df_search = read.csv( "Test - SuffixTree Search...
/Project2/perf analysis - suffix tree.R
no_license
izabelcavassim/Genome_scale_algorithms
R
false
false
1,807
r
library(tidyverse) setwd("C:/Docs/Drive/Uni/18F/Genome scale algorithms/Project 1") # Load data df_build.naive = read.csv( "Test - SuffixTree Build - Naive.csv" ) colnames(df_build.naive) = c("Function", "Time", "Test", "text.len", "pattern.len", "occurrences", "?") df_search = read.csv( "Test - SuffixTree Search...
#' Count the number of matches in a string #' #' Vectorised over `string` and `pattern`. #' #' @inheritParams str_detect #' @return An integer vector. #' @seealso #' [stringi::stri_count()] which this function wraps. #' #' [str_locate()]/[str_locate_all()] to locate position #' of matches #' #' @export #' @examples ...
/R/count.r
permissive
stjordanis/stringr
R
false
false
1,009
r
#' Count the number of matches in a string #' #' Vectorised over `string` and `pattern`. #' #' @inheritParams str_detect #' @return An integer vector. #' @seealso #' [stringi::stri_count()] which this function wraps. #' #' [str_locate()]/[str_locate_all()] to locate position #' of matches #' #' @export #' @examples ...
library(testthat) library(coda.base) test_that("basis_matrix", { D = 5 N = D * 10 X = data.frame(matrix(exp(rnorm(N)), ncol = D)) ALR = alr_basis(D) ILR = ilr_basis(D) CLR = clr_basis(D) SBP = sbp_basis(c(b1=X1~X2+X3+X4+X5, b2=X2~X3+X4+X5, b3=X3~X4+X5, ...
/tests/testthat/test-basis.R
no_license
mcomas/coda.base
R
false
false
1,062
r
library(testthat) library(coda.base) test_that("basis_matrix", { D = 5 N = D * 10 X = data.frame(matrix(exp(rnorm(N)), ncol = D)) ALR = alr_basis(D) ILR = ilr_basis(D) CLR = clr_basis(D) SBP = sbp_basis(c(b1=X1~X2+X3+X4+X5, b2=X2~X3+X4+X5, b3=X3~X4+X5, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Polygon.R \name{get_meta} \alias{get_meta} \title{Get Polygon Meta Data (Deprecated)} \usage{ get_meta(ticker = NULL, endpoint = NULL, perpage = NULL, v = 1) } \arguments{ \item{ticker}{Specify which symbol you want to call by inserting ticke...
/man/get_meta.Rd
no_license
tanho63/AlpacaforR
R
false
true
1,599
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Polygon.R \name{get_meta} \alias{get_meta} \title{Get Polygon Meta Data (Deprecated)} \usage{ get_meta(ticker = NULL, endpoint = NULL, perpage = NULL, v = 1) } \arguments{ \item{ticker}{Specify which symbol you want to call by inserting ticke...
## Put comments here that give an overall description of what your ## functions do ## The functions below cache the inverse of a matrix to be accessed at a later point ## Write a short comment describing this function ## Create a matrix to be inverted makeCacheMatrix <- function(x = matrix()) { m <- NULL set ...
/cachematrix.R
no_license
jnagle25/ProgrammingAssignment2
R
false
false
919
r
## Put comments here that give an overall description of what your ## functions do ## The functions below cache the inverse of a matrix to be accessed at a later point ## Write a short comment describing this function ## Create a matrix to be inverted makeCacheMatrix <- function(x = matrix()) { m <- NULL set ...
# # This is the user-interface definition 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) # Define UI for application that draws a histogram shinyUI(fluidPage( #...
/shinyapps/ui.R
permissive
jinghuazhao/ShinyApps
R
false
false
697
r
# # This is the user-interface definition 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) # Define UI for application that draws a histogram shinyUI(fluidPage( #...
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
/src/test/scripts/functions/unary/scalar/DFTest_CHISQ.R
permissive
apache/systemds
R
false
false
1,252
r
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
# Replication protein alignments for Ecoli # from tblastn # needs to be in tabular output of csv, it will be too difficult to see the sequences in raw pairwise #libraries library(seqinr) library(Biostrings) library(msa) library(DECIPHER) # set the AAStringSet with names based on the order they appear in the OG csv f...
/Replication_Proteins/Replication_Protein_Alignment_Ecoli.R
no_license
Armbarbarian/termination_mac
R
false
false
10,783
r
# Replication protein alignments for Ecoli # from tblastn # needs to be in tabular output of csv, it will be too difficult to see the sequences in raw pairwise #libraries library(seqinr) library(Biostrings) library(msa) library(DECIPHER) # set the AAStringSet with names based on the order they appear in the OG csv f...
\name{msk.macrophytes.2017.plot.types.scheme} \alias{msk.macrophytes.2017.plot.types.scheme} \title{ Function to plot the probabilities of all river types according to the type definition scheme. } \description{ Function to plot the probabilities of all river types according to the type definition scheme. ...
/man/msk.macrophytes.2017.plot.types.scheme.Rd
no_license
cran/ecoval
R
false
false
2,433
rd
\name{msk.macrophytes.2017.plot.types.scheme} \alias{msk.macrophytes.2017.plot.types.scheme} \title{ Function to plot the probabilities of all river types according to the type definition scheme. } \description{ Function to plot the probabilities of all river types according to the type definition scheme. ...
works_with_R("3.2.0", data.table="1.9.4", "tdhock/PeakError@d9196abd9ba51ad1b8f165d49870039593b94732", "tdhock/PeakSegJoint@a1ea491f49e9bdb347f1caadebe7b750de807ac4") load("selected.by.set.RData") load("train.sets.RData") regions.file.list <- list() regions.file.vec <- Sys.glob(...
/weighted.error.R
no_license
tdhock/PeakSegJoint-paper
R
false
false
6,944
r
works_with_R("3.2.0", data.table="1.9.4", "tdhock/PeakError@d9196abd9ba51ad1b8f165d49870039593b94732", "tdhock/PeakSegJoint@a1ea491f49e9bdb347f1caadebe7b750de807ac4") load("selected.by.set.RData") load("train.sets.RData") regions.file.list <- list() regions.file.vec <- Sys.glob(...
## Copyright (C) 2012, 2013 Bitergia ## ## 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 later version. ## ## This program is distri...
/vizGrimoireJS/scm-analysis.R
no_license
pombredanne/VizGrimoireR
R
false
false
11,605
r
## Copyright (C) 2012, 2013 Bitergia ## ## 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 later version. ## ## This program is distri...
test_that("feb29_to_28.Date", { expect_identical( dtt_feb29_to_28(as.Date("2004-02-29")), as.Date("2004-02-28") ) expect_identical( dtt_feb29_to_28(as.Date(c("2004-02-29", "2003-03-01"))), as.Date(c("2004-02-28", "2003-03-01")) ) }) test_that("feb29_to_28.POSIXct", { expect_identical( dt...
/tests/testthat/test-feb29-to-28.R
permissive
poissonconsulting/dttr2
R
false
false
531
r
test_that("feb29_to_28.Date", { expect_identical( dtt_feb29_to_28(as.Date("2004-02-29")), as.Date("2004-02-28") ) expect_identical( dtt_feb29_to_28(as.Date(c("2004-02-29", "2003-03-01"))), as.Date(c("2004-02-28", "2003-03-01")) ) }) test_that("feb29_to_28.POSIXct", { expect_identical( dt...
### soil texture TERN ## spatial prediction ## modified: 18/3/20 ## finished: 25/3/20 ## Load models ## load covariates ## run the spaital prediction model ### variables vart<- "sand" depth<- "d6" batch<- 4 srt<- 751 fin<- 1000 modsrt<- 41 modfin<- 50 ## libraries library(parallel);library(sp);library(rgdal);libra...
/Production/DSM/SoilTexture/digitalsoilmapping/spatialprediction/sand/d6/spatialise_sand_d6_4.R
permissive
AusSoilsDSM/SLGA
R
false
false
2,958
r
### soil texture TERN ## spatial prediction ## modified: 18/3/20 ## finished: 25/3/20 ## Load models ## load covariates ## run the spaital prediction model ### variables vart<- "sand" depth<- "d6" batch<- 4 srt<- 751 fin<- 1000 modsrt<- 41 modfin<- 50 ## libraries library(parallel);library(sp);library(rgdal);libra...
library(reshape2) imgt_mixcr$tcrs %>% melt(measure.vars = c("trav_jxn", "trbv_jxn")) tcr <- list(name = "TCR", children = list( list(name = "TRAV", children = list()), list(name = "TRBV", children = list()) )) # test -------------------------------------------------------------------- get_children <- ...
/R/plot_tcr_network.R
permissive
jaeddy/tcrtools
R
false
false
1,011
r
library(reshape2) imgt_mixcr$tcrs %>% melt(measure.vars = c("trav_jxn", "trbv_jxn")) tcr <- list(name = "TCR", children = list( list(name = "TRAV", children = list()), list(name = "TRBV", children = list()) )) # test -------------------------------------------------------------------- get_children <- ...
/data/ClimateData_Process_Exercise.R
no_license
aam512/weather-simulation
R
false
false
392
r
## ========================================================================================= ## ## PUBLIC S3 METHODS FOR PLNfamily ## ## ========================================================================================= ## Auxiliary functions to check the given class of an objet isPLNfamily <- function(Robject)...
/R/PLNfamily-S3methods.R
no_license
cran/PLNmodels
R
false
false
4,045
r
## ========================================================================================= ## ## PUBLIC S3 METHODS FOR PLNfamily ## ## ========================================================================================= ## Auxiliary functions to check the given class of an objet isPLNfamily <- function(Robject)...
library(acct) library(haven) library(tidyverse) student_level <- read_dta("N:/ORP_accountability/projects/2017_student_level_file/state_student_level_2017_JP_final_10162017.dta") %>% # Residential Facility students are dropped from system level filter(residential_facility != 1 | is.na(residential_facility)) %>% # ...
/2017-accountability/district/1. student_level_to_system_base.R
no_license
tnedu/accountability
R
false
false
10,925
r
library(acct) library(haven) library(tidyverse) student_level <- read_dta("N:/ORP_accountability/projects/2017_student_level_file/state_student_level_2017_JP_final_10162017.dta") %>% # Residential Facility students are dropped from system level filter(residential_facility != 1 | is.na(residential_facility)) %>% # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_hygiene_overview.R \name{plot_hygiene_overview} \alias{plot_hygiene_overview} \title{Plot Hygiene Overview} \usage{ plot_hygiene_overview(hygiene_df) } \arguments{ \item{hygiene_df}{A data.frame with the hygiene data of a given river} } ...
/man/plot_hygiene_overview.Rd
permissive
KWB-R/kwb.flusshygiene
R
false
true
501
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_hygiene_overview.R \name{plot_hygiene_overview} \alias{plot_hygiene_overview} \title{Plot Hygiene Overview} \usage{ plot_hygiene_overview(hygiene_df) } \arguments{ \item{hygiene_df}{A data.frame with the hygiene data of a given river} } ...
library(stringr) template.file <- "errorcorrect.Rmd" template.content <- readLines(template.file) sample.list <- list.files(pattern=".*\\.groups\\.[0-9]+\\.rds$") for (sample in sample.list) { components <- unlist(str_split(sample, "[.]")) if (length(components) > 4) { prefix <- paste(components[1:(length(com...
/pipeline/dispatcher_errorcorrect.R
no_license
dbrg77/CELLOseq
R
false
false
703
r
library(stringr) template.file <- "errorcorrect.Rmd" template.content <- readLines(template.file) sample.list <- list.files(pattern=".*\\.groups\\.[0-9]+\\.rds$") for (sample in sample.list) { components <- unlist(str_split(sample, "[.]")) if (length(components) > 4) { prefix <- paste(components[1:(length(com...
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export unique.default<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka", ...
/R/unique.default.R
no_license
granatb/RapeR
R
false
false
683
r
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export unique.default<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka", ...
# Default viewports # Set up named viewports that the other components use. # # This function sets up a \code{\link[grid]{vpTree}} in which all of # the components of a plot will be placed. This allows for a clean # separation between the generation of plot objects, and their placement, and # means none of the compo...
/R/plot-viewport.r
no_license
rmasinidemelo/ggplot
R
false
false
4,275
r
# Default viewports # Set up named viewports that the other components use. # # This function sets up a \code{\link[grid]{vpTree}} in which all of # the components of a plot will be placed. This allows for a clean # separation between the generation of plot objects, and their placement, and # means none of the compo...
context("test-power_set") relations <- data.frame(sets = c(rep("a", 5), "b"), elements = letters[seq_len(6)]) TS <- tidySet(relations) test_that("works without keep", { out <- power_set(TS, "a", "power_set", keep = FALSE) expect_equal(nElements(out), nElements(TS)) expect_equal(nSet...
/tests/testthat/test-power_set.R
permissive
annakrystalli/BaseSet
R
false
false
507
r
context("test-power_set") relations <- data.frame(sets = c(rep("a", 5), "b"), elements = letters[seq_len(6)]) TS <- tidySet(relations) test_that("works without keep", { out <- power_set(TS, "a", "power_set", keep = FALSE) expect_equal(nElements(out), nElements(TS)) expect_equal(nSet...
testlist <- list(A = structure(c(2.44418684471227e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109626-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
257
r
testlist <- list(A = structure(c(2.44418684471227e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
# Copyright (c) 2018, Brandseye PTY (LTD) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish...
/R/account_logs_retrosent.R
permissive
brandseye/brandseyer2
R
false
false
5,460
r
# Copyright (c) 2018, Brandseye PTY (LTD) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_functions.R \name{spreadcreate} \alias{spreadcreate} \title{Creates a spreadsheet, returning the newly created spreadsheet.} \usage{ spreadcreate(Spreadsheet) } \arguments{ \item{Spreadsheet}{The \link{Spreadsheet} object to pass to th...
/man/spreadcreate.Rd
no_license
bradgwest/googleSheetsR
R
false
true
1,140
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sheets_functions.R \name{spreadcreate} \alias{spreadcreate} \title{Creates a spreadsheet, returning the newly created spreadsheet.} \usage{ spreadcreate(Spreadsheet) } \arguments{ \item{Spreadsheet}{The \link{Spreadsheet} object to pass to th...
# Here's a bunch of scripts to gather the SELECTED data in useful formats writeParticipantsFile <- function() { allParticipants <- read.csv('../../Science/Baseline/data/participants_files.csv', stringsAsFactors=F) groups <- c('30implicit', '30explicit', '60implicit_b', ...
/zz_00A_dataCollection_localizations_MA.R
no_license
ayalamar/baseline-noise
R
false
false
17,984
r
# Here's a bunch of scripts to gather the SELECTED data in useful formats writeParticipantsFile <- function() { allParticipants <- read.csv('../../Science/Baseline/data/participants_files.csv', stringsAsFactors=F) groups <- c('30implicit', '30explicit', '60implicit_b', ...
#set the working directory path<-"/home/My Repositories/Projects/DataScience/DiwaliSmog2016/data/rkPuram/pollutants" setwd(path) #Load Datasets pm10rk <- read.csv("pm10rkPuram.csv") attach(pm10rk) #Import the libraries library("lubridate") library("plyr") library("ggplot2", lib.loc="~/R/x86_64-pc-linux-gnu-library/3...
/scripts/RKPuram/pollutantsAnalysis.R
no_license
A-Infinite/DataScience-DelhiSmog2016Analysis
R
false
false
13,025
r
#set the working directory path<-"/home/My Repositories/Projects/DataScience/DiwaliSmog2016/data/rkPuram/pollutants" setwd(path) #Load Datasets pm10rk <- read.csv("pm10rkPuram.csv") attach(pm10rk) #Import the libraries library("lubridate") library("plyr") library("ggplot2", lib.loc="~/R/x86_64-pc-linux-gnu-library/3...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RD.R \name{Carlson_RD} \alias{Carlson_RD} \title{Carlson elliptic integral RD} \usage{ Carlson_RD(x, y, z, minerror = 1e-15) } \arguments{ \item{x, y, z}{real or complex numbers; at most one can be 0} \item{minerror}{bound on the ...
/man/Carlson_RD.Rd
no_license
cran/Carlson
R
false
true
771
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RD.R \name{Carlson_RD} \alias{Carlson_RD} \title{Carlson elliptic integral RD} \usage{ Carlson_RD(x, y, z, minerror = 1e-15) } \arguments{ \item{x, y, z}{real or complex numbers; at most one can be 0} \item{minerror}{bound on the ...
GTC_PATH <- "~/Downloads" GTC_DATA <- "donations.csv"
/neon/shiny/config.R
no_license
mgirard772/gtc
R
false
false
63
r
GTC_PATH <- "~/Downloads" GTC_DATA <- "donations.csv"
## remove all objects rm(list=ls()) #install.packages('randomForest') #install.packages('ggplot2') #install.packages('cowplot') library(randomForest) library(ggplot2) library(cowplot) #theme_set(theme_cowplot()) #Load filename <- file.choose() lbs1 <- read.csv(filename, na.strings = "?") #s...
/Analysis and classification of London bike sharing/Random_Forest.R
no_license
Rungerlas/Data-Mining-Algorithm
R
false
false
2,544
r
## remove all objects rm(list=ls()) #install.packages('randomForest') #install.packages('ggplot2') #install.packages('cowplot') library(randomForest) library(ggplot2) library(cowplot) #theme_set(theme_cowplot()) #Load filename <- file.choose() lbs1 <- read.csv(filename, na.strings = "?") #s...
source("/data2/3to5/I35/scripts/analysisfunctions.R") library(ncdf4) library(maps) library(mapdata) library(maptools) library(fields) library(sp) library(raster) library(rasterVis) library(ggplot2) library(modi) #weighted.var <- function(x, w, na.rm = FALSE) { # if (na.rm) { # w <- w[i <- !is.na(x)] # x <- x[i]...
/Sanderson/Sanderson_BMA_posteriorcalcs_domainMV_tmaxnewmexico.R
no_license
amwootte/analysisscripts
R
false
false
15,742
r
source("/data2/3to5/I35/scripts/analysisfunctions.R") library(ncdf4) library(maps) library(mapdata) library(maptools) library(fields) library(sp) library(raster) library(rasterVis) library(ggplot2) library(modi) #weighted.var <- function(x, w, na.rm = FALSE) { # if (na.rm) { # w <- w[i <- !is.na(x)] # x <- x[i]...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ex25.44} \alias{ex25.44} \title{Data from Exercise 25.44} \format{\Sexpr[results=rd]{bps5data:::doc_data("ex25.44") }} \source{ \url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip } } \usage{ d...
/man/ex25.44.Rd
no_license
jrnold/bps5data
R
false
false
1,456
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{ex25.44} \alias{ex25.44} \title{Data from Exercise 25.44} \format{\Sexpr[results=rd]{bps5data:::doc_data("ex25.44") }} \source{ \url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip } } \usage{ d...
#' Square of size #' #' @param rg Row number to have 10 cm #' @param m Stitch number to have 10 cm #' #' @return #' Square size to do grid on image #' @export #' #' @examples #' tricot::square_size(31,24) #' tricot::square_size(35,26) square_size <- function(rg, m) { if (!is.numeric(rg)) {stop("rg should be numeric"...
/R/square_size.R
no_license
Vaugoyeau/tricot
R
false
false
571
r
#' Square of size #' #' @param rg Row number to have 10 cm #' @param m Stitch number to have 10 cm #' #' @return #' Square size to do grid on image #' @export #' #' @examples #' tricot::square_size(31,24) #' tricot::square_size(35,26) square_size <- function(rg, m) { if (!is.numeric(rg)) {stop("rg should be numeric"...
library(AdaptFitOS) ### Name: asp2 ### Title: Fit a semiparametric regression model with spatially adaptive ### penalized splines ### Aliases: asp2 ### Keywords: nonlinear models smooth regression adaptive ### ** Examples ############ # Examples as in package AdaptFit ## scatterplot smoothing x <- 1:1000/10...
/data/genthat_extracted_code/AdaptFitOS/examples/asp2.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
6,182
r
library(AdaptFitOS) ### Name: asp2 ### Title: Fit a semiparametric regression model with spatially adaptive ### penalized splines ### Aliases: asp2 ### Keywords: nonlinear models smooth regression adaptive ### ** Examples ############ # Examples as in package AdaptFit ## scatterplot smoothing x <- 1:1000/10...
#Visualise changes in network structure after the first national intervention suppressPackageStartupMessages({ require(tidyverse) require(sf) require(colorspace) require(here) require(igraph) }) if(interactive()){ .args <- c(here("data/processed/mob/movement_daily.csv"), here("data/processed...
/src/network/plot_network.R
permissive
cmmid/uk_movement_communities_covid
R
false
false
9,498
r
#Visualise changes in network structure after the first national intervention suppressPackageStartupMessages({ require(tidyverse) require(sf) require(colorspace) require(here) require(igraph) }) if(interactive()){ .args <- c(here("data/processed/mob/movement_daily.csv"), here("data/processed...
#Extract and transform - real estate data from funda.nl #Clear the workspace - remove all variables rm(list = ls()) gc() library("tidyverse") library("RJSONIO") library("DT") library("data.table") library("cowplot") results_per_page <- 25 #This (25) is the max possible and hard coaded #function fi...
/funda-data.R
no_license
gpoudel/funda-mental
R
false
false
8,841
r
#Extract and transform - real estate data from funda.nl #Clear the workspace - remove all variables rm(list = ls()) gc() library("tidyverse") library("RJSONIO") library("DT") library("data.table") library("cowplot") results_per_page <- 25 #This (25) is the max possible and hard coaded #function fi...
#' snapgrid: Common SNAP geographic raster layer objects. #' #' The snapgrid package contains a collection of rasterized maps focused on #' Alaska and Canada, including vegetation input for the ALFRESCO wildfire model, #' fire management options map layers, domain template layers for the Alaska "statewide" classic ALFR...
/snapgrid/R/data.R
permissive
ua-snap/snap-r-tools
R
false
false
5,190
r
#' snapgrid: Common SNAP geographic raster layer objects. #' #' The snapgrid package contains a collection of rasterized maps focused on #' Alaska and Canada, including vegetation input for the ALFRESCO wildfire model, #' fire management options map layers, domain template layers for the Alaska "statewide" classic ALFR...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{platformTypes.get} \alias{platformTypes.get} \title{Gets one platform type by ID.} \usage{ platformTypes.get(profileId, id) } \arguments{ \item{profileId}{User profile ID associated with this request} \item{id}...
/googledfareportingv26.auto/man/platformTypes.get.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
861
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{platformTypes.get} \alias{platformTypes.get} \title{Gets one platform type by ID.} \usage{ platformTypes.get(profileId, id) } \arguments{ \item{profileId}{User profile ID associated with this request} \item{id}...
# # The runnable GGEA version for integration in Galaxy # ############################################################################### ## LIBRARIES suppressWarnings(suppressPackageStartupMessages(library(MASS))) if(!("GGEA.DIR" %in% objects())) GGEA.DIR <- "/home/cbio/ludwig/progs/ggea" setwd(GGEA.DIR)...
/src/tools/pwy_mapping/ggea_galaxy.R
permissive
uct-cbio/galaxy-tools
R
false
false
6,706
r
# # The runnable GGEA version for integration in Galaxy # ############################################################################### ## LIBRARIES suppressWarnings(suppressPackageStartupMessages(library(MASS))) if(!("GGEA.DIR" %in% objects())) GGEA.DIR <- "/home/cbio/ludwig/progs/ggea" setwd(GGEA.DIR)...
#Read the .csv file data my_data <- read.csv("D:/Data Science/Lab/NIPostcodes.csv", header = TRUE) colnames(my_data) <- c("Organisation Name", "Sub-building Name", "Building Name", "Number", "Primary Thorfare", "Alt Thorfare", "Secondary Thorfare", "Locality","Townland", "Town", "County", "Postcode", "x-coordinates", "...
/Lab2_NIPostcode/script.R
no_license
L00138164/DataScience
R
false
false
1,595
r
#Read the .csv file data my_data <- read.csv("D:/Data Science/Lab/NIPostcodes.csv", header = TRUE) colnames(my_data) <- c("Organisation Name", "Sub-building Name", "Building Name", "Number", "Primary Thorfare", "Alt Thorfare", "Secondary Thorfare", "Locality","Townland", "Town", "County", "Postcode", "x-coordinates", "...
for(i in 1:10){ print(i) } x <- c("a","b","c","d") for(i in 1:4){ print(x[i]) } for(letter in x){ print(letter) } for(i in 1:4) print(x[i]) ##Nested ForLoop ##print each in in matrix x <- matrix(1:6,2,3) for(i in seq_leng(nrow(x))){ for(j in seq_len(ncol(x))){ print(x[i,j]) } }
/Control - ForLoop.R
no_license
cpm205/datasciencecoursera
R
false
false
297
r
for(i in 1:10){ print(i) } x <- c("a","b","c","d") for(i in 1:4){ print(x[i]) } for(letter in x){ print(letter) } for(i in 1:4) print(x[i]) ##Nested ForLoop ##print each in in matrix x <- matrix(1:6,2,3) for(i in seq_leng(nrow(x))){ for(j in seq_len(ncol(x))){ print(x[i,j]) } }
\name{tssdr} \alias{tssdr} \alias{tssdr.default} \alias{tssdr.ts} \alias{tssdr.xts} \alias{tssdr.zoo} \alias{print.tssdr} \alias{components.tssdr} \alias{plot.tssdr} \title{ Supervised dimension reduction for multivariate time series } \description{ Supervised dimension reduction for multivariate time se...
/fuzzedpackages/tsBSS/man/tssdr.Rd
no_license
akhikolla/testpackages
R
false
false
7,825
rd
\name{tssdr} \alias{tssdr} \alias{tssdr.default} \alias{tssdr.ts} \alias{tssdr.xts} \alias{tssdr.zoo} \alias{print.tssdr} \alias{components.tssdr} \alias{plot.tssdr} \title{ Supervised dimension reduction for multivariate time series } \description{ Supervised dimension reduction for multivariate time se...
################## # input parameters for binning and plotting AAVSO data llightcurve_name <- "aavso_16Jun2017.csv" maxairmass <- 2.0 # air mass values above this will be filtered out, as well as missing air masses. Set >= 100 to turn this off maxuncertainty <- 0.02 # maximum AAVSO uncertainty estimate maxBinUncertain...
/input_files/aavso_bin_input_small_red.R
no_license
pdcarr/Boyajians_R
R
false
false
5,844
r
################## # input parameters for binning and plotting AAVSO data llightcurve_name <- "aavso_16Jun2017.csv" maxairmass <- 2.0 # air mass values above this will be filtered out, as well as missing air masses. Set >= 100 to turn this off maxuncertainty <- 0.02 # maximum AAVSO uncertainty estimate maxBinUncertain...
#exploratory data analysis #course project 1 source("load_data.R") hpc_sub$date_time <- paste(as.character(hpc_sub$Date), as.character(hpc_sub$Time)) hpc_sub$date_time <- strptime(hpc_sub$date_time,"%d/%m/%Y %H:%M:%S") png('plot4.png',width=480,height=480,units="px") par(mfrow=c(2,2)) with( hpc_sub, plot(x=date_time...
/plot4.R
no_license
nate-d-olson/ExData_Plotting1
R
false
false
1,104
r
#exploratory data analysis #course project 1 source("load_data.R") hpc_sub$date_time <- paste(as.character(hpc_sub$Date), as.character(hpc_sub$Time)) hpc_sub$date_time <- strptime(hpc_sub$date_time,"%d/%m/%Y %H:%M:%S") png('plot4.png',width=480,height=480,units="px") par(mfrow=c(2,2)) with( hpc_sub, plot(x=date_time...
source('R/aws_utils.R') source('R/startup.R') shinyServer(function(input, output,session) { onStop(function(){ cat('Ending session from server onStop') # end_data() tryCatch(end_data(),error=function(e){e}) # avoid curl::curl_fetch_memory errors }) #create a file on click output$create<-ren...
/app/server.R
no_license
dgrapov/shiny_test
R
false
false
1,613
r
source('R/aws_utils.R') source('R/startup.R') shinyServer(function(input, output,session) { onStop(function(){ cat('Ending session from server onStop') # end_data() tryCatch(end_data(),error=function(e){e}) # avoid curl::curl_fetch_memory errors }) #create a file on click output$create<-ren...
# ------------------ Data generation ---------------------- # nDocs = 1000 # number of documents K = 4 # number of topics V = 400 # vocabulary size nWords = 100 # document length nG = 2 # number of groups par.b = 5 var.cond = 2 # error variance b1.coef = c(4, 8, 8, 4) # regression coefficie...
/suppl/sub_data_generation.R
no_license
Kim-s-h/sLDA-M
R
false
false
2,003
r
# ------------------ Data generation ---------------------- # nDocs = 1000 # number of documents K = 4 # number of topics V = 400 # vocabulary size nWords = 100 # document length nG = 2 # number of groups par.b = 5 var.cond = 2 # error variance b1.coef = c(4, 8, 8, 4) # regression coefficie...
linerulecoalitional <- function(n=NA,a=NA,av=NA,d=NA,h=NA,m=NA){ if (sum(is.na(h)==T)==length(h)|sum(is.na(av)==T)==length(av)){ cat("Values for h and av are necessary to determinate the optimal orders.", sep="\n") } else { if (sum(is.na(m)!=TRUE)==length(m)|sum(is.na(d)!=TRUE)==length(d)){ ...
/R/linerulecoalitional.R
no_license
cran/Inventorymodel
R
false
false
1,005
r
linerulecoalitional <- function(n=NA,a=NA,av=NA,d=NA,h=NA,m=NA){ if (sum(is.na(h)==T)==length(h)|sum(is.na(av)==T)==length(av)){ cat("Values for h and av are necessary to determinate the optimal orders.", sep="\n") } else { if (sum(is.na(m)!=TRUE)==length(m)|sum(is.na(d)!=TRUE)==length(d)){ ...
summary.LMlatentcont<-function(object,...){ cat("Call:\n") print(object$call) cat("\nCoefficients:\n") if(object$call$k>1){ cat("\n Be - Parameters affecting the logit for the initial probabilities:\n") print(round(object$Be,4)) if(is.null(object$seBe)==FALSE){ cat("\n Standard errors for Be:\n") print(round(ob...
/R/summary.LMlatentcont.R
no_license
jmorten/LMest
R
false
false
1,507
r
summary.LMlatentcont<-function(object,...){ cat("Call:\n") print(object$call) cat("\nCoefficients:\n") if(object$call$k>1){ cat("\n Be - Parameters affecting the logit for the initial probabilities:\n") print(round(object$Be,4)) if(is.null(object$seBe)==FALSE){ cat("\n Standard errors for Be:\n") print(round(ob...
library(mongolite) library(ggplot2) library(jsonlite) library(wordcloud) library(wordcloud2) library(RColorBrewer) library(tm) library(flipTextAnalysis) library("SnowballC") #import data from mongodb m <- mongo("messages_Art_feminin", url = "mongodb://adeboynes:Ksd-Z9=gT<z~c@127.0.0.1:27018/bdd_grp4?authSource=admin")...
/alexia2.r
no_license
EGo41000/Projet-7-Mooc-AJC
R
false
false
2,363
r
library(mongolite) library(ggplot2) library(jsonlite) library(wordcloud) library(wordcloud2) library(RColorBrewer) library(tm) library(flipTextAnalysis) library("SnowballC") #import data from mongodb m <- mongo("messages_Art_feminin", url = "mongodb://adeboynes:Ksd-Z9=gT<z~c@127.0.0.1:27018/bdd_grp4?authSource=admin")...
library(ggplot2) readLineToNumList<- function(fileLink){ line <- readLines(fileLink,1) line <- strsplit(line,' ') line <- unlist(line) return(as.numeric(line)) } readLineToStrList<- function(fileLink){ line <- readLines(fileLink,1) line <- strsplit(line,' ') line <- unlist(line) return(line) } mirScrFi...
/plotScore.R
no_license
ttbond/srcfind
R
false
false
1,306
r
library(ggplot2) readLineToNumList<- function(fileLink){ line <- readLines(fileLink,1) line <- strsplit(line,' ') line <- unlist(line) return(as.numeric(line)) } readLineToStrList<- function(fileLink){ line <- readLines(fileLink,1) line <- strsplit(line,' ') line <- unlist(line) return(line) } mirScrFi...
library(SqlRender) ### Name: snakeCaseToCamelCase ### Title: Convert a snake case string to camel case ### Aliases: snakeCaseToCamelCase ### ** Examples snakeCaseToCamelCase("exposure_concept_id_1") # > 'exposureConceptId1'
/data/genthat_extracted_code/SqlRender/examples/snakeCaseToCamelCase.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
232
r
library(SqlRender) ### Name: snakeCaseToCamelCase ### Title: Convert a snake case string to camel case ### Aliases: snakeCaseToCamelCase ### ** Examples snakeCaseToCamelCase("exposure_concept_id_1") # > 'exposureConceptId1'
\name{GA-package} \alias{GA-package} %\alias{ga-package} \alias{GA} \docType{package} \title{Genetic Algorithms} \description{ An R package for optimization using genetic algorithms. The package provides a flexible general-purpose set of tools for implementing genetic algorithms search in both the continuous and disc...
/algorytmy optymalizacyjne/GA-master(alg genetyczny)/GA-master/man/GA-package.Rd
no_license
JKulpinski/Artificial-Intelligence
R
false
false
1,686
rd
\name{GA-package} \alias{GA-package} %\alias{ga-package} \alias{GA} \docType{package} \title{Genetic Algorithms} \description{ An R package for optimization using genetic algorithms. The package provides a flexible general-purpose set of tools for implementing genetic algorithms search in both the continuous and disc...
SAMPLE R CODE FOR EDA attach(WhiteWine) par(mfrow=c(2,2), oma = c(1,1,0,0) + 0.1, mar = c(3,3,1,1) + 0.1) barplot((table(quality)), col=c("slateblue4", "slategray", "slategray1", "slategray2", "slategray3", "skyblue4")) mtext("Quality", side=1, outer=F, line=2, cex=0.8) truehist(fixed.acidity, h = 0.5, col="slategray3...
/Python/AXA/WineQuality/WineQuality_PSU_R/wine_quality.R
permissive
ManasveeMittal/dropbox
R
false
false
4,663
r
SAMPLE R CODE FOR EDA attach(WhiteWine) par(mfrow=c(2,2), oma = c(1,1,0,0) + 0.1, mar = c(3,3,1,1) + 0.1) barplot((table(quality)), col=c("slateblue4", "slategray", "slategray1", "slategray2", "slategray3", "skyblue4")) mtext("Quality", side=1, outer=F, line=2, cex=0.8) truehist(fixed.acidity, h = 0.5, col="slategray3...
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 4.75595089190978e+25, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance::fastdist,testlist) str(result)
/multivariance/inst/testfiles/fastdist/AFL_fastdist/fastdist_valgrind_files/1613098363-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
302
r
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 4.75595089190978e+25, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance::fastdist,testlist) str(result)
library(Matrix) #Spatial decay function decay<-function(x,mass,cross,beta0,beta1,beta2,beta3){ return(c(1,beta3)[cross+1]/(1+exp(beta0 + (beta1*x)/(mass**beta2)))) } makecross <- function(regions){ return(outer(regions, regions, get("!="))) } makecross.group <- function(regions, group=c(5, 8, 13)){ v <- region...
/background-materials/EbolaDataAndCode/DataAndCode/newsims/location/ebola-GravNet-border.R
no_license
jclifton333/spatial-RL
R
false
false
5,623
r
library(Matrix) #Spatial decay function decay<-function(x,mass,cross,beta0,beta1,beta2,beta3){ return(c(1,beta3)[cross+1]/(1+exp(beta0 + (beta1*x)/(mass**beta2)))) } makecross <- function(regions){ return(outer(regions, regions, get("!="))) } makecross.group <- function(regions, group=c(5, 8, 13)){ v <- region...
library(igraph) library(foreach) library(doMC) registerDoMC(10) condition.names = read.table("/ngsprojects/iwt/ehsab/Gene_duplication/Integrated_CORNET2.0/condition_name.txt", header = T) NAME = names(table(condition.names)) NAME = NAME[c(1,2,3,6,7,8,9,10,11,12,13,14)] paralogous = read.table("~/Gene_duplication/Seed_...
/Gene_dupliation/Across_compendium/GO_enrichment.R
no_license
ehsanbiostat/PhD-thesis
R
false
false
3,411
r
library(igraph) library(foreach) library(doMC) registerDoMC(10) condition.names = read.table("/ngsprojects/iwt/ehsab/Gene_duplication/Integrated_CORNET2.0/condition_name.txt", header = T) NAME = names(table(condition.names)) NAME = NAME[c(1,2,3,6,7,8,9,10,11,12,13,14)] paralogous = read.table("~/Gene_duplication/Seed_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checkInputs.R \name{checkInputs} \alias{checkInputs} \title{Check Function Inputs} \usage{ checkInputs( ftime, ftype, trt, adjustVars, t0 = max(ftime[ftype > 0]), SL.ftime = NULL, SL.ctime = NULL, SL.trt = NULL, glm.ftime = ...
/man/checkInputs.Rd
permissive
benkeser/survtmle
R
false
true
7,141
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checkInputs.R \name{checkInputs} \alias{checkInputs} \title{Check Function Inputs} \usage{ checkInputs( ftime, ftype, trt, adjustVars, t0 = max(ftime[ftype > 0]), SL.ftime = NULL, SL.ctime = NULL, SL.trt = NULL, glm.ftime = ...
#' Create an ECharts widget #' #' Create an HTML widget for ECharts that can be rendered in the R console, R #' Markdown documents, or Shiny apps. You can add more components to this widget #' and customize options later. \code{eChart()} is an alias of \code{echart()}. #' @param data a data object (usually a data frame...
/R/echart.R
no_license
KuiMing/recharts
R
false
false
3,821
r
#' Create an ECharts widget #' #' Create an HTML widget for ECharts that can be rendered in the R console, R #' Markdown documents, or Shiny apps. You can add more components to this widget #' and customize options later. \code{eChart()} is an alias of \code{echart()}. #' @param data a data object (usually a data frame...
#' Exposure to Climate Change Hazard by 2041 to 2060 #' #' Magnitude of climate change by 2041 to 2060 in the unit of historical variability #' #' @details #' Exposure to climate change hazard was calculated as \code{\link{cimp5_2041_2060_ch}} divided by \code{\link{cimp5_1951_2000_sd}}. #' @docType data #' @keywords d...
/R/cimp5_2041_2060_exsd.R
no_license
chihlinwei/SCC26
R
false
false
1,746
r
#' Exposure to Climate Change Hazard by 2041 to 2060 #' #' Magnitude of climate change by 2041 to 2060 in the unit of historical variability #' #' @details #' Exposure to climate change hazard was calculated as \code{\link{cimp5_2041_2060_ch}} divided by \code{\link{cimp5_1951_2000_sd}}. #' @docType data #' @keywords d...
sense_leq <- structure( list(sense = "<="), class = c("LinearConstraintSenseLeq", "LinearConstraintSense") ) sense_eq <- structure( list(sense = "=="), class = c("LinearConstraintSenseEq", "LinearConstraintSense") ) sense_geq <- structure( list(sense = ">="), class = c("LinearConstraintSenseGeq", "LinearCon...
/R/linear-optimization-model-linear-constraints.R
permissive
dirkschumacher/ompr
R
false
false
1,784
r
sense_leq <- structure( list(sense = "<="), class = c("LinearConstraintSenseLeq", "LinearConstraintSense") ) sense_eq <- structure( list(sense = "=="), class = c("LinearConstraintSenseEq", "LinearConstraintSense") ) sense_geq <- structure( list(sense = ">="), class = c("LinearConstraintSenseGeq", "LinearCon...
# Load the ape package library(ape) library(geiger) # For the tips function library(plotrix) # Set the path path <- "C:/Users/Joseph Crisp/Desktop/UbuntuSharedFolder/Cumbria/" ################################### # Get the Maximum Likelihood Tree # ################################### # Read in the newick ...
/Cumbria/PlotMLTreeForCumbrianIsolates_11-09-17.R
no_license
xulijunji/GeneralTools
R
false
false
4,766
r
# Load the ape package library(ape) library(geiger) # For the tips function library(plotrix) # Set the path path <- "C:/Users/Joseph Crisp/Desktop/UbuntuSharedFolder/Cumbria/" ################################### # Get the Maximum Likelihood Tree # ################################### # Read in the newick ...
#' Export a graph to various file formats #' @description Export a graph to a variety of file #' formats such as PNG, PDF, SVG, and PostScript. #' @param graph a graph object. #' @param file_name the name of the exported file #' (including it's extension). #' @param file_type the type of file to be exported. #' Options...
/R/export_graph.R
no_license
dy-kim/DiagrammeR
R
false
false
3,381
r
#' Export a graph to various file formats #' @description Export a graph to a variety of file #' formats such as PNG, PDF, SVG, and PostScript. #' @param graph a graph object. #' @param file_name the name of the exported file #' (including it's extension). #' @param file_type the type of file to be exported. #' Options...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metricdata.R \name{MetricData} \alias{MetricData} \title{\code{MetricData}} \usage{ MetricData( value, from, to, start, end, id, subscription.length, by, cohort.type, cohort.period, mergers, trim.id ) } \arguments{ \it...
/man/MetricData.Rd
no_license
Displayr/flipRevenueMetrics
R
false
true
3,327
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metricdata.R \name{MetricData} \alias{MetricData} \title{\code{MetricData}} \usage{ MetricData( value, from, to, start, end, id, subscription.length, by, cohort.type, cohort.period, mergers, trim.id ) } \arguments{ \it...
source("seqlogo_scripts/common_funcs.R") library(ggthemes) promiscuous = c('HHHMHH', 'HHHHMH', 'HHHHHH') pwms = read.csv('../seqlogos/d0/new.seqlogo.MGW.allcycles.1.1.csv', stringsAsFactors=F) pwms = pwms[pwms$context == 'bg',] pwms = pwms[pwms$shapemer %in% promiscuous,] print(head(pwms)) all_cols = names(pwms) ma...
/src/new_promiscuous_seqlogo.R
no_license
ncbi/Co-SELECT
R
false
false
4,889
r
source("seqlogo_scripts/common_funcs.R") library(ggthemes) promiscuous = c('HHHMHH', 'HHHHMH', 'HHHHHH') pwms = read.csv('../seqlogos/d0/new.seqlogo.MGW.allcycles.1.1.csv', stringsAsFactors=F) pwms = pwms[pwms$context == 'bg',] pwms = pwms[pwms$shapemer %in% promiscuous,] print(head(pwms)) all_cols = names(pwms) ma...
library(ETAS) ### Name: resid.etas ### Title: Residuals Analysis and Diagnostics Plots ### Aliases: resid.etas ### Keywords: spatial math earthquake modeling ### ** Examples iran.cat <- catalog(iran.quakes, time.begin="1973/01/01", study.start="1986/01/01", study.end="2016/01/01", lat.range=c(26, 40), ...
/data/genthat_extracted_code/ETAS/examples/resid.etas.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
692
r
library(ETAS) ### Name: resid.etas ### Title: Residuals Analysis and Diagnostics Plots ### Aliases: resid.etas ### Keywords: spatial math earthquake modeling ### ** Examples iran.cat <- catalog(iran.quakes, time.begin="1973/01/01", study.start="1986/01/01", study.end="2016/01/01", lat.range=c(26, 40), ...
context( "Linear regression model training" ) source( "custom.R" ) test_that( "Linear regression training", { load( "data/lin.RData" ) ## Consider models of increasing complexity by subsampling ## the parameter space vv <- purrr::accumulate( list(c("l1", "l2", "z", "X"), ...
/tests/testthat/testOptLin.R
permissive
Chancen-King/gelnet
R
false
false
3,261
r
context( "Linear regression model training" ) source( "custom.R" ) test_that( "Linear regression training", { load( "data/lin.RData" ) ## Consider models of increasing complexity by subsampling ## the parameter space vv <- purrr::accumulate( list(c("l1", "l2", "z", "X"), ...
#' Refer to fEMDDetailed example #' @import lpSolveAPI #' @export fGetEMDFromDetailedEMD = function ( lprec ) { get.objective(lprec) / sum(get.variables(lprec)) }
/R/fGetEMDFromDetailedEMD.R
permissive
nhatle9529/CodaBonito
R
false
false
171
r
#' Refer to fEMDDetailed example #' @import lpSolveAPI #' @export fGetEMDFromDetailedEMD = function ( lprec ) { get.objective(lprec) / sum(get.variables(lprec)) }
#' COVID19DataProcessor #' @author kenarab #' @importFrom R6 R6Class #' @import magrittr #' @import dplyr #' @import tidyr #' @import lubridate #' @import lgr #' @export COVID19DataProcessor <- R6Class("COVID19DataProcessor", public = list( # parametersirre top.countries.count = 11, filenames = NA, ...
/R/COVID19DataProcessor.R
no_license
tweetz0r/COVID19analytics
R
false
false
13,241
r
#' COVID19DataProcessor #' @author kenarab #' @importFrom R6 R6Class #' @import magrittr #' @import dplyr #' @import tidyr #' @import lubridate #' @import lgr #' @export COVID19DataProcessor <- R6Class("COVID19DataProcessor", public = list( # parametersirre top.countries.count = 11, filenames = NA, ...
#' subroutine to get daily mean fluxes from FLUXNET, DW #' extract observed GPP/reco/NEE for every 4 days (according to modeled GPP resoulation) #' this function requires grab.fluxnet.obs() #' @param flux.xlsx.file filepath for a file called 'FLX_AA-Flx_BIF_LATEST.xlsx', #' when downloaded the da...
/r/src/extract_load_data/extract.fluxnet.hrly.r
no_license
sabrinamadsen/SMUrF-1
R
false
false
11,726
r
#' subroutine to get daily mean fluxes from FLUXNET, DW #' extract observed GPP/reco/NEE for every 4 days (according to modeled GPP resoulation) #' this function requires grab.fluxnet.obs() #' @param flux.xlsx.file filepath for a file called 'FLX_AA-Flx_BIF_LATEST.xlsx', #' when downloaded the da...
## Creates a cached matrix where the inverse is calculated only 1 time. makeCacheMatrix <- function(m) { #inverse variable, used by cache i <- NULL #function that sets the matrix value. set <- function(y) { m <<- y i <<- NULL } #gets the ma...
/cachematrix.R
no_license
marcoshmuniz/RProgramming_Peer
R
false
false
1,165
r
## Creates a cached matrix where the inverse is calculated only 1 time. makeCacheMatrix <- function(m) { #inverse variable, used by cache i <- NULL #function that sets the matrix value. set <- function(y) { m <<- y i <<- NULL } #gets the ma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fix_column_names.R \name{fix_names} \alias{fix_names} \title{fix_names} \usage{ fix_names(x, char = "_") } \arguments{ \item{x}{a vector of column names} \item{char}{substitute special char with this.} } \description{ Replace special charact...
/man/fix_names.Rd
no_license
sahilseth/params
R
false
true
381
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fix_column_names.R \name{fix_names} \alias{fix_names} \title{fix_names} \usage{ fix_names(x, char = "_") } \arguments{ \item{x}{a vector of column names} \item{char}{substitute special char with this.} } \description{ Replace special charact...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/S02.R \name{AddReference} \alias{AddReference} \title{AddReference function.} \usage{ AddReference(History, ReferenceMale = NULL, ReferenceFemale = NULL) } \arguments{ \item{History}{History as returned by the ReadHistory function.} ...
/man/AddReference.Rd
no_license
cran/ELT
R
false
false
598
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/S02.R \name{AddReference} \alias{AddReference} \title{AddReference function.} \usage{ AddReference(History, ReferenceMale = NULL, ReferenceFemale = NULL) } \arguments{ \item{History}{History as returned by the ReadHistory function.} ...