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
testlist <- list(doy = c(-5.90833941249644e+303, NaN, NaN, NA, 5.66094362317321e+168, 5.37986976831671e+228, NaN, 2.68373944682977e+199, 1.1241466614968e+79, 2.44047694784475e-152, -1.44204760062051e-277, 1.00082167819131e+65, 3.23161097932102e-115, -1.54912082484488e-176, 1.28984057852171e-314, -4.2565704550863e+1...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612735858-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,464
r
testlist <- list(doy = c(-5.90833941249644e+303, NaN, NaN, NA, 5.66094362317321e+168, 5.37986976831671e+228, NaN, 2.68373944682977e+199, 1.1241466614968e+79, 2.44047694784475e-152, -1.44204760062051e-277, 1.00082167819131e+65, 3.23161097932102e-115, -1.54912082484488e-176, 1.28984057852171e-314, -4.2565704550863e+1...
TZERO <- 273.15 #' @title MurphyKoop #' @description Returns the water vapor pressure corresponding to a supplied temperature. #' @details Calculates the equilibrium water vapor pressure according to the #' Murphy-Koop equation #' @aliases murphykoop #' @author William Cooper #' @export MurphyKoop #' @param DP A numer...
/PerfectGasLaw/MurphyKoop.R
permissive
WilliamCooper/ShinyApps
R
false
false
2,736
r
TZERO <- 273.15 #' @title MurphyKoop #' @description Returns the water vapor pressure corresponding to a supplied temperature. #' @details Calculates the equilibrium water vapor pressure according to the #' Murphy-Koop equation #' @aliases murphykoop #' @author William Cooper #' @export MurphyKoop #' @param DP A numer...
optim.beta <- function(gridx, gridy, maxpar=6){ eps = (gridx[2] - gridx[1]) / 2 grdim = maxpar*10 arange = brange = (1:grdim) / 10 errormat = matrix(NA, ncol=grdim, nrow=grdim) for( i in 1:grdim ){ for( j in 1:grdim ){ a = arange[i] b = brange[j] f = sapply( gridx, function(x) (pbeta(x+eps, a,...
/R/optim.beta.R
no_license
cran/driftsel
R
false
false
731
r
optim.beta <- function(gridx, gridy, maxpar=6){ eps = (gridx[2] - gridx[1]) / 2 grdim = maxpar*10 arange = brange = (1:grdim) / 10 errormat = matrix(NA, ncol=grdim, nrow=grdim) for( i in 1:grdim ){ for( j in 1:grdim ){ a = arange[i] b = brange[j] f = sapply( gridx, function(x) (pbeta(x+eps, a,...
# test_RequestBuilder.R # Author: Emmanuel Blondel <emmanuel.blondel1@gmail.com> # # Description: Unit tests for SDMX Service request builder #======================= require(rsdmx, quietly = TRUE) require(testthat) context("SDMXRequestBuilder") test_that("a custom SDMXRequestBuilder",{ request <- SDMXRequestBuil...
/tests/testthat/test_RequestBuilder.R
no_license
opensdmx/rsdmx
R
false
false
6,220
r
# test_RequestBuilder.R # Author: Emmanuel Blondel <emmanuel.blondel1@gmail.com> # # Description: Unit tests for SDMX Service request builder #======================= require(rsdmx, quietly = TRUE) require(testthat) context("SDMXRequestBuilder") test_that("a custom SDMXRequestBuilder",{ request <- SDMXRequestBuil...
#' Inline If Statement #' #' Inline if statement that checks the condition, #' and returns either the \code{true} or \code{false} paramater. #' Similar to \code{ifelse}, but returns the entire value of the parameters. #' #' @param condition Condition to check (logical). #' @param true Value to return when the condi...
/R/Inline_If.R
permissive
KO112/KO
R
false
false
765
r
#' Inline If Statement #' #' Inline if statement that checks the condition, #' and returns either the \code{true} or \code{false} paramater. #' Similar to \code{ifelse}, but returns the entire value of the parameters. #' #' @param condition Condition to check (logical). #' @param true Value to return when the condi...
# # # plot1.R : File to create the plots required for Programming Assignment #1 of # the Exploratory Data Analysis course. Written on 5/9/2014 # # This file should be run out of the Project One sub-directory within # the Exploratory Data Analysis Course folder. setwd("C:/Users/owner/Desk...
/plot1.R
no_license
soetting/ExploratoryDataAnalysis_PA1
R
false
false
1,359
r
# # # plot1.R : File to create the plots required for Programming Assignment #1 of # the Exploratory Data Analysis course. Written on 5/9/2014 # # This file should be run out of the Project One sub-directory within # the Exploratory Data Analysis Course folder. setwd("C:/Users/owner/Desk...
#' medianAgeTab Creates table showing the Median Age by Sex #' for a selected place and county or for a copunty and for the state #' Revised to produce Population Pyramid #' #' @param listID the list containing place id and Place names #' @param ACS a string identifying the input dataset eg: "acs1115" #' @param ...
/R/medianAgeTab.R
no_license
ColoradoDemography/ProfileDashboard2
R
false
false
22,202
r
#' medianAgeTab Creates table showing the Median Age by Sex #' for a selected place and county or for a copunty and for the state #' Revised to produce Population Pyramid #' #' @param listID the list containing place id and Place names #' @param ACS a string identifying the input dataset eg: "acs1115" #' @param ...
#' Summarize posterior samples from bbcor object #' #' @param object An object of class \code{bbcor} #' @param ci The desired credible interval #' @param ... Currengly ignroed #' #' @return A \code{data.frame} summarizing the relations #' #' @importFrom stats quantile sd #' @export #' @export summary.bbcor #' @exam...
/R/methods.R
no_license
donaldRwilliams/BBcor
R
false
false
1,919
r
#' Summarize posterior samples from bbcor object #' #' @param object An object of class \code{bbcor} #' @param ci The desired credible interval #' @param ... Currengly ignroed #' #' @return A \code{data.frame} summarizing the relations #' #' @importFrom stats quantile sd #' @export #' @export summary.bbcor #' @exam...
sample <- '6uM/' c <- c(0.01, 0.13, 0.3) #center h <- c(7.04, 0.65, 0.71) #height w <- c(0.04, 0.04, 0.07) #sigma o <- 0.09 #offset x <- read.csv(paste0('./',sample,'x_hist.txt'), header=FALSE)$V1 y <- read.csv(paste0('./',sample,'y_hist.txt'), header=FALSE)$V1 y <- y - o y[y<0] <- 0 f <- function(x, c, h, w) retur...
/smFRET_hist/19 FRET_hist_6uM.r
no_license
psichen/affinity-of-Skp-to-OmpC
R
false
false
988
r
sample <- '6uM/' c <- c(0.01, 0.13, 0.3) #center h <- c(7.04, 0.65, 0.71) #height w <- c(0.04, 0.04, 0.07) #sigma o <- 0.09 #offset x <- read.csv(paste0('./',sample,'x_hist.txt'), header=FALSE)$V1 y <- read.csv(paste0('./',sample,'y_hist.txt'), header=FALSE)$V1 y <- y - o y[y<0] <- 0 f <- function(x, c, h, w) retur...
library(ncdf4) library(ggplot2) library(cowplot) # Ensemble directories wd.base <- "/Users/james/Documents/metdownscaling/data_wcr/" path.pecan <- "~/Desktop/Research/pecan" # Site name for indexing site.name = "WILLOWCREEK" vers=".v2" site.lat = 45.805822 # 45°48′21″N site.lon = -90.079722 # 90°04′47″W # Setting...
/scripts/test_confidence_interval_plot.R
no_license
jsimkins2/metdownscaling
R
false
false
5,143
r
library(ncdf4) library(ggplot2) library(cowplot) # Ensemble directories wd.base <- "/Users/james/Documents/metdownscaling/data_wcr/" path.pecan <- "~/Desktop/Research/pecan" # Site name for indexing site.name = "WILLOWCREEK" vers=".v2" site.lat = 45.805822 # 45°48′21″N site.lon = -90.079722 # 90°04′47″W # Setting...
\name{etiquetasGradosLibertad} \alias{etiquetasGradosLibertad} \title{ Etiquetas de grados de libertad en cada nodo. } \description{ Se obtienen las etiquetas de los grados de libertad que corresponden a cada nodo. si un nodo está restringido, es cosiderado en la etiqueta y se coloca en su lugar correspondiente con el ...
/man/etiquetasGradosLibertad.Rd
no_license
IzaelNava/Armaduras
R
false
false
1,324
rd
\name{etiquetasGradosLibertad} \alias{etiquetasGradosLibertad} \title{ Etiquetas de grados de libertad en cada nodo. } \description{ Se obtienen las etiquetas de los grados de libertad que corresponden a cada nodo. si un nodo está restringido, es cosiderado en la etiqueta y se coloca en su lugar correspondiente con el ...
# from # http://bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#differential-expression-analysis library(DESeq2) library(pasilla) library(Cairo) library(ggplot2) pasCts <- system.file("extdata", "pasilla_gene_counts.tsv", package="pasilla", mustWork=TRUE) pasAnno <- system.file("extdata", "...
/de0.R
no_license
rafalcode/r-fresh
R
false
false
1,136
r
# from # http://bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#differential-expression-analysis library(DESeq2) library(pasilla) library(Cairo) library(ggplot2) pasCts <- system.file("extdata", "pasilla_gene_counts.tsv", package="pasilla", mustWork=TRUE) pasAnno <- system.file("extdata", "...
library(parallel) library(data.table) library(dplyr) library(ggplot2) library(RColorBrewer) outDir <- "/atlas_scratch/mfleonawicz/projects/map_animations" setwd(outDir) source("functions.R") ortho <- TRUE # set TRUE for globe plots, FALSE for flat maps res <- "monthly" # use "monthly_original" as default, otherwise an...
/plot_frames_maps.R
no_license
leonawicz/map_animations
R
false
false
1,269
r
library(parallel) library(data.table) library(dplyr) library(ggplot2) library(RColorBrewer) outDir <- "/atlas_scratch/mfleonawicz/projects/map_animations" setwd(outDir) source("functions.R") ortho <- TRUE # set TRUE for globe plots, FALSE for flat maps res <- "monthly" # use "monthly_original" as default, otherwise an...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/session.R \name{html_session} \alias{html_session} \alias{is.session} \title{Simulate a session in an html browser.} \usage{ html_session(url, ...) is.session(x) } \arguments{ \item{url}{Location to start session} \item{...}{Any add...
/man/html_session.Rd
no_license
cpsievert/rvest
R
false
false
1,025
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/session.R \name{html_session} \alias{html_session} \alias{is.session} \title{Simulate a session in an html browser.} \usage{ html_session(url, ...) is.session(x) } \arguments{ \item{url}{Location to start session} \item{...}{Any add...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/markets.R \name{getMarketsIntraday} \alias{getMarketsIntraday} \title{Return markets intraday information from Trading Economics API.} \usage{ getMarketsIntraday(symbol = NULL, initDate = NULL, endDate = NULL, outType = NULL) } \arguments{ ...
/R/tradingeconomics/man/getMarketsIntraday.Rd
no_license
molodiuc/tradingeconomics
R
false
true
1,312
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/markets.R \name{getMarketsIntraday} \alias{getMarketsIntraday} \title{Return markets intraday information from Trading Economics API.} \usage{ getMarketsIntraday(symbol = NULL, initDate = NULL, endDate = NULL, outType = NULL) } \arguments{ ...
############################################################# ## Internal validation sampling strategies for exposure ## measurement error correction ## ## 4 - efficient regression calibration ## lindanab4@gmail.com - 20200303 ############################################################# efficient_reg_cal <- function(...
/rcode/analyses/efficient_reg_cal.R
permissive
LindaNab/me_neo
R
false
false
1,377
r
############################################################# ## Internal validation sampling strategies for exposure ## measurement error correction ## ## 4 - efficient regression calibration ## lindanab4@gmail.com - 20200303 ############################################################# efficient_reg_cal <- function(...
source("../plotRocs.r") library(ROCR); ############################################################## # STRONG Strong_MatchResults <- read.table("/afs/crc.nd.edu/user/a/asgroi/asgroi2/GBU/Partition2/STRONG_AA.txt", header=TRUE); Strong_MatchScores <- (Strong_MatchResults$Score[Strong_MatchResults$Match == 1]) Strong...
/plot_code/plot_d_AA.r
no_license
AJSgroi/SNoW
R
false
false
5,090
r
source("../plotRocs.r") library(ROCR); ############################################################## # STRONG Strong_MatchResults <- read.table("/afs/crc.nd.edu/user/a/asgroi/asgroi2/GBU/Partition2/STRONG_AA.txt", header=TRUE); Strong_MatchScores <- (Strong_MatchResults$Score[Strong_MatchResults$Match == 1]) Strong...
#' @title Detects the top topics in a group of text documents. #' #' @description This function returns the top detected topics for a list of #' submitted text documents. A topic is identified with a key phrase, which can #' be one or more related words. At least 100 text documents must be submitted, #' however ...
/R/textaDetectTopics.R
permissive
cran/mscstexta4r
R
false
false
12,323
r
#' @title Detects the top topics in a group of text documents. #' #' @description This function returns the top detected topics for a list of #' submitted text documents. A topic is identified with a key phrase, which can #' be one or more related words. At least 100 text documents must be submitted, #' however ...
set.seed(12) experiment <- Experiment( x1.min=-4, x1.max=4, x2.min=-4, x2.max=4, grid.by=0.1, buffer=0.5, N.p=50000, EN.i=500, bandwidths=seq(0.3, 2.8, 0.1), #c1=0.0, #c2=0.0, sigma1=1.0, sigma2=1.0, rho=0, incident_rate=genhill(sigma=1.0) )
/presentation/results/unif50k_500_1.0_1h/experiment_setup.R
no_license
haroldship/masters-thesis-presentation_jan_2019
R
false
false
272
r
set.seed(12) experiment <- Experiment( x1.min=-4, x1.max=4, x2.min=-4, x2.max=4, grid.by=0.1, buffer=0.5, N.p=50000, EN.i=500, bandwidths=seq(0.3, 2.8, 0.1), #c1=0.0, #c2=0.0, sigma1=1.0, sigma2=1.0, rho=0, incident_rate=genhill(sigma=1.0) )
############################################ ## R script ## ## Project: IL17.TNF Biologics manuscript ## ## Figure 05 ## ## Supplementary figure 06 ## ## Supplementary table 04 ## ## ITS data ## ############################################ ### Brief description: ### Fig...
/07_Figure.05_Supp.figure.06_Supp.table.04.R
no_license
scher-lab/IL17.TNF_Biologics_manuscript
R
false
false
34,480
r
############################################ ## R script ## ## Project: IL17.TNF Biologics manuscript ## ## Figure 05 ## ## Supplementary figure 06 ## ## Supplementary table 04 ## ## ITS data ## ############################################ ### Brief description: ### Fig...
setwd("d:/Workspace/TIL/R_Data_Analysis/Part3/Data") txt1 <- read.csv("factor_test.csv.txt") txt1 factor1 <- factor(txt1$blood) factor1 summary(factor1) sex1 <- factor(txt1$sex) summary(sex1) Sys.Date() Sys.time() date() class(Sys.Date()) "2019-05-30" as.Data("2019-05-30") class("2019-05-30") class(as.Date("2019-05-30...
/Part3/sec4.R
no_license
suyeonii/R_Data_Analysis
R
false
false
1,354
r
setwd("d:/Workspace/TIL/R_Data_Analysis/Part3/Data") txt1 <- read.csv("factor_test.csv.txt") txt1 factor1 <- factor(txt1$blood) factor1 summary(factor1) sex1 <- factor(txt1$sex) summary(sex1) Sys.Date() Sys.time() date() class(Sys.Date()) "2019-05-30" as.Data("2019-05-30") class("2019-05-30") class(as.Date("2019-05-30...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/change-prm.R \name{change_prm} \alias{change_prm} \title{Change biological parameterfile to simplify automated ATLANTIS calibrations.} \usage{ change_prm( prm_biol, select_acronyms, roc, parameter, relative = TRUE, save_to_disc = ...
/man/change_prm.Rd
no_license
hollyannperryman/atlantistools
R
false
true
2,020
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/change-prm.R \name{change_prm} \alias{change_prm} \title{Change biological parameterfile to simplify automated ATLANTIS calibrations.} \usage{ change_prm( prm_biol, select_acronyms, roc, parameter, relative = TRUE, save_to_disc = ...
library(prevtoinc) ### Name: epmf ### Title: Calculate empirical probability mass function for a discrete ### positive distribution starting at 1 ### Aliases: epmf ### ** Examples # generate random sample of independent draws from Poisson distribution x <- rpois(200,4) # calculate empirical probability mass func...
/data/genthat_extracted_code/prevtoinc/examples/epmf.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
451
r
library(prevtoinc) ### Name: epmf ### Title: Calculate empirical probability mass function for a discrete ### positive distribution starting at 1 ### Aliases: epmf ### ** Examples # generate random sample of independent draws from Poisson distribution x <- rpois(200,4) # calculate empirical probability mass func...
###Call libraries##### pkgs <- list("glmnet", "doParallel", "foreach", "pROC","ggplot2","MASS","elasticnet","lqa","car", "psych","caret","nnet","foreign","data.table","plyr","dplyr","mice","corrgram","reader","pscl","devtools","AMAZonn") lapply(pkgs, require, character.only = T) ###Call data#### s...
/IMPROVING_PREDICTOR_SELECTION_CODE.R
no_license
fraserphilp/Improving-predictor-selection-for-injury-modelling-methods-in-male-footballers
R
false
false
9,226
r
###Call libraries##### pkgs <- list("glmnet", "doParallel", "foreach", "pROC","ggplot2","MASS","elasticnet","lqa","car", "psych","caret","nnet","foreign","data.table","plyr","dplyr","mice","corrgram","reader","pscl","devtools","AMAZonn") lapply(pkgs, require, character.only = T) ###Call data#### s...
\name{cudaFuncGetAttributes} \alias{cudaFuncGetAttributes} \title{Find out attributes for a given function} \description{ This function obtains the attributes of a function specified via \code{func}. \code{func} is a device function symbol and must be declared as a \code{__global__} function. The fetched attributes a...
/man/cudaFuncGetAttributes.Rd
no_license
chen0031/RCUDA
R
false
false
888
rd
\name{cudaFuncGetAttributes} \alias{cudaFuncGetAttributes} \title{Find out attributes for a given function} \description{ This function obtains the attributes of a function specified via \code{func}. \code{func} is a device function symbol and must be declared as a \code{__global__} function. The fetched attributes a...
require("RcppStable") require("ggplot2") require("plyr") dPareto <- RcppStable:::dPareto source(system.file("test-tools-1.R", package = "Matrix"), keep.source=interactive()) #-> identical3(), showProc.time(),... stopifnot(0 < print(dstable(4000., alpha=1.00001, beta=0.6))) ## gave error in fBasics::dstable() ##...
/tests/dstab-ex.R
permissive
JoeDunnStable/RcppStable
R
false
false
16,730
r
require("RcppStable") require("ggplot2") require("plyr") dPareto <- RcppStable:::dPareto source(system.file("test-tools-1.R", package = "Matrix"), keep.source=interactive()) #-> identical3(), showProc.time(),... stopifnot(0 < print(dstable(4000., alpha=1.00001, beta=0.6))) ## gave error in fBasics::dstable() ##...
\name{LeSagePaceExperiment} \alias{LeSagePaceExperiment} \title{Replicate the LeSage and Pace (2009), section 10.1.5 experiment} \description{ This method replicates the experiment from LeSage and Pace (2009), section 10.1.5. It first generates data from a SAR probit model and then estimates the model with our implem...
/man/LeSagePaceExperiment.Rd
no_license
cran/spatialprobit
R
false
false
2,173
rd
\name{LeSagePaceExperiment} \alias{LeSagePaceExperiment} \title{Replicate the LeSage and Pace (2009), section 10.1.5 experiment} \description{ This method replicates the experiment from LeSage and Pace (2009), section 10.1.5. It first generates data from a SAR probit model and then estimates the model with our implem...
#!/bin/R ###################################### ## Filtering of ancestral allele frequencies: PBCV1 ## Coevolutionary treatments II.2, III.2 and IV.2 ## name: Cas Retel ## date: 2017.10.13 ## e-mail: cas.retel@eawag.ch ###################################### ## Reads were mapped with bwa, ## filtered per position for m...
/D12-99_pbcv1_aaffiltering.R
permissive
RetelC/TempDynamics_HostVirCoevol
R
false
false
13,730
r
#!/bin/R ###################################### ## Filtering of ancestral allele frequencies: PBCV1 ## Coevolutionary treatments II.2, III.2 and IV.2 ## name: Cas Retel ## date: 2017.10.13 ## e-mail: cas.retel@eawag.ch ###################################### ## Reads were mapped with bwa, ## filtered per position for m...
#Class9/23 #load library library(tidyverse) ###Separate -> allows to separate, but if extra comma R freaks out #so we use double spearte, first by school and location and then break down #location by city and state schools <- c("University of Missississippi, University, MS", "Mississippi State, Starkville, MS", "Sout...
/class 9-23.R
no_license
DiegoMac17/myrepo
R
false
false
2,363
r
#Class9/23 #load library library(tidyverse) ###Separate -> allows to separate, but if extra comma R freaks out #so we use double spearte, first by school and location and then break down #location by city and state schools <- c("University of Missississippi, University, MS", "Mississippi State, Starkville, MS", "Sout...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convert.R \name{vdbConvert} \alias{vdbConvert} \title{Convert a VDB to be usable with the new Trelliscope viewer (experimental)} \usage{ vdbConvert(overwrite = FALSE, basePath = NULL, convertPanels = TRUE, jsonp = TRUE, conn = getOption("vd...
/man/vdbConvert.Rd
permissive
jcheng5/trelliscope
R
false
true
1,427
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convert.R \name{vdbConvert} \alias{vdbConvert} \title{Convert a VDB to be usable with the new Trelliscope viewer (experimental)} \usage{ vdbConvert(overwrite = FALSE, basePath = NULL, convertPanels = TRUE, jsonp = TRUE, conn = getOption("vd...
#年龄结构对人均住院统筹费用支出的影响 data <- read.csv("E:/毕业设计/建模结果/age_AvghgroupFees.csv") data ###(年份,所属年龄组,人均住院统筹费用支出,参保人数) colnames(data) <- c("year","age_group","avg_hgroupFees","number","hgroupFees") ##列重命名 data ####不考虑人口年龄结构时,风险因素 year_fees <- tapply(data$avg_hgroupFees,data$year,sum) ####按照年份进行统计 ###考虑人口年龄结构时 age_fees <...
/年龄结构_人均住院统筹费用支出.R
no_license
pan060757/RScripts
R
false
false
1,646
r
#年龄结构对人均住院统筹费用支出的影响 data <- read.csv("E:/毕业设计/建模结果/age_AvghgroupFees.csv") data ###(年份,所属年龄组,人均住院统筹费用支出,参保人数) colnames(data) <- c("year","age_group","avg_hgroupFees","number","hgroupFees") ##列重命名 data ####不考虑人口年龄结构时,风险因素 year_fees <- tapply(data$avg_hgroupFees,data$year,sum) ####按照年份进行统计 ###考虑人口年龄结构时 age_fees <...
library(RedditExtractoR) library(tm) library(wordcloud) library(RColorBrewer) library(shiny) library(SnowballC) testurl <- "https://www.reddit.com/r/The_Donald/comments/4ch9xa/im_gonna_kick_your_kid_in_the_ribs_for_dressing/" pal2 <- brewer.pal(8,"Dark2") clean_text <- function(some_txt) { some_txt = gsub("&amp", "...
/global.R
no_license
alexzanidean/Reddit
R
false
false
1,151
r
library(RedditExtractoR) library(tm) library(wordcloud) library(RColorBrewer) library(shiny) library(SnowballC) testurl <- "https://www.reddit.com/r/The_Donald/comments/4ch9xa/im_gonna_kick_your_kid_in_the_ribs_for_dressing/" pal2 <- brewer.pal(8,"Dark2") clean_text <- function(some_txt) { some_txt = gsub("&amp", "...
rm(list = ls()) library(dplyr) library(reshape2) library(stringi) library(assertthat) source("scripts/functions.R") ### DECLARE PARAMS ############## nr_redundant_symbols = 2 # 2 symbols match co-players, how many do not match nobody? black_n_white = FALSE # just for testing - if TRUE, number will be plotted next to...
/main.R
no_license
vojtechherrmann/Rozvedcik2019
R
false
false
788
r
rm(list = ls()) library(dplyr) library(reshape2) library(stringi) library(assertthat) source("scripts/functions.R") ### DECLARE PARAMS ############## nr_redundant_symbols = 2 # 2 symbols match co-players, how many do not match nobody? black_n_white = FALSE # just for testing - if TRUE, number will be plotted next to...
multiple_test_string <- '1kadlkj raid.who .csv' test_that("str_detect_multiple works", { #Bad method: expect_error(str_detect_multiple(multiple_test_string, patterns = 'ad', method = 'x')) #And expect_true(str_detect_multiple(multiple_test_string, patterns = c('csv', 'raid'), method = 'and')) exp...
/tests/testthat/test-multiple.R
permissive
johncassil/stringr.plus
R
false
false
1,069
r
multiple_test_string <- '1kadlkj raid.who .csv' test_that("str_detect_multiple works", { #Bad method: expect_error(str_detect_multiple(multiple_test_string, patterns = 'ad', method = 'x')) #And expect_true(str_detect_multiple(multiple_test_string, patterns = c('csv', 'raid'), method = 'and')) exp...
# Course Project, Getting and Cleaning Data # # define working directory - for reading in 561 col names, activity labels # setwd("~/Documents/Coursera/3 GettingAndCleaningData/ClassProject/UCI HAR Dataset") ## Read in feature vector 561 field names fv_colnames<-read.table(file="features.txt", s...
/run_analysis.R
no_license
GaGalHere/ClassProject
R
false
false
5,843
r
# Course Project, Getting and Cleaning Data # # define working directory - for reading in 561 col names, activity labels # setwd("~/Documents/Coursera/3 GettingAndCleaningData/ClassProject/UCI HAR Dataset") ## Read in feature vector 561 field names fv_colnames<-read.table(file="features.txt", s...
puts "Hello there!"
/contacts.r
no_license
mmskeen/DevpointLabs
R
false
false
19
r
puts "Hello there!"
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary_plot.R \docType{class} \name{SummaryForecastData-class} \alias{SummaryForecastData-class} \alias{plot,FDatFitLogit-method} \alias{plot,FDatFitNormal-method} \alias{summary,FDatFitLogit-method} \alias{summary,FDatFitNormal-method} \tit...
/rcpp_pack/EBMAforecast/man/SummarizePlot.Rd
no_license
jmontgomery/EBMAforecast
R
false
true
5,226
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary_plot.R \docType{class} \name{SummaryForecastData-class} \alias{SummaryForecastData-class} \alias{plot,FDatFitLogit-method} \alias{plot,FDatFitNormal-method} \alias{summary,FDatFitLogit-method} \alias{summary,FDatFitNormal-method} \tit...
populacao <- c(4,5,2,9,4,7,1,2,6,4,1,4,4,6,4,5,2,3,2,3,7,2,2,4,6,8,2,4,5,6,8,5,2,3,8 ,5,2,4,5,9,4,1,6,3,4,2,5,6,4,3,2,3,5,4,4,3,4,5,4,2,9,8,18, 22,8,9,7,7,9,9,8,7,9,6,14,9,9,8,7,12,14,8,9,8,8,15,8,9,8,8) #questao 1-A media <- mean(populacao) cont <- 0; for (i in 1:90){ if(populacao[...
/exe6.R
no_license
LeandrodLima/estatistica-
R
false
false
1,517
r
populacao <- c(4,5,2,9,4,7,1,2,6,4,1,4,4,6,4,5,2,3,2,3,7,2,2,4,6,8,2,4,5,6,8,5,2,3,8 ,5,2,4,5,9,4,1,6,3,4,2,5,6,4,3,2,3,5,4,4,3,4,5,4,2,9,8,18, 22,8,9,7,7,9,9,8,7,9,6,14,9,9,8,7,12,14,8,9,8,8,15,8,9,8,8) #questao 1-A media <- mean(populacao) cont <- 0; for (i in 1:90){ if(populacao[...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/guardduty_operations.R \name{guardduty_create_sample_findings} \alias{guardduty_create_sample_findings} \title{Generates sample findings of types specified by the list of finding types} \usage{ guardduty_create_sample_findings(DetectorId, Fin...
/cran/paws.security.identity/man/guardduty_create_sample_findings.Rd
permissive
paws-r/paws
R
false
true
827
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/guardduty_operations.R \name{guardduty_create_sample_findings} \alias{guardduty_create_sample_findings} \title{Generates sample findings of types specified by the list of finding types} \usage{ guardduty_create_sample_findings(DetectorId, Fin...
if (!require("data.table")) { install.packages("data.table") } if (!require("reshape2")) { install.packages("reshape2") } require("data.table") require("reshape2") # The code below reads and loads the activity labels data_labels <- read.table("./UCI HAR Dataset/activity_labels.txt")[,2] # The code identifies th...
/run_analysis.R
no_license
Emanuel-Baisire/Getting_and_Cleaning_Data
R
false
false
2,264
r
if (!require("data.table")) { install.packages("data.table") } if (!require("reshape2")) { install.packages("reshape2") } require("data.table") require("reshape2") # The code below reads and loads the activity labels data_labels <- read.table("./UCI HAR Dataset/activity_labels.txt")[,2] # The code identifies th...
library(dplyr) library(tidyverse) library(ggplot2) library(reshape2) ############## ### PLOT #### ############## #load pivot table df_pivot <- read.csv("../../gen/analysis/input/df_pivot.csv") # convert the `date` column into date format. df_pivot$date <- as.Date(df_pivot$date) View(df_pivot) dir.create("../../gen/a...
/src/analysis/plot_data.R
no_license
maritverbruggen/exam
R
false
false
805
r
library(dplyr) library(tidyverse) library(ggplot2) library(reshape2) ############## ### PLOT #### ############## #load pivot table df_pivot <- read.csv("../../gen/analysis/input/df_pivot.csv") # convert the `date` column into date format. df_pivot$date <- as.Date(df_pivot$date) View(df_pivot) dir.create("../../gen/a...
library(capushe) ### Name: BICAICcapushe ### Title: AICcapushe and BICcapushe ### Aliases: AICcapushe BICcapushe AICapushe BICapushe Aiccapushe ### Biccapushe Aicapushe Bicapushe aiccapushe biccapushe aicapushe ### bicapushe ### Keywords: models ### ** Examples data(datacapushe) AICcapushe(datacapushe,n=1000) B...
/data/genthat_extracted_code/capushe/examples/BICAICcapushe.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
355
r
library(capushe) ### Name: BICAICcapushe ### Title: AICcapushe and BICcapushe ### Aliases: AICcapushe BICcapushe AICapushe BICapushe Aiccapushe ### Biccapushe Aicapushe Bicapushe aiccapushe biccapushe aicapushe ### bicapushe ### Keywords: models ### ** Examples data(datacapushe) AICcapushe(datacapushe,n=1000) B...
\name{predict.openCR} \alias{predict.openCR} \alias{predict.openCRlist} \title{ openCR Model Predictions } \description{ Evaluate an openCR capture--recapture model. That is, compute the `real' parameters corresponding to the `beta' parameters of a fitted model for arbitrary levels of any variables in the li...
/openCR/man/predict.openCR.Rd
no_license
akhikolla/updatedatatype-list4
R
false
false
1,482
rd
\name{predict.openCR} \alias{predict.openCR} \alias{predict.openCRlist} \title{ openCR Model Predictions } \description{ Evaluate an openCR capture--recapture model. That is, compute the `real' parameters corresponding to the `beta' parameters of a fitted model for arbitrary levels of any variables in the li...
# this script creates a heatmap in plotly library(plotly) # create heatmap terrain1 <- matrix(rnorm(100*100), nrow = 100, ncol = 100) plot_ly(z = ~terrain1, type = "heatmap") # 3D surface # if you want to do this, you will need to understand what the smoothing is doing terrain2 <- matrix(sort(rnorm(100*100)), nrow = ...
/plotly/plotly_heatmap.R
no_license
shelbybachman/developing-data-products-course
R
false
false
378
r
# this script creates a heatmap in plotly library(plotly) # create heatmap terrain1 <- matrix(rnorm(100*100), nrow = 100, ncol = 100) plot_ly(z = ~terrain1, type = "heatmap") # 3D surface # if you want to do this, you will need to understand what the smoothing is doing terrain2 <- matrix(sort(rnorm(100*100)), nrow = ...
airq = airquality ind = sample(nrow(airq), 10) airq$Wind[ind] = NA airq$Wind = cut(airq$Wind, c(0,8,16,24)) summary(airq) impute(airq, classes = list(integer = imputeMean(), factor = imputeMode())) airq2 = mutate_if(airq, is.factor, as.character) impute(airq2, class = list(integer = imputeLearner('regr.rpart'), chara...
/imputation.R
no_license
escott8908/House-Prices
R
false
false
1,214
r
airq = airquality ind = sample(nrow(airq), 10) airq$Wind[ind] = NA airq$Wind = cut(airq$Wind, c(0,8,16,24)) summary(airq) impute(airq, classes = list(integer = imputeMean(), factor = imputeMode())) airq2 = mutate_if(airq, is.factor, as.character) impute(airq2, class = list(integer = imputeLearner('regr.rpart'), chara...
if (suppressWarnings( requiet("testthat") && requiet("ggeffects") && requiet("emmeans") && requiet("effects") && requiet("survival") && getRversion() >= "3.6.0" && packageVersion("survival") >= "3.2.9" )) { m1 <- survreg(Surv(futime, fustat) ~ ecog.ps + rx, data = ovarian, dist = "exponential...
/tests/testthat/test-survreg.R
no_license
cran/ggeffects
R
false
false
701
r
if (suppressWarnings( requiet("testthat") && requiet("ggeffects") && requiet("emmeans") && requiet("effects") && requiet("survival") && getRversion() >= "3.6.0" && packageVersion("survival") >= "3.2.9" )) { m1 <- survreg(Surv(futime, fustat) ~ ecog.ps + rx, data = ovarian, dist = "exponential...
############### # ecp # g2 L16B ############### set.seed(1) Ediv_L16B <- e.divisive(matrix(train_g2_L16B$TotCpu), R=499, min.size=5) Ediv_L16B$k.hat Ediv_L16B$estimates out_L16B <- Ediv_L16B$estimates[c(-1,-length(Ediv_L16B$estimates))] dat <- data.frame(index=seq(1,nrow(train_g2_L16B)), TotCpu=train_g2_L16B$TotCpu) g...
/Code/results_ecp.R
no_license
araea382/MT
R
false
false
6,567
r
############### # ecp # g2 L16B ############### set.seed(1) Ediv_L16B <- e.divisive(matrix(train_g2_L16B$TotCpu), R=499, min.size=5) Ediv_L16B$k.hat Ediv_L16B$estimates out_L16B <- Ediv_L16B$estimates[c(-1,-length(Ediv_L16B$estimates))] dat <- data.frame(index=seq(1,nrow(train_g2_L16B)), TotCpu=train_g2_L16B$TotCpu) g...
# <OWNER> = Saip CISS # <ORGANIZATION> = QueensBridge Quantitative # <YEAR> = 2014 # LICENSE # BSD 3-CLAUSE LICENSE # Copyright (c) 2014, Saip CISS # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions...
/R/RandomUniformForestsCPP.R
no_license
cran/randomUniformForest
R
false
false
203,353
r
# <OWNER> = Saip CISS # <ORGANIZATION> = QueensBridge Quantitative # <YEAR> = 2014 # LICENSE # BSD 3-CLAUSE LICENSE # Copyright (c) 2014, Saip CISS # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions...
#' @importFrom stats ecdf runif qnorm copulaCorrectionDiscrete_pstar <- function(vec.data.endo){ # Fit empirical CDF to data H.p <- ecdf(vec.data.endo) # Caluclate H.pX H.p1 <- H.p(vec.data.endo) H.p0 <- H.p(vec.data.endo-1) H.p0[H.p0 == 0] <- 0.0000001 H.p0[H.p0 == 1] <- 0.9999999 H.p1[H.p1 == 0] <-...
/R/f_copulacorrectionpstar_discrete.R
no_license
mmeierer/REndo
R
false
false
488
r
#' @importFrom stats ecdf runif qnorm copulaCorrectionDiscrete_pstar <- function(vec.data.endo){ # Fit empirical CDF to data H.p <- ecdf(vec.data.endo) # Caluclate H.pX H.p1 <- H.p(vec.data.endo) H.p0 <- H.p(vec.data.endo-1) H.p0[H.p0 == 0] <- 0.0000001 H.p0[H.p0 == 1] <- 0.9999999 H.p1[H.p1 == 0] <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EpiCompare.R \docType{package} \name{EpiCompare} \alias{EpiCompare} \title{EpiCompare: package overview} \description{ The goal of \code{EpiCompare} is to provide the epidemiology community with easy-to-use tools to encourage comparing and as...
/man/EpiCompare.Rd
permissive
skgallagher/EpiCompare
R
false
true
1,816
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EpiCompare.R \docType{package} \name{EpiCompare} \alias{EpiCompare} \title{EpiCompare: package overview} \description{ The goal of \code{EpiCompare} is to provide the epidemiology community with easy-to-use tools to encourage comparing and as...
\name{get.lavaan.sem} \alias{get.lavaan.sem} \title{ Constructs variance-covariance based SEM } \description{ Estimates variance-covariance based (traditional) structural equation model (SEM) using the \code{lavaan} package. } \usage{ get.lavaan.sem(modelList, data, corr.errors, add.vars, ...) } \arguments{ \item{mod...
/man/get.lavaan.sem.Rd
no_license
achazhardenberg/piecewiseSEM
R
false
false
1,648
rd
\name{get.lavaan.sem} \alias{get.lavaan.sem} \title{ Constructs variance-covariance based SEM } \description{ Estimates variance-covariance based (traditional) structural equation model (SEM) using the \code{lavaan} package. } \usage{ get.lavaan.sem(modelList, data, corr.errors, add.vars, ...) } \arguments{ \item{mod...
#' A transition plot #' #' This plot's purpose is to illustrate how states change before and #' after. In my research I use it before surgery and after surgery #' but it can be used in any situation where you have a change from #' one state to another #' #' @param transition_flow This should be a matrix with the size o...
/R/transitionPlot.R
no_license
arcresu/Gmisc
R
false
false
24,841
r
#' A transition plot #' #' This plot's purpose is to illustrate how states change before and #' after. In my research I use it before surgery and after surgery #' but it can be used in any situation where you have a change from #' one state to another #' #' @param transition_flow This should be a matrix with the size o...
#Setup # first run: install.packages("ggplot2") # install.packages("gridExtra") library("ggplot2") library("gridExtra") # Load Global Temperatures file file <- read.table("GlobalLandTemperatures/GlobalTemperatures.csv",header=TRUE,sep=",") rows <- dim(file)[1] # Remove NAs globalTemperatures <- file[34:row...
/Global Temperatures/script.R
no_license
Peter-32/R-Small-Projects
R
false
false
2,786
r
#Setup # first run: install.packages("ggplot2") # install.packages("gridExtra") library("ggplot2") library("gridExtra") # Load Global Temperatures file file <- read.table("GlobalLandTemperatures/GlobalTemperatures.csv",header=TRUE,sep=",") rows <- dim(file)[1] # Remove NAs globalTemperatures <- file[34:row...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.ffm.R \name{print.ffm} \alias{print.ffm} \title{Prints a fitted fundamental factor model} \usage{ \method{print}{ffm}(x, digits = max(3, .Options$digits - 3), ...) } \arguments{ \item{x}{an object of class \code{ffm} produced by \code{f...
/man/print.ffm.Rd
no_license
AvinashAcharya/factorAnalytics
R
false
true
1,173
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.ffm.R \name{print.ffm} \alias{print.ffm} \title{Prints a fitted fundamental factor model} \usage{ \method{print}{ffm}(x, digits = max(3, .Options$digits - 3), ...) } \arguments{ \item{x}{an object of class \code{ffm} produced by \code{f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Plotfunctions.R \name{responseplot.diver} \alias{responseplot.diver} \title{plot the response of the calculated alpha diversity to the change of a particular variable} \usage{ responseplot.diver(model, variable) } \arguments{ \item{model}{A r...
/man/responseplot.diver.Rd
no_license
derek-corcoran-barrios/DiversityOccu
R
false
true
1,679
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Plotfunctions.R \name{responseplot.diver} \alias{responseplot.diver} \title{plot the response of the calculated alpha diversity to the change of a particular variable} \usage{ responseplot.diver(model, variable) } \arguments{ \item{model}{A r...
library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( # Application title titlePanel("Choose the probability"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( sliderInput("radius", "Probability", ...
/ui.r
no_license
Beccccca/circle
R
false
false
524
r
library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( # Application title titlePanel("Choose the probability"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( sliderInput("radius", "Probability", ...
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse. ## cacheSolve: This function computes the inverse of the special "matrix" returned by makeCacheMatrix above. ## If the inverse has already been calculated (and the matrix has not changed), then the cachesolve should retrieve...
/cachematrix.R
no_license
zapsens/ProgrammingAssignment2
R
false
false
1,463
r
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse. ## cacheSolve: This function computes the inverse of the special "matrix" returned by makeCacheMatrix above. ## If the inverse has already been calculated (and the matrix has not changed), then the cachesolve should retrieve...
library(gdata) library(plyr) library(sqldf) library(ggplot2) perl <- "C:/Strawberry/perl/bin/perl5.22.1.exe" bk <- read.xls("rollingsales_brooklyn.xls",pattern="BOROUGH",perl = perl) bk2 <- read.xls("rollingsales_bronx.xls",pattern="BOROUGH",perl = perl) bk3 <- read.xls("rollingsales_manhattan.xls",pattern="BOROUGH",pe...
/UB DIC Projects/Project1_R Data Analytics/Linear Regression Module/RDExP4athigale.R
no_license
aniket898/UBProjects
R
false
false
1,712
r
library(gdata) library(plyr) library(sqldf) library(ggplot2) perl <- "C:/Strawberry/perl/bin/perl5.22.1.exe" bk <- read.xls("rollingsales_brooklyn.xls",pattern="BOROUGH",perl = perl) bk2 <- read.xls("rollingsales_bronx.xls",pattern="BOROUGH",perl = perl) bk3 <- read.xls("rollingsales_manhattan.xls",pattern="BOROUGH",pe...
message(glue::glue("It is currently {lubridate::now()}.")) root_dir <- getwd() prepend_root_dir <- function(path) { glue::glue("{root_dir}/{path}") } source(prepend_root_dir("get.R")) # gmail_auth() # use_secret_file(prepend_root_dir("weather.json")) msg <- mime() %>% to("amanda.e.dobbyn@gmail.com") %>% from(...
/coalesce.R
no_license
aedobbyn/weather
R
false
false
661
r
message(glue::glue("It is currently {lubridate::now()}.")) root_dir <- getwd() prepend_root_dir <- function(path) { glue::glue("{root_dir}/{path}") } source(prepend_root_dir("get.R")) # gmail_auth() # use_secret_file(prepend_root_dir("weather.json")) msg <- mime() %>% to("amanda.e.dobbyn@gmail.com") %>% from(...
#https://datasharkie.com/how-to-calculate-confidence-interval-in-r/ install.packages("Rmisc") library(Rmisc) mydata<-iris CI(mydata$Sepal.Length, ci=0.95) # get sample data 10% index_s <- sample(1:nrow(mydata), 15) mydata_ss <- mydata[index_s, ] CI(mydata_ss$Sepal.Length, ci=0.95) # large...
/CI.R
no_license
georgecampanis/DA-StatsLearning
R
false
false
592
r
#https://datasharkie.com/how-to-calculate-confidence-interval-in-r/ install.packages("Rmisc") library(Rmisc) mydata<-iris CI(mydata$Sepal.Length, ci=0.95) # get sample data 10% index_s <- sample(1:nrow(mydata), 15) mydata_ss <- mydata[index_s, ] CI(mydata_ss$Sepal.Length, ci=0.95) # large...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FastqTrim.R \name{FastqTrim} \alias{FastqTrim} \title{FastqTrim()} \usage{ FastqTrim( Forward_Fastq = "No Default", Reverse_Fastq = "No Default", Paired_End_Data = TRUE, Adapter_Removal = FALSE, Adapters = "No Default", Output_Bas...
/pkg_VariantCallinginR/man/FastqTrim.Rd
no_license
DRemarque/VariantCallinginR
R
false
true
3,191
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FastqTrim.R \name{FastqTrim} \alias{FastqTrim} \title{FastqTrim()} \usage{ FastqTrim( Forward_Fastq = "No Default", Reverse_Fastq = "No Default", Paired_End_Data = TRUE, Adapter_Removal = FALSE, Adapters = "No Default", Output_Bas...
# nombre del archivo a mandar por correo: # nombre_apellido_inferencia_profesor.R # ejemplo: # juan_perez_inferencia_beltran.R # No olvide ejecutar las líneas 6 y 11 antes de empezar el resto del trabajo library(readxl) # 1. Use la función read_excel para cargar los datos que se encuentran en el archivo excel misda...
/2019_2/sol1/sol_1_estadistica_R_leiva/estadistica leiva/Cristobal_varas_estadistica_Leiva.R
no_license
ricardomayerb/ico8305
R
false
false
1,109
r
# nombre del archivo a mandar por correo: # nombre_apellido_inferencia_profesor.R # ejemplo: # juan_perez_inferencia_beltran.R # No olvide ejecutar las líneas 6 y 11 antes de empezar el resto del trabajo library(readxl) # 1. Use la función read_excel para cargar los datos que se encuentran en el archivo excel misda...
dmp <- function(db, to) { fp <- file.path(get_kmc_base(), "kmc_dump") fp <- assure_kmc3_ext(fp) fp <- get_safe_path(fp) fp <- paste(fp, db, to) return(fp) }
/R/dmp.R
no_license
c5sire/kmerize
R
false
false
168
r
dmp <- function(db, to) { fp <- file.path(get_kmc_base(), "kmc_dump") fp <- assure_kmc3_ext(fp) fp <- get_safe_path(fp) fp <- paste(fp, db, to) return(fp) }
library(MASS) attach(UScrime) ineq1.lm=lm(Ineq~.,data=UScrime) #linear regression for response Ineq using all other variables as predictors summary(ineq1.lm) # Most significant variables are Ed, GDP, and y ineq2.lm=lm(Ineq~Ed+GDP+y,data=UScrime) summary(ineq2.lm) par(mfrow = c(2,2)) plot(ineq2.lm) # Usin...
/Linear_Regression.R
no_license
spacheco97/uscrime
R
false
false
481
r
library(MASS) attach(UScrime) ineq1.lm=lm(Ineq~.,data=UScrime) #linear regression for response Ineq using all other variables as predictors summary(ineq1.lm) # Most significant variables are Ed, GDP, and y ineq2.lm=lm(Ineq~Ed+GDP+y,data=UScrime) summary(ineq2.lm) par(mfrow = c(2,2)) plot(ineq2.lm) # Usin...
x <- c(1, "canada", 3) x class(x) # A linguagem R forçou os dados em 'x' para o tipo 'character' x1 <- 1:5 x1 class(x1) y <- as.character(x1) y class(y) z <- as.numeric(y) z class(z) # Missing data (NA) x2 <- c("1","b","3") as.numeric(x2)
/Aulas/Sec2/Aula2 - Vector Coercion.r
no_license
aluizgc/r-course-harvardx
R
false
false
243
r
x <- c(1, "canada", 3) x class(x) # A linguagem R forçou os dados em 'x' para o tipo 'character' x1 <- 1:5 x1 class(x1) y <- as.character(x1) y class(y) z <- as.numeric(y) z class(z) # Missing data (NA) x2 <- c("1","b","3") as.numeric(x2)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/integration.R \name{mesh_triangle_integration} \alias{mesh_triangle_integration} \title{Integration scheme for mesh triangle interiors} \usage{ mesh_triangle_integration(mesh, tri_subset = NULL, nsub = NULL) } \arguments{ \item{mesh}{Mesh on ...
/man/mesh_triangle_integration.Rd
no_license
cran/inlabru
R
false
true
1,132
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/integration.R \name{mesh_triangle_integration} \alias{mesh_triangle_integration} \title{Integration scheme for mesh triangle interiors} \usage{ mesh_triangle_integration(mesh, tri_subset = NULL, nsub = NULL) } \arguments{ \item{mesh}{Mesh on ...
### Based off of Lizzie's planning thoughts ### Dan ## What to plant in the common garden? ## ## housekeeping library(dplyr) rm(list=ls()) options(stringsAsFactors = FALSE) # Set own wd as needed if(length(grep("danflynn", getwd()))!=0){ setwd("~/Documents/git/wildhellgarden/analyses") } # Lizzie wd setwd("~/Docum...
/Planning/planting/randomizingplanting.R
no_license
lizzieinvancouver/wildhellgarden
R
false
false
12,107
r
### Based off of Lizzie's planning thoughts ### Dan ## What to plant in the common garden? ## ## housekeeping library(dplyr) rm(list=ls()) options(stringsAsFactors = FALSE) # Set own wd as needed if(length(grep("danflynn", getwd()))!=0){ setwd("~/Documents/git/wildhellgarden/analyses") } # Lizzie wd setwd("~/Docum...
library(tidyverse) library(data.table) library(rstudioapi) library(skimr) library(inspectdf) library(mice) library(plotly) library(highcharter) library(recipes) library(caret) library(purrr) library(graphics) library(Hmisc) library(glue) library(h2o) df <- ggplot2::mpg df %>% glimpse() df <- df %>% select(cty,yea...
/Fuel_Economy_Data.R
no_license
R-Kanan/ML-LinearRegression-in-R-Fuel-Economy-Data-
R
false
false
6,395
r
library(tidyverse) library(data.table) library(rstudioapi) library(skimr) library(inspectdf) library(mice) library(plotly) library(highcharter) library(recipes) library(caret) library(purrr) library(graphics) library(Hmisc) library(glue) library(h2o) df <- ggplot2::mpg df %>% glimpse() df <- df %>% select(cty,yea...
#' Using `bal.tab()` with Longitudinal Treatments #' @name class-bal.tab.msm #' #' @description #' When using [bal.tab()] with longitudinal treatments, the output will be different from the case with point treatments, and there are some options that are common across all `bal.tab()` methods for dealing with longit...
/R/class-bal.tab.msm.R
no_license
ngreifer/cobalt
R
false
false
6,622
r
#' Using `bal.tab()` with Longitudinal Treatments #' @name class-bal.tab.msm #' #' @description #' When using [bal.tab()] with longitudinal treatments, the output will be different from the case with point treatments, and there are some options that are common across all `bal.tab()` methods for dealing with longit...
# time needed calclated using my methods # # number of transect lines no_sonar_lines <- nrow(samplers)/2 # Total length sonar lines to run for each area, km total_length_lines_km <- (ts_length/1000)*(no_sonar_lines) # Total length sonar lines to run for each area, n.m. total_length_lines_nm <- total_length_lines_km*0...
/scripts/time_needed_for_Survey_incomplete_coverage.R
no_license
philiphaupt/sabellaria_goodwin_sands
R
false
false
739
r
# time needed calclated using my methods # # number of transect lines no_sonar_lines <- nrow(samplers)/2 # Total length sonar lines to run for each area, km total_length_lines_km <- (ts_length/1000)*(no_sonar_lines) # Total length sonar lines to run for each area, n.m. total_length_lines_nm <- total_length_lines_km*0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hierarchicalClustering.R \name{genesDend2} \alias{genesDend2} \title{Cluster a distance matrix with the complete method.} \usage{ genesDend2(d, x) } \arguments{ \item{d}{a distance matrix} \item{x}{A list where the element "nbClusters" is th...
/man/genesDend2.Rd
no_license
shamansim/Vizection
R
false
true
698
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hierarchicalClustering.R \name{genesDend2} \alias{genesDend2} \title{Cluster a distance matrix with the complete method.} \usage{ genesDend2(d, x) } \arguments{ \item{d}{a distance matrix} \item{x}{A list where the element "nbClusters" is th...
testlist <- list(hi = 0, lo = 6.39095204022256e-313, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610045502-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
126
r
testlist <- list(hi = 0, lo = 6.39095204022256e-313, mu = 0, sig = 0) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
function (NZ, NP, W) { e <- get("data.env", .GlobalEnv) e[["np_m12_con"]][[length(e[["np_m12_con"]]) + 1]] <- list(NZ = NZ, NP = NP, W = W) .Call("_bmotif_np_m12_con", PACKAGE = "bmotif", NZ, NP, W) }
/valgrind_test_dir/np_m12_con-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
223
r
function (NZ, NP, W) { e <- get("data.env", .GlobalEnv) e[["np_m12_con"]][[length(e[["np_m12_con"]]) + 1]] <- list(NZ = NZ, NP = NP, W = W) .Call("_bmotif_np_m12_con", PACKAGE = "bmotif", NZ, NP, W) }
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(-1.30574501403045e+299, .Dim = c(1L, 1L))) result <- do.call(palm:::pbc_distances,testlist) str(result)
/palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612988182-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
179
r
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(-1.30574501403045e+299, .Dim = c(1L, 1L))) result <- do.call(palm:::pbc_distances,testlist) str(result)
rm(list = ls()) #removing any variables in R's memory options(max.print=10000) # Processing Initial Data processsage <- function(inp) { df <- z <- data.frame("id"=integer(),"age" = integer(),"sex"=integer(),"sbp" = double(),"dbp" = double(),"bmi" = double(),"smk" = integer(), ...
/Cohort Creation.R
permissive
hemanshudas/htnmodel
R
false
false
7,663
r
rm(list = ls()) #removing any variables in R's memory options(max.print=10000) # Processing Initial Data processsage <- function(inp) { df <- z <- data.frame("id"=integer(),"age" = integer(),"sex"=integer(),"sbp" = double(),"dbp" = double(),"bmi" = double(),"smk" = integer(), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale_brewer_pal.R \name{scale_brewer_pal} \alias{scale_brewer_pal} \title{Create palette Color Brewer from factor levels.} \usage{ scale_brewer_pal(x, palette = "Blues") } \arguments{ \item{x}{factor or chr vector} \item{palette}{chr: "Blue...
/man/scale_brewer_pal.Rd
no_license
diegogarcilazo/myutilities
R
false
true
457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale_brewer_pal.R \name{scale_brewer_pal} \alias{scale_brewer_pal} \title{Create palette Color Brewer from factor levels.} \usage{ scale_brewer_pal(x, palette = "Blues") } \arguments{ \item{x}{factor or chr vector} \item{palette}{chr: "Blue...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/the_scarlet_letter.R \name{the_scarlet_letter} \alias{the_scarlet_letter} \title{The Scarlet Letter} \usage{ the_scarlet_letter() } \value{ tibble with 3 columns. "text", "chapter" and "chapter_name". } \description{ Downlaod and lightly prep...
/man/the_scarlet_letter.Rd
permissive
EmilHvitfeldt/tidygutenbergr
R
false
true
397
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/the_scarlet_letter.R \name{the_scarlet_letter} \alias{the_scarlet_letter} \title{The Scarlet Letter} \usage{ the_scarlet_letter() } \value{ tibble with 3 columns. "text", "chapter" and "chapter_name". } \description{ Downlaod and lightly prep...
\name{Rkitsch} \alias{Rkitsch} \title{R interface for kitsch} \usage{ Rkitsch(D, path=NULL , ...) } \arguments{ \item{D}{a distance matrix as an object of class \code{"matrix"}, \code{"data.frame"}, or \code{"dist"}. If a matrix, then \code{D} should be symmetrical with a diagonal of zeros.} \item{path}{path ...
/man/Rkitsch.Rd
no_license
cran/Rphylip
R
false
false
4,031
rd
\name{Rkitsch} \alias{Rkitsch} \title{R interface for kitsch} \usage{ Rkitsch(D, path=NULL , ...) } \arguments{ \item{D}{a distance matrix as an object of class \code{"matrix"}, \code{"data.frame"}, or \code{"dist"}. If a matrix, then \code{D} should be symmetrical with a diagonal of zeros.} \item{path}{path ...
# Load libraries library(parallel) library(doParallel) library(foreach) library(dplyr) library(coRal) # Get default parameter values defpars <- coRal::def_pars() # Set up cluster for parallel processing cl <- makeCluster(detectCores(), setup_timeout = 0.5) # Initiate cluster registerDoParallel(cl) # Set input value...
/R/Fig2.R
no_license
jrcunning/coRal-analysis
R
false
false
1,926
r
# Load libraries library(parallel) library(doParallel) library(foreach) library(dplyr) library(coRal) # Get default parameter values defpars <- coRal::def_pars() # Set up cluster for parallel processing cl <- makeCluster(detectCores(), setup_timeout = 0.5) # Initiate cluster registerDoParallel(cl) # Set input value...
with(acf36196119814ce091bd743317d9414a, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';FRAME878836[,(c('report_run_end_date','modified_date','created_date','report_run_date')) := lapply(.SD, function(x) as.Date(...
/80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/aJneK4cToiKSC.R
no_license
ayanmanna8/test
R
false
false
431
r
with(acf36196119814ce091bd743317d9414a, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';FRAME878836[,(c('report_run_end_date','modified_date','created_date','report_run_date')) := lapply(.SD, function(x) as.Date(...
source('../ZINB_WaVE_analysis.R') nThread = 8 base_name = basename(getwd()) # #### preprocessing #### # umi = fast_read_table('../../dataset/Mouse_brain/filtered_genes_and_cells/dropviz_and_nuclei_combined_filtered_UMI.txt') # cell_anno = fast_read_table('../../dataset/Mouse_brain/filtered_genes_and_cells/dropviz_and...
/Script/ZINB_WaVE/dataset8_Mouse_brain/zinbwave_dataset8.R
no_license
JinmiaoChenLab/Batch-effect-removal-benchmarking
R
false
false
1,251
r
source('../ZINB_WaVE_analysis.R') nThread = 8 base_name = basename(getwd()) # #### preprocessing #### # umi = fast_read_table('../../dataset/Mouse_brain/filtered_genes_and_cells/dropviz_and_nuclei_combined_filtered_UMI.txt') # cell_anno = fast_read_table('../../dataset/Mouse_brain/filtered_genes_and_cells/dropviz_and...
################################################################################# # Explore how skew and kurtosis depend on nu and tau for gamlss distributions ################################################################################# rm(list=ls(all=TRUE)) setwd("c:/repos/IPM_size_transitions/manuscript"); #edi...
/manuscript/NPSkewKurtosisRanges.R
no_license
texmiller/IPM_size_transitions
R
false
false
5,263
r
################################################################################# # Explore how skew and kurtosis depend on nu and tau for gamlss distributions ################################################################################# rm(list=ls(all=TRUE)) setwd("c:/repos/IPM_size_transitions/manuscript"); #edi...
#' Characterize authors found within papers' titles #' #' \code{characterize_au} calculates several author related metrics from a #' scimeetr object. The results are returned in a list of data frame. The #' metrics in the table are: title-words frequency, title-words relative #' frequency, title-words relevance. #' #...
/R/characterize_au.R
permissive
lucaspedroni/scimeetr
R
false
false
6,112
r
#' Characterize authors found within papers' titles #' #' \code{characterize_au} calculates several author related metrics from a #' scimeetr object. The results are returned in a list of data frame. The #' metrics in the table are: title-words frequency, title-words relative #' frequency, title-words relevance. #' #...
###################################################### ### Fit the regression model with testing data ### ###################################################### ### Author: Chengliang Tang ### Project 3 test <- function(modelList, dat_test){ ### Fit the classfication model with testing data ### Input: ##...
/lib/test.R
no_license
AlexYH-Chen/Image-Super-Resolution
R
false
false
922
r
###################################################### ### Fit the regression model with testing data ### ###################################################### ### Author: Chengliang Tang ### Project 3 test <- function(modelList, dat_test){ ### Fit the classfication model with testing data ### Input: ##...
#' Get shard list or status #' #' @param shard shard to look up. if missing, returns list of shards #' #' @return shard status info #' @export #' #' @examples #' get_status() #' get_status(shard = "na") get_status <- function(shard) { base_url <- paste0("https://status.leagueoflegends.com/shards") if(missing(shard)...
/R/status.R
no_license
stillmatic/leagueR
R
false
false
462
r
#' Get shard list or status #' #' @param shard shard to look up. if missing, returns list of shards #' #' @return shard status info #' @export #' #' @examples #' get_status() #' get_status(shard = "na") get_status <- function(shard) { base_url <- paste0("https://status.leagueoflegends.com/shards") if(missing(shard)...
CalculateDeaths<-function(IncludedCounties){ #Get total deaths in the selected region CovidCountiesDeath<-subset(CovidDeaths, CountyFIPS %in% IncludedCounties$FIPS) sum(rev(CovidCountiesDeath)[,1]) }
/covid19/www/2_load_functions/CalculateDeaths.R
permissive
CHAD-Analytics/CHAD
R
false
false
221
r
CalculateDeaths<-function(IncludedCounties){ #Get total deaths in the selected region CovidCountiesDeath<-subset(CovidDeaths, CountyFIPS %in% IncludedCounties$FIPS) sum(rev(CovidCountiesDeath)[,1]) }
#' @name writeJagsModel #' #' @title Write a Node's JAGS Model #' @description Constructs the JAGS code that designates the model for the #' node conditioned on its parents. The parameters for the model may #' be user supplied or estimated from a given data set. #' #' @param network A network of class HydeNet...
/R/writeJagsModel.R
no_license
nutterb/HydeNet
R
false
false
14,744
r
#' @name writeJagsModel #' #' @title Write a Node's JAGS Model #' @description Constructs the JAGS code that designates the model for the #' node conditioned on its parents. The parameters for the model may #' be user supplied or estimated from a given data set. #' #' @param network A network of class HydeNet...
\name{coefLower} \alias{coefLower} \alias{coefLower<-} \alias{coefUpper} \alias{coefUpper<-} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Extract or set lower/upper bounds on coefficients } \description{ Extract or set lower/upper bounds on coefficients for covariance kernel objects. ...
/man/coefLower.Rd
no_license
cran/GPlab
R
false
false
801
rd
\name{coefLower} \alias{coefLower} \alias{coefLower<-} \alias{coefUpper} \alias{coefUpper<-} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Extract or set lower/upper bounds on coefficients } \description{ Extract or set lower/upper bounds on coefficients for covariance kernel objects. ...
#' Network visualization general options #' #' Network visualization general options. For full documentation, have a look at \link{visDocumentation}. #' #'@param graph : a visNetwork object #'@param width : String. Default to "100\%". The width of the network in pixels or as a percentage. #'@param height : String. Def...
/R/visOptions.R
no_license
cha63506/visNetwork
R
false
false
15,545
r
#' Network visualization general options #' #' Network visualization general options. For full documentation, have a look at \link{visDocumentation}. #' #'@param graph : a visNetwork object #'@param width : String. Default to "100\%". The width of the network in pixels or as a percentage. #'@param height : String. Def...
# Tyler Byers # plot3.R # For Coursera EDA course # 10 July 2014 # Read data from file power <- read.csv('data/household_power_consumption.txt', sep = ';') # Subset data two first two days of Feb 2007; dd/mm/yyyy format powersub <- subset(power, Date == '1/2/2007' | Date == '2/2/2007') # Global Active Power is a fa...
/plot3.R
no_license
tybyers/ExData_Plotting1
R
false
false
1,485
r
# Tyler Byers # plot3.R # For Coursera EDA course # 10 July 2014 # Read data from file power <- read.csv('data/household_power_consumption.txt', sep = ';') # Subset data two first two days of Feb 2007; dd/mm/yyyy format powersub <- subset(power, Date == '1/2/2007' | Date == '2/2/2007') # Global Active Power is a fa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{design.contrasts} \alias{design.contrasts} \alias{contrast.names} \title{Retrieve contrast codes for a design} \usage{ design.contrasts( design, factors = names(fixed.factors(design)), contrasts = NULL, expand = TRUE, ...
/man/design.contrasts.Rd
no_license
mmrabe/designr
R
false
true
2,753
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{design.contrasts} \alias{design.contrasts} \alias{contrast.names} \title{Retrieve contrast codes for a design} \usage{ design.contrasts( design, factors = names(fixed.factors(design)), contrasts = NULL, expand = TRUE, ...
################################ ## Risk Adjusted Linear Model ## ################################ #' @include main.R model.R NULL #' Data model based on a linear model #' #' The parameters needed for running the chart are the fitted linear #' model. Resampled data sets are created by resampling cases with ...
/R/lm.R
no_license
cran/spcadjust
R
false
false
2,029
r
################################ ## Risk Adjusted Linear Model ## ################################ #' @include main.R model.R NULL #' Data model based on a linear model #' #' The parameters needed for running the chart are the fitted linear #' model. Resampled data sets are created by resampling cases with ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read.Genepop.R \name{read.Genepop} \alias{read.Genepop} \title{Read GENEPOP format file} \usage{ read.Genepop(x, pop.names = NULL, haploid = FALSE, pos = 1) } \arguments{ \item{x}{GENEPOP file or path to the file. The filename extens...
/man/read.Genepop.Rd
no_license
cran/assignPOP
R
false
true
1,486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read.Genepop.R \name{read.Genepop} \alias{read.Genepop} \title{Read GENEPOP format file} \usage{ read.Genepop(x, pop.names = NULL, haploid = FALSE, pos = 1) } \arguments{ \item{x}{GENEPOP file or path to the file. The filename extens...
library(tidyverse) library(skimr) library(patchwork) library(readxl) library(sp) library(rgeos) library(raster) library(rgdal) # library(scales) # library(units) # library(viridis) library(tidycensus) library(sf) #---------------------------------------------------------------------------- ##########################...
/code/airshed.R
no_license
jeremyash/nei
R
false
false
7,074
r
library(tidyverse) library(skimr) library(patchwork) library(readxl) library(sp) library(rgeos) library(raster) library(rgdal) # library(scales) # library(units) # library(viridis) library(tidycensus) library(sf) #---------------------------------------------------------------------------- ##########################...
base_url <- "https://pokeapi.co/api/v2/" diretorio_trabalho <- getwd() define_cache_local <- function(){ if(!dir.exists("diretorio_cache")) dir.create("diretorio_cache") } define_versao <- function(id=1,criar_cache=TRUE){ versoesJSON <- fromJSON(paste0(base_url, "version-group/")) if(id > nrow(versoesJSON$res...
/codigos/codigo_principal.r
no_license
exata0mente/MelhorEquipe
R
false
false
994
r
base_url <- "https://pokeapi.co/api/v2/" diretorio_trabalho <- getwd() define_cache_local <- function(){ if(!dir.exists("diretorio_cache")) dir.create("diretorio_cache") } define_versao <- function(id=1,criar_cache=TRUE){ versoesJSON <- fromJSON(paste0(base_url, "version-group/")) if(id > nrow(versoesJSON$res...
args <- commandArgs(TRUE) # args <- c("Myriad Pro", "reportData/all.xqtl.eff.txt", "xqtl.eff.corr.pdf") # file # ============================================================ plot.con <- data.frame(temp = c("18", "18", "25", "25", "28", "28"), sex = rep(c("Female", "Male"), 3), stringsAsFactors = F) all.eff <- read.ta...
/S5_Fig.R
no_license
qgg-lab/dgrp-lifespan
R
false
false
1,928
r
args <- commandArgs(TRUE) # args <- c("Myriad Pro", "reportData/all.xqtl.eff.txt", "xqtl.eff.corr.pdf") # file # ============================================================ plot.con <- data.frame(temp = c("18", "18", "25", "25", "28", "28"), sex = rep(c("Female", "Male"), 3), stringsAsFactors = F) all.eff <- read.ta...
#Script for ANN for UM vs nMI ####################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ library(pacman) pacman::p_load(ggplot2, reshape2, gplots, grid, spatstat, raster, sp, dplyr, klaR, ggfortify, stringr, cluster, Rtsne, readr, RColorBrewer, Hmisc, mice, tidyr, ...
/multiclassfication_Aug2020.R
no_license
winfrednyoroka/Machine-Learning-in-Clinical-Malaria
R
false
false
6,214
r
#Script for ANN for UM vs nMI ####################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ library(pacman) pacman::p_load(ggplot2, reshape2, gplots, grid, spatstat, raster, sp, dplyr, klaR, ggfortify, stringr, cluster, Rtsne, readr, RColorBrewer, Hmisc, mice, tidyr, ...
library(mmand) ### Name: skeletonise ### Title: Skeletonise a numeric array ### Aliases: skeletonise skeletonize ### ** Examples x <- c(0,0,1,0,0,0,1,1,1,0,0) k <- c(1,1,1) skeletonise(x,k)
/data/genthat_extracted_code/mmand/examples/skeletonise.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
197
r
library(mmand) ### Name: skeletonise ### Title: Skeletonise a numeric array ### Aliases: skeletonise skeletonize ### ** Examples x <- c(0,0,1,0,0,0,1,1,1,0,0) k <- c(1,1,1) skeletonise(x,k)
# isntall output packages library(devtools) install_github('rstudio/rmarkdown') install.packages('knitr', repos = c('http://rforge.net', 'http://cran.rstudio.org'), type = 'source') install_github('jimhester/knitrBootstrap') library(knitrBootstrap) library(rmarkdown) render('file.Rmd', 'knitrBootstra...
/knitrBootstrap_setup.R
no_license
GreatEmerald/RProjectManagement
R
false
false
343
r
# isntall output packages library(devtools) install_github('rstudio/rmarkdown') install.packages('knitr', repos = c('http://rforge.net', 'http://cran.rstudio.org'), type = 'source') install_github('jimhester/knitrBootstrap') library(knitrBootstrap) library(rmarkdown) render('file.Rmd', 'knitrBootstra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocessing.R \name{preprocess_patients} \alias{preprocess_patients} \title{Preprocess MRI scans for multiple patients} \usage{ preprocess_patients(patients.folder, clinical.covariates) } \arguments{ \item{patients.folder}{general folder co...
/man/preprocess_patients.Rd
no_license
jdwor/neuronorm
R
false
true
3,084
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocessing.R \name{preprocess_patients} \alias{preprocess_patients} \title{Preprocess MRI scans for multiple patients} \usage{ preprocess_patients(patients.folder, clinical.covariates) } \arguments{ \item{patients.folder}{general folder co...