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
extract.number <- function(x,var.name) { temp <- as.numeric(strsplit(x,split=var.name)[[1]][2]); return(temp) }
/extract.number.r
no_license
ranalut/Scripts
R
false
false
113
r
extract.number <- function(x,var.name) { temp <- as.numeric(strsplit(x,split=var.name)[[1]][2]); return(temp) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotGmap.r \docType{methods} \name{plotGmap} \alias{plotGmap} \alias{plotGmap,SAR-method} \alias{plotGmap,SARSet-method} \title{Plot google earth map} \usage{ plotGmap(object, xlim = c(-5, 5) + mean(object@extent[1:2]), ylim = c(-5, 5) + me...
/man/plotGmap.Rd
no_license
chezulkhairi/ragram
R
false
true
1,955
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotGmap.r \docType{methods} \name{plotGmap} \alias{plotGmap} \alias{plotGmap,SAR-method} \alias{plotGmap,SARSet-method} \title{Plot google earth map} \usage{ plotGmap(object, xlim = c(-5, 5) + mean(object@extent[1:2]), ylim = c(-5, 5) + me...
#' #'@title Extract mean post-molt size from several model runs #' #'@description Function to extract mean post-molt size from several model runs. #' #'@param objs - list of resLst objects #'@param verbose - flag (T/F) to print diagnostic information #' #'@details None. #' #'@return dataframe in caonical format #' #'@e...
/R/extractMDFR.Pop.MeanGrowth.R
permissive
wStockhausen/rCompTCMs
R
false
false
1,047
r
#' #'@title Extract mean post-molt size from several model runs #' #'@description Function to extract mean post-molt size from several model runs. #' #'@param objs - list of resLst objects #'@param verbose - flag (T/F) to print diagnostic information #' #'@details None. #' #'@return dataframe in caonical format #' #'@e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treeplyr_functions.R \name{summarise.treedata} \alias{summarise.treedata} \alias{summarize.treedata} \alias{summarize.grouped_treedata} \alias{summarise.grouped_treedata} \title{Function for summarizing an object of class \code{treedata}} \us...
/man/summarise.treedata.Rd
no_license
cromanpa94/treeplyr
R
false
true
1,697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treeplyr_functions.R \name{summarise.treedata} \alias{summarise.treedata} \alias{summarize.treedata} \alias{summarize.grouped_treedata} \alias{summarise.grouped_treedata} \title{Function for summarizing an object of class \code{treedata}} \us...
#aggiornamento 23 novembre 2018 #Input: # file con dati pm10 estratti dal database postgis con il programma python di interrogazione al database # Output: # - variabili standardizzate # - le distanze invertite e standardizzate # - il parametro data_record_value rinominato in pm10 # - il parametro data_record rinominat...
/pm10_aggiusta_variabili_2.R
no_license
asiispra2015/preparazione_dati_modello
R
false
false
11,959
r
#aggiornamento 23 novembre 2018 #Input: # file con dati pm10 estratti dal database postgis con il programma python di interrogazione al database # Output: # - variabili standardizzate # - le distanze invertite e standardizzate # - il parametro data_record_value rinominato in pm10 # - il parametro data_record rinominat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mplus.R \name{mplusModeler} \alias{mplusModeler} \title{Create, run, and read Mplus models.} \usage{ mplusModeler(object, dataout, modelout, run = 0L, check = FALSE, varwarnings = TRUE, Mplus_command = "Mplus", writeData = c("ifmissing", ...
/man/mplusModeler.Rd
no_license
zhanglj37/MplusAutomation
R
false
true
10,572
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mplus.R \name{mplusModeler} \alias{mplusModeler} \title{Create, run, and read Mplus models.} \usage{ mplusModeler(object, dataout, modelout, run = 0L, check = FALSE, varwarnings = TRUE, Mplus_command = "Mplus", writeData = c("ifmissing", ...
file.location<-"/home/anne/Masterarbeit/Test_pipeline/results/String0.0/" res<-NULL res<-data.table(V1=c(), V2=c(), V3=c(),V4=c(),V5=c()) for(d in dir(file.location)){ print(d) dat<-fread(paste0(file.location, d, "/", "jacccards.txt")) dat$method<-gsub("/home/anne/Masterarbeit/Test_pipeline/results/String0.0/StringD...
/submission/R/legacy/jaccard_comparison.R
no_license
AnneHartebrodt/KPM-scripts
R
false
false
939
r
file.location<-"/home/anne/Masterarbeit/Test_pipeline/results/String0.0/" res<-NULL res<-data.table(V1=c(), V2=c(), V3=c(),V4=c(),V5=c()) for(d in dir(file.location)){ print(d) dat<-fread(paste0(file.location, d, "/", "jacccards.txt")) dat$method<-gsub("/home/anne/Masterarbeit/Test_pipeline/results/String0.0/StringD...
### Exercise 4 ### library("httr") library("jsonlite") library("dplyr") # Use `source()` to load your API key variable. # Make sure you've set your working directory! source("apikey.R") # Define a function that takes in the name of a movie as an argument and returns # a list of information about that movie. The step...
/exercise-4/exercise.R
permissive
kishorevasan/module11-apis
R
false
false
1,670
r
### Exercise 4 ### library("httr") library("jsonlite") library("dplyr") # Use `source()` to load your API key variable. # Make sure you've set your working directory! source("apikey.R") # Define a function that takes in the name of a movie as an argument and returns # a list of information about that movie. The step...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rhandsontable.R \name{rhandsontable} \alias{rhandsontable} \title{Handsontable widget} \usage{ rhandsontable(data, colHeaders, rowHeaders, comments = NULL, useTypes = TRUE, readOnly = NULL, selectCallback = FALSE, width = NULL, height = N...
/man/rhandsontable.Rd
permissive
camold/rhandsontable
R
false
true
2,054
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rhandsontable.R \name{rhandsontable} \alias{rhandsontable} \title{Handsontable widget} \usage{ rhandsontable(data, colHeaders, rowHeaders, comments = NULL, useTypes = TRUE, readOnly = NULL, selectCallback = FALSE, width = NULL, height = N...
context("test-scan_corr") test_that("scan_corr works", { data(iris) # Test if there are numeric variables res <- scan_corr(iris) expect_is(res, class = "data.frame") # Test if there is not numeric variable expect_error(scan_corr(iris["Species"]), "There should be at least 2 numerical colu...
/tests/testthat/test-scan_corr.R
permissive
BenjaminLouis/datascan
R
false
false
339
r
context("test-scan_corr") test_that("scan_corr works", { data(iris) # Test if there are numeric variables res <- scan_corr(iris) expect_is(res, class = "data.frame") # Test if there is not numeric variable expect_error(scan_corr(iris["Species"]), "There should be at least 2 numerical colu...
## Open all necessary libraries library(topicmodels) library(tidytext) library(ggplot2) library(dplyr) library(tidyr) data("AssociatedPress") AssociatedPress ## Note AssociatedPress is in a dtm format. ## Now we set a seed so that the output of the model is predictable: ap_lda <- LDA(AssociatedPress, k = 2, control ...
/DS 4559/RStudio/AP_Topic_Modeling.R
no_license
pleng28/DataScience
R
false
false
1,286
r
## Open all necessary libraries library(topicmodels) library(tidytext) library(ggplot2) library(dplyr) library(tidyr) data("AssociatedPress") AssociatedPress ## Note AssociatedPress is in a dtm format. ## Now we set a seed so that the output of the model is predictable: ap_lda <- LDA(AssociatedPress, k = 2, control ...
######################Meta Data###################### #v8 updates: #Both host and Vector have SI infection model #Infection starts in a single species, simulations are run with an infection start in each host species in a network #Infection simulations record the prevalence of infection at each time step, up to 400...
/host-vector code v10.R
no_license
aqvining/Host-Vector-transmission
R
false
false
19,415
r
######################Meta Data###################### #v8 updates: #Both host and Vector have SI infection model #Infection starts in a single species, simulations are run with an infection start in each host species in a network #Infection simulations record the prevalence of infection at each time step, up to 400...
# # # Covnert the index.Rmd content to an R script for ease of use by the participants. Only # code cells will be converted. # # # library(knitr) purl("index.Rmd") file.rename("index.R","example_code.R")
/render_r_code_from_source.R
no_license
moj-analytical-services/ggplotTraining
R
false
false
220
r
# # # Covnert the index.Rmd content to an R script for ease of use by the participants. Only # code cells will be converted. # # # library(knitr) purl("index.Rmd") file.rename("index.R","example_code.R")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/codegurureviewer_operations.R \name{codegurureviewer_disassociate_repository} \alias{codegurureviewer_disassociate_repository} \title{Removes the association between Amazon CodeGuru Reviewer and a repository} \usage{ codegurureviewer_disassoc...
/paws/man/codegurureviewer_disassociate_repository.Rd
permissive
sanchezvivi/paws
R
false
true
961
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/codegurureviewer_operations.R \name{codegurureviewer_disassociate_repository} \alias{codegurureviewer_disassociate_repository} \title{Removes the association between Amazon CodeGuru Reviewer and a repository} \usage{ codegurureviewer_disassoc...
## There are two functions here: makeCacheMatrix, and cacheSolve. ## The first one is designed to create an object that can "cache" ## the inverse of any matrix, while the second one is actually able ## to compute the inverse of said matrix. To summarize, if ## Y is a matrix, and Z is the inverse of Y, then ## x <- m...
/cachematrix.R
no_license
jacole3/ProgrammingAssignment2
R
false
false
2,239
r
## There are two functions here: makeCacheMatrix, and cacheSolve. ## The first one is designed to create an object that can "cache" ## the inverse of any matrix, while the second one is actually able ## to compute the inverse of said matrix. To summarize, if ## Y is a matrix, and Z is the inverse of Y, then ## x <- m...
%% File Name: data.melab.Rd %% File Version: 0.16 \name{data.melab} \alias{data.melab} \docType{data} \title{ MELAB Data (Li, 2011) } \description{ This is a simulated dataset according to the MELAB reading study (Li, 2011; Li & Suen, 2013). Li (2011) investigated the Fusion model (RUM model) for calib...
/CDM/man/data.melab.Rd
no_license
akhikolla/InformationHouse
R
false
false
4,265
rd
%% File Name: data.melab.Rd %% File Version: 0.16 \name{data.melab} \alias{data.melab} \docType{data} \title{ MELAB Data (Li, 2011) } \description{ This is a simulated dataset according to the MELAB reading study (Li, 2011; Li & Suen, 2013). Li (2011) investigated the Fusion model (RUM model) for calib...
####start the project library("workflowr") wflow_status() ############ wflow_git_config(user.name = "baigal628", user.email = "gali.bai@hotmail.com") wflow_use_github("baigal628") ################# wflow_build() wflow_publish(c("analysis/multi-scatac_stepbystep.Rmd*", "docs/assets/*"), "Fix samples.json ...
/code/Basic_Operations.R
no_license
baigal628/MAESTRO_documentation
R
false
false
536
r
####start the project library("workflowr") wflow_status() ############ wflow_git_config(user.name = "baigal628", user.email = "gali.bai@hotmail.com") wflow_use_github("baigal628") ################# wflow_build() wflow_publish(c("analysis/multi-scatac_stepbystep.Rmd*", "docs/assets/*"), "Fix samples.json ...
#' @title Save tables #' #' @description #' Saves object to a tables file #' #' @param object object to save tables #' @param ... further arguments passed to or from other methods. #' @return Save object as a tables. #' @export save_tables <- function(object, ...) { UseMethod("save_tables", object) } #' @title Save ...
/R/save-tables.r
no_license
poissonconsulting/poiscon
R
false
false
1,122
r
#' @title Save tables #' #' @description #' Saves object to a tables file #' #' @param object object to save tables #' @param ... further arguments passed to or from other methods. #' @return Save object as a tables. #' @export save_tables <- function(object, ...) { UseMethod("save_tables", object) } #' @title Save ...
testlist <- list(hi = 3.66333280346957e+228, lo = 3.63202011352121e+228, mu = 9.28575648727725e+242, sig = 6.44220912481073e+170) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610047185-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
191
r
testlist <- list(hi = 3.66333280346957e+228, lo = 3.63202011352121e+228, mu = 9.28575648727725e+242, sig = 6.44220912481073e+170) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
### 求预测结果矩阵 ### INPUT ## inputMat 输入矩阵,行数为样本数,列数为输入向量的长度 ## centerMat 隐含层节点中心坐标矩阵,行数为隐含层节点数目,列数为输入向量的长度 ## sigmaMat 隐含层节点RBF宽度矩阵,行数为隐含层节点数目,列数为1 ## weightMat 隐含层到输出层的权重矩阵,行数为(隐含层节点数目+1),1对应阈值权重,列数为1 ## obsMat 观测结果矩阵,行数为样本数,列数为输出向量的长度 ### OUTPUT ## $predMat 预测结果矩阵,行数为样本数,列数为输出向量的长度 getPredictionResult <- function(inputM...
/SDF/getPredictionResult.R
no_license
JGW-JGW/EMD-PSO-ANN
R
false
false
1,287
r
### 求预测结果矩阵 ### INPUT ## inputMat 输入矩阵,行数为样本数,列数为输入向量的长度 ## centerMat 隐含层节点中心坐标矩阵,行数为隐含层节点数目,列数为输入向量的长度 ## sigmaMat 隐含层节点RBF宽度矩阵,行数为隐含层节点数目,列数为1 ## weightMat 隐含层到输出层的权重矩阵,行数为(隐含层节点数目+1),1对应阈值权重,列数为1 ## obsMat 观测结果矩阵,行数为样本数,列数为输出向量的长度 ### OUTPUT ## $predMat 预测结果矩阵,行数为样本数,列数为输出向量的长度 getPredictionResult <- function(inputM...
## code to prepare `wi_voterfile_sample` dataset goes here wi_data <- readRDS("data-raw/wi_voterfile_sample.rds") wi_data <- subset(wi_data, select=c(lastname,county,zcta5)) usethis::use_data(wi_data, overwrite = TRUE)
/zipWRUext2/data-raw/wi_voterfile_sample.R
no_license
ckann10/zipWRUext
R
false
false
219
r
## code to prepare `wi_voterfile_sample` dataset goes here wi_data <- readRDS("data-raw/wi_voterfile_sample.rds") wi_data <- subset(wi_data, select=c(lastname,county,zcta5)) usethis::use_data(wi_data, overwrite = TRUE)
% Generated by roxygen2 (4.0.2): do not edit by hand \name{cat} \alias{cat} \alias{cat_} \alias{cat_aliases} \alias{cat_allocation} \alias{cat_count} \alias{cat_fielddata} \alias{cat_health} \alias{cat_indices} \alias{cat_master} \alias{cat_nodes} \alias{cat_pending_tasks} \alias{cat_plugins} \alias{cat_recovery} \alia...
/man/cat.Rd
permissive
toledobastos/elastic
R
false
false
2,202
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{cat} \alias{cat} \alias{cat_} \alias{cat_aliases} \alias{cat_allocation} \alias{cat_count} \alias{cat_fielddata} \alias{cat_health} \alias{cat_indices} \alias{cat_master} \alias{cat_nodes} \alias{cat_pending_tasks} \alias{cat_plugins} \alias{cat_recovery} \alia...
## Esta funcion permite guardar la matriz de manera que pueda ser utilizada ## posteriormente en la siguiente funcion, la forma en la que funciona es que ## aloja el data.frame o la matriz de interes y le aplica la transformacion ## deseada, en este caso, la inversa de una matriz. makeCacheMatrix <- function(x=matrix...
/cachematrix.R
no_license
greytomate/ProgrammingAssignment2
R
false
false
1,015
r
## Esta funcion permite guardar la matriz de manera que pueda ser utilizada ## posteriormente en la siguiente funcion, la forma en la que funciona es que ## aloja el data.frame o la matriz de interes y le aplica la transformacion ## deseada, en este caso, la inversa de una matriz. makeCacheMatrix <- function(x=matrix...
# install packages -------------------------------------------------------------- if(!(require(plyr))) install.packages("plyr"); library(plyr) if(!(require(dplyr))) install.packages("dplyr"); library(dplyr) if(!(require(ngram))) install.packages("ngram"); library(ngram) if(!(require(ggplot2))) install.packages("ggplo...
/server.R
no_license
jherold2/GOPDebateApp
R
false
false
2,512
r
# install packages -------------------------------------------------------------- if(!(require(plyr))) install.packages("plyr"); library(plyr) if(!(require(dplyr))) install.packages("dplyr"); library(dplyr) if(!(require(ngram))) install.packages("ngram"); library(ngram) if(!(require(ggplot2))) install.packages("ggplo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oauth2_objects.R \name{Jwk} \alias{Jwk} \title{Google OAuth2 API Objects Obtains end-user authorization grants for use with other Google APIs.} \usage{ Jwk(Jwk.keys = NULL, keys = NULL) } \arguments{ \item{Jwk.keys}{The \link{Jwk.keys} objec...
/googleoauth2v2.auto/man/Jwk.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
838
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oauth2_objects.R \name{Jwk} \alias{Jwk} \title{Google OAuth2 API Objects Obtains end-user authorization grants for use with other Google APIs.} \usage{ Jwk(Jwk.keys = NULL, keys = NULL) } \arguments{ \item{Jwk.keys}{The \link{Jwk.keys} objec...
#' Predicting label rankings based on the naive Bayes ranking model #' #' This function predicts the rankings given prior and conditional probabilities obtained from \code{model_nbr} #' @param x is \code{n x p} matrix of \code{n} observations and \code{p} training attributes and can have continuous or nominal values....
/labelrank/R/nb_rank.R
no_license
ingted/R-Examples
R
false
false
1,683
r
#' Predicting label rankings based on the naive Bayes ranking model #' #' This function predicts the rankings given prior and conditional probabilities obtained from \code{model_nbr} #' @param x is \code{n x p} matrix of \code{n} observations and \code{p} training attributes and can have continuous or nominal values....
#' Tag clusters by depth #' Iterate through depth levels #' For a given depth level, find all the nodes of the tree that are either #' nodes at that depth or leaves higher up the tree. Tag them as clusters #' #' @param dtTreeSummary todo #' @param dtDataset todo #' @param lTree todo #' #' @return todo #' #' @import dat...
/R/TagClustersByDepth.R
permissive
thecomeonman/CURD
R
false
false
1,629
r
#' Tag clusters by depth #' Iterate through depth levels #' For a given depth level, find all the nodes of the tree that are either #' nodes at that depth or leaves higher up the tree. Tag them as clusters #' #' @param dtTreeSummary todo #' @param dtDataset todo #' @param lTree todo #' #' @return todo #' #' @import dat...
if(!"shiny" %in% installed.packages()) { install.packages("shiny") } library(shiny) if(!"devtools" %in% installed.packages()) { install.packages("devtools") } library(devtools) if(!"huge" %in% installed.packages()) { install.packages("huge") } library(huge) if(!"qgraph" %in% installed.packages()) { instal...
/runapp.R
no_license
JolandaKossakowski/NetworkApp
R
false
false
1,593
r
if(!"shiny" %in% installed.packages()) { install.packages("shiny") } library(shiny) if(!"devtools" %in% installed.packages()) { install.packages("devtools") } library(devtools) if(!"huge" %in% installed.packages()) { install.packages("huge") } library(huge) if(!"qgraph" %in% installed.packages()) { instal...
## Getting full dataset setwd(paste("C:/Personal/Data Scientist/Exploratory Data Analysis/Week1/")) data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format...
/Plot2.R
no_license
binoym/bmathu
R
false
false
735
r
## Getting full dataset setwd(paste("C:/Personal/Data Scientist/Exploratory Data Analysis/Week1/")) data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format...
\name{Compute_S01} \alias{Compute_S01} \title{ S0 and S1 } \description{ This function computes S0 and S1 in counting process. } \usage{ Compute_S01(est, x, y, kk, event, group, save, group.in.train) } \arguments{ \item{est}{ The model fitting details from the k^th cause-specific hazards model. } \item{x}{ The des...
/man/Compute_S01.Rd
no_license
cran/CompetingRisk
R
false
false
1,580
rd
\name{Compute_S01} \alias{Compute_S01} \title{ S0 and S1 } \description{ This function computes S0 and S1 in counting process. } \usage{ Compute_S01(est, x, y, kk, event, group, save, group.in.train) } \arguments{ \item{est}{ The model fitting details from the k^th cause-specific hazards model. } \item{x}{ The des...
#Case study I: no true positives set.seed(1010093) pValues <- rep(NA,1000) for(i in 1:1000){ y <- rnorm(20) x <- rnorm(20) pValues[i] <- summary(lm(y ~ x))$coeff[2,4] } #Case study I: no true positives # Controls false positive rate sum(pValues < 0.05) # Controls FWER sum(p.adjust(pValues,met...
/Course 6- Statistical Inference/Week 4/4.2 Multiple.R
no_license
shovitraj/DataScienceSpecialization-JHU
R
false
false
1,167
r
#Case study I: no true positives set.seed(1010093) pValues <- rep(NA,1000) for(i in 1:1000){ y <- rnorm(20) x <- rnorm(20) pValues[i] <- summary(lm(y ~ x))$coeff[2,4] } #Case study I: no true positives # Controls false positive rate sum(pValues < 0.05) # Controls FWER sum(p.adjust(pValues,met...
#' Get LD matrix for list of SNPs #' #' This function takes a list of SNPs and searches for them in a specified super-population in the 1000 Genomes phase 3 reference panel. #' It then creates an LD matrix of r values (signed, and not squared). #' All LD values are with respect to the major alleles in the 1000G dataset...
/R/ld_matrix.R
permissive
mcgml/ieugwasr
R
false
false
4,585
r
#' Get LD matrix for list of SNPs #' #' This function takes a list of SNPs and searches for them in a specified super-population in the 1000 Genomes phase 3 reference panel. #' It then creates an LD matrix of r values (signed, and not squared). #' All LD values are with respect to the major alleles in the 1000G dataset...
# requires "Rothpearl, A. B., Mohs, R. C., & Davis, K. L. (1981)" - raw data file library(readr) RawData <- read_csv("FILE LOCATION") # replace "FILE LOCATION" with file location (i.e., "Rothpearl, A. B., Mohs, R. C., & Davis, K. L. (1981)") avaliable on the OSF where the current file was downloaded quantilesPowerVal...
/Analysis/Reperformed data analysis/Rothpearl, A. B., Mohs, R. C., & Davis, K. L. (1981)Reanalysis.R
no_license
fsingletonthorn/MetaAnalysisOfPowerEstimationStudies
R
false
false
600
r
# requires "Rothpearl, A. B., Mohs, R. C., & Davis, K. L. (1981)" - raw data file library(readr) RawData <- read_csv("FILE LOCATION") # replace "FILE LOCATION" with file location (i.e., "Rothpearl, A. B., Mohs, R. C., & Davis, K. L. (1981)") avaliable on the OSF where the current file was downloaded quantilesPowerVal...
## ----nomessages, echo = FALSE-------------------------------------------- knitr::opts_chunk$set( warning = FALSE, message = FALSE, fig.height = 5, fig.width = 5 ) options(digits=4) par(mar=c(5,4,1,1)+.1) ## ------------------------------------------------------------------------ library(matlib) ## ---------...
/docs/articles/ginv.R
no_license
friendly/matlib
R
false
false
1,642
r
## ----nomessages, echo = FALSE-------------------------------------------- knitr::opts_chunk$set( warning = FALSE, message = FALSE, fig.height = 5, fig.width = 5 ) options(digits=4) par(mar=c(5,4,1,1)+.1) ## ------------------------------------------------------------------------ library(matlib) ## ---------...
#UI--------------------------------- alter_dictioUI <- function(id, dictionary_id) { ns <- NS(id) tagList( selectInput( ns("dictio"), label = "Dictionary", choices = c("Press Update") ), actionButton(ns("refresh_dictionaries"), label = "Update Dictionaries"), actionButton(ns("dele...
/Module/Alter_Dic_modul.R
no_license
Knowerbescheidt/Text-Ming-Dashboard
R
false
false
2,415
r
#UI--------------------------------- alter_dictioUI <- function(id, dictionary_id) { ns <- NS(id) tagList( selectInput( ns("dictio"), label = "Dictionary", choices = c("Press Update") ), actionButton(ns("refresh_dictionaries"), label = "Update Dictionaries"), actionButton(ns("dele...
## Cicero pipeline to predict cis-regulatory interactions library(cicero) library(monocle) library(ChIPseeker) library(TxDb.Mmusculus.UCSC.mm10.knownGene) library(org.Mm.eg.db) library(BSgenome.Mmusculus.UCSC.mm10) library(Gviz) library(SnapATAC) library(GenomicRanges) ## Generate a function to run Cicero cicero_conn...
/R/Cicero_pipeline.R
no_license
shuzwang/P2_cochlea
R
false
false
9,008
r
## Cicero pipeline to predict cis-regulatory interactions library(cicero) library(monocle) library(ChIPseeker) library(TxDb.Mmusculus.UCSC.mm10.knownGene) library(org.Mm.eg.db) library(BSgenome.Mmusculus.UCSC.mm10) library(Gviz) library(SnapATAC) library(GenomicRanges) ## Generate a function to run Cicero cicero_conn...
#로지스틱 회귀분석 - 림프절이 전립선 암에 대해 양성 여부를 예측하는가 library(boot) data(nodal) a<-c(2,4,6,7) #필요한 열만 추출 data<-nodal[,a] glmModel <- glm(r~., data = data, family = "binomial") summary(glmModel)
/adsp 실습 및 연습/로지스틱 회귀분석 초급예제.R
no_license
chaerui7967/Practice_R
R
false
false
264
r
#로지스틱 회귀분석 - 림프절이 전립선 암에 대해 양성 여부를 예측하는가 library(boot) data(nodal) a<-c(2,4,6,7) #필요한 열만 추출 data<-nodal[,a] glmModel <- glm(r~., data = data, family = "binomial") summary(glmModel)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary-ncvreg.R \name{summary.ncvreg} \alias{summary.ncvreg} \alias{print.summary.ncvreg} \title{Summary method for ncvreg objects} \usage{ \method{summary}{ncvreg}(object, lambda, which, number, cutoff, sigma, ...) \method{print}{summary.n...
/man/summary.ncvreg.Rd
no_license
vishalbelsare/ncvreg
R
false
true
4,671
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary-ncvreg.R \name{summary.ncvreg} \alias{summary.ncvreg} \alias{print.summary.ncvreg} \title{Summary method for ncvreg objects} \usage{ \method{summary}{ncvreg}(object, lambda, which, number, cutoff, sigma, ...) \method{print}{summary.n...
######################################################################## ########### Z- Statistic Calcuation #################################### ######################################################################## # Created Function to calculate Z-Statistic for First Order and Second Order Digits zScoring ...
/Functions Created to understand the BenfordsLaw.R
no_license
MithraChintha/FraudDetectionBenfordsLaw
R
false
false
10,611
r
######################################################################## ########### Z- Statistic Calcuation #################################### ######################################################################## # Created Function to calculate Z-Statistic for First Order and Second Order Digits zScoring ...
bdd4286a703720996bd396de69cb1666 dungeon_i25-m12-u3-v0.pddl_planlen=65.qdimacs 46739 439997
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i25-m12-u3-v0.pddl_planlen=65/dungeon_i25-m12-u3-v0.pddl_planlen=65.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
91
r
bdd4286a703720996bd396de69cb1666 dungeon_i25-m12-u3-v0.pddl_planlen=65.qdimacs 46739 439997
library(tidyverse) library(ggplot2) #devtools::install_github("hrbrmstr/waffle") library(waffle) library(cowplot) library(extrafont) library(stringr) library(magrittr) library(stringi) #data departures <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04...
/gender CEO.R
no_license
danidlsa/datosdemiercoles
R
false
false
4,010
r
library(tidyverse) library(ggplot2) #devtools::install_github("hrbrmstr/waffle") library(waffle) library(cowplot) library(extrafont) library(stringr) library(magrittr) library(stringi) #data departures <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04...
## setwd, modify according to your needs setwd("~/OneDrive/TopicModellingR/CartoonTM") ## libraries needed library(tm) library(XML) library(RCurl) library(plyr) library(lda) library(LDAvis) library(compiler) ## optional library(RColorBrewer) library(rCharts) library(d3heatmap) ## User settings: K <- 12 G <- 5000...
/CartoonTM/INNZEQSelectTM.R
no_license
anhnguyendepocen/TopicModellingR
R
false
false
7,579
r
## setwd, modify according to your needs setwd("~/OneDrive/TopicModellingR/CartoonTM") ## libraries needed library(tm) library(XML) library(RCurl) library(plyr) library(lda) library(LDAvis) library(compiler) ## optional library(RColorBrewer) library(rCharts) library(d3heatmap) ## User settings: K <- 12 G <- 5000...
# This part is the same for all plot[i].R # Packages library(lubridate) library(dplyr) # Code data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactors = FALSE) data1 <- tbl_df(data) names <- c("Date", "Time", "GAP", "GRP", ...
/SabatoDeMaioExam/plot2.R
no_license
SabaDeMa/ExData_Plotting1
R
false
false
1,236
r
# This part is the same for all plot[i].R # Packages library(lubridate) library(dplyr) # Code data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactors = FALSE) data1 <- tbl_df(data) names <- c("Date", "Time", "GAP", "GRP", ...
## create a special matrix object, makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinverse<- function(inverse) m <<-inverse getinverse <- function() m list(set = set, get = get, setinverse = se...
/cachematrix.R
no_license
keei/ProgrammingAssignment2
R
false
false
767
r
## create a special matrix object, makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setinverse<- function(inverse) m <<-inverse getinverse <- function() m list(set = set, get = get, setinverse = se...
# According to Kristoufek 2013 the data comes from # http://stats.grok.se . However, the data ends at # Jan 2016. # So the rest of the data are extracted from: # https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&start=2015-07-01&end=2016-09-27&pages=Bitcoin library(jsonlite)...
/wiki_view.R
no_license
Gilg4mesh/Reproduce-The-Economics-of-BitCoin-Price-Formation
R
false
false
2,510
r
# According to Kristoufek 2013 the data comes from # http://stats.grok.se . However, the data ends at # Jan 2016. # So the rest of the data are extracted from: # https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&start=2015-07-01&end=2016-09-27&pages=Bitcoin library(jsonlite)...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 collapseData <- function(mat_list, colnames) { .Call('_openCyto_collapseData', PACKAGE = 'openCyto', mat_list, colnames) }
/R/RcppExports.R
no_license
biodev/openCyto
R
false
false
255
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 collapseData <- function(mat_list, colnames) { .Call('_openCyto_collapseData', PACKAGE = 'openCyto', mat_list, colnames) }
######################## ## Benjamin Haibe-Kains ## Code under License Artistic-2.0 ## September 15, 2013 ######################## # rm(list=ls()) datapath <- file.path("data", "CCLE") rawpath <- file.path(datapath, "raw_ge") if(!file.exists(rawpath)) { dir.create(rawpath, showWarnings=FALSE, recursive=TRUE) } req...
/CDRUG_normalization_ccle.R
no_license
bhklab/cdrug
R
false
false
29,037
r
######################## ## Benjamin Haibe-Kains ## Code under License Artistic-2.0 ## September 15, 2013 ######################## # rm(list=ls()) datapath <- file.path("data", "CCLE") rawpath <- file.path(datapath, "raw_ge") if(!file.exists(rawpath)) { dir.create(rawpath, showWarnings=FALSE, recursive=TRUE) } req...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' @title title #' #' @description #' description #' #' #' @param x x #' #' @details #' #' details #' #' @return a vector #' #' #' @author Raphaël Jauslin \email{raphael.jauslin@@unine.ch} #' #...
/R/RcppExports.R
no_license
RJauslin/tinyFF
R
false
false
6,301
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' @title title #' #' @description #' description #' #' #' @param x x #' #' @details #' #' details #' #' @return a vector #' #' #' @author Raphaël Jauslin \email{raphael.jauslin@@unine.ch} #' #...
#!/usr/bin/env Rscript # run absCNseq suppressPackageStartupMessages(library(optparse)); suppressPackageStartupMessages(library(absCNseq)); suppressPackageStartupMessages(library(VariantAnnotation)); #options(warn = -1, error = quote({ traceback(2); q('no', status = 1) })) optionList <- list( make_option(c('-t', '-...
/copy_number/absCNseq.R
no_license
charlottekyng/usb-modules
R
false
false
3,300
r
#!/usr/bin/env Rscript # run absCNseq suppressPackageStartupMessages(library(optparse)); suppressPackageStartupMessages(library(absCNseq)); suppressPackageStartupMessages(library(VariantAnnotation)); #options(warn = -1, error = quote({ traceback(2); q('no', status = 1) })) optionList <- list( make_option(c('-t', '-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heroku_postgres_prep.R \name{heroku_postgres_inserts} \alias{heroku_postgres_inserts} \title{heroku_postgres_inserts} \usage{ heroku_postgres_inserts() } \value{ the connection } \description{ connect to our Heroku Postgres instance }
/man/heroku_postgres_inserts.Rd
permissive
hjmbigdatabowl/bdb2021
R
false
true
313
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/heroku_postgres_prep.R \name{heroku_postgres_inserts} \alias{heroku_postgres_inserts} \title{heroku_postgres_inserts} \usage{ heroku_postgres_inserts() } \value{ the connection } \description{ connect to our Heroku Postgres instance }
# DWD Daten mit R runterladen, Wetter und Klimadaten in R # Deutscher Wetterdienst R Daten download Klimastationen # Weather Data Germany download with R, Climate Data Germany # #' Download data from the DWD CDC FTP Server #' #' Get climate data from the German Weather Service (DWD) FTP-server. #' The desired .zip (or...
/R/dataDWD.R
no_license
knut0815/rdwd
R
false
false
8,865
r
# DWD Daten mit R runterladen, Wetter und Klimadaten in R # Deutscher Wetterdienst R Daten download Klimastationen # Weather Data Germany download with R, Climate Data Germany # #' Download data from the DWD CDC FTP Server #' #' Get climate data from the German Weather Service (DWD) FTP-server. #' The desired .zip (or...
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.7895051881149e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704e...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615768359-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,802
r
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.7895051881149e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704e...
\name{treated} \alias{treated} \title{A metabolomics study with paired observations.} \description{A data frame with data collected from several subjects before and after a specific treatment.} \usage{data(treated)} \keyword{datasets} \author{ Alysha M De Livera, Jairus B Bowne} \examples{ dat...
/man/treated.rd
no_license
lixia666/metabolomics
R
false
false
348
rd
\name{treated} \alias{treated} \title{A metabolomics study with paired observations.} \description{A data frame with data collected from several subjects before and after a specific treatment.} \usage{data(treated)} \keyword{datasets} \author{ Alysha M De Livera, Jairus B Bowne} \examples{ dat...
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(5.8465580104391e+131, 8.58723253387104e+131, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
/palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612988762-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
504
r
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(5.8465580104391e+131, 8.58723253387104e+131, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
\name{ani.record} \alias{ani.record} \alias{ani.replay} \title{Record and replay animations} \usage{ ani.record(reset = FALSE, replay.cur = FALSE) ani.replay(list) } \arguments{ \item{reset}{if \code{TRUE}, the recording list will be cleared, otherwise new plots will be appended to the existing list of recorded ...
/man/ani.record.Rd
no_license
talgalili/animation
R
false
false
4,105
rd
\name{ani.record} \alias{ani.record} \alias{ani.replay} \title{Record and replay animations} \usage{ ani.record(reset = FALSE, replay.cur = FALSE) ani.replay(list) } \arguments{ \item{reset}{if \code{TRUE}, the recording list will be cleared, otherwise new plots will be appended to the existing list of recorded ...
#Oppgave 1 #a) x=c(1:1000) y=sample(x,100) #b) mean(y[1:10]) #c) y[-5] #d) y[length(y)]>500 #e) sum(y<10) #f) M=matrix(nrow=10,ncol=2) #g) M[2,1]=2 #h) for (r in 1:nrow(M)){ for(c in 1:ncol(M)){ M[r,c]=(r*c) } } #i) myFunc = function(M){ for (r in 1:nrow(M)){ for(c in 1:ncol(M)){ if (r*c>15)...
/Exercise0.R
no_license
MajaLundi/DataScienceExercises
R
false
false
3,051
r
#Oppgave 1 #a) x=c(1:1000) y=sample(x,100) #b) mean(y[1:10]) #c) y[-5] #d) y[length(y)]>500 #e) sum(y<10) #f) M=matrix(nrow=10,ncol=2) #g) M[2,1]=2 #h) for (r in 1:nrow(M)){ for(c in 1:ncol(M)){ M[r,c]=(r*c) } } #i) myFunc = function(M){ for (r in 1:nrow(M)){ for(c in 1:ncol(M)){ if (r*c>15)...
# lista 1 categorizados # Capitulo 2 # Exercício 5 # item a Obitos <- c(42,22,29,93) Nao_obitos <- c(161,181,176,518) Total <- c(203,203,205,611) Tabela <- data.frame(Obitos,Nao_obitos,Total) colnames(Tabela) <- c("Obitos","Não obitos","Total") rownames(Tabela) <- c("Medicamentosa","Cirurgia","Angioplastia","Total"...
/Lista 1/lista 1.R
no_license
guilherme1708/Categorizados
R
false
false
2,646
r
# lista 1 categorizados # Capitulo 2 # Exercício 5 # item a Obitos <- c(42,22,29,93) Nao_obitos <- c(161,181,176,518) Total <- c(203,203,205,611) Tabela <- data.frame(Obitos,Nao_obitos,Total) colnames(Tabela) <- c("Obitos","Não obitos","Total") rownames(Tabela) <- c("Medicamentosa","Cirurgia","Angioplastia","Total"...
list( "origin" = bulk_origin, "peer" = bulk_peer, "asn" = bulk_origin_asn, "v4_bogons" = ipv4_bogons, "v6_bogons" = ipv6_bogons, "hash" = malware_hash ) -> valid_flushed #' Flush cached results #' #' Within a given R session, it will be highly unlikely that API responses #' to calls to Team Cymru services ...
/R/zflush.r
no_license
hrbrmstr/cymruservices
R
false
false
2,276
r
list( "origin" = bulk_origin, "peer" = bulk_peer, "asn" = bulk_origin_asn, "v4_bogons" = ipv4_bogons, "v6_bogons" = ipv6_bogons, "hash" = malware_hash ) -> valid_flushed #' Flush cached results #' #' Within a given R session, it will be highly unlikely that API responses #' to calls to Team Cymru services ...
library(dplyr) library(data.table) library(reshape2) #################################################################################### # DOWNLOAD FILES #################################################################################### # download zip file & unzip it: zip_url <- "https://d396qusza40orc.cloudfront....
/run_analysis.R
no_license
Mashimash/Getting_and_Cleaning_Data
R
false
false
5,074
r
library(dplyr) library(data.table) library(reshape2) #################################################################################### # DOWNLOAD FILES #################################################################################### # download zip file & unzip it: zip_url <- "https://d396qusza40orc.cloudfront....
.simpleCap <- function(x) { paste0(toupper(substr(x, 1,1)), substr(x, 2, 1000000L), collapse=" ") } ### bootMer() --- <==> (TODO: semi-*)parametric bootstrap ### ------------------------------------------------------- ## Doc: show how this is equivalent - but faster than ## boot(*, R = nsim, sim = "parametric", ra...
/R/bootMer.R
no_license
ggrothendieck/lme4
R
false
false
11,819
r
.simpleCap <- function(x) { paste0(toupper(substr(x, 1,1)), substr(x, 2, 1000000L), collapse=" ") } ### bootMer() --- <==> (TODO: semi-*)parametric bootstrap ### ------------------------------------------------------- ## Doc: show how this is equivalent - but faster than ## boot(*, R = nsim, sim = "parametric", ra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysis_functions.R \name{return_num_moves} \alias{return_num_moves} \title{Return the number of moves in a game} \usage{ return_num_moves(moves_string) } \arguments{ \item{moves_string}{A character vector of chess Moves data in PGN notation...
/man/return_num_moves.Rd
no_license
JaseZiv/chessR
R
false
true
665
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysis_functions.R \name{return_num_moves} \alias{return_num_moves} \title{Return the number of moves in a game} \usage{ return_num_moves(moves_string) } \arguments{ \item{moves_string}{A character vector of chess Moves data in PGN notation...
#' Summarize probesets belonging to the same gene #' #' The \code{summarizeRows} function summarizes (collapses) rows of a numeric #' matrix by calculating summarizing statistics of rows that belong to the same #' factor level. #' #' \code{summarizeRows} is called internally by \code{summarizeProbesets} to #' collaps...
/R/summarizeProbesets.R
no_license
bedapub/ribiosExpression
R
false
false
5,059
r
#' Summarize probesets belonging to the same gene #' #' The \code{summarizeRows} function summarizes (collapses) rows of a numeric #' matrix by calculating summarizing statistics of rows that belong to the same #' factor level. #' #' \code{summarizeRows} is called internally by \code{summarizeProbesets} to #' collaps...
rerefact=function(n.factor, n.eta, n.var, pop_lambda, sample_lambda) { set.seed(1234) # set.seed is used to control for the order (index) of possible permutation. s_n.factor=permn(n.factor) #s_n.factor is the total number of permutation by the order of n.factor. # s_n.factor perm_order=length(s_n.factor) #...
/REREFACT/R/rerefact.R
no_license
ingted/R-Examples
R
false
false
5,940
r
rerefact=function(n.factor, n.eta, n.var, pop_lambda, sample_lambda) { set.seed(1234) # set.seed is used to control for the order (index) of possible permutation. s_n.factor=permn(n.factor) #s_n.factor is the total number of permutation by the order of n.factor. # s_n.factor perm_order=length(s_n.factor) #...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/upper_aerodigestive_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.04,family="gaussian",standardize=TRUE) sink('./upper_aero...
/Model/EN/Classifier/upper_aerodigestive_tract/upper_aerodigestive_tract_019.R
no_license
esbgkannan/QSMART
R
false
false
387
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/upper_aerodigestive_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.04,family="gaussian",standardize=TRUE) sink('./upper_aero...
\name{Update_beta} \alias{Update_beta} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Dirichlet process updating for one iteration (based on Neal's 2000 Paper, Algorithm 3) } \description{ Update the clustering assignment list cl = {K, N, C} } \usage{ Update_beta(cl, x0, alpha, beta, m0 = 2) }...
/BOISE/man/Update_beta.Rd
no_license
wiscstatman/esdd
R
false
false
1,884
rd
\name{Update_beta} \alias{Update_beta} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Dirichlet process updating for one iteration (based on Neal's 2000 Paper, Algorithm 3) } \description{ Update the clustering assignment list cl = {K, N, C} } \usage{ Update_beta(cl, x0, alpha, beta, m0 = 2) }...
library(data.table) setwd("D:/datasciencecoursera/Exploratory/project1/data/ExData_Plotting1") powerDT <- data.table::fread(input = "household_power_consumption.txt", na.strings = "?") powerDT[, Global_active_power := lapply(.SD, as.numeric), .SDcols = c("Global_active_power")] powerDT[, dateTime := as.POSIXct(pa...
/plot3.R
no_license
Grissel-99/ExData_Plotting1
R
false
false
877
r
library(data.table) setwd("D:/datasciencecoursera/Exploratory/project1/data/ExData_Plotting1") powerDT <- data.table::fread(input = "household_power_consumption.txt", na.strings = "?") powerDT[, Global_active_power := lapply(.SD, as.numeric), .SDcols = c("Global_active_power")] powerDT[, dateTime := as.POSIXct(pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model.R \name{evaluate_index} \alias{evaluate_index} \title{Compute all index values} \usage{ evaluate_index(model, lhoods) } \arguments{ \item{model}{A \code{bru_model} object} \item{lhoods}{A \code{bru_like_list} object. Deprecated and ign...
/man/evaluate_index.Rd
no_license
cran/inlabru
R
false
true
645
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model.R \name{evaluate_index} \alias{evaluate_index} \title{Compute all index values} \usage{ evaluate_index(model, lhoods) } \arguments{ \item{model}{A \code{bru_model} object} \item{lhoods}{A \code{bru_like_list} object. Deprecated and ign...
# # name: define_indexDog # used emelents: index_dog, index_hh, index_community, index_region, nb_index_dogs # # defines the index dog(s) either by region, community or dog ID (user defined): # definition of the case(es) is hierarchical: if index_dog is defined, all other are useless (not used in the model); # ...
/functions/define_indexDog.r
no_license
salomeduerr/OzRab
R
false
false
4,350
r
# # name: define_indexDog # used emelents: index_dog, index_hh, index_community, index_region, nb_index_dogs # # defines the index dog(s) either by region, community or dog ID (user defined): # definition of the case(es) is hierarchical: if index_dog is defined, all other are useless (not used in the model); # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logabage.camp.R \name{logabage.camp} \alias{logabage.camp} \title{Crea gráficos de descenso de abundancias con la edad} \usage{ logabage.camp( gr, esp, camps, dns = "Porc", plus = 8, cor.time = TRUE, clms = 2, layout = NA ) } ...
/man/logabage.camp.Rd
no_license
Franvgls/CampR
R
false
true
1,883
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/logabage.camp.R \name{logabage.camp} \alias{logabage.camp} \title{Crea gráficos de descenso de abundancias con la edad} \usage{ logabage.camp( gr, esp, camps, dns = "Porc", plus = 8, cor.time = TRUE, clms = 2, layout = NA ) } ...
library(shiny) library(ggmap) library(maptools) library(maps) projections <- c("mercator","cylindrical","sinusoidal","gnomonic") mapWorld <- map_data("world") mp1 <- ggplot(mapWorld, aes(x=long, y=lat, group=group))+ geom_polygon(fill="white", color="black") + coord_map(xlim=c(-180,180), ylim=c(-60, 90)) ui <- ...
/First Assignment.R
no_license
tmh741/615P2
R
false
false
618
r
library(shiny) library(ggmap) library(maptools) library(maps) projections <- c("mercator","cylindrical","sinusoidal","gnomonic") mapWorld <- map_data("world") mp1 <- ggplot(mapWorld, aes(x=long, y=lat, group=group))+ geom_polygon(fill="white", color="black") + coord_map(xlim=c(-180,180), ylim=c(-60, 90)) ui <- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{default_eems_colors} \alias{default_eems_colors} \title{default_eems_colors} \usage{ default_eems_colors() } \value{ a vector of the default eems colors }
/man/default_eems_colors.Rd
permissive
raonyguimaraes/plotmaps
R
false
true
247
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{default_eems_colors} \alias{default_eems_colors} \title{default_eems_colors} \usage{ default_eems_colors() } \value{ a vector of the default eems colors }
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/occ_search.r \name{occ_search} \alias{occ_search} \alias{print.gbif} \title{Search for GBIF occurrences.} \usage{ occ_search(taxonKey = NULL, scientificName = NULL, country = NULL, publishingCountry = NULL, hasCoordinate = NULL, typ...
/man/occ_search.Rd
permissive
poldham/rgbif
R
false
false
25,968
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/occ_search.r \name{occ_search} \alias{occ_search} \alias{print.gbif} \title{Search for GBIF occurrences.} \usage{ occ_search(taxonKey = NULL, scientificName = NULL, country = NULL, publishingCountry = NULL, hasCoordinate = NULL, typ...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{FM_index_permutation} \alias{FM_index_permutation} \title{Calculating Fowlkes-Mallows Index under H0} \usage{ FM_index_permutation(A1_clusters, A2_clusters, warn = TRUE, ...) } \arguments{ \item{A1_clusters}{a numeric vector of cluster grouping (numeric) of ite...
/man/FM_index_permutation.Rd
no_license
xtmgah/dendextend
R
false
false
2,775
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{FM_index_permutation} \alias{FM_index_permutation} \title{Calculating Fowlkes-Mallows Index under H0} \usage{ FM_index_permutation(A1_clusters, A2_clusters, warn = TRUE, ...) } \arguments{ \item{A1_clusters}{a numeric vector of cluster grouping (numeric) of ite...
################################################## ### Understanding Alpha - Significance Testing ### ################################################## library(dplyr) # Set seed for replicability when generating random numbers set.seed(7) ### Parameters to play around with # Set number of iterations for loop (the hi...
/Alpha_SignificanceTesting.R
no_license
kaleyhanrahan/Statistics
R
false
false
2,134
r
################################################## ### Understanding Alpha - Significance Testing ### ################################################## library(dplyr) # Set seed for replicability when generating random numbers set.seed(7) ### Parameters to play around with # Set number of iterations for loop (the hi...
library(mclust) ### Name: summary.MclustBootstrap ### Title: Summary Function for Bootstrap Inference for Gaussian Finite ### Mixture Models ### Aliases: summary.MclustBootstrap print.summary.MclustBootstrap ### Keywords: htest cluster ### ** Examples ## Not run: ##D data(diabetes) ##D X = diabetes[,-1] ##D modC...
/data/genthat_extracted_code/mclust/examples/summary.MclustBootstrap.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
638
r
library(mclust) ### Name: summary.MclustBootstrap ### Title: Summary Function for Bootstrap Inference for Gaussian Finite ### Mixture Models ### Aliases: summary.MclustBootstrap print.summary.MclustBootstrap ### Keywords: htest cluster ### ** Examples ## Not run: ##D data(diabetes) ##D X = diabetes[,-1] ##D modC...
context("test-countdown") test_that("countdown html_dependency", { x <- countdown(1) x_deps <- htmltools::htmlDependencies(x)[[1]] expect_equal(x_deps$name, "countdown") expect_equal(x_deps$script, "countdown.js") expect_equal(x_deps$stylesheet, "countdown.css") expect_true(inherits(x_deps, "html_depende...
/tests/testthat/test-countdown.R
permissive
randPharoah/countdown
R
false
false
5,182
r
context("test-countdown") test_that("countdown html_dependency", { x <- countdown(1) x_deps <- htmltools::htmlDependencies(x)[[1]] expect_equal(x_deps$name, "countdown") expect_equal(x_deps$script, "countdown.js") expect_equal(x_deps$stylesheet, "countdown.css") expect_true(inherits(x_deps, "html_depende...
# Install any required packages # This code came directly from https://stackoverflow.com/questions/38928326/is-there-something-like-requirements-txt-for-r # You should refer to that site. # You should probably also update the URL! pkgLoad <- function( packages = "favourites" ) { if( length( packages ) == 1L && pac...
/accessory/install_packages.R
permissive
kant/hecatomb
R
false
false
924
r
# Install any required packages # This code came directly from https://stackoverflow.com/questions/38928326/is-there-something-like-requirements-txt-for-r # You should refer to that site. # You should probably also update the URL! pkgLoad <- function( packages = "favourites" ) { if( length( packages ) == 1L && pac...
programmer <- list(title = "Senior Programmer", salary = 150000) language <- c("Python", "C", "R") filter <- c(TRUE, FALSE, TRUE) paste("Title: ", programmer$title, "Salary: ", programmer$salary, "Programming Languages: ", (language[filter]))
/midtermJohnsonMattye/johnsonMattyeMidterm2.R
no_license
ninamariepeterson/CS445
R
false
false
243
r
programmer <- list(title = "Senior Programmer", salary = 150000) language <- c("Python", "C", "R") filter <- c(TRUE, FALSE, TRUE) paste("Title: ", programmer$title, "Salary: ", programmer$salary, "Programming Languages: ", (language[filter]))
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "phoneme") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("cl...
/models/openml_phoneme/classification_Class/3667e7e2737d1801aef04c8d50f72b52/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
684
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "phoneme") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Class") lrn = makeLearner("cl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.kinesisanalytics_operations.R \name{update_application} \alias{update_application} \title{Updates an existing Amazon Kinesis Analytics application} \usage{ update_application(ApplicationName, CurrentApplicationVersionId, ApplicationUpd...
/service/paws.kinesisanalytics/man/update_application.Rd
permissive
CR-Mercado/paws
R
false
true
4,317
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.kinesisanalytics_operations.R \name{update_application} \alias{update_application} \title{Updates an existing Amazon Kinesis Analytics application} \usage{ update_application(ApplicationName, CurrentApplicationVersionId, ApplicationUpd...
# Clear workspace rm(list = ls()) # READ DATA ################################################################################ # Packages library(dplyr) # Define directories ramdir <- "~/Dropbox/Chris/Rutgers/projects/orcs_methods/data/ramldb/ramldb_20150202/formatted" datadir <- "~/Dropbox/Chris/Rutgers/projects/f...
/code/AppendixA_catch_time_series_ramldb.R
no_license
cfree14/fao_dlm
R
false
false
2,956
r
# Clear workspace rm(list = ls()) # READ DATA ################################################################################ # Packages library(dplyr) # Define directories ramdir <- "~/Dropbox/Chris/Rutgers/projects/orcs_methods/data/ramldb/ramldb_20150202/formatted" datadir <- "~/Dropbox/Chris/Rutgers/projects/f...
### Step 1 ##The first step is to get the annotation for the genes, (i.e. transcript length) you may already have that in an ## object called anno, but if not look at the following code: geneModelFile <- "/wsu/home/groups/piquelab/data/RefTranscriptome/ensGene.hg19.faCount.gz" geneAnno <- read.table(geneModelFile,sep...
/GxE_pca/GxE_normalization.R
no_license
ctharve/GxE-pipeline
R
false
false
2,400
r
### Step 1 ##The first step is to get the annotation for the genes, (i.e. transcript length) you may already have that in an ## object called anno, but if not look at the following code: geneModelFile <- "/wsu/home/groups/piquelab/data/RefTranscriptome/ensGene.hg19.faCount.gz" geneAnno <- read.table(geneModelFile,sep...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crypto_prices.R \docType{data} \name{crypto_prices} \alias{crypto_prices} \title{Prices of 3 crypto currencies} \format{A data frame with 1174 rows and 4 variables: \itemize{ \item \emph{Date}: date when the price was recorded \item \emph{LTC...
/man/crypto_prices.Rd
permissive
alejoelpaisa/tsviz
R
false
true
643
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crypto_prices.R \docType{data} \name{crypto_prices} \alias{crypto_prices} \title{Prices of 3 crypto currencies} \format{A data frame with 1174 rows and 4 variables: \itemize{ \item \emph{Date}: date when the price was recorded \item \emph{LTC...
library(tidyverse) library(lubridate) get_mobility_data = function () { ## read latest mobility data visits = read_csv("./data/visits_by_category_bycounty_baselined.csv")[ -1] sdmetrics = read_csv("./data/sd-metrics_bycounty_baselined.csv")[ ,-1] ## Load in MSA definitions and population weights county_p...
/code/common/sdmetrics-states.R
no_license
UT-Covid/SEIR-TSA
R
false
false
5,715
r
library(tidyverse) library(lubridate) get_mobility_data = function () { ## read latest mobility data visits = read_csv("./data/visits_by_category_bycounty_baselined.csv")[ -1] sdmetrics = read_csv("./data/sd-metrics_bycounty_baselined.csv")[ ,-1] ## Load in MSA definitions and population weights county_p...
\name{whiskerplot} % functions \alias{whiskerplot} \title{Whisker plots of parameter posterior distributions} \usage{ whiskerplot(x, parameters, quantiles=c(0.025,0.975), zeroline=TRUE) } \arguments{ \item{x}{A jagsUI object} \item{parameters}{A vector of names (as characters) of parameters to include in the p...
/man/whiskerplot.Rd
no_license
awong234/jagsUI
R
false
false
2,421
rd
\name{whiskerplot} % functions \alias{whiskerplot} \title{Whisker plots of parameter posterior distributions} \usage{ whiskerplot(x, parameters, quantiles=c(0.025,0.975), zeroline=TRUE) } \arguments{ \item{x}{A jagsUI object} \item{parameters}{A vector of names (as characters) of parameters to include in the p...
#' @param x the model fit #' @param labels the labels associated with the rows of the fitted or projected data (see newdata) #' @param newdata an optional supplementary training set that is projected in to the fitted space. #' @param colind the subset of column indices in the fitted model to use. #' @param knn the...
/R/scorepred.R
no_license
bbuchsbaum/neuroca
R
false
false
4,394
r
#' @param x the model fit #' @param labels the labels associated with the rows of the fitted or projected data (see newdata) #' @param newdata an optional supplementary training set that is projected in to the fitted space. #' @param colind the subset of column indices in the fitted model to use. #' @param knn the...
library(dplyr) library(tidyverse) detach("package:tidyr", unload=TRUE) setwd("C:/Users/arman/OneDrive/Desktop/Introduction to Writting Functions in R/04 Case Study on Grain Yields") corn <- readRDS("nass.corn.rds" ) wheat <- readRDS("nass.wheat.rds" ) # Wrap this code into a function fortity_with_metri...
/01 Introduction to Writting Functions in R/04 Case Study on Grain Yields/07 Applying_Unit_Conversion.R
no_license
ArmandoReyesRepo/RCode
R
false
false
661
r
library(dplyr) library(tidyverse) detach("package:tidyr", unload=TRUE) setwd("C:/Users/arman/OneDrive/Desktop/Introduction to Writting Functions in R/04 Case Study on Grain Yields") corn <- readRDS("nass.corn.rds" ) wheat <- readRDS("nass.wheat.rds" ) # Wrap this code into a function fortity_with_metri...
context("packages") test_that("load_packages", { expect_true(load_packages(ggplot2)) expect_error(load_packages(ggplot3)) }) test_that("load_packages", { expect_true(assert_installed(ggplot2)) expect_error(assert_installed(ggplot3)) })
/tests/testthat/test_packages.R
permissive
Deleetdk/kirkegaard
R
false
false
250
r
context("packages") test_that("load_packages", { expect_true(load_packages(ggplot2)) expect_error(load_packages(ggplot3)) }) test_that("load_packages", { expect_true(assert_installed(ggplot2)) expect_error(assert_installed(ggplot3)) })
testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(c(7.35251004745853e+228, 2.40073430412691e-303, 1.33613454218396e-309, 5.27609697132066e+269, 8.94991667486612e+178, 5.9267342798578e-311, 2.62220037498617e-270, 2.64617978193873e-260, 1.23802520372824e-308, 4.94065645841247e-324, 4.9406564584124...
/distr6/inst/testfiles/C_EmpiricalMVPdf/libFuzzer_C_EmpiricalMVPdf/C_EmpiricalMVPdf_valgrind_files/1610035534-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,033
r
testlist <- list(data = structure(0, .Dim = c(1L, 1L)), x = structure(c(7.35251004745853e+228, 2.40073430412691e-303, 1.33613454218396e-309, 5.27609697132066e+269, 8.94991667486612e+178, 5.9267342798578e-311, 2.62220037498617e-270, 2.64617978193873e-260, 1.23802520372824e-308, 4.94065645841247e-324, 4.9406564584124...
########################################################################################################## # # This script reads various file formats and performs other utility operations, including # some verification tasks. # ###########################################################################################...
/src/PostProcVerificationRPS.R
no_license
usbr/KlamathSRO
R
false
false
8,473
r
########################################################################################################## # # This script reads various file formats and performs other utility operations, including # some verification tasks. # ###########################################################################################...
# S3 methods for datamap objects `$.datamap` <- function(x,name) x[['.intern']][[name]] `$<-.datamap` <- function(x,name,value) { x[['.intern']][[name]] <- value; x } `print.datamap` <- function(x, ...){ instIDX <- unlist(lapply(objects(x),bindingIsActive,x)) print( list( installed=objects(x)[instIDX], extr...
/datamap/R/datamap.R
no_license
ingted/R-Examples
R
false
false
4,813
r
# S3 methods for datamap objects `$.datamap` <- function(x,name) x[['.intern']][[name]] `$<-.datamap` <- function(x,name,value) { x[['.intern']][[name]] <- value; x } `print.datamap` <- function(x, ...){ instIDX <- unlist(lapply(objects(x),bindingIsActive,x)) print( list( installed=objects(x)[instIDX], extr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/AllMethods.R \name{fmrs.gendata} \alias{fmrs.gendata} \alias{fmrs.gendata,ANY-method} \alias{fmrs.gendata-method} \title{fmrs.gendata method} \usage{ fmrs.gendata(nObs, nComp, nCov, coeff, dispersion, mixProp, rho, umax, ...)...
/man/fmrs.gendata-methods.Rd
no_license
shokoohi/fmrs
R
false
true
2,440
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/AllMethods.R \name{fmrs.gendata} \alias{fmrs.gendata} \alias{fmrs.gendata,ANY-method} \alias{fmrs.gendata-method} \title{fmrs.gendata method} \usage{ fmrs.gendata(nObs, nComp, nCov, coeff, dispersion, mixProp, rho, umax, ...)...
## ----fig.width=11,fig.height=11,message=FALSE--------------------------------- library(dplyr) library(RColorBrewer) library(pheatmap) library(magrittr) library(igraph) ##the rows of the IMC container input are the protein antibody panel, the columns are the cells. (need to transpose for matrix computatoins) plot_cl...
/doc/example.R
no_license
arcolombo/imcExperiment
R
false
false
19,702
r
## ----fig.width=11,fig.height=11,message=FALSE--------------------------------- library(dplyr) library(RColorBrewer) library(pheatmap) library(magrittr) library(igraph) ##the rows of the IMC container input are the protein antibody panel, the columns are the cells. (need to transpose for matrix computatoins) plot_cl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/validate_inputs.R \name{validate_treelist} \alias{validate_treelist} \title{Validate treelist} \usage{ validate_treelist(trees_data) } \arguments{ \item{trees_data}{A tidy dataframe with the treelist (as described above).} } \value{ A tidy da...
/man/validate_treelist.Rd
no_license
mgtagle/Rfuels
R
false
true
2,161
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/validate_inputs.R \name{validate_treelist} \alias{validate_treelist} \title{Validate treelist} \usage{ validate_treelist(trees_data) } \arguments{ \item{trees_data}{A tidy dataframe with the treelist (as described above).} } \value{ A tidy da...
# Environmental Health and Safety package for R # Work-in-progress # library(tidyr) library(readr) # import naics data table # convert naics codes to numeric # then remove na data # clear console: cat("\014") # Injury rates --------------------------------------------------------------- # Incident Rate (ir) as speci...
/R/rEHS.R
no_license
dwnadler/rEHS
R
false
false
8,594
r
# Environmental Health and Safety package for R # Work-in-progress # library(tidyr) library(readr) # import naics data table # convert naics codes to numeric # then remove na data # clear console: cat("\014") # Injury rates --------------------------------------------------------------- # Incident Rate (ir) as speci...
set.seed(1953) # Watson JD, Crick FH. 1953. print("in run_kgd.R") print("args :") args = commandArgs(trailingOnly=TRUE) if(length(args)==2 ){ print(args[1]) print(args[2]) genofile <- args[1] geno_method <- args[2] } else if (length(args)==1) { print(args[1]) genofile <- args[1] geno_method <- "def...
/run_kgd.R
no_license
AgResearch/gbs_prism
R
false
false
9,525
r
set.seed(1953) # Watson JD, Crick FH. 1953. print("in run_kgd.R") print("args :") args = commandArgs(trailingOnly=TRUE) if(length(args)==2 ){ print(args[1]) print(args[2]) genofile <- args[1] geno_method <- args[2] } else if (length(args)==1) { print(args[1]) genofile <- args[1] geno_method <- "def...
dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #str(subSetData) datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActi...
/scripts/plot4.R
no_license
joshuasirwin/ExData_Week1
R
false
false
1,289
r
dataFile <- "./data/household_power_consumption.txt" data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #str(subSetData) datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActi...
.onAttach <- function(libname, pkgname){ packageStartupMessage("This is Luke version ", utils::packageVersion("Luke")) }
/R/zzz.R
no_license
fischuu/Luke
R
false
false
123
r
.onAttach <- function(libname, pkgname){ packageStartupMessage("This is Luke version ", utils::packageVersion("Luke")) }
#' @param sgroup A character vector specifying one or more Security Group IDs.
/man-roxygen/sgroup.R
no_license
CDC/aws.ec2
R
false
false
79
r
#' @param sgroup A character vector specifying one or more Security Group IDs.
# generate_bidRequests <- function(hours){ # idfa <- as.data.table(read.fst("idfa.fst")) # idfas <- as.data.table(read.fst("idfas.fst")) # pois <- as.data.table(read.fst("pois.fst")) # # all_uniques <- sum(pois$idfas[seq_len(hours)]) # nCol <<- as.list(seq_len(hours)) # # repeated_idfas <- sum(sapply(...
/bid_request_generator.R
no_license
datasciences/RTB-simulation-framework
R
false
false
2,696
r
# generate_bidRequests <- function(hours){ # idfa <- as.data.table(read.fst("idfa.fst")) # idfas <- as.data.table(read.fst("idfas.fst")) # pois <- as.data.table(read.fst("pois.fst")) # # all_uniques <- sum(pois$idfas[seq_len(hours)]) # nCol <<- as.list(seq_len(hours)) # # repeated_idfas <- sum(sapply(...