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
#' Number of Samples #' #' Gets the number of sample values (simulations * terms) #' of an MCMC object. #' #' @inheritParams params #' @return An integer scalar of the number of samples. #' @family {MCMC dimensions} #' @export nsams <- function(x, ...) UseMethod("nsams")
/R/nsams.R
permissive
krlmlr/universals
R
false
false
272
r
#' Number of Samples #' #' Gets the number of sample values (simulations * terms) #' of an MCMC object. #' #' @inheritParams params #' @return An integer scalar of the number of samples. #' @family {MCMC dimensions} #' @export nsams <- function(x, ...) UseMethod("nsams")
library(reshape) #library(dplyr) library(plyr) str(playerScrape) playerScrape2 = playerScrape playerScrape2 = playerScrape[playerScrape$PredictedPoints>3,] # lop of low scorers #playerScrape2$PredictedPoints = as.double(playerScrape2$PredictedPoints) dataCheck = ddply(playerScrape2, .(Name, Position), summarize, mean...
/checkData.R
no_license
bwebs/fantasyNFL
R
false
false
969
r
library(reshape) #library(dplyr) library(plyr) str(playerScrape) playerScrape2 = playerScrape playerScrape2 = playerScrape[playerScrape$PredictedPoints>3,] # lop of low scorers #playerScrape2$PredictedPoints = as.double(playerScrape2$PredictedPoints) dataCheck = ddply(playerScrape2, .(Name, Position), summarize, mean...
#' Produce a decoy database #' #' @param sequence protein sequence #' @param Npermu Number of permutations #' @param df_full target database #' @examples #' @return Decoy database #' @export decoy<-function(sequence,Npermu=1,df_full){ peptideVector <- strsplit(sequence, split = "")[[1]] Npermu=Npermu ...
/R/decoy.R
no_license
ManuelPerisDiaz/MetaOdysseus
R
false
false
1,539
r
#' Produce a decoy database #' #' @param sequence protein sequence #' @param Npermu Number of permutations #' @param df_full target database #' @examples #' @return Decoy database #' @export decoy<-function(sequence,Npermu=1,df_full){ peptideVector <- strsplit(sequence, split = "")[[1]] Npermu=Npermu ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dash.R \name{dash} \alias{dash} \title{Dirichlet adaptive shrinkage of compositional data using dash} \usage{ dash(comp_data, concentration = NULL, mode = NULL, optmethod = c("mixEM", "w_mixEM", "mixIP"), sample_weights = NULL, verbose = FA...
/man/dash.Rd
no_license
kkdey/dash
R
false
true
5,033
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dash.R \name{dash} \alias{dash} \title{Dirichlet adaptive shrinkage of compositional data using dash} \usage{ dash(comp_data, concentration = NULL, mode = NULL, optmethod = c("mixEM", "w_mixEM", "mixIP"), sample_weights = NULL, verbose = FA...
## Read data data <- read.table("household_power_consumption.txt", sep=";", header = TRUE, na.strings = "?") ## Subset data data$Date <- as.Date(data$Date, format="%d/%m/%Y") data <- subset(data, subset=(Date >= "2007-02-01" & Date <= "2007-02-02")) ## Create png png(filename = "plot1.png", wid...
/plot1.R
no_license
neopanda/ExData_Plotting1
R
false
false
543
r
## Read data data <- read.table("household_power_consumption.txt", sep=";", header = TRUE, na.strings = "?") ## Subset data data$Date <- as.Date(data$Date, format="%d/%m/%Y") data <- subset(data, subset=(Date >= "2007-02-01" & Date <= "2007-02-02")) ## Create png png(filename = "plot1.png", wid...
makeCacheMatrix <- function( m = matrix() ) { ## Initialize inverse property i <- NULL ## Method to set the matrix set <- function( matrix ) { m <<- matrix i <<- NULL } ## Method the get the matrix get <- function() { m } ## set the inverse of the matrix setInverse <- function(i...
/cachematrix.R
no_license
nbmadharia/ProgrammingAssignment2
R
false
false
876
r
makeCacheMatrix <- function( m = matrix() ) { ## Initialize inverse property i <- NULL ## Method to set the matrix set <- function( matrix ) { m <<- matrix i <<- NULL } ## Method the get the matrix get <- function() { m } ## set the inverse of the matrix setInverse <- function(i...
# MATH571 final project # ANOVA test # Use ANOVA-test p-value approach to compare data for BOD5 (target variable) # from the 8 waste water treatment plants to see if the means are equal. # If the means are not equal, # we will use dummy variables to differentiate between the waste water treatment plants. # Read d...
/Yitao/ANOVA.R
no_license
Qingzz7/18S571project
R
false
false
3,678
r
# MATH571 final project # ANOVA test # Use ANOVA-test p-value approach to compare data for BOD5 (target variable) # from the 8 waste water treatment plants to see if the means are equal. # If the means are not equal, # we will use dummy variables to differentiate between the waste water treatment plants. # Read d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_roc.r \name{points.predict_roc} \alias{points.predict_roc} \title{Points from predicted ROC curve} \usage{ \method{points}{predict_roc}(x, thr = seq(-10, 10, length = 1000), ...) } \arguments{ \item{x}{A 'predict_roc' object to plot.}...
/man/points.predict_roc.Rd
no_license
cran/metaSDTreg
R
false
true
1,079
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_roc.r \name{points.predict_roc} \alias{points.predict_roc} \title{Points from predicted ROC curve} \usage{ \method{points}{predict_roc}(x, thr = seq(-10, 10, length = 1000), ...) } \arguments{ \item{x}{A 'predict_roc' object to plot.}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/enrichment_analysis.R \name{retrieveOrthologs} \alias{retrieveOrthologs} \title{retrieveOrthologs} \usage{ retrieveOrthologs() } \description{ This function is deprecated. For functional enrichment analysis, use findEnrichedFunctions. }
/man/retrieveOrthologs.Rd
no_license
BIMSBbioinfo/RCAS
R
false
true
316
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/enrichment_analysis.R \name{retrieveOrthologs} \alias{retrieveOrthologs} \title{retrieveOrthologs} \usage{ retrieveOrthologs() } \description{ This function is deprecated. For functional enrichment analysis, use findEnrichedFunctions. }
rm(list = ls()) library(Daniel) library(dplyr) library(nnet) CalcCImultinom <- function(fit) { s <- summary(fit) coef <- s$coefficients ses <- s$standard.errors ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2] ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2] return(rbind(ci.1,ci.2)) } #key # A, B,C,D,E,F - betaE[2] =...
/Simulations/Scripts/R/Rare/Scenario 9a/CMPEn50KrareScen9aBD.R
no_license
yadevi/CausalMPE
R
false
false
4,220
r
rm(list = ls()) library(Daniel) library(dplyr) library(nnet) CalcCImultinom <- function(fit) { s <- summary(fit) coef <- s$coefficients ses <- s$standard.errors ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2] ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2] return(rbind(ci.1,ci.2)) } #key # A, B,C,D,E,F - betaE[2] =...
# Para ver la ruta de dónde estamos trabajando getwd() # Para bajar dos niveles del directorio de trabajo # utilizamos ../.. y para accesar a una nueva carpeta ponemos su nombre, Data setwd('/Users/aliciabrown/Documents/BEDU/A2-Estadistica-Programacion-con-R-2020-master/Data') # Vemos la ruta cambiada getwd() # Lee...
/Sesion-05/Ejemplo-04/Ejercicio04.R
no_license
abrownrb/DA_R_BEDU_2
R
false
false
1,833
r
# Para ver la ruta de dónde estamos trabajando getwd() # Para bajar dos niveles del directorio de trabajo # utilizamos ../.. y para accesar a una nueva carpeta ponemos su nombre, Data setwd('/Users/aliciabrown/Documents/BEDU/A2-Estadistica-Programacion-con-R-2020-master/Data') # Vemos la ruta cambiada getwd() # Lee...
#loading libraries: library(dplyr) library(ggplot2) library(muStat) library(magrittr) #loading data olympics <- read.csv("data/olympics.csv", sep="") mult_sport <- read.csv("data/mult_sport.csv", sep="") # Data Manipulation ## Own country hypothesis analysis: ### Giving numerical factor values to the medal...
/R/Statistical Inference/Olympics_records/coding/data_manipulation.R
no_license
CDopazo/Project_portfolio
R
false
false
2,231
r
#loading libraries: library(dplyr) library(ggplot2) library(muStat) library(magrittr) #loading data olympics <- read.csv("data/olympics.csv", sep="") mult_sport <- read.csv("data/mult_sport.csv", sep="") # Data Manipulation ## Own country hypothesis analysis: ### Giving numerical factor values to the medal...
`%+%` <- function(a, b) paste0(a, b) as.numeric.factor <- function(x) {as.numeric(levels(x))[x]} allNA = function(x) all(is.na(x)) # Adding test for latent vars test.MV <- function() { D <- DAG.empty() mvName <- c("X1", "X2", "X3") # multivar node with no t: test.node_not <- node(mvName, distr = "rconst", cons...
/simcausal/tests/RUnit/RUnit_tests_02_MV.R
no_license
ingted/R-Examples
R
false
false
2,107
r
`%+%` <- function(a, b) paste0(a, b) as.numeric.factor <- function(x) {as.numeric(levels(x))[x]} allNA = function(x) all(is.na(x)) # Adding test for latent vars test.MV <- function() { D <- DAG.empty() mvName <- c("X1", "X2", "X3") # multivar node with no t: test.node_not <- node(mvName, distr = "rconst", cons...
if(!file.exists("household_power_consumption.txt")){ download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",destfile = "household_power_consumption.zip") unzip("household_power_consumption.zip") } power_data <- read.table("household_power_consumption.txt", header = TR...
/plot2.R
no_license
avkalidindi/ExData_Plotting1
R
false
false
860
r
if(!file.exists("household_power_consumption.txt")){ download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",destfile = "household_power_consumption.zip") unzip("household_power_consumption.zip") } power_data <- read.table("household_power_consumption.txt", header = TR...
library(BGData) context("cmmMatrix") # Prepare dummy data genotypes <- matrix(c(4, 4, 4, 3, 2, 3, 1, 2, 1), nrow = 3, ncol = 3) colnames(genotypes) <- paste0('mrk_', 1:3) rownames(genotypes) <- paste0('id_', 1:3) # Prepare cmmMatrix object geno <- cmmMatrix(nrow = 3, ncol = 3) geno[] <- genotypes colnames(geno) <- p...
/tests/testthat/test-cmmmatrix.r
no_license
lian0090/BGData
R
false
false
9,887
r
library(BGData) context("cmmMatrix") # Prepare dummy data genotypes <- matrix(c(4, 4, 4, 3, 2, 3, 1, 2, 1), nrow = 3, ncol = 3) colnames(genotypes) <- paste0('mrk_', 1:3) rownames(genotypes) <- paste0('id_', 1:3) # Prepare cmmMatrix object geno <- cmmMatrix(nrow = 3, ncol = 3) geno[] <- genotypes colnames(geno) <- p...
source("http://bioconductor.org/biocLite.R") #biocLite('DESeq2') library('DESeq2') library("stringi") directory<-'/myPath/' setwd(directory) sampleFiles<-grep('_count.txt',list.files(directory), value=TRUE) sampleFiles sampleCondition<-c(rep("GFP",3), rep("M280L",2), rep("WT",2)) sampleTable<- data.frame(sampleNam...
/DESeq2_multiple_groups.R
no_license
shengyongniu/bulk_RNA_seq_count_base
R
false
false
13,278
r
source("http://bioconductor.org/biocLite.R") #biocLite('DESeq2') library('DESeq2') library("stringi") directory<-'/myPath/' setwd(directory) sampleFiles<-grep('_count.txt',list.files(directory), value=TRUE) sampleFiles sampleCondition<-c(rep("GFP",3), rep("M280L",2), rep("WT",2)) sampleTable<- data.frame(sampleNam...
numPerPatch91356 <- c(2510,2490)
/NatureEE-data-archive/Run203071/JAFSdata/JAFSnumPerPatch91356.R
no_license
flaxmans/NatureEE2017
R
false
false
33
r
numPerPatch91356 <- c(2510,2490)
gstat_rename_authors <- function(data, authorMap) { authorMapFrame <- data_frame(Author = names(authorMap), to = authorMap) data2 <- left_join(data, authorMapFrame) data2 <- data2 %>% mutate(Author = ifelse(is.na(to), Author, to)) %>% select(-to) }
/R/gstat-rename-authors.R
no_license
zzawadz/gitStats
R
false
false
256
r
gstat_rename_authors <- function(data, authorMap) { authorMapFrame <- data_frame(Author = names(authorMap), to = authorMap) data2 <- left_join(data, authorMapFrame) data2 <- data2 %>% mutate(Author = ifelse(is.na(to), Author, to)) %>% select(-to) }
# ******************************************************************************* # OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
/docker/R/lib/spea.R
permissive
anyaelena/OpenStudio-server
R
false
false
6,967
r
# ******************************************************************************* # OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
library(forecast) library(ggplot2) library(seasonal) library(seasonalview) library(urca) dados <- read.csv(file.choose(), header = F) ocupacao <- ts(dados, start = c(2003,1), end = c(2017,12), frequency = 12) summary(ocupacao) autoplot(ocupacao) hist(ocupacao) boxplot(ocupacao) dec <- decompose(ocupacao) autoplot...
/curso_udemy/caso_pratico.R
no_license
Rafaelcvo/series_temporais
R
false
false
1,644
r
library(forecast) library(ggplot2) library(seasonal) library(seasonalview) library(urca) dados <- read.csv(file.choose(), header = F) ocupacao <- ts(dados, start = c(2003,1), end = c(2017,12), frequency = 12) summary(ocupacao) autoplot(ocupacao) hist(ocupacao) boxplot(ocupacao) dec <- decompose(ocupacao) autoplot...
# Load packages require(tidyverse) require(magrittr) require(lubridate) require(doParallel) require(tools) options(dplyr.summarise.inform = FALSE) # Load preprocessed data mimic_preproc <- read_rds("data/mimic_preprocessed.RDS") # Create outcome measures: Any subsequent nonelective readmission within 30 days---------...
/scripts/readmission/MIMIC/3_define_outcomes.R
no_license
btcooper22/MIMIC_ICU
R
false
false
2,654
r
# Load packages require(tidyverse) require(magrittr) require(lubridate) require(doParallel) require(tools) options(dplyr.summarise.inform = FALSE) # Load preprocessed data mimic_preproc <- read_rds("data/mimic_preprocessed.RDS") # Create outcome measures: Any subsequent nonelective readmission within 30 days---------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getPrecipitation.R \name{getPrecipitation} \alias{getPrecipitation} \title{Assemble a precipitation times series} \usage{ getPrecipitation(start, end, geometry, att, val = NA) } \arguments{ \item{start}{start date in format 'YYYY-MM-...
/man/getPrecipitation.Rd
no_license
cran/CityWaterBalance
R
false
true
917
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getPrecipitation.R \name{getPrecipitation} \alias{getPrecipitation} \title{Assemble a precipitation times series} \usage{ getPrecipitation(start, end, geometry, att, val = NA) } \arguments{ \item{start}{start date in format 'YYYY-MM-...
#' @rdname mlb_high_low_stats #' @title **Acquire high/low stats for Major and Minor Leagues** #' #' @param org_type The organization type for return information (*Required*). Valid values include: #' - player #' - team #' - division #' - league #' - sport #' @param season The season for which you want to return inform...
/R/mlb_high_low_stats.R
permissive
darh78/baseballr
R
false
false
11,640
r
#' @rdname mlb_high_low_stats #' @title **Acquire high/low stats for Major and Minor Leagues** #' #' @param org_type The organization type for return information (*Required*). Valid values include: #' - player #' - team #' - division #' - league #' - sport #' @param season The season for which you want to return inform...
## Linking to GitHub ## # in the terminal, change directories to the one of concern " ~/Documents/R? " followed by folder name # pwd to check current directory # git init to initialize Git in the directory # " git add . " and " git commit -m "Initial Commit" "to activate Git repository # once this is done, create a G...
/Github_Tips.R
no_license
tbrady16/Practice_Project
R
false
false
546
r
## Linking to GitHub ## # in the terminal, change directories to the one of concern " ~/Documents/R? " followed by folder name # pwd to check current directory # git init to initialize Git in the directory # " git add . " and " git commit -m "Initial Commit" "to activate Git repository # once this is done, create a G...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{isDefined} \alias{isDefined} \title{Check if an element is defined} \usage{ isDefined(variableName, variable = NA, pos = as.integer(1)) } \arguments{ \item{variableName}{The name of the variable that contains selected values} ...
/man/isDefined.Rd
no_license
dmullen17/metadig-r
R
false
true
899
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{isDefined} \alias{isDefined} \title{Check if an element is defined} \usage{ isDefined(variableName, variable = NA, pos = as.integer(1)) } \arguments{ \item{variableName}{The name of the variable that contains selected values} ...
library(rstan) library(bayesplot) library(ggplot2) library(rstanarm) library(tidyverse) library(reshape2) library(gridExtra) data = readRDS("lung_sbs_matrix.rds") counts = as.matrix(data[,1:10]) jonathanmodel = " data { int<lower=1> I; int<lower=1> J; int<lower=1> K; int<lower=0> X[I, J]; real<low...
/StanModels/JonGammaModel.R
no_license
tmh741/MutationRepo
R
false
false
3,893
r
library(rstan) library(bayesplot) library(ggplot2) library(rstanarm) library(tidyverse) library(reshape2) library(gridExtra) data = readRDS("lung_sbs_matrix.rds") counts = as.matrix(data[,1:10]) jonathanmodel = " data { int<lower=1> I; int<lower=1> J; int<lower=1> K; int<lower=0> X[I, J]; real<low...
Sweep Down Linear a SDLa <- "AvgDayVolume(ALL_VENUES, 90, NO) > 250000 AND AvgDailyRange(ALL_VENUES, 20, NO) < 5 AND ClosePrice(PRIMARY, P1, NO) < 200 AND Last(ALL_VENUES, CURRENT, NO) < 200 AND MinuteHigh_I(ALL_VENUES, 1, CURRENT, NO, False) - MinuteLow_I(ALL_VENUES, 1, CURRENT, NO, False) > AvgDailyRange(ALL_VENUE...
/SDLa vs SDL.R
no_license
LL8054/PrimusScripts
R
false
false
2,911
r
Sweep Down Linear a SDLa <- "AvgDayVolume(ALL_VENUES, 90, NO) > 250000 AND AvgDailyRange(ALL_VENUES, 20, NO) < 5 AND ClosePrice(PRIMARY, P1, NO) < 200 AND Last(ALL_VENUES, CURRENT, NO) < 200 AND MinuteHigh_I(ALL_VENUES, 1, CURRENT, NO, False) - MinuteLow_I(ALL_VENUES, 1, CURRENT, NO, False) > AvgDailyRange(ALL_VENUE...
########################## # This code creates descriptives and visualizations based on merged WHD/TRLA data # Author: Cam Guage # Written: 8/26/2021 ########################## # Packages, Imports, and Working Directory ########################## library(ggplot2) library(dplyr) library(lubridate) library(reshape2) lib...
/code/archive/03_descriptives_and_visualizations.R
permissive
rebeccajohnson88/qss20_s21_proj
R
false
false
4,926
r
########################## # This code creates descriptives and visualizations based on merged WHD/TRLA data # Author: Cam Guage # Written: 8/26/2021 ########################## # Packages, Imports, and Working Directory ########################## library(ggplot2) library(dplyr) library(lubridate) library(reshape2) lib...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{Spanishdicts} \alias{Spanishdicts} \title{Full spanish dictionaries} \format{ A data frame: \describe{ \item{Palabra}{Spanish word, not stemmed but some preprocessing (e.g., no symbols, spaces, accents)} \item{...
/man/Spanishdicts.Rd
no_license
spreising/Copy-SADCAT
R
false
true
2,127
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{Spanishdicts} \alias{Spanishdicts} \title{Full spanish dictionaries} \format{ A data frame: \describe{ \item{Palabra}{Spanish word, not stemmed but some preprocessing (e.g., no symbols, spaces, accents)} \item{...
context("as.data.frame.GRanges") test_that("test util function .as.data.frame.GRanges", { gr <- GRanges("chr1", IRanges(1:4, 5:8)) gr$tooltip <- as.data.frame(gr) df <- .as.data.frame.GRanges(gr) expect_identical(class(df), "data.frame") expect_identical(colnames(df), c("seqnames", "start", "e...
/tests/testthat/test-as.data.frame.GRanges.R
no_license
Marlin-Na/TnT
R
false
false
518
r
context("as.data.frame.GRanges") test_that("test util function .as.data.frame.GRanges", { gr <- GRanges("chr1", IRanges(1:4, 5:8)) gr$tooltip <- as.data.frame(gr) df <- .as.data.frame.GRanges(gr) expect_identical(class(df), "data.frame") expect_identical(colnames(df), c("seqnames", "start", "e...
library(dplyr) library(randomForest) library(rpart) library(ggplot2) train <- read.csv("../input/train.csv") test <- read.csv("../input/test.csv") set.seed(111) train$Pclass <- as.numeric(as.character(train$Pclass)) test$Pclass <- as.numeric(as.character(test$Pclass)) all_data <- bind_rows(train, test) all_data <- as.d...
/src/r/kernels/aer503-titanic-exploring-survival-and-random-forest-test/script/titanic-exploring-survival-and-random-forest-test.R
no_license
PRL-PRG/trustworthy-titanic
R
false
false
3,271
r
library(dplyr) library(randomForest) library(rpart) library(ggplot2) train <- read.csv("../input/train.csv") test <- read.csv("../input/test.csv") set.seed(111) train$Pclass <- as.numeric(as.character(train$Pclass)) test$Pclass <- as.numeric(as.character(test$Pclass)) all_data <- bind_rows(train, test) all_data <- as.d...
\name{setEdgeAttributes} \alias{setEdgeAttributes} \alias{setEdgeAttributes,CytoscapeWindowClass-method} \title{setEdgeAttributes} \description{ Transfer the named edge attribute from the R graph (found in obj@graph) to Cytoscape.This method is typically called by displayGraph, which will suffice for most users' needs....
/man/setEdgeAttributes.Rd
no_license
sebastianrossel/Bioconductor_RCy3_the_new_RCytoscape
R
false
false
1,168
rd
\name{setEdgeAttributes} \alias{setEdgeAttributes} \alias{setEdgeAttributes,CytoscapeWindowClass-method} \title{setEdgeAttributes} \description{ Transfer the named edge attribute from the R graph (found in obj@graph) to Cytoscape.This method is typically called by displayGraph, which will suffice for most users' needs....
porStream <- function(file) .Call("NewPorStream",file) closePorStream <- function(pstream) .Call("closePorStream",pstream) readOnePushbackPorStream <- function(pstream) .Call("readOnePushbackPorStream",pstream) readOnePorStream <- function(pstream) .Call("readOnePorStream",pstream) seekPorStream <- function(pstream,pos...
/pkg/R/import-internal-spss-portable.R
no_license
melff/memisc
R
false
false
9,581
r
porStream <- function(file) .Call("NewPorStream",file) closePorStream <- function(pstream) .Call("closePorStream",pstream) readOnePushbackPorStream <- function(pstream) .Call("readOnePushbackPorStream",pstream) readOnePorStream <- function(pstream) .Call("readOnePorStream",pstream) seekPorStream <- function(pstream,pos...
# Author: Robert J. Hijmans # Date : October 2017 # Version 1.0 # License GPL v3 point_on_border <- function(r, x, y, tolerance = sqrt(.Machine$double.eps)) { v <- h <- (x >= xmin(r)) & (x <= xmax(r)) & (y >= ymin(r)) & (y <= ymax(r)) v[v] <- ((x[v] - xmin(r)) %% res(r)[1]) < tolerance h[h] <- ((y...
/R/xyRowColCell.R
no_license
cran/terra
R
false
false
5,886
r
# Author: Robert J. Hijmans # Date : October 2017 # Version 1.0 # License GPL v3 point_on_border <- function(r, x, y, tolerance = sqrt(.Machine$double.eps)) { v <- h <- (x >= xmin(r)) & (x <= xmax(r)) & (y >= ymin(r)) & (y <= ymax(r)) v[v] <- ((x[v] - xmin(r)) %% res(r)[1]) < tolerance h[h] <- ((y...
### # ### # Library Imports --------------------------------------------------------- rm(list = ls(all = TRUE)) options(stringsAsFactors = FALSE) source("common.R") # Configuration ----------------------------------------------------------- date <- as.character(Sys.Date()) scaleFactor = 10000 args = command...
/scripts/os.data.for.mnp.R
no_license
canaantt/TCGAarchive
R
false
false
3,936
r
### # ### # Library Imports --------------------------------------------------------- rm(list = ls(all = TRUE)) options(stringsAsFactors = FALSE) source("common.R") # Configuration ----------------------------------------------------------- date <- as.character(Sys.Date()) scaleFactor = 10000 args = command...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zchunk_batch_transportation_agg_xml.R \name{module_energy_batch_transportation_agg_xml} \alias{module_energy_batch_transportation_agg_xml} \title{module_energy_batch_transportation_agg_xml} \usage{ module_energy_batch_transportation_agg_xml(c...
/input/gcamdata/man/module_energy_batch_transportation_agg_xml.Rd
permissive
thuliuyang/gcam-core
R
false
true
826
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zchunk_batch_transportation_agg_xml.R \name{module_energy_batch_transportation_agg_xml} \alias{module_energy_batch_transportation_agg_xml} \title{module_energy_batch_transportation_agg_xml} \usage{ module_energy_batch_transportation_agg_xml(c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigatewayv2_operations.R \name{apigatewayv2_get_api_mapping} \alias{apigatewayv2_get_api_mapping} \title{The API mapping} \usage{ apigatewayv2_get_api_mapping(ApiMappingId, DomainName) } \arguments{ \item{ApiMappingId}{[required] The API map...
/paws/man/apigatewayv2_get_api_mapping.Rd
permissive
peoplecure/paws
R
false
true
559
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigatewayv2_operations.R \name{apigatewayv2_get_api_mapping} \alias{apigatewayv2_get_api_mapping} \title{The API mapping} \usage{ apigatewayv2_get_api_mapping(ApiMappingId, DomainName) } \arguments{ \item{ApiMappingId}{[required] The API map...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bold_seqspec.R \name{bold_seqspec} \alias{bold_seqspec} \title{Get BOLD specimen + sequence data.} \usage{ bold_seqspec( taxon = NULL, ids = NULL, bin = NULL, container = NULL, institutions = NULL, researchers = NULL, geo = NULL...
/man/bold_seqspec.Rd
permissive
psilva310/bold
R
false
true
4,658
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bold_seqspec.R \name{bold_seqspec} \alias{bold_seqspec} \title{Get BOLD specimen + sequence data.} \usage{ bold_seqspec( taxon = NULL, ids = NULL, bin = NULL, container = NULL, institutions = NULL, researchers = NULL, geo = NULL...
library("dplyr", lib.loc="~/R/win-library/3.6") library("data.table", lib.loc="~/R/win-library/3.6") library("ggplot2", lib.loc="~/R/win-library/3.6") library("igraph", lib.loc="~/R/win-library/3.6") links <- read.csv("C:/Users/Lenovo/Desktop/EDGES1.csv", header=T, as.is=T) nodes <- read.csv("C:/Users/Lenovo/Deskt...
/script.R
no_license
LianaIs/Network-visualization
R
false
false
739
r
library("dplyr", lib.loc="~/R/win-library/3.6") library("data.table", lib.loc="~/R/win-library/3.6") library("ggplot2", lib.loc="~/R/win-library/3.6") library("igraph", lib.loc="~/R/win-library/3.6") links <- read.csv("C:/Users/Lenovo/Desktop/EDGES1.csv", header=T, as.is=T) nodes <- read.csv("C:/Users/Lenovo/Deskt...
# # 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( tit...
/Data Sicence Product/PlotRamdonNumbers/ui.R
no_license
Yanyul/datasciencecoursera
R
false
false
1,014
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( tit...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 5.16216132835382e+146, 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(CNull:::communities_individual_...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615769904-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
362
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 5.16216132835382e+146, 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(CNull:::communities_individual_...
\alias{GtkCTree} \alias{GtkCTreeRow} \alias{GtkCTreeNode} \alias{gtkCTree} \alias{GtkCTreeFunc} \alias{GtkCTreeGNodeFunc} \alias{GtkCTreeCompareDragFunc} \alias{GtkCTreePos} \alias{GtkCTreeLineStyle} \alias{GtkCTreeExpanderStyle} \alias{GtkCTreeExpansionType} \name{GtkCTree} \title{GtkCTree} \description{A widget displ...
/RGtk2/man/GtkCTree.Rd
no_license
hjy1210/RGtk2
R
false
false
15,360
rd
\alias{GtkCTree} \alias{GtkCTreeRow} \alias{GtkCTreeNode} \alias{gtkCTree} \alias{GtkCTreeFunc} \alias{GtkCTreeGNodeFunc} \alias{GtkCTreeCompareDragFunc} \alias{GtkCTreePos} \alias{GtkCTreeLineStyle} \alias{GtkCTreeExpanderStyle} \alias{GtkCTreeExpansionType} \name{GtkCTree} \title{GtkCTree} \description{A widget displ...
#' hystReet #' #' An R API wrapper for the hystreet project. #' Download and analyse environmental data provided by https://hystreet.com/ #' #' \tabular{ll}{Package: \tab hystReet\cr Type: \tab Package\cr Version: #' \tab 0.0.1 \cr Date: \tab 2019-XX-XX \cr License: \tab GPL-3 \cr } #' #' @name hystReet-package #' #' ...
/R/hystReet-package.R
no_license
Uepsilon/hystReet
R
false
false
400
r
#' hystReet #' #' An R API wrapper for the hystreet project. #' Download and analyse environmental data provided by https://hystreet.com/ #' #' \tabular{ll}{Package: \tab hystReet\cr Type: \tab Package\cr Version: #' \tab 0.0.1 \cr Date: \tab 2019-XX-XX \cr License: \tab GPL-3 \cr } #' #' @name hystReet-package #' #' ...
library(raster) library(rgdal) library(ranger) library(stringr) ###Run 1st to Run 2nd makerasterFromTreePredictionChunks <- function(ProcessingDir = NULL, templateR = NULL, att = NULL, model = NULL , islog=F){ rasterDir <- paste0(ProcessingDir, '/Maps/', att, '/Chunks') outRaster <- paste0(ProcessingDir, '/Ma...
/Production/DSM/AustralianSoilClassification/MakeMap.R
permissive
AusSoilsDSM/SLGA
R
false
false
3,800
r
library(raster) library(rgdal) library(ranger) library(stringr) ###Run 1st to Run 2nd makerasterFromTreePredictionChunks <- function(ProcessingDir = NULL, templateR = NULL, att = NULL, model = NULL , islog=F){ rasterDir <- paste0(ProcessingDir, '/Maps/', att, '/Chunks') outRaster <- paste0(ProcessingDir, '/Ma...
normalization_factors <- function(block_mat, type=c("MFA", "RV", "RV-MFA", "None", "Frob", "Dual-RV")) { type <- match.arg(type) assert_that(inherits(block_mat, "block_matrix")) message("normalization type:", type) alpha <- if (type == "MFA") { unlist(lapply(as.list(block_mat), function(X) 1/(svd_wrapper...
/R/mfa.R
no_license
bbuchsbaum/neuroca
R
false
false
9,584
r
normalization_factors <- function(block_mat, type=c("MFA", "RV", "RV-MFA", "None", "Frob", "Dual-RV")) { type <- match.arg(type) assert_that(inherits(block_mat, "block_matrix")) message("normalization type:", type) alpha <- if (type == "MFA") { unlist(lapply(as.list(block_mat), function(X) 1/(svd_wrapper...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BarometricFormula.R \name{BarometricFormula} \alias{BarometricFormula} \title{Barometric height formula} \usage{ BarometricFormula(T, h, p0 = 1013) } \arguments{ \item{T}{surface temperature in degrees Celsius} \item{h}{surface elevation in ...
/man/BarometricFormula.Rd
permissive
EarthSystemDiagnostics/ecustools
R
false
true
732
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BarometricFormula.R \name{BarometricFormula} \alias{BarometricFormula} \title{Barometric height formula} \usage{ BarometricFormula(T, h, p0 = 1013) } \arguments{ \item{T}{surface temperature in degrees Celsius} \item{h}{surface elevation in ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{simulated outbreak dataset} \alias{fakeOutbreak} \alias{simulated outbreak dataset} \title{Toy outbreak dataset used to illustrate outbreaker} \description{ This toy outbreak dataset was simulated using \co...
/man/simulated-outbreak-dataset.Rd
no_license
sbfnk/outbreaker
R
false
false
2,712
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{simulated outbreak dataset} \alias{fakeOutbreak} \alias{simulated outbreak dataset} \title{Toy outbreak dataset used to illustrate outbreaker} \description{ This toy outbreak dataset was simulated using \co...
##Chicago Dataset Exploration #Load the dplyr package and the Chicago pollution data install.packages("dplyr") library(dplyr) chicago <- readRDS("C:/Users/zadai/Downloads/chicago_data (1)/chicago.rds") #Look at the basic characteristics of the data dim(chicago) str(chicago) #Create a subset of the dat...
/Chicago Pollution and dplyr package R Script.R
no_license
zadair005/Exploratory-Data-Analysis-
R
false
false
6,691
r
##Chicago Dataset Exploration #Load the dplyr package and the Chicago pollution data install.packages("dplyr") library(dplyr) chicago <- readRDS("C:/Users/zadai/Downloads/chicago_data (1)/chicago.rds") #Look at the basic characteristics of the data dim(chicago) str(chicago) #Create a subset of the dat...
## Make some visuals to show simulation process source("~/work/neighborhoods/neighborhood-models.R") source("~/work/functions/functions.R") source("~/work/simulation/functions-simulation.R") ## data bc <- read.csv("~/work/data/data/long-bc-derived.csv") bc$sdpclass <-as.numeric(bc$sdpclass) ## Create a randomly simul...
/visuals/create-visuals.R
no_license
nverno/simulation
R
false
false
2,845
r
## Make some visuals to show simulation process source("~/work/neighborhoods/neighborhood-models.R") source("~/work/functions/functions.R") source("~/work/simulation/functions-simulation.R") ## data bc <- read.csv("~/work/data/data/long-bc-derived.csv") bc$sdpclass <-as.numeric(bc$sdpclass) ## Create a randomly simul...
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
/dev/02_dev.R
permissive
Paolin83/covid19ita
R
false
false
2,381
r
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
shinyServer(function(input, output) { output$recordstable1 <- renderTable({ records.func(dat = dat, weekly = T, season = input$records_seasonw, statcat = input$records_statw, playoffs = ifelse(input$records_playoffsw == 'Playoffs', T, F...
/server.R
no_license
mattyanselmo/RenegadesHistoryApp
R
false
false
3,349
r
shinyServer(function(input, output) { output$recordstable1 <- renderTable({ records.func(dat = dat, weekly = T, season = input$records_seasonw, statcat = input$records_statw, playoffs = ifelse(input$records_playoffsw == 'Playoffs', T, F...
#!/usr/bin/env Rscript # Analysis: # 1. Lloyd et al. (2015) Plant Cell features over- and under-representation analysis of genes grouped by both among-read agreement and mean methylation proportion # 2. Lloyd et al. (2015) Plant Cell features over- and under-representation analysis of genes grouped by both mean within...
/t2t-col.20210610/deepsignal_DNAmeth/per_read_analysis/among_read_variation/feature_among_read_variation_scoring_func_genes_hypergeom_Lloyd_2015_PlantCell_alphaWGD.R
no_license
ajtock/nanopore
R
false
false
16,578
r
#!/usr/bin/env Rscript # Analysis: # 1. Lloyd et al. (2015) Plant Cell features over- and under-representation analysis of genes grouped by both among-read agreement and mean methylation proportion # 2. Lloyd et al. (2015) Plant Cell features over- and under-representation analysis of genes grouped by both mean within...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_complete_std_pb.mvn.R \name{mvn_std_pb.mvn_bcci_simulation} \alias{mvn_std_pb.mvn_bcci_simulation} \title{Parametric Bootstrap Bias-Corrected Confidence Intervals for Indirect Effect in a Simple Mediation Model for Data Generated from a M...
/man/mvn_std_pb.mvn_bcci_simulation.Rd
permissive
jeksterslabds/jeksterslabRmedsimple
R
false
true
10,263
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_complete_std_pb.mvn.R \name{mvn_std_pb.mvn_bcci_simulation} \alias{mvn_std_pb.mvn_bcci_simulation} \title{Parametric Bootstrap Bias-Corrected Confidence Intervals for Indirect Effect in a Simple Mediation Model for Data Generated from a M...
# Loading R packages that are needed for some calculations below install.packages("ResourceSelection") install.packages("pROC") # Loading credit card default data set credit_default <- read.csv(file='credit_card_default.csv', header=TRUE, sep=",") # Converting appropriate variables to factors credit_default <- wit...
/Module 5 Problem Set/Module Five Problem Set (DONE).r
no_license
Lunarestia/MAT303-Applied-Statistics-for-STEM-II
R
false
false
7,940
r
# Loading R packages that are needed for some calculations below install.packages("ResourceSelection") install.packages("pROC") # Loading credit card default data set credit_default <- read.csv(file='credit_card_default.csv', header=TRUE, sep=",") # Converting appropriate variables to factors credit_default <- wit...
#' Print a summary of the fitted model. #' @return The posterior mean and 95 percent credible intervals, n_eff, Rhat and WAIC. #' @param x An nmadasfit object from \link{fit}. #' @param digits An optional positive value to control the number of digits to print when printing numeric values. The default is 3. #' @param ...
/R/print.R
no_license
VNyaga/NMADAS
R
false
false
2,952
r
#' Print a summary of the fitted model. #' @return The posterior mean and 95 percent credible intervals, n_eff, Rhat and WAIC. #' @param x An nmadasfit object from \link{fit}. #' @param digits An optional positive value to control the number of digits to print when printing numeric values. The default is 3. #' @param ...
setwd('/Users/jzeolla/Documents/MOOC/R\ Programming/week4/') rankhospital <- function(state, outcome, num = "best") { possibleOutcomes <- c("heart attack","heart failure","pneumonia") ## Read outcome data thedata <- read.csv("outcome-of-care-measures.csv", stringsAsFactors = FALSE) ## Check that state an...
/Coursera/RProgramming/week4/rankhospital.R
no_license
JonZeolla/MOOCs
R
false
false
3,375
r
setwd('/Users/jzeolla/Documents/MOOC/R\ Programming/week4/') rankhospital <- function(state, outcome, num = "best") { possibleOutcomes <- c("heart attack","heart failure","pneumonia") ## Read outcome data thedata <- read.csv("outcome-of-care-measures.csv", stringsAsFactors = FALSE) ## Check that state an...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_hurricane.R \name{geom_hurricane} \alias{geom_hurricane} \title{Wind radii charts} \usage{ geom_hurricane(mapping = NULL, data = NULL, stat = "identity", position = "identity", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, sca...
/man/geom_hurricane.Rd
no_license
thunder001/GeomHurr
R
false
true
3,087
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_hurricane.R \name{geom_hurricane} \alias{geom_hurricane} \title{Wind radii charts} \usage{ geom_hurricane(mapping = NULL, data = NULL, stat = "identity", position = "identity", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, sca...
library(shiny) library(plotly) library(dplyr) source("./scripts/spd_data.R") source("./scripts/api_keys.R") source("./scripts/zillow_data.R") source("./scripts/neighborhoods.R") source("./scripts/index.R") my.ui <- navbarPage(theme = "styles.css", # Application title "Seattle Housing and Crime", # Home T...
/ui.R
no_license
TCTaba/Final-Project-AB3
R
false
false
13,418
r
library(shiny) library(plotly) library(dplyr) source("./scripts/spd_data.R") source("./scripts/api_keys.R") source("./scripts/zillow_data.R") source("./scripts/neighborhoods.R") source("./scripts/index.R") my.ui <- navbarPage(theme = "styles.css", # Application title "Seattle Housing and Crime", # Home T...
## error bar ploting using ggplot2. ## data: a data frame. ## xvars: xlab variation vector ## yvars: ylab variation vector ## se: standard deviation vector, can be generated from summarySE function ## group: a vector containing names of colums that contain grouping variables ## pd: ajust posistion by...
/gerrorbar.R
no_license
PingPi357/Rrumen
R
false
false
3,082
r
## error bar ploting using ggplot2. ## data: a data frame. ## xvars: xlab variation vector ## yvars: ylab variation vector ## se: standard deviation vector, can be generated from summarySE function ## group: a vector containing names of colums that contain grouping variables ## pd: ajust posistion by...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/html_file_list.R \name{html_file_list} \alias{html_file_list} \title{HTML file list Get a HTML file table from luftdaten and turn it into a tibble} \usage{ html_file_list(url) } \arguments{ \item{url}{A luftdaten site url.} } \value{ A tibbl...
/man/html_file_list.Rd
permissive
bobturneruk/airdata
R
false
true
530
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/html_file_list.R \name{html_file_list} \alias{html_file_list} \title{HTML file list Get a HTML file table from luftdaten and turn it into a tibble} \usage{ html_file_list(url) } \arguments{ \item{url}{A luftdaten site url.} } \value{ A tibbl...
#Nicole E Soltis #06/14/18 #-------------------------------------------------------------------- rm(list=ls()) #on linux desktop setwd("~/Documents/GitRepos/BcAt_RNAGWAS/data/") #fake df with 1 snp 100x #Does GEMMA do a pairwise search to find SNPs that are 100% identical in their variation and then chose one to use i...
/scripts/GEMMA_lesions/D08_fake100xSNPs_troubleshoot.R
no_license
nicolise/BcAt_RNAGWAS
R
false
false
5,433
r
#Nicole E Soltis #06/14/18 #-------------------------------------------------------------------- rm(list=ls()) #on linux desktop setwd("~/Documents/GitRepos/BcAt_RNAGWAS/data/") #fake df with 1 snp 100x #Does GEMMA do a pairwise search to find SNPs that are 100% identical in their variation and then chose one to use i...
\name{cFligPoli} \alias{cFligPoli} \title{ Computes a critical value for the Fligner-Policello U distribution. } \description{ This function computes the critical value for the Fligner-Policello U distriburion at (or typically in the "Exact" and "Monte Carlo" cases, close to) the given alpha level. } \usage{ ...
/man/cFligPoli.Rd
no_license
cran/NSM3
R
false
false
1,530
rd
\name{cFligPoli} \alias{cFligPoli} \title{ Computes a critical value for the Fligner-Policello U distribution. } \description{ This function computes the critical value for the Fligner-Policello U distriburion at (or typically in the "Exact" and "Monte Carlo" cases, close to) the given alpha level. } \usage{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/document_data.R \docType{data} \name{Albacore_TwoFleet} \alias{Albacore_TwoFleet} \title{A two-fleet Albacore operating model} \format{An object of class \linkS4class{MOM}.} \usage{ Albacore_TwoFleet } \description{ A generic operating model ...
/man/Albacore_TwoFleet.Rd
no_license
seananderson/MSEtool
R
false
true
1,010
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/document_data.R \docType{data} \name{Albacore_TwoFleet} \alias{Albacore_TwoFleet} \title{A two-fleet Albacore operating model} \format{An object of class \linkS4class{MOM}.} \usage{ Albacore_TwoFleet } \description{ A generic operating model ...
## The following functions permit to: ## - create a special "matrix" that can cache its inverse ## - compute the inverse of it ## The following makeCacheMatrix function creates a container ## to chache a matrix and its inverse ## Input parameter: x a matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL s...
/cachematrix.R
no_license
dogentendai/ProgrammingAssignment2
R
false
false
936
r
## The following functions permit to: ## - create a special "matrix" that can cache its inverse ## - compute the inverse of it ## The following makeCacheMatrix function creates a container ## to chache a matrix and its inverse ## Input parameter: x a matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL s...
\name{wald.test} \alias{wald.test} \title{Wald test for generalized linear models } \description{Computes the Wald score test for the coefficients of a generalized linear model. } \usage{ wald.test(model = model, terms) } \arguments{ \item{model}{an object that stores the results of \code{glm} fit of the model und...
/man/wald.test.Rd
no_license
cran/mdscore
R
false
false
1,190
rd
\name{wald.test} \alias{wald.test} \title{Wald test for generalized linear models } \description{Computes the Wald score test for the coefficients of a generalized linear model. } \usage{ wald.test(model = model, terms) } \arguments{ \item{model}{an object that stores the results of \code{glm} fit of the model und...
\name{pivotal.rr} \alias{pivotal.rr} \title{Pivotal 'Monte Carlo' re-sampling of least squares linear regression models} \description{ This function implements a fast pivotal engine enabling a wide assortment of options for linear regression models for the Abernethy Reliability Methods project. Pivotal analysis is u...
/man/pivotal.rr.Rd
no_license
benearnthof/weibullR
R
false
false
4,763
rd
\name{pivotal.rr} \alias{pivotal.rr} \title{Pivotal 'Monte Carlo' re-sampling of least squares linear regression models} \description{ This function implements a fast pivotal engine enabling a wide assortment of options for linear regression models for the Abernethy Reliability Methods project. Pivotal analysis is u...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_functions.R \name{plot_hsmm_marg_dist} \alias{plot_hsmm_marg_dist} \title{Visualizes the marginal emission distribution of a \code{hsmm} model.} \usage{ plot_hsmm_marg_dist(model, show_missing_probs = TRUE, verbose = FALSE) } \argume...
/man/plot_hsmm_marg_dist.Rd
no_license
lasy/HiddenSemiMarkov
R
false
true
921
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_functions.R \name{plot_hsmm_marg_dist} \alias{plot_hsmm_marg_dist} \title{Visualizes the marginal emission distribution of a \code{hsmm} model.} \usage{ plot_hsmm_marg_dist(model, show_missing_probs = TRUE, verbose = FALSE) } \argume...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Location_Scale.R \name{MlocTUK} \alias{MlocTUK} \title{Tukey's M-estimate of location} \usage{ MlocTUK(y, c = 4.685, max_iters = 1000, tol_err = 1e-05) } \arguments{ \item{y}{: real valued data vector of size N x 1} \item{c}{: tuning constan...
/man/MlocTUK.Rd
no_license
Mufabo/Rrobustsp
R
false
true
583
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Location_Scale.R \name{MlocTUK} \alias{MlocTUK} \title{Tukey's M-estimate of location} \usage{ MlocTUK(y, c = 4.685, max_iters = 1000, tol_err = 1e-05) } \arguments{ \item{y}{: real valued data vector of size N x 1} \item{c}{: tuning constan...
start.time <- Sys.time() library(httr) library(jsonlite) library(lubridate) library(tidyverse) library(reshape2) ### Set Working Directory options(stringsAsFactors = FALSE) Header <- read_csv("Data Sources/National Grid API/Header.csv") url <- "https://api.carbonintensity.org.uk" path <- "/regional/intensity/" #ini...
/Data Sources/National Grid API/DataDownload.R
no_license
ischerr/ScottishEnergyStatsProcessing
R
false
false
4,248
r
start.time <- Sys.time() library(httr) library(jsonlite) library(lubridate) library(tidyverse) library(reshape2) ### Set Working Directory options(stringsAsFactors = FALSE) Header <- read_csv("Data Sources/National Grid API/Header.csv") url <- "https://api.carbonintensity.org.uk" path <- "/regional/intensity/" #ini...
/LogicaDifuza/app.R
no_license
Lucas1Silva/LogicaDifusa
R
false
false
5,796
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sing_day.R \name{sample_means_ns} \alias{sample_means_ns} \title{Produces the string for one day of the song.} \usage{ sample_means_ns(vec, reps, ns) } \arguments{ \item{dataset}{A data frame containing information about gifts} \i...
/man/sample_means_ns.Rd
permissive
Ammlakh/Lab7
R
false
true
644
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sing_day.R \name{sample_means_ns} \alias{sample_means_ns} \title{Produces the string for one day of the song.} \usage{ sample_means_ns(vec, reps, ns) } \arguments{ \item{dataset}{A data frame containing information about gifts} \i...
# Load Data library(scran) library(Matrix) library(dplyr) library(BiocParallel) library(BiocSingular) library(BiocNeighbors) library(umap) # Read in Data sce <- readRDS("../../data/Pregnancy/Robjects/SCE_QC_norm.rds") smps <- unique(sce$SampleID) out <- bplapply(smps, function(smp) { # Subset to sample ...
/src/PregnancyTimecourse/04_computeDoubletScores.R
no_license
wqhf/Tumorigenesis2018
R
false
false
1,744
r
# Load Data library(scran) library(Matrix) library(dplyr) library(BiocParallel) library(BiocSingular) library(BiocNeighbors) library(umap) # Read in Data sce <- readRDS("../../data/Pregnancy/Robjects/SCE_QC_norm.rds") smps <- unique(sce$SampleID) out <- bplapply(smps, function(smp) { # Subset to sample ...
# Name: 22_pasi75vsRDscoreUstekinumab.R # Auth: umar.niazi@kcl.ac.uk # Date: 23/01/2018 # Desc: import clean and model for the differences in rd.score for pasi75 trus/false groups ############################## data import and cleaning steps dfPatient = read.csv('dataExternal/healthyData/merged.files_and_annotations....
/22_pasi75vsRDscoreUstekinumab.R
permissive
uhkniazi/BRC_ImageStream
R
false
false
13,306
r
# Name: 22_pasi75vsRDscoreUstekinumab.R # Auth: umar.niazi@kcl.ac.uk # Date: 23/01/2018 # Desc: import clean and model for the differences in rd.score for pasi75 trus/false groups ############################## data import and cleaning steps dfPatient = read.csv('dataExternal/healthyData/merged.files_and_annotations....
makeCacheMatrix <- function(k = numeric()) { mit <- NULL set <- function(nyu) { k <<- nyu mit <<- NULL } get <- function() k setInverse <- function(solveMatrix) mit <<- solveMatrix getInverse <- function() mit list(set = set, get = get, setInverse = setInverse, getInverse = getInverse) }...
/Lexical Scoping.R
no_license
dreichan/ProgrammingAssignment2
R
false
false
710
r
makeCacheMatrix <- function(k = numeric()) { mit <- NULL set <- function(nyu) { k <<- nyu mit <<- NULL } get <- function() k setInverse <- function(solveMatrix) mit <<- solveMatrix getInverse <- function() mit list(set = set, get = get, setInverse = setInverse, getInverse = getInverse) }...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prepare.R \name{prepare_years} \alias{prepare_years} \title{prepare years from config} \usage{ prepare_years(years, range = TRUE) } \arguments{ \item{years}{one or more years} \item{range}{logical.} } \value{ years of config } \description{ ...
/man/prepare_years.Rd
no_license
DilyLong/nhanesR
R
false
true
348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prepare.R \name{prepare_years} \alias{prepare_years} \title{prepare years from config} \usage{ prepare_years(years, range = TRUE) } \arguments{ \item{years}{one or more years} \item{range}{logical.} } \value{ years of config } \description{ ...
load_adjMat = function() { #browser() mapped.probes <- mappedkeys(hgu133aENTREZID) refseq <- as.list(hgu133aENTREZID[mapped.probes]) times <- sapply(refseq, length) mapping <- data.frame(probesetID=rep(names(refseq), times=times), graphID=unlist(refseq), row.names=NULL, stringsAsFactors=FALSE) mapping <- u...
/source/load_adjMat.R
no_license
vineet1992/Gene-Selection
R
false
false
1,556
r
load_adjMat = function() { #browser() mapped.probes <- mappedkeys(hgu133aENTREZID) refseq <- as.list(hgu133aENTREZID[mapped.probes]) times <- sapply(refseq, length) mapping <- data.frame(probesetID=rep(names(refseq), times=times), graphID=unlist(refseq), row.names=NULL, stringsAsFactors=FALSE) mapping <- u...
#' @title Tidy summary output for stan models #' @name tidy_stan #' #' @description Returns a tidy summary output for stan models. #' #' @param x A \code{stanreg}, \code{stanfit} or \code{brmsfit} object. #' @param trans Name of a function or character vector naming a function, used #' to apply transforma...
/R/tidy_stan.R
no_license
jmgirard/sjstats
R
false
false
18,767
r
#' @title Tidy summary output for stan models #' @name tidy_stan #' #' @description Returns a tidy summary output for stan models. #' #' @param x A \code{stanreg}, \code{stanfit} or \code{brmsfit} object. #' @param trans Name of a function or character vector naming a function, used #' to apply transforma...
library("aroma.core") verbose <- Arguments$getVerbose(-8, timestamp=TRUE) ar <- AromaRepository(verbose=TRUE) verbose && enter(verbose, "Downloading annotation data") chipType <- "Mapping250K_Nsp" verbose && cat(verbose, "Chip type: ", chipType) pathname <- downloadCDF(ar, chipType) verbose && cat(verbose, "CDF: ", ...
/inst/testScripts/replication/chipTypes/Mapping250K_Nsp/01a.downloadAnnotationData.R
no_license
HenrikBengtsson/aroma.affymetrix
R
false
false
449
r
library("aroma.core") verbose <- Arguments$getVerbose(-8, timestamp=TRUE) ar <- AromaRepository(verbose=TRUE) verbose && enter(verbose, "Downloading annotation data") chipType <- "Mapping250K_Nsp" verbose && cat(verbose, "Chip type: ", chipType) pathname <- downloadCDF(ar, chipType) verbose && cat(verbose, "CDF: ", ...
installBioconductorPackages<-function(){ source("http://bioconductor.org/biocLite.R") biocLite("RCytoscape") }
/packageDir/R/installBioconductorPackages.R
no_license
stochasticTreat/pathLayerDistributionVersion2
R
false
false
117
r
installBioconductorPackages<-function(){ source("http://bioconductor.org/biocLite.R") biocLite("RCytoscape") }
#read in data NEI <- readRDS("summarySCC_PM25.rds") #sum emissions by year yearTotals <- aggregate(Emissions ~ year, NEI, sum) #make plot png("plot1.png") barplot(height = (yearTotals$Emissions)/10^6, names.arg = yearTotals$year, xlab = "Year", ylab = "PM2.5 Emissions (10^6 tons)") title("Total PM2.5 Emissions in US...
/plot1.R
no_license
kathleen-hop/ExploratoryDataAnalysis2
R
false
false
336
r
#read in data NEI <- readRDS("summarySCC_PM25.rds") #sum emissions by year yearTotals <- aggregate(Emissions ~ year, NEI, sum) #make plot png("plot1.png") barplot(height = (yearTotals$Emissions)/10^6, names.arg = yearTotals$year, xlab = "Year", ylab = "PM2.5 Emissions (10^6 tons)") title("Total PM2.5 Emissions in US...
setwd("~/Desktop/Bomi") dt = readRDS(file = "/Users/yanyang/Desktop/Bomi/finalmeta.rds") daa = Read10X_h5("10_filtered_feature_bc_matrix.h5") da = CreateSeuratObject(counts = daa$`Gene Expression`) #### da[["percent.mt"]] <- PercentageFeatureSet(object = da, pattern = "^MT-") da[["sample"]] <- gsub(".+-", "", rownam...
/CITE.R
no_license
yangysheep2018/CITE-seq-TCR_paper
R
false
false
17,919
r
setwd("~/Desktop/Bomi") dt = readRDS(file = "/Users/yanyang/Desktop/Bomi/finalmeta.rds") daa = Read10X_h5("10_filtered_feature_bc_matrix.h5") da = CreateSeuratObject(counts = daa$`Gene Expression`) #### da[["percent.mt"]] <- PercentageFeatureSet(object = da, pattern = "^MT-") da[["sample"]] <- gsub(".+-", "", rownam...
# Lance # Plotting power consumption plot_use_model <- function(specific_time_interval_test_data,view_window_start="2016-01-30",view_window_end="2016-04-05"){ start_day <- which(grepl(view_window_start, specific_time_interval_test_data$dateTime)) # get position of start date end_day <- which(grepl(view_win...
/plot_use_model.R
no_license
RoseXDennis/Energy-Forecasting-Dashboard
R
false
false
1,033
r
# Lance # Plotting power consumption plot_use_model <- function(specific_time_interval_test_data,view_window_start="2016-01-30",view_window_end="2016-04-05"){ start_day <- which(grepl(view_window_start, specific_time_interval_test_data$dateTime)) # get position of start date end_day <- which(grepl(view_win...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/singleRCodeFile.R \docType{methods} \name{MultiIntersectBed_CLI} \alias{MultiIntersectBed_CLI} \title{Constructor method for MultiIntersectBed_CLI} \usage{ MultiIntersectBed_CLI(inFilePath, inFileNames, cliParams, outputFlag, outFilePath, s...
/man/MultiIntersectBed_CLI.Rd
permissive
SimonSchafferer/CLIHelperPackage
R
false
true
500
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/singleRCodeFile.R \docType{methods} \name{MultiIntersectBed_CLI} \alias{MultiIntersectBed_CLI} \title{Constructor method for MultiIntersectBed_CLI} \usage{ MultiIntersectBed_CLI(inFilePath, inFileNames, cliParams, outputFlag, outFilePath, s...
# Data Preprocessing Template # Importing the dataset dataset = read.csv('Data.csv') dataset = dataset[, 2:3] # Splitting the dataset into the Training set and Test set install.packages('caTools') library(caTools) set.seed(123) # split testing set and training set # split = sample.split(dataset$DependentVariable, Sp...
/Data_Preprocessing/data_preprocessing_template.R
no_license
solly0702/udemy_machine_learning
R
false
false
595
r
# Data Preprocessing Template # Importing the dataset dataset = read.csv('Data.csv') dataset = dataset[, 2:3] # Splitting the dataset into the Training set and Test set install.packages('caTools') library(caTools) set.seed(123) # split testing set and training set # split = sample.split(dataset$DependentVariable, Sp...
\name{result} \alias{result} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Posterior inference results from the object of S5 } \description{ Using the object of S5, the maximum a posteriori (MAP) model, its posterior probability, and the marginal inclusion probabilities are provided. }...
/man/result.Rd
no_license
freephys/S5
R
false
false
3,207
rd
\name{result} \alias{result} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Posterior inference results from the object of S5 } \description{ Using the object of S5, the maximum a posteriori (MAP) model, its posterior probability, and the marginal inclusion probabilities are provided. }...
library(inline) ### Name: cxxfunction ### Title: inline C++ function ### Aliases: cxxfunction rcpp ### Keywords: programming interface ### ** Examples ## Not run: ##D ##D # default plugin ##D fx <- cxxfunction( signature(x = "integer", y = "numeric" ) , ' ##D return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ; ##D...
/data/genthat_extracted_code/inline/examples/cxxfunction.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,131
r
library(inline) ### Name: cxxfunction ### Title: inline C++ function ### Aliases: cxxfunction rcpp ### Keywords: programming interface ### ** Examples ## Not run: ##D ##D # default plugin ##D fx <- cxxfunction( signature(x = "integer", y = "numeric" ) , ' ##D return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ; ##D...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SABARSI.R \name{merge_signals} \alias{merge_signals} \title{Obtain the set of signature signals Merge groups of concatenated signals and give the time indices of signature signals.} \usage{ merge_signals(xr, object, t.tol = 4, cor.tol ...
/man/merge_signals.Rd
no_license
cran/sabarsi
R
false
true
1,206
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SABARSI.R \name{merge_signals} \alias{merge_signals} \title{Obtain the set of signature signals Merge groups of concatenated signals and give the time indices of signature signals.} \usage{ merge_signals(xr, object, t.tol = 4, cor.tol ...
library(ahp) ahpFile <- system.file("extdata", "dane.ahp", package="ahp") smartfonAhp <- Load(ahpFile) Calculate(smartfonAhp) print(smartfonAhp, priority = function(x) x$sparent$priority["total", x$name]) Visualize(smartfonAhp) Analyze(smartfonAhp) AnalyzeTable(smartfonAhp) AnalyzeTable(smartfonAhp, decisionMaker = "Fa...
/lab4.R
no_license
patrykpp/lab4_SiMPD
R
false
false
378
r
library(ahp) ahpFile <- system.file("extdata", "dane.ahp", package="ahp") smartfonAhp <- Load(ahpFile) Calculate(smartfonAhp) print(smartfonAhp, priority = function(x) x$sparent$priority["total", x$name]) Visualize(smartfonAhp) Analyze(smartfonAhp) AnalyzeTable(smartfonAhp) AnalyzeTable(smartfonAhp, decisionMaker = "Fa...
#' calculate proportion less than #' #' Note: this function trims the last number for plotting purposes #' #' @param x vector of counts #' #' @return vector of proportion less than the sieve size. #' @export #' #' @examples #' cumudist <- function(x){ total <- sum(x, na.rm = TRUE) new <- cumsum(c(0, x))[1:1-length(...
/R/cumudist.R
no_license
dtavern/grainsizeR
R
false
false
348
r
#' calculate proportion less than #' #' Note: this function trims the last number for plotting purposes #' #' @param x vector of counts #' #' @return vector of proportion less than the sieve size. #' @export #' #' @examples #' cumudist <- function(x){ total <- sum(x, na.rm = TRUE) new <- cumsum(c(0, x))[1:1-length(...
random_numbers <- c(-2, -8, 5, -3, 5, 10, 13, 1, 1) positive_numbers <- random_numbers > 0 random_numbers[positive_numbers]
/1 - Basic/2 - Vectors/15.personalizado.R
no_license
TopicosSelectos/tutoriales-2019-2-abel-rodriguez
R
false
false
124
r
random_numbers <- c(-2, -8, 5, -3, 5, 10, 13, 1, 1) positive_numbers <- random_numbers > 0 random_numbers[positive_numbers]
plotBRP <- function(results, process_err, bmsy_factor, nproject, report=0.5, title=TRUE, bmodel, dirs){ par(mar=c(0,0,0,0), omi=c(1,1.5,1,0.5)) layout_mat <- matrix(c(0,rep(1,8), 0,rep(2,8),rep(3,8), rep(4,8), 0,rep(5,8),0,rep(6,8), rep(7,8), rep(8,8), 0,rep(9,8),0,rep(10,8), rep(11,8), rep(12,8)), nro...
/R_functions/plotBRP.R
no_license
merrillrudd/catch_misreporting_sim
R
false
false
6,461
r
plotBRP <- function(results, process_err, bmsy_factor, nproject, report=0.5, title=TRUE, bmodel, dirs){ par(mar=c(0,0,0,0), omi=c(1,1.5,1,0.5)) layout_mat <- matrix(c(0,rep(1,8), 0,rep(2,8),rep(3,8), rep(4,8), 0,rep(5,8),0,rep(6,8), rep(7,8), rep(8,8), 0,rep(9,8),0,rep(10,8), rep(11,8), rep(12,8)), nro...
library(data.table) library(dplyr) library(Matrix) library(BuenColors) library(stringr) library(cowplot) library(irlba) eryth_color_maps <- c("P1" = "#3b82ae", "P2" = "#547294", "P3" = "#6d617a", "P4" = "#865160", "P5" = "#9f4046", "P6" = "#b8302c", "P7" = "#d11f12", "P8" = "#de1705") all_color_maps <- c(ejc_color_map...
/erythropoesis/code/00_simulate_erythroid.R
no_license
caleblareau/simulate_singlecell_frombulk
R
false
false
4,991
r
library(data.table) library(dplyr) library(Matrix) library(BuenColors) library(stringr) library(cowplot) library(irlba) eryth_color_maps <- c("P1" = "#3b82ae", "P2" = "#547294", "P3" = "#6d617a", "P4" = "#865160", "P5" = "#9f4046", "P6" = "#b8302c", "P7" = "#d11f12", "P8" = "#de1705") all_color_maps <- c(ejc_color_map...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{get_model} \alias{get_model} \title{Get the model of licor machime} \usage{ get_model(x) } \arguments{ \item{x}{licor file} } \description{ Get the model of licor machime } \keyword{Internal}
/man/get_model.Rd
permissive
PaulESantos/licor6400r
R
false
true
284
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{get_model} \alias{get_model} \title{Get the model of licor machime} \usage{ get_model(x) } \arguments{ \item{x}{licor file} } \description{ Get the model of licor machime } \keyword{Internal}
#Readme #@SISS, 2017 #Functions suitable for computing correspondence analysis: #CA() [FactoMineR package], #ca() [ca package], #dudi.coa() [ade4 package], #corresp() [MASS package], #and epCA() [ExPosition package] #####CA Package#### pop_prop<-prop.table(pop_2012v) install.packages("ca") library(ca) ca(pop_2012v) n...
/ca_script.R
no_license
sssusana/pop_FCA
R
false
false
3,226
r
#Readme #@SISS, 2017 #Functions suitable for computing correspondence analysis: #CA() [FactoMineR package], #ca() [ca package], #dudi.coa() [ade4 package], #corresp() [MASS package], #and epCA() [ExPosition package] #####CA Package#### pop_prop<-prop.table(pop_2012v) install.packages("ca") library(ca) ca(pop_2012v) n...
source('header.R') # parameters theta <- data.frame(theta_1 = 10, theta_2 = 1) s <- c(1, 4) pi_s <- 0.25 beta <- 0.99 eps <- 10^(-3) val_tol <- 0.01 num_rep <- 10^6 # from the last homework assignment x_max <- ceiling(1/theta$theta_2*(theta$theta_1*max(s) - log(1/(1-eps)-1))) list(s= s, x_max= x_max) %>% base_da...
/code/m.R
no_license
hjtree0825/hjtree0825-OPNS_assignment_7
R
false
false
1,170
r
source('header.R') # parameters theta <- data.frame(theta_1 = 10, theta_2 = 1) s <- c(1, 4) pi_s <- 0.25 beta <- 0.99 eps <- 10^(-3) val_tol <- 0.01 num_rep <- 10^6 # from the last homework assignment x_max <- ceiling(1/theta$theta_2*(theta$theta_1*max(s) - log(1/(1-eps)-1))) list(s= s, x_max= x_max) %>% base_da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{psoriasis75} \alias{psoriasis75} \title{Studies of biologics for treatment of moderate-to-severe psoriasis (>=75\% improvement)} \format{ A data frame in long format (one row per arm and study), with 81 ...
/man/psoriasis75.Rd
no_license
cran/MBNMAdose
R
false
true
1,553
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{psoriasis75} \alias{psoriasis75} \title{Studies of biologics for treatment of moderate-to-severe psoriasis (>=75\% improvement)} \format{ A data frame in long format (one row per arm and study), with 81 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/solve_ols.R \name{solve_ols} \alias{solve_ols} \title{Solve linear system} \usage{ solve_ols( A, b, x0 = NA, maxiter = 10000, tol = 1e-05, numCores = 1, parallel = FALSE, method = "Gauss", full_result = FALSE ) } \arguments{...
/man/solve_ols.Rd
permissive
xw547/hwpkg
R
false
true
1,201
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/solve_ols.R \name{solve_ols} \alias{solve_ols} \title{Solve linear system} \usage{ solve_ols( A, b, x0 = NA, maxiter = 10000, tol = 1e-05, numCores = 1, parallel = FALSE, method = "Gauss", full_result = FALSE ) } \arguments{...
#' Functions for Working with Trees in Elementary Data Analysis #' #' For use by elementary students in statistics and data analysis. #' #' @name tigerTree #' @docType package #' @import tree DT ggplot2 #' @importFrom shiny shinyUI fluidPage sidebarLayout sidebarPanel numericInput #' @importFrom shiny titlePanel action...
/R/tigerTree-package.R
no_license
homerhanumat/tigerTree
R
false
false
738
r
#' Functions for Working with Trees in Elementary Data Analysis #' #' For use by elementary students in statistics and data analysis. #' #' @name tigerTree #' @docType package #' @import tree DT ggplot2 #' @importFrom shiny shinyUI fluidPage sidebarLayout sidebarPanel numericInput #' @importFrom shiny titlePanel action...
require(lattice) require(rasterVis) require(latticeExtra) ##library(viridisLite) ##coul <- viridis(100) require("RColorBrewer") ##color Scheme I chemokine.cols <- colorRampPalette(c('white', '#F8766D'))(n=100) fb.col <- "red" tcell.col <- "#1F78B4" L <- 64 ##L <- 256 #L <- 128 colors <- c("#A7A7A7", "do...
/problem/2DIsing/out/plot.r
no_license
hydrays/sspat
R
false
false
870
r
require(lattice) require(rasterVis) require(latticeExtra) ##library(viridisLite) ##coul <- viridis(100) require("RColorBrewer") ##color Scheme I chemokine.cols <- colorRampPalette(c('white', '#F8766D'))(n=100) fb.col <- "red" tcell.col <- "#1F78B4" L <- 64 ##L <- 256 #L <- 128 colors <- c("#A7A7A7", "do...
library(metR) context("season") test_that("season assigns season", { expect_equal(as.character(season(1)), "DJF") expect_equal(as.character(season(1, lang = "es")), "DEF") expect_equal(as.character(season(c(1, 3))), c("DJF", "MAM")) expect_equal(levels(season(1)), ...
/tests/testthat/tests.R
no_license
salvatirehbein/metR
R
false
false
3,288
r
library(metR) context("season") test_that("season assigns season", { expect_equal(as.character(season(1)), "DJF") expect_equal(as.character(season(1, lang = "es")), "DEF") expect_equal(as.character(season(c(1, 3))), c("DJF", "MAM")) expect_equal(levels(season(1)), ...