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
browseURL("https://drive.google.com/open?id=1t54qpJ1GmeY_NAoMAXqIYQ9xmjPxZr1u") # Install and import essential packages ----------------------------------- # install.packages("tidyverse") # library(tidyverse) will import ggplot2, dplyr, tidyr, readr, purrr, and tibble # Need to library # readxl for .xls and .xlsx ...
/0_install_pkgs.R
no_license
anhnguyendepocen/NCCU2018
R
false
false
1,581
r
browseURL("https://drive.google.com/open?id=1t54qpJ1GmeY_NAoMAXqIYQ9xmjPxZr1u") # Install and import essential packages ----------------------------------- # install.packages("tidyverse") # library(tidyverse) will import ggplot2, dplyr, tidyr, readr, purrr, and tibble # Need to library # readxl for .xls and .xlsx ...
# Este codigo foi criado para executar tanto no Azure, quanto no RStudio. # Para executar no Azure, altere o valor da variavel Azure para TRUE. Se o valor for FALSE, o codigo sera executado no RStudio # ***** Esta é a versão 2.0 deste script, atualizado em 23/05/2017 ***** # ***** Esse script pode ser executado nas ve...
/PrevendoDemandaBike/06-Feature Selection.R
no_license
LeoGitBR/RProjects
R
false
false
1,992
r
# Este codigo foi criado para executar tanto no Azure, quanto no RStudio. # Para executar no Azure, altere o valor da variavel Azure para TRUE. Se o valor for FALSE, o codigo sera executado no RStudio # ***** Esta é a versão 2.0 deste script, atualizado em 23/05/2017 ***** # ***** Esse script pode ser executado nas ve...
#' summarySE #' #' summarySE provides summaries (mean, sd, ci, se, N) for a variable/variables either overall or stratified by one or more grouping variables. This is an extension of the summarySE function provided by Winston Chang in the Cookbook for R. This extension allows for getting summaries across multple outcom...
/R/summarySE.R
no_license
TaylorAndrew/atPrepAnalyze
R
false
false
3,556
r
#' summarySE #' #' summarySE provides summaries (mean, sd, ci, se, N) for a variable/variables either overall or stratified by one or more grouping variables. This is an extension of the summarySE function provided by Winston Chang in the Cookbook for R. This extension allows for getting summaries across multple outcom...
\name{slMatrix} \alias{slMatrix} \title{ Function to create objects from class slMatrix } \description{ Provides a flexible way to create objects from class \code{slMatrix}. The entries may be specified in several ways. } \usage{ slMatrix(init = NA, period, maxlag, seasonnames = seq(length = period), lagna...
/man/slMatrix.Rd
no_license
GeoBosh/lagged
R
false
false
2,546
rd
\name{slMatrix} \alias{slMatrix} \title{ Function to create objects from class slMatrix } \description{ Provides a flexible way to create objects from class \code{slMatrix}. The entries may be specified in several ways. } \usage{ slMatrix(init = NA, period, maxlag, seasonnames = seq(length = period), lagna...
#sample augmentation with censoring cases #rationale: the all-death registry data is missing recent patients who are still surviving #simulation parameter table is built based on national statistics on k-year survival rates: # 1-3 year: 50% # 3-5 year: 30% # 5-10 year: 20% # install.packages("tidyverse") # instal...
/simulate_survival.R
no_license
sxinger/Simulations
R
false
false
2,121
r
#sample augmentation with censoring cases #rationale: the all-death registry data is missing recent patients who are still surviving #simulation parameter table is built based on national statistics on k-year survival rates: # 1-3 year: 50% # 3-5 year: 30% # 5-10 year: 20% # install.packages("tidyverse") # instal...
testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, 2.3834705896422e+195, 2.79620616433656e-119, -6.80033518839696e+41, 2.68...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615827825-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
733
r
testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, 2.3834705896422e+195, 2.79620616433656e-119, -6.80033518839696e+41, 2.68...
\name{RADami-package} \alias{RADami-package} \alias{RADami} \docType{package} \title{R Package for Phylogenetic Analysis of RADseq Data} \description{This package implements import, export, manipulation, visualization, and downstream (post-clustering) analysis of RADseq data, integrating with the py...
/man/RADami-package.Rd
no_license
KlausVigo/RADami
R
false
false
1,266
rd
\name{RADami-package} \alias{RADami-package} \alias{RADami} \docType{package} \title{R Package for Phylogenetic Analysis of RADseq Data} \description{This package implements import, export, manipulation, visualization, and downstream (post-clustering) analysis of RADseq data, integrating with the py...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AWS Ground Station #' #' @description #' Welcome to the AWS Ground Station API Reference. AWS Ground Station is a #' fully managed service that enables you to control satellite #' comm...
/paws/R/groundstation_service.R
permissive
ryanb8/paws
R
false
false
4,752
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AWS Ground Station #' #' @description #' Welcome to the AWS Ground Station API Reference. AWS Ground Station is a #' fully managed service that enables you to control satellite #' comm...
library(RSQLite) library(caret) library(caretEnsemble) library(ggplot2) library(pROC) library(randomForest) library(C50) library(nnet) library(gbm) library(Boruta) library(dplyr) # by rinda fb.db <- "~/Documents/kaggle/facebook_IV_Human_or_Robot/fb.db" ffile <- "~/Documents/kaggle/facebook_IV_Human_or_Robot/extracted...
/init.R
no_license
rindajones/kaggleFR4
R
false
false
334
r
library(RSQLite) library(caret) library(caretEnsemble) library(ggplot2) library(pROC) library(randomForest) library(C50) library(nnet) library(gbm) library(Boruta) library(dplyr) # by rinda fb.db <- "~/Documents/kaggle/facebook_IV_Human_or_Robot/fb.db" ffile <- "~/Documents/kaggle/facebook_IV_Human_or_Robot/extracted...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stationary_ploidevol.R \name{stationary_ploidevol} \alias{stationary_ploidevol} \title{Calculates stationary distribution for root under Ploidevol model} \usage{ stationary_ploidevol(log.parameters) } \arguments{ \item{log.parameters}{a vecto...
/man/stationary_ploidevol.Rd
no_license
roszenil/chromploid
R
false
true
695
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stationary_ploidevol.R \name{stationary_ploidevol} \alias{stationary_ploidevol} \title{Calculates stationary distribution for root under Ploidevol model} \usage{ stationary_ploidevol(log.parameters) } \arguments{ \item{log.parameters}{a vecto...
library(ggplot2) library(stringr) library(scales) library(gridExtra) library(lubridate) library(caret) library(caTools) library(e1071) library(party) dataset <- read.csv("E:/R Workspace/Data Mining Project/No-show-Issue-Comma-300k.csv", stringsAsFactors = TRUE, header = TRUE, na.strings = c...
/Project.R
no_license
ZubairHussain/Appointment-No-Show-
R
false
false
4,057
r
library(ggplot2) library(stringr) library(scales) library(gridExtra) library(lubridate) library(caret) library(caTools) library(e1071) library(party) dataset <- read.csv("E:/R Workspace/Data Mining Project/No-show-Issue-Comma-300k.csv", stringsAsFactors = TRUE, header = TRUE, na.strings = c...
sgRSEA <- function(dat, multiplier=50, r.seed=NULL){ v1 =as.character(dat[,1]) v2 = as.character(dat[,2]) v3 = as.numeric(dat[,3]) v4 = as.numeric(dat[,4]) cname=colnames(dat) dat = data.frame( v1,v2,v3, v4 ) colnames(dat)=cname if (anyNA(dat)) stop("There is NA in dat.") if (min(da...
/sgRSEA/R/sgRSEA.R
no_license
ingted/R-Examples
R
false
false
2,262
r
sgRSEA <- function(dat, multiplier=50, r.seed=NULL){ v1 =as.character(dat[,1]) v2 = as.character(dat[,2]) v3 = as.numeric(dat[,3]) v4 = as.numeric(dat[,4]) cname=colnames(dat) dat = data.frame( v1,v2,v3, v4 ) colnames(dat)=cname if (anyNA(dat)) stop("There is NA in dat.") if (min(da...
library(measures) ### Name: TNR ### Title: True negative rate ### Aliases: TNR ### ** Examples n = 20 set.seed(125) truth = as.factor(sample(c(1,0), n, replace = TRUE)) probabilities = runif(n) response = as.factor(as.numeric(probabilities > 0.5)) negative = 0 TNR(truth, response, negative)
/data/genthat_extracted_code/measures/examples/TNR.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
299
r
library(measures) ### Name: TNR ### Title: True negative rate ### Aliases: TNR ### ** Examples n = 20 set.seed(125) truth = as.factor(sample(c(1,0), n, replace = TRUE)) probabilities = runif(n) response = as.factor(as.numeric(probabilities > 0.5)) negative = 0 TNR(truth, response, negative)
rm(list=ls()); gc() library(data.table) library(lubridate) tr <- fread("../input/train.csv") #Select Train Sizes #set.seed(777) #tr <- tr[sample(.N, 50e6), ] #test dataset change te <- fread("../input/test.csv") # te <- fread("../input/test_supplement.csv") tr <- setorder(tr, click_time, is_attributed) tr <- tr[, -"at...
/AdT/Code/Fail/todo.R
permissive
LegenDad/KaggleUXLog
R
false
false
9,703
r
rm(list=ls()); gc() library(data.table) library(lubridate) tr <- fread("../input/train.csv") #Select Train Sizes #set.seed(777) #tr <- tr[sample(.N, 50e6), ] #test dataset change te <- fread("../input/test.csv") # te <- fread("../input/test_supplement.csv") tr <- setorder(tr, click_time, is_attributed) tr <- tr[, -"at...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate_vp.R \name{calculate_vp} \alias{calculate_vp} \title{Calculate a vertical profile (\code{vp}) from a polar volume (\code{pvol})} \usage{ calculate_vp(file, vpfile = "", pvolfile_out = "", autoconf = FALSE, verbose = FALSE, mount =...
/man/calculate_vp.Rd
permissive
bart1/bioRad
R
false
true
8,372
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate_vp.R \name{calculate_vp} \alias{calculate_vp} \title{Calculate a vertical profile (\code{vp}) from a polar volume (\code{pvol})} \usage{ calculate_vp(file, vpfile = "", pvolfile_out = "", autoconf = FALSE, verbose = FALSE, mount =...
library(googlesheets) library(tidyverse) library(stringr) results <- gs_title("R ladies remote") %>% gs_read table(results$Country) results = results %>% mutate(country = case_when((tolower(Country) %in% c('us','usa','u.s.a.','south bend'))|grepl('united states',tolower(Country))|(Country=='Georgia'&City=='Atlanta...
/surveyresults.R
no_license
rladies/rladies_remote
R
false
false
2,659
r
library(googlesheets) library(tidyverse) library(stringr) results <- gs_title("R ladies remote") %>% gs_read table(results$Country) results = results %>% mutate(country = case_when((tolower(Country) %in% c('us','usa','u.s.a.','south bend'))|grepl('united states',tolower(Country))|(Country=='Georgia'&City=='Atlanta...
library(ggplot2) # Datasets data(movies) data(EuStockMarkets) # Cleanup the movie dataset # Filter out rows with 0, negative or no budget information and remove idx <- which(movies$budget <=0 | is.na(movies$budget)) movies <- movies[-idx,] # Data genre <- rep(NA, nrow(movies)) count <- rowSums(movies[, 18:24]) gen...
/homework1/code.R
no_license
manoj-v/msan622
R
false
false
4,425
r
library(ggplot2) # Datasets data(movies) data(EuStockMarkets) # Cleanup the movie dataset # Filter out rows with 0, negative or no budget information and remove idx <- which(movies$budget <=0 | is.na(movies$budget)) movies <- movies[-idx,] # Data genre <- rep(NA, nrow(movies)) count <- rowSums(movies[, 18:24]) gen...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/pca2d.R, R/pca3d-package.R, R/pca3d.R \name{pca2d} \alias{pca2d} \alias{pca3d} \alias{pca3d-package} \title{Show a three- or two-dimensional plot of a prcomp object} \usage{ pca2d(pca, components = 1:2, col = NULL, title = NULL, new =...
/man/pca3d-package.Rd
no_license
thomas-omahoney/pca3d
R
false
false
7,616
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/pca2d.R, R/pca3d-package.R, R/pca3d.R \name{pca2d} \alias{pca2d} \alias{pca3d} \alias{pca3d-package} \title{Show a three- or two-dimensional plot of a prcomp object} \usage{ pca2d(pca, components = 1:2, col = NULL, title = NULL, new =...
BITRATE = 8000 # per second BUFFER = 1/12 # seconds options(digits.secs = 9) #' @export loop <- function(next.sample, prev.time = NULL) { if (is.null(prev.time)) next.time <- Sys.time() else next.time <- prev.time + length(next.sample) / BITRATE if (next.time - (BITRATE * BUFFER) < Sys.time()) { cat...
/loop.r
no_license
tlevine/mdoow
R
false
false
401
r
BITRATE = 8000 # per second BUFFER = 1/12 # seconds options(digits.secs = 9) #' @export loop <- function(next.sample, prev.time = NULL) { if (is.null(prev.time)) next.time <- Sys.time() else next.time <- prev.time + length(next.sample) / BITRATE if (next.time - (BITRATE * BUFFER) < Sys.time()) { cat...
\name{is.chordal} \alias{peo} \alias{is.chordal} \alias{is.cycle} \alias{is.complete} \alias{simplicial.vertex} \title{ Tests for certain types of graphs. } \description{ Tests that a graph is chordal or complete. } \usage{ is.chordal(g) peo(g) simplicial.vertex(g,n) is.complete(g) is.cycle(g) } \arguments{ \item{g}{...
/man/is.chordal.Rd
no_license
cran/mfr
R
false
false
1,322
rd
\name{is.chordal} \alias{peo} \alias{is.chordal} \alias{is.cycle} \alias{is.complete} \alias{simplicial.vertex} \title{ Tests for certain types of graphs. } \description{ Tests that a graph is chordal or complete. } \usage{ is.chordal(g) peo(g) simplicial.vertex(g,n) is.complete(g) is.cycle(g) } \arguments{ \item{g}{...
/02-Segundo Semestre - Estadística Multivariada/Proyecto/Codigos/Analisis salarial/Inciso b/Parte 2/Clasificador Salarios Campo SS.R
no_license
nicoletron770/Maestria-Computo-Estadistico
R
false
false
18,415
r
# Analysis of DNA composition for a subset of genes or genomes # Report the nucleotide fraction, GC content and asymmetries # # Aleix Lafita - October 2019 suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(seqinr)) suppressPackageStartupMessages(library(argparse)) suppressPackageSt...
/composition_dna.R
permissive
bateman-research/sequence-bias
R
false
false
9,696
r
# Analysis of DNA composition for a subset of genes or genomes # Report the nucleotide fraction, GC content and asymmetries # # Aleix Lafita - October 2019 suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(seqinr)) suppressPackageStartupMessages(library(argparse)) suppressPackageSt...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615837649-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,048
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/out.R \name{drop_incomplete_segments} \alias{drop_incomplete_segments} \title{Drop segments with NAs from the eeg_lst} \usage{ drop_incomplete_segments(x) } \arguments{ \item{x}{eeg_lst} } \value{ An eeg_lst object } \description{ Drop segmen...
/man/drop_incomplete_segments.Rd
permissive
bnicenboim/eeguana
R
false
true
518
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/out.R \name{drop_incomplete_segments} \alias{drop_incomplete_segments} \title{Drop segments with NAs from the eeg_lst} \usage{ drop_incomplete_segments(x) } \arguments{ \item{x}{eeg_lst} } \value{ An eeg_lst object } \description{ Drop segmen...
\name{rfamFamilySummary} \alias{rfamFamilySummary} \title{Get a summary describing an Rfam family } \description{ Gets a summary describing an Rfam family. The summary includes information regarding the number of sequences and species contained in the family, a brief description about the function of the family and the...
/man/rfamFamilySummary.Rd
no_license
Rafael-Ayala/rfaRm
R
false
false
2,345
rd
\name{rfamFamilySummary} \alias{rfamFamilySummary} \title{Get a summary describing an Rfam family } \description{ Gets a summary describing an Rfam family. The summary includes information regarding the number of sequences and species contained in the family, a brief description about the function of the family and the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.BchronologyRun.R \name{predict.BchronologyRun} \alias{predict.BchronologyRun} \title{Predict ages of other positions for a BchronologyRun object} \usage{ \method{predict}{BchronologyRun}( object, newPositions, newPositionThickne...
/man/predict.BchronologyRun.Rd
no_license
cran/Bchron
R
false
true
1,446
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.BchronologyRun.R \name{predict.BchronologyRun} \alias{predict.BchronologyRun} \title{Predict ages of other positions for a BchronologyRun object} \usage{ \method{predict}{BchronologyRun}( object, newPositions, newPositionThickne...
# QMEC 2020 HW2 #Haley Carter # Save your homework as an R script file named HW2_Smith.R in your dropbox # folder (if your surname is not Smith, then replace Smith with your surname). # Note: Your entire assignment should run as a script without errors. # The following line will enable R to read a dataset of 25 Cakil...
/HW2_Carter.R
no_license
hscarter/QMECgitrepo
R
false
false
6,467
r
# QMEC 2020 HW2 #Haley Carter # Save your homework as an R script file named HW2_Smith.R in your dropbox # folder (if your surname is not Smith, then replace Smith with your surname). # Note: Your entire assignment should run as a script without errors. # The following line will enable R to read a dataset of 25 Cakil...
require(BayesTree) setwd("~/Documents/Research/Genomics") setwd("~/Research_Genomics/bart_gene/Code_Objects") source("bart_fns.R") source("bart_fns2.R") ##Set-up set.seed(20) ##TF settings tf.size1=c(10,15,20,25) tf.size2=c(10,20,30,40) ##script is set to work with this right now ##Observation settings n50=50 n100=...
/Code_Objects/simult.R
no_license
jbleich89/bart_gene
R
false
false
2,930
r
require(BayesTree) setwd("~/Documents/Research/Genomics") setwd("~/Research_Genomics/bart_gene/Code_Objects") source("bart_fns.R") source("bart_fns2.R") ##Set-up set.seed(20) ##TF settings tf.size1=c(10,15,20,25) tf.size2=c(10,20,30,40) ##script is set to work with this right now ##Observation settings n50=50 n100=...
fluidPage(#theme=shinytheme("united"), headerPanel( HTML('Distribuciones de variables aleatorias (test para UAA) <a href="http://snap.uaf.edu" target="_blank"><img align="right" alt="SNAP Logo" src="./img/SNAP_acronym_100px.png" /></a>' ), "Distributions of Random Variables" ), fluidRow( co...
/Sofi/inst/Estadist/Estas/General/IU_Distribuciones_Var_Aleat.R
no_license
ingted/R-Examples
R
false
false
1,393
r
fluidPage(#theme=shinytheme("united"), headerPanel( HTML('Distribuciones de variables aleatorias (test para UAA) <a href="http://snap.uaf.edu" target="_blank"><img align="right" alt="SNAP Logo" src="./img/SNAP_acronym_100px.png" /></a>' ), "Distributions of Random Variables" ), fluidRow( co...
############################## #R script to generate a modelbuilder model object with code. #This file was generated on 2023-05-08 15:16:21.930296 ############################## mbmodel = list() #create empty list #Model meta-information mbmodel$title = 'Complex ID Control Scenarios' mbmodel$descr...
/auxiliary/modelfiles/other/Complex_ID_Control_Scenarios_file.R
no_license
ahgroup/modelbuilder
R
false
false
6,366
r
############################## #R script to generate a modelbuilder model object with code. #This file was generated on 2023-05-08 15:16:21.930296 ############################## mbmodel = list() #create empty list #Model meta-information mbmodel$title = 'Complex ID Control Scenarios' mbmodel$descr...
context("test-check_augment_newdata_precedence") library(tibble) augment_always_data <- function(model, data = NULL, newdata = NULL) { as_tibble(data) } augment_correct <- function(model, data = NULL, newdata = NULL) { ret <- if (!is.null(newdata)) newdata else data as_tibble(ret) } test_that("strict = TRUE",...
/tests/testthat/test-check_augment_newdata_precedence.R
permissive
alexpghayes/modeltests
R
false
false
652
r
context("test-check_augment_newdata_precedence") library(tibble) augment_always_data <- function(model, data = NULL, newdata = NULL) { as_tibble(data) } augment_correct <- function(model, data = NULL, newdata = NULL) { ret <- if (!is.null(newdata)) newdata else data as_tibble(ret) } test_that("strict = TRUE",...
#Plot4 #get data #get data powerConsumptionData <- read.table("household_power_consumption.txt", header=TRUE, sep=";",dec=".",na.strings = "?") #combine date and time column powerConsumptionData$DateTime <- paste(powerConsumptionData$Date, powerConsumptionData$Time,sep=" ") #convert date column to type date powerCons...
/Plot4.R
no_license
szumkhawala/ExData_Plotting1
R
false
false
1,927
r
#Plot4 #get data #get data powerConsumptionData <- read.table("household_power_consumption.txt", header=TRUE, sep=";",dec=".",na.strings = "?") #combine date and time column powerConsumptionData$DateTime <- paste(powerConsumptionData$Date, powerConsumptionData$Time,sep=" ") #convert date column to type date powerCons...
#set and get working directory setwd("/Users/madelondenboeft/Desktop") #create plot4 fulldataset <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_needed <- subset(fulldataset, ...
/plot4.R
no_license
mdenboeft/ExData_Plotting1
R
false
false
1,290
r
#set and get working directory setwd("/Users/madelondenboeft/Desktop") #create plot4 fulldataset <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_needed <- subset(fulldataset, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_methods.R \name{print.psychmeta.ad_int} \alias{print.psychmeta.ad_int} \title{print method for interactive artifact distributions} \usage{ \method{print}{psychmeta.ad_int}(x, ..., digits = 3) } \arguments{ \item{x}{Object to be printed....
/man/print.psychmeta.ad_int.Rd
no_license
EnterStudios/psychmeta
R
false
true
609
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print_methods.R \name{print.psychmeta.ad_int} \alias{print.psychmeta.ad_int} \title{print method for interactive artifact distributions} \usage{ \method{print}{psychmeta.ad_int}(x, ..., digits = 3) } \arguments{ \item{x}{Object to be printed....
rm(list = ls()) tribedf <- read_rds("01_data/cache/tribe_county_shapefiles.rds") tribecounties <- tribedf %>% dplyr::select(GEOID) %>% unique() empty <- tribecounties %>% mutate(area = as.numeric(st_area(geometry))) %>% st_set_geometry(NULL) %>% filter(area == 0) tribeuse <- tribecounties %>% filte...
/02_build/04_combine_county.R
no_license
galsk223/tribalclimate
R
false
false
3,876
r
rm(list = ls()) tribedf <- read_rds("01_data/cache/tribe_county_shapefiles.rds") tribecounties <- tribedf %>% dplyr::select(GEOID) %>% unique() empty <- tribecounties %>% mutate(area = as.numeric(st_area(geometry))) %>% st_set_geometry(NULL) %>% filter(area == 0) tribeuse <- tribecounties %>% filte...
se <- function(actual, predicted){ #min_length = min(length(actual), length(predicted)) #return((actual[1:min_length] - predicted[1:min_length]) ^ 2) return((actual - predicted) ^ 2) } mse <- function(actual, predicted){ return(mean(x = se(actual, predicted), na.rm = TRUE)) } rmse <- function(actual, predict...
/R/rmse_new.R
no_license
wimmyteam/conisi
R
false
false
10,220
r
se <- function(actual, predicted){ #min_length = min(length(actual), length(predicted)) #return((actual[1:min_length] - predicted[1:min_length]) ^ 2) return((actual - predicted) ^ 2) } mse <- function(actual, predicted){ return(mean(x = se(actual, predicted), na.rm = TRUE)) } rmse <- function(actual, predict...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{MartinRatio} \alias{MartinRatio} \title{Martin ratio of the return distribution} \usage{ MartinRatio(R, Rf = 0, ...) } \arguments{ \item{R}{an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns} \item{Rf}{risk free rate, in s...
/man/MartinRatio.Rd
no_license
ecjbosu/PerformanceAnalytics
R
false
false
1,307
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{MartinRatio} \alias{MartinRatio} \title{Martin ratio of the return distribution} \usage{ MartinRatio(R, Rf = 0, ...) } \arguments{ \item{R}{an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns} \item{Rf}{risk free rate, in s...
"plotAutoC" <- function(node, plot = TRUE, colour = c("red", "blue", "green", "yellow", "black"), lwd = 5, main = NULL, ...) # Plot auto correlation function for single component of OpenBUGS name { sM <- samplesMonitors(node) if(length(sM) > 1 || sM != node) stop("node must be a scalar var...
/R/plot.autoC.R
no_license
cran/BRugs
R
false
false
840
r
"plotAutoC" <- function(node, plot = TRUE, colour = c("red", "blue", "green", "yellow", "black"), lwd = 5, main = NULL, ...) # Plot auto correlation function for single component of OpenBUGS name { sM <- samplesMonitors(node) if(length(sM) > 1 || sM != node) stop("node must be a scalar var...
input = readLines("Day2/Input2_1.txt") input_by_row = strsplit(input, "\t") ###################### PART 1 ###################### sum(sapply(input_by_row, function(x) { max(as.numeric(x)) - min(as.numeric(x)) })) ###################### PART 2 ###################### sum(sapply(input_by_row, function(x) { tmp = expa...
/Day2/Day2.R
no_license
RossiLorenzo/advent_code_2017
R
false
false
444
r
input = readLines("Day2/Input2_1.txt") input_by_row = strsplit(input, "\t") ###################### PART 1 ###################### sum(sapply(input_by_row, function(x) { max(as.numeric(x)) - min(as.numeric(x)) })) ###################### PART 2 ###################### sum(sapply(input_by_row, function(x) { tmp = expa...
#------------------------------------------------------------------------- #LAB 2 #1.1 Conditional statements #1.1.1 sheldon_game(player1, player2) #------------------------------------------------------------------------- name <-"Farhana Chowdhury Tondra" liuid <- "farch587" #------------------code starts from her...
/RCourseLab2/R/sheldon_game.R
no_license
tondralok/RCourseLab2
R
false
false
833
r
#------------------------------------------------------------------------- #LAB 2 #1.1 Conditional statements #1.1.1 sheldon_game(player1, player2) #------------------------------------------------------------------------- name <-"Farhana Chowdhury Tondra" liuid <- "farch587" #------------------code starts from her...
#' Read Images into a Matrix #' #' Read images into rows of a matrix, given a mask - much faster for large #' datasets as it is based on C++ implementations. #' #' #' @param imageList A character vector containing a list of image files to #' read, in order. #' @param mask An \code{antsImage} containing a binary mask, v...
/R/imagesToMatrix.R
no_license
bkandel/ANTsRCheck
R
false
false
1,391
r
#' Read Images into a Matrix #' #' Read images into rows of a matrix, given a mask - much faster for large #' datasets as it is based on C++ implementations. #' #' #' @param imageList A character vector containing a list of image files to #' read, in order. #' @param mask An \code{antsImage} containing a binary mask, v...
#' Get Spotify audio analysis tidily #' #' Fetches the Spotify audio analysis for a track using list columns rather than #' lists of lists. #' #' See the #' \href{https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-analysis/}{Spotify #' developer documentation} for details about the informati...
/R/audio_analysis.R
no_license
jaburgoyne/compmus
R
false
false
2,777
r
#' Get Spotify audio analysis tidily #' #' Fetches the Spotify audio analysis for a track using list columns rather than #' lists of lists. #' #' See the #' \href{https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-analysis/}{Spotify #' developer documentation} for details about the informati...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_sales.R \docType{data} \name{sales} \alias{sales} \title{Cross section sales analysis per individual} \format{a \code{data frame} with 20000 rows and 17 variables} \usage{ data(sales) } \description{ A dataset contain various sales metri...
/man/sales.Rd
permissive
HanjoStudy/quotidieR
R
false
true
374
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_sales.R \docType{data} \name{sales} \alias{sales} \title{Cross section sales analysis per individual} \format{a \code{data frame} with 20000 rows and 17 variables} \usage{ data(sales) } \description{ A dataset contain various sales metri...
#' Create an appDir for shiny::runApp and rsconnect::deployApp #' #' Create a directory in tempdir() where the folder containing ui.r, server.r #' etc. from an installed package is copied and the data is saved. #' This directory, with its content, will be deployd to or ran by shiny. #' #' @param app_data The data to be...
/R/create_appdir.r
permissive
SKDE-Felles/SKDEr
R
false
false
1,796
r
#' Create an appDir for shiny::runApp and rsconnect::deployApp #' #' Create a directory in tempdir() where the folder containing ui.r, server.r #' etc. from an installed package is copied and the data is saved. #' This directory, with its content, will be deployd to or ran by shiny. #' #' @param app_data The data to be...
# This script contains the R code for GWA plots used in the manuscript: # # Authors: Aguillon SM, Walsh J, Lovette IJ # Year: 2021 # Title: Extensive hybridization reveals multiple coloration genes # underlying a complex plumage phenotype # Journal Info: Proceedings of the Royal Society B, 288, 20201805 # DOI: 1...
/Rcode/GWA-plots.R
no_license
stepfanie-aguillon/flicker-WGS-ProcB2021
R
false
false
3,271
r
# This script contains the R code for GWA plots used in the manuscript: # # Authors: Aguillon SM, Walsh J, Lovette IJ # Year: 2021 # Title: Extensive hybridization reveals multiple coloration genes # underlying a complex plumage phenotype # Journal Info: Proceedings of the Royal Society B, 288, 20201805 # DOI: 1...
library(maps) library(mapdata) library(maptools) library(spatstat) library(spatstat.utils) library(rgeos) library(sp) library(leaflet) # Load data df <- read.csv("MetroBarcelona.csv") mapAreas <- c("Spain") counties <- map("worldHires", "Spain", exact = TRUE, ...
/VoronoiMetroBarcelona.R
no_license
hectorgm/VoronoiMetroBarcelona
R
false
false
5,411
r
library(maps) library(mapdata) library(maptools) library(spatstat) library(spatstat.utils) library(rgeos) library(sp) library(leaflet) # Load data df <- read.csv("MetroBarcelona.csv") mapAreas <- c("Spain") counties <- map("worldHires", "Spain", exact = TRUE, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rf_forecast.R \name{rf_forecast} \alias{rf_forecast} \title{function to calculate point forecast, 95\% confidence intervals, forecast-accuracy for new series} \usage{ rf_forecast(predictions, tslist, database, function_name, h, accuracy, ho...
/man/rf_forecast.Rd
no_license
martins0n/seer
R
false
true
1,327
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rf_forecast.R \name{rf_forecast} \alias{rf_forecast} \title{function to calculate point forecast, 95\% confidence intervals, forecast-accuracy for new series} \usage{ rf_forecast(predictions, tslist, database, function_name, h, accuracy, ho...
library(pecanapi) import::from(magrittr, "%>%") source(file.path("analysis", "scratch", "helpers.R")) ## model_id <- 99000000006 # ED develop model_id <- 99000000001 # ED develop site_id <- 1000000033 # UMBS disturbance machine_id <- 99000000001 ## DBI::dbSendStateme...
/analysis/scratch/test_ed_cases.R
permissive
ashiklom/fortebaseline
R
false
false
4,209
r
library(pecanapi) import::from(magrittr, "%>%") source(file.path("analysis", "scratch", "helpers.R")) ## model_id <- 99000000006 # ED develop model_id <- 99000000001 # ED develop site_id <- 1000000033 # UMBS disturbance machine_id <- 99000000001 ## DBI::dbSendStateme...
# load packages#### library(tableone) library(caret) library(reshape2) library(tidyr) library(dplyr) library(binom) library(survival) library(gridExtra) library(grid) library(survMisc) library(scales) library(ggplot2) library(tidyr) library(metafor) library(xlsx) library(xlsxjars) library(rJava) library(readxl) librar...
/part11_plot_burden_age_std.R
no_license
xjong/HAP
R
false
false
2,456
r
# load packages#### library(tableone) library(caret) library(reshape2) library(tidyr) library(dplyr) library(binom) library(survival) library(gridExtra) library(grid) library(survMisc) library(scales) library(ggplot2) library(tidyr) library(metafor) library(xlsx) library(xlsxjars) library(rJava) library(readxl) librar...
\name{NEWS} \title{ChemmineR News} \section{CHANGES IN VERSION 2.14.0}{ \subsection{NEW FEATURES}{ \itemize{ \item Integration of OpenBabel functionalities via new ChemmineOB add-on package \item Improved SMILES support via new SMIset object class and SMILES import/export functions \item Many oth...
/inst/NEWS.Rd
no_license
huaner123/ChemmineR
R
false
false
1,209
rd
\name{NEWS} \title{ChemmineR News} \section{CHANGES IN VERSION 2.14.0}{ \subsection{NEW FEATURES}{ \itemize{ \item Integration of OpenBabel functionalities via new ChemmineOB add-on package \item Improved SMILES support via new SMIset object class and SMILES import/export functions \item Many oth...
library(ggplot2) library(ggthemes) df <-mpg #pl <- ggplot(df,aes(x=hwy)) #pl2 <- pl + geom_histogram(bins=20, fill='red', alpha=0.5) #print(pl2) #pl <- ggplot(df,aes(x=manufacturer)) #pl2 <- pl + geom_bar(aes(fill=factor(cyl)), alpha=0.5) #print(pl2) df <- txhousing #print(df) pl <- ggplot(df,aes(x=sales, y=vo...
/rvisulas08.R
no_license
venkatram64/rwork
R
false
false
429
r
library(ggplot2) library(ggthemes) df <-mpg #pl <- ggplot(df,aes(x=hwy)) #pl2 <- pl + geom_histogram(bins=20, fill='red', alpha=0.5) #print(pl2) #pl <- ggplot(df,aes(x=manufacturer)) #pl2 <- pl + geom_bar(aes(fill=factor(cyl)), alpha=0.5) #print(pl2) df <- txhousing #print(df) pl <- ggplot(df,aes(x=sales, y=vo...
#' Download and aggregate data from public bicycle hire systems #' #' Download data from all public bicycle hire systems which provide open data, #' currently including #' \itemize{ #' \item Santander Cycles London, U.K. #' \item citibike New York City NY, U.S.A. #' \item Divvy Chicago IL, U.S.A. #' \item Capital Bike...
/R/bikedata-package.R
no_license
graceli8/bikedata
R
false
false
2,716
r
#' Download and aggregate data from public bicycle hire systems #' #' Download data from all public bicycle hire systems which provide open data, #' currently including #' \itemize{ #' \item Santander Cycles London, U.K. #' \item citibike New York City NY, U.S.A. #' \item Divvy Chicago IL, U.S.A. #' \item Capital Bike...
source( "masternegloglikeeps1.R" ) source("eudicottree.R" ) library( "expm" ) source( "Qmatrixwoodherb2.R" ) source("Pruning2.R") bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE) last.state=50 uniform.samples<-read.csv("sample195.csv",header=FALSE) a<- as.numeric(t(uniform....
/Full model optimizations/explorelikeuni195.R
no_license
roszenil/Bichromdryad
R
false
false
745
r
source( "masternegloglikeeps1.R" ) source("eudicottree.R" ) library( "expm" ) source( "Qmatrixwoodherb2.R" ) source("Pruning2.R") bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE) last.state=50 uniform.samples<-read.csv("sample195.csv",header=FALSE) a<- as.numeric(t(uniform....
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 checkBits <- function() { .Call('_largeVis_checkBits', PACKAGE = 'largeVis') } checkOpenMP <- function() { .Call('_largeVis_checkOpenMP', PACKAGE = 'largeVis') } dbscan_cpp <- functio...
/R/RcppExports.R
no_license
meowcat/largeVis
R
false
false
3,564
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 checkBits <- function() { .Call('_largeVis_checkBits', PACKAGE = 'largeVis') } checkOpenMP <- function() { .Call('_largeVis_checkOpenMP', PACKAGE = 'largeVis') } dbscan_cpp <- functio...
## Checks if the file exist on the working directory, if it doesn't exist, it downloads from "http://d396qusza40orc.cloudfront.net/exdata%2Fdata ## %2Fhousehold_power_consumption.zip" and unzips the file if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file(...
/plot2.R
no_license
AisaacO/ExData_Plotting1
R
false
false
1,739
r
## Checks if the file exist on the working directory, if it doesn't exist, it downloads from "http://d396qusza40orc.cloudfront.net/exdata%2Fdata ## %2Fhousehold_power_consumption.zip" and unzips the file if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalization.R \name{normalize} \alias{normalize} \title{Normalization} \usage{ normalize(microarray) } \arguments{ \item{mocroarray}{A table containing at least M, A and name columns.} } \value{ Same table normalized and with NA removed. } ...
/man/normalize.Rd
no_license
GilaZeus/DAMN
R
false
true
364
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalization.R \name{normalize} \alias{normalize} \title{Normalization} \usage{ normalize(microarray) } \arguments{ \item{mocroarray}{A table containing at least M, A and name columns.} } \value{ Same table normalized and with NA removed. } ...
#### Generating figures for preliminary results library(viridis) library(cowplot) ### Symmetrical rates results.symtrans <- read.table("results_symtrans.txt", sep = "\t", header = TRUE) results.symtrans <- results.symtrans[, -dim(results.symtrans)[2]] results.symtrans <- results.symtrans[order(results.symtrans$tree.nu...
/figs.R
no_license
lukejharmon/netphy
R
false
false
7,570
r
#### Generating figures for preliminary results library(viridis) library(cowplot) ### Symmetrical rates results.symtrans <- read.table("results_symtrans.txt", sep = "\t", header = TRUE) results.symtrans <- results.symtrans[, -dim(results.symtrans)[2]] results.symtrans <- results.symtrans[order(results.symtrans$tree.nu...
#importing data and packages load("matched_dataset.RData") #for those downloading the code, you should use load("data_to_be_shared.RData") instead pacman::p_load(tidyverse, sjPlot, cowplot, did, lmerTest, ggpubr, interplot,mediation, effectsize,esc, vioplot) #https://cran.r-project.org/web/packages/interplot/vignett...
/5. analysis.R
no_license
benholding/wos_mobility
R
false
false
44,152
r
#importing data and packages load("matched_dataset.RData") #for those downloading the code, you should use load("data_to_be_shared.RData") instead pacman::p_load(tidyverse, sjPlot, cowplot, did, lmerTest, ggpubr, interplot,mediation, effectsize,esc, vioplot) #https://cran.r-project.org/web/packages/interplot/vignett...
classifieur_astronomie <- function(dataset){ library('randomForest') library("fastDummies") load("env.Rdata") dataset<-dataset[,-which(names(dataset)=='objid')]; dataset<-dataset[,-which(names(dataset)=='rerun')] dataset$camcol<-as.factor(dataset$camcol) pred<-predict(rf.astro,newdata=dataset,type='class') ...
/projet/classifieurs.R
no_license
EnzoSeason/Machine-Learning-SY19
R
false
false
1,368
r
classifieur_astronomie <- function(dataset){ library('randomForest') library("fastDummies") load("env.Rdata") dataset<-dataset[,-which(names(dataset)=='objid')]; dataset<-dataset[,-which(names(dataset)=='rerun')] dataset$camcol<-as.factor(dataset$camcol) pred<-predict(rf.astro,newdata=dataset,type='class') ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \docType{methods} \name{summary,MLZ_data-method} \alias{summary,MLZ_data-method} \title{\code{summary} method for S4 class \code{MLZ_data}} \usage{ \S4method{summary}{MLZ_data}(object) } \arguments{ \item{object}{An object...
/man/summary-MLZ_data-method.Rd
no_license
quang-huynh/MLZ
R
false
true
484
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \docType{methods} \name{summary,MLZ_data-method} \alias{summary,MLZ_data-method} \title{\code{summary} method for S4 class \code{MLZ_data}} \usage{ \S4method{summary}{MLZ_data}(object) } \arguments{ \item{object}{An object...
library(DT) library(tidytext) library(dplyr) library(stringr) library(sentimentr) library(ggplot2) library(RColorBrewer) library(readr) library(SnowballC) library(tm) library(wordcloud) library(reticulate) library(crfsuite) #With the help R code, Negative, Positive and Neutral reviews differentiated. ...
/Negative_Cloud + Reviews.R
no_license
sarabusaiprashanth/Sentiment-Analysis-On-Consumer-Reviews
R
false
false
2,088
r
library(DT) library(tidytext) library(dplyr) library(stringr) library(sentimentr) library(ggplot2) library(RColorBrewer) library(readr) library(SnowballC) library(tm) library(wordcloud) library(reticulate) library(crfsuite) #With the help R code, Negative, Positive and Neutral reviews differentiated. ...
library(shiny) shinyUI( navbarPage("Motor Trend Analysis", tabPanel("Analysis", fluidPage( titlePanel("Comparison of Automatic vs. Manual Transmission on Auto Miles Per Gallon"), sidebarLayout( sidebarPanel( ...
/ui.R
no_license
jcbeck/Developing_Data_Products
R
false
false
3,786
r
library(shiny) shinyUI( navbarPage("Motor Trend Analysis", tabPanel("Analysis", fluidPage( titlePanel("Comparison of Automatic vs. Manual Transmission on Auto Miles Per Gallon"), sidebarLayout( sidebarPanel( ...
library(ggplot2) library(reshape) library(beepr) library(plyr) library(dplyr) library(GenABEL) library(crimaptools) load("finescale/5_Recheck_Data_Fine_Scale_Chunk_Diffs.RData") chunk.res <- NULL for(i in 1:nrow(map.chunk.50)){ print(paste("Running problem", i, "of", nrow(map.chunk.50))) test <- subset(m...
/5.5_Recheck_Parse_Fine_Scale_Differences.R
no_license
susjoh/DeerMapv4
R
false
false
6,694
r
library(ggplot2) library(reshape) library(beepr) library(plyr) library(dplyr) library(GenABEL) library(crimaptools) load("finescale/5_Recheck_Data_Fine_Scale_Chunk_Diffs.RData") chunk.res <- NULL for(i in 1:nrow(map.chunk.50)){ print(paste("Running problem", i, "of", nrow(map.chunk.50))) test <- subset(m...
library(tidyverse) res <- read_tsv("res_runs.tsv", col_names=c("dataset","assembler","ref_tot","ref_cov","ref_cov_frac","qry_tot","qry_cov","qry_cov_frac","contig_num")) res %<>% mutate(rep_res = exp(-abs(log(qry_cov/ref_cov)))) %>% mutate(score = (1 - ((abs(1-ref_cov_frac)/4) + (abs(1-qry_cov_frac)/4) + (abs(1-rep_re...
/code/find_novel_cutoffs.r
permissive
altingia/benchmark
R
false
false
2,135
r
library(tidyverse) res <- read_tsv("res_runs.tsv", col_names=c("dataset","assembler","ref_tot","ref_cov","ref_cov_frac","qry_tot","qry_cov","qry_cov_frac","contig_num")) res %<>% mutate(rep_res = exp(-abs(log(qry_cov/ref_cov)))) %>% mutate(score = (1 - ((abs(1-ref_cov_frac)/4) + (abs(1-qry_cov_frac)/4) + (abs(1-rep_re...
#' A function to fit a linear and non-linear GAM model to one's data and return some useful summary statistics #' #' This function fits a GAM glm in a linear and non-linear framework and tests if the glm GAM with a smooth independent is a better fit to the data. #' @param wdata a data frame of data with appropriate col...
/R/linear_nonlinear_fits.R
permissive
hughesevoanth/moosefun
R
false
false
5,929
r
#' A function to fit a linear and non-linear GAM model to one's data and return some useful summary statistics #' #' This function fits a GAM glm in a linear and non-linear framework and tests if the glm GAM with a smooth independent is a better fit to the data. #' @param wdata a data frame of data with appropriate col...
\name{methods.locppm} \alias{methods.locppm} \alias{as.interact.locppm} \alias{as.ppm.locppm} \alias{coef.locppm} \alias{confint.locppm} \alias{is.poisson.locppm} \alias{print.locppm} \title{Methods for Local Gibbs Models} \description{ Methods for various generic functions, for the class \code{"locppm"} of locally...
/man/methods.locppm.Rd
no_license
baddstats/spatstat.local
R
false
false
2,983
rd
\name{methods.locppm} \alias{methods.locppm} \alias{as.interact.locppm} \alias{as.ppm.locppm} \alias{coef.locppm} \alias{confint.locppm} \alias{is.poisson.locppm} \alias{print.locppm} \title{Methods for Local Gibbs Models} \description{ Methods for various generic functions, for the class \code{"locppm"} of locally...
fit.cv.BTLLasso <- function(response, design, penalty, q, m, folds = 10, lambda, control = ctrl.BTLLasso(), cores = folds, trace = TRUE, trace.cv = TRUE, cv.crit) { k <- q + 1 n.design <- nrow(design)/q if (trace.cv) { cat("Full model", "\n") } m.all <- fit.BTLLasso(res...
/fuzzedpackages/BTLLasso/R/fit.cv.BTLLasso.R
no_license
akhikolla/testpackages
R
false
false
3,009
r
fit.cv.BTLLasso <- function(response, design, penalty, q, m, folds = 10, lambda, control = ctrl.BTLLasso(), cores = folds, trace = TRUE, trace.cv = TRUE, cv.crit) { k <- q + 1 n.design <- nrow(design)/q if (trace.cv) { cat("Full model", "\n") } m.all <- fit.BTLLasso(res...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/SpatialNetwork.r \docType{class} \name{SpatialNetwork-class} \alias{SpatialNetwork-class} \title{Class \code{"SpatialNetwork"}} \description{ Allow to store spatial networks, especially for rendering them } \section{Slots}{ \describe...
/man/SpatialNetwork.Rd
no_license
cran/spnet
R
false
false
2,033
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/SpatialNetwork.r \docType{class} \name{SpatialNetwork-class} \alias{SpatialNetwork-class} \title{Class \code{"SpatialNetwork"}} \description{ Allow to store spatial networks, especially for rendering them } \section{Slots}{ \describe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tissot.R \name{ti_ellipse} \alias{ti_ellipse} \title{Ellipse} \usage{ ti_ellipse(center, axes, scale = 1, n = 36, from = 0, to = 2 * pi) } \arguments{ \item{center}{center} \item{axes}{axes} \item{scale}{scale} \item{n}{n} \item{from}{fro...
/man/ti_ellipse.Rd
no_license
hypertidy/tissot
R
false
true
381
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tissot.R \name{ti_ellipse} \alias{ti_ellipse} \title{Ellipse} \usage{ ti_ellipse(center, axes, scale = 1, n = 36, from = 0, to = 2 * pi) } \arguments{ \item{center}{center} \item{axes}{axes} \item{scale}{scale} \item{n}{n} \item{from}{fro...
testlist <- list(x = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(myTAI:::cpp_geom_mean,testlist) str(result)
/myTAI/inst/testfiles/cpp_geom_mean/AFL_cpp_geom_mean/cpp_geom_mean_valgrind_files/1615840611-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
179
r
testlist <- list(x = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(myTAI:::cpp_geom_mean,testlist) str(result)
calculate_qdProfile <- function(a ,c, g, t){ slider_values <- c(a, c, g, t) # calculate entropy values entropy_0 <- calculate_entropy_0(slider_values) entropy_1 <- calculate_entropy_1(slider_values) entropy_2 <- calculate_entropy_2(slider_values) # convert to q-profile values qd_0 <- entropy_0 + ...
/R/calculate_qdProfile.R
no_license
z5168021/InformationTheory
R
false
false
1,286
r
calculate_qdProfile <- function(a ,c, g, t){ slider_values <- c(a, c, g, t) # calculate entropy values entropy_0 <- calculate_entropy_0(slider_values) entropy_1 <- calculate_entropy_1(slider_values) entropy_2 <- calculate_entropy_2(slider_values) # convert to q-profile values qd_0 <- entropy_0 + ...
leapyear <-function(a) { if (a %% 4 == 0 && (a %% 100 != 0 || a %% 400 == 0)) { return("It is a leap year!") } else { return("It is NOT a leap year!") } }
/leapyear.r
no_license
OSiddiqi/R
R
false
false
172
r
leapyear <-function(a) { if (a %% 4 == 0 && (a %% 100 != 0 || a %% 400 == 0)) { return("It is a leap year!") } else { return("It is NOT a leap year!") } }
/refm/api/src/net/pop.rd
no_license
mrkn/rubydoc
R
false
false
13,785
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GoTheDist.R \name{GoTheDist} \alias{GoTheDist} \title{Calculate the distance matrix between genes based on GO annotation} \usage{ GoTheDist(M, Min = 4, minparents = 8, MinRow = 0, maxthreads = 3, method = "cosine") } \arguments{ \item{M}{ma...
/man/GoTheDist.Rd
no_license
saralinker/GONetwork
R
false
true
678
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GoTheDist.R \name{GoTheDist} \alias{GoTheDist} \title{Calculate the distance matrix between genes based on GO annotation} \usage{ GoTheDist(M, Min = 4, minparents = 8, MinRow = 0, maxthreads = 3, method = "cosine") } \arguments{ \item{M}{ma...
/* File: AppleEvents.r Contains: AppleEvent Package Interfaces. Version: Technology: System 7.5 Release: Universal Interfaces 3.1 Copyright: © 1989-1998 by Apple Computer, Inc., all rights reserved Bugs?: Please include the the file and version information (from above) with the problem des...
/3.1/Universal/Interfaces/RIncludes/AppleEvents.r
no_license
elliotnunn/UniversalInterfaces
R
false
false
4,025
r
/* File: AppleEvents.r Contains: AppleEvent Package Interfaces. Version: Technology: System 7.5 Release: Universal Interfaces 3.1 Copyright: © 1989-1998 by Apple Computer, Inc., all rights reserved Bugs?: Please include the the file and version information (from above) with the problem des...
#' Wizytowka #' #' Funkcja \code{wizytowka_ADPD} tworzy wizytowkę dla strategii. #' Funkcja automatycznie wczytuje nazwę strategii zgodną ze wzorcem strategia_ #' #' @param strategia Tabela gry SuperFarmer. #' @param N Liczba powtorzeń dla ktorych powinna być wykonana. #' #' @return Plik pdf z wynikami strategii. #' ...
/SuperFarmerDA/R/wizytowka_ADPD.R
no_license
ambroziakd/KursRprojekt2
R
false
false
7,191
r
#' Wizytowka #' #' Funkcja \code{wizytowka_ADPD} tworzy wizytowkę dla strategii. #' Funkcja automatycznie wczytuje nazwę strategii zgodną ze wzorcem strategia_ #' #' @param strategia Tabela gry SuperFarmer. #' @param N Liczba powtorzeń dla ktorych powinna być wykonana. #' #' @return Plik pdf z wynikami strategii. #' ...
#to be ran after reseedBoth.R holdoutSet <- c() set <- c() set.ones <- c() set.zeros <- c() #summary(data[,"V8517"]) set <- eval(parse(text=paste("combined.",pairedname, sep = ""))) set.ones <- eval(parse(text=paste("combined.ones.",pairedname, sep = ""))) set.zeros <- eval(parse(text=paste("combined.zeros.",pairedname...
/reseedTest.R
no_license
thistleknot/Capstone-577
R
false
false
4,265
r
#to be ran after reseedBoth.R holdoutSet <- c() set <- c() set.ones <- c() set.zeros <- c() #summary(data[,"V8517"]) set <- eval(parse(text=paste("combined.",pairedname, sep = ""))) set.ones <- eval(parse(text=paste("combined.ones.",pairedname, sep = ""))) set.zeros <- eval(parse(text=paste("combined.zeros.",pairedname...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
/r/R/ChunkedArray.R
permissive
SeppPenner/arrow
R
false
false
2,484
r
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
library(msde) ### Name: sde.drift ### Title: SDE drift function. ### Aliases: sde.drift ### ** Examples # load Heston's model hmod <- sde.examples("hest") # single input x0 <- c(X = log(1000), Z = 0.1) theta <- c(alpha = 0.1, gamma = 1, beta = 0.8, sigma = 0.6, rho = -0.8) sde.drift(model = hmod, x = x0, theta = t...
/data/genthat_extracted_code/msde/examples/sde.drift.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
503
r
library(msde) ### Name: sde.drift ### Title: SDE drift function. ### Aliases: sde.drift ### ** Examples # load Heston's model hmod <- sde.examples("hest") # single input x0 <- c(X = log(1000), Z = 0.1) theta <- c(alpha = 0.1, gamma = 1, beta = 0.8, sigma = 0.6, rho = -0.8) sde.drift(model = hmod, x = x0, theta = t...
# clear the decks rm(list = ls()) source("~/smr_report/globals.r") pth <- path(str_path_repo, "svg", "reconciliation_outlines_b.svg") pth_fixed <- path(str_path_repo, "svg", "reconciliation_outlines_b_fixed.svg") txt <- readLines(pth) vct_0 <- gsub("st0", "sz0", txt) vct_1 <- gsub("st1", "sz1", vct_0) vct_2 <- gs...
/codekit_workings/process_svg.r
no_license
thefactmachine/australia_postcodes
R
false
false
1,872
r
# clear the decks rm(list = ls()) source("~/smr_report/globals.r") pth <- path(str_path_repo, "svg", "reconciliation_outlines_b.svg") pth_fixed <- path(str_path_repo, "svg", "reconciliation_outlines_b_fixed.svg") txt <- readLines(pth) vct_0 <- gsub("st0", "sz0", txt) vct_1 <- gsub("st1", "sz1", vct_0) vct_2 <- gs...
#' Show residuals from groupwise means #' #' Makes a specific format of plot that shows groupwise means and the residuals from those means. #' #' @param data A data frame containing the data to be used #' @param formula A formula `y ~ gp`` specifying the grouping variable (`gp`) and the response variable (`y`) Formul...
/R/draw_groupwise_mod.R
no_license
dtkaplan/mdsint
R
false
false
3,281
r
#' Show residuals from groupwise means #' #' Makes a specific format of plot that shows groupwise means and the residuals from those means. #' #' @param data A data frame containing the data to be used #' @param formula A formula `y ~ gp`` specifying the grouping variable (`gp`) and the response variable (`y`) Formul...
#' Download NLA data from USEPA #' #' @description Retrieves NLA flat files. #' #' @import rappdirs #' @importFrom utils download.file #' @export #' #' @param use_rappdirs logical write files to operating system data directories at the location returned by \code{\link[rappdirs]{user_data_dir}}. #' @param year numeric c...
/R/get.R
no_license
waternk/nlaR
R
false
false
2,534
r
#' Download NLA data from USEPA #' #' @description Retrieves NLA flat files. #' #' @import rappdirs #' @importFrom utils download.file #' @export #' #' @param use_rappdirs logical write files to operating system data directories at the location returned by \code{\link[rappdirs]{user_data_dir}}. #' @param year numeric c...
# 3 Pre-Processing -------------------------------------------------------- # https://topepo.github.io/caret/pre-processing.html # 3.1 Creating Dummy Variables library(earth) data(etitanic) head(model.matrix(survived ~ ., data = etitanic)) # Using dummyVars dummies <- dummyVars(survived ~ ., data = etitanic) ...
/caretBook/Chapter 03 Pre-Processing.R
no_license
PyRPy/ISLR_R
R
false
false
3,392
r
# 3 Pre-Processing -------------------------------------------------------- # https://topepo.github.io/caret/pre-processing.html # 3.1 Creating Dummy Variables library(earth) data(etitanic) head(model.matrix(survived ~ ., data = etitanic)) # Using dummyVars dummies <- dummyVars(survived ~ ., data = etitanic) ...
set.seed(151) n <- 95 X5 <- runif(n, -10, 10) X2 <- sample(c('blue pill', 'red pill'), n, replace=TRUE) X9 <- sample(c(0, 1), n, replace=TRUE) X3 <- sample(c('one fish', 'two fish', 'red fish', 'blue fish'), n, replace=TRUE) X6 <- sample(c('steak', 'chicken', 'mystery meat'), n, replace=TRUE) X8 <- runif(n, -10, 1...
/SkillsQuizzes/modelSandbox.R
no_license
dallincoons/statistics_notebook
R
false
false
2,045
r
set.seed(151) n <- 95 X5 <- runif(n, -10, 10) X2 <- sample(c('blue pill', 'red pill'), n, replace=TRUE) X9 <- sample(c(0, 1), n, replace=TRUE) X3 <- sample(c('one fish', 'two fish', 'red fish', 'blue fish'), n, replace=TRUE) X6 <- sample(c('steak', 'chicken', 'mystery meat'), n, replace=TRUE) X8 <- runif(n, -10, 1...
packages <- c("data.table", "reshape2") sapply(packages, require, character.only=TRUE, quietly=TRUE) path <- getwd() url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(url, file.path(path, "dataFiles.zip")) unzip(zipfile = "dataFiles.zip") activityL...
/run_analysis.R
no_license
swapnil110399/getting-and-cleaning-data
R
false
false
2,313
r
packages <- c("data.table", "reshape2") sapply(packages, require, character.only=TRUE, quietly=TRUE) path <- getwd() url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(url, file.path(path, "dataFiles.zip")) unzip(zipfile = "dataFiles.zip") activityL...
# # Explore Binaca Geetmala songs. # The data was extracted from the website: # https://www.keepaliveusa.com/binacageetmala/year/1953 where they have nicely # compiled songs from 1953 to 1993 # library(dplyr) library(tidyr) library(purrr) library(ggplot2) # load songs data dfr_songs = readRDS(file = "data/so...
/binaca_geetmala/explore_songs.R
permissive
notesofdabbler/misc_projects
R
false
false
1,400
r
# # Explore Binaca Geetmala songs. # The data was extracted from the website: # https://www.keepaliveusa.com/binacageetmala/year/1953 where they have nicely # compiled songs from 1953 to 1993 # library(dplyr) library(tidyr) library(purrr) library(ggplot2) # load songs data dfr_songs = readRDS(file = "data/so...
testthat::context("Missing arguments") # Check Missing NorP testthat::test_that("Expected error messages are returned", { testthat::skip_on_cran() AbdVectorError <- "An argument NorP or Ns must be provided." testthat::expect_error(entropart:::Diversity.AbdVector(), AbdVectorError, ignore.case = TRUE) testthat...
/tests/testthat/testMissingNorP.R
no_license
yangxhcaf/entropart
R
false
false
9,777
r
testthat::context("Missing arguments") # Check Missing NorP testthat::test_that("Expected error messages are returned", { testthat::skip_on_cran() AbdVectorError <- "An argument NorP or Ns must be provided." testthat::expect_error(entropart:::Diversity.AbdVector(), AbdVectorError, ignore.case = TRUE) testthat...
# 分割表解析モデル # テストデータ作成 test1 <- data.frame(gender=rep(1,749), which=rep(1,749)) test2 <- data.frame(gender=rep(1,83), which=rep(2,83)) test3 <- data.frame(gender=rep(2,445), which=rep(1,445)) test4 <- data.frame(gender=rep(2,636), which=rep(2,636)) test <- rbind(test1,test2) test <- rbind(test,test3) test <- rbind(tes...
/catdap.R
no_license
stockedge/CATDAP
R
false
false
3,482
r
# 分割表解析モデル # テストデータ作成 test1 <- data.frame(gender=rep(1,749), which=rep(1,749)) test2 <- data.frame(gender=rep(1,83), which=rep(2,83)) test3 <- data.frame(gender=rep(2,445), which=rep(1,445)) test4 <- data.frame(gender=rep(2,636), which=rep(2,636)) test <- rbind(test1,test2) test <- rbind(test,test3) test <- rbind(tes...
# This script describes the steps required for implementing the ADAS-CogIRT # scoring methodology proposed in paper: # N. Verma, S. N. Beretvas, B. Pascual, J. C. Masdeu, M. K. Markey, "New scoring # improves the sensitivity of the Alzheimer's Disease Assessment Scale-Cognitive # subscale (ADAS-Cog) in clinical trials...
/Codes/ADASCogIRT_code.R
no_license
nishant3115/ADAS-CogIRT-Scoring-Methodology
R
false
false
8,970
r
# This script describes the steps required for implementing the ADAS-CogIRT # scoring methodology proposed in paper: # N. Verma, S. N. Beretvas, B. Pascual, J. C. Masdeu, M. K. Markey, "New scoring # improves the sensitivity of the Alzheimer's Disease Assessment Scale-Cognitive # subscale (ADAS-Cog) in clinical trials...
summary.translogRayEst <- function( object, ... ) { object$coefTable <- coefTable( coef( object ), diag( vcov( object ) )^0.5, df.residual( object$est ) ) class( object ) <- "summary.translogRayEst" return( object ) }
/pkg/micEconDist/R/summary.translogRayEst.R
no_license
scfmolina/micecon
R
false
false
238
r
summary.translogRayEst <- function( object, ... ) { object$coefTable <- coefTable( coef( object ), diag( vcov( object ) )^0.5, df.residual( object$est ) ) class( object ) <- "summary.translogRayEst" return( object ) }
################# plot2.R ################### ## Exploratory Data Analysis: Course Project 2 ################ Question 2 ################# ## Have total emissions from PM2.5 decreased in the Baltimore City, Maryland ## (fips == "24510") from 1999 to 2008? Use the base plotting system to make ## a plot answering this...
/plot2.R
no_license
massovercharge/Course-Project-2
R
false
false
1,069
r
################# plot2.R ################### ## Exploratory Data Analysis: Course Project 2 ################ Question 2 ################# ## Have total emissions from PM2.5 decreased in the Baltimore City, Maryland ## (fips == "24510") from 1999 to 2008? Use the base plotting system to make ## a plot answering this...
### neljas koolitus
/neljas.R
no_license
lumeste/Rkoolitus
R
false
false
21
r
### neljas koolitus
\name{DDT} \docType{methods} \alias{DDT} \alias{DDT,Trace,logical,logical,numeric-method} \alias{DDT,Trace,missing,missing,missing-method} \title{Apply demean, detrend, cosine taper} \description{ The \code{DDT} method of \code{Trace} objects returns a new \code{Trace} where data in the \code{@data} slot have been mo...
/man/DDT.Rd
no_license
cran/IRISSeismic
R
false
false
1,805
rd
\name{DDT} \docType{methods} \alias{DDT} \alias{DDT,Trace,logical,logical,numeric-method} \alias{DDT,Trace,missing,missing,missing-method} \title{Apply demean, detrend, cosine taper} \description{ The \code{DDT} method of \code{Trace} objects returns a new \code{Trace} where data in the \code{@data} slot have been mo...
df <- data.frame('A' = c(1,2,3,4,5), 'B' = c('A','B','C','D','E')) df[1,1] # matrislerdeki gibi satır-sütun olarak seçebiliriz df[1,] df[,1] df[,c(1,2)] # tüm satırlar ile 1 ve 2. sütunları seç df[1:2,] # 1'den başla 2. satıra kadar ve tüm sütunları seç df['A'] # dataframe'in A sütunu (data frame ...
/R/İstatistikVeVeriBilimi/2-)VeriYapılarındaElemanSeçimi/4-)DataFrameler/1-)DataFramelerdeElemanSeçimi.R
no_license
DincerDogan/VeriBilimi
R
false
false
503
r
df <- data.frame('A' = c(1,2,3,4,5), 'B' = c('A','B','C','D','E')) df[1,1] # matrislerdeki gibi satır-sütun olarak seçebiliriz df[1,] df[,1] df[,c(1,2)] # tüm satırlar ile 1 ve 2. sütunları seç df[1:2,] # 1'den başla 2. satıra kadar ve tüm sütunları seç df['A'] # dataframe'in A sütunu (data frame ...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 54582 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 54040 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 54040 c c Input Parameter (command line, ...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Herbstritt/blackbox-01X-QBF/biu.mv.xl_ao.bb-b003-p020-MIF04-c05.blif-biu.inv.prop.bb-bmc.conf01.01X-QBF.BB1-Zi.BB2-01X.BB3-01X.with-IOC.unfold-008/biu.mv.xl_ao.bb-b003-p020-MIF04-c05.blif-biu.inv.prop.bb-bmc.conf01.01X-QBF.BB1-Zi.BB2-01X.BB3-01X.with-IOC.unf...
no_license
arey0pushpa/dcnf-autarky
R
false
false
3,584
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 54582 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 54040 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 54040 c c Input Parameter (command line, ...
library(infutil) ### Name: iota ### Title: Lindley Information (i.e., Information Utility) of Item Response ### Patterns ### Aliases: iota ### Keywords: models ### ** Examples ltm.lsat <- ltm(LSAT~z1, IRT=FALSE) Nu.lsat = nrow(unique(LSAT)) iota(ltm.lsat, data=LSAT, prior=Jeffreys(ltm.lsat)) iota(ltm.lsat, data...
/data/genthat_extracted_code/infutil/examples/iota.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
518
r
library(infutil) ### Name: iota ### Title: Lindley Information (i.e., Information Utility) of Item Response ### Patterns ### Aliases: iota ### Keywords: models ### ** Examples ltm.lsat <- ltm(LSAT~z1, IRT=FALSE) Nu.lsat = nrow(unique(LSAT)) iota(ltm.lsat, data=LSAT, prior=Jeffreys(ltm.lsat)) iota(ltm.lsat, data...
library(httr) original <- read.csv("~/Downloads/Landfills/SD_details.csv", stringsAsFactors = FALSE) raw <- original[1:245,] size <- nrow(raw) # FORMATTING RECYCLING WASTE TYPES recycling <- raw[66:245,] types <- recycling[,18] for (i in seq_along(types)) { line <- strsplit(types[i], split=",") #recycling[i,18...
/states/SD.R
no_license
amhuang/waste-mgmt-research
R
false
false
6,526
r
library(httr) original <- read.csv("~/Downloads/Landfills/SD_details.csv", stringsAsFactors = FALSE) raw <- original[1:245,] size <- nrow(raw) # FORMATTING RECYCLING WASTE TYPES recycling <- raw[66:245,] types <- recycling[,18] for (i in seq_along(types)) { line <- strsplit(types[i], split=",") #recycling[i,18...
#' datamodelr: data model diagrams #' #' Provides a simple structure to describe data models, #' functions to read data model from YAML file, #' and a function to create DiagrammeR graph objects: #' #' #' \itemize{ #' \item \pkg{datamodelr}'s data model object is a simple list of data frames which #' represent th...
/R/dm.R
no_license
demel/datamodelr
R
false
false
15,680
r
#' datamodelr: data model diagrams #' #' Provides a simple structure to describe data models, #' functions to read data model from YAML file, #' and a function to create DiagrammeR graph objects: #' #' #' \itemize{ #' \item \pkg{datamodelr}'s data model object is a simple list of data frames which #' represent th...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SDE_glm.R \name{SDE_glm} \alias{SDE_glm} \title{SDE_tmle_glm} \usage{ SDE_glm(data, forms, RCT = 0.5, transport, pooled, gstar_S = 1, truth, B = NULL, max_iter = 100) } \arguments{ \item{data, }{data.frame where confounders have any names b...
/man/SDE_glm.Rd
no_license
jlstiles/SDEtransportsim
R
false
true
4,439
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SDE_glm.R \name{SDE_glm} \alias{SDE_glm} \title{SDE_tmle_glm} \usage{ SDE_glm(data, forms, RCT = 0.5, transport, pooled, gstar_S = 1, truth, B = NULL, max_iter = 100) } \arguments{ \item{data, }{data.frame where confounders have any names b...
raw_data <- read.csv(file = "data/inflammation.csv", header = FALSE) not_centered_part <- raw_data[, 4]
/inflammation.R
no_license
bjorn-ludwigs-fair-git-r-2019/2019-04-11-FAIR-R-demo
R
false
false
126
r
raw_data <- read.csv(file = "data/inflammation.csv", header = FALSE) not_centered_part <- raw_data[, 4]