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
#Read in vervet sample data (includes cage ID, animal ID, date of sample, etc.) sampleData=read.delim("/Users/rbarner/Dropbox/FodorLab/KylieData/rawData/key/vervet/WholeGenomeKey.txt"); #Split sample ID by date out=split(sampleData, f=sampleData$Date) #Make a separate data frame for each of the dates jan12sampleData=...
/Rscripts/makeCagePCOAfigure.R
no_license
rbarner/VervetCage
R
false
false
7,167
r
#Read in vervet sample data (includes cage ID, animal ID, date of sample, etc.) sampleData=read.delim("/Users/rbarner/Dropbox/FodorLab/KylieData/rawData/key/vervet/WholeGenomeKey.txt"); #Split sample ID by date out=split(sampleData, f=sampleData$Date) #Make a separate data frame for each of the dates jan12sampleData=...
############# #This reads xc results from a pdf and converts to a csv. ############# library(pdftools) library(tidyverse) library(readxl) source("xc_FUNC.R") path_root <- "C:/Users/James/Dropbox/Mine/Personal/Running/Races&events/" # pdf files files <- list.files(paste0(path_root, "xc_raw")) %>% str_subset(".pdf...
/code_parse/xc_to_csv_DO.R
permissive
jedwards24/race-results
R
false
false
2,609
r
############# #This reads xc results from a pdf and converts to a csv. ############# library(pdftools) library(tidyverse) library(readxl) source("xc_FUNC.R") path_root <- "C:/Users/James/Dropbox/Mine/Personal/Running/Races&events/" # pdf files files <- list.files(paste0(path_root, "xc_raw")) %>% str_subset(".pdf...
#' Dire bonjour #' #' @param entree a string #' #' @return a string #' @import glue #' @export #' @examples #' #' dire_bonjour("Sabine") #' dire_bonjour <- function(entree){ if(!is.character(entree)){ stop("Mauvais format \n saisir une chaine de caracteres") } glue("Bonjour {entree}") }
/.Rproj.user/1279A053/sources/s-0130F82B/98405950-contents
no_license
MaryleneH/marylenehenry
R
false
false
300
#' Dire bonjour #' #' @param entree a string #' #' @return a string #' @import glue #' @export #' @examples #' #' dire_bonjour("Sabine") #' dire_bonjour <- function(entree){ if(!is.character(entree)){ stop("Mauvais format \n saisir une chaine de caracteres") } glue("Bonjour {entree}") }
#devtools::install_github("hms-dbmi/UpSetR") library(UpSetR) library(tidyverse) # load('/media/xsan/staff_groups/merrimanlab/Merriman_Documents/Murray/ukbiobank_util/data/ukbiobank_genotyped2016-04-26.RData') # all_fam <- read.table("~/Git_repos/bookdown_thesis/data/Ukbiobank/chr1impv1.fam", header=FALSE) # colnames(a...
/src/scripts/create_upset_plot.R
no_license
murraycadzow/phd_thesis
R
false
false
2,541
r
#devtools::install_github("hms-dbmi/UpSetR") library(UpSetR) library(tidyverse) # load('/media/xsan/staff_groups/merrimanlab/Merriman_Documents/Murray/ukbiobank_util/data/ukbiobank_genotyped2016-04-26.RData') # all_fam <- read.table("~/Git_repos/bookdown_thesis/data/Ukbiobank/chr1impv1.fam", header=FALSE) # colnames(a...
library(NUCOMBog) # library(BayesianTools) setup_SMC<-setupNUCOM(mainDir="/home/jeroen/TBR/IRELAND/",climate="CLIM_IRELAND_1766-2013_orig.txt",environment="Env_IRELAND_staticNdep.txt",inival="inival_IRELAND_centuries.txt",start=1766,end=2012,type=c("NEE","WTD"),numFolders=100,separate = F,startval=2841) setup_SMC_sing...
/code_notforpackage/SMC_GLENCAR_NOdecomp_long_term.R
no_license
TheoreticalEcology/NUCOMBog
R
false
false
2,971
r
library(NUCOMBog) # library(BayesianTools) setup_SMC<-setupNUCOM(mainDir="/home/jeroen/TBR/IRELAND/",climate="CLIM_IRELAND_1766-2013_orig.txt",environment="Env_IRELAND_staticNdep.txt",inival="inival_IRELAND_centuries.txt",start=1766,end=2012,type=c("NEE","WTD"),numFolders=100,separate = F,startval=2841) setup_SMC_sing...
library(dplyr) library(stargazer) # 1 = Physics # 2 = Economics # 3 = Philosophy gscholar = read.csv( '~/Documents/oxford/PythonforSDS/GoogleScholar_Research/gscholar_complete_v2.csv', na.strings=c("","NA") ) gscholar_sum = gscholar %>% filter(gender_prob > 0.9 & count_name > 10) %>% select(h.index,h5.index,n...
/gscholar_analysis.R
no_license
colinmorris/GoogleScholar_Research
R
false
false
3,251
r
library(dplyr) library(stargazer) # 1 = Physics # 2 = Economics # 3 = Philosophy gscholar = read.csv( '~/Documents/oxford/PythonforSDS/GoogleScholar_Research/gscholar_complete_v2.csv', na.strings=c("","NA") ) gscholar_sum = gscholar %>% filter(gender_prob > 0.9 & count_name > 10) %>% select(h.index,h5.index,n...
# if-loops / control flow # check if data are correct (i.e., no NAs) before proceeding with analysis # conditions must evaluate to Boolean T/F vectors if (condition1) { # if condition1 == TRUE, then this code will run } else { # if condition1 == FALSE, then move to condition2 } # e.g., if (fish="Sebastes mela...
/if-loop and control flow notes.R
no_license
atchin/reference-scripts
R
false
false
2,601
r
# if-loops / control flow # check if data are correct (i.e., no NAs) before proceeding with analysis # conditions must evaluate to Boolean T/F vectors if (condition1) { # if condition1 == TRUE, then this code will run } else { # if condition1 == FALSE, then move to condition2 } # e.g., if (fish="Sebastes mela...
testlist <- list(x = structure(c(-5.19334656533142e+274, 1.50807351253946e-86, 0, 0, 0, 0, 0, 0, 0), .Dim = c(9L, 1L))) result <- do.call(bravo:::colSumSq_matrix,testlist) str(result)
/bravo/inst/testfiles/colSumSq_matrix/libFuzzer_colSumSq_matrix/colSumSq_matrix_valgrind_files/1609959632-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
184
r
testlist <- list(x = structure(c(-5.19334656533142e+274, 1.50807351253946e-86, 0, 0, 0, 0, 0, 0, 0), .Dim = c(9L, 1L))) result <- do.call(bravo:::colSumSq_matrix,testlist) str(result)
# s.GLM.R # ::rtemis:: # 2017 E.D. Gennatas lambdamd.org #' Generalized Linear Model [C, R] #' #' Train a Generalized Linear Model for Regression or Classification (i.e. Logistic Regression) using \code{stats::glm}. #' If outcome \code{y} has more than two classes, Multinomial Logistic Regression is performed using #'...
/R/s.GLM.R
no_license
DrRoad/rtemis
R
false
false
16,489
r
# s.GLM.R # ::rtemis:: # 2017 E.D. Gennatas lambdamd.org #' Generalized Linear Model [C, R] #' #' Train a Generalized Linear Model for Regression or Classification (i.e. Logistic Regression) using \code{stats::glm}. #' If outcome \code{y} has more than two classes, Multinomial Logistic Regression is performed using #'...
thres5 <- function(T){ n <- size(T)[2] b <- matrix(0,4,1) term1 <- 0 term2 <- 0 term3 <- 0 term4 <- 0 for (i in 1:n){ if (T[i] == 1){ term1 <- term1 + 1 } if (T[i] == 2){ term2 <- term2 + 1 } if (T[i] == 3){ term3 <- term3 + 1 } if (T[...
/R/thres5.R
no_license
cran/InDisc
R
false
false
874
r
thres5 <- function(T){ n <- size(T)[2] b <- matrix(0,4,1) term1 <- 0 term2 <- 0 term3 <- 0 term4 <- 0 for (i in 1:n){ if (T[i] == 1){ term1 <- term1 + 1 } if (T[i] == 2){ term2 <- term2 + 1 } if (T[i] == 3){ term3 <- term3 + 1 } if (T[...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sylvester.R \name{sylvester} \alias{sylvester} \title{Solve Sylvester equation AX + XB = C.} \usage{ sylvester(A, B, C, tol = 1e-04) } \arguments{ \item{A}{Input matrix} \item{B}{Input matrix} \item{C}{Input matrix} \item{tol}{The toleranc...
/man/sylvester.Rd
no_license
sakuramomo1005/biADMM
R
false
true
649
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sylvester.R \name{sylvester} \alias{sylvester} \title{Solve Sylvester equation AX + XB = C.} \usage{ sylvester(A, B, C, tol = 1e-04) } \arguments{ \item{A}{Input matrix} \item{B}{Input matrix} \item{C}{Input matrix} \item{tol}{The toleranc...
# pdx.dl.owl.kernel.smooth.R # OWL with linear decision function on PDX data library(caret) library(stringi) # this function performs OWL on PDX data # need to supply to the function a cancer type, one of # "BRCA", "CM", "CRC", "NSCLC", or "PDAC" # and an outcome, one of "BAR" for best average response ...
/PDX.Code/RNA/pdx.dl.owl.kernel.smooth.R
no_license
jasa-acs/High-Dimensional-Precision-Medicine-From-Patient-Derived-Xenografts
R
false
false
22,939
r
# pdx.dl.owl.kernel.smooth.R # OWL with linear decision function on PDX data library(caret) library(stringi) # this function performs OWL on PDX data # need to supply to the function a cancer type, one of # "BRCA", "CM", "CRC", "NSCLC", or "PDAC" # and an outcome, one of "BAR" for best average response ...
#' @name plotGenderMarkers #' @inherit bioverbs::plotGenderMarkers #' @family Quality Control Functions #' @author Michael Steinbaugh #' #' @note Currently only *Homo sapiens* and *Mus musculus* genomes are supported. #' #' @inheritParams plotCounts #' @inheritParams general #' #' @seealso [plotCounts()]. #' #' @return...
/R/plotGenderMarkers-methods.R
permissive
mosaddek-hossain/bcbioRNASeq
R
false
false
4,283
r
#' @name plotGenderMarkers #' @inherit bioverbs::plotGenderMarkers #' @family Quality Control Functions #' @author Michael Steinbaugh #' #' @note Currently only *Homo sapiens* and *Mus musculus* genomes are supported. #' #' @inheritParams plotCounts #' @inheritParams general #' #' @seealso [plotCounts()]. #' #' @return...
# File src/library/graphics/R/assocplot.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2012 The R Core Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; ei...
/Rproj/src/library/graphics/R/assocplot.R
no_license
yidongwork/kentucky_intern_2
R
false
false
2,761
r
# File src/library/graphics/R/assocplot.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2012 The R Core Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; ei...
RUEmod <- function(Rad,T.a,doy.s=91,doy.f=227,lai.c=0.0102,rue=2.4,T.b=10,k=0.68){ T.a <- (T.a - 32)*(5/9) PAR <- Rad / 2 T.a <- T.a[doy.s:doy.f] Rad <- Rad[doy.s:doy.f] deltTemp <- ifelse(T.a-T.b > 0 , T.a-T.b,0) AGDD <- cumsum(deltTemp) lai0 <- deltTemp * lai.c lai.cum <- cumsum(lai0) e.i <- 1 - exp(-k * lai.cum) i...
/R/RUEmod.R
permissive
serbinsh/biocro-1
R
false
false
580
r
RUEmod <- function(Rad,T.a,doy.s=91,doy.f=227,lai.c=0.0102,rue=2.4,T.b=10,k=0.68){ T.a <- (T.a - 32)*(5/9) PAR <- Rad / 2 T.a <- T.a[doy.s:doy.f] Rad <- Rad[doy.s:doy.f] deltTemp <- ifelse(T.a-T.b > 0 , T.a-T.b,0) AGDD <- cumsum(deltTemp) lai0 <- deltTemp * lai.c lai.cum <- cumsum(lai0) e.i <- 1 - exp(-k * lai.cum) i...
#plot 1 #in order to make this code work you need to have the following data in your working directory #summarySCC_PM25.rds" and #reading data data <- readRDS("summarySCC_PM25.rds") #analyse data test <- tapply(data$Emissions, data$year, sum) #create plot png("plot1.png", width = 480, height = 480) barplo...
/plot1.R
no_license
Allouche23/Exploratory-Data-Analysis-Course-Project-2
R
false
false
433
r
#plot 1 #in order to make this code work you need to have the following data in your working directory #summarySCC_PM25.rds" and #reading data data <- readRDS("summarySCC_PM25.rds") #analyse data test <- tapply(data$Emissions, data$year, sum) #create plot png("plot1.png", width = 480, height = 480) barplo...
##read data powerdata <- read.table("household_power_consumption.txt", header=TRUE, na.strings='?', sep= ';') ##convert date to date class (Date2) powerdata$Date2 <- as.Date( as.character(powerdata$Date), format="%d/%m/%Y") ##subset to relevant dates powerfeb <- powerdata[powerdata$Date2=="2007-02-02"|powerdata$Date2=...
/plot4.R
no_license
mariejd8/ExData_Plotting1
R
false
false
1,151
r
##read data powerdata <- read.table("household_power_consumption.txt", header=TRUE, na.strings='?', sep= ';') ##convert date to date class (Date2) powerdata$Date2 <- as.Date( as.character(powerdata$Date), format="%d/%m/%Y") ##subset to relevant dates powerfeb <- powerdata[powerdata$Date2=="2007-02-02"|powerdata$Date2=...
####################################### # WASH Benefits Bangladesh STH KK qPCR validation # estimate sensitivity, specificity # of kk using either method as gold # by Jade Benjamin-Chung # jadebc@berkeley.edu ####################################### rm(list=ls()) # configure directories, load libraries and base functi...
/1-analysis-scripts/7-tfgh-sens-pooled-gold.R
no_license
jadebc/wbb-sth-qpcr
R
false
false
3,199
r
####################################### # WASH Benefits Bangladesh STH KK qPCR validation # estimate sensitivity, specificity # of kk using either method as gold # by Jade Benjamin-Chung # jadebc@berkeley.edu ####################################### rm(list=ls()) # configure directories, load libraries and base functi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trajPlot.R \name{trajPlot} \alias{trajPlot} \title{Plot Individual Subject Trajectories} \usage{ trajPlot( idvar, timevar, feature, batchvar, data, point.shape = NULL, point.col = NULL, line.col = NULL, line.type = NULL, x...
/man/trajPlot.Rd
permissive
jcbeer/longCombat
R
false
true
3,796
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trajPlot.R \name{trajPlot} \alias{trajPlot} \title{Plot Individual Subject Trajectories} \usage{ trajPlot( idvar, timevar, feature, batchvar, data, point.shape = NULL, point.col = NULL, line.col = NULL, line.type = NULL, x...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_documentation.R, R/loglogFunction.R, % R/michaelisFunction.R, R/weibullFunction.R \name{HDmethods} \alias{HDmethods} \alias{loglogFunction} \alias{michaelisFunction} \alias{weibullFunction} \title{HDmethods} \usage{ loglogFunction(data...
/man/HDmethods.Rd
no_license
upmeng/BIOMASS
R
false
true
2,246
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_documentation.R, R/loglogFunction.R, % R/michaelisFunction.R, R/weibullFunction.R \name{HDmethods} \alias{HDmethods} \alias{loglogFunction} \alias{michaelisFunction} \alias{weibullFunction} \title{HDmethods} \usage{ loglogFunction(data...
#Loading both the required libraries library(rvest) library(V8) #URL with js-rendered content to be scraped link <- 'https://food.list.co.uk/place/22191-brewhemia-edinburgh/' #Read the html page content and extract all javascript codes that are inside a list emailjs <- read_html(link) %>% html_nodes('li') %>% html_n...
/rvest_v8.R
no_license
r3sult/blogpost_codes
R
false
false
524
r
#Loading both the required libraries library(rvest) library(V8) #URL with js-rendered content to be scraped link <- 'https://food.list.co.uk/place/22191-brewhemia-edinburgh/' #Read the html page content and extract all javascript codes that are inside a list emailjs <- read_html(link) %>% html_nodes('li') %>% html_n...
cluster.subvector.matrix <- function( b, n.groups) { #FUNCTION TO STACK EFFECTS IF MULTIPLE n = length(b) i = n/n.groups if(i==1){ return(matrix(b,ncol=1)) } else{ B = matrix(0,n.groups,i) for(j in 1:i){ B[,j] <- b[(n.gr...
/ipdmeta/beta/cluster.subvector.matrix.R
no_license
ingted/R-Examples
R
false
false
760
r
cluster.subvector.matrix <- function( b, n.groups) { #FUNCTION TO STACK EFFECTS IF MULTIPLE n = length(b) i = n/n.groups if(i==1){ return(matrix(b,ncol=1)) } else{ B = matrix(0,n.groups,i) for(j in 1:i){ B[,j] <- b[(n.gr...
library(samplingVarEst) ### Name: VE.Jk.EB.SW2.Total.Hajek ### Title: The self-weighted two-stage sampling Escobar-Berger (2013) ### jackknife variance estimator for the Hajek (1971) estimator of a ### total ### Aliases: VE.Jk.EB.SW2.Total.Hajek ### Keywords: variance estimation total ### ** Examples data(oaxac...
/data/genthat_extracted_code/samplingVarEst/examples/VE_Jk_EB_SW2_Total_Hajek.rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,414
r
library(samplingVarEst) ### Name: VE.Jk.EB.SW2.Total.Hajek ### Title: The self-weighted two-stage sampling Escobar-Berger (2013) ### jackknife variance estimator for the Hajek (1971) estimator of a ### total ### Aliases: VE.Jk.EB.SW2.Total.Hajek ### Keywords: variance estimation total ### ** Examples data(oaxac...
## Read the Household Electricity consumptio data from ## the data file household.txt with seperators = ";" library(dplyr) library(lubridate) a<- read.csv("household.txt", header= TRUE, sep = ";") ## dimensions of Data Table = 20,75,259*9 ## names(a) ## [1] "Date" "Time" "Global_ac...
/plot2.R
no_license
saiprasadias/ExData_Plotting1
R
false
false
1,249
r
## Read the Household Electricity consumptio data from ## the data file household.txt with seperators = ";" library(dplyr) library(lubridate) a<- read.csv("household.txt", header= TRUE, sep = ";") ## dimensions of Data Table = 20,75,259*9 ## names(a) ## [1] "Date" "Time" "Global_ac...
##---------------------------------------------------------------------------- ## Data processing functions for VDJ sequencing data from Adaptive ## Erik Clarke (ecl@mail.med.upenn.edu) ##---------------------------------------------------------------------------- library(RMySQL) library(seqinr) library(Biostrings) ...
/raw_data_processing.R
no_license
eclarke/vdj_xscid
R
false
false
9,655
r
##---------------------------------------------------------------------------- ## Data processing functions for VDJ sequencing data from Adaptive ## Erik Clarke (ecl@mail.med.upenn.edu) ##---------------------------------------------------------------------------- library(RMySQL) library(seqinr) library(Biostrings) ...
############################################################################### # Connectivity through movement simulation for bookend scenarios. # January 19, 2018 # Script to generate simulated movement paths for "bookend" spp, incorporating landscape # characteristics, and evaluating probability of cell use as ...
/mov_sim_conn_final.R
no_license
williash23/SEARRP-UMT-Corridor-Simulation-Prioritization
R
false
false
15,418
r
############################################################################### # Connectivity through movement simulation for bookend scenarios. # January 19, 2018 # Script to generate simulated movement paths for "bookend" spp, incorporating landscape # characteristics, and evaluating probability of cell use as ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility_functions.R \name{artificial_lri} \alias{artificial_lri} \title{Produce artificial long range interactions} \usage{ artificial_lri(mtx.sparse, interactions) } \arguments{ \item{mtx.sparse}{data frame - Hi-C contact map in sparse forma...
/man/artificial_lri.Rd
permissive
regulomics/DIADEM
R
false
true
1,354
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility_functions.R \name{artificial_lri} \alias{artificial_lri} \title{Produce artificial long range interactions} \usage{ artificial_lri(mtx.sparse, interactions) } \arguments{ \item{mtx.sparse}{data frame - Hi-C contact map in sparse forma...
getBestShiftConfiguration <- function(x, expectedNumberOfShifts , threshold = 5){ if (class(x) == 'bammdata') { x <- credibleShiftSet(x, expectedNumberOfShifts, threshold, set.limit = 0.95); } else if (class(x) == 'credibleshiftset') { } else { stop("Argument x must be of class bammdata or credibleshiftset\...
/BAMMtools/R/getBestShiftConfiguration.R
no_license
ingted/R-Examples
R
false
false
2,650
r
getBestShiftConfiguration <- function(x, expectedNumberOfShifts , threshold = 5){ if (class(x) == 'bammdata') { x <- credibleShiftSet(x, expectedNumberOfShifts, threshold, set.limit = 0.95); } else if (class(x) == 'credibleshiftset') { } else { stop("Argument x must be of class bammdata or credibleshiftset\...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/precision.simulate.class.R \name{precision.simulate.class} \alias{precision.simulate.class} \title{precision simulation with classification} \usage{ \method{precision}{simulate.class}( seed, N, biological.effect.tr, biological.effect....
/man/precision.simulate.class.Rd
no_license
QihangYang/PRECISION.array
R
false
true
13,076
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/precision.simulate.class.R \name{precision.simulate.class} \alias{precision.simulate.class} \title{precision simulation with classification} \usage{ \method{precision}{simulate.class}( seed, N, biological.effect.tr, biological.effect....
# <function> # <name> # graph.growthmodel.spp # </name> # <description> # Use output of growth.flexbin to graph observed growth and predictions. With conf>0, random draws from posterior parameters # are used to make predictions and overlay with gray lines, and mean predicted value at each x is calculated. # Th...
/CTFSRPackage/growth/growthfit.graph.r
no_license
dermen/tsv2ctfs
R
false
false
14,225
r
# <function> # <name> # graph.growthmodel.spp # </name> # <description> # Use output of growth.flexbin to graph observed growth and predictions. With conf>0, random draws from posterior parameters # are used to make predictions and overlay with gray lines, and mean predicted value at each x is calculated. # Th...
#!/applications/R/R-4.0.0/bin/Rscript # author: Andy Tock # contact: ajt200@cam.ac.uk # date: 13.05.2021 # Calculate and plot metaprofiles of ChIP-seq # (feature windowed means and 95% confidence intervals, CIs) # for all CEN180 sequences, CENgap, CENAthila, nonCENGypsy, CENsoloLTR and randomly positioned loci # Usa...
/CEN180_in_T2T_Col/CEN180_CENgap_CENAthila_nonCENAthila_nonCENGypsy_CENsoloLTR_H3K9me2_2metaprofiles.R
no_license
ajtock/repeats
R
false
false
110,779
r
#!/applications/R/R-4.0.0/bin/Rscript # author: Andy Tock # contact: ajt200@cam.ac.uk # date: 13.05.2021 # Calculate and plot metaprofiles of ChIP-seq # (feature windowed means and 95% confidence intervals, CIs) # for all CEN180 sequences, CENgap, CENAthila, nonCENGypsy, CENsoloLTR and randomly positioned loci # Usa...
permWR = function(target, dataset, xIndex, csIndex, wei = NULL, univariateModels=NULL, hash = FALSE, stat_hash=NULL, pvalue_hash=NULL, threshold = 0.05, R = 999){ # Conditional independence test based on the Log Likelihood ratio test if (!survival::is.Surv(target) ) stop('The survival test ca...
/R/permWR.R
no_license
cran/MXM
R
false
false
3,505
r
permWR = function(target, dataset, xIndex, csIndex, wei = NULL, univariateModels=NULL, hash = FALSE, stat_hash=NULL, pvalue_hash=NULL, threshold = 0.05, R = 999){ # Conditional independence test based on the Log Likelihood ratio test if (!survival::is.Surv(target) ) stop('The survival test ca...
setwd("~/Documentos/GitHub/exploratoryDataAnalysis/") # declare output plot folder if (!file.exists('exitPlots')) { dir.create('exitPlots') } # load data source('createDataSet.r') # define exit device png(filename = './exitPlots/plot3.png', width = 480, height = 480, units='px') # plot figure plot(inputData$Date...
/codes/plot3.r
no_license
ivanAvril/ExData_Plotting1
R
false
false
688
r
setwd("~/Documentos/GitHub/exploratoryDataAnalysis/") # declare output plot folder if (!file.exists('exitPlots')) { dir.create('exitPlots') } # load data source('createDataSet.r') # define exit device png(filename = './exitPlots/plot3.png', width = 480, height = 480, units='px') # plot figure plot(inputData$Date...
#' WGCNA模块挖掘 #' #' @param exp 基因表达谱 #' @param genelist 基因列表 #' @param fileName 图片文件名称前缀 #' @param fileName1 文本文件名称前缀 #' #' @return result<-list(datexpr=datexpr,moduleColors=moduleColors,pow=pow) #' @export #' #' @examples #' myWGCNA(exp,genelist,fileName="./result/Figure/Figure5",fileName1="./result/Table/Supplementary...
/easyGO/R/wgcna.R
no_license
lilyegg/R_code
R
false
false
13,942
r
#' WGCNA模块挖掘 #' #' @param exp 基因表达谱 #' @param genelist 基因列表 #' @param fileName 图片文件名称前缀 #' @param fileName1 文本文件名称前缀 #' #' @return result<-list(datexpr=datexpr,moduleColors=moduleColors,pow=pow) #' @export #' #' @examples #' myWGCNA(exp,genelist,fileName="./result/Figure/Figure5",fileName1="./result/Table/Supplementary...
# Load the data survey = read_csv('ld_results_final__for_rob_recoded_trimmed.csv', col_names = TRUE) # Mush all th etext columns together to increase power survey$combined_words <- paste(survey$linked_data_description, survey$linked_data_benefits, survey$additional_thoughts) # Tokenize the words tokenized_survey <- ...
/sanitize.R
permissive
olendorf/linked_data_survey
R
false
false
768
r
# Load the data survey = read_csv('ld_results_final__for_rob_recoded_trimmed.csv', col_names = TRUE) # Mush all th etext columns together to increase power survey$combined_words <- paste(survey$linked_data_description, survey$linked_data_benefits, survey$additional_thoughts) # Tokenize the words tokenized_survey <- ...
#!/usr/bin/Rscript startTime <- Sys.time() ################ USE THE FOLLOWING FILES FROM PREVIOUS STEPS # - script0: pipeline_regionList.RData # - script0: rna_geneList.RData # - script0: pipeline_geneList.RData # - script0: rna_madnorm_rnaseqDT.RData # - script1: DE_topTable.RData # - script1: DE_geneList.RData ###...
/code/3_runMeanTADLogFC.R
permissive
CSOgroup/DADo
R
false
false
5,664
r
#!/usr/bin/Rscript startTime <- Sys.time() ################ USE THE FOLLOWING FILES FROM PREVIOUS STEPS # - script0: pipeline_regionList.RData # - script0: rna_geneList.RData # - script0: pipeline_geneList.RData # - script0: rna_madnorm_rnaseqDT.RData # - script1: DE_topTable.RData # - script1: DE_geneList.RData ###...
# plot library(ggplot2) # modis evi MODIS_EVI = data.frame(value=MODIS_EVI_DF@data, x=MODIS_EVI_DF@coords[,1], y=MODIS_EVI_DF@coords[,2]) m1 = ggplot() + geom_raster(data=MODIS_EVI,aes(fill=modis_evi,x=x, y=y),interpolate = T) m1 # soil SOIL = data.frame(value=SOIL_DF@data, x=SOIL...
/code/09_extrapolation DEM-MODIS-SOIL/02_plot_layers.r
no_license
guizar/carbon-stocks
R
false
false
767
r
# plot library(ggplot2) # modis evi MODIS_EVI = data.frame(value=MODIS_EVI_DF@data, x=MODIS_EVI_DF@coords[,1], y=MODIS_EVI_DF@coords[,2]) m1 = ggplot() + geom_raster(data=MODIS_EVI,aes(fill=modis_evi,x=x, y=y),interpolate = T) m1 # soil SOIL = data.frame(value=SOIL_DF@data, x=SOIL...
library(shiny) library(reshape2) library(ggplot2) library(scales) portfolio <- read.csv('data/portfolio.csv') project <- read.csv('data/project.csv') country <- read.csv('data/country.csv') region <- read.csv('data/region.csv') district <- read.csv('data/district.csv') shinyServer(function(input, output) { ## Buil...
/std_rpts/disease-rpt/server.R
no_license
reowen/DataViz
R
false
false
5,933
r
library(shiny) library(reshape2) library(ggplot2) library(scales) portfolio <- read.csv('data/portfolio.csv') project <- read.csv('data/project.csv') country <- read.csv('data/country.csv') region <- read.csv('data/region.csv') district <- read.csv('data/district.csv') shinyServer(function(input, output) { ## Buil...
library(car) library(caret) library(caTools) library(corrplot) Hospital<- read.csv("MHD.csv") str(Hospital) #Treat the missing values which(is.na(Hospital$BP..HIGH)) Hospital$BP..HIGH[is.na(Hospital$BP..HIGH)] <- mean(Hospital$BP..HIGH, na.rm = TRUE) which(is.na(Hospital$BP.LOW)) Hospital$BP.LOW[...
/assignment1.R
no_license
chetanbharti91/Mission_hospital
R
false
false
6,782
r
library(car) library(caret) library(caTools) library(corrplot) Hospital<- read.csv("MHD.csv") str(Hospital) #Treat the missing values which(is.na(Hospital$BP..HIGH)) Hospital$BP..HIGH[is.na(Hospital$BP..HIGH)] <- mean(Hospital$BP..HIGH, na.rm = TRUE) which(is.na(Hospital$BP.LOW)) Hospital$BP.LOW[...
library(shiny) # Define UI shinyUI(pageWithSidebar( # Application title headerPanel("Github ImpactStory report"), # Sidebar with controls sidebarPanel( wellPanel( h4(strong("ImpactStory Collection ID")), textInput(inputId="iid", label="Enter an ImpactStory collection ID for your GitHub account", ...
/github_impact/ui.r
no_license
sckott/shinyio
R
false
false
963
r
library(shiny) # Define UI shinyUI(pageWithSidebar( # Application title headerPanel("Github ImpactStory report"), # Sidebar with controls sidebarPanel( wellPanel( h4(strong("ImpactStory Collection ID")), textInput(inputId="iid", label="Enter an ImpactStory collection ID for your GitHub account", ...
# data.frame of colnames = c(psid, water_system_name, county, zipcode) # water_systems <- tibble(psid = c("103039", "103040"), # water_system_name = c("A","B"), # county = c("D","E"), # zipcode = c(90201, 94601)) water_systems <- readr::read_rds("d...
/data-raw/DATASET.R
permissive
jcmartinmu/sdwisard
R
false
false
1,153
r
# data.frame of colnames = c(psid, water_system_name, county, zipcode) # water_systems <- tibble(psid = c("103039", "103040"), # water_system_name = c("A","B"), # county = c("D","E"), # zipcode = c(90201, 94601)) water_systems <- readr::read_rds("d...
test_that("argo_path_info() works", { info_meta <- argo_path_info("dac/csio/2900313/2900313_meta.nc") expect_identical(info_meta$file_type, "meta") expect_identical(info_meta$file_float, "2900313") info_tech <- argo_path_info("dac/csio/2900313/2900313_tech.nc") expect_identical(info_tech$file_type, "tech") ...
/tests/testthat/test-argo-path.R
permissive
KimBaldry/argodata
R
false
false
4,101
r
test_that("argo_path_info() works", { info_meta <- argo_path_info("dac/csio/2900313/2900313_meta.nc") expect_identical(info_meta$file_type, "meta") expect_identical(info_meta$file_float, "2900313") info_tech <- argo_path_info("dac/csio/2900313/2900313_tech.nc") expect_identical(info_tech$file_type, "tech") ...
#### ff_standings (MFL) #### #' Get a dataframe of league standings #' #' @param conn a conn object created by `ff_connect()` #' @param ... arguments passed to other methods #' #' @examples #' \donttest{ #' ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) #' ff_standings(ssb_conn) #' } #' #' ...
/R/mfl_standings.R
permissive
jpiburn/ffscrapr
R
false
false
2,028
r
#### ff_standings (MFL) #### #' Get a dataframe of league standings #' #' @param conn a conn object created by `ff_connect()` #' @param ... arguments passed to other methods #' #' @examples #' \donttest{ #' ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) #' ff_standings(ssb_conn) #' } #' #' ...
UIenvironment <- function(Mod, name, isShared){ return( span( fluidRow( column(6, wellPanel( UIspecificEnvironment(Mod, name, "sto", isShared) ) ), column(6, wellPanel( UIspecificEnvironment(Mod, name, ...
/inst/shiny-squid/source/pages/fullModel/UIenvironment.R
no_license
alrutten/SQUID
R
false
false
890
r
UIenvironment <- function(Mod, name, isShared){ return( span( fluidRow( column(6, wellPanel( UIspecificEnvironment(Mod, name, "sto", isShared) ) ), column(6, wellPanel( UIspecificEnvironment(Mod, name, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{BigGridTransform} \alias{BigGridTransform} \title{Create GDM transformed grids for big grids} \usage{ BigGridTransform(nrows, ncols, nlayers_in, geo, nSplinesTotal, splines, knots, coefficients, extrap_code, InFilePaths,...
/gdmEngine/man/BigGridTransform.Rd
no_license
cwarecsiro/gdmEngine
R
false
true
955
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{BigGridTransform} \alias{BigGridTransform} \title{Create GDM transformed grids for big grids} \usage{ BigGridTransform(nrows, ncols, nlayers_in, geo, nSplinesTotal, splines, knots, coefficients, extrap_code, InFilePaths,...
#' find the crossing point of the two competing maxima #' #'@param eta mean #'@param gamma marginal variance: gamma^2 = 1 + sigma^2, so gamma must be greater than 1 #' #'@export #' find_crossing <- function(eta, gamma) { #source("c_1.R") f <- function(x) 1 - exp(x) - (pnorm((c_1(eta, gamma, x, 1) - eta) / gamma) ...
/R/find_crossing.R
no_license
dobriban/pweight
R
false
false
687
r
#' find the crossing point of the two competing maxima #' #'@param eta mean #'@param gamma marginal variance: gamma^2 = 1 + sigma^2, so gamma must be greater than 1 #' #'@export #' find_crossing <- function(eta, gamma) { #source("c_1.R") f <- function(x) 1 - exp(x) - (pnorm((c_1(eta, gamma, x, 1) - eta) / gamma) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_objects.R \name{Browser} \alias{Browser} \title{Browser Object} \usage{ Browser(browserVersionId = NULL, dartId = NULL, majorVersion = NULL, minorVersion = NULL, name = NULL) } \arguments{ \item{browserVersionId}{ID referring t...
/googledfareportingv26.auto/man/Browser.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
816
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_objects.R \name{Browser} \alias{Browser} \title{Browser Object} \usage{ Browser(browserVersionId = NULL, dartId = NULL, majorVersion = NULL, minorVersion = NULL, name = NULL) } \arguments{ \item{browserVersionId}{ID referring t...
#Week 4 quiz # Q1. Give P-value for the associated two sided T test. bl <- c(140, 138, 150, 148, 135) fu <- c(132, 135, 151, 146, 130) t.test(fu, bl, alternative = "two.sided", paired = TRUE) # Q2. A sample of 9 men yielded a sample average brain volume of 1,100cc # a...
/Week4_quiz.R
no_license
the-eon-flux/Statistical-Inference
R
false
false
3,311
r
#Week 4 quiz # Q1. Give P-value for the associated two sided T test. bl <- c(140, 138, 150, 148, 135) fu <- c(132, 135, 151, 146, 130) t.test(fu, bl, alternative = "two.sided", paired = TRUE) # Q2. A sample of 9 men yielded a sample average brain volume of 1,100cc # a...
globalVariables(c("str", ".", "str_is_run")) image_entry <- function(src, width, height){ x <- data.frame(image_src = src, width = width, height = height, stringsAsFactors = FALSE) class(x) <- c( "image_entry", class(x) ) x } format.image_entry = function (x, type = "console", ...){ stopifnot( length(type) =...
/R/utils.R
no_license
cwhitman/flextable
R
false
false
5,415
r
globalVariables(c("str", ".", "str_is_run")) image_entry <- function(src, width, height){ x <- data.frame(image_src = src, width = width, height = height, stringsAsFactors = FALSE) class(x) <- c( "image_entry", class(x) ) x } format.image_entry = function (x, type = "console", ...){ stopifnot( length(type) =...
\name{friedman.1.data} \alias{friedman.1.data} \alias{fried.bool} \title{ First Friedman Dataset and a variation } \description{ Generate X and Y values from the 10-dim \dQuote{first} Friedman data set used to validate the Multivariate Adaptive Regression Splines (MARS) model, and a variation involving boole...
/man/friedman.1.data.Rd
no_license
astroHaoPeng/tgp
R
false
false
4,028
rd
\name{friedman.1.data} \alias{friedman.1.data} \alias{fried.bool} \title{ First Friedman Dataset and a variation } \description{ Generate X and Y values from the 10-dim \dQuote{first} Friedman data set used to validate the Multivariate Adaptive Regression Splines (MARS) model, and a variation involving boole...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { # set the variable inv (inverse) to NULL inv <- NULL # set m to the argument y and set inv to NULL set <- function(y) { ...
/cachematrix.R
no_license
jjmpiscis/ProgrammingAssignment2
R
false
false
1,389
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { # set the variable inv (inverse) to NULL inv <- NULL # set m to the argument y and set inv to NULL set <- function(y) { ...
\name{tortoise} \alias{tortoise} \docType{data} \title{ Projection matrices for desert tortoise} \description{ Projection matrices for the desert tortoise \emph{Gopherus agassizii} } \usage{data(tortoise)} \format{ A list of 4 projeciton matrices with 4 different fertility estimates (low, medium low, medium high, a...
/man/tortoise.Rd
no_license
kostask84/popbio
R
false
false
1,013
rd
\name{tortoise} \alias{tortoise} \docType{data} \title{ Projection matrices for desert tortoise} \description{ Projection matrices for the desert tortoise \emph{Gopherus agassizii} } \usage{data(tortoise)} \format{ A list of 4 projeciton matrices with 4 different fertility estimates (low, medium low, medium high, a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/con_levenshtein_holland.R \name{con_levenshtein_holland} \alias{con_levenshtein_holland} \title{Congruence Index based on the Levenshtein distance} \usage{ con_levenshtein_holland(a, b, costs = "hexa", weights = c(1.5, 1.25, 1)) } \arguments{...
/man/con_levenshtein_holland.Rd
no_license
cran/holland
R
false
true
2,292
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/con_levenshtein_holland.R \name{con_levenshtein_holland} \alias{con_levenshtein_holland} \title{Congruence Index based on the Levenshtein distance} \usage{ con_levenshtein_holland(a, b, costs = "hexa", weights = c(1.5, 1.25, 1)) } \arguments{...
.libPaths("/data/hydro/R_libs35") .libPaths() library(tidyverse) library(lubridate) library(dplyr) library(data.table) source_path = "/home/hnoorazar/analog_codes/core_analog.R" source(source_path) options(digit=9) options(digits=9) ################################################################# main_out = "/data...
/analogy/01_get_PPT/d_get_usa_observed_ppt.R
permissive
HNoorazar/Ag
R
false
false
2,059
r
.libPaths("/data/hydro/R_libs35") .libPaths() library(tidyverse) library(lubridate) library(dplyr) library(data.table) source_path = "/home/hnoorazar/analog_codes/core_analog.R" source(source_path) options(digit=9) options(digits=9) ################################################################# main_out = "/data...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/rowcol_macros.R \name{selectrows} \alias{selectrows} \title{Select rows from data.frame matching regexp} \usage{ selectrows(df = stop("df not supplied"), regex = stop("regex not supplied")) } \arguments{ \item{df}{a data.frame object}...
/man/selectrows.Rd
no_license
vapniks/rowcol_macros
R
false
false
479
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/rowcol_macros.R \name{selectrows} \alias{selectrows} \title{Select rows from data.frame matching regexp} \usage{ selectrows(df = stop("df not supplied"), regex = stop("regex not supplied")) } \arguments{ \item{df}{a data.frame object}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gw_core_functions.R \name{gw_do_weight} \alias{gw_do_weight} \title{Application of the geographic weighting function} \usage{ gw_do_weight(i, bw, nearbyMat, dist_mat, weight_func) } \arguments{ \item{i}{The i^{th} observation (as `obs_index` ...
/man/gw_do_weight.Rd
no_license
lbb220/gw
R
false
true
2,525
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gw_core_functions.R \name{gw_do_weight} \alias{gw_do_weight} \title{Application of the geographic weighting function} \usage{ gw_do_weight(i, bw, nearbyMat, dist_mat, weight_func) } \arguments{ \item{i}{The i^{th} observation (as `obs_index` ...
Model.Faddy <- function(parameter,model.name,link=link,covariates.matrix.mean, offset.mean,fixed.b,vnmax) { # data as number of trials & number of successes # the parameters c & log(b) are scalars and are the last parameters in the parameter vector # the order of parameters is a, c, b to matc...
/R/Model.Faddy.R
no_license
cran/CountsEPPM
R
false
false
2,709
r
Model.Faddy <- function(parameter,model.name,link=link,covariates.matrix.mean, offset.mean,fixed.b,vnmax) { # data as number of trials & number of successes # the parameters c & log(b) are scalars and are the last parameters in the parameter vector # the order of parameters is a, c, b to matc...
# --------------------------------------------------------------------- # Simulate a single Damped Linear Oscillator # Author: Original script by Steve Boker, modified by Kevin McKee # --------------------------------------------------------------------- # ---------------------------------- # Define the damped linea...
/lib/MS/experimental/MS_genData.R
no_license
kmckee90/LDE-Simulations
R
false
false
3,705
r
# --------------------------------------------------------------------- # Simulate a single Damped Linear Oscillator # Author: Original script by Steve Boker, modified by Kevin McKee # --------------------------------------------------------------------- # ---------------------------------- # Define the damped linea...
#' frequencies_to_stop_times #' #' Convert a GTFS 'frequencies' table to equivalent 'stop_times' that can be #' used for routing. #' #' @param gtfs A set of GTFS data returned from \link{extract_gtfs}. #' #' @return The input GTFS data with data from the 'frequencies' table converted #' to equivalent 'arrival_time' an...
/fuzzedpackages/gtfsrouter/R/frequencies_to_stop_times.R
no_license
akhikolla/testpackages
R
false
false
5,100
r
#' frequencies_to_stop_times #' #' Convert a GTFS 'frequencies' table to equivalent 'stop_times' that can be #' used for routing. #' #' @param gtfs A set of GTFS data returned from \link{extract_gtfs}. #' #' @return The input GTFS data with data from the 'frequencies' table converted #' to equivalent 'arrival_time' an...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/calculate_peptide_mass.R \name{calculate_peptide_mass} \alias{calculate_peptide_mass} \title{Calculate the mass of a peptide.} \usage{ calculate_peptide_mass(peptide) } \arguments{ \item{peptide}{Character string of amino acids. Amino...
/man/calculate_peptide_mass.Rd
no_license
goat-anti-rabbit/labelpepmatch.R
R
false
false
890
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/calculate_peptide_mass.R \name{calculate_peptide_mass} \alias{calculate_peptide_mass} \title{Calculate the mass of a peptide.} \usage{ calculate_peptide_mass(peptide) } \arguments{ \item{peptide}{Character string of amino acids. Amino...
#' @import TeachingSampling #' @export #' #' @title #' The required sample size for testing a null hyphotesis for a single difference of proportions #' @description #' This function returns the minimum sample size required for testing a null hyphotesis regarding a single proportion. #' @details #' We assume t...
/R/ss4dpH.R
no_license
APDataSc/samplesize4surveys
R
false
false
3,331
r
#' @import TeachingSampling #' @export #' #' @title #' The required sample size for testing a null hyphotesis for a single difference of proportions #' @description #' This function returns the minimum sample size required for testing a null hyphotesis regarding a single proportion. #' @details #' We assume t...
test_that("Renaming Variables works", { m1 <- lm(body_mass_g ~ bill_length_mm * species + flipper_length_mm * sex, data = penguins) expect_snapshot_output( extract_eq( m1, swap_var_names = c( "bill_length_mm" = "Bill Length (MM)", "flipper_length_mm" = "Fli...
/tests/testthat/test-lm.R
permissive
shaoyoucheng/equatiomatic
R
false
false
2,283
r
test_that("Renaming Variables works", { m1 <- lm(body_mass_g ~ bill_length_mm * species + flipper_length_mm * sex, data = penguins) expect_snapshot_output( extract_eq( m1, swap_var_names = c( "bill_length_mm" = "Bill Length (MM)", "flipper_length_mm" = "Fli...
complete <- data[complete.cases(data$Photo.Count, data$Public.Death, data$Price.Drop.dummy, data$Market.Rate.Commission, data$List.Agent.Lic.leading, data$Out.Of.Area.Agent, data$Lot.Size, data$Sq.Ft.Total, data$Age, data$...
/modelHedonic.R
no_license
aaronhsumath/legendary-parakeet
R
false
false
1,890
r
complete <- data[complete.cases(data$Photo.Count, data$Public.Death, data$Price.Drop.dummy, data$Market.Rate.Commission, data$List.Agent.Lic.leading, data$Out.Of.Area.Agent, data$Lot.Size, data$Sq.Ft.Total, data$Age, data$...
## read in emissions data and classification code emissions_data <- readRDS("summarySCC_PM25.rds") class_code <- readRDS("Source_Classification_Code.rds") ## subset to just data from Baltimore and sum up emissions by variable "type" baltimore_data <- subset(emissions_data, emissions_data$fips=="24510") baltimore...
/plot3.R
no_license
suba-psg/exploratory2
R
false
false
898
r
## read in emissions data and classification code emissions_data <- readRDS("summarySCC_PM25.rds") class_code <- readRDS("Source_Classification_Code.rds") ## subset to just data from Baltimore and sum up emissions by variable "type" baltimore_data <- subset(emissions_data, emissions_data$fips=="24510") baltimore...
library(tidyr) library(dplyr) url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if(!dir.exists("Data")) dir.create("Data") download.file(url, destfile = "./Data/Electric Power Consumtion.zip") unzip("./Data/Electric Power Consumtion.zip", exdir = "./Data") data = read.table...
/script.R
no_license
CesarBuenoB/Global-Active-Power
R
false
false
2,499
r
library(tidyr) library(dplyr) url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if(!dir.exists("Data")) dir.create("Data") download.file(url, destfile = "./Data/Electric Power Consumtion.zip") unzip("./Data/Electric Power Consumtion.zip", exdir = "./Data") data = read.table...
#' predict.hal #' #' A predict method for objects of class \code{hal}. #' #' @param object A fitted object of class \code{hal} #' @param newdata A matrix of new predictions to obtain predictions #' @param bigDesign A boolean indicating whether to obtain predictions all at once #' (which may be memory intractable) or ...
/R/predict_hal.R
permissive
benkeser/halplus
R
false
false
1,775
r
#' predict.hal #' #' A predict method for objects of class \code{hal}. #' #' @param object A fitted object of class \code{hal} #' @param newdata A matrix of new predictions to obtain predictions #' @param bigDesign A boolean indicating whether to obtain predictions all at once #' (which may be memory intractable) or ...
mtcars2 <- mtcars mtcars2$hp_cat <- "High" mtcars2[mtcars2$hp < mean(mtcars2$hp),]$hp_cat <- "Low" View(mtcars2)
/test.r
no_license
albertofem/r-training
R
false
false
114
r
mtcars2 <- mtcars mtcars2$hp_cat <- "High" mtcars2[mtcars2$hp < mean(mtcars2$hp),]$hp_cat <- "Low" View(mtcars2)
\name{likelihood_MC_geog} \alias{likelihood_MC_geog} \title{ Likelihood of a dataset under the matching competition model with biogeography. } \description{ Computes the likelihood of a dataset under the matching competition model with specified \code{sigma2} and \code{S} values and with a \code{geography.object} form...
/man/likelihood_MC_geog.Rd
no_license
mmanceau/PANDA
R
false
false
2,313
rd
\name{likelihood_MC_geog} \alias{likelihood_MC_geog} \title{ Likelihood of a dataset under the matching competition model with biogeography. } \description{ Computes the likelihood of a dataset under the matching competition model with specified \code{sigma2} and \code{S} values and with a \code{geography.object} form...
library(dplyr) library(beepr) get_directory = function(){ args <- commandArgs(trailingOnly = FALSE) file <- "--file=" rstudio <- "RStudio" match <- grep(rstudio, args) if(length(match) > 0){ return(dirname(rstudioapi::getSourceEditorContext()$path)) }else{ match <- grep(file, args) if (lengt...
/time_capsule/select_SNPs.R
no_license
Broccolito/CDP-Whole-Genome-Study
R
false
false
1,204
r
library(dplyr) library(beepr) get_directory = function(){ args <- commandArgs(trailingOnly = FALSE) file <- "--file=" rstudio <- "RStudio" match <- grep(rstudio, args) if(length(match) > 0){ return(dirname(rstudioapi::getSourceEditorContext()$path)) }else{ match <- grep(file, args) if (lengt...
# Q3 data("PlantGrowth") library("rjags") mod1_string = " model { for (i in 1:length(y)) { y[i] ~ dnorm(mu[grp[i]], prec) } for (j in 1:3) { mu[j] ~ dnorm(0.0, 1.0/1.0e6) } prec ~ dgamma(5/2.0, 5*1.0/2.0) sig = sqrt( 1.0 / prec ) } " # mu and precision both are differe...
/Code for all Quizzes/Quiz Week 3 - Lesson 8.R
no_license
jpark77/Bayesian-Statistics-Techniques-and-Models-from-UCSC-on-Coursera
R
false
false
1,713
r
# Q3 data("PlantGrowth") library("rjags") mod1_string = " model { for (i in 1:length(y)) { y[i] ~ dnorm(mu[grp[i]], prec) } for (j in 1:3) { mu[j] ~ dnorm(0.0, 1.0/1.0e6) } prec ~ dgamma(5/2.0, 5*1.0/2.0) sig = sqrt( 1.0 / prec ) } " # mu and precision both are differe...
### #2. 성별변수 기준으로 업종 확인하기 ### source("./arules_data.R", encoding = "UTF-8") adj_rule_sex <- subset(ttRule.pruned, (lhs %in% c("성별=남","성별=여"))) sex.df <- as(adj_rule_sex,"data.frame") sex.df$rules <- as.character(sex.df$rules) sex.df$lhs <- do.call(rbind,strsplit(sex.df$rules,"=>"))[,1] sex.df$rhs <- do.call(rbind,st...
/model/sex_table.R
no_license
ddinggu/r_plumber_app
R
false
false
2,228
r
### #2. 성별변수 기준으로 업종 확인하기 ### source("./arules_data.R", encoding = "UTF-8") adj_rule_sex <- subset(ttRule.pruned, (lhs %in% c("성별=남","성별=여"))) sex.df <- as(adj_rule_sex,"data.frame") sex.df$rules <- as.character(sex.df$rules) sex.df$lhs <- do.call(rbind,strsplit(sex.df$rules,"=>"))[,1] sex.df$rhs <- do.call(rbind,st...
\name{bowlerPerfForecast} \alias{bowlerPerfForecast} \title{ Forecast the bowler performance based on past performances using Holt-Winters forecasting } \description{ This function forecasts the performance of the bowler based on past performances using HoltWinters forecasting model } \usage{ bowlerPerfForecast(file, n...
/man/bowlerPerfForecast.Rd
no_license
kmaheshkulkarni/cricketr
R
false
false
1,782
rd
\name{bowlerPerfForecast} \alias{bowlerPerfForecast} \title{ Forecast the bowler performance based on past performances using Holt-Winters forecasting } \description{ This function forecasts the performance of the bowler based on past performances using HoltWinters forecasting model } \usage{ bowlerPerfForecast(file, n...
#' An example of a Function to be zeroed #' #' @param x Parameter values for which a zero is captured #' #' @return y value f(x) #' @export #' #' @examples #' myfun(10) myfun=function(x) { (s22-s11)*sin(x)*cos(x) +s12*(cos(x)^2-sin(x)^2) }
/Labs/lab4/ILAS2019/R/myfun.R
no_license
BhumoYangzom/MATH4753Dolma
R
false
false
254
r
#' An example of a Function to be zeroed #' #' @param x Parameter values for which a zero is captured #' #' @return y value f(x) #' @export #' #' @examples #' myfun(10) myfun=function(x) { (s22-s11)*sin(x)*cos(x) +s12*(cos(x)^2-sin(x)^2) }
library(cpr) ### Name: trimmed_quantile ### Title: Trimmed Quantiles ### Aliases: trimmed_quantile ### ** Examples trimmed_quantile(1:100, prob = 1:23 / 24, name = FALSE) # Warning # trimmed_quantile(1:100, trim = .3, prob = 1:23 / 24, name = FALSE) # no warning trimmed_quantile(1:100, trim = 3, prob = 1:23 / 24,...
/data/genthat_extracted_code/cpr/examples/trimmed_quantile.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
339
r
library(cpr) ### Name: trimmed_quantile ### Title: Trimmed Quantiles ### Aliases: trimmed_quantile ### ** Examples trimmed_quantile(1:100, prob = 1:23 / 24, name = FALSE) # Warning # trimmed_quantile(1:100, trim = .3, prob = 1:23 / 24, name = FALSE) # no warning trimmed_quantile(1:100, trim = 3, prob = 1:23 / 24,...
library(seqHMM) ### Name: simulate_mhmm ### Title: Simulate Mixture Hidden Markov Models ### Aliases: simulate_mhmm ### ** Examples emission_probs_1 <- matrix(c(0.75, 0.05, 0.25, 0.95), 2, 2) emission_probs_2 <- matrix(c(0.1, 0.8, 0.9, 0.2), 2, 2) colnames(emission_probs_1) <- colnames(emission_probs_2) <- c("he...
/data/genthat_extracted_code/seqHMM/examples/simulate_mhmm.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,017
r
library(seqHMM) ### Name: simulate_mhmm ### Title: Simulate Mixture Hidden Markov Models ### Aliases: simulate_mhmm ### ** Examples emission_probs_1 <- matrix(c(0.75, 0.05, 0.25, 0.95), 2, 2) emission_probs_2 <- matrix(c(0.1, 0.8, 0.9, 0.2), 2, 2) colnames(emission_probs_1) <- colnames(emission_probs_2) <- c("he...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{varcov<-} \alias{varcov<-} \title{Generic method for \code{"varcov<-"}} \usage{ varcov(object, ...) <- value } \arguments{ \item{object}{A model object.} \item{...}{Optional inputs.} \item{value}{The new value of the covaria...
/man/varcov-set.Rd
no_license
cran/tramME
R
false
true
507
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{varcov<-} \alias{varcov<-} \title{Generic method for \code{"varcov<-"}} \usage{ varcov(object, ...) <- value } \arguments{ \item{object}{A model object.} \item{...}{Optional inputs.} \item{value}{The new value of the covaria...
#===========# # Problem 2 # #===========# # a) library(ISLR) data("Carseats") set.seed(4268) n = nrow(Carseats) train = sample(1:n, 0.7 * nrow(Carseats), replace = F) test = (1:n)[-train] Carseats.train = Carseats[train, ] Carseats.test = Carseats[test, ] # b) library(tree) tree.mod = tree(Sales ~ ., data = Carseats....
/Exercises/recExM8.R
no_license
jimoskar/statLearn
R
false
false
6,306
r
#===========# # Problem 2 # #===========# # a) library(ISLR) data("Carseats") set.seed(4268) n = nrow(Carseats) train = sample(1:n, 0.7 * nrow(Carseats), replace = F) test = (1:n)[-train] Carseats.train = Carseats[train, ] Carseats.test = Carseats[test, ] # b) library(tree) tree.mod = tree(Sales ~ ., data = Carseats....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cities.R \docType{data} \name{cities} \alias{cities} \title{Latitudes and Longitudes of a few locations in Victoria, Australia} \format{A data frame with 5 rows and three columns \describe{ \item{city}{name of city} \item{longitude}{longi...
/man/cities.Rd
permissive
scrogster/scrogR
R
false
true
455
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cities.R \docType{data} \name{cities} \alias{cities} \title{Latitudes and Longitudes of a few locations in Victoria, Australia} \format{A data frame with 5 rows and three columns \describe{ \item{city}{name of city} \item{longitude}{longi...
testlist <- list(x1 = NaN, x2 = c(8.90389806741436e+252, NaN, NaN, 2.18007543808417e-106, -1.49167099137126e-154, 5.48612215793626e+303, 7.06328139680364e-304, 1.39067074679091e-309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y1 = 1.00084491914523e+65, y2...
/palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612969034-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
395
r
testlist <- list(x1 = NaN, x2 = c(8.90389806741436e+252, NaN, NaN, 2.18007543808417e-106, -1.49167099137126e-154, 5.48612215793626e+303, 7.06328139680364e-304, 1.39067074679091e-309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y1 = 1.00084491914523e+65, y2...
/script_R/Pruebas_Conexion_Twitter.R
no_license
KariVillagran/web_mining
R
false
false
2,166
r
# Take in oncoprint-goi-lists-OpenPBTA.csv and create a goi file for each # column with associated genes of interest for each specified broad histology # # # Chante Bethell for CCDL 2021 # # # #### USAGE # This script is intended to be sourced in the script as follows: # # Rscript --vanilla 00-prepare-goi-lists.R \ ...
/analyses/oncoprint-landscape/00-prepare-goi-lists.R
permissive
komalsrathi/OpenPBTA-analysis
R
false
false
1,851
r
# Take in oncoprint-goi-lists-OpenPBTA.csv and create a goi file for each # column with associated genes of interest for each specified broad histology # # # Chante Bethell for CCDL 2021 # # # #### USAGE # This script is intended to be sourced in the script as follows: # # Rscript --vanilla 00-prepare-goi-lists.R \ ...
library(ngstk) ### Name: set_tools ### Title: Function to generate tools path object ### Aliases: set_tools ### ** Examples config.file <- system.file('extdata', 'demo/tools_config.json', package = 'ngstk') config.list <- list(gatk = '/path/gatk') config.vec <- c('/path/samtools') names(config.vec) <- 'samtools' to...
/data/genthat_extracted_code/ngstk/examples/set_tools.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
434
r
library(ngstk) ### Name: set_tools ### Title: Function to generate tools path object ### Aliases: set_tools ### ** Examples config.file <- system.file('extdata', 'demo/tools_config.json', package = 'ngstk') config.list <- list(gatk = '/path/gatk') config.vec <- c('/path/samtools') names(config.vec) <- 'samtools' to...
# New DevGenes data devData = read.delim2('DevGenesDatabases-ParticipantsWMetabol_DATA_LABELS_2019-03-15_1518.csv', header = TRUE, sep = ",", dec = ",", stringsAsFactor = FALSE) devData = devData[, c(1:99, 156)] devData = devData[, -c(1,3,14,16,22,34,41,42,56,62,68,69,72,76:81,83:98)] devData = devData[, c(1, 63, 64, ...
/writingDevGenes.R
no_license
bchoskins/Lab_BH
R
false
false
1,084
r
# New DevGenes data devData = read.delim2('DevGenesDatabases-ParticipantsWMetabol_DATA_LABELS_2019-03-15_1518.csv', header = TRUE, sep = ",", dec = ",", stringsAsFactor = FALSE) devData = devData[, c(1:99, 156)] devData = devData[, -c(1,3,14,16,22,34,41,42,56,62,68,69,72,76:81,83:98)] devData = devData[, c(1, 63, 64, ...
## ## membershipAttack.r ## ## demonstrate membership attacks of Homer et al. (2008) and of Dwork, Smith, Steinke, Ullman, Vadhan (2015). ## ## jH 2019.2.11 ## rm(list=ls()) # Remove any objects in memory par(mfrow=c(1,1)) # Rebuild fresh plot window, if previously divided #### Parameters #### set...
/examples/wk1_attacks/membershipAttackCompleted.r
no_license
privacytoolsproject/cs208
R
false
false
5,918
r
## ## membershipAttack.r ## ## demonstrate membership attacks of Homer et al. (2008) and of Dwork, Smith, Steinke, Ullman, Vadhan (2015). ## ## jH 2019.2.11 ## rm(list=ls()) # Remove any objects in memory par(mfrow=c(1,1)) # Rebuild fresh plot window, if previously divided #### Parameters #### set...
library(RGCCTranslationUnit) tu = parseTU("libcroco.c.t00.tu")
/TU/tu.R
no_license
omegahat/RCSS
R
false
false
65
r
library(RGCCTranslationUnit) tu = parseTU("libcroco.c.t00.tu")
# R Programming # Assignment Week 2 # Part 3 # Hazim Hanif corr <- function(directory, threshold=0){ df <- complete(directory) cor_vect <- NULL for(row in 1:nrow(df)){ if(df[row,"nobs"] > threshold){ current_dir <- paste(directory,"/",formatC(df[row,"id"], width=3, flag="0"),".csv",sep = ...
/R-Programming/Week-2/corr.R
no_license
hazimhanif/datasciencecoursera
R
false
false
631
r
# R Programming # Assignment Week 2 # Part 3 # Hazim Hanif corr <- function(directory, threshold=0){ df <- complete(directory) cor_vect <- NULL for(row in 1:nrow(df)){ if(df[row,"nobs"] > threshold){ current_dir <- paste(directory,"/",formatC(df[row,"id"], width=3, flag="0"),".csv",sep = ...
load('dipperData.RData') ## optionally, truncate data ind <- 1:3; nind<-length(ind); first<-first[ind]; y<-y[ind,,drop=FALSE]; x_init<-x_init[ind,,drop=FALSE] code_dipper <- nimbleCode({ phi ~ dunif(0, 1) p ~ dunif(0, 1) for (i in 1:nind) { x[i, first[i]] <- 1 for (t in (fir...
/dipperCode.R
no_license
danielturek/dipper
R
false
false
2,021
r
load('dipperData.RData') ## optionally, truncate data ind <- 1:3; nind<-length(ind); first<-first[ind]; y<-y[ind,,drop=FALSE]; x_init<-x_init[ind,,drop=FALSE] code_dipper <- nimbleCode({ phi ~ dunif(0, 1) p ~ dunif(0, 1) for (i in 1:nind) { x[i, first[i]] <- 1 for (t in (fir...
#' Standard taxonomic ranks #' #' @export taxonomic_ranks <- c( "Kingdom", "Phylum", "Class", "Order", "Family", "Genus", "Species") #' Split taxonomic assignments into fixed taxonomic ranks #' #' @param assignments Character vector of taxonomic assignments #' @param ranks Character vector of taxonomic ranks, used...
/R/format.R
permissive
kylebittinger/somanytaxa
R
false
false
2,979
r
#' Standard taxonomic ranks #' #' @export taxonomic_ranks <- c( "Kingdom", "Phylum", "Class", "Order", "Family", "Genus", "Species") #' Split taxonomic assignments into fixed taxonomic ranks #' #' @param assignments Character vector of taxonomic assignments #' @param ranks Character vector of taxonomic ranks, used...
##### 0. 前準備 ======================================================== # library(tidyverse) library(dplyr) library(tidyr) library(stringr) library(forcats) library(tibble) library(readr) # データのファイルパス。各自のパソコンのディレクトリ構造に合わせて書き替える。 DATA_PATH <- "~/Data/JAHEAD/Process_Files/" # これまでのデータの読み込み load(str_c(DATA_PATH, "data_aft...
/src/14_generate_variables_4.R
no_license
nishinoh/article_2021_jws
R
false
false
4,702
r
##### 0. 前準備 ======================================================== # library(tidyverse) library(dplyr) library(tidyr) library(stringr) library(forcats) library(tibble) library(readr) # データのファイルパス。各自のパソコンのディレクトリ構造に合わせて書き替える。 DATA_PATH <- "~/Data/JAHEAD/Process_Files/" # これまでのデータの読み込み load(str_c(DATA_PATH, "data_aft...
# Models which documents belong to which topic, based on a passed number of topics topicModel.topics <- function(data, k){ require("topicmodels") lda = LDA(x = data, k = k, method = "VEM") return(topics(lda)) # which documents belong to which topic }
/R/topicModel.topics.R
no_license
aidanoneill/textmining
R
false
false
274
r
# Models which documents belong to which topic, based on a passed number of topics topicModel.topics <- function(data, k){ require("topicmodels") lda = LDA(x = data, k = k, method = "VEM") return(topics(lda)) # which documents belong to which topic }
suppressPackageStartupMessages({ library(data.table) library(SingleCellExperiment) library(dplyr) library(curatedOvarianData) library(yaml) }) params <- read_yaml("../../config.yml") data_path <- params$data_path local_data_path <- params$local_data_path # Load in microarray data data("GSE9891_eset") tothil...
/scripts/preprocess_data/process_Tothill_expression.R
permissive
greenelab/hgsoc_deconvolution
R
false
false
1,648
r
suppressPackageStartupMessages({ library(data.table) library(SingleCellExperiment) library(dplyr) library(curatedOvarianData) library(yaml) }) params <- read_yaml("../../config.yml") data_path <- params$data_path local_data_path <- params$local_data_path # Load in microarray data data("GSE9891_eset") tothil...
#' @export create_report <- function(title = "Tes", authors = "Cuong Sai", format = "PDF", output_dir = getwd()) { appDir = system.file("report/report.Rmd", package = "PdM") if (appDir == "") { stop("Could not find example directory. Try re-installing `PdM`.", call. = FALSE) } out = rmarkdown::render(appD...
/R/create_report.R
no_license
victor-hart/PdM
R
false
false
384
r
#' @export create_report <- function(title = "Tes", authors = "Cuong Sai", format = "PDF", output_dir = getwd()) { appDir = system.file("report/report.Rmd", package = "PdM") if (appDir == "") { stop("Could not find example directory. Try re-installing `PdM`.", call. = FALSE) } out = rmarkdown::render(appD...
library(MOTE) ### Name: epsilon.full.SS ### Title: Epsilon for ANOVA from F and Sum of Squares ### Aliases: epsilon.full.SS ### Keywords: ANOVA effect epsilon, size, ### ** Examples #The following example is derived from the "bn1_data" dataset, included #in the MOTE library. #A health psychologist recorded the nu...
/data/genthat_extracted_code/MOTE/examples/epsilon.full.SS.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
841
r
library(MOTE) ### Name: epsilon.full.SS ### Title: Epsilon for ANOVA from F and Sum of Squares ### Aliases: epsilon.full.SS ### Keywords: ANOVA effect epsilon, size, ### ** Examples #The following example is derived from the "bn1_data" dataset, included #in the MOTE library. #A health psychologist recorded the nu...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/TTRtools.R \name{lags} \alias{growth} \alias{lags} \alias{naCheck} \title{Miscellaneous Tools} \usage{ lags(x, n = 1) growth(price, signals, ...) naCheck(x, n = 0) } \arguments{ \item{x}{Object that is coercible to xts or matrix.} ...
/man/TTRtools.Rd
no_license
jm16/TTR
R
false
false
1,231
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/TTRtools.R \name{lags} \alias{growth} \alias{lags} \alias{naCheck} \title{Miscellaneous Tools} \usage{ lags(x, n = 1) growth(price, signals, ...) naCheck(x, n = 0) } \arguments{ \item{x}{Object that is coercible to xts or matrix.} ...
my_desserts <- read.csv("~/oss/dessert/favorite_desserts.csv")
/read_desserts.R
no_license
brunj7/dessert
R
false
false
62
r
my_desserts <- read.csv("~/oss/dessert/favorite_desserts.csv")
#prep Jan's data load("Jan_NB/scRNAseq_NB_PMC_Full.RData") Jan_nb <- data genes_10x <- read.table("/lustre/scratch119/realdata/mdt1/team274/ek12/Neuroblastoma/4602STDY7685340/outs/filtered_gene_bc_matrices/GRCh38/genes.tsv", sep = "\t", header = F) #main matrix mtx <- Jan_nb$data$counts #column metadata meta_data <-...
/u2.R
no_license
GKild/neuroblastoma
R
false
false
8,401
r
#prep Jan's data load("Jan_NB/scRNAseq_NB_PMC_Full.RData") Jan_nb <- data genes_10x <- read.table("/lustre/scratch119/realdata/mdt1/team274/ek12/Neuroblastoma/4602STDY7685340/outs/filtered_gene_bc_matrices/GRCh38/genes.tsv", sep = "\t", header = F) #main matrix mtx <- Jan_nb$data$counts #column metadata meta_data <-...
#' Dynamic Probability Control Limits (DPCL) #' #' #' Set DPCL for risk-adjusted Bernoulli CUSUM Charts #' @export #' @import stats #' @import data.table #' @param patient_risks Double. Vector of patient risk scores (individual risk of adverse event) #' @param N Integer. Number of simulation runs #' @param odd...
/fuzzedpackages/cusum/R/racusum_limit_dpcl.R
no_license
akhikolla/testpackages
R
false
false
2,580
r
#' Dynamic Probability Control Limits (DPCL) #' #' #' Set DPCL for risk-adjusted Bernoulli CUSUM Charts #' @export #' @import stats #' @import data.table #' @param patient_risks Double. Vector of patient risk scores (individual risk of adverse event) #' @param N Integer. Number of simulation runs #' @param odd...
testlist <- list(a = 0L, b = 0L, x = c(-1L, -64000L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result...
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610129820-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
321
r
testlist <- list(a = 0L, b = 0L, x = c(-1L, -64000L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(grattan:::anyOutside,testlist) str(result...
"autodecopath" <- function () { ############################################################# # # TITLE: autodecopath() # AUTHOR: SANDOR KABOS # DATE: 20 AUG, 2003 # CALLS: # NEEDS: # NOTES: BUILD VFONAL DECOMPOSITION PATH MATRIX BASED ON # DEFAULT REQUIREMENTS FOR KABOS TYPE DA...
/R/autodecopath.R
no_license
cran/hdeco
R
false
false
1,767
r
"autodecopath" <- function () { ############################################################# # # TITLE: autodecopath() # AUTHOR: SANDOR KABOS # DATE: 20 AUG, 2003 # CALLS: # NEEDS: # NOTES: BUILD VFONAL DECOMPOSITION PATH MATRIX BASED ON # DEFAULT REQUIREMENTS FOR KABOS TYPE DA...
odfPageBreak <- function() { x <- list(text='<text:p text:style-name="OdfPageBreak"/>') return(structure(x, class='odfPageBreak')) } print.odfPageBreak <- function(x, ...) { cat(x$text, '\n', sep='') }
/R/odfPageBreak.R
no_license
cran/odfWeave
R
false
false
212
r
odfPageBreak <- function() { x <- list(text='<text:p text:style-name="OdfPageBreak"/>') return(structure(x, class='odfPageBreak')) } print.odfPageBreak <- function(x, ...) { cat(x$text, '\n', sep='') }