content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.ns.R \name{fivepointB.J} \alias{fivepointB.J} \title{Encode nonstationary GMRF precision matrix} \usage{ fivepointB.J(x, y, grd, symm = FALSE) } \arguments{ \item{x}{x-coordinates of grid} \item{y}{y-coordinates of grid} \item{grd...
/man/fivepointB.J.Rd
permissive
ashtonwiens/nonstationary
R
false
true
535
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.ns.R \name{fivepointB.J} \alias{fivepointB.J} \title{Encode nonstationary GMRF precision matrix} \usage{ fivepointB.J(x, y, grd, symm = FALSE) } \arguments{ \item{x}{x-coordinates of grid} \item{y}{y-coordinates of grid} \item{grd...
library(ape) testtree <- read.tree("8367_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8367_0_unrooted.txt")
/codeml_files/newick_trees_processed/8367_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("8367_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8367_0_unrooted.txt")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ratioAllComb.R \name{.bringToCtr} \alias{.bringToCtr} \title{Bring most extreme to center} \usage{ .bringToCtr(aa, ctr, ctrFa = 0.75) } \arguments{ \item{aa}{(numeric) main input} \item{ctr}{(numeric) 'control'} \item{ctrFa}{(numeric <1) mo...
/man/dot-bringToCtr.Rd
no_license
cran/wrMisc
R
false
true
555
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ratioAllComb.R \name{.bringToCtr} \alias{.bringToCtr} \title{Bring most extreme to center} \usage{ .bringToCtr(aa, ctr, ctrFa = 0.75) } \arguments{ \item{aa}{(numeric) main input} \item{ctr}{(numeric) 'control'} \item{ctrFa}{(numeric <1) mo...
# Title : pad_by_time # Objective : TODO # Created by: Owner # Created on: 2020/9/5 # URL : https://business-science.github.io/timetk/reference/pad_by_time.html # <ポイント> # - データセットの日付インデックスのパターンや期間で存在しない日付を追加する # --- カレンダーを指定することはできない(Seven Dayで補完される) # --- # <構文> # pad_by_time( # .data, # .date_va...
/library/timetk/function/operations/dataframe/pad_by_time.R
no_license
ssh352/r-timeseries
R
false
false
2,609
r
# Title : pad_by_time # Objective : TODO # Created by: Owner # Created on: 2020/9/5 # URL : https://business-science.github.io/timetk/reference/pad_by_time.html # <ポイント> # - データセットの日付インデックスのパターンや期間で存在しない日付を追加する # --- カレンダーを指定することはできない(Seven Dayで補完される) # --- # <構文> # pad_by_time( # .data, # .date_va...
# Snow crab --- Areal unit modelling of habitat -- no reliance upon stmv fields ###------------------------------------------------ #OS Compatability ###------------------------------------------------ #The use of the BYM2 model precludes using Windows, must be run in Linux #Virtual box install of Ubuntu or Debi...
/inst/scripts/03.abundance_estimation_carstm.r
permissive
PEDsnowcrab/bio.snowcrab
R
false
false
32,089
r
# Snow crab --- Areal unit modelling of habitat -- no reliance upon stmv fields ###------------------------------------------------ #OS Compatability ###------------------------------------------------ #The use of the BYM2 model precludes using Windows, must be run in Linux #Virtual box install of Ubuntu or Debi...
CoreSetter<- function(genos=NULL,criterion="HET",save=NULL,power=10,mat=NULL){ ###Subsetting using HET criterion if(criterion=="HET"){ if(length(setdiff(save,colnames(genos)))>0) stop("One or more saved genotypes not present in genos") genos<-as.matrix(genos) mode(genos)<-"numeric" n.genos<-ncol(gen...
/R/CoreSetter.R
no_license
cran/GeneticSubsetter
R
false
false
3,528
r
CoreSetter<- function(genos=NULL,criterion="HET",save=NULL,power=10,mat=NULL){ ###Subsetting using HET criterion if(criterion=="HET"){ if(length(setdiff(save,colnames(genos)))>0) stop("One or more saved genotypes not present in genos") genos<-as.matrix(genos) mode(genos)<-"numeric" n.genos<-ncol(gen...
library(shiny) library(car) # Import library to use recode() function shinyServer(function(input, output) { values <- reactiveValues() # Calculate the interest and amount observe({ input$action_Calc values$int <- isolate({ input$num_principal * input$slider_intrate * recode(input$...
/server.R
no_license
dongzhilong/Developing-Data-Products-assignment
R
false
false
1,367
r
library(shiny) library(car) # Import library to use recode() function shinyServer(function(input, output) { values <- reactiveValues() # Calculate the interest and amount observe({ input$action_Calc values$int <- isolate({ input$num_principal * input$slider_intrate * recode(input$...
# make_model dataset for bayesian JAGS model library(dplyr) library(readr) library(lubridate) library(glue) library(tidyr) library(zoo) f_make_bayes_mod14inundposs_sincelast_inter_dataset <- function() { mod_df <- read_csv("data_model/model_covars_chla_fulljoin.csv") %>% mutate(rdoy = lubridate::yday(date) + 92...
/scripts/functions/f_make_bayes_mod14inundposs_sincelast_inter_dataset.R
no_license
Delta-Stewardship-Council/swg-21-connectivity
R
false
false
4,443
r
# make_model dataset for bayesian JAGS model library(dplyr) library(readr) library(lubridate) library(glue) library(tidyr) library(zoo) f_make_bayes_mod14inundposs_sincelast_inter_dataset <- function() { mod_df <- read_csv("data_model/model_covars_chla_fulljoin.csv") %>% mutate(rdoy = lubridate::yday(date) + 92...
## Part I: calculate Gaps # setting working directory, read data and rename column setwd("/Users/zhuyu/Desktop/NIH") data08 = read.csv('NIGMS_R01_R37_93_08.csv',head=T,stringsAsFactors = FALSE) data15 = read.csv('NIGMS_R01_R37_09_15.csv',head=T,stringsAsFactors = FALSE) data15=data15[,!(colnames(data15)%in%c("...
/Practicum-NIH Project/Re-entry_Revisedcode.R
no_license
zhuyunning/zhuyunning
R
false
false
14,402
r
## Part I: calculate Gaps # setting working directory, read data and rename column setwd("/Users/zhuyu/Desktop/NIH") data08 = read.csv('NIGMS_R01_R37_93_08.csv',head=T,stringsAsFactors = FALSE) data15 = read.csv('NIGMS_R01_R37_09_15.csv',head=T,stringsAsFactors = FALSE) data15=data15[,!(colnames(data15)%in%c("...
source("common.R") headerInfo = tags$h3("AGAMEMNON v0.1.0") footerInfo = tags$small(tags$a("Visualization code", href = "")) taxlist <- function(x) { as.character(na.omit(unique(x))) } shinyUI(navbarPage("AGAMEMNON v0.1.0", tabPanel("Microbial Abundances", tags$h6("Manhattan plots of micro...
/shinyApp/ui.R
permissive
harriscw/agamemnon
R
false
false
6,558
r
source("common.R") headerInfo = tags$h3("AGAMEMNON v0.1.0") footerInfo = tags$small(tags$a("Visualization code", href = "")) taxlist <- function(x) { as.character(na.omit(unique(x))) } shinyUI(navbarPage("AGAMEMNON v0.1.0", tabPanel("Microbial Abundances", tags$h6("Manhattan plots of micro...
library(reshape2) filename <- "getdata_dataset.zip" ## Download and unzip the dataset: if (!file.exists(filename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip " download.file(fileURL, filename, method="curl") unzip(filename) } # Load activity labels + fe...
/run_analysis.R
no_license
vladyslav-fediukov/GetClnData
R
false
false
1,986
r
library(reshape2) filename <- "getdata_dataset.zip" ## Download and unzip the dataset: if (!file.exists(filename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip " download.file(fileURL, filename, method="curl") unzip(filename) } # Load activity labels + fe...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/firstdate.R \name{firstdate} \alias{firstdate} \title{Get the first date with available data} \usage{ firstdate(profile.id, token) } \arguments{ \item{profile.id}{Google Analytics profile ID. Can be obtained using the \code{\link{list...
/man/firstdate.Rd
no_license
Timmwardion/RDFA
R
false
false
862
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/firstdate.R \name{firstdate} \alias{firstdate} \title{Get the first date with available data} \usage{ firstdate(profile.id, token) } \arguments{ \item{profile.id}{Google Analytics profile ID. Can be obtained using the \code{\link{list...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get-triangle.R \name{get_triangle} \alias{get_triangle} \title{Get Lower or Upper Triangle of Correlations Matrix} \usage{ get_triangle(cormat, part = "upper") } \arguments{ \item{cormat}{Usually correlation matrix} \item{part}{Single string...
/man/get_triangle.Rd
permissive
konradzdeb/KEmisc
R
false
true
833
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get-triangle.R \name{get_triangle} \alias{get_triangle} \title{Get Lower or Upper Triangle of Correlations Matrix} \usage{ get_triangle(cormat, part = "upper") } \arguments{ \item{cormat}{Usually correlation matrix} \item{part}{Single string...
library(ape) testtree <- read.tree("6475_2.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6475_2_unrooted.txt")
/codeml_files/newick_trees_processed/6475_2/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("6475_2.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6475_2_unrooted.txt")
#setwd("d:/Work/2019/R") setwd('ExData_Plotting1') DF <- read.csv('data_cut.txt', header = TRUE, colClasses = c('character','character',rep('numeric',7)), na.strings = "?") DF$DateTime <- paste(DF$Date, DF$Time) DF$DateTime <- as.POSIXct(DF$DateTime) #Weekdays is in Russian due to Russian localization. png(file="figure...
/figure2.R
no_license
KonstantinOsipov/ExData_Plotting1
R
false
false
482
r
#setwd("d:/Work/2019/R") setwd('ExData_Plotting1') DF <- read.csv('data_cut.txt', header = TRUE, colClasses = c('character','character',rep('numeric',7)), na.strings = "?") DF$DateTime <- paste(DF$Date, DF$Time) DF$DateTime <- as.POSIXct(DF$DateTime) #Weekdays is in Russian due to Russian localization. png(file="figure...
# Week 5 - Twitter # VIDEO 5 # Read in the data tweets = read.csv("tweets.csv", stringsAsFactors=FALSE) str(tweets) # Create dependent variable tweets$Negative = as.factor(tweets$Avg <= -1) table(tweets$Negative) # Install new packages install.packages("tm") library(tm) install.packages("SnowballC")...
/R documents/WEEK 5/Week5_Twitter.R
no_license
wanghaoran1992/Analytics-Edge
R
false
false
2,286
r
# Week 5 - Twitter # VIDEO 5 # Read in the data tweets = read.csv("tweets.csv", stringsAsFactors=FALSE) str(tweets) # Create dependent variable tweets$Negative = as.factor(tweets$Avg <= -1) table(tweets$Negative) # Install new packages install.packages("tm") library(tm) install.packages("SnowballC")...
## ----global_options, include=FALSE-------------------------------------------- knitr::opts_chunk$set(warning=FALSE, message=FALSE) ## ----------------------------------------------------------------------------- library(drord) # load data data(covid19) # look at first 3 rows head(covid19, 3) ## ------------------...
/inst/doc/using_drord.R
no_license
cran/drord
R
false
false
4,761
r
## ----global_options, include=FALSE-------------------------------------------- knitr::opts_chunk$set(warning=FALSE, message=FALSE) ## ----------------------------------------------------------------------------- library(drord) # load data data(covid19) # look at first 3 rows head(covid19, 3) ## ------------------...
## Editor vals <- seq(1,100) vals <- seq(from =1, to = 100) ## Load Data storm <- read.csv( 'data/StormEvents.csv', na.strings = C('NA', 'UNKNOWNx')) ## Lists ## Factors education <- factor( c('college', 'highschool', 'college', 'middle', 'middle'), levels = c('middle', 'highschool', 'college')) ...
/worksheet-1.R
no_license
portiawilliams/Handouts
R
false
false
715
r
## Editor vals <- seq(1,100) vals <- seq(from =1, to = 100) ## Load Data storm <- read.csv( 'data/StormEvents.csv', na.strings = C('NA', 'UNKNOWNx')) ## Lists ## Factors education <- factor( c('college', 'highschool', 'college', 'middle', 'middle'), levels = c('middle', 'highschool', 'college')) ...
library(WGCNA) options(stringsAsFactors = FALSE); ###---------------------- # Read data print("Read Data") expressionList = read.csv('expressionList_5xFAD', header = TRUE); ## Prepare and clean data #Remove rows with less than 1 TPM expressionList = expressionList[expressionList[,ncol(expressionList)]>1,] datExpr0 ...
/WGCNA_5xFAD.R
no_license
mortazavilab/5xFAD_WGCNA
R
false
false
3,362
r
library(WGCNA) options(stringsAsFactors = FALSE); ###---------------------- # Read data print("Read Data") expressionList = read.csv('expressionList_5xFAD', header = TRUE); ## Prepare and clean data #Remove rows with less than 1 TPM expressionList = expressionList[expressionList[,ncol(expressionList)]>1,] datExpr0 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/string.R \name{stringStartsWith} \alias{stringStartsWith} \title{stringStartsWith} \usage{ stringStartsWith(x, startsWith) } \arguments{ \item{x}{vector of character to be checked if they start with \code{startsWith}} \item{startsWith}{strin...
/man/stringStartsWith.Rd
permissive
KWB-R/kwb.utils
R
false
true
552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/string.R \name{stringStartsWith} \alias{stringStartsWith} \title{stringStartsWith} \usage{ stringStartsWith(x, startsWith) } \arguments{ \item{x}{vector of character to be checked if they start with \code{startsWith}} \item{startsWith}{strin...
################################################## ## Title: Make Shots Charts R Script ## Description: Creating shot charts for each player ## Input: shots-data.csv: prepared shot data of five players in data/ folder: ## Output: ## - firstname-lastname-shot-chart.pdf: shot charts for each player stored in images/...
/workout01/code/make-shot-charts-script.R
no_license
stat133-sp19/hw-stat133-jiajingjing98
R
false
false
3,666
r
################################################## ## Title: Make Shots Charts R Script ## Description: Creating shot charts for each player ## Input: shots-data.csv: prepared shot data of five players in data/ folder: ## Output: ## - firstname-lastname-shot-chart.pdf: shot charts for each player stored in images/...
### Hands on Exercise 2 ### ## Read infant mortality csv file and remove last variable ## getwd() setwd("C:/YYYYYY/AMMA/2017/Data/data_2017") infantMortality <- read.csv("Infant Mortality Rates.csv") infantMortality <- infantMortality[-nrow(infantMortality),] ## Read 2 tables from wikipedia page and find number of O...
/Hands on Exercise 2.R
no_license
lima-stephen/R-Hands-on-Exercises
R
false
false
823
r
### Hands on Exercise 2 ### ## Read infant mortality csv file and remove last variable ## getwd() setwd("C:/YYYYYY/AMMA/2017/Data/data_2017") infantMortality <- read.csv("Infant Mortality Rates.csv") infantMortality <- infantMortality[-nrow(infantMortality),] ## Read 2 tables from wikipedia page and find number of O...
\name{getopt} \alias{getopt} \title{Parse command line options} \description{Load an "enhanced" Windows ini file, supporting multiple sections with same name and multiple values with same name. } \usage{ getopt(options, arguments) } \arguments{ \item{options}{A list where names are allowed option characters an...
/R/packages/basetools/man/getopt.Rd
permissive
tnrangwi/CompareProgrammingUsingHolidayManager
R
false
false
1,275
rd
\name{getopt} \alias{getopt} \title{Parse command line options} \description{Load an "enhanced" Windows ini file, supporting multiple sections with same name and multiple values with same name. } \usage{ getopt(options, arguments) } \arguments{ \item{options}{A list where names are allowed option characters an...
#walleye data wrangling from DNR creel data for VIlas county #clear global evnironment rm(list=ls()) #load any packages we'll need library(dplyr) library(ggplot2) #go to hsSurvey folder with creel data setwd("C:/Users/Camille/Desktop/Fishscapes/hsSurvey/") #load data from ecreel survey about fishing pr...
/Walleye_PEs.R
no_license
cdassow/hsSurvey
R
false
false
4,527
r
#walleye data wrangling from DNR creel data for VIlas county #clear global evnironment rm(list=ls()) #load any packages we'll need library(dplyr) library(ggplot2) #go to hsSurvey folder with creel data setwd("C:/Users/Camille/Desktop/Fishscapes/hsSurvey/") #load data from ecreel survey about fishing pr...
# Download and unzip the source files # fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileURL, "./data/household_power_consumption.zip", method = "curl") unzip("./data/household_power_consumption.zip", exdir = "./data/")
/data/DownloadFile.R
no_license
keithburner/ExData_Plotting1
R
false
false
290
r
# Download and unzip the source files # fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileURL, "./data/household_power_consumption.zip", method = "curl") unzip("./data/household_power_consumption.zip", exdir = "./data/")
#' ICU data #' #' icu dataset. #' #' @format A data.frame with 200 rows and 21 variables: #' \describe{ #' \item{id}{Identification code (ID Number)} #' \item{sta}{Vital Status at hospital discharge (1: Lived, 2: Died)} #' \item{age}{Age (Years)} #' \item{gender}{Gender (1: Male, 2: Female)} #' \item{race}{Race (1: W...
/R/icu.R
no_license
knightgu/aplore3
R
false
false
1,646
r
#' ICU data #' #' icu dataset. #' #' @format A data.frame with 200 rows and 21 variables: #' \describe{ #' \item{id}{Identification code (ID Number)} #' \item{sta}{Vital Status at hospital discharge (1: Lived, 2: Died)} #' \item{age}{Age (Years)} #' \item{gender}{Gender (1: Male, 2: Female)} #' \item{race}{Race (1: W...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/S3Shapes.R \name{triangleS3} \alias{triangleS3} \title{Constructor for S3 triangle class} \usage{ triangleS3(type = "right", color = "blue") } \arguments{ \item{type}{a string variable denoting the type of the triangle, right, isosceles, etc....
/man/triangleS3.Rd
no_license
wffadel/shapes4
R
false
true
542
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/S3Shapes.R \name{triangleS3} \alias{triangleS3} \title{Constructor for S3 triangle class} \usage{ triangleS3(type = "right", color = "blue") } \arguments{ \item{type}{a string variable denoting the type of the triangle, right, isosceles, etc....
names(iris) is.vector(names(iris)) vec<-names(iris) length(vec) nrow(iris) ncol(iris) dim(iris) iris(,1) iris[,1] sum<-iris[,1] length(sum) sum(sum) sum(sum)/length(sum) mean(iris[,1]) iris[,5] summary(iris)
/iris.R
no_license
Mayankagupta/R-programs
R
false
false
224
r
names(iris) is.vector(names(iris)) vec<-names(iris) length(vec) nrow(iris) ncol(iris) dim(iris) iris(,1) iris[,1] sum<-iris[,1] length(sum) sum(sum) sum(sum)/length(sum) mean(iris[,1]) iris[,5] summary(iris)
#### ff_draftpicks - Sleeper #### #' Sleeper Draft Picks #' #' @param conn the list object created by `ff_connect()` #' @param ... other arguments (currently unused) #' #' @describeIn ff_draftpicks Sleeper: retrieves current and future draft picks #' #' @examples #' \donttest{ #' try({ # try only shown here because so...
/R/sleeper_draftpicks.R
permissive
TheMathNinja/ffscrapr
R
false
false
3,592
r
#### ff_draftpicks - Sleeper #### #' Sleeper Draft Picks #' #' @param conn the list object created by `ff_connect()` #' @param ... other arguments (currently unused) #' #' @describeIn ff_draftpicks Sleeper: retrieves current and future draft picks #' #' @examples #' \donttest{ #' try({ # try only shown here because so...
# Tue Nov 21 09:27:23 PST 2017 VLENGTH = 22 OBS_HOUR = 120 FT_MILE = 5280 VEH_MILE = FT_MILE / VLENGTH load_station = function(f = "../data/fd_shape.tsv") { fd_shape = read.table(f , col.names = c("station", "right_end_occ", "mean_flow", "sd_flow", "number_observed") , colClasses = c("integer", ...
/nonparametric/helpers.R
no_license
clarkfitzg/pems_fd
R
false
false
3,269
r
# Tue Nov 21 09:27:23 PST 2017 VLENGTH = 22 OBS_HOUR = 120 FT_MILE = 5280 VEH_MILE = FT_MILE / VLENGTH load_station = function(f = "../data/fd_shape.tsv") { fd_shape = read.table(f , col.names = c("station", "right_end_occ", "mean_flow", "sd_flow", "number_observed") , colClasses = c("integer", ...
library(tibble) library(tidyr) library(plyr) enviPickSettingFiles <- list.files("input" ,"settings-enviPick-(.*).ini$") enviPickSettings <- suppressWarnings(as_tibble(do.call(rbind,llply( enviPickSettingFiles, function(settingsFile) { re <- "settings-enviPick-(.*).ini" settingsName <- sub(re, "\\1", settin...
/parameters.R
no_license
meowcat/ms2field-wwtp
R
false
false
3,374
r
library(tibble) library(tidyr) library(plyr) enviPickSettingFiles <- list.files("input" ,"settings-enviPick-(.*).ini$") enviPickSettings <- suppressWarnings(as_tibble(do.call(rbind,llply( enviPickSettingFiles, function(settingsFile) { re <- "settings-enviPick-(.*).ini" settingsName <- sub(re, "\\1", settin...
################################################################################ # Plik zawierający kod logiki aplikacji (serwera) ################################################################################ shinyServer(function(input, output, session) { tmpData <- reactive({ modFlights %>% filter(na...
/server.R
no_license
idashpl/shiny_darmowe_gotowe
R
false
false
1,709
r
################################################################################ # Plik zawierający kod logiki aplikacji (serwera) ################################################################################ shinyServer(function(input, output, session) { tmpData <- reactive({ modFlights %>% filter(na...
#'@title Print method for find_item #' #'@description print found items. #' #'@param x find_item object with search results #'@param \dots Arguments to be passed to methods #' #'@method print find_item #'@export print.find_item <- function(x, ...) { cat("\n\tWikidata item search\n\n") # number of results num_re...
/R/prints.R
permissive
Ironholds/WikidataR
R
false
false
3,120
r
#'@title Print method for find_item #' #'@description print found items. #' #'@param x find_item object with search results #'@param \dots Arguments to be passed to methods #' #'@method print find_item #'@export print.find_item <- function(x, ...) { cat("\n\tWikidata item search\n\n") # number of results num_re...
# # Proportion of AP and Reuters stories # # Set Working dir. setwd(githubdir) # Source recode source("good_nyt/scripts/00_nyt_recode.R") " Proportion Wire Stories by Year (entire newspaper) " # Not News per year wire_news_yr <- nyt %>% group_by(publication.year) %>% summarize(avg_wire = mean(wire)) g...
/scripts/08_wire_stories.R
permissive
mezbah-cse09/good_nyt
R
false
false
800
r
# # Proportion of AP and Reuters stories # # Set Working dir. setwd(githubdir) # Source recode source("good_nyt/scripts/00_nyt_recode.R") " Proportion Wire Stories by Year (entire newspaper) " # Not News per year wire_news_yr <- nyt %>% group_by(publication.year) %>% summarize(avg_wire = mean(wire)) g...
## ======================================================================== ## Multiple Linear Regression - Prediction and accuracy assessment ## - using Marketing dataset ## =================================================================== ## 1. Load library and data ## ------------------------- setwd("...
/5_9_1_3_2_IMPT_S_Multiple_Linear_Regression_prediction_marketing.R
no_license
muhdarifrawi/WileyDataAnalytics_13July2021
R
false
false
2,176
r
## ======================================================================== ## Multiple Linear Regression - Prediction and accuracy assessment ## - using Marketing dataset ## =================================================================== ## 1. Load library and data ## ------------------------- setwd("...
#!/hpf/tools/centos6/R/3.1.0/bin/Rscript # Script to generate and save the cluster labels for the complete data argv <- as.numeric(commandArgs(T)) ###################################################################### # Load libraries library(SNFtool) library(iClusterPlus) library(sva) ##############################...
/Pipeline_Scripts/missing_data_combat_10000/cluster_complete_data/job.R
no_license
benmbrew/missing_data
R
false
false
7,957
r
#!/hpf/tools/centos6/R/3.1.0/bin/Rscript # Script to generate and save the cluster labels for the complete data argv <- as.numeric(commandArgs(T)) ###################################################################### # Load libraries library(SNFtool) library(iClusterPlus) library(sva) ##############################...
rm(list =ls()) library(readxl) library(dplyr) library(RWeka) library(lubridate) library(stringr) library(qdapRegex) # import all tweet data#### fin <- list.files(path = "data/", full.names = T) ds.list <- lapply(fin, read_excel, col_names = F) ds <- unique(do.call(rbind.data.frame, ds.list)) # change column names nam...
/twitterEmojiProject/EDA_backup.R
no_license
laurenancona/twimoji
R
false
false
3,209
r
rm(list =ls()) library(readxl) library(dplyr) library(RWeka) library(lubridate) library(stringr) library(qdapRegex) # import all tweet data#### fin <- list.files(path = "data/", full.names = T) ds.list <- lapply(fin, read_excel, col_names = F) ds <- unique(do.call(rbind.data.frame, ds.list)) # change column names nam...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/turtle-functions.R \docType{methods} \name{subHeadings} \alias{subHeadings} \alias{subHeadings,agentMatrix,agentMatrix-method} \alias{subHeadings,agentMatrix,numeric-method} \alias{subHeadings,numeric,agentMatrix-method} \alias{subHeadings,nu...
/man/subHeadings.Rd
no_license
anhnguyendepocen/NetLogoR
R
false
true
2,264
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/turtle-functions.R \docType{methods} \name{subHeadings} \alias{subHeadings} \alias{subHeadings,agentMatrix,agentMatrix-method} \alias{subHeadings,agentMatrix,numeric-method} \alias{subHeadings,numeric,agentMatrix-method} \alias{subHeadings,nu...
#source("subsetFile.R") png("plot3.png") hp <- read.csv("hp.txt", sep=";", header=TRUE) with(hp, plot(Sub_metering_1, type="n", ylab="Energy sub metering", xlab=NA,xaxt="n")) with(hp, lines(Sub_metering_1)) with(hp, lines(Sub_metering_2, col="red")) with(hp, lines(Sub_metering_3, col="blue")) mtext("Fri", side=1) mtext...
/plot3.R
no_license
rmmenon/exploringDataProject1
R
false
false
509
r
#source("subsetFile.R") png("plot3.png") hp <- read.csv("hp.txt", sep=";", header=TRUE) with(hp, plot(Sub_metering_1, type="n", ylab="Energy sub metering", xlab=NA,xaxt="n")) with(hp, lines(Sub_metering_1)) with(hp, lines(Sub_metering_2, col="red")) with(hp, lines(Sub_metering_3, col="blue")) mtext("Fri", side=1) mtext...
######################################################################################################### ############################################# MAIN ###################################################### ######################################################################################################### #...
/CARTImplementation.R
no_license
gaspar09/PredictArrhythmia
R
false
false
3,757
r
######################################################################################################### ############################################# MAIN ###################################################### ######################################################################################################### #...
#!/applications/R/R-4.0.0/bin/Rscript # author: Andy Tock # contact: ajt200@cam.ac.uk # date: 14.07.2021 # Calculate mean levels between each CENAthila and nonCENAthila start and end coordinate, # and plot as heatmaps # Usage: # /applications/R/R-4.0.0/bin/Rscript CENAthila_nonCENAthila_mean_level_heatmap_RNAseq_sRN...
/CEN180_in_t2t-col.20210610/CENAthila_nonCENAthila_mean_level_heatmap_RNAseq_sRNAseq_BSseq_v220721_full_data_range.R
no_license
ajtock/repeats
R
false
false
28,403
r
#!/applications/R/R-4.0.0/bin/Rscript # author: Andy Tock # contact: ajt200@cam.ac.uk # date: 14.07.2021 # Calculate mean levels between each CENAthila and nonCENAthila start and end coordinate, # and plot as heatmaps # Usage: # /applications/R/R-4.0.0/bin/Rscript CENAthila_nonCENAthila_mean_level_heatmap_RNAseq_sRN...
### this script is for data science specialization, the course is exploratory data ### analysis. This is project for week 1 ### this script produces figure 4 in the project ####### get the data and clean it library(data.table) library(lubridate) library(dplyr) #1 load the data #create a working directory if(!file.ex...
/project/plot4.R
no_license
derik-cg/ExData_Plotting1
R
false
false
3,063
r
### this script is for data science specialization, the course is exploratory data ### analysis. This is project for week 1 ### this script produces figure 4 in the project ####### get the data and clean it library(data.table) library(lubridate) library(dplyr) #1 load the data #create a working directory if(!file.ex...
#Function returning the relative frequency in each bin. rel_freq = function(x) { UseMethod("rel_freq") } rel_freq.calibration_simplex = function(x) { return(x$freq/x$n_obs) }
/R/rel_freq.calibration_simplex.R
no_license
cran/CalSim
R
false
false
181
r
#Function returning the relative frequency in each bin. rel_freq = function(x) { UseMethod("rel_freq") } rel_freq.calibration_simplex = function(x) { return(x$freq/x$n_obs) }
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/removeProblem.R \name{removeProblem} \alias{removeProblem} \title{Remove problem from registry.} \usage{ removeProblem(reg, id, force = FALSE) } \arguments{ \item{reg}{[\code{\link{ExperimentRegistry}}]\cr Registry.} \item{id}{[\code...
/man/removeProblem.Rd
no_license
imbs-hl/BatchExperiments
R
false
false
675
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/removeProblem.R \name{removeProblem} \alias{removeProblem} \title{Remove problem from registry.} \usage{ removeProblem(reg, id, force = FALSE) } \arguments{ \item{reg}{[\code{\link{ExperimentRegistry}}]\cr Registry.} \item{id}{[\code...
cat("hello\n", file="fileio.txt") cat("world\n", file="fileio.txt", append=TRUE) line2 = readLines("fileio.txt", n=2)[2] cat(line2)
/r.r
no_license
jameswhiteman/fileio
R
false
false
136
r
cat("hello\n", file="fileio.txt") cat("world\n", file="fileio.txt", append=TRUE) line2 = readLines("fileio.txt", n=2)[2] cat(line2)
testlist <- list(AgeVector = c(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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
/myTAI/inst/testfiles/cpp_omitMatrix/AFL_cpp_omitMatrix/cpp_omitMatrix_valgrind_files/1615846372-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,090
r
testlist <- list(AgeVector = c(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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ExpressionSet = structure(c(1.63064200184954e+212, 1.11558267938731e+157, 2.3453288146775e+59, 7.59955788945772e-256, 5.55398...
ridge.cv<- function(X,y,lambda=NULL,scale=TRUE,k=10,plot.it=FALSE){ if (is.vector(X)==TRUE){ X<-matrix(X,ncol=1) } if (is.null(lambda)==TRUE){ ss<-seq(-10,-1,length=1000) ss<-10^ss n<-nrow(X) nn<-n- floor(n/k) lambda<-ss*nn*ncol(X) }...
/parcor/R/ridge.cv.R
no_license
ingted/R-Examples
R
false
false
1,727
r
ridge.cv<- function(X,y,lambda=NULL,scale=TRUE,k=10,plot.it=FALSE){ if (is.vector(X)==TRUE){ X<-matrix(X,ncol=1) } if (is.null(lambda)==TRUE){ ss<-seq(-10,-1,length=1000) ss<-10^ss n<-nrow(X) nn<-n- floor(n/k) lambda<-ss*nn*ncol(X) }...
FitDoubleLogKlHeavy <- function( ##title<< ## Fit a double logisitic function to a vector according to Elmore et al. (2012) ##description<< ## This function fits a double logistic curve to observed values using the function as described in Elmore et al. (2012) (equation 4). x, ### vector or time se...
/R/FitDoubleLogKlHeavy.R
no_license
forestmetacommunity/phenopix
R
false
false
18,993
r
FitDoubleLogKlHeavy <- function( ##title<< ## Fit a double logisitic function to a vector according to Elmore et al. (2012) ##description<< ## This function fits a double logistic curve to observed values using the function as described in Elmore et al. (2012) (equation 4). x, ### vector or time se...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hydro_coords.R \name{hydro_coords} \alias{hydro_coords} \title{Convert coordinates from Hydroscope's points to a tibble} \usage{ hydro_coords(x) } \arguments{ \item{x}{a string vector with the points retrieved from Hydroscope} } \value{ a tib...
/man/hydro_coords.Rd
permissive
firefoxxy8/hydroscoper
R
false
true
807
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hydro_coords.R \name{hydro_coords} \alias{hydro_coords} \title{Convert coordinates from Hydroscope's points to a tibble} \usage{ hydro_coords(x) } \arguments{ \item{x}{a string vector with the points retrieved from Hydroscope} } \value{ a tib...
library(tidyverse) source("datasets.R") source("differential_expression.R") main = function() { make_de_lists_biccn() } make_de_lists_biccn = function() { dataset_names = set_names(biccn_datasets()) for (name in dataset_names) { print(name) dir.create(name, showWarnings = FALSE) ...
/scripts/make_de_lists.R
no_license
bharris12/multiscale_brain
R
false
false
1,312
r
library(tidyverse) source("datasets.R") source("differential_expression.R") main = function() { make_de_lists_biccn() } make_de_lists_biccn = function() { dataset_names = set_names(biccn_datasets()) for (name in dataset_names) { print(name) dir.create(name, showWarnings = FALSE) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/easydb.R \name{db_build} \alias{db_build} \title{Build an easydb} \usage{ db_build(cnf) } \arguments{ \item{cnf}{Path to an easydb configuration file, or the result of \link{db_config}.} } \description{ Builds an SQLite database given an easy...
/man/db_build.Rd
no_license
EricEdwardBryant/easydb
R
false
true
345
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/easydb.R \name{db_build} \alias{db_build} \title{Build an easydb} \usage{ db_build(cnf) } \arguments{ \item{cnf}{Path to an easydb configuration file, or the result of \link{db_config}.} } \description{ Builds an SQLite database given an easy...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helpers.R \name{add_sig} \alias{add_sig} \title{add_sig} \usage{ add_sig(x) } \arguments{ \item{x}{output of ANOVA and MANOVA tests} } \value{ markers for significance values } \description{ add_sig } \keyword{internal}
/man/add_sig.Rd
no_license
bassam-abulnoor/TestDimorph
R
false
true
298
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helpers.R \name{add_sig} \alias{add_sig} \title{add_sig} \usage{ add_sig(x) } \arguments{ \item{x}{output of ANOVA and MANOVA tests} } \value{ markers for significance values } \description{ add_sig } \keyword{internal}
# This file contains the collated diagnostics and plotting parameters used by different parts of the code # Include a function which can be used to read and modify the default settings in the package for reasonable parameters tag_text <- c(expression(paste(italic("fore"), "SIGHT"))) tag_textCol <- "royalblue" ...
/R/defaultParams_diagAndPlotting.R
no_license
cran/foreSIGHT
R
false
false
9,207
r
# This file contains the collated diagnostics and plotting parameters used by different parts of the code # Include a function which can be used to read and modify the default settings in the package for reasonable parameters tag_text <- c(expression(paste(italic("fore"), "SIGHT"))) tag_textCol <- "royalblue" ...
library(tidyr) library(dplyr) library(ggplot2) ###################################### data = read.csv("results.tsv", sep="\t") data = data %>% filter(Script == "forWords_Japanese_RandomOrder_Normalized_FullData.py") unigramCE = mean(data$UnigramCE) data$Type = ifelse(data$Model %in% c("REAL", "RANDOM", "REVERSE")...
/code/study3/Japanese/tradeoffs/analyze/archive/analyze_Morphemic.R
no_license
m-hahn/memory-surprisal
R
false
false
4,109
r
library(tidyr) library(dplyr) library(ggplot2) ###################################### data = read.csv("results.tsv", sep="\t") data = data %>% filter(Script == "forWords_Japanese_RandomOrder_Normalized_FullData.py") unigramCE = mean(data$UnigramCE) data$Type = ifelse(data$Model %in% c("REAL", "RANDOM", "REVERSE")...
setwd("C:/Users/elrivas/Documents/Trainings/JHU/Class4/Week 1") # Separated by ; # Date and Time are integers, cast to character for later conversion to Date/Time objects hpc0 <- read.table("household_power_consumption.txt", sep = ";", header=TRUE, colClasses = c("Date"="c...
/plot3.R
no_license
eliserivas/ExData_Plotting1
R
false
false
1,630
r
setwd("C:/Users/elrivas/Documents/Trainings/JHU/Class4/Week 1") # Separated by ; # Date and Time are integers, cast to character for later conversion to Date/Time objects hpc0 <- read.table("household_power_consumption.txt", sep = ";", header=TRUE, colClasses = c("Date"="c...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/service.R \name{prep_service_list} \alias{prep_service_list} \title{parse im for list type query} \usage{ prep_service_list(im, as) } \arguments{ \item{im}{im object} } \description{ parse im for list type query } \keyword{internal}
/man/prep_service_list.Rd
permissive
npjc/interminer
R
false
false
320
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/service.R \name{prep_service_list} \alias{prep_service_list} \title{parse im for list type query} \usage{ prep_service_list(im, as) } \arguments{ \item{im}{im object} } \description{ parse im for list type query } \keyword{internal}
library(testthat) library(BSgenome.Hsapiens.UCSC.hg19) test_that("getBreakJunctionFlankingSeq", { gr = GRanges( seqnames="chr1", ranges=IRanges(start=c(50000, 60000, 70000, 80000), width=1), strand=c("+", "+", "-", "-")) expect_equal( getBreakJunctionFlankingSeq(gr, BSgenome.Hsapiens.UCSC.hg19, fla...
/PrimerDesignSV/tests/testthat/test-getBreakJunctionFlankingSeq.R
no_license
Borisklwong/primer_design_package
R
false
false
637
r
library(testthat) library(BSgenome.Hsapiens.UCSC.hg19) test_that("getBreakJunctionFlankingSeq", { gr = GRanges( seqnames="chr1", ranges=IRanges(start=c(50000, 60000, 70000, 80000), width=1), strand=c("+", "+", "-", "-")) expect_equal( getBreakJunctionFlankingSeq(gr, BSgenome.Hsapiens.UCSC.hg19, fla...
access_date = Sys.Date() indprod = rio::import("ind_baza_2018.xlsx", skip = 2, sheet = 1) indprod_vector = t(indprod[2, 3:ncol(indprod)]) indprod_ts = stats::ts(indprod_vector, start = c(2015, 1), frequency = 12) indprod_tsibble = tsibble::as_tsibble(indprod_ts) indprod_tsibble = dplyr::rename(indprod_tsibble, date = i...
/2020-11-04/test_converter.R
no_license
kassandra-ru/model
R
false
false
2,407
r
access_date = Sys.Date() indprod = rio::import("ind_baza_2018.xlsx", skip = 2, sheet = 1) indprod_vector = t(indprod[2, 3:ncol(indprod)]) indprod_ts = stats::ts(indprod_vector, start = c(2015, 1), frequency = 12) indprod_tsibble = tsibble::as_tsibble(indprod_ts) indprod_tsibble = dplyr::rename(indprod_tsibble, date = i...
AsymUnbalancedData<- function(DATA_GROUP,PRE_SET_MAX,STEP_SIZE,FROM ) { ##Header File library(nlme) ## Inputs #DATA_GROUP <<- c(100) # Give as input to the grouping factor - number of datasets # PRE_SET_MAX <- c(9) # STEP_SIZE <-c(0.5) # FROM <-c(0) ## Creation and Initialization of Matrix for Calculation of Sa...
/EzeSunday/Option-3/AsymUnbalancedData.R
no_license
EzeCyviz/R-Code-for-Assesssing-LME-model
R
false
false
2,882
r
AsymUnbalancedData<- function(DATA_GROUP,PRE_SET_MAX,STEP_SIZE,FROM ) { ##Header File library(nlme) ## Inputs #DATA_GROUP <<- c(100) # Give as input to the grouping factor - number of datasets # PRE_SET_MAX <- c(9) # STEP_SIZE <-c(0.5) # FROM <-c(0) ## Creation and Initialization of Matrix for Calculation of Sa...
# Chapter 3 Lab: Linear Regression library(MASS) library(ISLR) # Simple Linear Regression fix(Boston) names(Boston) lm.fit=lm(medv~lstat) lm.fit=lm(medv~lstat,data=Boston) attach(Boston) lm.fit=lm(medv~lstat) lm.fit summary(lm.fit) names(lm.fit) coef(lm.fit) confint(lm.fit) predict(lm.fit,data.frame(lstat=(c(5,10,15...
/islr/r_code/chap3.r
permissive
AtmaMani/pyChakras
R
false
false
1,687
r
# Chapter 3 Lab: Linear Regression library(MASS) library(ISLR) # Simple Linear Regression fix(Boston) names(Boston) lm.fit=lm(medv~lstat) lm.fit=lm(medv~lstat,data=Boston) attach(Boston) lm.fit=lm(medv~lstat) lm.fit summary(lm.fit) names(lm.fit) coef(lm.fit) confint(lm.fit) predict(lm.fit,data.frame(lstat=(c(5,10,15...
library(fmsb) ### Name: truemedian ### Title: Calculate true median for data with ties. ### Aliases: truemedian ### ** Examples median(c(3, 3, 4, 4, 4)) truemedian(c(3, 3, 4, 4, 4))
/data/genthat_extracted_code/fmsb/examples/truemedian.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
191
r
library(fmsb) ### Name: truemedian ### Title: Calculate true median for data with ties. ### Aliases: truemedian ### ** Examples median(c(3, 3, 4, 4, 4)) truemedian(c(3, 3, 4, 4, 4))
checkCache_htxcomp = function (cache = BiocFileCache(), genesOnly=TRUE) { allr = bfcinfo(cache)$rname "https://s3.amazonaws.com/bcfound-bigrna/htxcompSE.rds" %in% allr } #' load a SummarizedExperiment shell for the htx compendium #' @importFrom BiocFileCache bfcinfo BiocFileCache bfcrpath #' @param ...
/R/loadhtx.R
no_license
vjcitn/htxcomp
R
false
false
1,502
r
checkCache_htxcomp = function (cache = BiocFileCache(), genesOnly=TRUE) { allr = bfcinfo(cache)$rname "https://s3.amazonaws.com/bcfound-bigrna/htxcompSE.rds" %in% allr } #' load a SummarizedExperiment shell for the htx compendium #' @importFrom BiocFileCache bfcinfo BiocFileCache bfcrpath #' @param ...
library(MFPCA) ### Name: dctFunction2D ### Title: Calculate linear combinations of orthonormal cosine basis ### functions on two- or three-dimensional domains ### Aliases: dctFunction2D dctFunction3D ### Keywords: internal ### ** Examples # set seed set.seed(12345) # generate sparse 10 x 15 score matrix (i.e. 10...
/data/genthat_extracted_code/MFPCA/examples/dctFunction2D.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,063
r
library(MFPCA) ### Name: dctFunction2D ### Title: Calculate linear combinations of orthonormal cosine basis ### functions on two- or three-dimensional domains ### Aliases: dctFunction2D dctFunction3D ### Keywords: internal ### ** Examples # set seed set.seed(12345) # generate sparse 10 x 15 score matrix (i.e. 10...
context("hello_world") test_that("basic tests for hello_world", { expect_that( hello_world(), equals("Hello, world!")) expect_that( hello_world("mundo"), equals("Hello, mundo!")) expect_that( hello_world(""), equals("") ) expect_that( hello_world(1), throws_error()) })
/tests/testthat/test_hello_world.R
no_license
c5sire/ghk
R
false
false
281
r
context("hello_world") test_that("basic tests for hello_world", { expect_that( hello_world(), equals("Hello, world!")) expect_that( hello_world("mundo"), equals("Hello, mundo!")) expect_that( hello_world(""), equals("") ) expect_that( hello_world(1), throws_error()) })
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/skewfit_methods.R \name{sf_lpdf.NORM} \alias{sf_lpdf.NORM} \title{Log-Likelihood from NORM model} \usage{ \method{sf_lpdf}{NORM}(object, ...) } \description{ Log-Likelihood from NORM model }
/man/sf_lpdf.NORM.Rd
no_license
olssol/skewfit
R
false
true
269
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/skewfit_methods.R \name{sf_lpdf.NORM} \alias{sf_lpdf.NORM} \title{Log-Likelihood from NORM model} \usage{ \method{sf_lpdf}{NORM}(object, ...) } \description{ Log-Likelihood from NORM model }
varCutree <- function(R,var,vmin,vmax){ mark <- function(t,c){ if(t<0) part[-t] <<- c else {mark(R$merge[t,1],c); mark(R$merge[t,2],c)} } n <- length(var); part <- rep(999999,n); nclust <- 0 value <- cbind(var,rep(0,n)) for(i in 1:(n-1)){ j <- R$merge[i,1]; if(j==0) next ...
/Pajek/R/varCutTree.R
no_license
bavla/biblio
R
false
false
994
r
varCutree <- function(R,var,vmin,vmax){ mark <- function(t,c){ if(t<0) part[-t] <<- c else {mark(R$merge[t,1],c); mark(R$merge[t,2],c)} } n <- length(var); part <- rep(999999,n); nclust <- 0 value <- cbind(var,rep(0,n)) for(i in 1:(n-1)){ j <- R$merge[i,1]; if(j==0) next ...
context("test build_lm") test_that("test build_lm summary output ", { test_df = data.frame( num1 = seq(20) / 10.0, num2 = seq(20) - 10, weight = seq(20) + 100, category = rep(letters[1:4], 5), with_NA = rep(c(letters[5:6], NA, NA), 5) ) model_df <- test_df %>% build_lm(num1 ~ num2 + category +...
/tests/testthat/test_build_lm_0.R
permissive
exploratory-io/exploratory_func
R
false
false
25,656
r
context("test build_lm") test_that("test build_lm summary output ", { test_df = data.frame( num1 = seq(20) / 10.0, num2 = seq(20) - 10, weight = seq(20) + 100, category = rep(letters[1:4], 5), with_NA = rep(c(letters[5:6], NA, NA), 5) ) model_df <- test_df %>% build_lm(num1 ~ num2 + category +...
VENV=$PWD/.venv export R_LIBS_USER=$VENV/lib/R/library export R_LIBS_SITE='' mkdir -p $R_LIBS_USER R --slave -e "if (!'renv' %in% installed.packages()[,1]) { install.packages('renv') }; renv:::restore()"
/load-env.R
no_license
tychobismeijer/precision-survival-simulation
R
false
false
204
r
VENV=$PWD/.venv export R_LIBS_USER=$VENV/lib/R/library export R_LIBS_SITE='' mkdir -p $R_LIBS_USER R --slave -e "if (!'renv' %in% installed.packages()[,1]) { install.packages('renv') }; renv:::restore()"
#JV_HyphalWaviness_NS.R #Created on R by Josue Vega and Nicole Soltis Jul 2017 #Current Purpose #Individual Scripts for Data Analysis of Hyphal Waviness library(readr) mydata <- read_csv("C:/Users/vegaj/Desktop/B. cinera/BR_JV_ManualHyphalDat_032817(edit).csv") #finds and opens csv file #mydata <- read.csv("~/Projec...
/scripts/00a_JV_NS_HyphalWaviness_curr.R
no_license
JosueVega/Hwaviness
R
false
false
10,606
r
#JV_HyphalWaviness_NS.R #Created on R by Josue Vega and Nicole Soltis Jul 2017 #Current Purpose #Individual Scripts for Data Analysis of Hyphal Waviness library(readr) mydata <- read_csv("C:/Users/vegaj/Desktop/B. cinera/BR_JV_ManualHyphalDat_032817(edit).csv") #finds and opens csv file #mydata <- read.csv("~/Projec...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bbox.R \name{bbox} \alias{bbox} \alias{is_bbox} \alias{as_bbox} \alias{is_overlapping} \alias{\%overlaps\%} \title{Create a vector of bounding boxes} \usage{ bbox(...) is_bbox(x) as_bbox(x) is_overlapping(x, y) x \%overlaps\% y } \argumen...
/man/bbox.Rd
permissive
KevCaz/euclid
R
false
true
1,626
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bbox.R \name{bbox} \alias{bbox} \alias{is_bbox} \alias{as_bbox} \alias{is_overlapping} \alias{\%overlaps\%} \title{Create a vector of bounding boxes} \usage{ bbox(...) is_bbox(x) as_bbox(x) is_overlapping(x, y) x \%overlaps\% y } \argumen...
FitAuditProb <- function(nAuditsamps,df,Sitelist){ # nAuditsamps = c(1000) # *** MUST BE LESS THAN Nobs/Nsite, or else set to "ALL" # Fit Bayesian model for probability of a call from raw data using sample of audited data # Load librar ies ------------------------------------------------------------- require(gtools) r...
/FitAuditProb.R
no_license
mttinker/AuditMod
R
false
false
4,983
r
FitAuditProb <- function(nAuditsamps,df,Sitelist){ # nAuditsamps = c(1000) # *** MUST BE LESS THAN Nobs/Nsite, or else set to "ALL" # Fit Bayesian model for probability of a call from raw data using sample of audited data # Load librar ies ------------------------------------------------------------- require(gtools) r...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include efs_service.R NULL #' Creates an EFS access point #' #' @description #' Creates an EFS access point. An access point is an application-specific view into an EFS file ...
/R/efs_operations.R
no_license
cran/paws.storage
R
false
false
54,669
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include efs_service.R NULL #' Creates an EFS access point #' #' @description #' Creates an EFS access point. An access point is an application-specific view into an EFS file ...
plot4 <- function(dates = c("2007/02/01", "2007/02/02")) { #reads dataset into dataframe"power" and converts date column to Date object power <- read.table("household_power_consumption.txt", header = TRUE, sep =";", na.strings = "?", stringsAsFactors = FALSE) power[[1]] <- as.Date(power[...
/plot4.R
no_license
pikawrex/ExData_Plotting1
R
false
false
1,817
r
plot4 <- function(dates = c("2007/02/01", "2007/02/02")) { #reads dataset into dataframe"power" and converts date column to Date object power <- read.table("household_power_consumption.txt", header = TRUE, sep =";", na.strings = "?", stringsAsFactors = FALSE) power[[1]] <- as.Date(power[...
\name{cdi.kli} \alias{cdi.kli} \alias{summary.cdi.kli} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Cognitive Diagnostic Indices based on Kullback-Leibler Information } \description{ This function computes several cognitive diagnostic indices grounded on the Kullback-Leibler information (Rupp,...
/man/cdi.kli.Rd
no_license
strategist922/CDM
R
false
false
4,355
rd
\name{cdi.kli} \alias{cdi.kli} \alias{summary.cdi.kli} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Cognitive Diagnostic Indices based on Kullback-Leibler Information } \description{ This function computes several cognitive diagnostic indices grounded on the Kullback-Leibler information (Rupp,...
# Travel-app02 # ui.R library(shiny) shinyUI(fluidPage( tags$head(tags$meta("name" = "apple-mobile-web-app-capable", "content" = "yes")), # Application title titlePanel("YourSingapore Guide"), tags$h5("Tell us more about your trip!"), # Sidebar with a slider input for number o...
/Travel-app02/ui.R
no_license
tohweizhong/Travel-app
R
false
false
708
r
# Travel-app02 # ui.R library(shiny) shinyUI(fluidPage( tags$head(tags$meta("name" = "apple-mobile-web-app-capable", "content" = "yes")), # Application title titlePanel("YourSingapore Guide"), tags$h5("Tell us more about your trip!"), # Sidebar with a slider input for number o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NumToChar.R \name{NumToChar} \alias{NumToChar} \title{NumToChar} \usage{ NumToChar(data, vars, rename = FALSE) } \arguments{ \item{data}{a dataframe} \item{vars}{a vector of variable names, which are numeric variables in the dataf...
/VvMT/man/NumToChar.Rd
no_license
VivianXiang/VvMT
R
false
true
776
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NumToChar.R \name{NumToChar} \alias{NumToChar} \title{NumToChar} \usage{ NumToChar(data, vars, rename = FALSE) } \arguments{ \item{data}{a dataframe} \item{vars}{a vector of variable names, which are numeric variables in the dataf...
testlist <- list(Rs = c(-1.9577272327571e+276, 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), atmp = numeric(0), relh = c(7.64681398433536e-304, -4.28793225005635e-307, 1.81037701089217e+87, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.939255246...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615862601-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
473
r
testlist <- list(Rs = c(-1.9577272327571e+276, 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), atmp = numeric(0), relh = c(7.64681398433536e-304, -4.28793225005635e-307, 1.81037701089217e+87, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.939255246...
#' 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 "400px". The width of the network in pixels or as a percentage. #'@param height : String. Def...
/R/visOptions.R
permissive
guanlongtianzi/visNetwork
R
false
false
2,973
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 "400px". The width of the network in pixels or as a percentage. #'@param height : String. Def...
#Classwork 11/10/20 #In-Class Work Example data("iris") head(iris) str(iris) library(ggplot2) library(e1071) qplot(Petal.Length, Petal.Width, data = iris, color = Species) help("svm") #model1 svm_model1 <- svm(Species~., data = iris) summary(svm_model1) plot(svm_model1, data = iris, Petal.Width~Petal.Length, sli...
/Classwork 11:10:20.R
no_license
AnuC01/DataAnalytics2020_ANU_CHANDRASHEKAR
R
false
false
1,531
r
#Classwork 11/10/20 #In-Class Work Example data("iris") head(iris) str(iris) library(ggplot2) library(e1071) qplot(Petal.Length, Petal.Width, data = iris, color = Species) help("svm") #model1 svm_model1 <- svm(Species~., data = iris) summary(svm_model1) plot(svm_model1, data = iris, Petal.Width~Petal.Length, sli...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shh.R \name{shh_version} \alias{shh_version} \title{Current whisper protocol.} \usage{ shh_version() } \value{ String - Current whisper protocol version. } \description{ \code{shh_version} returns the current whisper protocol version. } \exam...
/man/shh_version.Rd
no_license
vicegd/gethr
R
false
true
1,035
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shh.R \name{shh_version} \alias{shh_version} \title{Current whisper protocol.} \usage{ shh_version() } \value{ String - Current whisper protocol version. } \description{ \code{shh_version} returns the current whisper protocol version. } \exam...
\name{quantileBands} \alias{quantileBands} \title{quantile bands} \description{Quantile bands with optional smoothing, e.g. for visualizing simulations} \usage{quantileBands(mat, x=1:ncol(mat), col=rgb(0,0,1, alpha=c(0.5, 0.7)), add=FALSE, main="Quantile Bands", ylab="", xlab="", probs=0:4/4, na.rm=FALSE, type=7,...
/man/quantileBands.Rd
no_license
costagc/berryFunctions
R
false
false
3,008
rd
\name{quantileBands} \alias{quantileBands} \title{quantile bands} \description{Quantile bands with optional smoothing, e.g. for visualizing simulations} \usage{quantileBands(mat, x=1:ncol(mat), col=rgb(0,0,1, alpha=c(0.5, 0.7)), add=FALSE, main="Quantile Bands", ylab="", xlab="", probs=0:4/4, na.rm=FALSE, type=7,...
## Libraries ### 15 Oct 2018 - can't install brms, rstanarm or I think rstan properly library(rstan) library(brms) library(dplyr) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) fs<-read.csv("/n/wolkovich_lab/Lab/Cat/fs_newspace_orig.csv", header=TRUE) #fs<-read.csv("~/Documents/git/regio...
/analyses/zarchive/BB_orig.R
no_license
cchambe12/regionalrisk
R
false
false
1,140
r
## Libraries ### 15 Oct 2018 - can't install brms, rstanarm or I think rstan properly library(rstan) library(brms) library(dplyr) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) fs<-read.csv("/n/wolkovich_lab/Lab/Cat/fs_newspace_orig.csv", header=TRUE) #fs<-read.csv("~/Documents/git/regio...
print("hello world") ## This is a markdown file
/helloworld.R
no_license
emdee95/arike
R
false
false
49
r
print("hello world") ## This is a markdown file
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readGistic.R \name{readGistic} \alias{readGistic} \title{Read and summarize gistic output.} \usage{ readGistic(gisticAllLesionsFile = NULL, gisticAmpGenesFile = NULL, gisticDelGenesFile = NULL, gisticScoresFile = NULL, cnLevel = "all", is...
/man/readGistic.Rd
permissive
AxelitoMartin/maftools
R
false
true
1,964
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readGistic.R \name{readGistic} \alias{readGistic} \title{Read and summarize gistic output.} \usage{ readGistic(gisticAllLesionsFile = NULL, gisticAmpGenesFile = NULL, gisticDelGenesFile = NULL, gisticScoresFile = NULL, cnLevel = "all", is...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extractor.R \name{monkeylearn_extract} \alias{monkeylearn_extract} \title{monkeylearn_extract} \usage{ monkeylearn_extract(request, key = monkeylearn_key(quiet = TRUE), extractor_id = "ex_isnnZRbS", verbose = FALSE, params = NULL) } \argume...
/man/monkeylearn_extract.Rd
no_license
bkerwick/monkeylearn
R
false
true
3,438
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extractor.R \name{monkeylearn_extract} \alias{monkeylearn_extract} \title{monkeylearn_extract} \usage{ monkeylearn_extract(request, key = monkeylearn_key(quiet = TRUE), extractor_id = "ex_isnnZRbS", verbose = FALSE, params = NULL) } \argume...
### ===== actuar: An R Package for Actuarial Science ===== ### ### Definition of the {d,p,q,r,m,lev}trgamma functions to compute ### characteristics of the Transformed Gamma distribution. The version ### used in these functions has cumulative distribution function ### ### Pr[X <= x] = pgamma((x/scale)^shape2, shape1,...
/R/TransformedGamma.R
no_license
LauraHuang100/actuar
R
false
false
1,707
r
### ===== actuar: An R Package for Actuarial Science ===== ### ### Definition of the {d,p,q,r,m,lev}trgamma functions to compute ### characteristics of the Transformed Gamma distribution. The version ### used in these functions has cumulative distribution function ### ### Pr[X <= x] = pgamma((x/scale)^shape2, shape1,...
#Este comando permite tener acceso al archivo Funciones.R source('Funciones.R') "¿Que tan lento es crear 5000 Ruts?" "Receta de diseño" "Definicion de tiempo: tiempo que se demora en codificar Ruts " "Definicion de Ruts: crea una lista de 5.000 numeros de ruts aleatorios unicos con su digito verificador, todos estos ...
/for_loop.R
no_license
GraceArceLopez/Tarea_Nro4
R
false
false
710
r
#Este comando permite tener acceso al archivo Funciones.R source('Funciones.R') "¿Que tan lento es crear 5000 Ruts?" "Receta de diseño" "Definicion de tiempo: tiempo que se demora en codificar Ruts " "Definicion de Ruts: crea una lista de 5.000 numeros de ruts aleatorios unicos con su digito verificador, todos estos ...
geyser_id <- 110 sim_filename <- sprintf("~/Geyser/SimulatorOutput/result_%i.csv", geyser_id) data_filename <- sprintf("~/Geyser/SimulatorOutput/data_%i.csv", geyser_id) sim_results <- read.table(sim_filename, header=TRUE, sep=",") geyser_data <- read.table(data_filename, header=TRUE, sep=",") geyser_data$se...
/Merge/import_merge.r
no_license
AndrewCloete/GeyserAnalysis
R
false
false
540
r
geyser_id <- 110 sim_filename <- sprintf("~/Geyser/SimulatorOutput/result_%i.csv", geyser_id) data_filename <- sprintf("~/Geyser/SimulatorOutput/data_%i.csv", geyser_id) sim_results <- read.table(sim_filename, header=TRUE, sep=",") geyser_data <- read.table(data_filename, header=TRUE, sep=",") geyser_data$se...
getAllFiles <- function(directory) { ## Sorry the Java/OO developer in me thought ## this should be a reusable function/object ## instead of repeating this for each assignment ## Get the files from the directory fileNames <- list.files(directory) ## Get the full file path completeFilePathArray <...
/getAllFiles.R
no_license
jconnelly/R_Programming
R
false
false
460
r
getAllFiles <- function(directory) { ## Sorry the Java/OO developer in me thought ## this should be a reusable function/object ## instead of repeating this for each assignment ## Get the files from the directory fileNames <- list.files(directory) ## Get the full file path completeFilePathArray <...
# set console lang & wd Sys.setenv(LANG = "en") setwd("~/Dropbox (Personal)/NADEL ETHZ/Policy Evaluation and Applied Statistics/Country Analysis") # import packages library(readr) library(sandwich) library(stargazer) library(tidyr) require(ggplot2) library(data.table) library(tidyr) # read and attach Tanzania dataset...
/Workbook_descriptive.R
no_license
Bergrebell/NADEL-country-analysis
R
false
false
6,546
r
# set console lang & wd Sys.setenv(LANG = "en") setwd("~/Dropbox (Personal)/NADEL ETHZ/Policy Evaluation and Applied Statistics/Country Analysis") # import packages library(readr) library(sandwich) library(stargazer) library(tidyr) require(ggplot2) library(data.table) library(tidyr) # read and attach Tanzania dataset...
#FTmrca <- function(n, t){ # z <- vector() # for (i in 2:n){ # a <- ((2*i)-1)*(-1)^i # b <- prod(n:(n-i+1)) # c <- prod(n:(n+i-1)) # d <- (choose(i,2)*exp(-(choose(i,2))*t)) # x <- ((a*b)/c) * d # z <- c(z, x) # } # return(sum(z)) #} # # #z <- vector() #for (t in seq(0,4, 0.01)){ # x <- FTmrca(2,...
/R/Compute.Tmrca.R
no_license
eeiyowei/Misc.Statistics.Genetics.Models
R
false
false
840
r
#FTmrca <- function(n, t){ # z <- vector() # for (i in 2:n){ # a <- ((2*i)-1)*(-1)^i # b <- prod(n:(n-i+1)) # c <- prod(n:(n+i-1)) # d <- (choose(i,2)*exp(-(choose(i,2))*t)) # x <- ((a*b)/c) * d # z <- c(z, x) # } # return(sum(z)) #} # # #z <- vector() #for (t in seq(0,4, 0.01)){ # x <- FTmrca(2,...
#!/PROJ/GR/share/Software/R/bin/Rscript args<-commandArgs(T) if(length(args)<2) { cat("usage: plot.breakdancer.R <infile> <prefix>\n") q() } library("grid") infile<-args[1] prefix<-args[2] a<-read.table(infile,sep="\t",header=F) colnames(a)<-c("rid","chr1","pos1","chr2","pos2","isize") #HWI-ST1276:121:C28LNACXX:5:1...
/var/plot.breakdancer.R
no_license
wanghuanwei-gd/cancer
R
false
false
1,598
r
#!/PROJ/GR/share/Software/R/bin/Rscript args<-commandArgs(T) if(length(args)<2) { cat("usage: plot.breakdancer.R <infile> <prefix>\n") q() } library("grid") infile<-args[1] prefix<-args[2] a<-read.table(infile,sep="\t",header=F) colnames(a)<-c("rid","chr1","pos1","chr2","pos2","isize") #HWI-ST1276:121:C28LNACXX:5:1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getBIIGLE.R \name{reqNgetRep} \alias{reqNgetRep} \title{Request and Download BIIGLE Report} \usage{ reqNgetRep( url, auth, vol, reportType, downloadFolder, folderName = "biigle_report", waitingTime = 5 ) } \arguments{ \item{url}...
/man/reqNgetRep.Rd
permissive
yhhton/biigler
R
false
true
1,355
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getBIIGLE.R \name{reqNgetRep} \alias{reqNgetRep} \title{Request and Download BIIGLE Report} \usage{ reqNgetRep( url, auth, vol, reportType, downloadFolder, folderName = "biigle_report", waitingTime = 5 ) } \arguments{ \item{url}...
#' Release package to CRAN. #' #' Run automated and manual tests, then ftp to CRAN. #' #' The package release process will: #' #' \itemize{ #' #' \item Confirm that the package passes \code{R CMD check} #' \item Ask if you've checked your code on win-builder #' \item Confirm that news is up-to-date #' \item Con...
/R/release.r
no_license
potterzot/devtools
R
false
false
10,028
r
#' Release package to CRAN. #' #' Run automated and manual tests, then ftp to CRAN. #' #' The package release process will: #' #' \itemize{ #' #' \item Confirm that the package passes \code{R CMD check} #' \item Ask if you've checked your code on win-builder #' \item Confirm that news is up-to-date #' \item Con...
#' Create a fitness class with \code{custom_fit} #' #' @description \code{custom_fit} is designed to estimate the quality of a surrogate #' #' @details custom fit enable linear combination of several criteria #' @docType class #' @importFrom R6 R6Class #' @field listComp List of component #' @field dcoeff Coeffici...
/R/custom_fit.R
no_license
malekbs/UP
R
false
false
2,910
r
#' Create a fitness class with \code{custom_fit} #' #' @description \code{custom_fit} is designed to estimate the quality of a surrogate #' #' @details custom fit enable linear combination of several criteria #' @docType class #' @importFrom R6 R6Class #' @field listComp List of component #' @field dcoeff Coeffici...
#' integrated do_svd #' @export do_svd <- function(df, ..., skv = NULL, fun.aggregate=mean, fill=0){ validate_empty_data(df) if (!is.null(skv)) { #.kv pattern if (!length(skv) %in% c(2, 3)) { stop("length of skv has to be 2 or 3") } value <- if(length(skv) == 2) NULL else skv[[3]] do_svd....
/R/do_svd.R
permissive
yuhonghong7035/exploratory_func
R
false
false
15,252
r
#' integrated do_svd #' @export do_svd <- function(df, ..., skv = NULL, fun.aggregate=mean, fill=0){ validate_empty_data(df) if (!is.null(skv)) { #.kv pattern if (!length(skv) %in% c(2, 3)) { stop("length of skv has to be 2 or 3") } value <- if(length(skv) == 2) NULL else skv[[3]] do_svd....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scoring_helper_functions.R \name{getLift} \alias{getLift} \title{Score data - XGB models} \usage{ getLift(model, test, target) } \arguments{ \item{model}{XGBoost model object} \item{test}{Test set} \item{target}{Column name of the target va...
/man/getLift.Rd
no_license
miission/modelhelper
R
false
true
405
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scoring_helper_functions.R \name{getLift} \alias{getLift} \title{Score data - XGB models} \usage{ getLift(model, test, target) } \arguments{ \item{model}{XGBoost model object} \item{test}{Test set} \item{target}{Column name of the target va...
/5.Analisis.r
no_license
josezea/AnalisisRegalias
R
false
false
3,050
r
testlist <- list(a = 0L, b = 0L, x = c(-1L, -1L, -1L, -1L, -16777216L, 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/1610387820-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
299
r
testlist <- list(a = 0L, b = 0L, x = c(-1L, -1L, -1L, -1L, -16777216L, 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)
#' \pkg{remef} removes effects #' #' \code{remef} can be used to remove partial effects from variables used in #' statistical models. #' #' Mixed-effetcs models include both fixed and random effects. The dependent #' variable is expressed as a combination of fixed and random effects and an #' error term. \code{remef}...
/R/remef-package.R
no_license
RymerLab/remef
R
false
false
847
r
#' \pkg{remef} removes effects #' #' \code{remef} can be used to remove partial effects from variables used in #' statistical models. #' #' Mixed-effetcs models include both fixed and random effects. The dependent #' variable is expressed as a combination of fixed and random effects and an #' error term. \code{remef}...