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
rm(list=ls()) options(stringsAsFactors = F) setwd("O:/Documents/Projects/EWAS catalog/Catalog/Results/26244061") for (i in list.files()[grepl(".csv",list.files())]){ data <- read.csv(i) data$i2 <- "" data$p_het <- "" data$details <- "" data$se <- round(abs(data$beta/qnorm(data$p/2)),4) data$se[is.n...
/published-ewas/study-files/26244061/26244061.R
permissive
MRCIEU/ewascatalog
R
false
false
485
r
rm(list=ls()) options(stringsAsFactors = F) setwd("O:/Documents/Projects/EWAS catalog/Catalog/Results/26244061") for (i in list.files()[grepl(".csv",list.files())]){ data <- read.csv(i) data$i2 <- "" data$p_het <- "" data$details <- "" data$se <- round(abs(data$beta/qnorm(data$p/2)),4) data$se[is.n...
`slouchtree.plot` <- function (topology, times, names = NULL, regimes = NULL, cex = NULL, lwd=NULL, reg.col=NULL) { if(is.null(cex)) cex<-1; if(is.null(lwd)) lwd<-1; rx <- range(times); rxd <- 0.1*diff(rx); if (is.null(regimes)) regimes <- factor(rep(1,length(topology))); levs <- levels(as.factor(...
/S34_S38_phylogenetic_comparative_methods/scripts/resources/slouch/R/slouchtree.plot.R
no_license
hj1994412/teleost_genomes_immune
R
false
false
1,375
r
`slouchtree.plot` <- function (topology, times, names = NULL, regimes = NULL, cex = NULL, lwd=NULL, reg.col=NULL) { if(is.null(cex)) cex<-1; if(is.null(lwd)) lwd<-1; rx <- range(times); rxd <- 0.1*diff(rx); if (is.null(regimes)) regimes <- factor(rep(1,length(topology))); levs <- levels(as.factor(...
# ui.R - BMI calculator # # AUTHOR # H. Barrientos # # DATE # 2016-06-24 # # DESCRIPTION # This app calculates a person's Body Mass Index, also known as BMI, and visually # reports it to the user via an attention-catching GoogleVis Gauge. The gauge is # preset with using three colors and BMI value ranges re...
/ui.R
no_license
hbarrien/DevelopingDataProducts
R
false
false
3,804
r
# ui.R - BMI calculator # # AUTHOR # H. Barrientos # # DATE # 2016-06-24 # # DESCRIPTION # This app calculates a person's Body Mass Index, also known as BMI, and visually # reports it to the user via an attention-catching GoogleVis Gauge. The gauge is # preset with using three colors and BMI value ranges re...
complete <- function(directory, id=1:332) { obs <- c() i <- 1 for(monitor in id) { data = read.csv(paste(directory, "\\", str_pad(monitor, 3, pad = "0"), ".csv", sep="")) hasObservation <- sum(!is.na(data$sulfate) & !is.na(data$nitrate)) obs...
/r programming/week2/complete.R
no_license
goldenc/datasciencecoursera
R
false
false
422
r
complete <- function(directory, id=1:332) { obs <- c() i <- 1 for(monitor in id) { data = read.csv(paste(directory, "\\", str_pad(monitor, 3, pad = "0"), ".csv", sep="")) hasObservation <- sum(!is.na(data$sulfate) & !is.na(data$nitrate)) obs...
###################### ## Cargar librerías ## ###################### library(readr) # Cargar datos library(dplyr) # Manejo de datos library(tidyr) # Transformación de datos library(stringr) # Manejo de datos tipo texto library(ggplot2) # Visualizar datos ################## ## Cargar datos ## ################## datosON...
/Semana 4 - Manejo de Datos II/Clase04_EjercicioI.R
no_license
pjaguirreh/DataScience_PP
R
false
false
4,833
r
###################### ## Cargar librerías ## ###################### library(readr) # Cargar datos library(dplyr) # Manejo de datos library(tidyr) # Transformación de datos library(stringr) # Manejo de datos tipo texto library(ggplot2) # Visualizar datos ################## ## Cargar datos ## ################## datosON...
library(dplyr) library(Seurat) library(patchwork) pbmc.data <- Read10X(data.dir = "/data/tusers/lixiangr/eRNA/single-cell/hg38/PBMCs/data/filtered_feature_bc_matrix/hg38") # Initialize the Seurat object with the raw (non-normalized data). pbmc <- CreateSeuratObject(counts = pbmc.data, project = "pbmc10k", min.cells = 3...
/human/PMBC/PBMC.R
permissive
Xiangruili-seed/eRNA
R
false
false
5,427
r
library(dplyr) library(Seurat) library(patchwork) pbmc.data <- Read10X(data.dir = "/data/tusers/lixiangr/eRNA/single-cell/hg38/PBMCs/data/filtered_feature_bc_matrix/hg38") # Initialize the Seurat object with the raw (non-normalized data). pbmc <- CreateSeuratObject(counts = pbmc.data, project = "pbmc10k", min.cells = 3...
\name{power.signtest} \alias{power.signtest} \title{Compute power of the sign test} \description{Use the Noether (1987) formula to compute the power of the sign test} \usage{ power.signtest (n, alpha, p) } \arguments{ \item{n}{sample size (scalar)} \item{alpha}{p-value threshold (scalar)} \item{p}{Pr (...
/man/power.signtest.Rd
no_license
cran/FDRsampsize
R
false
false
1,063
rd
\name{power.signtest} \alias{power.signtest} \title{Compute power of the sign test} \description{Use the Noether (1987) formula to compute the power of the sign test} \usage{ power.signtest (n, alpha, p) } \arguments{ \item{n}{sample size (scalar)} \item{alpha}{p-value threshold (scalar)} \item{p}{Pr (...
# packages library(stringr) suppressPackageStartupMessages(library(lubridate)) suppressPackageStartupMessages(library(tidyverse)) library(purrr) library(purrrlyr) suppressPackageStartupMessages(library(twitteR)) library(tidytext) library(e1071) # Get response function, if reply is necessary get_response <- function() ...
/R/04-predict-new-tweet.R
no_license
kahultman/trump-tweets
R
false
false
4,176
r
# packages library(stringr) suppressPackageStartupMessages(library(lubridate)) suppressPackageStartupMessages(library(tidyverse)) library(purrr) library(purrrlyr) suppressPackageStartupMessages(library(twitteR)) library(tidytext) library(e1071) # Get response function, if reply is necessary get_response <- function() ...
setwd("~/GitHub/Spring2018-Project3-spring2018-project3-group10/doc") getwd() # read train dataset load('../output/feature_HOG.RData') label_train <- read.csv('../data/label_train.csv') dat_train <- hog label_train <- label_train[,3] dim(dat_train) # source("../lib/train.R") source("../lib/test.R") source("../lib/cro...
/lib/cross_validation/HOG+svm.R
no_license
wenyuangu/Spring2018-Project3-Group10
R
false
false
793
r
setwd("~/GitHub/Spring2018-Project3-spring2018-project3-group10/doc") getwd() # read train dataset load('../output/feature_HOG.RData') label_train <- read.csv('../data/label_train.csv') dat_train <- hog label_train <- label_train[,3] dim(dat_train) # source("../lib/train.R") source("../lib/test.R") source("../lib/cro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readinput.R \name{readconfig} \alias{readconfig} \title{Read the configuration (.para, .calib) file \code{readconfig}} \usage{ readconfig(file = shud.filein()["md.para"]) } \arguments{ \item{file}{full path of file} } \value{ .para or .calib ...
/man/readconfig.Rd
permissive
SHUD-System/rSHUD
R
false
true
400
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readinput.R \name{readconfig} \alias{readconfig} \title{Read the configuration (.para, .calib) file \code{readconfig}} \usage{ readconfig(file = shud.filein()["md.para"]) } \arguments{ \item{file}{full path of file} } \value{ .para or .calib ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/power_threeway_between.R \name{power_threeway_between} \alias{power_threeway_between} \title{Analytic power calculation for three-way between designs.} \usage{ power_threeway_between(design_result, alpha_level = 0.05) } \arguments{ \item{desi...
/man/power_threeway_between.Rd
permissive
arcaldwell49/Superpower
R
false
true
3,309
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/power_threeway_between.R \name{power_threeway_between} \alias{power_threeway_between} \title{Analytic power calculation for three-way between designs.} \usage{ power_threeway_between(design_result, alpha_level = 0.05) } \arguments{ \item{desi...
seed <- 166 log.wt <- -14.53895858703376 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.r...
/analysis/boot/boot166.R
no_license
patperry/interaction-proc
R
false
false
3,765
r
seed <- 166 log.wt <- -14.53895858703376 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.r...
library(dplyr) state_cds <- c("FL","GA","AL","SC") pCodes = c("00065") dates <- list(start = "2018-10-09 12:00:00") path_to_save <- "vizstorm_sites/michael_data" fetch_sites_from_states <- function(state_cds, dates, pCodes, path_to_save) { # Cast wide net for all NWIS sites with stage data that fall within tha...
/vizstorm_sites/get_raw_data.R
no_license
ldecicco-USGS/viz-scratch
R
false
false
2,568
r
library(dplyr) state_cds <- c("FL","GA","AL","SC") pCodes = c("00065") dates <- list(start = "2018-10-09 12:00:00") path_to_save <- "vizstorm_sites/michael_data" fetch_sites_from_states <- function(state_cds, dates, pCodes, path_to_save) { # Cast wide net for all NWIS sites with stage data that fall within tha...
-## Put comments here that give an overall description of what your -## functions do +## The following Functions that cache the inverse of a matrix +## +## Usage example: +## +## > source('cachematrix.R') +## > m <- makeCacheMatrix(matrix(c(2, 0, 0, 2), c(2, 2))) +## > cacheSolve(m) +## [,1] [,2] +## [1,] 0.5 0.0 +##...
/cachematrix.R
no_license
seethapr/ProgrammingAssignment2
R
false
false
1,452
r
-## Put comments here that give an overall description of what your -## functions do +## The following Functions that cache the inverse of a matrix +## +## Usage example: +## +## > source('cachematrix.R') +## > m <- makeCacheMatrix(matrix(c(2, 0, 0, 2), c(2, 2))) +## > cacheSolve(m) +## [,1] [,2] +## [1,] 0.5 0.0 +##...
library(caret) library(tm) library(SnowballC) library(arm) # Training data. data <- c('BJ Habibie Dikabarkan Meninggal.', 'Dalam postingan tersebut disampaikan bahwa BJ Habibie sudah didampingi anaknya.', 'Sebelumnya BJ Habibie tengah menjalani perawatan di Munich Jerman.', 'Presiden ketig...
/TugasHoax.R
no_license
RohmadSung/tugashoax
R
false
false
5,069
r
library(caret) library(tm) library(SnowballC) library(arm) # Training data. data <- c('BJ Habibie Dikabarkan Meninggal.', 'Dalam postingan tersebut disampaikan bahwa BJ Habibie sudah didampingi anaknya.', 'Sebelumnya BJ Habibie tengah menjalani perawatan di Munich Jerman.', 'Presiden ketig...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{get_cell_count_matrix} \alias{get_cell_count_matrix} \title{Get cell counts from seurat object} \usage{ get_cell_count_matrix(obj, row_var, col_var) } \arguments{ \item{row_var}{meta.data column to group for counts. will be rows...
/man/get_cell_count_matrix.Rd
no_license
standardgalactic/scbp
R
false
true
516
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{get_cell_count_matrix} \alias{get_cell_count_matrix} \title{Get cell counts from seurat object} \usage{ get_cell_count_matrix(obj, row_var, col_var) } \arguments{ \item{row_var}{meta.data column to group for counts. will be rows...
#!/usr/bin/env Rscript # # @license Apache-2.0 # # Copyright (c) 2018 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/r/benchmark.R
permissive
stdlib-js/stdlib
R
false
false
2,854
r
#!/usr/bin/env Rscript # # @license Apache-2.0 # # Copyright (c) 2018 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/env.overlap.R \name{env.overlap} \alias{env.overlap} \title{Calculates overlap between models in environment space using latin hypercube sampling} \usage{ env.overlap(model.1, model.2, env, tolerance = 0.001, max.reps = 10, cor.method = "sp...
/man/env.overlap.Rd
no_license
nmatzke/ENMTools
R
false
true
1,044
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/env.overlap.R \name{env.overlap} \alias{env.overlap} \title{Calculates overlap between models in environment space using latin hypercube sampling} \usage{ env.overlap(model.1, model.2, env, tolerance = 0.001, max.reps = 10, cor.method = "sp...
library("ade4") library("gdata") library("lme4") library("nlme") library("car") library("gplots") library("gdata") library("made4") library("clValid") library("lattice") library("ggplot2") library("reshape2") setwd("~/Documents/2016_02_17 Corps lipidiques MJ/R_analysis") #****** Spectral Counting analysis of protei...
/Script_Lipid_Bodies.R
no_license
AaronMillOro/Lipid_bodies_Streptomyces
R
false
false
8,812
r
library("ade4") library("gdata") library("lme4") library("nlme") library("car") library("gplots") library("gdata") library("made4") library("clValid") library("lattice") library("ggplot2") library("reshape2") setwd("~/Documents/2016_02_17 Corps lipidiques MJ/R_analysis") #****** Spectral Counting analysis of protei...
## load the data rm(list = ls()) data <- read.table("C://Users/Owner/datasciencecoursera/household_power_consumption.txt", header = T, sep = ";", na.strings = "?") # convert the date variable to Date class data$Date <- as.Date(data$Date, format = "%d/%m/%Y") # Subset the data data <- subs...
/Plot2.R
no_license
pce369/ExData_Plotting1
R
false
false
756
r
## load the data rm(list = ls()) data <- read.table("C://Users/Owner/datasciencecoursera/household_power_consumption.txt", header = T, sep = ";", na.strings = "?") # convert the date variable to Date class data$Date <- as.Date(data$Date, format = "%d/%m/%Y") # Subset the data data <- subs...
#' Train an Auxiliary Classifier Generative Adversarial Network (ACGAN) on the #' MNIST dataset. See https://arxiv.org/abs/1610.09585 for more details. #' #' You should start to see reasonable images after ~5 epochs, and good images by #' ~15 epochs. You should use a GPU, as the convolution-heavy operations are #' very...
/website/articles/examples/mnist_acgan.R
no_license
rhalDTU/keras
R
false
false
10,634
r
#' Train an Auxiliary Classifier Generative Adversarial Network (ACGAN) on the #' MNIST dataset. See https://arxiv.org/abs/1610.09585 for more details. #' #' You should start to see reasonable images after ~5 epochs, and good images by #' ~15 epochs. You should use a GPU, as the convolution-heavy operations are #' very...
#https://rstudio-pubs-static.s3.amazonaws.com/265713_cbef910aee7642dc8b62996e38d2825d.html #Solve Chinese problem: https://psmethods.postach.io/post/ru-he-geng-gai-rde-yu-she-yu-xi #Set Language as traditional Chinese Sys.setlocale(category = "LC_ALL", locale = "cht") rm(list=ls(all.names = TRUE)) library(NLP) ...
/Week_4/HW/Chinese_downloaded_txt/Word cloud- Chiang's Dairy.R
no_license
LouieChen16/NTU_CSX_DataScience
R
false
false
3,346
r
#https://rstudio-pubs-static.s3.amazonaws.com/265713_cbef910aee7642dc8b62996e38d2825d.html #Solve Chinese problem: https://psmethods.postach.io/post/ru-he-geng-gai-rde-yu-she-yu-xi #Set Language as traditional Chinese Sys.setlocale(category = "LC_ALL", locale = "cht") rm(list=ls(all.names = TRUE)) library(NLP) ...
# helper function used by FSR() and getPoly() N_distinct <- function(x) if(ncol(as.matrix(x)) == 1) length(unique(x)) else unlist(lapply(x, N_distinct)) #is_continuous <- function(x) if(is.numeric(x)) N_distict(x) > 2 else FALSE is_continuous <- function(x) unlist(lapply(x, is.numeric)) & N_distinct(x) > 2 mod <- func...
/R/helper_functions.R
no_license
radovankavicky/polyreg
R
false
false
14,101
r
# helper function used by FSR() and getPoly() N_distinct <- function(x) if(ncol(as.matrix(x)) == 1) length(unique(x)) else unlist(lapply(x, N_distinct)) #is_continuous <- function(x) if(is.numeric(x)) N_distict(x) > 2 else FALSE is_continuous <- function(x) unlist(lapply(x, is.numeric)) & N_distinct(x) > 2 mod <- func...
# Script for generating the list masks, using specific games as guides # JSONS won't work without making individuals for every repeated form # That is -- a boxscore has an unknown number of players, thus, # we can't do a json level relist, we'd have to one per player (so the bottom of # each list structure, where no m...
/inst/mask_maker.R
no_license
anthonyshook/nhldata
R
false
false
1,996
r
# Script for generating the list masks, using specific games as guides # JSONS won't work without making individuals for every repeated form # That is -- a boxscore has an unknown number of players, thus, # we can't do a json level relist, we'd have to one per player (so the bottom of # each list structure, where no m...
rm(list=ls(all=TRUE)) setwd("~/Downloads/2018_Fall/682/proj") library(R2jags) pbc<-read.csv("https://raw.githubusercontent.com/MLSurvival/ESP/master/ESP_TKDE2016/Dataset/pbc.csv") pbc$drug <- 1*(pbc$treatment==1) pbc$female <- 1*(pbc$sex == 1) pbc$stage4 <- 1*(pbc$stage == 4) pbc$edema1 <- 1*((pbc$edema == 1)|(pbc$ed...
/SpikeSlab.R
no_license
discmagnet/biostat.682.final.project
R
false
false
4,952
r
rm(list=ls(all=TRUE)) setwd("~/Downloads/2018_Fall/682/proj") library(R2jags) pbc<-read.csv("https://raw.githubusercontent.com/MLSurvival/ESP/master/ESP_TKDE2016/Dataset/pbc.csv") pbc$drug <- 1*(pbc$treatment==1) pbc$female <- 1*(pbc$sex == 1) pbc$stage4 <- 1*(pbc$stage == 4) pbc$edema1 <- 1*((pbc$edema == 1)|(pbc$ed...
library(dplyr) library(reshape2) library(stringr) df<-read.csv(file = "O:/Data Dashboard/All Raw Data/Postsecondary Indicators/Enrollment.csv", stringsAsFactors = FALSE) TwoYear<- c("ATA College", "Elizabethtown Community & Technical College", "Jefferson Community and Technical College", "Ivy Tech Community Colle...
/Enrollment.R
no_license
kristopherdelane/55000-Degrees-Dashboard
R
false
false
883
r
library(dplyr) library(reshape2) library(stringr) df<-read.csv(file = "O:/Data Dashboard/All Raw Data/Postsecondary Indicators/Enrollment.csv", stringsAsFactors = FALSE) TwoYear<- c("ATA College", "Elizabethtown Community & Technical College", "Jefferson Community and Technical College", "Ivy Tech Community Colle...
#Unzip file and upload the data. temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) data <- read.table(unz(temp, "household_power_consumption.txt"), header = TRUE, sep=";", na.strings="?") unlink(temp) # Subset the data from the dates 2007-02-...
/plot3.R
no_license
RMBATCHO/ExData_Plotting1
R
false
false
1,280
r
#Unzip file and upload the data. temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) data <- read.table(unz(temp, "household_power_consumption.txt"), header = TRUE, sep=";", na.strings="?") unlink(temp) # Subset the data from the dates 2007-02-...
library(XML) url = "https://au.finance.yahoo.com/q/hp?s=DJIA" # extract all tables on the page tabs = readHTMLTable(url, stringsAsFactors = F) # locate tables containing call and put information call_tab = tabs[[11]] put_tab = tabs[[15]] # parse url into html tree doc = htmlTreeParse(url, useInternalNodes = T)
/web-scrape-yahoo-4.R
no_license
triadicaxis/quickr
R
false
false
316
r
library(XML) url = "https://au.finance.yahoo.com/q/hp?s=DJIA" # extract all tables on the page tabs = readHTMLTable(url, stringsAsFactors = F) # locate tables containing call and put information call_tab = tabs[[11]] put_tab = tabs[[15]] # parse url into html tree doc = htmlTreeParse(url, useInternalNodes = T)
# Benötigte Pakete library(tree) # Klassifizierungsbäume library(randomForest) # Random Forests library(gbm) # Boosting library(rpart) # Recursive Partitioning # Daten einlesen. setwd("D:/Dropbox/Privat/KIT/05_Master/Seminare/Daten") #data.train <- read.csv(file="train.csv") # Der unveränderte Trainingsdatensatz #data...
/Trees_Binär.R
no_license
steffens93/machinelearning
R
false
false
11,066
r
# Benötigte Pakete library(tree) # Klassifizierungsbäume library(randomForest) # Random Forests library(gbm) # Boosting library(rpart) # Recursive Partitioning # Daten einlesen. setwd("D:/Dropbox/Privat/KIT/05_Master/Seminare/Daten") #data.train <- read.csv(file="train.csv") # Der unveränderte Trainingsdatensatz #data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{mapCountries} \alias{mapCountries} \title{World Map of Countries} \format{ A SpatialPolygonsDataFrame } \source{ Made with Natural Earth. \url{http://www5.statcan.gc.ca/cansim/} } \usage{ mapCountries } \descriptio...
/man/mapCountries.Rd
no_license
JGCRI/rmapdata
R
false
true
473
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{mapCountries} \alias{mapCountries} \title{World Map of Countries} \format{ A SpatialPolygonsDataFrame } \source{ Made with Natural Earth. \url{http://www5.statcan.gc.ca/cansim/} } \usage{ mapCountries } \descriptio...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extractCoef.r \name{extract.coef.rxLogit} \alias{extract.coef.rxLogit} \title{extract.coef.rxLogit} \usage{ \method{extract.coef}{rxLogit}(model, ...) } \arguments{ \item{model}{Model object to extract information from.} \item{...}{Further a...
/man/extract.coef.rxLogit.Rd
no_license
xfim/coefplot
R
false
true
779
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extractCoef.r \name{extract.coef.rxLogit} \alias{extract.coef.rxLogit} \title{extract.coef.rxLogit} \usage{ \method{extract.coef}{rxLogit}(model, ...) } \arguments{ \item{model}{Model object to extract information from.} \item{...}{Further a...
skip_on_cran() test_that("tbl_cross- throws error if both `col` and `row`` are not specified", { expect_error( tbl_cross(trial, col = trt), NULL ) expect_error( tbl_cross(trial, row = trt), NULL ) }) test_that("tbl_cross- works if no `col` or `row` specified", { expect_error( tbl_cross(t...
/tests/testthat/test-tbl_cross.R
permissive
mtysar/gtsummary
R
false
false
4,318
r
skip_on_cran() test_that("tbl_cross- throws error if both `col` and `row`` are not specified", { expect_error( tbl_cross(trial, col = trt), NULL ) expect_error( tbl_cross(trial, row = trt), NULL ) }) test_that("tbl_cross- works if no `col` or `row` specified", { expect_error( tbl_cross(t...
################################################################### ### METHYLKIT METHREAD AND FILTERING ### R script to create tabix files of filtered cytosine methylation ### by sequence context ################################################################### # set up environment setwd("/scratch/nia/manuFinal") l...
/2-methylCalling/2.1-methReadandFilter.R
no_license
niahughes/maizemethylation
R
false
false
2,662
r
################################################################### ### METHYLKIT METHREAD AND FILTERING ### R script to create tabix files of filtered cytosine methylation ### by sequence context ################################################################### # set up environment setwd("/scratch/nia/manuFinal") l...
# モンテカルロ積分 # # 重心を求める # p(x) : N([1,1],[1 0.4 0.4 0.7]) + N([3,-1],[1 -0.7 -0.7 0.9]) # h(x) : x # E[h(x)] : xの期待値=重心? library(ggplot2) library(mvtnorm) N=1000 sample <- rbind( rmvnorm( N/2, c(1,1), matrix(c(1, 0.4, 0.4,0.7),2,2) ), rmvnorm( N/2, c(3,-1), matrix(c(1,-0.7,-0.7,0.9),2,2) ) ) h_x <- sa...
/TimeSeries/ex2_center_of_gravity.R
no_license
takechu/study
R
false
false
608
r
# モンテカルロ積分 # # 重心を求める # p(x) : N([1,1],[1 0.4 0.4 0.7]) + N([3,-1],[1 -0.7 -0.7 0.9]) # h(x) : x # E[h(x)] : xの期待値=重心? library(ggplot2) library(mvtnorm) N=1000 sample <- rbind( rmvnorm( N/2, c(1,1), matrix(c(1, 0.4, 0.4,0.7),2,2) ), rmvnorm( N/2, c(3,-1), matrix(c(1,-0.7,-0.7,0.9),2,2) ) ) h_x <- sa...
read_table <- function(filename, params) { params <- subset_by_function(read.table, params) do.call(read.table, c(list(filename), params)) } write_table <- function(obj, filename, params) { if (!is.data.frame(obj)) { stop("Object provided is not a dataframe, cannot write to table format.") } params ...
/R/table.R
permissive
abelcastilloavant/csmpi
R
false
false
530
r
read_table <- function(filename, params) { params <- subset_by_function(read.table, params) do.call(read.table, c(list(filename), params)) } write_table <- function(obj, filename, params) { if (!is.data.frame(obj)) { stop("Object provided is not a dataframe, cannot write to table format.") } params ...
library(ape) testtree <- read.tree("11179_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="11179_0_unrooted.txt")
/codeml_files/newick_trees_processed/11179_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("11179_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="11179_0_unrooted.txt")
# Loading in package. library(dplyr) #Read CSV file Mechacar_df <- read.csv("MechaCar_mpg.csv") # looking at dataframe. head(Mechacar_df) # Performing linear regression Mecha_regression <- lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD, data=Mechacar_df) ...
/MechaCarChallenge.RScript.R
no_license
EBelizor/MechaCar_Statistical_Analysis
R
false
false
1,341
r
# Loading in package. library(dplyr) #Read CSV file Mechacar_df <- read.csv("MechaCar_mpg.csv") # looking at dataframe. head(Mechacar_df) # Performing linear regression Mecha_regression <- lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD, data=Mechacar_df) ...
####phasing with eagle # input: data= path to data to phase in vcf,gz job exec points to eagle2 map= path that points to txt file with genetic map (4 columns) out= path pointing to the # not-yet extistint outputfile reference.vcf= path pointing to referencepanel ref.on= 0 or 1 binary, 0 phases without refpanel, 1...
/functions/eagle.R
no_license
StahlKt/ImputationComparisonPaper2021
R
false
false
3,238
r
####phasing with eagle # input: data= path to data to phase in vcf,gz job exec points to eagle2 map= path that points to txt file with genetic map (4 columns) out= path pointing to the # not-yet extistint outputfile reference.vcf= path pointing to referencepanel ref.on= 0 or 1 binary, 0 phases without refpanel, 1...
# short_term_forecast.R # Copyright 2013 Finlay Scott and Chato Osio # Maintainer: Finlay Scott, JRC, finlay.scott@jrc.ec.europa.eu # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version...
/RefPts_IBP_2019/Scripts/YPR_and_Forecast_New.R
no_license
ices-eg/wk_WKREBUILD
R
false
false
13,729
r
# short_term_forecast.R # Copyright 2013 Finlay Scott and Chato Osio # Maintainer: Finlay Scott, JRC, finlay.scott@jrc.ec.europa.eu # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version...
open.highlighted <- function(){ ctx = rstudioapi::getSourceEditorContext() slct = rstudioapi::getSourceEditorContext()$selection[[1]] # print() a <- slct$text if(a == ""){ a <- "." } rstudioapi::sendToConsole(paste0("system('open ",a,"')"),execute = T) }
/R/open_highlighted.R
no_license
YutongWangUMich/labnotedown
R
false
false
273
r
open.highlighted <- function(){ ctx = rstudioapi::getSourceEditorContext() slct = rstudioapi::getSourceEditorContext()$selection[[1]] # print() a <- slct$text if(a == ""){ a <- "." } rstudioapi::sendToConsole(paste0("system('open ",a,"')"),execute = T) }
doc<-readRDS(file="Datasets/JAGS_DOC_july18.rds") col<-readRDS(file="Datasets/JAGS_Color_july18.rds") tn<-readRDS(file="Datasets/JAGS_TN_july18.rds") tp<-readRDS(file="Datasets/JAGS_TP_july18.rds") no3<-readRDS(file="Datasets/JAGS_NO3_july18.rds") chl<-readRDS(file="Datasets/JAGS_Chla_july18.rds") doc$var="doc" col$va...
/Code/Model/summarize_slopes.R
no_license
limnoliver/LAGOS_DOC
R
false
false
1,098
r
doc<-readRDS(file="Datasets/JAGS_DOC_july18.rds") col<-readRDS(file="Datasets/JAGS_Color_july18.rds") tn<-readRDS(file="Datasets/JAGS_TN_july18.rds") tp<-readRDS(file="Datasets/JAGS_TP_july18.rds") no3<-readRDS(file="Datasets/JAGS_NO3_july18.rds") chl<-readRDS(file="Datasets/JAGS_Chla_july18.rds") doc$var="doc" col$va...
### inc library(plyr) ### par dir <- "/home/datasets/GAIT1/GWAS/SFBR/Impute" ### list dir. like `c4.12001.12500` stopifnot(file.exists(dir)) dirs <- list.dirs(dir, full.names = FALSE, recursive = FALSE) dirs <- grep("^c[1-9]\\.*",dirs, value = TRUE) stopifnot(length(dirs) > 0) ### extract infro. from `dirs` out <- s...
/projects/01-gait1/R/02-gait1-snps.R
no_license
ugcd/solarius
R
false
false
757
r
### inc library(plyr) ### par dir <- "/home/datasets/GAIT1/GWAS/SFBR/Impute" ### list dir. like `c4.12001.12500` stopifnot(file.exists(dir)) dirs <- list.dirs(dir, full.names = FALSE, recursive = FALSE) dirs <- grep("^c[1-9]\\.*",dirs, value = TRUE) stopifnot(length(dirs) > 0) ### extract infro. from `dirs` out <- s...
#!/usr/bin/Rscript # This script was written by Oliver Pain whilst at King's College London University. start.time <- Sys.time() suppressMessages(library("optparse")) option_list = list( make_option("--ref_plink", action="store", default=NA, type='character', help="Path to per chromosome reference PLINK files...
/Scripts/polygenic_score_file_creator_SBLUP/polygenic_score_file_creator_SBLUP.R
no_license
applyfun/GenoPred
R
false
false
8,317
r
#!/usr/bin/Rscript # This script was written by Oliver Pain whilst at King's College London University. start.time <- Sys.time() suppressMessages(library("optparse")) option_list = list( make_option("--ref_plink", action="store", default=NA, type='character', help="Path to per chromosome reference PLINK files...
# The conceptual figures use random draws from SADs. # Therefore they can look slightly different every time you run this script ########################## # load packages and define some function library(tidyverse) library(vegan) library(cowplot) library(mobsim) library(betaC) rarefy_long <- function(x) { if(is...
/conceptual figures/conceptual figures.R
no_license
T-Engel/betaC
R
false
false
16,503
r
# The conceptual figures use random draws from SADs. # Therefore they can look slightly different every time you run this script ########################## # load packages and define some function library(tidyverse) library(vegan) library(cowplot) library(mobsim) library(betaC) rarefy_long <- function(x) { if(is...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hr.R \name{repairHR} \alias{repairHR} \title{clean up HR data for a track} \usage{ repairHR(trackdf, fixHR = TRUE, HRMax = 220, loud = FALSE, ...) } \arguments{ \item{trackdf}{data frame or tibble with gps track data} \item{fixHR}{repair exc...
/man/repairHR.Rd
no_license
CraigMohn/rideReadGPS
R
false
true
1,335
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hr.R \name{repairHR} \alias{repairHR} \title{clean up HR data for a track} \usage{ repairHR(trackdf, fixHR = TRUE, HRMax = 220, loud = FALSE, ...) } \arguments{ \item{trackdf}{data frame or tibble with gps track data} \item{fixHR}{repair exc...
require(shiny) runApp("camino")
/sessions/R/session_202_shiny/Run.R
no_license
arrpak/Master-in-Data-Science-1
R
false
false
35
r
require(shiny) runApp("camino")
# read stopwords from file con = file("arabic_stop_words.txt", open = "r") lines = readLines(con, encoding = "UTF-8") stopw = rep(NA, length(lines)) for (i in 1:length(lines)){ stopw[i] = unlist(strsplit(lines[i], "\t")) } close(con) #since the corpus clean functions don't work on Arabic letters, we need # to u...
/functions/transform-arabic_functions.R
no_license
SebastianKirsch123/ensemble_sentiment_classification
R
false
false
2,996
r
# read stopwords from file con = file("arabic_stop_words.txt", open = "r") lines = readLines(con, encoding = "UTF-8") stopw = rep(NA, length(lines)) for (i in 1:length(lines)){ stopw[i] = unlist(strsplit(lines[i], "\t")) } close(con) #since the corpus clean functions don't work on Arabic letters, we need # to u...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_autodiff.R \name{get_sensitivity} \alias{get_sensitivity} \title{Retrieve a sensitivitiy from autodiff output} \usage{ get_sensitivity(res, numerator, denominator, reshape = T) } \arguments{ \item{res}{Output from *_AD function.} \ite...
/man/get_sensitivity.Rd
no_license
ZhuDanCode/BayesSens
R
false
true
609
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_autodiff.R \name{get_sensitivity} \alias{get_sensitivity} \title{Retrieve a sensitivitiy from autodiff output} \usage{ get_sensitivity(res, numerator, denominator, reshape = T) } \arguments{ \item{res}{Output from *_AD function.} \ite...
#' Fitting semi-parametric shared frailty models with the EM algorithm #' #' @importFrom survival Surv coxph cox.zph #' @importFrom stats approx coef model.frame model.matrix pchisq printCoefmat nlm uniroot cor optimize #' @importFrom magrittr "%>%" #' @importFrom Rcpp evalCpp #' @importFrom Matrix bdiag #' @importFrom...
/R/emfrail.R
no_license
AMeddis/frailtyEM
R
false
false
37,158
r
#' Fitting semi-parametric shared frailty models with the EM algorithm #' #' @importFrom survival Surv coxph cox.zph #' @importFrom stats approx coef model.frame model.matrix pchisq printCoefmat nlm uniroot cor optimize #' @importFrom magrittr "%>%" #' @importFrom Rcpp evalCpp #' @importFrom Matrix bdiag #' @importFrom...
# context("test-subset_cells") # # cds <- load_a549() # # test_that("test subset_along_path error messages work", { # expect_error(cds <- subset_along_path(cds), # "No dimensionality reduction for UMAP calculated. Please run reduce_dimension with reduction_method = UMAP and partition_cells before runni...
/tests/testthat/test-subset_cells.R
permissive
bioturing/monocle3
R
false
false
2,102
r
# context("test-subset_cells") # # cds <- load_a549() # # test_that("test subset_along_path error messages work", { # expect_error(cds <- subset_along_path(cds), # "No dimensionality reduction for UMAP calculated. Please run reduce_dimension with reduction_method = UMAP and partition_cells before runni...
\name{estMargProb} \alias{estMargProb} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Estimated Marginal Probabilities } \description{ Estimates the marginal probability P(T=t|x) based on estimated hazard rates. The hazard rates may or may not depend on covariates. The covariates have to ...
/man/estMargProb.Rd
no_license
imstatsbee/discSurv
R
false
false
2,140
rd
\name{estMargProb} \alias{estMargProb} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Estimated Marginal Probabilities } \description{ Estimates the marginal probability P(T=t|x) based on estimated hazard rates. The hazard rates may or may not depend on covariates. The covariates have to ...
library(shiny) library(tidyverse) library(lubridate) library(plotly) # load the soccer prediction data file <- "https://projects.fivethirtyeight.com/soccer-api/club/spi_matches.csv" football <- read_csv(file = file) # define variables used in the app leagues <- unique(football$league) %>% sort() date_max <- max(foot...
/predictify/app1.R
no_license
lukasklima/shiny_apps
R
false
false
7,315
r
library(shiny) library(tidyverse) library(lubridate) library(plotly) # load the soccer prediction data file <- "https://projects.fivethirtyeight.com/soccer-api/club/spi_matches.csv" football <- read_csv(file = file) # define variables used in the app leagues <- unique(football$league) %>% sort() date_max <- max(foot...
/Logistic Regression University Dropouts (average marginal effects).R
no_license
ManuelaKochRogge/Docs-and-things
R
false
false
2,766
r
library(tidyverse) library(keras) require(gbm) require(data.table) library(pROC) library(rpart) library(ROSE) library(DMwR) # Loading DMwr to balance the unbalanced class # data <- read.csv('./data/carclaims.csv') # glimpse(data) data <- read.csv('./data/Pre-Processed.csv') str(data) # data$MakeGLM <- as.integer(da...
/Health Insurance/03_Undersampled/under_SimpleNN.R
no_license
RohanYashraj/CANN-for-Fraud-Detection
R
false
false
12,325
r
library(tidyverse) library(keras) require(gbm) require(data.table) library(pROC) library(rpart) library(ROSE) library(DMwR) # Loading DMwr to balance the unbalanced class # data <- read.csv('./data/carclaims.csv') # glimpse(data) data <- read.csv('./data/Pre-Processed.csv') str(data) # data$MakeGLM <- as.integer(da...
#!/share/nas2/genome/biosoft/R/2.15.1/lib64/R/bin/Rscript ##################################################################### # Copyright 2015, BMK # # Author:tengh <tengh@biomarker.com.cn> # # Function: draw genomewide cytosine coverage distribution map # # Modify date: 20150819 # Note: delete group label # re...
/bin/lnc_diff/v3.4/bin/draw_anno_cluster/anno_cluster_heatmap2.r
no_license
baibaijingjing/LncRNA
R
false
false
50,463
r
#!/share/nas2/genome/biosoft/R/2.15.1/lib64/R/bin/Rscript ##################################################################### # Copyright 2015, BMK # # Author:tengh <tengh@biomarker.com.cn> # # Function: draw genomewide cytosine coverage distribution map # # Modify date: 20150819 # Note: delete group label # re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/about_you.R \name{get_secret_conversations} \alias{get_secret_conversations} \title{Get any secret conversations} \usage{ get_secret_conversations(folder = "data") } \arguments{ \item{folder}{the name of the data folder (in the project root d...
/man/get_secret_conversations.Rd
no_license
chrisbrownlie/myFacebook
R
false
true
481
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/about_you.R \name{get_secret_conversations} \alias{get_secret_conversations} \title{Get any secret conversations} \usage{ get_secret_conversations(folder = "data") } \arguments{ \item{folder}{the name of the data folder (in the project root d...
# Clear the workspace rm(list = ls()) graphics.off() # Get the chr lengths bai_file.v = system(command = "samtools idxstats /data/illumina_pipeline/aligned_experiments/DM242/dm242.bam", intern = T ) # Convert to a list bai_file.l = strsplit(bai_file.v, split = "\t") # Convert to a dataframe bai_file.df = ...
/scripts/r_scripts/create_genomic_background_feature_file.R
no_license
jbelsky/2015_genes_and_dev_belsky
R
false
false
1,970
r
# Clear the workspace rm(list = ls()) graphics.off() # Get the chr lengths bai_file.v = system(command = "samtools idxstats /data/illumina_pipeline/aligned_experiments/DM242/dm242.bam", intern = T ) # Convert to a list bai_file.l = strsplit(bai_file.v, split = "\t") # Convert to a dataframe bai_file.df = ...
#' Stratified random sample of daphnia counts. #' #' These data are from a stratified random sample from three layers of a lake: epilimnion, thermocline, and hypolimnion. The volumes of these layers are approximately 100kL, 200kL, and 400kL respectively, so that the sampling fractions are 1/7, 2/7, and 4/7, respectivel...
/R/daphniastrat.R
no_license
trobinj/trtools
R
false
false
961
r
#' Stratified random sample of daphnia counts. #' #' These data are from a stratified random sample from three layers of a lake: epilimnion, thermocline, and hypolimnion. The volumes of these layers are approximately 100kL, 200kL, and 400kL respectively, so that the sampling fractions are 1/7, 2/7, and 4/7, respectivel...
\name{sim_data} \docType{data} \alias{sim_data} \title{A simulation dataset of orthologous genes between the different species.} \description{ This data set gives 4149 orthologous genes which include read counts and genes length between the two different species. } \usage{sim_data} \format{A data.frame c...
/man/sim_data.Rd
no_license
FocusPaka/SCBN
R
false
false
583
rd
\name{sim_data} \docType{data} \alias{sim_data} \title{A simulation dataset of orthologous genes between the different species.} \description{ This data set gives 4149 orthologous genes which include read counts and genes length between the two different species. } \usage{sim_data} \format{A data.frame c...
context("filter") test_that("list.is", { x <- list(p1 = list(type = "A", score = list(c1 = 10, c2 = 8)), p2 = list(type = "B", score = list(c1 = 9, c2 = 9)), p3 = list(type = "B", score = list(c1 = 9, c2 = 7))) expect_identical(list.is(x, type == "B"), unlist(lapply(x, function(item) item$type == "B")...
/tests/testthat/test-filter.R
permissive
renkun-ken/rlist
R
false
false
1,207
r
context("filter") test_that("list.is", { x <- list(p1 = list(type = "A", score = list(c1 = 10, c2 = 8)), p2 = list(type = "B", score = list(c1 = 9, c2 = 9)), p3 = list(type = "B", score = list(c1 = 9, c2 = 7))) expect_identical(list.is(x, type == "B"), unlist(lapply(x, function(item) item$type == "B")...
#' Life-table Shape Measures #' #' Get life table shape measures from pace-shape object. #' #' @param pash A pace-shape object. #' @param type Which shape measure should be returned (default \code{"all"})? #' @param harmonized Should the harmonized version of the shape measures be #' returned (default \code{TRUE})? #...
/R/shape_measures.R
no_license
jschoeley/pash
R
false
false
5,777
r
#' Life-table Shape Measures #' #' Get life table shape measures from pace-shape object. #' #' @param pash A pace-shape object. #' @param type Which shape measure should be returned (default \code{"all"})? #' @param harmonized Should the harmonized version of the shape measures be #' returned (default \code{TRUE})? #...
# Extracting Information From Objects Using Names() # original source: http://rforpublichealth.blogspot.com/2013/03/extracting-information-from-objects.html # create some simulated data ID <- 1:10 Age <- c(26, 65, 15, 7, 88, 43, 28, 66 ,45, 12) Sex <- c(1, 0, 1, 1, 0 ,1, 1, 1, 0, 1) Weight <- c(132, 122, 184, 145, 118...
/names.r
no_license
anhnguyendepocen/r-code-examples
R
false
false
1,094
r
# Extracting Information From Objects Using Names() # original source: http://rforpublichealth.blogspot.com/2013/03/extracting-information-from-objects.html # create some simulated data ID <- 1:10 Age <- c(26, 65, 15, 7, 88, 43, 28, 66 ,45, 12) Sex <- c(1, 0, 1, 1, 0 ,1, 1, 1, 0, 1) Weight <- c(132, 122, 184, 145, 118...
#' Create a related item #' #' @export #' #' @param id (character) id of package that the related item should be added to. #' This should be an alphanumeric string. Required. #' @param title (character) Title of the related item. Required. #' @param type (character) The type of the related item. One of API, application...
/R/related_create.R
permissive
HawaDawa/ckanr
R
false
false
1,875
r
#' Create a related item #' #' @export #' #' @param id (character) id of package that the related item should be added to. #' This should be an alphanumeric string. Required. #' @param title (character) Title of the related item. Required. #' @param type (character) The type of the related item. One of API, application...
\name{CPP} \alias{CPP} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Curve Pre-Processor } \description{ The function \code{\link[chipPCR]{CPP}} encompasses a set of functions to pre-process an amplification curve. The pre-processing includes options to normalize curve data, to remov...
/man/CPP.Rd
no_license
devSJR/chipPCR
R
false
false
4,123
rd
\name{CPP} \alias{CPP} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Curve Pre-Processor } \description{ The function \code{\link[chipPCR]{CPP}} encompasses a set of functions to pre-process an amplification curve. The pre-processing includes options to normalize curve data, to remov...
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.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615765567-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,803
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.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
### This script applies PCA to the US corpus readability measures. rm(list=ls()) setwd('C:/Users/SF515-51T/Desktop/CAPS') library(factoextra) library(ggplot2) library(dplyr) library(plyr) # Read in data corpus <- read.csv('benchmark_readability.csv') dim(corpus) # Plot # of observations by year/decade summary(corpu...
/src/benchmark_pca.R
no_license
stevenjmorgan/CAPS
R
false
false
7,352
r
### This script applies PCA to the US corpus readability measures. rm(list=ls()) setwd('C:/Users/SF515-51T/Desktop/CAPS') library(factoextra) library(ggplot2) library(dplyr) library(plyr) # Read in data corpus <- read.csv('benchmark_readability.csv') dim(corpus) # Plot # of observations by year/decade summary(corpu...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/liver.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="mse",alpha=0.65,family="gaussian",standardize=FALSE) sink('./Model/EN/AvgRank/liver/liver_070.txt',append=TRUE)...
/Model/EN/AvgRank/liver/liver_070.R
no_license
leon1003/QSMART
R
false
false
350
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/liver.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="mse",alpha=0.65,family="gaussian",standardize=FALSE) sink('./Model/EN/AvgRank/liver/liver_070.txt',append=TRUE)...
#' Get the PageRank values for all nodes #' #' Get the PageRank values for all nodes in the graph. #' @inheritParams render_graph #' @param directed if \code{TRUE} (the default) then directed paths will be #' considered for directed graphs. This is ignored for undirected graphs. #' @param damping the damping factor. ...
/R/get_pagerank.R
permissive
lionel-/DiagrammeR
R
false
false
1,857
r
#' Get the PageRank values for all nodes #' #' Get the PageRank values for all nodes in the graph. #' @inheritParams render_graph #' @param directed if \code{TRUE} (the default) then directed paths will be #' considered for directed graphs. This is ignored for undirected graphs. #' @param damping the damping factor. ...
#sqlite database connection setwd("D:\") library("RSQLite") db=dbConnect(SQLite(),dbname="ruia.db") dbListTables(db) #it will show all tables dbListFields(db,"summer") #it will show all fields of summer table summer_data= dbGetQuery(db,"select * from summer") winter_data= dbGetQuery(db,"select * from winter") attach(su...
/sqlite_connection.R
no_license
omkargokhale05/R-Project-Air-Pollution-Analysis-
R
false
false
400
r
#sqlite database connection setwd("D:\") library("RSQLite") db=dbConnect(SQLite(),dbname="ruia.db") dbListTables(db) #it will show all tables dbListFields(db,"summer") #it will show all fields of summer table summer_data= dbGetQuery(db,"select * from summer") winter_data= dbGetQuery(db,"select * from winter") attach(su...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uri_functions.R \name{.options} \alias{.options} \alias{carbon-options} \title{concatenate the carbon options to a string} \usage{ .options(self, private, code) } \arguments{ \item{self}{carbon self object} \item{private}{carbon private obje...
/man/options.Rd
permissive
yonicd/carbonate
R
false
true
522
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uri_functions.R \name{.options} \alias{.options} \alias{carbon-options} \title{concatenate the carbon options to a string} \usage{ .options(self, private, code) } \arguments{ \item{self}{carbon self object} \item{private}{carbon private obje...
context("model_matrix_responseless") test_that("testing that we can build a responseless model matrix", { # Making of random data for the test alpha = 1; beta = 0.2; w0 = 0.2; w1 = 0.1; w2 = 0.5; d1 = data.frame(x=rnorm(5), z = rnorm(5)); d1$y = rnorm(5, w0-w1*d1$x+w2*d1$z, 1/beta) m1 = y ~ x + z # Maki...
/tests/testthat/test_model_matrix_responseless.R
no_license
steinunngroa/blm
R
false
false
619
r
context("model_matrix_responseless") test_that("testing that we can build a responseless model matrix", { # Making of random data for the test alpha = 1; beta = 0.2; w0 = 0.2; w1 = 0.1; w2 = 0.5; d1 = data.frame(x=rnorm(5), z = rnorm(5)); d1$y = rnorm(5, w0-w1*d1$x+w2*d1$z, 1/beta) m1 = y ~ x + z # Maki...
reals_formula<-formula(~AppliedAmount+AppliedAmountToIncome+DebtToIncome+FreeCash+LiabilitiesToIncome+NewLoanMonthlyPayment+NewPaymentToIncome+SumOfBankCredits+SumOfOtherCredits-1) ints_formula<-update.formula(reals_formula, . ~ Age+LoanDuration+nr_of_dependants+CountOfBankCredits+CountOfPaydayLoans+CountOfOtherCredits...
/Projects/Bondora/src/bondora_logistic.R
no_license
seanv507/lendico
R
false
false
6,764
r
reals_formula<-formula(~AppliedAmount+AppliedAmountToIncome+DebtToIncome+FreeCash+LiabilitiesToIncome+NewLoanMonthlyPayment+NewPaymentToIncome+SumOfBankCredits+SumOfOtherCredits-1) ints_formula<-update.formula(reals_formula, . ~ Age+LoanDuration+nr_of_dependants+CountOfBankCredits+CountOfPaydayLoans+CountOfOtherCredits...
DDPCA_nonconvex <- function(Sigma,K,max_iter_nonconvex = 15,SDD_approx = TRUE, max_iter_SDD = 20,eps = NA){ S = Sigma for (i in 1:max_iter_nonconvex){ eig_object = eigs(Sigma,K) if (K>1){ D = diag(eig_object$values) } else { D = eig_object$values } V = eig_object$vectors L = V%*%...
/R/DDPCA_nonconvex.R
no_license
cran/ddpca
R
false
false
532
r
DDPCA_nonconvex <- function(Sigma,K,max_iter_nonconvex = 15,SDD_approx = TRUE, max_iter_SDD = 20,eps = NA){ S = Sigma for (i in 1:max_iter_nonconvex){ eig_object = eigs(Sigma,K) if (K>1){ D = diag(eig_object$values) } else { D = eig_object$values } V = eig_object$vectors L = V%*%...
#' Filled Density Plot #' #' Create a simple and beautiful distribution plot #' @param data the dataset in which is stored the variable to plot #' @param x an integer, indicating the index of the column you want to visualise the distribution #' @param col A string, indicating the color of the plot. Default is 'orange'....
/R/plot_distribution.R
no_license
DavideCannata/cutR
R
false
false
622
r
#' Filled Density Plot #' #' Create a simple and beautiful distribution plot #' @param data the dataset in which is stored the variable to plot #' @param x an integer, indicating the index of the column you want to visualise the distribution #' @param col A string, indicating the color of the plot. Default is 'orange'....
# Allochthony model for labeled lakes: Paul Lake 2001 # Stephen R. Carpenter, 2015-09-19 rm(list = ls()) graphics.off() library(numDeriv) # Functions for phytoplankton ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # Integrated irradiance effect for phytoplankton growth GAMMA.fun <- function(z,Pbar,dz) { e...
/ProgramExample_PaulLake2001+Pgrad_2015-09-19.R
no_license
SRCarpen/ATZ_Cascade
R
false
false
11,285
r
# Allochthony model for labeled lakes: Paul Lake 2001 # Stephen R. Carpenter, 2015-09-19 rm(list = ls()) graphics.off() library(numDeriv) # Functions for phytoplankton ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # Integrated irradiance effect for phytoplankton growth GAMMA.fun <- function(z,Pbar,dz) { e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/guardduty_operations.R \name{guardduty_create_sample_findings} \alias{guardduty_create_sample_findings} \title{Generates example findings of types specified by the list of finding types} \usage{ guardduty_create_sample_findings(DetectorId, Fi...
/cran/paws.security.identity/man/guardduty_create_sample_findings.Rd
permissive
peoplecure/paws
R
false
true
865
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/guardduty_operations.R \name{guardduty_create_sample_findings} \alias{guardduty_create_sample_findings} \title{Generates example findings of types specified by the list of finding types} \usage{ guardduty_create_sample_findings(DetectorId, Fi...
#' @title Cross validation, n-fold for generalized boosted regression modeling (gbm) #' #' @description This function is a cross validation function for generalized #' boosted regression modeling. #' #' @param trainx a dataframe or matrix contains columns of predictive variables. #' @param trainy a vector of resp...
/R/gbmcv.R
no_license
cran/spm
R
false
false
7,048
r
#' @title Cross validation, n-fold for generalized boosted regression modeling (gbm) #' #' @description This function is a cross validation function for generalized #' boosted regression modeling. #' #' @param trainx a dataframe or matrix contains columns of predictive variables. #' @param trainy a vector of resp...
library('zoo') is.normal=function(dataset){ if((class(dataset)!="numeric")&&(class(dataset)!="integer")){ stop("Class of dataset must be numeric or integer") } #plot histogram of dataset p1=hist(dataset,right=FALSE,ann=FALSE,density=20) title(main=paste("Histogram of", deparse(substitute(dataset))),ylab="Frequency",x...
/is.normal.R
no_license
kwachs/data-visualization-package
R
false
false
1,293
r
library('zoo') is.normal=function(dataset){ if((class(dataset)!="numeric")&&(class(dataset)!="integer")){ stop("Class of dataset must be numeric or integer") } #plot histogram of dataset p1=hist(dataset,right=FALSE,ann=FALSE,density=20) title(main=paste("Histogram of", deparse(substitute(dataset))),ylab="Frequency",x...
\docType{package} \name{dxR-package} \alias{dxR} \alias{dxR-package} \title{DNAnexus R Client Library} \description{ dxR is an R extension containing API wrapper functions for interacting with the new DNAnexus platform. } \details{ \tabular{ll}{ Package: \tab dxR\cr Type: \tab Package\cr Version: \tab 0.185.0\c...
/src/R/dxR/man/dxR-package.Rd
permissive
storozhilov/dx-toolkit
R
false
false
446
rd
\docType{package} \name{dxR-package} \alias{dxR} \alias{dxR-package} \title{DNAnexus R Client Library} \description{ dxR is an R extension containing API wrapper functions for interacting with the new DNAnexus platform. } \details{ \tabular{ll}{ Package: \tab dxR\cr Type: \tab Package\cr Version: \tab 0.185.0\c...
############################################################################### ## Script: run_analysis.R ## This script downloads data files used to train and test human activity recognition ## using smartphones. It converts the data into a tidy dataset, extracts the ## mean and standard deviation variables, and writ...
/run_analysis.R
no_license
serendipicat/GCDataCourseProject
R
false
false
6,329
r
############################################################################### ## Script: run_analysis.R ## This script downloads data files used to train and test human activity recognition ## using smartphones. It converts the data into a tidy dataset, extracts the ## mean and standard deviation variables, and writ...
rm(list = setdiff(ls(), "nycm")) rm(list = ls()) gc() ############# ##| Setup |## ############# # Load Selenium # require("RSelenium") require("data.table") # Start driver # Dr <- rsDriver(port = 4344L, browser = c("chrome"), chromever = "86.0.4240.22") # Start remote driver # nycm.Re...
/nyrrScraper2.R
no_license
ibeforev/NyrrMarathonScraper
R
false
false
20,308
r
rm(list = setdiff(ls(), "nycm")) rm(list = ls()) gc() ############# ##| Setup |## ############# # Load Selenium # require("RSelenium") require("data.table") # Start driver # Dr <- rsDriver(port = 4344L, browser = c("chrome"), chromever = "86.0.4240.22") # Start remote driver # nycm.Re...
library(git2r) ### Name: branch_delete ### Title: Delete a branch ### Aliases: branch_delete ### ** Examples ## Not run: ##D ## Initialize a temporary repository ##D path <- tempfile(pattern="git2r-") ##D dir.create(path) ##D repo <- init(path) ##D ##D ## Create a user and commit a file ##D config(repo, user.name...
/data/genthat_extracted_code/git2r/examples/branch_delete.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
702
r
library(git2r) ### Name: branch_delete ### Title: Delete a branch ### Aliases: branch_delete ### ** Examples ## Not run: ##D ## Initialize a temporary repository ##D path <- tempfile(pattern="git2r-") ##D dir.create(path) ##D repo <- init(path) ##D ##D ## Create a user and commit a file ##D config(repo, user.name...
context("stability") # We check that the results from stability using prof = FALSE and prof = TRUE # are identical. # Set a tolerance for the comparison of the simulated values my_tol <- 1e-5 n <- 500 seed <- 29082017 test_data <- revdbayes::rgp(n) u_vec <- quantile(test_data, probs = seq(0.05, 0.95, ...
/tests/testthat/test-stability.R
no_license
cran/threshr
R
false
false
571
r
context("stability") # We check that the results from stability using prof = FALSE and prof = TRUE # are identical. # Set a tolerance for the comparison of the simulated values my_tol <- 1e-5 n <- 500 seed <- 29082017 test_data <- revdbayes::rgp(n) u_vec <- quantile(test_data, probs = seq(0.05, 0.95, ...
# Correlated features - only works for numeric, can discard 3, not useful corMatr <- cor(training[,num_predictors]) highlyCorrelated <- findCorrelation(corMatr, cutoff=.75) # Boruta feature selection boruta.train <- Boruta(SalePrice~., data = training, doTrace = 2, ) b <- boruta.train$finalDecision confirmed <- names(...
/feature_selection.R
no_license
dmitrytoda/houseprice
R
false
false
643
r
# Correlated features - only works for numeric, can discard 3, not useful corMatr <- cor(training[,num_predictors]) highlyCorrelated <- findCorrelation(corMatr, cutoff=.75) # Boruta feature selection boruta.train <- Boruta(SalePrice~., data = training, doTrace = 2, ) b <- boruta.train$finalDecision confirmed <- names(...
# load the package library(MicroPlate) library(testthat) library(plyr) # # Test MicroPlate.R # # # test_that("MicroPlate.R_$_tests",{ # file=paste(getwd(),"/tests/testdata/parsers/novostar.xls/KineticData.xls",sep="") file=paste(getwd(),"/../testdata/parsers/novostar.xls/KineticData.xls",sep="") testData=novostar...
/tests/testthat/test_MicroPlate.R
no_license
phonixor/MicroPlate
R
false
false
15,161
r
# load the package library(MicroPlate) library(testthat) library(plyr) # # Test MicroPlate.R # # # test_that("MicroPlate.R_$_tests",{ # file=paste(getwd(),"/tests/testdata/parsers/novostar.xls/KineticData.xls",sep="") file=paste(getwd(),"/../testdata/parsers/novostar.xls/KineticData.xls",sep="") testData=novostar...
# LOAD DATA ---- data(iris) plot(iris) # SCALE DATA ---- irisScaled <- scale(iris[, -5]) # K-MEANS CLUSTERING ---- ## CLUSTERING fitK <- kmeans(irisScaled[, -5], 3) fitK str(fitK) fitK$cluster plot(iris, col = fitK$cluster) ## CHOOSING K k <- list() for(i in 1:10){ k[[i]] <- kmeans(irisScaled[,1:...
/04 Cluster analysis.R
no_license
muhsinilHaq/Cluster-Analisys
R
false
false
1,143
r
# LOAD DATA ---- data(iris) plot(iris) # SCALE DATA ---- irisScaled <- scale(iris[, -5]) # K-MEANS CLUSTERING ---- ## CLUSTERING fitK <- kmeans(irisScaled[, -5], 3) fitK str(fitK) fitK$cluster plot(iris, col = fitK$cluster) ## CHOOSING K k <- list() for(i in 1:10){ k[[i]] <- kmeans(irisScaled[,1:...
/TTR_Interpolation/1_ParticalSwarm_NerualNetwork_origin.R
no_license
onthejeep/TTR_Interpolation
R
false
false
15,239
r
####################################################################################### # Analysis 1 for Manuscript: A 2x2 factorial randomized controlled trial of rhetorical training and s... ####################################################################################### #setting environment ------------------...
/analysis1.R
no_license
ecacarva/UEM_2x2
R
false
false
2,071
r
####################################################################################### # Analysis 1 for Manuscript: A 2x2 factorial randomized controlled trial of rhetorical training and s... ####################################################################################### #setting environment ------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.rekognition_operations.R \name{start_stream_processor} \alias{start_stream_processor} \title{Starts processing a stream processor} \usage{ start_stream_processor(Name) } \arguments{ \item{Name}{[required] The name of the stream processor...
/service/paws.rekognition/man/start_stream_processor.Rd
permissive
CR-Mercado/paws
R
false
true
720
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.rekognition_operations.R \name{start_stream_processor} \alias{start_stream_processor} \title{Starts processing a stream processor} \usage{ start_stream_processor(Name) } \arguments{ \item{Name}{[required] The name of the stream processor...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 45472 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 45472 c c Input Parameter (command line, file): c input filename QBFLIB/Biere/tipfixpoint/nusmv.tcas^3.B-f3.qdimacs c output f...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Biere/tipfixpoint/nusmv.tcas^3.B-f3/nusmv.tcas^3.B-f3.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
641
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 45472 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 45472 c c Input Parameter (command line, file): c input filename QBFLIB/Biere/tipfixpoint/nusmv.tcas^3.B-f3.qdimacs c output f...
#!/usr/bin/env Rscript require(dplyr) require(data.table) args=commandArgs(trailingOnly = T) if (length(args)<2) { stop("Usage is: ./gtf_to_exons.R input.gtf.gz output.txt.gz") } cat("Reading in ",args[1],"\n") gtf=fread(cmd=paste("zcat <", args[1]), data.table = F, col.names=c("chr","source","feature","start","e...
/scripts/gtf_to_exons.R
permissive
davidaknowles/leafcutter
R
false
false
1,519
r
#!/usr/bin/env Rscript require(dplyr) require(data.table) args=commandArgs(trailingOnly = T) if (length(args)<2) { stop("Usage is: ./gtf_to_exons.R input.gtf.gz output.txt.gz") } cat("Reading in ",args[1],"\n") gtf=fread(cmd=paste("zcat <", args[1]), data.table = F, col.names=c("chr","source","feature","start","e...
df<- read.csv("~/Downloads/Seattle_Real_Time_Fire_911_Calls.csv") library(plyr) df$Type <- as.character(df$Type) df$Datetime <- as.character(df$Datetime) df <- df[2:nrow(df),] df$Datetime <- gsub("[ ][+]0{4}","", df$Datetime) df$Datetime <- as.POSIXct(df$Datetime,format = "%m/%d/%Y %I:%M:%S %p") df$Date <- as.Date...
/lecture-05/Untitled.R
no_license
RaiyanK/data-science
R
false
false
1,381
r
df<- read.csv("~/Downloads/Seattle_Real_Time_Fire_911_Calls.csv") library(plyr) df$Type <- as.character(df$Type) df$Datetime <- as.character(df$Datetime) df <- df[2:nrow(df),] df$Datetime <- gsub("[ ][+]0{4}","", df$Datetime) df$Datetime <- as.POSIXct(df$Datetime,format = "%m/%d/%Y %I:%M:%S %p") df$Date <- as.Date...
# v1.5.1 # This program creates an MDS model of the given data and plots it and # goodness-of-fit statistics in several forms. The data should be given as a # CSV file, with the first column containing the names of what each row is, and # with the first row containing column headers. # # Several files will be generate...
/MDS.R
no_license
sparemind/MDS-Modeling-Tools
R
false
false
4,632
r
# v1.5.1 # This program creates an MDS model of the given data and plots it and # goodness-of-fit statistics in several forms. The data should be given as a # CSV file, with the first column containing the names of what each row is, and # with the first row containing column headers. # # Several files will be generate...
#plots sample comparisons of MSG based retrieval and GPM. #A color composite is printed as well and must currently manually be inserted into #the overall plot library(rgdal) library(raster) library(viridis) library(Rsenal) library(latticeExtra) dates <- c("2014042410") saturationpoint <- 10 mainpath <- "/media/memory...
/IDESSA/develop_SA_retrieval/Review/sampleimage_review.R
no_license
environmentalinformatics-marburg/magic
R
false
false
3,863
r
#plots sample comparisons of MSG based retrieval and GPM. #A color composite is printed as well and must currently manually be inserted into #the overall plot library(rgdal) library(raster) library(viridis) library(Rsenal) library(latticeExtra) dates <- c("2014042410") saturationpoint <- 10 mainpath <- "/media/memory...
library(readr) library(dplyr) house_power <- read_delim("/Users/whoyos21/Downloads/Course_4_Exploratory_Data_Analysis_with_R/Week_1/Project_1/household_power_consumption.txt", ";", escape_double = FALSE, trim_ws = TRUE) house_power$Date <- as.Date(house_power$Date, "%d/%m/%Y") house_power_...
/plot2.R
no_license
whoyos21/ExData_Plotting1
R
false
false
815
r
library(readr) library(dplyr) house_power <- read_delim("/Users/whoyos21/Downloads/Course_4_Exploratory_Data_Analysis_with_R/Week_1/Project_1/household_power_consumption.txt", ";", escape_double = FALSE, trim_ws = TRUE) house_power$Date <- as.Date(house_power$Date, "%d/%m/%Y") house_power_...
# Exercise 1: working with data frames (review) # Install devtools package: allows installations from GitHub install.packages("devtools") # Install "fueleconomy" dataset from GitHub devtools::install_github("hadley/fueleconomy") # Use the `libary()` function to load the "fueleconomy" package library(fueleconomy) # ...
/chapter-11-exercises/exercise-1/exercise.R
permissive
njkpark/book-exercises
R
false
false
2,373
r
# Exercise 1: working with data frames (review) # Install devtools package: allows installations from GitHub install.packages("devtools") # Install "fueleconomy" dataset from GitHub devtools::install_github("hadley/fueleconomy") # Use the `libary()` function to load the "fueleconomy" package library(fueleconomy) # ...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AWS Transfer Family #' #' @description #' AWS Transfer Family is a fully managed service that enables the transfer #' of files over the the File Transfer Protocol (FTP), File Transfer ...
/paws/R/transfer_service.R
permissive
jcheng5/paws
R
false
false
5,316
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' AWS Transfer Family #' #' @description #' AWS Transfer Family is a fully managed service that enables the transfer #' of files over the the File Transfer Protocol (FTP), File Transfer ...
################# Calculations ################# 2 + 3*5^2 2^3^5 3*exp(1)^5 + 2 1.4e-2 log2(33554432) sin(pi/2) ################# Objects and Assignment ############### vec <- c("a", "b") vec <- c(3, 7, 11, 15) u <- 1:10 x <- sample(1:99, 10) ################## Vectors ############...
/R_Introductions.R
no_license
FSwoboda93/Business_Intelligence_and_Analytics
R
false
false
5,119
r
################# Calculations ################# 2 + 3*5^2 2^3^5 3*exp(1)^5 + 2 1.4e-2 log2(33554432) sin(pi/2) ################# Objects and Assignment ############### vec <- c("a", "b") vec <- c(3, 7, 11, 15) u <- 1:10 x <- sample(1:99, 10) ################## Vectors ############...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/radial_phylo.R \name{add_phylo_outer_rings} \alias{add_phylo_outer_rings} \title{Add rings to a PhyloXML} \usage{ add_phylo_outer_rings(xml_file, seqs, d_clean, seqs_col, rings, condensed) } \arguments{ \item{xml_file}{A path to a Phy...
/man/add_phylo_outer_rings.Rd
permissive
mma5usf/receptormarker
R
false
false
2,376
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/radial_phylo.R \name{add_phylo_outer_rings} \alias{add_phylo_outer_rings} \title{Add rings to a PhyloXML} \usage{ add_phylo_outer_rings(xml_file, seqs, d_clean, seqs_col, rings, condensed) } \arguments{ \item{xml_file}{A path to a Phy...
# install.packages('xlsx') # CD: for my benefit # install.packages('dplyr') library(XLConnect) library(dplyr) library(xlsx) #let's create the worksheet to which we will write our data results <- xlsx::createWorkbook() # we create files for the individuals sheets y1952 <- read.xlsx("British_Empire....
/british_empire.R
no_license
rvpasari/British-Empire-Data-
R
false
false
1,934
r
# install.packages('xlsx') # CD: for my benefit # install.packages('dplyr') library(XLConnect) library(dplyr) library(xlsx) #let's create the worksheet to which we will write our data results <- xlsx::createWorkbook() # we create files for the individuals sheets y1952 <- read.xlsx("British_Empire....