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
#' Validity first conformal prediction for Conformal Quantile Regression #' #' @param x A N*d training matrix #' @param y A N*1 training vector #' @param split a number between 0 and 1 #' @param params_grid a grid of mtry and ntree #' @param alpha miscoverage level #' @return average prediction width and a function for...
/R/vfcp_cqr.R
no_license
Elsa-Yang98/ConformalSmallest
R
false
false
3,731
r
#' Validity first conformal prediction for Conformal Quantile Regression #' #' @param x A N*d training matrix #' @param y A N*1 training vector #' @param split a number between 0 and 1 #' @param params_grid a grid of mtry and ntree #' @param alpha miscoverage level #' @return average prediction width and a function for...
#' Create a negative binomial distribution #' #' A generalization of the geometric distribution. It is the number #' of failures in a sequence of i.i.d. Bernoulli trials before #' a specified target number (\eqn{r}) of successes occurs. #' #' #' @param size The target number of successes (greater than \eqn{0}) #' unt...
/R/NegativeBinomial.R
permissive
alexpghayes/distributions3
R
false
false
12,450
r
#' Create a negative binomial distribution #' #' A generalization of the geometric distribution. It is the number #' of failures in a sequence of i.i.d. Bernoulli trials before #' a specified target number (\eqn{r}) of successes occurs. #' #' #' @param size The target number of successes (greater than \eqn{0}) #' unt...
library(ggplot2) front.ceuc <- function(X, z, mu, discretisation=50) { deltaX <- (max(X[,1])-min(X[,1]))/discretisation deltaY <- (max(X[,2])-min(X[,2]))/discretisation minX <- min(X[,1])-deltaX maxX <- max(X[,1])+deltaX minY <- min(X[,2])-deltaY maxY <- max(X[,2])+deltaY # grille d'afficha...
/TP3/script/front.ceuc.R
permissive
puechtom/sy09
R
false
false
896
r
library(ggplot2) front.ceuc <- function(X, z, mu, discretisation=50) { deltaX <- (max(X[,1])-min(X[,1]))/discretisation deltaY <- (max(X[,2])-min(X[,2]))/discretisation minX <- min(X[,1])-deltaX maxX <- max(X[,1])+deltaX minY <- min(X[,2])-deltaY maxY <- max(X[,2])+deltaY # grille d'afficha...
banco_macro_saude_aux <- read.csv("MACRORREGIOES_DE_SAUDE.csv") %>% select(IBGE,macrorregiao) # banco_macro_aux <- banco_anomalias_analise %>% # filter(ANO_NASC == "2018") %>% # left_join(mapa_rs) # # banco_macro_saude_final <- merge(x = banco_macro_saude, y = banco_macro_aux, by.x = "Código IBGE",by.y = "COD...
/macro_saude_testes.R
no_license
anomaliascongenitas/App_Anomalias_Congenitas_RS
R
false
false
2,762
r
banco_macro_saude_aux <- read.csv("MACRORREGIOES_DE_SAUDE.csv") %>% select(IBGE,macrorregiao) # banco_macro_aux <- banco_anomalias_analise %>% # filter(ANO_NASC == "2018") %>% # left_join(mapa_rs) # # banco_macro_saude_final <- merge(x = banco_macro_saude, y = banco_macro_aux, by.x = "Código IBGE",by.y = "COD...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/thyroid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.01,family="gaussian",standardize=TRUE) sink('./thyroid_005.txt',append=TRUE) p...
/Model/EN/AvgRank/thyroid/thyroid_005.R
no_license
esbgkannan/QSMART
R
false
false
348
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/thyroid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.01,family="gaussian",standardize=TRUE) sink('./thyroid_005.txt',append=TRUE) p...
#' popPlace : Populates the input$unit field using information from the PostGres estimates database. #' return a data frame with the placefips, countyfips, placename and totalPopulation Revised 1/23/2019 #' #' @param level identifies the level to be used (State, Planning Regions, Counties, Municipalities) #' ...
/R/popPlace.R
no_license
ColoradoDemography/Housing_DG
R
false
false
4,000
r
#' popPlace : Populates the input$unit field using information from the PostGres estimates database. #' return a data frame with the placefips, countyfips, placename and totalPopulation Revised 1/23/2019 #' #' @param level identifies the level to be used (State, Planning Regions, Counties, Municipalities) #' ...
#' Obtain standard deviation #' #' `sd_pop` retrieves the population standard deviation of a vector of observations. #' The function will automatically remove NA values. #' #' @param x Vector of numeric values #' @param quiet Whether to print a message if NAs or NaNs exist #' @return A numeric value corresponding to th...
/R/sd_pop.R
no_license
awqx/qsarr
R
false
false
711
r
#' Obtain standard deviation #' #' `sd_pop` retrieves the population standard deviation of a vector of observations. #' The function will automatically remove NA values. #' #' @param x Vector of numeric values #' @param quiet Whether to print a message if NAs or NaNs exist #' @return A numeric value corresponding to th...
#' Get Opening Stock Data #' #' Function to obtain opening stocks data calculated by the faoswsStock module. #' #' @export getOpeningStockData getOpeningStockData = function(){ ## define measured elements openingStockKey <- getCompleteImputationKey(table = "production") openingStockKey@dimensions[["measuredE...
/R/getOpeningStockData.R
no_license
AEENRA/faoswsLoss
R
false
false
2,626
r
#' Get Opening Stock Data #' #' Function to obtain opening stocks data calculated by the faoswsStock module. #' #' @export getOpeningStockData getOpeningStockData = function(){ ## define measured elements openingStockKey <- getCompleteImputationKey(table = "production") openingStockKey@dimensions[["measuredE...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotIndividualData.R \name{plotIndividualData} \alias{plotIndividualData} \title{plotIndividualData} \usage{ plotIndividualData(pt.id = 60, what.data = "both", log.scale = T, plot.psad = F, pt) } \arguments{ \item{pt.id}{Patient whose data ...
/man/plotIndividualData.Rd
no_license
jbindman/prostate-project
R
false
true
485
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotIndividualData.R \name{plotIndividualData} \alias{plotIndividualData} \title{plotIndividualData} \usage{ plotIndividualData(pt.id = 60, what.data = "both", log.scale = T, plot.psad = F, pt) } \arguments{ \item{pt.id}{Patient whose data ...
loadHouseholdData <- function() { library(data.table) # Check if we can use a cached version of the file zipFile<-"HouseholdData.zip" if ( (file.exists(zipFile)) && (file.info(zipFile)$ctime > Sys.time()-24*60*60) && (file.info(zipFile)$size > 20000000) ) { ...
/loadHouseholdData.R
no_license
twuyts/ExData_Plotting1
R
false
false
1,395
r
loadHouseholdData <- function() { library(data.table) # Check if we can use a cached version of the file zipFile<-"HouseholdData.zip" if ( (file.exists(zipFile)) && (file.info(zipFile)$ctime > Sys.time()-24*60*60) && (file.info(zipFile)$size > 20000000) ) { ...
#' function to launch the catdrought app #' #' @importFrom magrittr %>% #' #' @export meteoland_app <- function( ) { ### Language input ########################################################### shiny::addResourcePath( 'images', system.file('resources', 'images', package = 'meteolandappkg') ) lang_choice...
/R/app.R
no_license
MalditoBarbudo/meteolandappkg
R
false
false
8,290
r
#' function to launch the catdrought app #' #' @importFrom magrittr %>% #' #' @export meteoland_app <- function( ) { ### Language input ########################################################### shiny::addResourcePath( 'images', system.file('resources', 'images', package = 'meteolandappkg') ) lang_choice...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/select_station.R \name{select_station} \alias{select_station} \title{Choose the station for a given landslide-position} \usage{ select_station(position = NULL, method = "distance", n = 3) } \arguments{ \item{n}{Number of Stations (Voronoi onl...
/man/select_station.Rd
no_license
MaThRk/raingaugeR
R
false
true
399
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/select_station.R \name{select_station} \alias{select_station} \title{Choose the station for a given landslide-position} \usage{ select_station(position = NULL, method = "distance", n = 3) } \arguments{ \item{n}{Number of Stations (Voronoi onl...
load("NunnData.RData") High[High==0]<-NA M<-is.na(Low+High+apply(X,1:2,sum)) L<-Low L[M]<-NA U<-High U[M]<-NA #######################################################: ###### SUMMARIZE THE FINAL MODEL #######: #######################################################: load("fit.Robject") #Extremal coef...
/summarize.R
no_license
schnellp/JRSSC-2015-SpatialSurvival
R
false
false
4,911
r
load("NunnData.RData") High[High==0]<-NA M<-is.na(Low+High+apply(X,1:2,sum)) L<-Low L[M]<-NA U<-High U[M]<-NA #######################################################: ###### SUMMARIZE THE FINAL MODEL #######: #######################################################: load("fit.Robject") #Extremal coef...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blogger_objects.R \name{Blog.posts} \alias{Blog.posts} \title{Blog.posts Object} \usage{ Blog.posts(selfLink = NULL, totalItems = NULL) } \arguments{ \item{selfLink}{The URL of the container for posts in this blog} \item{totalItems}{The coun...
/googlebloggerv2.auto/man/Blog.posts.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
635
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blogger_objects.R \name{Blog.posts} \alias{Blog.posts} \title{Blog.posts Object} \usage{ Blog.posts(selfLink = NULL, totalItems = NULL) } \arguments{ \item{selfLink}{The URL of the container for posts in this blog} \item{totalItems}{The coun...
# Explore NEON Workshop # Part 1: Morning of November 8, 2018 # Follows this webpage https://www.neonscience.org/download-explore-neon-data library(neonUtilities) library(geoNEON) library(raster) library(rhdf5) options(stringsAsFactors = FALSE) setwd("~/Documents/Workshops/Explore NEON Workshop 2018") # Photosynth...
/QinClara/neon_workshop_2018_1a.R
permissive
lxwrght/NEON_Explore
R
false
false
3,422
r
# Explore NEON Workshop # Part 1: Morning of November 8, 2018 # Follows this webpage https://www.neonscience.org/download-explore-neon-data library(neonUtilities) library(geoNEON) library(raster) library(rhdf5) options(stringsAsFactors = FALSE) setwd("~/Documents/Workshops/Explore NEON Workshop 2018") # Photosynth...
library(shiny) library(ggplot2) shinyServer(function(input,output){ mtcars$am <- factor(mtcars$am,labels=c('automatic','manual')) model<-lm(mpg ~ hp + wt + am, data=mtcars) modelpred<-reactive({ hpInput<-input$sliderHP wtInput<-input$sliderWT amInput<-input$selectAM mtcarsNew<-data.f...
/server.R
no_license
logicshare/DPPweek4Project
R
false
false
1,149
r
library(shiny) library(ggplot2) shinyServer(function(input,output){ mtcars$am <- factor(mtcars$am,labels=c('automatic','manual')) model<-lm(mpg ~ hp + wt + am, data=mtcars) modelpred<-reactive({ hpInput<-input$sliderHP wtInput<-input$sliderWT amInput<-input$selectAM mtcarsNew<-data.f...
ICA = function(Data,OutputDimension=2,Contrastfunction="logcosh",Alpha=1,Iterations=200,PlotIt=FALSE,Cls){ # Independent Component Analysis # projection=ICA(Data) # INPUT # Data[1:n,1:d] array of data: n cases in rows, d variables in columns, matrix is not symmetric # or dista...
/R/ICA.R
no_license
ms609/ProjectionBasedClustering
R
false
false
3,154
r
ICA = function(Data,OutputDimension=2,Contrastfunction="logcosh",Alpha=1,Iterations=200,PlotIt=FALSE,Cls){ # Independent Component Analysis # projection=ICA(Data) # INPUT # Data[1:n,1:d] array of data: n cases in rows, d variables in columns, matrix is not symmetric # or dista...
test_that("aesthetic checking in geom throws correct errors", { p <- ggplot(mtcars) + geom_point(aes(disp, mpg, colour = after_scale(data))) expect_snapshot_error(ggplotGrob(p)) aes <- list(a = 1:4, b = letters[1:4], c = TRUE, d = 1:2, e = 1:5) expect_snapshot_error(check_aesthetics(aes, 4)) }) test_that("u...
/tests/testthat/test-geom-.R
permissive
tidyverse/ggplot2
R
false
false
1,341
r
test_that("aesthetic checking in geom throws correct errors", { p <- ggplot(mtcars) + geom_point(aes(disp, mpg, colour = after_scale(data))) expect_snapshot_error(ggplotGrob(p)) aes <- list(a = 1:4, b = letters[1:4], c = TRUE, d = 1:2, e = 1:5) expect_snapshot_error(check_aesthetics(aes, 4)) }) test_that("u...
NA_datetime_ <- vctrs::new_datetime(NA_real_) NA_list_ <- list(list()) connectapi_ptypes <- list( users = tibble::tibble( "email" = NA_character_, "username" = NA_character_, "first_name" = NA_character_, "last_name" = NA_character_, "user_role" = NA_character_, "created_time" = NA_datetime_,...
/R/ptype.R
no_license
brunaw/connectapi
R
false
false
5,351
r
NA_datetime_ <- vctrs::new_datetime(NA_real_) NA_list_ <- list(list()) connectapi_ptypes <- list( users = tibble::tibble( "email" = NA_character_, "username" = NA_character_, "first_name" = NA_character_, "last_name" = NA_character_, "user_role" = NA_character_, "created_time" = NA_datetime_,...
plot2 <-function() { options(warn=-1) suppressMessages(library(chron)) suppressMessages(library(lubridate)) options(warn=0) dt <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";",na.strings=c("?")) dt["Date"] <- as.Date(dt$Date,format="%d/%m/%Y") dt <- dt[dt$Dat...
/plot2.R
no_license
jpcannon/ExData_Plotting1
R
false
false
674
r
plot2 <-function() { options(warn=-1) suppressMessages(library(chron)) suppressMessages(library(lubridate)) options(warn=0) dt <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";",na.strings=c("?")) dt["Date"] <- as.Date(dt$Date,format="%d/%m/%Y") dt <- dt[dt$Dat...
##### info #### # file: elymus_adult_gs_survival_parameter_2019_density_exp # author: Amy Kendig # date last edited: 10/27/20 # goal: sample from model coefficients to estimate survival #### set-up #### # tidyverse and brms packages must be loaded # load model # load("output/elymus_adult_gs_survival_model_2019_den...
/code/elymus_adult_gs_survival_parameter_2019_density_exp.R
no_license
aekendig/microstegium-bipolaris
R
false
false
2,363
r
##### info #### # file: elymus_adult_gs_survival_parameter_2019_density_exp # author: Amy Kendig # date last edited: 10/27/20 # goal: sample from model coefficients to estimate survival #### set-up #### # tidyverse and brms packages must be loaded # load model # load("output/elymus_adult_gs_survival_model_2019_den...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_and_reporting.R \name{umxReduceACE} \alias{umxReduceACE} \title{Reduce an ACE model.} \usage{ umxReduceACE( model, report = c("markdown", "inline", "html", "report"), baseFileName = "tmp", intervals = TRUE, ... ) } \arguments{ \...
/man/umxReduceACE.Rd
no_license
jishanling/umx
R
false
true
2,774
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_and_reporting.R \name{umxReduceACE} \alias{umxReduceACE} \title{Reduce an ACE model.} \usage{ umxReduceACE( model, report = c("markdown", "inline", "html", "report"), baseFileName = "tmp", intervals = TRUE, ... ) } \arguments{ \...
library(Matrix) rm(list = ls()) A <- matrix(c(6,-2, 3, 4, -10, 4, 1, -3, 5), 3, 3, byrow=T) B <- matrix(c(1,1,1), nrow = 3) dim(A) <- c(3, 3) elu <- expand(lu(A)) L <- elu$L U <- elu$U P <- elu$P all.equal(Matrix(A), with(elu, P %*% L %*% U)) (Y <- solve(L, solve(P) %*% B)) # solve LY = inv(P).B ins...
/Algorithms/LU Decomposition.R
permissive
nusretipek/NumericalAnalysisR
R
false
false
2,647
r
library(Matrix) rm(list = ls()) A <- matrix(c(6,-2, 3, 4, -10, 4, 1, -3, 5), 3, 3, byrow=T) B <- matrix(c(1,1,1), nrow = 3) dim(A) <- c(3, 3) elu <- expand(lu(A)) L <- elu$L U <- elu$U P <- elu$P all.equal(Matrix(A), with(elu, P %*% L %*% U)) (Y <- solve(L, solve(P) %*% B)) # solve LY = inv(P).B ins...
## download and unzip the FNEI data download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip", "FNEI_data.zip") unzip("FNEI_Data.zip") ## read in the data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ## subset the data, so only Baltim...
/plot2.R
no_license
DanielFletcher1/ExData2
R
false
false
1,179
r
## download and unzip the FNEI data download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip", "FNEI_data.zip") unzip("FNEI_Data.zip") ## read in the data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ## subset the data, so only Baltim...
\name{seqnum} \alias{seqnum} \title{Transform into a sequence object with numerical alphabet.} \description{ The function \code{seqnum} transforms the provided state sequence object into an equivalent sequence object in which the original alphabet is replaced with an alphabet of numbers ranging from \code{0} to \cod...
/man/seqnum.Rd
no_license
cran/TraMineR
R
false
false
1,525
rd
\name{seqnum} \alias{seqnum} \title{Transform into a sequence object with numerical alphabet.} \description{ The function \code{seqnum} transforms the provided state sequence object into an equivalent sequence object in which the original alphabet is replaced with an alphabet of numbers ranging from \code{0} to \cod...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VehicleSales.R \docType{data} \name{VehicleSales} \alias{VehicleSales} \title{Total Vehicle Sales in USA} \format{ 360 * 2 dataframe... \describe{ \item{column1}{DATE} \item{column2}{Total Sales} } } \usage{ VehicleSales } \description{ Tota...
/man/VehicleSales.Rd
permissive
DaZheng123/DataProject
R
false
true
364
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VehicleSales.R \docType{data} \name{VehicleSales} \alias{VehicleSales} \title{Total Vehicle Sales in USA} \format{ 360 * 2 dataframe... \describe{ \item{column1}{DATE} \item{column2}{Total Sales} } } \usage{ VehicleSales } \description{ Tota...
### Series 9, Task 1 ### cv function cv <- function(fitfn, formula = logupo3 ~ . , data = d.ozone.es, ..., trace = TRUE) { modFrame <- model.frame(formula, data = data) nc <- nrow(data) ssr <- 0 if(trace) cat(" j = ") for(j in 1:nc) { if(trace) cat(if(j %% (nc %/% 10) == 1) paste(j, "") else ".") ## ...
/Week 9/hmw9.R
no_license
porvaznikmichal/ETH-Computational-Statistics
R
false
false
3,298
r
### Series 9, Task 1 ### cv function cv <- function(fitfn, formula = logupo3 ~ . , data = d.ozone.es, ..., trace = TRUE) { modFrame <- model.frame(formula, data = data) nc <- nrow(data) ssr <- 0 if(trace) cat(" j = ") for(j in 1:nc) { if(trace) cat(if(j %% (nc %/% 10) == 1) paste(j, "") else ".") ## ...
\name{data_symbolic_interval_polish_voivodships} \alias{data_symbolic_interval_polish_voivodships} \docType{data} \title{The evaluation of Polish voivodships tourism attractiveness level} \description{The empirical study uses the statistical data referring to the attractiveness level of 18 objects (16 Polish NUTS-2...
/man/data_symbolic_interval_polish_voivodships.rd
no_license
cran/clusterSim
R
false
false
2,471
rd
\name{data_symbolic_interval_polish_voivodships} \alias{data_symbolic_interval_polish_voivodships} \docType{data} \title{The evaluation of Polish voivodships tourism attractiveness level} \description{The empirical study uses the statistical data referring to the attractiveness level of 18 objects (16 Polish NUTS-2...
#' @export makeRLearner.regr.rpart = function() { makeRLearnerRegr( cl = "regr.rpart", package = "rpart", par.set = makeParamSet( makeIntegerLearnerParam(id = "minsplit", default = 20L, lower = 1L), makeIntegerLearnerParam(id = "minbucket", lower = 1L), makeNumericLearnerParam(id = "cp",...
/R/RLearner_regr_rpart.R
no_license
dickoa/mlr
R
false
false
1,622
r
#' @export makeRLearner.regr.rpart = function() { makeRLearnerRegr( cl = "regr.rpart", package = "rpart", par.set = makeParamSet( makeIntegerLearnerParam(id = "minsplit", default = 20L, lower = 1L), makeIntegerLearnerParam(id = "minbucket", lower = 1L), makeNumericLearnerParam(id = "cp",...
\name{removeDuplicatedRulesVR} \alias{removeDuplicatedRulesVR} \title{REMOVE DUPLICATED RULES FROM VALUE REDUCT} \description{It returns a new Value Reduct object without duplicated rules.} \usage{ removeDuplicatedRulesVR(object) } \arguments{ \item{object}{A Value Reduct object} } \value{It returns a Value Reduct ob...
/man/removeDuplicatedRulesVR.Rd
no_license
albhasan/RoughSetKnowledgeReduction
R
false
false
1,046
rd
\name{removeDuplicatedRulesVR} \alias{removeDuplicatedRulesVR} \title{REMOVE DUPLICATED RULES FROM VALUE REDUCT} \description{It returns a new Value Reduct object without duplicated rules.} \usage{ removeDuplicatedRulesVR(object) } \arguments{ \item{object}{A Value Reduct object} } \value{It returns a Value Reduct ob...
conf_hypergeo_U <- function (a, b, z, ip = 0) { if (!is.complex(z)) z = complex(real = z, imaginary = 0 * z) if (!is.complex(a)) a = complex(real = a, imaginary = 0) if (!is.complex(b)) b = complex(real = b, imaginary = 0) ans = kummerM(z, a = a, b = b)/ (cgamma(1...
/Archive/func/sampler/MFVI/util.R
no_license
jereliu/BELA
R
false
false
460
r
conf_hypergeo_U <- function (a, b, z, ip = 0) { if (!is.complex(z)) z = complex(real = z, imaginary = 0 * z) if (!is.complex(a)) a = complex(real = a, imaginary = 0) if (!is.complex(b)) b = complex(real = b, imaginary = 0) ans = kummerM(z, a = a, b = b)/ (cgamma(1...
setwd('/Users/yoshimori/Desktop/Magisterka/New/CloudFunctionOptimizer/plots') library('ggplot2') types = read.table("./data/all_results.csv",header = TRUE) titles = types[seq(1,21,3),1] #titles = c("256", "512", "1024", "1536", "2048", "2560", "3008") limit_time <- types[seq(1,21,3),2] limit_price <- types[seq(1,21,3),...
/plots/execution_time_comparison.R
no_license
PawelBanach/CloudFunctionOptimizer
R
false
false
861
r
setwd('/Users/yoshimori/Desktop/Magisterka/New/CloudFunctionOptimizer/plots') library('ggplot2') types = read.table("./data/all_results.csv",header = TRUE) titles = types[seq(1,21,3),1] #titles = c("256", "512", "1024", "1536", "2048", "2560", "3008") limit_time <- types[seq(1,21,3),2] limit_price <- types[seq(1,21,3),...
# on Mi laptop home.dir <- '/media/lev-genetik/980E73270E72FD96/Liege' progr.dir <- '/home/lev-genetik/Desktop/Projects/liege/src/Lev' # on DELL laptop home.dir <- '/media/lev-genetik/OS/Liege' progr.dir <- '/home/lev-genetik/CEDAR_mt/'
/SetDirectories.R
no_license
Lev-genetik/CEDAR_mt
R
false
false
237
r
# on Mi laptop home.dir <- '/media/lev-genetik/980E73270E72FD96/Liege' progr.dir <- '/home/lev-genetik/Desktop/Projects/liege/src/Lev' # on DELL laptop home.dir <- '/media/lev-genetik/OS/Liege' progr.dir <- '/home/lev-genetik/CEDAR_mt/'
context("Durations") test_that("new_difftime works as expected",{ x <- as.POSIXct("2008-08-03 13:01:59", tz = "UTC") y <- difftime(x + 5 + 30*60 + 60*60 + 14*24*60*60, x, tz = "UTC") attr(y, "tzone") <- NULL diff <- new_difftime(seconds = 5, minutes = 30, days = 0, hour = 1, weeks = 2) expect_that(di...
/R/win-library/3.1/lubridate/tests/test-durations.R
no_license
apexdevelop/working_dir
R
false
false
6,121
r
context("Durations") test_that("new_difftime works as expected",{ x <- as.POSIXct("2008-08-03 13:01:59", tz = "UTC") y <- difftime(x + 5 + 30*60 + 60*60 + 14*24*60*60, x, tz = "UTC") attr(y, "tzone") <- NULL diff <- new_difftime(seconds = 5, minutes = 30, days = 0, hour = 1, weeks = 2) expect_that(di...
library(testthat) library(RStoolbox) Sys.setenv("R_TESTS" = "") ## needed to pass R CMD check: https://github.com/hadley/testthat/issues/144 test_check("RStoolbox")
/tests/testthat.R
no_license
nemochina2008/RStoolbox
R
false
false
171
r
library(testthat) library(RStoolbox) Sys.setenv("R_TESTS" = "") ## needed to pass R CMD check: https://github.com/hadley/testthat/issues/144 test_check("RStoolbox")
## ## Fold-changes from U to PI -- checking that all species are on the same scale. #setwd("/usr/projects/GROseq/NHP/annotations") load("../annotations/fdr.RData") ## Index extent of changes. isresp <- fdr_df$U2PIFDR_H < 0.05 & fdr_df$U2PIFDDR_C < 0.05 & fdr_df$U2PIFDR_M < 0.05 ## Clearly responding in all three. su...
/dataSanityChecks/sanityCheckUPIFoldChanges.R
no_license
Danko-Lab/CD4-Cell-Evolution
R
false
false
807
r
## ## Fold-changes from U to PI -- checking that all species are on the same scale. #setwd("/usr/projects/GROseq/NHP/annotations") load("../annotations/fdr.RData") ## Index extent of changes. isresp <- fdr_df$U2PIFDR_H < 0.05 & fdr_df$U2PIFDDR_C < 0.05 & fdr_df$U2PIFDR_M < 0.05 ## Clearly responding in all three. su...
#' Access files in the current app #' #' NOTE: If you manually change your package name in the DESCRIPTION, #' don't forget to change it here too, and in the config file. #' For a safer name change mechanism, use the `golem::set_golem_name()` function. #' #' @param ... character vectors, specifying subdirectory and fil...
/R/app_config.R
permissive
verbalins/SCORER
R
false
false
1,103
r
#' Access files in the current app #' #' NOTE: If you manually change your package name in the DESCRIPTION, #' don't forget to change it here too, and in the config file. #' For a safer name change mechanism, use the `golem::set_golem_name()` function. #' #' @param ... character vectors, specifying subdirectory and fil...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/military.R \name{military} \alias{military} \title{Generate Random Vector of Military Branches} \usage{ military(n, x = c("Army", "Air Force", "Navy", "Marine Corps", "Coast Guard"), prob = c(0.3785, 0.2334, 0.2218, 0.1366, 0.0296), name = ...
/man/military.Rd
no_license
AlfonsoRReyes/wakefield
R
false
true
2,616
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/military.R \name{military} \alias{military} \title{Generate Random Vector of Military Branches} \usage{ military(n, x = c("Army", "Air Force", "Navy", "Marine Corps", "Coast Guard"), prob = c(0.3785, 0.2334, 0.2218, 0.1366, 0.0296), name = ...
## Put comments here that give an overall description of what your ## functions do ## This creates a "cachedMatrix" which is really a list of functions to get and set a matrix's value and inverse makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y ...
/cachematrix.R
no_license
cimar/ProgrammingAssignment2
R
false
false
1,085
r
## Put comments here that give an overall description of what your ## functions do ## This creates a "cachedMatrix" which is really a list of functions to get and set a matrix's value and inverse makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y ...
#scatter plot matrix pairs(Cars) #Correlation matrix cor(Cars) #Regression model on all 4 variables& summary #the linear model of interest model.car <- lm(MPG~VOL+HP+SP+WT,data=Cars) summary(model.car) ######## Scatter plot matrix with Correlations inserted in graph panel.cor <- func...
/cars.R
no_license
AkshayChopade07/R-Codes
R
false
false
1,730
r
#scatter plot matrix pairs(Cars) #Correlation matrix cor(Cars) #Regression model on all 4 variables& summary #the linear model of interest model.car <- lm(MPG~VOL+HP+SP+WT,data=Cars) summary(model.car) ######## Scatter plot matrix with Correlations inserted in graph panel.cor <- func...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Clustering.R \name{get_fcs_cell_clustering_vector} \alias{get_fcs_cell_clustering_vector} \title{Create the cluster annotation as one vector for cluster info extraction from fcs file} \usage{ get_fcs_cell_clustering_vector(cell_clustering_lis...
/man/get_fcs_cell_clustering_vector.Rd
no_license
AlexanderKononov/cytofBrowserLite
R
false
true
514
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Clustering.R \name{get_fcs_cell_clustering_vector} \alias{get_fcs_cell_clustering_vector} \title{Create the cluster annotation as one vector for cluster info extraction from fcs file} \usage{ get_fcs_cell_clustering_vector(cell_clustering_lis...
#' @title k-Nearest-Neighbor Regression Learner #' #' @name mlr_learners_regr.kknn #' #' @description #' k-Nearest-Neighbor regression. #' Calls [kknn::kknn()] from package \CRANpkg{kknn}. #' #' @section Initial parameter values: #' - `store_model`: #' - See note. #' #' @template note_kknn #' #' @templateVar id regr....
/R/LearnerRegrKKNN.R
no_license
cran/mlr3learners
R
false
false
2,583
r
#' @title k-Nearest-Neighbor Regression Learner #' #' @name mlr_learners_regr.kknn #' #' @description #' k-Nearest-Neighbor regression. #' Calls [kknn::kknn()] from package \CRANpkg{kknn}. #' #' @section Initial parameter values: #' - `store_model`: #' - See note. #' #' @template note_kknn #' #' @templateVar id regr....
get_risk_group <- function (){ cwd<-getwd() group.data<-NULL file.data<-paste0(localsettings$data.dir,"group.data.csv") if (file.exists(file.data)){ group.data<-read.csv(file=file.data) }else{ source("/Users/benjaminsmith/Documents/msm-project/behavioral-analysis/load_real_life_measures_v2.R") mea...
/get_risk_group.R
permissive
bjsmith/reversallearning
R
false
false
684
r
get_risk_group <- function (){ cwd<-getwd() group.data<-NULL file.data<-paste0(localsettings$data.dir,"group.data.csv") if (file.exists(file.data)){ group.data<-read.csv(file=file.data) }else{ source("/Users/benjaminsmith/Documents/msm-project/behavioral-analysis/load_real_life_measures_v2.R") mea...
# Accomplish the following three goals: # # 1. select() all columns that do NOT contain the word "total", # since if we have the male and female data, we can always # recreate the total count in a separate column, if we want it. # Hint: Use the contains() function, which you'll # find detailed in 'Special functions' se...
/mit-ml/stats/14_310x_Intro_to_R/Tidying_Data_with_tidyr/scripts/script8-correct.R
permissive
stepinski/machinelearning
R
false
false
790
r
# Accomplish the following three goals: # # 1. select() all columns that do NOT contain the word "total", # since if we have the male and female data, we can always # recreate the total count in a separate column, if we want it. # Hint: Use the contains() function, which you'll # find detailed in 'Special functions' se...
#this is the simulated version of the data file datafile0<-'./Data/NCDB.csv' lookup <- './Data/NCDB_CodeLookup.csv' if(file.exists('config.R')) source('config.R')
/config_public.R
no_license
frkndrsn/TSCI5050
R
false
false
163
r
#this is the simulated version of the data file datafile0<-'./Data/NCDB.csv' lookup <- './Data/NCDB_CodeLookup.csv' if(file.exists('config.R')) source('config.R')
############################################################################### # Basic setup ############################################################################### # Source setup file source(file.path("/xxx/_setup.R")) source(file.path("/xxx/funcs.R")) # Set working directory study="/xxx/" setwd(s...
/t_ae.R
no_license
izumin36/test_rep01
R
false
false
4,889
r
############################################################################### # Basic setup ############################################################################### # Source setup file source(file.path("/xxx/_setup.R")) source(file.path("/xxx/funcs.R")) # Set working directory study="/xxx/" setwd(s...
#' Create Load Report #' #' Create a 2-page pdf file report of a rating-curve load model. The #'report contains the text output and 6 diagnostic plots. #' #' @param x the load model. #' @param file the output file base name; the .pdf suffix #'is appended to make the actual file name. if missing, then the #'name of \...
/R/loadReport.R
permissive
katakagi/rloadest_test
R
false
false
1,051
r
#' Create Load Report #' #' Create a 2-page pdf file report of a rating-curve load model. The #'report contains the text output and 6 diagnostic plots. #' #' @param x the load model. #' @param file the output file base name; the .pdf suffix #'is appended to make the actual file name. if missing, then the #'name of \...
#this is a quick script to clean the names in the appendix from McKechnie & Wolf library(ape) tree <- read.tree("bird.tre") #set strings as factors to false to avoid problems later traits <- read.csv("McKechnie_Wolf.csv", stringsAsFactors=FALSE) #what names are in the trait database that aren't in the tree? exami...
/R/script_clean_McWolf_bird.R
permissive
uyedaj/bmr
R
false
false
1,199
r
#this is a quick script to clean the names in the appendix from McKechnie & Wolf library(ape) tree <- read.tree("bird.tre") #set strings as factors to false to avoid problems later traits <- read.csv("McKechnie_Wolf.csv", stringsAsFactors=FALSE) #what names are in the trait database that aren't in the tree? exami...
#merge power results with the effect size as 0.08 level setwd('/data/zhangh24/breast_cancer_data_analysis/') filedir <- '/data/zhangh24/breast_cancer_data_analysis/simulation/power/result/' files <- dir(filedir,pattern="simu_result",full.names=T) total <- 0 #n.loop = number of simulation setting* number of sample size ...
/simulation/power/code/merge_power.R
no_license
andrewhaoyu/breast_cancer_data_analysis
R
false
false
17,633
r
#merge power results with the effect size as 0.08 level setwd('/data/zhangh24/breast_cancer_data_analysis/') filedir <- '/data/zhangh24/breast_cancer_data_analysis/simulation/power/result/' files <- dir(filedir,pattern="simu_result",full.names=T) total <- 0 #n.loop = number of simulation setting* number of sample size ...
test_that("chance.misc works as expected", { set.seed(86858246) expect_that(chance.pick(c(1, 2, 3)), equals(1)) expect_that(chance.weighted(c(1, 2, 3), c(0.5, 0.3, 0.2)), equals(2)) expect_that(chance.hash(), equals("3c996c26d0e9675cad9d1025783791ad7e6d936d94c058f3f9e3797eb897d138")) expect_that(c...
/tests/testthat/test-misc.R
no_license
martineastwood/chancer
R
false
false
567
r
test_that("chance.misc works as expected", { set.seed(86858246) expect_that(chance.pick(c(1, 2, 3)), equals(1)) expect_that(chance.weighted(c(1, 2, 3), c(0.5, 0.3, 0.2)), equals(2)) expect_that(chance.hash(), equals("3c996c26d0e9675cad9d1025783791ad7e6d936d94c058f3f9e3797eb897d138")) expect_that(c...
library(magick) library(magrittr) path1 <- "/Users/alexis_pro/Documents/GitHub/covid19_vaccination_africa/maps" setwd(path1) list.files(path=path1, pattern = '*.png', full.names = TRUE) %>% image_read() %>% # reads each path file image_join() %>% # joins image image_animate(fps=1) %>% # animates, can opt for ...
/vaccine_animation_code.R
no_license
alexis-ribal/covid19_vaccination_africa
R
false
false
812
r
library(magick) library(magrittr) path1 <- "/Users/alexis_pro/Documents/GitHub/covid19_vaccination_africa/maps" setwd(path1) list.files(path=path1, pattern = '*.png', full.names = TRUE) %>% image_read() %>% # reads each path file image_join() %>% # joins image image_animate(fps=1) %>% # animates, can opt for ...
\encoding{UTF-8} \name{p3state.msm-package} \alias{p3state.msm-package} \alias{p3state.msm} \docType{package} \title{Analyzing survival data from an illness-death model} \description{ \pkg{p3state.msm} provides functions for estimating semi-parametric regression models but also to implement nonparametric esti...
/man/p3state.msm-package.Rd
no_license
cran/p3state.msm
R
false
false
1,941
rd
\encoding{UTF-8} \name{p3state.msm-package} \alias{p3state.msm-package} \alias{p3state.msm} \docType{package} \title{Analyzing survival data from an illness-death model} \description{ \pkg{p3state.msm} provides functions for estimating semi-parametric regression models but also to implement nonparametric esti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_q.R \name{add_q.tbl_uvregression} \alias{add_q.tbl_uvregression} \title{Add a column of q-values to account for multiple comparisons} \usage{ \method{add_q}{tbl_uvregression}(x, method = "fdr", pvalue_fun = x$inputs$pvalue_fun, ...) } \...
/man/add_q.tbl_uvregression.Rd
permissive
Glewando/gtsummary
R
false
true
1,927
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_q.R \name{add_q.tbl_uvregression} \alias{add_q.tbl_uvregression} \title{Add a column of q-values to account for multiple comparisons} \usage{ \method{add_q}{tbl_uvregression}(x, method = "fdr", pvalue_fun = x$inputs$pvalue_fun, ...) } \...
## app.R ## library(shiny) library(shinydashboard) library(magrittr) ## Auto Addition [>7]: verweisen Abschnitte auf nur einen weiteren, so soll dieser direkt angehängt werden. ## Würfel, Stats, Inventar ## Kampf ## Ende-Marker [E+], [E-1] source("books.R") ui <- dashboardPage( dashboardHeader(title = "Shiny Books...
/app.R
no_license
AlphaOrange/books
R
false
false
1,110
r
## app.R ## library(shiny) library(shinydashboard) library(magrittr) ## Auto Addition [>7]: verweisen Abschnitte auf nur einen weiteren, so soll dieser direkt angehängt werden. ## Würfel, Stats, Inventar ## Kampf ## Ende-Marker [E+], [E-1] source("books.R") ui <- dashboardPage( dashboardHeader(title = "Shiny Books...
if (!require("shiny")) { install.packages("shiny", dependencies = TRUE) ; library(shiny)} if (!require("shinyjs")) { install.packages("shinyjs", dependencies = TRUE) ; library(shinyjs)} if (!require("shinyWidgets")) { install.packages("shinyWidgets", dependencies = TRUE) ; library(shinyWidgets)} if (!require("shinythe...
/ui.R
no_license
KaranKakouei/KaranHub
R
false
false
32,221
r
if (!require("shiny")) { install.packages("shiny", dependencies = TRUE) ; library(shiny)} if (!require("shinyjs")) { install.packages("shinyjs", dependencies = TRUE) ; library(shinyjs)} if (!require("shinyWidgets")) { install.packages("shinyWidgets", dependencies = TRUE) ; library(shinyWidgets)} if (!require("shinythe...
#Read data data <- read.csv2("household_power_consumption.txt", sep = ";",header=T, fill=TRUE, na.strings='?') #convert data columns data$Date <- as.Date(data$Date, format="%d/%m/%Y") #subset data data <- subset(data,Date>="2007-02-01" & Date<="2007-02-02") # Convert columns to numeric for(i in c(3:9)) {data[,i] <- ...
/plot2.R
no_license
cschnider/ExData_Plotting1
R
false
false
861
r
#Read data data <- read.csv2("household_power_consumption.txt", sep = ";",header=T, fill=TRUE, na.strings='?') #convert data columns data$Date <- as.Date(data$Date, format="%d/%m/%Y") #subset data data <- subset(data,Date>="2007-02-01" & Date<="2007-02-02") # Convert columns to numeric for(i in c(3:9)) {data[,i] <- ...
# Read BioLector data # Have working directory set to investigation folder # Save data in a list dat <- list() #Define data type dat$data_type = "metabolite_measurements" # Define dataset study token dat$study_id <- "SDY010" dat$study_token <- "MetabG" dat$study_sub <- NA # Define glucose as carbon source for plot ...
/01_studies/SDY010_MetabG_metabolites_G/ASY004_metabolite_glucose_glycogen/read_data.R
no_license
pfennigt/e_coli_growth
R
false
false
795
r
# Read BioLector data # Have working directory set to investigation folder # Save data in a list dat <- list() #Define data type dat$data_type = "metabolite_measurements" # Define dataset study token dat$study_id <- "SDY010" dat$study_token <- "MetabG" dat$study_sub <- NA # Define glucose as carbon source for plot ...
\name{settler.survival} \alias{settler.survival} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Settler-recruit survival function } \description{ } \usage{ settler.survival(S,a) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{S}{ Number of settlers (s...
/man/settler.survival.Rd
no_license
MarcoAndrello/MetaPopGen_0.0.8
R
false
false
897
rd
\name{settler.survival} \alias{settler.survival} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Settler-recruit survival function } \description{ } \usage{ settler.survival(S,a) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{S}{ Number of settlers (s...
\name{exportPLINKSet} \alias{exportPLINKSet} \docType{package} \title{ exportPLINKSet } \description{ Simple function using Rcpp to write the gene set to a file in the PLINK set format. } \usage{ exportPLINKSet(geneSets, fname) } \arguments{ \item{geneSets}{An object created by the \code{makeGeneSet()} functio...
/fuzzedpackages/snplist/man/exportPLINKSet.Rd
no_license
akhikolla/testpackages
R
false
false
632
rd
\name{exportPLINKSet} \alias{exportPLINKSet} \docType{package} \title{ exportPLINKSet } \description{ Simple function using Rcpp to write the gene set to a file in the PLINK set format. } \usage{ exportPLINKSet(geneSets, fname) } \arguments{ \item{geneSets}{An object created by the \code{makeGeneSet()} functio...
### Null model simulation runs ### rm(list=ls()) library(GMSE) library(scales) library(RColorBrewer) source("helpers.R") source("gmse_apply_helpers.R") source("sims/global_paras.R") ################################### ################################### ################################### sim_set_name = "nullModel" ...
/sims/nullModel/index_nullModel.R
no_license
jejoenje/gmse_vary
R
false
false
4,516
r
### Null model simulation runs ### rm(list=ls()) library(GMSE) library(scales) library(RColorBrewer) source("helpers.R") source("gmse_apply_helpers.R") source("sims/global_paras.R") ################################### ################################### ################################### sim_set_name = "nullModel" ...
# LIMPIAR DATOS #ANALISIS DE DATOS rm(list = ls()) # LIBRERIAS UTILIZADAS library(psych) library(readr) library(dplyr) # FUNCIONES IMPLEMENTADAS clc <- function(){ cat("\014") } maxs <- function(dataframe){ conts = c(0, 0, 0, 0, 0) k = seq(1, dim(dataframe)[1]) for(i in k){ # cat(i, "\n") row = c(da...
/Analisis.r
no_license
Gabrri/PROYECTO-ESTADISTICA
R
false
false
5,517
r
# LIMPIAR DATOS #ANALISIS DE DATOS rm(list = ls()) # LIBRERIAS UTILIZADAS library(psych) library(readr) library(dplyr) # FUNCIONES IMPLEMENTADAS clc <- function(){ cat("\014") } maxs <- function(dataframe){ conts = c(0, 0, 0, 0, 0) k = seq(1, dim(dataframe)[1]) for(i in k){ # cat(i, "\n") row = c(da...
# Test case 87 Input <- matrix(c(1,2,4, 1,2,4, 1,2,4), byrow = TRUE, nrow = 3); Output <- matrix(c(3,4, 3,4, 3,4), byrow = TRUE, nrow = 3); Link <- matrix(c(2, 2, 2), byrow = TRUE, nrow = 3); ...
/2_nsbm_approach/Nsbm.function/tests/Test_case_87.R
no_license
thomaskrupa/thesis
R
false
false
3,843
r
# Test case 87 Input <- matrix(c(1,2,4, 1,2,4, 1,2,4), byrow = TRUE, nrow = 3); Output <- matrix(c(3,4, 3,4, 3,4), byrow = TRUE, nrow = 3); Link <- matrix(c(2, 2, 2), byrow = TRUE, nrow = 3); ...
`pnet` <- function(MN, add=FALSE, col = gray(.7), border='black', lwd=1 ) { ########### if(missing(add)) { add=FALSE } if(missing(col)) { col = gray(.7) } if(missing(lwd)) { lwd=1 } if(missing(border)) { border='black' } ###### pnet(MN) ###### pnet(MN, col = 'brown' , border='black', lwd...
/R/pnet.R
no_license
cran/RFOC
R
false
false
595
r
`pnet` <- function(MN, add=FALSE, col = gray(.7), border='black', lwd=1 ) { ########### if(missing(add)) { add=FALSE } if(missing(col)) { col = gray(.7) } if(missing(lwd)) { lwd=1 } if(missing(border)) { border='black' } ###### pnet(MN) ###### pnet(MN, col = 'brown' , border='black', lwd...
best <- function(state, outcome) { data <- readDataAndCheckState(state) dataCol <- getOutcomeDataColumn(outcome) stateHospitals <- data[data$State == state,] subdata <- data.frame(name=stateHospitals[[2]], outcome=as.numeric(stateHospitals[[dataCol]])) bestOutcome <- min(subdata$outcome[!i...
/best.R
no_license
darja/datascience_hospital_quality
R
false
false
454
r
best <- function(state, outcome) { data <- readDataAndCheckState(state) dataCol <- getOutcomeDataColumn(outcome) stateHospitals <- data[data$State == state,] subdata <- data.frame(name=stateHospitals[[2]], outcome=as.numeric(stateHospitals[[dataCol]])) bestOutcome <- min(subdata$outcome[!i...
\name{algdat.pfull} \alias{algdat.pfull} \docType{data} \title{ All Partitions of 25 Precincts into 3 Congressional Districts (No Population Constraint) } \description{ This data set contains demographic and geographic information about 25 contiguous precincts in the state of Florida. The data lists all possible partit...
/man/algdat.pfull.Rd
no_license
HJ08003/redist
R
false
false
1,532
rd
\name{algdat.pfull} \alias{algdat.pfull} \docType{data} \title{ All Partitions of 25 Precincts into 3 Congressional Districts (No Population Constraint) } \description{ This data set contains demographic and geographic information about 25 contiguous precincts in the state of Florida. The data lists all possible partit...
\name{math} \alias{math} \alias{Ops,vector,timeSeries-method} \alias{Ops,array,timeSeries-method} \alias{Ops,ts,timeSeries-method} \alias{Ops,timeSeries,vector-method} \alias{Ops,timeSeries,array-method} \alias{Ops,timeSeries,ts-method} \alias{Ops,timeSeries,timeSeries-method} \alias{-,timeSeries,missing-method} \al...
/pkg/timeSeries/man/methods-mathOps.Rd
no_license
xashely/rmetrics
R
false
false
3,657
rd
\name{math} \alias{math} \alias{Ops,vector,timeSeries-method} \alias{Ops,array,timeSeries-method} \alias{Ops,ts,timeSeries-method} \alias{Ops,timeSeries,vector-method} \alias{Ops,timeSeries,array-method} \alias{Ops,timeSeries,ts-method} \alias{Ops,timeSeries,timeSeries-method} \alias{-,timeSeries,missing-method} \al...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/translate-qplot-lattice.r \name{translate_qplot_lattice} \alias{translate_qplot_lattice} \title{Translating between qplot and lattice} \description{ The major difference between lattice and ggplot2 is that lattice uses a formula based...
/man/translate_qplot_lattice.Rd
no_license
mteremko84/ggplot2
R
false
false
2,968
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/translate-qplot-lattice.r \name{translate_qplot_lattice} \alias{translate_qplot_lattice} \title{Translating between qplot and lattice} \description{ The major difference between lattice and ggplot2 is that lattice uses a formula based...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/render.R \name{moon_reader} \alias{moon_reader} \alias{tsukuyomi} \title{An R Markdown output format for remark.js slides} \usage{ moon_reader( css = c("default", "default-fonts"), self_contained = FALSE, seal = TRUE, yolo = FALSE, ...
/man/moon_reader.Rd
permissive
SylvainLapoix/slides_datactivist
R
false
true
4,410
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/render.R \name{moon_reader} \alias{moon_reader} \alias{tsukuyomi} \title{An R Markdown output format for remark.js slides} \usage{ moon_reader( css = c("default", "default-fonts"), self_contained = FALSE, seal = TRUE, yolo = FALSE, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/survival_reg_flexsurv.R \name{details_survival_reg_flexsurv} \alias{details_survival_reg_flexsurv} \title{Parametric survival regression} \description{ \code{\link[flexsurv:flexsurvreg]{flexsurv::flexsurvreg()}} fits a parametric survival mod...
/man/details_survival_reg_flexsurv.Rd
permissive
tidymodels/parsnip
R
false
true
2,629
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/survival_reg_flexsurv.R \name{details_survival_reg_flexsurv} \alias{details_survival_reg_flexsurv} \title{Parametric survival regression} \description{ \code{\link[flexsurv:flexsurvreg]{flexsurv::flexsurvreg()}} fits a parametric survival mod...
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinverse <- function(inverse) inv <<- inverse getinverse <- function() inv list(set=set, get=get, setinverse=setinverse, getinverse=getinverse) } cacheSolv...
/cachematrix.R
no_license
rthtyhyhy/ProgrammingAssignment2
R
false
false
524
r
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinverse <- function(inverse) inv <<- inverse getinverse <- function() inv list(set=set, get=get, setinverse=setinverse, getinverse=getinverse) } cacheSolv...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615833964-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,048
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
\name{rglSetMouseCbTrackball} \alias{rglSetMouseCbTrackball} \title{Link the current device with others to share mouse control using the 'trackball' mode.} \description{'rglSetMouseCbTrackball' sets mouse "trackball" callback for given \code{button} on selected device(s), such that interaction made using the given \cod...
/man/rglSetMouseCbTrackball.Rd
no_license
tsieger/tsiMisc
R
false
false
1,146
rd
\name{rglSetMouseCbTrackball} \alias{rglSetMouseCbTrackball} \title{Link the current device with others to share mouse control using the 'trackball' mode.} \description{'rglSetMouseCbTrackball' sets mouse "trackball" callback for given \code{button} on selected device(s), such that interaction made using the given \cod...
### R code from vignette source 'RcppGSL-unitTests.Rnw' ################################################### ### code chunk number 1: RcppGSL-unitTests.Rnw:12-16 ################################################### require(RcppGSL) prettyVersion <- packageDescription("RcppGSL")$Version prettyDate <- format(Sys.Date(), "...
/data/genthat_extracted_code/RcppGSL/vignettes/RcppGSL-unitTests.R
no_license
surayaaramli/typeRrh
R
false
false
1,675
r
### R code from vignette source 'RcppGSL-unitTests.Rnw' ################################################### ### code chunk number 1: RcppGSL-unitTests.Rnw:12-16 ################################################### require(RcppGSL) prettyVersion <- packageDescription("RcppGSL")$Version prettyDate <- format(Sys.Date(), "...
write_uef_event_records <- function() { uef <- events %>% filter(fields.Yliopisto == 'Itä-Suomen yliopisto') %>% select(fields.URL) uef <- as.character(uef) session <- bow(uef, user_agent = "sonkkilat@gmail.com") nodes <- scrape(session) %>% html_nodes(xpa...
/uef_polite.R
no_license
tts/onlinedefences
R
false
false
5,548
r
write_uef_event_records <- function() { uef <- events %>% filter(fields.Yliopisto == 'Itä-Suomen yliopisto') %>% select(fields.URL) uef <- as.character(uef) session <- bow(uef, user_agent = "sonkkilat@gmail.com") nodes <- scrape(session) %>% html_nodes(xpa...
# Import-Export-Practice.R # # Script for practicing data import and export from R. ######################################################### ## do some setup first... ######################################################### # Load the readxl library for working with Excel files library(readxl) # Set up some variabl...
/Lecture_Slides/R_Data_Import-Export_Practice.R
no_license
nredecker/REM504-DataScience
R
false
false
3,928
r
# Import-Export-Practice.R # # Script for practicing data import and export from R. ######################################################### ## do some setup first... ######################################################### # Load the readxl library for working with Excel files library(readxl) # Set up some variabl...
lcars2357 <- data.frame( series = 2357L, name = c("pale-canary", "tanoi", "golden-tanoi", "neon-carrot", "eggplant", "lilac", "anakiwa", "mariner", "bahama-blue"), value = c("#FFFF99", "#FFCC99", "#FFCC66", "#FF9933", "#664466", "#CC99CC", "#99CCFF", "#3366CC", "#006699"), stringsAsFactors = FALSE ) lcars2369 ...
/data-raw/data.R
permissive
RTrek/trekcolors
R
false
false
5,459
r
lcars2357 <- data.frame( series = 2357L, name = c("pale-canary", "tanoi", "golden-tanoi", "neon-carrot", "eggplant", "lilac", "anakiwa", "mariner", "bahama-blue"), value = c("#FFFF99", "#FFCC99", "#FFCC66", "#FF9933", "#664466", "#CC99CC", "#99CCFF", "#3366CC", "#006699"), stringsAsFactors = FALSE ) lcars2369 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stochasim_functions.R \name{est_mu} \alias{est_mu} \title{Approximate relative bank strength} \usage{ est_mu(H, d) } \arguments{ \item{H}{effective rooting depth for riparian vegetation (m)} \item{d}{mean hydraulic depth at channel-forming f...
/man/est_mu.Rd
no_license
bceaton/stochasim
R
false
true
592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stochasim_functions.R \name{est_mu} \alias{est_mu} \title{Approximate relative bank strength} \usage{ est_mu(H, d) } \arguments{ \item{H}{effective rooting depth for riparian vegetation (m)} \item{d}{mean hydraulic depth at channel-forming f...
## These two functions are used to create a special object that stores a matrix and cache's its inverse. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function()...
/cachematrix.R
no_license
carlosjgm/ProgrammingAssignment2
R
false
false
958
r
## These two functions are used to create a special object that stores a matrix and cache's its inverse. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function()...
/clase 26 febrero 2018.R
no_license
JueliVilchis/Software_Actuarial_III
R
false
false
1,582
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/confidence_intervals.R \name{predict_prob} \alias{predict_prob} \title{Estimation of Failure Probabilities for Parametric Lifetime Distributions} \usage{ predict_prob(q, loc_sc_params, distribution = c("weibull", "lognormal", "loglogistic",...
/man/predict_prob.Rd
no_license
fabysbe/weibulltools
R
false
true
1,876
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/confidence_intervals.R \name{predict_prob} \alias{predict_prob} \title{Estimation of Failure Probabilities for Parametric Lifetime Distributions} \usage{ predict_prob(q, loc_sc_params, distribution = c("weibull", "lognormal", "loglogistic",...
# DTU31761A3: Wind Power Output Prediction using Regression # Functions to ouput the result # author: Edward J. Xu # date: May 22th, 2019 ######################################################################################################################## #' To output the result in a csv with a specific name outputR...
/src/FuncOutput.R
permissive
ArjunReddy07/WindPowerForecast
R
false
false
1,135
r
# DTU31761A3: Wind Power Output Prediction using Regression # Functions to ouput the result # author: Edward J. Xu # date: May 22th, 2019 ######################################################################################################################## #' To output the result in a csv with a specific name outputR...
library(nimble) DeerEcervi <- read.table('DeerEcervi.txt', header = TRUE) ## Create presence/absence data from counts. DeerEcervi$Ecervi.01 <- DeerEcervi$Ecervi DeerEcervi$Ecervi.01[DeerEcervi$Ecervi>0] <- 1 ## Center Length for better interpretation DeerEcervi$cLength <- DeerEcervi$Length - mean(DeerEcervi$Length) ##...
/Content/examples/DeerEcervi/load_DeerEcervi.R
no_license
paritoshkroy/nimble-virtual-2020
R
false
false
2,200
r
library(nimble) DeerEcervi <- read.table('DeerEcervi.txt', header = TRUE) ## Create presence/absence data from counts. DeerEcervi$Ecervi.01 <- DeerEcervi$Ecervi DeerEcervi$Ecervi.01[DeerEcervi$Ecervi>0] <- 1 ## Center Length for better interpretation DeerEcervi$cLength <- DeerEcervi$Length - mean(DeerEcervi$Length) ##...
#### Seurat Main Cluster analysis on Orchestra library(Seurat) library(dplyr) library(Matrix) library(methods) #Inputs species="m" base_dir <- "/n/scratch2/bf78/MIASingleCell/MIA18" projectName = "MIA18" pc_num = 20; res=0.4; min_genes = 500; load("seurat_mat_NewFinalE18.Robj") load("cd_s_comb.Robj") #Create CellVe...
/scRNA-seq/MIA18_ORGGESubclustering.R
no_license
kbruch/Maternal-Immune-Activation-Project
R
false
false
3,021
r
#### Seurat Main Cluster analysis on Orchestra library(Seurat) library(dplyr) library(Matrix) library(methods) #Inputs species="m" base_dir <- "/n/scratch2/bf78/MIASingleCell/MIA18" projectName = "MIA18" pc_num = 20; res=0.4; min_genes = 500; load("seurat_mat_NewFinalE18.Robj") load("cd_s_comb.Robj") #Create CellVe...
# test that deparase and n2_num gives correct output p <- study_parameters(n1 = 3:4, n2 = 5, T_end = 10, icc_pre_subject = 0.6, icc_pre_cluster = 0, cor_cluster = -0.5, cor_subject = -...
/tests/local/dev_test_print.R
no_license
rpsychologist/powerlmm
R
false
false
6,330
r
# test that deparase and n2_num gives correct output p <- study_parameters(n1 = 3:4, n2 = 5, T_end = 10, icc_pre_subject = 0.6, icc_pre_cluster = 0, cor_cluster = -0.5, cor_subject = -...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/engine_keras.R \name{fit_keras_es} \alias{fit_keras_es} \title{Fit neural network by keras package with early stopping} \usage{ fit_keras_es( x, y, eval_x, eval_y, task_type, keras_model, epoch = 10000L, patience = 20L, seed...
/man/fit_keras_es.Rd
permissive
five-dots/ml4e
R
false
true
918
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/engine_keras.R \name{fit_keras_es} \alias{fit_keras_es} \title{Fit neural network by keras package with early stopping} \usage{ fit_keras_es( x, y, eval_x, eval_y, task_type, keras_model, epoch = 10000L, patience = 20L, seed...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init_mart.R \name{init_mart_human} \alias{init_mart_human} \title{Initialize biomaRt for hsapiens} \usage{ init_mart_human() } \value{ None. Creates a global variable called mart_human. } \description{ Initialize biomaRt for hsapiens }
/man/init_mart_human.Rd
no_license
tgrimes/miscgene
R
false
true
314
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init_mart.R \name{init_mart_human} \alias{init_mart_human} \title{Initialize biomaRt for hsapiens} \usage{ init_mart_human() } \value{ None. Creates a global variable called mart_human. } \description{ Initialize biomaRt for hsapiens }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/finspace_operations.R \name{finspace_create_kx_cluster} \alias{finspace_create_kx_cluster} \title{Creates a new kdb cluster} \usage{ finspace_create_kx_cluster( clientToken = NULL, environmentId, clusterName, clusterType, databases ...
/cran/paws.management/man/finspace_create_kx_cluster.Rd
permissive
paws-r/paws
R
false
true
4,540
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/finspace_operations.R \name{finspace_create_kx_cluster} \alias{finspace_create_kx_cluster} \title{Creates a new kdb cluster} \usage{ finspace_create_kx_cluster( clientToken = NULL, environmentId, clusterName, clusterType, databases ...
# Create Silva typestrain database from fasta file # Retrieve a fasta file from http://www.arb-silva.de/search/ # strain: [T] # Sequences occur in: [x]Ref(NR) # Taxonomy: Silva Ref NR library(warppipe) library(dplyr) library(stringr) silva_NR_typestrains <- seq_tbl("data-raw/silva_SSUr119_silvaRefNR.fasta") silva_NR_...
/data-raw/silva_ref_nr.R
no_license
linearregression/warppipe
R
false
false
695
r
# Create Silva typestrain database from fasta file # Retrieve a fasta file from http://www.arb-silva.de/search/ # strain: [T] # Sequences occur in: [x]Ref(NR) # Taxonomy: Silva Ref NR library(warppipe) library(dplyr) library(stringr) silva_NR_typestrains <- seq_tbl("data-raw/silva_SSUr119_silvaRefNR.fasta") silva_NR_...
\name{predict.FRESAsignature} \alias{predict.FRESAsignature} \title{Predicts \code{\link{CVsignature}} models} \description{ This function predicts the outcome from a FRESAsignature model } \usage{ \method{predict}{FRESAsignature}(object,...) } \arguments{ \item{object}{ An object of class FRESAsignature } \ite...
/fuzzedpackages/FRESA.CAD/man/predict.FRESAsignature.Rd
no_license
akhikolla/testpackages
R
false
false
560
rd
\name{predict.FRESAsignature} \alias{predict.FRESAsignature} \title{Predicts \code{\link{CVsignature}} models} \description{ This function predicts the outcome from a FRESAsignature model } \usage{ \method{predict}{FRESAsignature}(object,...) } \arguments{ \item{object}{ An object of class FRESAsignature } \ite...
# This is the Multiple Regression for comp*conversion in the BTx642*Tx7000 mapping data # Written Feb, 2014 by Robert Anderson for the BTx642*Tx7000 comp*conversion publication # Set directory, load MLR library setwd("C:/Users/Robert/Google Drive/Mullet Lab/Projects/QTL Mapping projects/BTx642 x Tx7000") getwd(...
/R script for multiple linear regression wall-642x7000.R
no_license
Patchx/R_Projects
R
false
false
4,955
r
# This is the Multiple Regression for comp*conversion in the BTx642*Tx7000 mapping data # Written Feb, 2014 by Robert Anderson for the BTx642*Tx7000 comp*conversion publication # Set directory, load MLR library setwd("C:/Users/Robert/Google Drive/Mullet Lab/Projects/QTL Mapping projects/BTx642 x Tx7000") getwd(...
## You should create one R script called run_analysis.R that does the following. ## 1.Merges the training and the test sets to create one data set. ## load necessary packages if (is.element('dplyr', installed.packages()[,1]) == FALSE) { + install.packages('dplyr') } library(dplyr) ## set working di...
/run_analysis.R
no_license
SEMHerman/Tidy-Data
R
false
false
2,352
r
## You should create one R script called run_analysis.R that does the following. ## 1.Merges the training and the test sets to create one data set. ## load necessary packages if (is.element('dplyr', installed.packages()[,1]) == FALSE) { + install.packages('dplyr') } library(dplyr) ## set working di...
\name{BPSpriorElicit} \alias{BPSpriorElicit} \title{Function to Set Hyperparameters of BPS Priors} \description{ A function to set the hyperparameters of a first order autoregressive BPS prior distribution, approximately assigning constant prior mean hazard rate and corresponding coefficient of variation. } \usage{BPSp...
/man/BPSpriorElicit.Rd
no_license
cran/BayHaz
R
false
false
2,812
rd
\name{BPSpriorElicit} \alias{BPSpriorElicit} \title{Function to Set Hyperparameters of BPS Priors} \description{ A function to set the hyperparameters of a first order autoregressive BPS prior distribution, approximately assigning constant prior mean hazard rate and corresponding coefficient of variation. } \usage{BPSp...
# data-raw/process-raceiatdat.R # Data import and processing pipeline # Create mini sample dataset to build into package # Start with clean N = 8000 dataset raceiatdat8000 <- haven::read_sav(file = "https://github.com/lizredford/explore-iat/blob/master/raceiat_N7983.sav?raw=true") # Convert variable names to lowercase...
/data-raw/process-raceiatdat8000.R
no_license
justinmillar/projectimplicit
R
false
false
940
r
# data-raw/process-raceiatdat.R # Data import and processing pipeline # Create mini sample dataset to build into package # Start with clean N = 8000 dataset raceiatdat8000 <- haven::read_sav(file = "https://github.com/lizredford/explore-iat/blob/master/raceiat_N7983.sav?raw=true") # Convert variable names to lowercase...
############################################################################################################################# rm(list=ls()) ############################################################################################################################# test <- TRUE # set test to FALSE to run the real simul...
/code/scenarios_micro/micro_v0.3_sensitivity/MoreCECD_SGUS/3xELF_micro.R
no_license
KateDoan/gice
R
false
false
15,736
r
############################################################################################################################# rm(list=ls()) ############################################################################################################################# test <- TRUE # set test to FALSE to run the real simul...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_games.R \name{get_games} \alias{get_games} \title{Fetch the games from the opendota API.} \usage{ get_games(game_vec, wait_time = 1, output = "all", verbose = TRUE) } \arguments{ \item{game_vec}{Numeric vector of match ID's} \...
/man/get_games.Rd
no_license
cran/opendotaR
R
false
true
1,204
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_games.R \name{get_games} \alias{get_games} \title{Fetch the games from the opendota API.} \usage{ get_games(game_vec, wait_time = 1, output = "all", verbose = TRUE) } \arguments{ \item{game_vec}{Numeric vector of match ID's} \...
rankall <- function(outcome, num = "best") { ## Read outcome data outcomeAll <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ## Check that outcome are valid if (!is.element(outcome, c("heart attack", "heart failure", "pneumonia"))) { stop("Error: invalid outcome") } ...
/rankall.R
no_license
d-roy/ProgrammingAssignment3
R
false
false
1,626
r
rankall <- function(outcome, num = "best") { ## Read outcome data outcomeAll <- read.csv("outcome-of-care-measures.csv", colClasses = "character") ## Check that outcome are valid if (!is.element(outcome, c("heart attack", "heart failure", "pneumonia"))) { stop("Error: invalid outcome") } ...
#数据科学中的R语言 学习笔记 #第二章 数据对象 vector1<-1:10 vector2<-seq(from=1,to=10,by=2) vector1<-1:10+2 vector2<-1:(10+2) #计算sin函数从0到pi的曲线下面积 n<-1000 h<-seq(from=0,to=pi,length.out = n) w<-pi/n rect<-sin(h)*w sum(rect) #第三章 数据操作 func<-function(x){ if(x%%2==0){ ret<-"偶数" }else{ ret<-"奇数" } return(ret) } vec<-round(runi...
/数据科学中的r语言 笔记.R
no_license
yangminghan/Book_Code
R
false
false
1,494
r
#数据科学中的R语言 学习笔记 #第二章 数据对象 vector1<-1:10 vector2<-seq(from=1,to=10,by=2) vector1<-1:10+2 vector2<-1:(10+2) #计算sin函数从0到pi的曲线下面积 n<-1000 h<-seq(from=0,to=pi,length.out = n) w<-pi/n rect<-sin(h)*w sum(rect) #第三章 数据操作 func<-function(x){ if(x%%2==0){ ret<-"偶数" }else{ ret<-"奇数" } return(ret) } vec<-round(runi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/layer.R \name{UpdateParameters.default} \alias{UpdateParameters.default} \title{Default implementation of UpdateParameters generic function} \usage{ \method{UpdateParameters}{default}(object, learningRate) } \description{ Default implementati...
/man/UpdateParameters.default.Rd
permissive
chuanwen/nnm
R
false
true
362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/layer.R \name{UpdateParameters.default} \alias{UpdateParameters.default} \title{Default implementation of UpdateParameters generic function} \usage{ \method{UpdateParameters}{default}(object, learningRate) } \description{ Default implementati...
vac.rate <- array(0,100) vac.rate[15:19] <- 0.00905 vac.rate[20:24] <- 0.01980 vac.rate[25:29] <- 0.01899 vac.rate[30:34] <- 0.01708 vac.rate[35:39] <- 0.01643 vac.rate[40:44] <- 0.00711 vac.rate[45:49] <- 0.00711 vac.rate[50:54] <- 0.00471 vac.rate[55:59] <- 0.00471 vac.rate[60:64] <- 0.00300 vac.rate[65:...
/R-scripts/FigS9.R
no_license
hansbogaards/HPV-immunization-for-MSM-multimodel-approach
R
false
false
836
r
vac.rate <- array(0,100) vac.rate[15:19] <- 0.00905 vac.rate[20:24] <- 0.01980 vac.rate[25:29] <- 0.01899 vac.rate[30:34] <- 0.01708 vac.rate[35:39] <- 0.01643 vac.rate[40:44] <- 0.00711 vac.rate[45:49] <- 0.00711 vac.rate[50:54] <- 0.00471 vac.rate[55:59] <- 0.00471 vac.rate[60:64] <- 0.00300 vac.rate[65:...
#' @include parser-general.R NULL .gbk_mandatory <- c("LOCUS", "DEFINITION", "ACCESSION", "VERSION", "FEATURES", "//") #' Parser for GenBank/GenPept records. #' #' @param x A character vector #' @return A \code{\linkS4class{gbRecord}} instance. #' @keywords internal gbk_record <- function(rec) { # get a vector wit...
/R/parser-gbk.R
no_license
cran/biofiles
R
false
false
6,310
r
#' @include parser-general.R NULL .gbk_mandatory <- c("LOCUS", "DEFINITION", "ACCESSION", "VERSION", "FEATURES", "//") #' Parser for GenBank/GenPept records. #' #' @param x A character vector #' @return A \code{\linkS4class{gbRecord}} instance. #' @keywords internal gbk_record <- function(rec) { # get a vector wit...