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
#' There's a command for downloading all the recode manuals. They are also in dir(pdhs:::static(), full.names=TRUE) #' The download command, here's how to put them in the above location: download_manuals() #' You can also set a download output directory: download_manuals("~/Documents")
/inst/examples/some-resources.R
no_license
sakrejda/pdhs
R
false
false
298
r
#' There's a command for downloading all the recode manuals. They are also in dir(pdhs:::static(), full.names=TRUE) #' The download command, here's how to put them in the above location: download_manuals() #' You can also set a download output directory: download_manuals("~/Documents")
## This script tested and ready for production mode on Carbonate library(PopGenome) library(bigmemory) library(tools) ########################################################################## vcfDir <- "/N/dc2/projects/PromoterPopGen/human/human-split-data/gene_chr2" fileList <- "/N/dc2/projects/PromoterPopGen/hum...
/scripts/PopGenome_batch_chr2.R
no_license
xuan-w/Dm_Promoter_PopGen
R
false
false
2,760
r
## This script tested and ready for production mode on Carbonate library(PopGenome) library(bigmemory) library(tools) ########################################################################## vcfDir <- "/N/dc2/projects/PromoterPopGen/human/human-split-data/gene_chr2" fileList <- "/N/dc2/projects/PromoterPopGen/hum...
# Title : Main runner for project 6 # Objective : Handles the main pieces of the running # Created by: Tristan Miller (tem83) # Created on: 5/1/2020 # tensorflow::install_tensorflow(version="2.1") library( keras ) library( tensorflow ) library( data.table ) library( ggplot2 ) source("Project6/Model.R") #acquire...
/Project6/MainRunner.R
no_license
deltarod/NAU-CS499
R
false
false
933
r
# Title : Main runner for project 6 # Objective : Handles the main pieces of the running # Created by: Tristan Miller (tem83) # Created on: 5/1/2020 # tensorflow::install_tensorflow(version="2.1") library( keras ) library( tensorflow ) library( data.table ) library( ggplot2 ) source("Project6/Model.R") #acquire...
ohdsiBlueHex <- "#20425A" ohdsiLightYellowHex <- "FBC209" dashboardPage( dashboardHeader( title = "Incidence AESI", tags$li(div(img(src = 'logo.png', title = "Characterizing Incidence AESI", height = "40px", width = "40px"), style =...
/Covid19VaccineAesiIncidenceCharacterization/ui.R
no_license
OHDSI/ShinyDeploy
R
false
false
7,973
r
ohdsiBlueHex <- "#20425A" ohdsiLightYellowHex <- "FBC209" dashboardPage( dashboardHeader( title = "Incidence AESI", tags$li(div(img(src = 'logo.png', title = "Characterizing Incidence AESI", height = "40px", width = "40px"), style =...
## 04_RandomForest_RunModels.R #' This script is intended to train and run random forest models. #' #' Input variables will be selected using the output from 01_RandomForest_PreliminaryVariableImportance.R #' and 02_RandomForest_FigureOutNumPredictors.R. Hyperparameters will be based on the output of #' 03_RandomFore...
/code/sam_zipper_RF/04_RandomForest_RunModels.R
no_license
adamnicholasprice/DryingRegimes
R
false
false
11,266
r
## 04_RandomForest_RunModels.R #' This script is intended to train and run random forest models. #' #' Input variables will be selected using the output from 01_RandomForest_PreliminaryVariableImportance.R #' and 02_RandomForest_FigureOutNumPredictors.R. Hyperparameters will be based on the output of #' 03_RandomFore...
# Make a graph of the run time results `%>%` <- dplyr::`%>%` library(ggplot2) dir.create("plots", showWarnings = FALSE) #### samples ------------------------------------------------------------------- samples_df <- data.frame( num_samples = c(seq(100, 1000, 100), 5000, 10000, 20000, 40000), num_genes = rep(500,...
/impute_requirements/run_time_graph.R
permissive
AlexsLemonade/compendium-processing
R
false
false
2,716
r
# Make a graph of the run time results `%>%` <- dplyr::`%>%` library(ggplot2) dir.create("plots", showWarnings = FALSE) #### samples ------------------------------------------------------------------- samples_df <- data.frame( num_samples = c(seq(100, 1000, 100), 5000, 10000, 20000, 40000), num_genes = rep(500,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cosineNorm.R \name{cosineNorm} \alias{cosineNorm} \title{Cosine normalization} \usage{ cosineNorm(x, mode = c("matrix", "all", "l2norm"), subset.row = NULL) } \arguments{ \item{x}{A gene expression matrix with cells as columns and genes as ro...
/man/cosineNorm.Rd
no_license
wuwill/batchelor
R
false
true
2,631
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cosineNorm.R \name{cosineNorm} \alias{cosineNorm} \title{Cosine normalization} \usage{ cosineNorm(x, mode = c("matrix", "all", "l2norm"), subset.row = NULL) } \arguments{ \item{x}{A gene expression matrix with cells as columns and genes as ro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/imlplots.R \name{imlplots} \alias{imlplots} \title{Interactive Plots for Interpretable Machine Learning} \usage{ imlplots(data, task, models, model.check = "all.features") } \arguments{ \item{data}{Input data frame. Has to contain exactly the...
/man/imlplots.Rd
no_license
slds-lmu/imlplots
R
false
true
3,194
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/imlplots.R \name{imlplots} \alias{imlplots} \title{Interactive Plots for Interpretable Machine Learning} \usage{ imlplots(data, task, models, model.check = "all.features") } \arguments{ \item{data}{Input data frame. Has to contain exactly the...
setwd("D:/Cursos/Coursera/Data Science/Exploratory Data Analysis/Project"); require(sqldf) x1 <- read.csv.sql( file='household_power_consumption.txt',sep=";",sql="select * from file where Date = '1/2/2007' or Date = '2/2/2007'",header=TRUE); x$Date <- as.Date(x$Date,"%d/%m/%Y"); png(file="plot1.png"); par(mfrow=c(1,1))...
/plot1.R
no_license
jdemoya/ExData_Plotting1
R
false
false
461
r
setwd("D:/Cursos/Coursera/Data Science/Exploratory Data Analysis/Project"); require(sqldf) x1 <- read.csv.sql( file='household_power_consumption.txt',sep=";",sql="select * from file where Date = '1/2/2007' or Date = '2/2/2007'",header=TRUE); x$Date <- as.Date(x$Date,"%d/%m/%Y"); png(file="plot1.png"); par(mfrow=c(1,1))...
## ---- fig.height=3.5, fig.width=7---------------------------------------- library(TSrepr) library(ggplot2) data_ts <- as.numeric(elec_load[1,]) length(data_ts) data_ts_sums <- repr_paa(data_ts, q = 2, func = sum) length(data_ts_sums) ggplot(data.frame(Time = 1:length(data_ts_sums), Value = data_ts_sums),...
/data/genthat_extracted_code/TSrepr/vignettes/TSrepr_extentions.R
no_license
surayaaramli/typeRrh
R
false
false
2,497
r
## ---- fig.height=3.5, fig.width=7---------------------------------------- library(TSrepr) library(ggplot2) data_ts <- as.numeric(elec_load[1,]) length(data_ts) data_ts_sums <- repr_paa(data_ts, q = 2, func = sum) length(data_ts_sums) ggplot(data.frame(Time = 1:length(data_ts_sums), Value = data_ts_sums),...
plot(AirPassengers) dec = decompose(AirPassengers) dec dec$seasonal dec$trend dec$random plot(dec$seasonal) plot(dec$trend) plot(dec)
/decomposicao.r
no_license
filipanselmo11/Ciencia_De_Dados_Python_e_R
R
false
false
137
r
plot(AirPassengers) dec = decompose(AirPassengers) dec dec$seasonal dec$trend dec$random plot(dec$seasonal) plot(dec$trend) plot(dec)
#### Build_GSE103154_Tang_adult_colon_dataset #### ### Step1 Expression data filePath <- "/stor/jianghao/GEO/Normal_tissues/GSE103239_Tang_digestive_tract/GSE103154_adult_tissues/GSE103154_All_Merge_umi_tpm_gene.txt.gz" adult.colon.tpm<- read.table(gzfile(filePath), header = T) geneNames <- adult.colon.tpm[,1] rownames...
/Normal_cell_reference/pre_Step1_Build_normal_cell_dataset/Build_GSE103154_Tang_adult_colon_dataset.R
no_license
haojiang9999/HCA_script
R
false
false
1,783
r
#### Build_GSE103154_Tang_adult_colon_dataset #### ### Step1 Expression data filePath <- "/stor/jianghao/GEO/Normal_tissues/GSE103239_Tang_digestive_tract/GSE103154_adult_tissues/GSE103154_All_Merge_umi_tpm_gene.txt.gz" adult.colon.tpm<- read.table(gzfile(filePath), header = T) geneNames <- adult.colon.tpm[,1] rownames...
#=================================================================================================== # # Multi-variate empirical Bayes with proper accounting for sigma # #=================================================================================================== .colWeightedMeans.x = function(data, weights, na...
/R/empiricalBayesLM.R
no_license
pdicarl3/WGCNA
R
false
false
32,373
r
#=================================================================================================== # # Multi-variate empirical Bayes with proper accounting for sigma # #=================================================================================================== .colWeightedMeans.x = function(data, weights, na...
library("rcompanion") library("car") library("dplyr") library("mvnormtest") # Does the country inlfuence the happiness score and the child mortality rate from 2015 to 2017. #Ensure variables are numeric str(HappyMelt2015.2017$Happiness.Score) str(HappyMelt2015.2017$Economy.GDP.per.Capita) keeps <- c("Happ...
/Manova.R
no_license
tedstrauch/Final-Project
R
false
false
1,694
r
library("rcompanion") library("car") library("dplyr") library("mvnormtest") # Does the country inlfuence the happiness score and the child mortality rate from 2015 to 2017. #Ensure variables are numeric str(HappyMelt2015.2017$Happiness.Score) str(HappyMelt2015.2017$Economy.GDP.per.Capita) keeps <- c("Happ...
# tell R where your file is located setwd('/Users/mmy/Desktop/SImOut') # tell R what file to use mydata <- read.csv("Customers.csv") # convert to a R data frame mydata <- data.frame(mydata) #delete usless column mydata <- subset(mydata, select= -c(CustomerID,InboundCalls,BlockedCalls,DroppedCalls)) #delete NA data ...
/CustomerAnalytics.r
no_license
DoubleDoubleY/DMDA-3A
R
false
false
1,359
r
# tell R where your file is located setwd('/Users/mmy/Desktop/SImOut') # tell R what file to use mydata <- read.csv("Customers.csv") # convert to a R data frame mydata <- data.frame(mydata) #delete usless column mydata <- subset(mydata, select= -c(CustomerID,InboundCalls,BlockedCalls,DroppedCalls)) #delete NA data ...
## first we create a list of functions to set the value of some matrix, get the value ## set the inverse matrix values and get the inverse matrix values #1.set the value of the matrix #2.get the value of the matrix #3.set the value of the inverse matrix #4.get the value of the inverse matrix makeCacheMatrix <- funct...
/cachematrix.R
no_license
SaurubhSingh/ProgrammingAssignment2
R
false
false
919
r
## first we create a list of functions to set the value of some matrix, get the value ## set the inverse matrix values and get the inverse matrix values #1.set the value of the matrix #2.get the value of the matrix #3.set the value of the inverse matrix #4.get the value of the inverse matrix makeCacheMatrix <- funct...
library(plyr) library(tidyr) library(dplyr) library(reshape2) library(ggplot2) # CONSTANTS ---------------------------------------------------------------------------- CS_list <- list('A' = c('green', 'blue'), 'B' = c('blue', 'green'), 'C' = c('red', 'blue'), 'D' = c('b...
/incompleters/utils.R
no_license
Art83/heroku_app
R
false
false
97,458
r
library(plyr) library(tidyr) library(dplyr) library(reshape2) library(ggplot2) # CONSTANTS ---------------------------------------------------------------------------- CS_list <- list('A' = c('green', 'blue'), 'B' = c('blue', 'green'), 'C' = c('red', 'blue'), 'D' = c('b...
# Exploratory Data Analysis - Assignment 2 - #1 # By Yeoh Eik Den setwd("~/Documents/R Project/Exploratory Data Analysis/") # Loading provided datasets NEI <- readRDS("~/Documents/R Project/Exploratory Data Analysis/data/summarySCC_PM25.rds") SCC <- readRDS("~/Documents/R Project/Exploratory Data Analysis/data/Source_C...
/plot1.R
no_license
eikden/ExploratoryDataAnalysisProject2
R
false
false
1,079
r
# Exploratory Data Analysis - Assignment 2 - #1 # By Yeoh Eik Den setwd("~/Documents/R Project/Exploratory Data Analysis/") # Loading provided datasets NEI <- readRDS("~/Documents/R Project/Exploratory Data Analysis/data/summarySCC_PM25.rds") SCC <- readRDS("~/Documents/R Project/Exploratory Data Analysis/data/Source_C...
## ----setup, include=FALSE------------------------------------------------ knitr::opts_chunk$set(echo = TRUE, warning=FALSE, fig.align=TRUE) ## ----init0, eval=TRUE, include=TRUE-------------------------------------- library(Rodam) ## ----init-object, echo=TRUE---------------------------------------------- dh...
/data/genthat_extracted_code/Rodam/vignettes/Rodam.R
no_license
surayaaramli/typeRrh
R
false
false
4,858
r
## ----setup, include=FALSE------------------------------------------------ knitr::opts_chunk$set(echo = TRUE, warning=FALSE, fig.align=TRUE) ## ----init0, eval=TRUE, include=TRUE-------------------------------------- library(Rodam) ## ----init-object, echo=TRUE---------------------------------------------- dh...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/biomart_queries.R \name{get_rsid} \alias{get_rsid} \title{obtain the rs ids in a range} \usage{ get_rsid( chrom, start, end, snp_mart, attributes = c("refsnp_id", "allele", "chrom_start", "chrom_strand") ) } \arguments{ \item{chrom}...
/man/get_rsid.Rd
permissive
welch16/UWCCC.GWAS
R
false
true
747
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/biomart_queries.R \name{get_rsid} \alias{get_rsid} \title{obtain the rs ids in a range} \usage{ get_rsid( chrom, start, end, snp_mart, attributes = c("refsnp_id", "allele", "chrom_start", "chrom_strand") ) } \arguments{ \item{chrom}...
context("check the apply_summary function") library(dplyr) slot_agg_matrix <- read_rwd_agg( system.file("extdata/rwd_agg_files/passing_aggs.csv", package = "RWDataPlyr") )[1:5,] rwtbl <- expect_warning(rdf_to_rwtbl(keyRdf)) orig_op <- getOption("rwdataplyr.wy_month_tol") teardown(options(rwdataplyr.wy_month_tol = ...
/tests/testthat/test_apply_summary.R
permissive
BoulderCodeHub/RWDataPlyr
R
false
false
5,132
r
context("check the apply_summary function") library(dplyr) slot_agg_matrix <- read_rwd_agg( system.file("extdata/rwd_agg_files/passing_aggs.csv", package = "RWDataPlyr") )[1:5,] rwtbl <- expect_warning(rdf_to_rwtbl(keyRdf)) orig_op <- getOption("rwdataplyr.wy_month_tol") teardown(options(rwdataplyr.wy_month_tol = ...
pacman::p_load(tidyverse, lubridate, ggplot2, chron) feeding <- read_csv('raw_data/feeding.csv') %>% mutate(duration = as.numeric(difftime(end,start))) %>% mutate(start_time_am_pm = paste(start, start_am_pm)) %>% mutate(end_time_am_pm = paste(end, end_am_pm)) %>% mutate(hour = hour(start)) %>% mutate(ho...
/feeding_analysis.R
no_license
dallincoons/stink-bean
R
false
false
4,664
r
pacman::p_load(tidyverse, lubridate, ggplot2, chron) feeding <- read_csv('raw_data/feeding.csv') %>% mutate(duration = as.numeric(difftime(end,start))) %>% mutate(start_time_am_pm = paste(start, start_am_pm)) %>% mutate(end_time_am_pm = paste(end, end_am_pm)) %>% mutate(hour = hour(start)) %>% mutate(ho...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_functions.R \name{listfiles} \alias{listfiles} \title{List files in a directory} \usage{ listfiles(folder = getwd(), recursive = TRUE, regex = NA, images = FALSE) } \arguments{ \item{folder}{Character. Directory which contains files} \...
/man/listfiles.Rd
no_license
romainfrancois/lares
R
false
true
1,840
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_functions.R \name{listfiles} \alias{listfiles} \title{List files in a directory} \usage{ listfiles(folder = getwd(), recursive = TRUE, regex = NA, images = FALSE) } \arguments{ \item{folder}{Character. Directory which contains files} \...
rm(list=ls()) #Xinming Zhuo, xmzhuo@gmail.com # R_script_to_compare_haplotype_of_NIPT_cells_with_parents #dependency "tcltk", "ape" # this script take samcluster.csv files from S3_file.sh for comparison in a trio or duo samples # it take one ore more files to plot # the plot and new csv file will saved to the the same ...
/S7_File.R
no_license
xmzhuo/NIPT_genotyping
R
false
false
8,482
r
rm(list=ls()) #Xinming Zhuo, xmzhuo@gmail.com # R_script_to_compare_haplotype_of_NIPT_cells_with_parents #dependency "tcltk", "ape" # this script take samcluster.csv files from S3_file.sh for comparison in a trio or duo samples # it take one ore more files to plot # the plot and new csv file will saved to the the same ...
#' validate nexml using the online validator tool #' @param file path to the nexml file to validate #' @param schema URL of schema (for fallback method only, set by default). #' @details Requires an internet connection. see http://www.nexml.org/nexml/phylows/validator for more information in debugging invalid files ...
/R/nexml_validate.R
permissive
vanderphylum/RNeXML
R
false
false
2,313
r
#' validate nexml using the online validator tool #' @param file path to the nexml file to validate #' @param schema URL of schema (for fallback method only, set by default). #' @details Requires an internet connection. see http://www.nexml.org/nexml/phylows/validator for more information in debugging invalid files ...
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ------------------------------------------------------------------------ library(calendar) ## ------------------------------------------------------------------------ # key:value...
/data/genthat_extracted_code/calendar/vignettes/ical-creating-calendars.R
no_license
surayaaramli/typeRrh
R
false
false
624
r
## ----setup, include = FALSE---------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ------------------------------------------------------------------------ library(calendar) ## ------------------------------------------------------------------------ # key:value...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pull_synth_data.R \name{pull_acs_basetables} \alias{pull_acs_basetables} \title{Pull ACS base tables} \usage{ pull_acs_basetables(endyear, span, geography, table_vec) } \arguments{ \item{endyear}{An integer, indicating the latest year of the ...
/fuzzedpackages/synthACS/man/pull_acs_basetables.Rd
no_license
akhikolla/testpackages
R
false
true
1,124
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pull_synth_data.R \name{pull_acs_basetables} \alias{pull_acs_basetables} \title{Pull ACS base tables} \usage{ pull_acs_basetables(endyear, span, geography, table_vec) } \arguments{ \item{endyear}{An integer, indicating the latest year of the ...
library(tidyverse) library(zip) library(aweek) library(lubridate) library(vroom) library(magrittr) set_week_start("sunday") ## Em 21/01/2021 commits posteriores a 15/01 parece ter tabelas com linhas faltantes ## Usando o ultimo commit que parece bem ## system("cd ../../../dados/seade/; git checkout 89c35a9") system("c...
/scripts_R_genericos/seade/casos_seade/confere_casos_para_G1.R
no_license
covid19br/central_covid
R
false
false
4,741
r
library(tidyverse) library(zip) library(aweek) library(lubridate) library(vroom) library(magrittr) set_week_start("sunday") ## Em 21/01/2021 commits posteriores a 15/01 parece ter tabelas com linhas faltantes ## Usando o ultimo commit que parece bem ## system("cd ../../../dados/seade/; git checkout 89c35a9") system("c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rFractionalWishart.R \name{FractionalWishart} \alias{FractionalWishart} \title{Fractional Wishart Helper Function} \usage{ FractionalWishart(df, Sigma, covariance = FALSE) } \arguments{ \item{df}{numeric parameter, \dQuote{degrees of freedom}...
/man/FractionalWishart.Rd
no_license
gzt/rWishart
R
false
true
994
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rFractionalWishart.R \name{FractionalWishart} \alias{FractionalWishart} \title{Fractional Wishart Helper Function} \usage{ FractionalWishart(df, Sigma, covariance = FALSE) } \arguments{ \item{df}{numeric parameter, \dQuote{degrees of freedom}...
df<-read.csv("household_power_consumption.txt",header=T,sep=";",nrows=2075259,stringsAsFactors = FALSE,quote='\"',na.strings = "?") View(df) p4<-subset(df,Date %in%c("1/2/2007","2/2/2007")) p4$Date <- as.Date(p4$Date, format="%d/%m/%Y") datetime<-paste(as.Date(p4$Date), p4$Time) p4$Datetime <- as.POSIXct(datetime)...
/EDA4-Week1Assignment1.R
no_license
Meghnahh/ExData_Plotting1
R
false
false
1,099
r
df<-read.csv("household_power_consumption.txt",header=T,sep=";",nrows=2075259,stringsAsFactors = FALSE,quote='\"',na.strings = "?") View(df) p4<-subset(df,Date %in%c("1/2/2007","2/2/2007")) p4$Date <- as.Date(p4$Date, format="%d/%m/%Y") datetime<-paste(as.Date(p4$Date), p4$Time) p4$Datetime <- as.POSIXct(datetime)...
#Assignment04 by Qingxuan #Clear the Console rm(list=ls(all=TRUE)) cat("\014") # Install and load packages library(tidyverse) if (!require("here")) install.packages("here") if (!require("ggrepel")) install.packages("ggrepel") library(here) library(ggplot2) library(ggrepel) #Use non-PA data data <- read_csv(here("covi...
/Assignment04_Qingxuan Chen.R
no_license
qingxuan-27/BIS-244-chenqingxuan
R
false
false
897
r
#Assignment04 by Qingxuan #Clear the Console rm(list=ls(all=TRUE)) cat("\014") # Install and load packages library(tidyverse) if (!require("here")) install.packages("here") if (!require("ggrepel")) install.packages("ggrepel") library(here) library(ggplot2) library(ggrepel) #Use non-PA data data <- read_csv(here("covi...
# vacancy rate plots compared to regional vacancy maindir = dirname(rstudioapi::getSourceEditorContext()$path) setwd(maindir) pkgTest <- function(pkg){ new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] if (length(new.pkg)) install.packages(new.pkg, dep = TRUE) sapply(pkg, require, character.only...
/Internal_Projects/2022-21 Forecast_Automation/Archive/Forecast2021/Rscripts/Vacancy Rate_Plots.R
no_license
SANDAG/QA
R
false
false
12,515
r
# vacancy rate plots compared to regional vacancy maindir = dirname(rstudioapi::getSourceEditorContext()$path) setwd(maindir) pkgTest <- function(pkg){ new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] if (length(new.pkg)) install.packages(new.pkg, dep = TRUE) sapply(pkg, require, character.only...
rowMads <- function(x, rows=NULL, cols=NULL, center=NULL, constant=1.4826, na.rm=FALSE, dim.=dim(x), centers=NULL, ...) { ## BACKWARD COMPATIBILITY: ## - Added to matrixStats 0.14.0. ## - Defunct in matrixStats (>= 0.15.0) if (!is.null(centers)) { center <- centers .Defunct(msg="Argument 'centers'...
/R/rowMads.R
no_license
kaushikg06/matrixStats
R
false
false
3,701
r
rowMads <- function(x, rows=NULL, cols=NULL, center=NULL, constant=1.4826, na.rm=FALSE, dim.=dim(x), centers=NULL, ...) { ## BACKWARD COMPATIBILITY: ## - Added to matrixStats 0.14.0. ## - Defunct in matrixStats (>= 0.15.0) if (!is.null(centers)) { center <- centers .Defunct(msg="Argument 'centers'...
r=1.20 https://sandbox.dams.library.ucdavis.edu/fcrepo/rest/collection/sherry-lehmann/catalogs/d7qp41/media/images/d7qp41-013/svc:tesseract/full/full/1.20/default.jpg Accept:application/hocr+xml
/tesseract/rotate/d7qp41-013.r
permissive
ucd-library/wine-price-extraction
R
false
false
195
r
r=1.20 https://sandbox.dams.library.ucdavis.edu/fcrepo/rest/collection/sherry-lehmann/catalogs/d7qp41/media/images/d7qp41-013/svc:tesseract/full/full/1.20/default.jpg Accept:application/hocr+xml
#extract filenames from dataset of csv filenames= list.files(pattern=".csv"); #number of files - 446 L=length(filenames); #Create variables for country names and total number of patients xx=c(); nums=c(); for (i in 1:L){ #outfilename=paste("out",filenames[i]); #read entire file into R variable all_content = read...
/preprocess.R
no_license
zymaislam/portfolio
R
false
false
1,338
r
#extract filenames from dataset of csv filenames= list.files(pattern=".csv"); #number of files - 446 L=length(filenames); #Create variables for country names and total number of patients xx=c(); nums=c(); for (i in 1:L){ #outfilename=paste("out",filenames[i]); #read entire file into R variable all_content = read...
library(bedr) ### Name: df2list ### Title: Data frame to list conversion ### Aliases: df2list ### ** Examples ## Not run: ##D df2list(data.frame(a = 1:10, b = 11:20)); ##D ## End(Not run)
/data/genthat_extracted_code/bedr/examples/df2list.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
201
r
library(bedr) ### Name: df2list ### Title: Data frame to list conversion ### Aliases: df2list ### ** Examples ## Not run: ##D df2list(data.frame(a = 1:10, b = 11:20)); ##D ## End(Not run)
#'--- #' title: Create GTEx SNP set for enrichment analysis #' author: Christian Mertes #' wb: #' threads: 10 #' input: #' - subvcfannotbi: '`sm config["DATADIR"] + "/GTEx_variant_enrichment/{snptype}Variants.vcf.gz.tbi"`' #' - subvcfgttbi: '`sm config["DATADIR"] + "/GTEx_variant_enrichment/{snptype}_gt.v...
/Scripts/GTExEnrichment/ExtractSNPsForEnrichment.R
permissive
Guliba/FRASER-analysis
R
false
false
5,850
r
#'--- #' title: Create GTEx SNP set for enrichment analysis #' author: Christian Mertes #' wb: #' threads: 10 #' input: #' - subvcfannotbi: '`sm config["DATADIR"] + "/GTEx_variant_enrichment/{snptype}Variants.vcf.gz.tbi"`' #' - subvcfgttbi: '`sm config["DATADIR"] + "/GTEx_variant_enrichment/{snptype}_gt.v...
################################################### ################################################### ################################################### ######### Part 16 ######### ## Mapping wind farm strata ## Representative surveys ########################### # Clean environment rm(list = ls()) #...
/noaa_bottom_trawl_survey_offshore_wind_catch_weight_summary_statistics_analysis/scripts/16_owf_strata_map.R
no_license
bpfree/work_sample
R
false
false
4,532
r
################################################### ################################################### ################################################### ######### Part 16 ######### ## Mapping wind farm strata ## Representative surveys ########################### # Clean environment rm(list = ls()) #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/refresh_site_list.R \name{refresh_site_list} \alias{refresh_site_list} \title{Refresh current site list based on ED runs and available spectra} \usage{ refresh_site_list(pda_dir, aviris_specfile = here::here("aviris/aviris.rds"), drop_sit...
/man/refresh_site_list.Rd
no_license
fdbesanto2/edr-da
R
false
true
776
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/refresh_site_list.R \name{refresh_site_list} \alias{refresh_site_list} \title{Refresh current site list based on ED runs and available spectra} \usage{ refresh_site_list(pda_dir, aviris_specfile = here::here("aviris/aviris.rds"), drop_sit...
library(shiny) library(shinyjs) library(visNetwork) library(shinythemes) library(shinycssloaders) library(shinyWidgets) library(DT) library(ggplot2) library(car) library(nortest) library(tseries) library(RcmdrMisc) library(lmtest) library(slickR) library(igraph) library(shiny) source("Components/Com...
/ui.R
no_license
ceslobfer/Rootapp
R
false
false
11,460
r
library(shiny) library(shinyjs) library(visNetwork) library(shinythemes) library(shinycssloaders) library(shinyWidgets) library(DT) library(ggplot2) library(car) library(nortest) library(tseries) library(RcmdrMisc) library(lmtest) library(slickR) library(igraph) library(shiny) source("Components/Com...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gg-plots.R \docType{data} \name{ggally_count} \alias{ggally_count} \alias{stat_ggally_count} \alias{StatGGallyCount} \alias{ggally_countDiag} \title{Display counts of observations} \usage{ ggally_count(data, mapping, ...) ggally_countDiag(da...
/man/ggally_count.Rd
no_license
ggobi/ggally
R
false
true
1,500
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gg-plots.R \docType{data} \name{ggally_count} \alias{ggally_count} \alias{stat_ggally_count} \alias{StatGGallyCount} \alias{ggally_countDiag} \title{Display counts of observations} \usage{ ggally_count(data, mapping, ...) ggally_countDiag(da...
gdina_init_class_probabilities <- function( G, L, seed , attr.prob.init ) { if (G== 1){ attr.prob <- rep( 1/L, L ) if ( seed > 0 ){ set.seed(seed) attr.prob <- stats::runif( L , 0 , 10/L ) attr.prob <- attr.prob / sum( attr.prob ) } } else { attr.prob <- matrix( 1/L , L , G ) if ( seed...
/R/gdina_init_class_probabilities.R
no_license
strategist922/CDM
R
false
false
690
r
gdina_init_class_probabilities <- function( G, L, seed , attr.prob.init ) { if (G== 1){ attr.prob <- rep( 1/L, L ) if ( seed > 0 ){ set.seed(seed) attr.prob <- stats::runif( L , 0 , 10/L ) attr.prob <- attr.prob / sum( attr.prob ) } } else { attr.prob <- matrix( 1/L , L , G ) if ( seed...
#' @export #' @import methods print.covidseir <- function(x, pars = c("R0", "i0", "e", "f_s", "start_decline", "end_decline", "phi", "beta"), ...) { if ("fit_type" %in% names(x)) { if (x$fit_type == "optimizing") { beta_n <- grep("beta\\[", colnames(x$fit$theta_tilde)) phi_n <- grep("phi\\[", colnam...
/R/methods.R
no_license
seananderson/covidseir
R
false
false
999
r
#' @export #' @import methods print.covidseir <- function(x, pars = c("R0", "i0", "e", "f_s", "start_decline", "end_decline", "phi", "beta"), ...) { if ("fit_type" %in% names(x)) { if (x$fit_type == "optimizing") { beta_n <- grep("beta\\[", colnames(x$fit$theta_tilde)) phi_n <- grep("phi\\[", colnam...
rm(list = ls()) library(tictoc) library(debiasedhmc) library(parallel) # load model load("germancredit.RData") # specify stepsize and no. of steps stepsize <- 0.0125 nsteps <- 10 # load("hmc.germancredit.contraction.parameters.RData") # args <- commandArgs(TRUE) # iparameter <- as.integer(args[1]) # cat("iparameter:"...
/inst/logistic/hmc.meetingtimes.sigma.R
no_license
jeremyhengjm/debiasedhmc
R
false
false
2,552
r
rm(list = ls()) library(tictoc) library(debiasedhmc) library(parallel) # load model load("germancredit.RData") # specify stepsize and no. of steps stepsize <- 0.0125 nsteps <- 10 # load("hmc.germancredit.contraction.parameters.RData") # args <- commandArgs(TRUE) # iparameter <- as.integer(args[1]) # cat("iparameter:"...
#' Preprocess data for spine chart #' #' Returns a data frame with the latest time period of data for each indicator #' name. #' @details This processing only takes place on the indicator field and the time #' period field provided. If the data contains multiple sexes or age groups #' for an indicator, make sure t...
/R/spine_chart_utils.R
no_license
z-t-g/fingertipscharts
R
false
false
20,119
r
#' Preprocess data for spine chart #' #' Returns a data frame with the latest time period of data for each indicator #' name. #' @details This processing only takes place on the indicator field and the time #' period field provided. If the data contains multiple sexes or age groups #' for an indicator, make sure t...
library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( titlePanel("Forest Inventory Simulator"), sidebarLayout( sidebarPanel("Settings", selectInput(inputId = "select_pop", label = "Choose a stand:", choic...
/ui.R
no_license
AWF-GAUG/fisimshiny
R
false
false
3,570
r
library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( titlePanel("Forest Inventory Simulator"), sidebarLayout( sidebarPanel("Settings", selectInput(inputId = "select_pop", label = "Choose a stand:", choic...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iot_service.R \name{iot} \alias{iot} \title{AWS IoT} \usage{ iot(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region.} } \description{ AWS IoT provides secure, bi-directional communicati...
/paws/man/iot.Rd
permissive
ryanb8/paws
R
false
true
24,460
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iot_service.R \name{iot} \alias{iot} \title{AWS IoT} \usage{ iot(config = list()) } \arguments{ \item{config}{Optional configuration of credentials, endpoint, and/or region.} } \description{ AWS IoT provides secure, bi-directional communicati...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/unnest_longer.R \name{unnest_longer.} \alias{unnest_longer.} \title{Unnest a list-column of vectors into regular columns} \usage{ unnest_longer.( .df, col, values_to = NULL, indices_to = NULL, indices_include = NULL, keep_empty = ...
/man/unnest_longer..Rd
no_license
cran/tidytable
R
false
true
1,358
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/unnest_longer.R \name{unnest_longer.} \alias{unnest_longer.} \title{Unnest a list-column of vectors into regular columns} \usage{ unnest_longer.( .df, col, values_to = NULL, indices_to = NULL, indices_include = NULL, keep_empty = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iscamsummary.R \name{iscamsummary} \alias{iscamsummary} \title{iscamsummary Function} \usage{ iscamsummary(x, explanatory = NULL, digits = 3) } \arguments{ \item{x}{quantitative variable} \item{explanatory}{optional, categorical grouping var...
/ISCAM2/man/iscamsummary.Rd
no_license
shannonpileggi/SP--Pablo--RProgramming
R
false
true
553
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iscamsummary.R \name{iscamsummary} \alias{iscamsummary} \title{iscamsummary Function} \usage{ iscamsummary(x, explanatory = NULL, digits = 3) } \arguments{ \item{x}{quantitative variable} \item{explanatory}{optional, categorical grouping var...
"fun.fmkl.ls.param" <- function(pair, data){ L3 <- pair[1] L4 <- pair[2] n <- length(data) ri <- (fun.fmkl.ls.ri(n, pair)) reg <- lm(data ~ ri) coef <- reg$coefficients[2] #For some reason L2 is half of the correct value when 1/coef L2 <- 1 / coef L1 <- mean(data) - coef * mean(ri) return(cbind(L1, ...
/src/req/fun.fmkl.ls.param.R
no_license
oralokan/GLD
R
false
false
336
r
"fun.fmkl.ls.param" <- function(pair, data){ L3 <- pair[1] L4 <- pair[2] n <- length(data) ri <- (fun.fmkl.ls.ri(n, pair)) reg <- lm(data ~ ri) coef <- reg$coefficients[2] #For some reason L2 is half of the correct value when 1/coef L2 <- 1 / coef L1 <- mean(data) - coef * mean(ri) return(cbind(L1, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sigma_plot.R \name{plot_pca,seaMass-method} \alias{plot_pca,seaMass-method} \title{Robust PCA plot} \usage{ \S4method{plot_pca}{seaMass}( object, data.design = assay_design(object), variables = NULL, input = "model1", type = "standa...
/man/plot_pca-seaMass-method.Rd
permissive
alecksphillips/seaMass
R
false
true
722
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sigma_plot.R \name{plot_pca,seaMass-method} \alias{plot_pca,seaMass-method} \title{Robust PCA plot} \usage{ \S4method{plot_pca}{seaMass}( object, data.design = assay_design(object), variables = NULL, input = "model1", type = "standa...
###### global variables used by package functions ###### ### --- global variables --- ### # an environment object used to store the global variables, such that the variables can be changed by user if needed .pkg.var <- new.env(parent=emptyenv()) # current solver .pkg.var$solver <- "" ### --- global constants --- #...
/R/global.R
no_license
Bioinformatics-pipelines/gembox
R
false
false
5,678
r
###### global variables used by package functions ###### ### --- global variables --- ### # an environment object used to store the global variables, such that the variables can be changed by user if needed .pkg.var <- new.env(parent=emptyenv()) # current solver .pkg.var$solver <- "" ### --- global constants --- #...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 3.59745311497933e-217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615780609-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
348
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 3.59745311497933e-217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/example_data.r \docType{data} \name{example_data} \alias{example_data} \title{Stan DDM Example Data} \format{An object of class \code{data frame}.} \usage{ StanDDM::example_data } \description{ A small example data set which has been simulate...
/man/example_data.Rd
permissive
Seneketh/StanDDM
R
false
true
620
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/example_data.r \docType{data} \name{example_data} \alias{example_data} \title{Stan DDM Example Data} \format{An object of class \code{data frame}.} \usage{ StanDDM::example_data } \description{ A small example data set which has been simulate...
# Naive Bayes Algorithm # A classification technique based on Bayes' Theorem. Works best on two level features. # Features with more than two levels will result in less accuracy. # It can handle large data sets better than KNN. # Bayes theorem provides a way of calculating posterior probability P(c|x) from P(c), P(...
/R_Naive_Bayes/NaiveBayes.R
no_license
Abu-Sadeed/Naive_Bayes_Classifier
R
false
false
1,613
r
# Naive Bayes Algorithm # A classification technique based on Bayes' Theorem. Works best on two level features. # Features with more than two levels will result in less accuracy. # It can handle large data sets better than KNN. # Bayes theorem provides a way of calculating posterior probability P(c|x) from P(c), P(...
# prepare, create and optimize GRCh38_ref.rda GRCh38G = read.delim("./data-raw/GRCh38G.p13.txt", header = FALSE, stringsAsFactors = FALSE, skip = 1, col.names = c("ENSG", "Gene", "Chr", "Start", "End", "Source", "Type")) GRCh38G = GRCh38G[, 1:5] chr_len_GRCh38G.p13 = read.csv("./data-raw/chr_len_GRCh38G.p13.csv", strin...
/data-raw/vks_raw_ENSEMBL_Reference.R
permissive
yilixu/vigilante.knights.sword
R
false
false
2,697
r
# prepare, create and optimize GRCh38_ref.rda GRCh38G = read.delim("./data-raw/GRCh38G.p13.txt", header = FALSE, stringsAsFactors = FALSE, skip = 1, col.names = c("ENSG", "Gene", "Chr", "Start", "End", "Source", "Type")) GRCh38G = GRCh38G[, 1:5] chr_len_GRCh38G.p13 = read.csv("./data-raw/chr_len_GRCh38G.p13.csv", strin...
library(tidyverse) library(scales) library(gridExtra) spend_df<- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-02-12/fed_r_d_spending.csv") spend_percent <- spend_df %>% filter(rd_budget > 0) %>% group_by(department, year) %>% summarise( pct_of_total = rd...
/2019_02_12/tidytuesday_2019_02_12.R
no_license
chas-mellish/tidytuesday-3
R
false
false
1,472
r
library(tidyverse) library(scales) library(gridExtra) spend_df<- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-02-12/fed_r_d_spending.csv") spend_percent <- spend_df %>% filter(rd_budget > 0) %>% group_by(department, year) %>% summarise( pct_of_total = rd...
library(reshape2) library(dplyr) library(ggplot2) size_mod <- -5 cool_theme <- theme(plot.background=element_rect(fill = "transparent", colour = "transparent"), panel.grid.major = element_line(colour="lightgrey", linetype = "dashed"), ...
/WT_baseline.R
no_license
michbur/nonstandard_standarization
R
false
false
2,297
r
library(reshape2) library(dplyr) library(ggplot2) size_mod <- -5 cool_theme <- theme(plot.background=element_rect(fill = "transparent", colour = "transparent"), panel.grid.major = element_line(colour="lightgrey", linetype = "dashed"), ...
#' get_songs #' #' Get songs names from an artist. #' #' @param artist character. The artist's name. #' @return If the artist (or band) is found, it is returned a database #' with the song names and URLs. #' @examples{ #' \donttest{ #' get_songs("jorge") #' get_songs("los-hermanos") #'} #'} #' @export get_songs <- ...
/R/get_songs.R
permissive
kmaheshkulkarni/chorrrds
R
false
false
732
r
#' get_songs #' #' Get songs names from an artist. #' #' @param artist character. The artist's name. #' @return If the artist (or band) is found, it is returned a database #' with the song names and URLs. #' @examples{ #' \donttest{ #' get_songs("jorge") #' get_songs("los-hermanos") #'} #'} #' @export get_songs <- ...
stop_vacation <- function(message = NULL, class = NULL, ...) { abort(message, class = c(class, "vacation_error"), ...) } stop_lossy_parse <- function(message) { stop_vacation(message = message, class = "vacation_error_lossy_parse") } stop_date_below_minimum <- function(message) { stop_vacation(message = message...
/R/conditions.R
permissive
DavisVaughan/vacation
R
false
false
499
r
stop_vacation <- function(message = NULL, class = NULL, ...) { abort(message, class = c(class, "vacation_error"), ...) } stop_lossy_parse <- function(message) { stop_vacation(message = message, class = "vacation_error_lossy_parse") } stop_date_below_minimum <- function(message) { stop_vacation(message = message...
### The constrained ordination methods cca, rda, capscale & dbrda are ### very similar. Their main difference is the init of dependent ### matrix and after that the partializing, constraining and residual ### steps are very similar to each other. This file provides functions ### that can analyse any classic method, the...
/R/ordConstrained.R
no_license
nemochina2008/vegan
R
false
false
12,097
r
### The constrained ordination methods cca, rda, capscale & dbrda are ### very similar. Their main difference is the init of dependent ### matrix and after that the partializing, constraining and residual ### steps are very similar to each other. This file provides functions ### that can analyse any classic method, the...
#impute.R library(impute) impute_meth = function(df, na_max_prop=.5) { load_it("lumi") # Filter probes more than half NAs df = df[rowMeans(is.na(df)) <= na_max_prop,] #df = beta2m(df) df = data.frame(impute.knn(as.matrix(df), k=10, rng.seed=3301)$data) return(df) } # end impute_meth
/R/impute.R
no_license
jeffreyat/M2EFM
R
false
false
295
r
#impute.R library(impute) impute_meth = function(df, na_max_prop=.5) { load_it("lumi") # Filter probes more than half NAs df = df[rowMeans(is.na(df)) <= na_max_prop,] #df = beta2m(df) df = data.frame(impute.knn(as.matrix(df), k=10, rng.seed=3301)$data) return(df) } # end impute_meth
# Load data from file (assuming that file is in current directory) # Missing values are handled using the na.string option of read.csv data <- read.csv("household_power_consumption.txt", sep = ";", na.strings = c("?", "NA") ) # Add timestamp column to data frame data$ts <- strptim...
/plot1.R
no_license
datavieri/ExData_Plotting1
R
false
false
856
r
# Load data from file (assuming that file is in current directory) # Missing values are handled using the na.string option of read.csv data <- read.csv("household_power_consumption.txt", sep = ";", na.strings = c("?", "NA") ) # Add timestamp column to data frame data$ts <- strptim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genomics_functions.R \name{datasets.testIamPermissions} \alias{datasets.testIamPermissions} \title{Returns permissions that a caller has on the specified resource.See <a href='/iam/docs/managing-policies#testing_permissions'>TestingPermission...
/googlegenomicsv1.auto/man/datasets.testIamPermissions.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,451
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genomics_functions.R \name{datasets.testIamPermissions} \alias{datasets.testIamPermissions} \title{Returns permissions that a caller has on the specified resource.See <a href='/iam/docs/managing-policies#testing_permissions'>TestingPermission...
#' --- #' title: "Distribuição Normal Padrão" #' author: "Pedro Neto" #' date: "26/10/2020" #' encoding: "UTF-8" #' output: github_document #' --- #' #' Distribuição Normal Padrão df_quantisdades_distr_normal <- data.frame(x = 0:1 , prob = dnorm(x = c(-3, 3), mean = 0, sd = 1, log = FALSE)) # SEM GGPLOT2 (r base) x=...
/distribuição normal/distr normal padrao 1.R
no_license
pedroceciliocn/estatistica-para-adm
R
false
false
6,586
r
#' --- #' title: "Distribuição Normal Padrão" #' author: "Pedro Neto" #' date: "26/10/2020" #' encoding: "UTF-8" #' output: github_document #' --- #' #' Distribuição Normal Padrão df_quantisdades_distr_normal <- data.frame(x = 0:1 , prob = dnorm(x = c(-3, 3), mean = 0, sd = 1, log = FALSE)) # SEM GGPLOT2 (r base) x=...
\name{ParamFamParameter-class} \docType{class} \alias{ParamFamParameter-class} \alias{ParamWithScaleFamParameter-class} \alias{ParamWithScaleAndShapeFamParameter-class} \alias{ParamWithShapeFamParameter-class} \alias{length,ParamFamParameter-method} \alias{dimension,ParamFamParameter-method} \alias{main} \alia...
/man/ParamFamParameter-class.Rd
no_license
cran/distrMod
R
false
false
5,816
rd
\name{ParamFamParameter-class} \docType{class} \alias{ParamFamParameter-class} \alias{ParamWithScaleFamParameter-class} \alias{ParamWithScaleAndShapeFamParameter-class} \alias{ParamWithShapeFamParameter-class} \alias{length,ParamFamParameter-method} \alias{dimension,ParamFamParameter-method} \alias{main} \alia...
# Load the Association Rules Library # Running a Basket Analysis at Scale. # For small datasets, the R package arules can be used: library(arules) # Read the example dataset groceries groceries <- read.transactions("groceries.csv", sep = ",") library(readr) # Show some statistics of the dataset summary(groceries) ...
/basket_analysis.r
no_license
yikhwan/MarketBasketAnlysis-in-SparklyR
R
false
false
1,413
r
# Load the Association Rules Library # Running a Basket Analysis at Scale. # For small datasets, the R package arules can be used: library(arules) # Read the example dataset groceries groceries <- read.transactions("groceries.csv", sep = ",") library(readr) # Show some statistics of the dataset summary(groceries) ...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{get_pixels} \alias{get_pixels} \title{Extract observed data for use in a classification (training or testing)} \usage{ get_pixels(x, polys, class_col, training = 1, src = "none") } \arguments{ \item{x}{a \code{Raster*} object from which observed data will be ex...
/man/get_pixels.Rd
no_license
mauricioromero86/teamlucc
R
false
false
1,494
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{get_pixels} \alias{get_pixels} \title{Extract observed data for use in a classification (training or testing)} \usage{ get_pixels(x, polys, class_col, training = 1, src = "none") } \arguments{ \item{x}{a \code{Raster*} object from which observed data will be ex...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/http-put.r \name{PUT} \alias{PUT} \title{Send PUT request to server.} \usage{ PUT( url = NULL, config = list(), ..., body = NULL, encode = c("multipart", "form", "json", "raw"), handle = NULL ) } \arguments{ \item{url}{the url of ...
/man/PUT.Rd
permissive
heongmeng/httr
R
false
true
3,306
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/http-put.r \name{PUT} \alias{PUT} \title{Send PUT request to server.} \usage{ PUT( url = NULL, config = list(), ..., body = NULL, encode = c("multipart", "form", "json", "raw"), handle = NULL ) } \arguments{ \item{url}{the url of ...
# Copyright (c) 2015, Hande TOPA # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaime...
/codes/R/getgene_trratios_iso.R
permissive
PROBIC/diffsplicing
R
false
false
2,858
r
# Copyright (c) 2015, Hande TOPA # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaime...
library(sf) library(dplyr) library(purrr) library(purrrlyr) library(stringr) library(parallel) one_cty_dist_water <- function(cty_data) { aea_proj <- paste( "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96", "+x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" ) dist <- st_distance( ...
/water/compute_dist_to_water.R
no_license
mvanhala/geospatial_data_sources
R
false
false
2,068
r
library(sf) library(dplyr) library(purrr) library(purrrlyr) library(stringr) library(parallel) one_cty_dist_water <- function(cty_data) { aea_proj <- paste( "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96", "+x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" ) dist <- st_distance( ...
loglik_internal <- function(draws, ...) { # for use in non-pointwise evaluation only UseMethod("loglik_internal") } #' @export loglik_internal.mvbrmsdraws <- function(draws, combine = TRUE, ...) { if (length(draws$mvpars$rescor)) { draws$mvpars$Mu <- get_Mu(draws) draws$mvpars$Sigma <- get_Sigma(draws) ...
/R/loglik.R
no_license
famuvie/brms
R
false
false
26,367
r
loglik_internal <- function(draws, ...) { # for use in non-pointwise evaluation only UseMethod("loglik_internal") } #' @export loglik_internal.mvbrmsdraws <- function(draws, combine = TRUE, ...) { if (length(draws$mvpars$rescor)) { draws$mvpars$Mu <- get_Mu(draws) draws$mvpars$Sigma <- get_Sigma(draws) ...
library(tidyverse) library(jsonlite) library(httr) library(rjson) library(data.table) library(dplyr) library(janitor) # Reference the dt.id for all the ID's that match with coinbase (later used for loop to pick each element) dt.ico.api <- as.data.frame("zap") df.coingecko.foundico.id <- as.data.frame(coingecko_foundico...
/Goingecko api.R
no_license
mvb11/Thesis
R
false
false
7,813
r
library(tidyverse) library(jsonlite) library(httr) library(rjson) library(data.table) library(dplyr) library(janitor) # Reference the dt.id for all the ID's that match with coinbase (later used for loop to pick each element) dt.ico.api <- as.data.frame("zap") df.coingecko.foundico.id <- as.data.frame(coingecko_foundico...
\name{create_variant_signature_barplot} \alias{create_variant_signature_barplot} \title{ Create the variant signature barplot } \description{ Create a stacked barplot illustrating each of the 6 possible pyrimidine based change (i.e. C>A, C>G, C>T, T>A, T>C, T>G). } \usage{ create_variant_signature_barplot(data=NULL) } ...
/man/create_variant_signature_barplot.Rd
no_license
Bio-Core/BioCore.Annotation
R
false
false
527
rd
\name{create_variant_signature_barplot} \alias{create_variant_signature_barplot} \title{ Create the variant signature barplot } \description{ Create a stacked barplot illustrating each of the 6 possible pyrimidine based change (i.e. C>A, C>G, C>T, T>A, T>C, T>G). } \usage{ create_variant_signature_barplot(data=NULL) } ...
\alias{gdkWindowGetTypeHint} \name{gdkWindowGetTypeHint} \title{gdkWindowGetTypeHint} \description{This function returns the type hint set for a window.} \usage{gdkWindowGetTypeHint(object)} \arguments{\item{\verb{object}}{A toplevel \code{\link{GdkWindow}}}} \details{Since 2.10} \value{[\code{\link{GdkWindowTypeHint}}...
/RGtk2/man/gdkWindowGetTypeHint.Rd
no_license
lawremi/RGtk2
R
false
false
430
rd
\alias{gdkWindowGetTypeHint} \name{gdkWindowGetTypeHint} \title{gdkWindowGetTypeHint} \description{This function returns the type hint set for a window.} \usage{gdkWindowGetTypeHint(object)} \arguments{\item{\verb{object}}{A toplevel \code{\link{GdkWindow}}}} \details{Since 2.10} \value{[\code{\link{GdkWindowTypeHint}}...
# Sample script to scrape table from webpage library(rvest) # Load `rvest` package library(dplyr) # Load `dplyr` pacakge library(stringr) # Load `stringr` package setwd("~/Documents/DA/Projects/Project1/actresses/") # Set Working directory file_url <- "https://en.wikipedia.org/wiki/Tina_Ambani" # Assign the wi...
/actresses/tina_munim.R
no_license
puneeth019/Bollywoodata
R
false
false
1,231
r
# Sample script to scrape table from webpage library(rvest) # Load `rvest` package library(dplyr) # Load `dplyr` pacakge library(stringr) # Load `stringr` package setwd("~/Documents/DA/Projects/Project1/actresses/") # Set Working directory file_url <- "https://en.wikipedia.org/wiki/Tina_Ambani" # Assign the wi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lohLogistic.R \name{getLohProb} \alias{getLohProb} \title{getLohProb} \usage{ getLohProb(s, mod, pos = c("seqnames", "start", "end", "width")) } \arguments{ \item{s}{sample specific dataframe, split from combineSegLohPurity()} \item{mod}{log...
/SchramekLOH/man/getLohProb.Rd
no_license
pughlab/SchramekLOH
R
false
true
427
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lohLogistic.R \name{getLohProb} \alias{getLohProb} \title{getLohProb} \usage{ getLohProb(s, mod, pos = c("seqnames", "start", "end", "width")) } \arguments{ \item{s}{sample specific dataframe, split from combineSegLohPurity()} \item{mod}{log...
library(fGarch) ### Name: volatility-methods ### Title: Extract GARCH Model Volatility ### Aliases: volatility.fGARCH ### Keywords: models ### ** Examples ## Swiss Pension func Index - x = as.timeSeries(data(LPP2005REC)) ## garchFit fit = garchFit(LPP40 ~ garch(1, 1), data = 100*x, trace = FALSE) fit ...
/data/genthat_extracted_code/fGarch/examples/methods-volatility.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
723
r
library(fGarch) ### Name: volatility-methods ### Title: Extract GARCH Model Volatility ### Aliases: volatility.fGARCH ### Keywords: models ### ** Examples ## Swiss Pension func Index - x = as.timeSeries(data(LPP2005REC)) ## garchFit fit = garchFit(LPP40 ~ garch(1, 1), data = 100*x, trace = FALSE) fit ...
pkgload::load_all() options(golem.app.prod = FALSE) shinyroom::run_app()
/tests/testthat/app.R
permissive
igjit/shinyroom
R
false
false
73
r
pkgload::load_all() options(golem.app.prod = FALSE) shinyroom::run_app()
library(hettx) ### Name: plot.RI.R2.result ### Title: Make a plot of the treatment effect R2 estimates ### Aliases: plot.RI.R2.result ### ** Examples df <- make.randomized.dat( 1000, gamma.vec=c(1,1,1,2), beta.vec=c(-1,-1,1,0) ) es <- estimate_systematic( Yobs ~ Z, interaction.formula = ~ A + B, data = df ) r2_out...
/data/genthat_extracted_code/hettx/examples/plot.RI.R2.result.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
348
r
library(hettx) ### Name: plot.RI.R2.result ### Title: Make a plot of the treatment effect R2 estimates ### Aliases: plot.RI.R2.result ### ** Examples df <- make.randomized.dat( 1000, gamma.vec=c(1,1,1,2), beta.vec=c(-1,-1,1,0) ) es <- estimate_systematic( Yobs ~ Z, interaction.formula = ~ A + B, data = df ) r2_out...
twoFCVnonlinear <- function(n,Y,j0,qmf,wc,threshval){ wchard <- wc lenthresh <- length(threshval) n1 <- n/2 wc_odd_lin <- rep(0,n1) wc_even_lin <- rep(0,n1) Y_odd <- Y[seq(1,n,2)] Y_even <- Y[seq(2,n,2)] wc_odd <- FWT_PO(Y_odd,j0,qmf) wc_even <- FWT_PO(Y_even,j0,qmf) hat_s_odd <- matrix(0,nrow=l...
/code/twoFCVnonlinear.R
no_license
fabnavarro/JCAM-2020
R
false
false
1,357
r
twoFCVnonlinear <- function(n,Y,j0,qmf,wc,threshval){ wchard <- wc lenthresh <- length(threshval) n1 <- n/2 wc_odd_lin <- rep(0,n1) wc_even_lin <- rep(0,n1) Y_odd <- Y[seq(1,n,2)] Y_even <- Y[seq(2,n,2)] wc_odd <- FWT_PO(Y_odd,j0,qmf) wc_even <- FWT_PO(Y_even,j0,qmf) hat_s_odd <- matrix(0,nrow=l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/downloadPublicSeries.R \name{downloadPublicSeries} \alias{downloadPublicSeries} \title{Download automatically samples from NCBI/GEO and ArrayExpress public databases.} \usage{ downloadPublicSeries(samplesVector) } \arguments{ \item{samplesVec...
/man/downloadPublicSeries.Rd
no_license
CasedUgr/KnowSeq
R
false
true
919
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/downloadPublicSeries.R \name{downloadPublicSeries} \alias{downloadPublicSeries} \title{Download automatically samples from NCBI/GEO and ArrayExpress public databases.} \usage{ downloadPublicSeries(samplesVector) } \arguments{ \item{samplesVec...
structure(list(cols = list(record_id = structure(list(), class = c("collector_integer", "collector")), redcap_repeat_instrument = structure(list(), class = c("collector_character", "collector")), redcap_repeat_instance = structure(list(), class = c("collector_integer", "collector")), date_enrolled = structure(list(f...
/inst/test-data/specific-redcapr/metadata-coltypes/repeating-instruments.R
permissive
OuhscBbmc/REDCapR
R
false
false
1,354
r
structure(list(cols = list(record_id = structure(list(), class = c("collector_integer", "collector")), redcap_repeat_instrument = structure(list(), class = c("collector_character", "collector")), redcap_repeat_instance = structure(list(), class = c("collector_integer", "collector")), date_enrolled = structure(list(f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_flagdata.R \name{flagdata} \alias{flagdata} \title{Flag Data} \usage{ flagdata(d, cols) } \arguments{ \item{d}{dataframe containing data to be flagged} \item{cols}{vector argument giving column numbers providing location of data to be f...
/man/flagdata.Rd
no_license
nemochina2008/wsdmiscr
R
false
true
459
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_flagdata.R \name{flagdata} \alias{flagdata} \title{Flag Data} \usage{ flagdata(d, cols) } \arguments{ \item{d}{dataframe containing data to be flagged} \item{cols}{vector argument giving column numbers providing location of data to be f...
\name{prothr} \alias{prothr} \docType{data} \title{Liver cirrhosis data - Abnormal prothrombin levels in liver cirrhosis.} \description{A data frame of 488 liver cirrhosis patients from a randomized clinical trial concerning prednisone treatment in these patients. The dataset is in long format. The included variab...
/man/prothr.Rd
no_license
gsoutinho/markovMSM
R
false
false
1,308
rd
\name{prothr} \alias{prothr} \docType{data} \title{Liver cirrhosis data - Abnormal prothrombin levels in liver cirrhosis.} \description{A data frame of 488 liver cirrhosis patients from a randomized clinical trial concerning prednisone treatment in these patients. The dataset is in long format. The included variab...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/animateFX.R \name{animateFX} \alias{animateFX} \title{Animate PITCHf/x} \usage{ animateFX(data, color = "pitch_types", avg.by, point.alpha = 1/3, limitz = c(-3.5, 3.5, 0, 7), flag = FALSE, interval = 0.01, layer = list(), parent =...
/man/animateFX.Rd
no_license
mija12/pitchRx
R
false
false
1,901
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/animateFX.R \name{animateFX} \alias{animateFX} \title{Animate PITCHf/x} \usage{ animateFX(data, color = "pitch_types", avg.by, point.alpha = 1/3, limitz = c(-3.5, 3.5, 0, 7), flag = FALSE, interval = 0.01, layer = list(), parent =...
#' Compute Low Blood Glucose Index #' #' This function computes the low blood glucose index #' #' @param df Data frame read through readfile #' @return A data frame containing both the LBGI and HBGI values #' @export LBGI_HBGI <- function(df) { f = data.frame(log_glucose = log(df$glucose^1.084) - 5.381) f <- dplyr:...
/R/R/LBGI_HBGI.R
permissive
jbpauly/cgmquantify
R
false
false
1,640
r
#' Compute Low Blood Glucose Index #' #' This function computes the low blood glucose index #' #' @param df Data frame read through readfile #' @return A data frame containing both the LBGI and HBGI values #' @export LBGI_HBGI <- function(df) { f = data.frame(log_glucose = log(df$glucose^1.084) - 5.381) f <- dplyr:...
# Exercise-3: Calling built-in functions # Create a variable `my.name` that contains your name my.name <- "Katie" # Create a variable `name.length` that holds how many letters are in your name (use the `nchars()` function) name.length <- 5 # Print the number of letters in your name print(name.length) # Create a v...
/exercise-3/exercise.R
permissive
katiegoulding/module6-functions
R
false
false
1,483
r
# Exercise-3: Calling built-in functions # Create a variable `my.name` that contains your name my.name <- "Katie" # Create a variable `name.length` that holds how many letters are in your name (use the `nchars()` function) name.length <- 5 # Print the number of letters in your name print(name.length) # Create a v...
# source("../lib/vFun.r") # Support Routines # v for Van or Visualize, as you prefer vF2C = function(f) { 5 / 9 * (f - 32) } vC2F = function(c) { 9 / 5 * c + 32 } vMod = function(n, m) { n - m * floor(n/m) } vShell = function(command) {cat(system(command, intern=T), sep='\n')} vShow = function(s,u) ...
/Lecture2/Lecture2.r
no_license
lvwarren/R
R
false
false
10,019
r
# source("../lib/vFun.r") # Support Routines # v for Van or Visualize, as you prefer vF2C = function(f) { 5 / 9 * (f - 32) } vC2F = function(c) { 9 / 5 * c + 32 } vMod = function(n, m) { n - m * floor(n/m) } vShell = function(command) {cat(system(command, intern=T), sep='\n')} vShow = function(s,u) ...
context("ANOVAs: check that afex_aov return value works") test_that("split-plot produces an afex_aov object without error", { data(obk.long, package = "afex") split_plot1 <- aov_car(value ~ treatment * gender + Error(id/(phase*hour)), data = obk.long, observed = "gender", return = "afex_aov") split_plot2 <- aov...
/tests/testthat/test-afex_aov.R
no_license
ufangYang/afex
R
false
false
4,841
r
context("ANOVAs: check that afex_aov return value works") test_that("split-plot produces an afex_aov object without error", { data(obk.long, package = "afex") split_plot1 <- aov_car(value ~ treatment * gender + Error(id/(phase*hour)), data = obk.long, observed = "gender", return = "afex_aov") split_plot2 <- aov...
#Function: Text to tokens #use spacy: [spacy](https://spacy.io/) and the R package [quanteda](https://quanteda.io/) are used. cooccurence.word.network <- function(language, dataframe, dataframe.text.col, topic.id.number,tokens.lemma, remove.numb,min.nchar, ...
/functions/spacy_cleaning_network.R
no_license
MarkusEckl/Analyse_Selbsthilfeforum
R
false
false
2,904
r
#Function: Text to tokens #use spacy: [spacy](https://spacy.io/) and the R package [quanteda](https://quanteda.io/) are used. cooccurence.word.network <- function(language, dataframe, dataframe.text.col, topic.id.number,tokens.lemma, remove.numb,min.nchar, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hent_data.R \name{hent_produksjon_for_kraftverk} \alias{hent_produksjon_for_kraftverk} \title{Hent kraftproduksjon for ett selskap} \usage{ hent_produksjon_for_kraftverk(df, kraftverk = "Aall-Ulefoss") } \arguments{ \item{df}{data.frame som m...
/man/hent_produksjon_for_kraftverk.Rd
no_license
markusmortensen/verdsettKraftSelskap
R
false
true
670
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hent_data.R \name{hent_produksjon_for_kraftverk} \alias{hent_produksjon_for_kraftverk} \title{Hent kraftproduksjon for ett selskap} \usage{ hent_produksjon_for_kraftverk(df, kraftverk = "Aall-Ulefoss") } \arguments{ \item{df}{data.frame som m...
/Shiny avec ARCHI.R
no_license
Dr-FloF/TP-Plant-Sciences
R
false
false
7,486
r
# Define UI for app that draws a histogram ---- df<-datasets::swiss County<-rownames(df) ui <- fluidPage( # App title ---- titlePanel("Swiss education!"), # Sidebar layout with input and output definitions ---- sidebarLayout( # Sidebar panel for inp...
/ui.R
no_license
GregorMatheis/Data-products-week-4-shiny
R
false
false
1,184
r
# Define UI for app that draws a histogram ---- df<-datasets::swiss County<-rownames(df) ui <- fluidPage( # App title ---- titlePanel("Swiss education!"), # Sidebar layout with input and output definitions ---- sidebarLayout( # Sidebar panel for inp...
#completely taken from dotchart with some minor addition of confidence intervals #July 17, 2016 #input is the mean + standard errors, and (optionally, alpha) "error.dots" <- function (x,var=NULL, se=NULL, head = 12, tail = 12, sort=TRUE,decreasing=FALSE,alpha=.05,eyes=FALSE, min.n = NULL,max.labels =40, labels = NU...
/R/dotchart.psych.r
no_license
Redhat44/psych
R
false
false
6,626
r
#completely taken from dotchart with some minor addition of confidence intervals #July 17, 2016 #input is the mean + standard errors, and (optionally, alpha) "error.dots" <- function (x,var=NULL, se=NULL, head = 12, tail = 12, sort=TRUE,decreasing=FALSE,alpha=.05,eyes=FALSE, min.n = NULL,max.labels =40, labels = NU...
#crea directory necessarie per memorizzare i risultati #se cancella ==TRUE cancella le directory esistenti DIR.RISULTATI<<-"./extraqc_spatial/" creaDirOut<-function(dir.risultati=NULL,lista.directory=NULL,cancella=TRUE){ messaggio.errore(argomento=match.call(),parametri.mai.null=c("dir.risultati","lista.directory"))...
/R/utilitySpatial.R
no_license
scia-ispra/spatialControls
R
false
false
2,123
r
#crea directory necessarie per memorizzare i risultati #se cancella ==TRUE cancella le directory esistenti DIR.RISULTATI<<-"./extraqc_spatial/" creaDirOut<-function(dir.risultati=NULL,lista.directory=NULL,cancella=TRUE){ messaggio.errore(argomento=match.call(),parametri.mai.null=c("dir.risultati","lista.directory"))...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 28510 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 28510 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#132.A#48.c#.w#9.s#7.asp/ctrl.e#1.a#3.E#132.A#48.c#.w#9.s#7.asp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
730
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 28510 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 28510 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
# String formatting helpers used by `sys$print`. #' Smartly format an object for printing #' #' \code{repr} formats an arbitrary object by choosing the appropriate #' function that either formats or prints it. #' @param x the object to format #' @param sep a separator to use when pasting objects of length \code{> 1}. ...
/format.r
no_license
klmr/sys
R
false
false
2,045
r
# String formatting helpers used by `sys$print`. #' Smartly format an object for printing #' #' \code{repr} formats an arbitrary object by choosing the appropriate #' function that either formats or prints it. #' @param x the object to format #' @param sep a separator to use when pasting objects of length \code{> 1}. ...
getParametersForFileType <- function (fileType = NA, format = NA, singleFile = NA, gzipped = NA, errorIfInvalid = TRUE) { if (is.character(fileType)) typeIndex <- which(.FileTypes$typeNames == toupper(fileType)) else typeIndex <- which(.FileTypes$formatNames == format & .FileTypes$singleFile == ...
/R/files.R
no_license
cran/tractor.base
R
false
false
24,755
r
getParametersForFileType <- function (fileType = NA, format = NA, singleFile = NA, gzipped = NA, errorIfInvalid = TRUE) { if (is.character(fileType)) typeIndex <- which(.FileTypes$typeNames == toupper(fileType)) else typeIndex <- which(.FileTypes$formatNames == format & .FileTypes$singleFile == ...
library(readxl) library(dplyr) library(ggplot2) customer_r <- read_excel("customer_r.xlsx") reservation_r <- read_excel("reservation_r.xlsx") order_info_r <- read_excel("order_info_r.xlsx") item_r <- read_excel("item_r.xlsx") # 열 이름이 대문자로 인식되는 것을 소문자로 변경 colnames(customer_r) <- tolower(colnames(customer_r)) colnames...
/delicious_dish.r
no_license
gohjungho/RBasic
R
false
false
2,608
r
library(readxl) library(dplyr) library(ggplot2) customer_r <- read_excel("customer_r.xlsx") reservation_r <- read_excel("reservation_r.xlsx") order_info_r <- read_excel("order_info_r.xlsx") item_r <- read_excel("item_r.xlsx") # 열 이름이 대문자로 인식되는 것을 소문자로 변경 colnames(customer_r) <- tolower(colnames(customer_r)) colnames...