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
#library loading library(rio) library(dplyr) library(ggplot2) library(energy) # import cash_flows dataset cash_flow_report <- import("data/cash_flow.csv") cash_flow_report %>% select(cash_flow) %>% unlist() %>% fivenum() cash_flow_report %>% select(cash_flow) %>% unlist() %>% IQR() cash_flow_rep...
/R-Data-Mining-master/Chapter06/chapter_6.R
permissive
cyrsis/RSandBox
R
false
false
3,483
r
#library loading library(rio) library(dplyr) library(ggplot2) library(energy) # import cash_flows dataset cash_flow_report <- import("data/cash_flow.csv") cash_flow_report %>% select(cash_flow) %>% unlist() %>% fivenum() cash_flow_report %>% select(cash_flow) %>% unlist() %>% IQR() cash_flow_rep...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setdiff2.R \name{setdiff2} \alias{setdiff2} \title{Differences between sets a and b} \usage{ setdiff2(a, b) } \arguments{ \item{a}{Required vector} \item{b}{Required vector} } \value{ Vector of elements } \description{ Returns the elements t...
/man/setdiff2.Rd
no_license
ejanalysis/analyze.stuff
R
false
true
543
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setdiff2.R \name{setdiff2} \alias{setdiff2} \title{Differences between sets a and b} \usage{ setdiff2(a, b) } \arguments{ \item{a}{Required vector} \item{b}{Required vector} } \value{ Vector of elements } \description{ Returns the elements t...
c6bb0c0247ec032a9f824b42d8c5c4e6 query04_query25_1344n.qdimacs 441 1259
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query04_query25_1344n/query04_query25_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
71
r
c6bb0c0247ec032a9f824b42d8c5c4e6 query04_query25_1344n.qdimacs 441 1259
library(ggplot2) data = read.table("/lustre/scr/y/o/yourston/pitcher_plant/mttoolbox_otus/rarefy_alpha_div_test.txt", header=T) metric = "PD_whole_tree" #metric = "chao1" data = data[data$rare_level == 50000,] data = data[data$metric == metric,] data = data[data$rep == 1,] meta = read.table("/lustre/scr/y/o/you...
/make_alpha_div_fig.R
no_license
islandhopper81/pitcher_plant_utils
R
false
false
1,698
r
library(ggplot2) data = read.table("/lustre/scr/y/o/yourston/pitcher_plant/mttoolbox_otus/rarefy_alpha_div_test.txt", header=T) metric = "PD_whole_tree" #metric = "chao1" data = data[data$rare_level == 50000,] data = data[data$metric == metric,] data = data[data$rep == 1,] meta = read.table("/lustre/scr/y/o/you...
# Module UI #' @title mod_about_page_ui and mod_about_page_server #' @description A shiny Module. #' #' @param id shiny id #' @param input internal #' @param output internal #' @param session internal #' #' @rdname mod_about_page #' #' @keywords internal #' @export #' @importFrom shiny NS tagList mod_about_page_u...
/R/mod_about_page.R
no_license
Sage-Bionetworks/projectLive_HTAN
R
false
false
2,061
r
# Module UI #' @title mod_about_page_ui and mod_about_page_server #' @description A shiny Module. #' #' @param id shiny id #' @param input internal #' @param output internal #' @param session internal #' #' @rdname mod_about_page #' #' @keywords internal #' @export #' @importFrom shiny NS tagList mod_about_page_u...
#Multiple Linear Regression getwd() vehicle <- read.csv('vehicle.csv') str(vehicle) library(psych) pairs.panels(vehicle) vehicle_plot <- vehicle[,c('Mileage', 'lh','lc')] pairs.panels(vehicle_plot) vehicle_plot2 <- vehicle[,c('State', 'lh','lc')] pairs.panels(vehicle_plot2) names(vehicle) results <- lm(lc ~ State+lh...
/Multiple Linear Regression - Vehicle.R
no_license
Abhi062017/Uptill-Nov
R
false
false
561
r
#Multiple Linear Regression getwd() vehicle <- read.csv('vehicle.csv') str(vehicle) library(psych) pairs.panels(vehicle) vehicle_plot <- vehicle[,c('Mileage', 'lh','lc')] pairs.panels(vehicle_plot) vehicle_plot2 <- vehicle[,c('State', 'lh','lc')] pairs.panels(vehicle_plot2) names(vehicle) results <- lm(lc ~ State+lh...
# AutoReport Typed Report Panel Set navlistPanel("Student Response Scoring", tabPanel("Score Summary", tabsetPanel( tabPanel("Score Distribution", textOutput("summaryStatement"), ...
/AutoReport/UIPanels/reportPanelsTyped.R
no_license
BeyondMultipleChoice/AACRAutoReport
R
false
false
2,717
r
# AutoReport Typed Report Panel Set navlistPanel("Student Response Scoring", tabPanel("Score Summary", tabsetPanel( tabPanel("Score Distribution", textOutput("summaryStatement"), ...
### MixSIAR Model for southern California stable isotope data ### Andrew D. Somerville ### Using r package, MixSIar ### Stock, B. C., Jackson, A. L., Ward, E. J., Parnell, A. C., Phillips, D. L., & Semmens, B. X. (2018). Analyzing mixing systems using a new generation of Bayesian tracer mixing models. PeerJ, 6, e50...
/MixSIAR_SoCal_CONSUMER_20201019.R
no_license
ISU-LunchinatoRs/S21_California_Paleodiet
R
false
false
5,212
r
### MixSIAR Model for southern California stable isotope data ### Andrew D. Somerville ### Using r package, MixSIar ### Stock, B. C., Jackson, A. L., Ward, E. J., Parnell, A. C., Phillips, D. L., & Semmens, B. X. (2018). Analyzing mixing systems using a new generation of Bayesian tracer mixing models. PeerJ, 6, e50...
/code/name_shuju_fin_result_model3.R
no_license
MIALAB-RUC/Trimer
R
false
false
4,210
r
# download data setwd("/Users/FTS/Desktop/Coursera/04_Exploratory_Data_Analysis/scripts") fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileUrl, destfile="./data/download001.zip", method="curl") list.files("./data") # unzip data unzip("./data/download0...
/Scripts/plot2.R
no_license
mbernstein9/datasciencecoursera4
R
false
false
1,042
r
# download data setwd("/Users/FTS/Desktop/Coursera/04_Exploratory_Data_Analysis/scripts") fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileUrl, destfile="./data/download001.zip", method="curl") list.files("./data") # unzip data unzip("./data/download0...
## ORGANIZE DATA #### # Duration data_duration_so_ana = data_duration_so %>% # Filter to only English-English and Japanese-Japanese tokens filter((lang_pre == "eng" & lang_post == "eng") | (lang_pre == "jap" & lang_post == "jap")) %>% # Center percent exposure on 50% mutate(eng_percent_centered = eng_percent - ...
/phonetic_analysis/scripts/so/phonetics_so_analyses_exposure.R
no_license
pagepiccinini/cs-japanese-english
R
false
false
5,518
r
## ORGANIZE DATA #### # Duration data_duration_so_ana = data_duration_so %>% # Filter to only English-English and Japanese-Japanese tokens filter((lang_pre == "eng" & lang_post == "eng") | (lang_pre == "jap" & lang_post == "jap")) %>% # Center percent exposure on 50% mutate(eng_percent_centered = eng_percent - ...
\name{qtime} \alias{qtime} \title{Draw a time plot} \usage{ qtime(time, y, data, period = NULL, group = NULL, wrap = TRUE, shift = c(1, 7, 12, 24), size = 2, alpha = 1, asp = NULL, main = NULL, xlab = NULL, ylab = NULL) } \arguments{ \item{time}{The variable indicating time, which is displayed on the hori...
/man/qtime.Rd
no_license
NickSpyrison/cranvas
R
false
false
5,397
rd
\name{qtime} \alias{qtime} \title{Draw a time plot} \usage{ qtime(time, y, data, period = NULL, group = NULL, wrap = TRUE, shift = c(1, 7, 12, 24), size = 2, alpha = 1, asp = NULL, main = NULL, xlab = NULL, ylab = NULL) } \arguments{ \item{time}{The variable indicating time, which is displayed on the hori...
library("knitr") library("rgl") #knit("HOCN.Rmd") #markdownToHTML('HOCN.md', 'HOCN.html', options=c("use_xhml")) #system("pandoc -s HOCN.html -o HOCN.pdf") knit2html('HOCN.Rmd')
/FDA_Pesticide_Glossary/HOCN.R
permissive
andrewdefries/andrewdefries.github.io
R
false
false
180
r
library("knitr") library("rgl") #knit("HOCN.Rmd") #markdownToHTML('HOCN.md', 'HOCN.html', options=c("use_xhml")) #system("pandoc -s HOCN.html -o HOCN.pdf") knit2html('HOCN.Rmd')
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rcbdltcmt.R \docType{data} \name{rcbdltcmt} \alias{rcbdltcmt} \title{Line x Tester data (only Crosses) in Randomized Complete Block design.} \format{ A data frame of 15 crosses derived from five lines and three testers. \describe{ \item{repl...
/man/rcbdltcmt.Rd
no_license
nandp1/gpbStat
R
false
true
836
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rcbdltcmt.R \docType{data} \name{rcbdltcmt} \alias{rcbdltcmt} \title{Line x Tester data (only Crosses) in Randomized Complete Block design.} \format{ A data frame of 15 crosses derived from five lines and three testers. \describe{ \item{repl...
fabatchaddon <- function(params, x, batch) { if(any(is.na(x))) stop("Data contains missing values.") if(!is.factor(batch)) stop("'batch' has to be of class 'factor'.") if(!is.matrix(x)) stop("'x' has to be of class 'matrix'.") if(max(table(batch)) >= ncol(x)) ...
/R/fabatchaddon.R
no_license
cran/bapred
R
false
false
5,341
r
fabatchaddon <- function(params, x, batch) { if(any(is.na(x))) stop("Data contains missing values.") if(!is.factor(batch)) stop("'batch' has to be of class 'factor'.") if(!is.matrix(x)) stop("'x' has to be of class 'matrix'.") if(max(table(batch)) >= ncol(x)) ...
# Flyorescent spectra anslysis # Copyright © 2020 Borys Olifirov require(ggplot2) require(gridExtra) require(dplyr) require(magrittr) require(wavelength2colour) setwd('/home/astria/Bio/Note/diff/fluo') fluo.1 <- read.csv('fluo_4.csv') fluo.2 <- read.csv('mTFP1.csv') pass.band.1 <- c(475, 500) pass.band.2 <- c(540, ...
/diff/fluo/fluo.R
no_license
sonyann/Labnote
R
false
false
2,814
r
# Flyorescent spectra anslysis # Copyright © 2020 Borys Olifirov require(ggplot2) require(gridExtra) require(dplyr) require(magrittr) require(wavelength2colour) setwd('/home/astria/Bio/Note/diff/fluo') fluo.1 <- read.csv('fluo_4.csv') fluo.2 <- read.csv('mTFP1.csv') pass.band.1 <- c(475, 500) pass.band.2 <- c(540, ...
context("Watershed Topology") library("WatershedTools") ws <- readRDS(system.file("testdata/testWS.rds", package="WatershedTools")) outletID <- outlets(ws)$id hwID <- headwaters(ws)[1,'id'] test_that("Accumulation works", { expect_error(accum_outlet_us <- accumulate(ws, upstream = Inf, downstream = outletID, ...
/tests/testthat/test-topology.R
permissive
mtalluto/WatershedTools
R
false
false
3,764
r
context("Watershed Topology") library("WatershedTools") ws <- readRDS(system.file("testdata/testWS.rds", package="WatershedTools")) outletID <- outlets(ws)$id hwID <- headwaters(ws)[1,'id'] test_that("Accumulation works", { expect_error(accum_outlet_us <- accumulate(ws, upstream = Inf, downstream = outletID, ...
#! /usr/bin/Rscript ### Argument parsing ########################################################### args <- commandArgs(trailingOnly=TRUE) csv.filename <- args[1] plot.filename <- args[2] ### Packages ################################################################### library(ggplot2) library(gggenes) library(ggnewsc...
/scripts/viral_genomes_plot.R
no_license
jbloomlab/barcoded_flu_pdmH1N1
R
false
false
13,234
r
#! /usr/bin/Rscript ### Argument parsing ########################################################### args <- commandArgs(trailingOnly=TRUE) csv.filename <- args[1] plot.filename <- args[2] ### Packages ################################################################### library(ggplot2) library(gggenes) library(ggnewsc...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/data.R \name{download_microbiome} \alias{download_microbiome} \title{Download microbiome data sets} \usage{ download_microbiome(id = "datasets") } \arguments{ \item{id}{Data set name. For options, see download_microbiome()} } \value{ ...
/man/download_microbiome.Rd
no_license
hjanime/microbiome
R
false
false
597
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/data.R \name{download_microbiome} \alias{download_microbiome} \title{Download microbiome data sets} \usage{ download_microbiome(id = "datasets") } \arguments{ \item{id}{Data set name. For options, see download_microbiome()} } \value{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/de_solver.R \name{solve_de} \alias{solve_de} \title{solve_de} \usage{ solve_de(sim, params, inits, Tmax, numsteps = 10000, solver = "ode", sizestep = NULL, verbose = FALSE, data.times = NULL, method = "lsoda", ...) } \arguments{ \item{sim...
/man/solve_de.Rd
no_license
waternk/debinfer
R
false
true
1,172
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/de_solver.R \name{solve_de} \alias{solve_de} \title{solve_de} \usage{ solve_de(sim, params, inits, Tmax, numsteps = 10000, solver = "ode", sizestep = NULL, verbose = FALSE, data.times = NULL, method = "lsoda", ...) } \arguments{ \item{sim...
testlist <- list(a = 0L, b = 0L, x = c(-1073790465L, -1088728832L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610056550-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
518
r
testlist <- list(a = 0L, b = 0L, x = c(-1073790465L, -1088728832L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
################################################################################ # # File name: Expr_CN_Profile.R # # Authors: Jacek Marzec ( j.marzec@qmul.ac.uk ) # # Barts Cancer Institute, # Queen Mary, University of London # Charterhouse Square, London EC1M 6BQ # ##########################################...
/pages/scripts/LiveExprCN.R
no_license
JMarzec/BCN_Analytics
R
false
false
11,464
r
################################################################################ # # File name: Expr_CN_Profile.R # # Authors: Jacek Marzec ( j.marzec@qmul.ac.uk ) # # Barts Cancer Institute, # Queen Mary, University of London # Charterhouse Square, London EC1M 6BQ # ##########################################...
skip_if_not(require("MASS")) context("prepare_results.mca") data(farms) mca <- MASS::mca(farms[4:20, 2:4], nf = 5) supi_df <- farms[1:3, 2:4] supi <- predict(mca, supi_df, type = "row") rownames(supi) <- rownames(supi_df) mca$supi <- supi mca$supv <- predict(mca, farms[4:20, 1, drop = FALSE], type = "factor") res <- ...
/tests/testthat/test_prepare_results_MASS_mca.R
no_license
juba/explor
R
false
false
1,503
r
skip_if_not(require("MASS")) context("prepare_results.mca") data(farms) mca <- MASS::mca(farms[4:20, 2:4], nf = 5) supi_df <- farms[1:3, 2:4] supi <- predict(mca, supi_df, type = "row") rownames(supi) <- rownames(supi_df) mca$supi <- supi mca$supv <- predict(mca, farms[4:20, 1, drop = FALSE], type = "factor") res <- ...
library(shiny) library(shinythemes) library(readr) library(ggplot2) library(stringr) library(dplyr) library(DT) library(tools) library(prophet) library(forecast) # Define UI for application that plots features of movies ui <- fluidPage( titlePanel("Forecasting", windowTitle = "Forecasting"), ...
/Models_Shiny.R
no_license
xiaoyan-lin/TimeSeriesDashboard-RShiny
R
false
false
43,062
r
library(shiny) library(shinythemes) library(readr) library(ggplot2) library(stringr) library(dplyr) library(DT) library(tools) library(prophet) library(forecast) # Define UI for application that plots features of movies ui <- fluidPage( titlePanel("Forecasting", windowTitle = "Forecasting"), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scaled.R \name{scaled} \alias{scaled} \title{Power-law scaling for doses} \usage{ scaled(dose, a = 4) } \arguments{ \item{dose}{A numeric vector of doses} \item{a}{A numeric exponent for power-law rescaling} } \value{ A rescaled vector of do...
/man/scaled.Rd
no_license
cran/DTAT
R
false
true
423
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scaled.R \name{scaled} \alias{scaled} \title{Power-law scaling for doses} \usage{ scaled(dose, a = 4) } \arguments{ \item{dose}{A numeric vector of doses} \item{a}{A numeric exponent for power-law rescaling} } \value{ A rescaled vector of do...
context("Testing download_realtime functions") test_that("download_realtime_ws returns the correct data header", { skip_on_cran() skip_on_travis() token_out <- get_ws_token(username = Sys.getenv("WS_USRNM"), password = Sys.getenv("WS_PWD")) ws_test <- download_realtime_ws(STATION_NUMBER = "08MF005", ...
/tests/testthat/test_download_realtime.R
permissive
stephhazlitt/tidyhydat
R
false
false
1,536
r
context("Testing download_realtime functions") test_that("download_realtime_ws returns the correct data header", { skip_on_cran() skip_on_travis() token_out <- get_ws_token(username = Sys.getenv("WS_USRNM"), password = Sys.getenv("WS_PWD")) ws_test <- download_realtime_ws(STATION_NUMBER = "08MF005", ...
\name{lpm} \alias{lpm} \title{calculate a lower partial moment for a time series} \usage{ lpm(R, n = 2, threshold = 0, about_mean = FALSE) } \arguments{ \item{R}{xts data} \item{n}{the n-th moment to return} \item{threshold}{threshold can be the mean or any point as desired} \item{about_mean}{TRUE/FALSE ca...
/man/lpm.Rd
no_license
guillermozbta/portafolio-master
R
false
false
955
rd
\name{lpm} \alias{lpm} \title{calculate a lower partial moment for a time series} \usage{ lpm(R, n = 2, threshold = 0, about_mean = FALSE) } \arguments{ \item{R}{xts data} \item{n}{the n-th moment to return} \item{threshold}{threshold can be the mean or any point as desired} \item{about_mean}{TRUE/FALSE ca...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/open.tunnel.R \name{open_tunnel} \alias{open_tunnel} \title{Title} \usage{ open_tunnel(remote_host, user = NULL, password = NULL, tunnel_dir = "~/.pecan/tunnel/", wait.time = 15) } \arguments{ \item{remote_host}{name of remote server to con...
/utils/man/open_tunnel.Rd
permissive
Kah5/pecan
R
false
true
624
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/open.tunnel.R \name{open_tunnel} \alias{open_tunnel} \title{Title} \usage{ open_tunnel(remote_host, user = NULL, password = NULL, tunnel_dir = "~/.pecan/tunnel/", wait.time = 15) } \arguments{ \item{remote_host}{name of remote server to con...
# Count Theft Category library(readr) library(plyr) # 2012 Crime data Crime_2012 <- read_csv("Desktop/texas/Crime_Reports_2012.csv") category2012 <- count(grep('THEFT', Crime_2012$`Highest Offense Description`, value=TRUE)) theft_count2012 <- sum(category2012$freq) rowcount2012 <- nrow(Crime_2012) percent2012 <- theft_...
/Texas_crime/texas 2015.R
no_license
yunfei-xu/Decriminalization_Final_Project
R
false
false
4,262
r
# Count Theft Category library(readr) library(plyr) # 2012 Crime data Crime_2012 <- read_csv("Desktop/texas/Crime_Reports_2012.csv") category2012 <- count(grep('THEFT', Crime_2012$`Highest Offense Description`, value=TRUE)) theft_count2012 <- sum(category2012$freq) rowcount2012 <- nrow(Crime_2012) percent2012 <- theft_...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/neuronlist.R \name{find.soma} \alias{find.soma} \title{Find neurons with soma inside 3d selection box (usually drawn in rgl window)} \usage{ find.soma(sel3dfun = select3d(), indices = names(db), db = getOption("nat.default.neuronlis...
/man/find.soma.Rd
no_license
michaeljohndolan/nat
R
false
false
1,212
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/neuronlist.R \name{find.soma} \alias{find.soma} \title{Find neurons with soma inside 3d selection box (usually drawn in rgl window)} \usage{ find.soma(sel3dfun = select3d(), indices = names(db), db = getOption("nat.default.neuronlis...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/union_AmCharts.R \docType{methods} \name{plot,AmCharts-method} \alias{plot,AmCharts-method} \title{PLOTTING METHOD} \usage{ \S4method{plot}{AmCharts}(x, y, width = "100\%", height = NULL, background = "#ffffff", ...) } \arguments{ \item{x}{...
/man/plot.AmChart.Rd
no_license
msabr027/rAmCharts
R
false
true
616
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/union_AmCharts.R \docType{methods} \name{plot,AmCharts-method} \alias{plot,AmCharts-method} \title{PLOTTING METHOD} \usage{ \S4method{plot}{AmCharts}(x, y, width = "100\%", height = NULL, background = "#ffffff", ...) } \arguments{ \item{x}{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gs_webapp.R \name{gs_webapp_auth_url} \alias{gs_webapp_auth_url} \title{Build URL for authentication} \usage{ gs_webapp_auth_url(client_id = getOption("googlesheets.webapp.client_id"), redirect_uri = getOption("googlesheets.webapp.redirect_...
/man/gs_webapp_auth_url.Rd
no_license
colinloftin-awhere/googlesheets
R
false
true
2,827
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gs_webapp.R \name{gs_webapp_auth_url} \alias{gs_webapp_auth_url} \title{Build URL for authentication} \usage{ gs_webapp_auth_url(client_id = getOption("googlesheets.webapp.client_id"), redirect_uri = getOption("googlesheets.webapp.redirect_...
library('shiny') options(shiny.maxRequestSize = 20000*1024^2) shinyServer(function(input, output,session) { output$mymap <- renderLeaflet({ req(input$file1) df <- read.csv(input$file1$datapath, header = input$header, sep = input$sep, ...
/server.R
no_license
miniroses/minioses
R
false
false
698
r
library('shiny') options(shiny.maxRequestSize = 20000*1024^2) shinyServer(function(input, output,session) { output$mymap <- renderLeaflet({ req(input$file1) df <- read.csv(input$file1$datapath, header = input$header, sep = input$sep, ...
##################################################################### # Load, Process and Save Air Temperature Data # # REIPAA # # # # Homogenise time interval and Extract ...
/MetData/Engabreen_Temperature_Precipitation/LoadAT_Reipaa_save.R
no_license
pmlefeuvre/NVE_work
R
false
false
5,567
r
##################################################################### # Load, Process and Save Air Temperature Data # # REIPAA # # # # Homogenise time interval and Extract ...
v <- c(19, 5, 2, 19, 29, 42, 32, 35, 25, 18, 6, 22, 7, 28, 11, 8, 9, 37, 45, 23) suma <- 0 for (i in 1:length(v)) { suma <- suma + v[i] } suma suma <- 0 for (i in v) { suma <- suma + i } suma sum(suma) riba <- 30 suma <- 0 kiek <- 0 for (i in seq_along(v)) { if (v[i] > riba) { suma <- suma...
/R/3_3/main.R
no_license
mnorkin/magistras-3
R
false
false
582
r
v <- c(19, 5, 2, 19, 29, 42, 32, 35, 25, 18, 6, 22, 7, 28, 11, 8, 9, 37, 45, 23) suma <- 0 for (i in 1:length(v)) { suma <- suma + v[i] } suma suma <- 0 for (i in v) { suma <- suma + i } suma sum(suma) riba <- 30 suma <- 0 kiek <- 0 for (i in seq_along(v)) { if (v[i] > riba) { suma <- suma...
#'Dataset of agritural plant output and area in chapter11 #' #'A dataset containing plant_area and output_value 2 variables of 29 objects #'@format a dataframe with 29 rows and 2 variables #'\describe{ #' \item{plant_area}{area for plant} #' \item{output_value}{output} #'} "plantarea_outputvalue"
/R/data_plantarea_outputvalue.R
no_license
zhaoxue-xmu/RDA
R
false
false
301
r
#'Dataset of agritural plant output and area in chapter11 #' #'A dataset containing plant_area and output_value 2 variables of 29 objects #'@format a dataframe with 29 rows and 2 variables #'\describe{ #' \item{plant_area}{area for plant} #' \item{output_value}{output} #'} "plantarea_outputvalue"
structure(list( url = "https://api.sleeper.app/v1/league/522458773317046272/matchups/5/", status_code = 200L, headers = structure(list( date = "Thu, 08 Oct 2020 12:17:05 GMT", `content-type` = "application/json; charset=utf-8", `transfer-encoding` = "chunked", connection = "keep-alive", vary = "Accept-E...
/tests/testthat/api.sleeper.app/v1/league/522458773317046272/matchups/5.R
permissive
tonyelhabr/ffscrapr
R
false
false
7,753
r
structure(list( url = "https://api.sleeper.app/v1/league/522458773317046272/matchups/5/", status_code = 200L, headers = structure(list( date = "Thu, 08 Oct 2020 12:17:05 GMT", `content-type` = "application/json; charset=utf-8", `transfer-encoding` = "chunked", connection = "keep-alive", vary = "Accept-E...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_manipulation.R \name{data.trim} \alias{data.trim} \alias{data.trim.d} \title{Trim the data} \usage{ data.trim(t, data, trimmed = F) data.trim.d(d, data, trimmed = F) } \arguments{ \item{t}{Time of interest to pause/stop the study, which...
/man/data.trim.Rd
no_license
lilywang1988/IAfrac
R
false
true
2,542
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_manipulation.R \name{data.trim} \alias{data.trim} \alias{data.trim.d} \title{Trim the data} \usage{ data.trim(t, data, trimmed = F) data.trim.d(d, data, trimmed = F) } \arguments{ \item{t}{Time of interest to pause/stop the study, which...
# New Leads source(paste(Path, "/R_Code/Allocation_Manual_New.R", sep = "")) # Recycled Leads source(paste(Path, "/R_Code/Allocation_Manual_Recycled.R", sep = ""))
/R_Code/Manual_Allocation.R
no_license
CharlFM/Lead_Matching
R
false
false
165
r
# New Leads source(paste(Path, "/R_Code/Allocation_Manual_New.R", sep = "")) # Recycled Leads source(paste(Path, "/R_Code/Allocation_Manual_Recycled.R", sep = ""))
##1 soap=c(rep("Reg",4),rep("Deo",4),rep("Moist",4)) soap weight=c(-0.30,-0.10,-0.14,0.40,2.63,2.61,2.41,3.15,1.86,2.03,2.26,1.82) weight weight.lost=data.frame(soap,weight) weight.lost ##2 weight=c(-0.30,-0.10,-0.14,0.40,2.63,2.61,2.41,3.15,1.86,2.03,2.26,1.82)*0.001 weight weight.lost=data.frame(soap,weig...
/HW1.r
no_license
LucasHumphrey/R-461
R
false
false
752
r
##1 soap=c(rep("Reg",4),rep("Deo",4),rep("Moist",4)) soap weight=c(-0.30,-0.10,-0.14,0.40,2.63,2.61,2.41,3.15,1.86,2.03,2.26,1.82) weight weight.lost=data.frame(soap,weight) weight.lost ##2 weight=c(-0.30,-0.10,-0.14,0.40,2.63,2.61,2.41,3.15,1.86,2.03,2.26,1.82)*0.001 weight weight.lost=data.frame(soap,weig...
# This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # Dependencies(When hosting in Github,copy below from Dependencies.R) #ShinyApp_R # Define server logic shinyServer(function(input, output, session) { output$currentTime <- renderText({inval...
/server.R
no_license
VVSKushwanthReddy/ShinyApp_R
R
false
false
4,709
r
# This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # Dependencies(When hosting in Github,copy below from Dependencies.R) #ShinyApp_R # Define server logic shinyServer(function(input, output, session) { output$currentTime <- renderText({inval...
rm(list = ls()) library("rvest") library("RSelenium") library("wdman") library(stringr) results <- list() categories <- c("Lehrende:", "Veranstaltungsart:", "Orga-Einheit:", "Anzeige im Stundenplan:", "Semesterwochenstunden:", "Credits", "Standort", "Unterrichtssprache:", "Min. | M...
/01_scaping_zuhause_NEU.R
no_license
schliebs/reverse_predictive_policing
R
false
false
6,438
r
rm(list = ls()) library("rvest") library("RSelenium") library("wdman") library(stringr) results <- list() categories <- c("Lehrende:", "Veranstaltungsart:", "Orga-Einheit:", "Anzeige im Stundenplan:", "Semesterwochenstunden:", "Credits", "Standort", "Unterrichtssprache:", "Min. | M...
library("glmnet") library("randomForest") library("pROC") library(pheatmap) library(ggplot2) library(RColorBrewer) library("caret") #for confusion matrix library(e1071) library("verification") # for roc p value library(scatterplot3d) library("ggsci") library("Rtsne") dmr_mat_total <- read.table("./met_m...
/3. Marker identification/filtration_by_tissue.R
permissive
lizhengbio/cfWGBS-pipline
R
false
false
3,605
r
library("glmnet") library("randomForest") library("pROC") library(pheatmap) library(ggplot2) library(RColorBrewer) library("caret") #for confusion matrix library(e1071) library("verification") # for roc p value library(scatterplot3d) library("ggsci") library("Rtsne") dmr_mat_total <- read.table("./met_m...
library(tidyr) library(dplyr) library(ggplot2) # Plots CIs for the quantile fullData_ConfidenceLowerBound = read.csv("../../results/tradeoff/listener-curve-binomial-confidence-bound-quantile.tsv", sep="\t") fullData_ConfidenceLowerBound_05 = read.csv("../../results/tradeoff/listener-curve-binomial-confidence-bound-qu...
/code/analysis/visualize_neural/ARCHIVE/plot_wordsOnly_quantile.R
no_license
m-hahn/memory-surprisal
R
false
false
2,018
r
library(tidyr) library(dplyr) library(ggplot2) # Plots CIs for the quantile fullData_ConfidenceLowerBound = read.csv("../../results/tradeoff/listener-curve-binomial-confidence-bound-quantile.tsv", sep="\t") fullData_ConfidenceLowerBound_05 = read.csv("../../results/tradeoff/listener-curve-binomial-confidence-bound-qu...
library(tidyverse) source('scripts/read_files.R') source('scripts/animate_play.R') source('scripts/pick_play.R') games <- read_games() plays <- read_plays() positions <- read_positions() tracking <- read_tracking(max_week = 1L, positions = positions, drop_cols = TRUE, cols = c('time', 'display_name')) tracking track...
/scripts/eda_db_angles.R
no_license
SUNNY11286/oh_snap
R
false
false
2,066
r
library(tidyverse) source('scripts/read_files.R') source('scripts/animate_play.R') source('scripts/pick_play.R') games <- read_games() plays <- read_plays() positions <- read_positions() tracking <- read_tracking(max_week = 1L, positions = positions, drop_cols = TRUE, cols = c('time', 'display_name')) tracking track...
#chamando a funcao selfTrain adaptada ST <- funcSelfTrain(as.formula(paste(classe,'~', '.')), base_treino_self_training,learner('rpartXse',list(se=0.5)),'f',0.9,10,1,TRUE) matriz_confusao1 = table(predict(ST,base_teste,type='class'),base_teste$class) n <- length(base_teste$class) cat("\n Acerto (%) = \n", levels(base...
/testes_experimentos/treinamento.R
no_license
karlianev/projeto_karliane
R
false
false
641
r
#chamando a funcao selfTrain adaptada ST <- funcSelfTrain(as.formula(paste(classe,'~', '.')), base_treino_self_training,learner('rpartXse',list(se=0.5)),'f',0.9,10,1,TRUE) matriz_confusao1 = table(predict(ST,base_teste,type='class'),base_teste$class) n <- length(base_teste$class) cat("\n Acerto (%) = \n", levels(base...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mask_raster.R \name{mask_raster} \alias{mask_raster} \title{mask raster} \usage{ mask_raster(spatialpoint, name, name.supplement = "", ahn_raster, AHN3 = TRUE, azimuth, radius) } \arguments{ \item{spatialpoint}{single sf point in RD new coo...
/man/mask_raster.Rd
no_license
Jellest/temperatureSC
R
false
true
664
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mask_raster.R \name{mask_raster} \alias{mask_raster} \title{mask raster} \usage{ mask_raster(spatialpoint, name, name.supplement = "", ahn_raster, AHN3 = TRUE, azimuth, radius) } \arguments{ \item{spatialpoint}{single sf point in RD new coo...
library(deSolve) seir_ode <- function(t,y,par){ S <- y[1] E <- y[2] I <- y[3] R <- y[4] R0 <- par[1] a <- par[2] gamma <- par[3] N <- par[4] beta <- gamma*R0 dS = -beta * S * I / N dE = beta * S * I / N - a * E dI = a * E - gamma * I dR = gamma * I list(c(dS,dE,dI,dR)) } N = 83e6 E0 = 4...
/deterministic_models/seir.R
no_license
joshuakuepper/Challenge-1757
R
false
false
452
r
library(deSolve) seir_ode <- function(t,y,par){ S <- y[1] E <- y[2] I <- y[3] R <- y[4] R0 <- par[1] a <- par[2] gamma <- par[3] N <- par[4] beta <- gamma*R0 dS = -beta * S * I / N dE = beta * S * I / N - a * E dI = a * E - gamma * I dR = gamma * I list(c(dS,dE,dI,dR)) } N = 83e6 E0 = 4...
library(tidyverse) library(lubridate) library(extrafont) loadfonts(device = "win") colores_1 <- c('#008080','#002456') colores_2 <- c('#31f48e','#07aa7b','#0bbeff','#0086ff','#01437d','#ff0040') dat <- tibble(date = c(seq(date('2014-01-01'),date('2019-12-31'),1))) %>% mutate(cat_1 = 10, cat_2 = 12) ...
/Facet wrap de gráficas de línea por categorías.R
no_license
alejandroxag/R-ggplots
R
false
false
1,671
r
library(tidyverse) library(lubridate) library(extrafont) loadfonts(device = "win") colores_1 <- c('#008080','#002456') colores_2 <- c('#31f48e','#07aa7b','#0bbeff','#0086ff','#01437d','#ff0040') dat <- tibble(date = c(seq(date('2014-01-01'),date('2019-12-31'),1))) %>% mutate(cat_1 = 10, cat_2 = 12) ...
# Intermediate R Webinar: Data Manipulation with dplyr # Install if necessary and load dplyr #install.packages("dplyr) library(dplyr) # Set working directory setwd("~/Documents/R_Class_Meetup/Class6") # Read in data census <- read.csv("~/Documents/R_Class_Meetup/Class6/Data/US_census_data.csv", stringsAsFactors = F)...
/IntermediateR/Class1/RProgramming_dplyr_Package_InClass_Code.R
no_license
kelsey-huntzberry/DataAnalysisLab
R
false
false
5,753
r
# Intermediate R Webinar: Data Manipulation with dplyr # Install if necessary and load dplyr #install.packages("dplyr) library(dplyr) # Set working directory setwd("~/Documents/R_Class_Meetup/Class6") # Read in data census <- read.csv("~/Documents/R_Class_Meetup/Class6/Data/US_census_data.csv", stringsAsFactors = F)...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/tools.R \name{show_config_file} \alias{show_config_file} \title{Read and print Plotly config file, wrapping get_credentials_file()} \usage{ show_config_file(args = c()) } \arguments{ \item{args}{Character vector of keys you are lookin...
/expend_analyses/EndSp_budget/plotly/man/show_config_file.Rd
no_license
jacob-ogre/esa_expenditures_old
R
false
false
464
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/tools.R \name{show_config_file} \alias{show_config_file} \title{Read and print Plotly config file, wrapping get_credentials_file()} \usage{ show_config_file(args = c()) } \arguments{ \item{args}{Character vector of keys you are lookin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/timePretty.R \name{timePretty} \alias{timePretty} \title{Pretty Axis} \usage{ timePretty(x, labels = "Auto") } \arguments{ \item{x}{time difference data} \item{labels}{either "Auto," which lets the function decide how many labels, the approx...
/man/timePretty.Rd
permissive
ldecicco-USGS/smwrGraphs
R
false
true
557
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/timePretty.R \name{timePretty} \alias{timePretty} \title{Pretty Axis} \usage{ timePretty(x, labels = "Auto") } \arguments{ \item{x}{time difference data} \item{labels}{either "Auto," which lets the function decide how many labels, the approx...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model2netcdf.dvmdostem.R \name{model2netcdf.dvmdostem} \alias{model2netcdf.dvmdostem} \title{Code to convert dvmdostem netcdf output into into CF standard} \arguments{ \item{outdir}{Location of dvmdostem model output} \item{runstart}{??} \i...
/models/dvmdostem/man/model2netcdf.dvmdostem.Rd
permissive
yan130/pecan
R
false
true
503
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model2netcdf.dvmdostem.R \name{model2netcdf.dvmdostem} \alias{model2netcdf.dvmdostem} \title{Code to convert dvmdostem netcdf output into into CF standard} \arguments{ \item{outdir}{Location of dvmdostem model output} \item{runstart}{??} \i...
# Load packages and functions --------------------------------------------- library(fda.usc) library(roahd) library(energy) library(entropy) library(partykit) library(cluster) library(igraph) library(NetworkDistance) source("functions_v2.R") source("node_v2.R") source("split_v2.R") source("party_v2.R") source("plot_...
/NKI_fit.R
no_license
tulliapadellini/energytree
R
false
false
1,975
r
# Load packages and functions --------------------------------------------- library(fda.usc) library(roahd) library(energy) library(entropy) library(partykit) library(cluster) library(igraph) library(NetworkDistance) source("functions_v2.R") source("node_v2.R") source("split_v2.R") source("party_v2.R") source("plot_...
f <- file("./output/karyotype.txt") if(!file.exists("./temp/figure7.xlsx")) { source("./figure7p1.R") } edges <- read.xlsx("./temp/figure7.xlsx") #edges$V2 <- gsub("_", " ", edges$V2) colors <- c("blues-6-seq", "bugn-6-seq", "bupu-6-seq", "gnbu-6-seq", "greens-6-seq", "oranges-6-seq", "orrd-6-seq", "pub...
/Archive/Figure7p2.R
no_license
bhklab/DrugTissue
R
false
false
1,569
r
f <- file("./output/karyotype.txt") if(!file.exists("./temp/figure7.xlsx")) { source("./figure7p1.R") } edges <- read.xlsx("./temp/figure7.xlsx") #edges$V2 <- gsub("_", " ", edges$V2) colors <- c("blues-6-seq", "bugn-6-seq", "bupu-6-seq", "gnbu-6-seq", "greens-6-seq", "oranges-6-seq", "orrd-6-seq", "pub...
## exanding group example library(tcltk) w <- tktoplevel() tkwm.title(w, "Expanding frame example") f <- ttkframe(w) tkpack(f, expand=TRUE, fill="both") f1 <- ttkframe(f); tkpack(f1) b <- ttkbutton(f1, text=">"); tkpack(b, side="left") l <- ttklabel(f1, text=" click to expand"); tkpack(l) f2 <- ttkframe(f); tkpack(...
/books/rgui/ProgGUIInR/inst/Examples/ch-tcltk/ex-tcltk-expandgroup.R
no_license
lawremi/RGtk2
R
false
false
1,279
r
## exanding group example library(tcltk) w <- tktoplevel() tkwm.title(w, "Expanding frame example") f <- ttkframe(w) tkpack(f, expand=TRUE, fill="both") f1 <- ttkframe(f); tkpack(f1) b <- ttkbutton(f1, text=">"); tkpack(b, side="left") l <- ttklabel(f1, text=" click to expand"); tkpack(l) f2 <- ttkframe(f); tkpack(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/js4shiny-package.R \docType{package} \name{js4shiny-package} \alias{js4shiny} \alias{js4shiny-package} \title{js4shiny: Companion Package for JavaScript for Shiny Users} \description{ \if{html}{\figure{logo.png}{options: align='right' alt='lo...
/man/js4shiny-package.Rd
permissive
gadenbuie/js4shiny
R
false
true
709
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/js4shiny-package.R \docType{package} \name{js4shiny-package} \alias{js4shiny} \alias{js4shiny-package} \title{js4shiny: Companion Package for JavaScript for Shiny Users} \description{ \if{html}{\figure{logo.png}{options: align='right' alt='lo...
#' Square Function #' #' #'takes vector and returns a vector of squared components #' @param x #' #' @return a vector of square components in the form of a vector object #' @export #' #' @examples myf(3) #' x = 1:30 ; myf(x) myf = function(x,y){ 1+3+x+y }
/R/myf.R
no_license
lmtrevisi/MATH4753ouTrev0002
R
false
false
257
r
#' Square Function #' #' #'takes vector and returns a vector of squared components #' @param x #' #' @return a vector of square components in the form of a vector object #' @export #' #' @examples myf(3) #' x = 1:30 ; myf(x) myf = function(x,y){ 1+3+x+y }
#' R coefficient of linear models between numerical and catagorical columns in a dataframe #' #' @param .data a data frame #' #' @return a data frame with paired names of categorical variables (\code{Cat} #' and mnumeric ones \code{Num} and \code{r} value) #' @export #' #' @importFrom dplyr select_if mutate #' @importF...
/R/scan_r.R
permissive
BenjaminLouis/datascan
R
false
false
728
r
#' R coefficient of linear models between numerical and catagorical columns in a dataframe #' #' @param .data a data frame #' #' @return a data frame with paired names of categorical variables (\code{Cat} #' and mnumeric ones \code{Num} and \code{r} value) #' @export #' #' @importFrom dplyr select_if mutate #' @importF...
#문제1-1 grade = sample(1:6,1) #문제1-2 if(grade>3){ cat(grade,"학년은 고학년입니다.","\n") } else{ cat(grade,"학년은 저학년입니다.\n") } #문제2-1 choice = sample(1:5,1) #문제2-2,4 if(choice==1){ cat("결과값 :",300+50,"\n") }else if(choice==2){ cat("결과값 :",300-50,"\n") }else if(choice==3){ cat("결과값 :",300*50,"\n") }else if(choice==4...
/R_training/실습제출/김도연/1주차(10.21~25)/2019.10.23/lab_05.R
no_license
BaeYS-marketing/R
R
false
false
1,337
r
#문제1-1 grade = sample(1:6,1) #문제1-2 if(grade>3){ cat(grade,"학년은 고학년입니다.","\n") } else{ cat(grade,"학년은 저학년입니다.\n") } #문제2-1 choice = sample(1:5,1) #문제2-2,4 if(choice==1){ cat("결과값 :",300+50,"\n") }else if(choice==2){ cat("결과값 :",300-50,"\n") }else if(choice==3){ cat("결과값 :",300*50,"\n") }else if(choice==4...
mainPanel_customize <- function(...) { div(class="span12", ... ) } #dataRangeInput with input and label display in horizontal dateRangeInput_h <- function (inputId, label, start = NULL, end = NULL, min = NULL, max = NULL, format = "yyyy-mm-dd", startview = "month", weekstart = 0, lang...
/ui.R
permissive
kb2025/R-pairstrading-shiny
R
false
false
8,867
r
mainPanel_customize <- function(...) { div(class="span12", ... ) } #dataRangeInput with input and label display in horizontal dateRangeInput_h <- function (inputId, label, start = NULL, end = NULL, min = NULL, max = NULL, format = "yyyy-mm-dd", startview = "month", weekstart = 0, lang...
func1 <- function(d){ result<-1; if(d==10){ result <- result+d; }else if(d==20){ result <- result+d; }; return (result); }
/day01/r2.R
no_license
AnabolicAction/R-
R
false
false
140
r
func1 <- function(d){ result<-1; if(d==10){ result <- result+d; }else if(d==20){ result <- result+d; }; return (result); }
# SET-UP ------------------------------------------------------------------ # rm(list = ls()) # Set-up directory for analysis and load required packages and functions. source("scripts/_RNASeq_functions.R") set.seed(16341) # Prepare a list to collect our results. myres_list <- list() # PREPARATION -------------------...
/RNASeq/scripts/Enrichment_pipeline.R
no_license
ahmedelhosseiny/NGS_scripts
R
false
false
3,240
r
# SET-UP ------------------------------------------------------------------ # rm(list = ls()) # Set-up directory for analysis and load required packages and functions. source("scripts/_RNASeq_functions.R") set.seed(16341) # Prepare a list to collect our results. myres_list <- list() # PREPARATION -------------------...
#selac_wrap_methods OptimizeEdgeLengths <- function(x, par.mat, codon.site.data, codon.site.counts, data.type, codon.model, n.partitions, nsites.vector, index.matrix, phy, aa.optim_array=NULL, root.p_array=NULL, codon.freq.by.aa=NULL, codon.freq.by.gene=NULL, numcode=1, diploid=TRUE, aa.properties=NULL, volume.fixed.v...
/selac_wrap_methods.R
no_license
GrahamDB/testing_selac
R
false
false
3,336
r
#selac_wrap_methods OptimizeEdgeLengths <- function(x, par.mat, codon.site.data, codon.site.counts, data.type, codon.model, n.partitions, nsites.vector, index.matrix, phy, aa.optim_array=NULL, root.p_array=NULL, codon.freq.by.aa=NULL, codon.freq.by.gene=NULL, numcode=1, diploid=TRUE, aa.properties=NULL, volume.fixed.v...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eloratingfixed.R \name{eloratingfixed} \alias{eloratingfixed} \title{Create daily elo ranks and multiple derivatives with user-defined parameter values} \usage{ eloratingfixed(agon_data, pres_data, k = 100, init_elo = 1000, outputfile =...
/man/eloratingfixed.Rd
no_license
cran/EloOptimized
R
false
true
5,002
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eloratingfixed.R \name{eloratingfixed} \alias{eloratingfixed} \title{Create daily elo ranks and multiple derivatives with user-defined parameter values} \usage{ eloratingfixed(agon_data, pres_data, k = 100, init_elo = 1000, outputfile =...
.onAttach <- function(libname, pkgname) { packageStartupMessage("Data: (c) OpenStreetMap contributors, ODbL 1.0 - http://www.openstreetmap.org/copyright") packageStartupMessage("Routing: OSRM - http://project-osrm.org/") packageStartupMessage(paste0("sp support will be dropped in the next major release, ", ...
/R/zzz.R
no_license
ashleyasmus/osrm
R
false
false
662
r
.onAttach <- function(libname, pkgname) { packageStartupMessage("Data: (c) OpenStreetMap contributors, ODbL 1.0 - http://www.openstreetmap.org/copyright") packageStartupMessage("Routing: OSRM - http://project-osrm.org/") packageStartupMessage(paste0("sp support will be dropped in the next major release, ", ...
# 1 reads in the tsetse count and temperature data # 2 formats the time columns and summarises the temperature data # 3 binds the count data and temperature data together library("zoo") # required packages library("plyr") #***********read in data********************************** b.counts <- read.csv("data_bioas...
/r_1_data_bioassay.R
permissive
jenniesuz/tsetse_climate_change
R
false
false
2,027
r
# 1 reads in the tsetse count and temperature data # 2 formats the time columns and summarises the temperature data # 3 binds the count data and temperature data together library("zoo") # required packages library("plyr") #***********read in data********************************** b.counts <- read.csv("data_bioas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/baseline.plot.R \name{baseline.plot} \alias{baseline.plot} \title{Plot the simulated baseline functions} \usage{ baseline.plot(baseline) } \arguments{ \item{baseline}{A data frame containing five variables: time, and the values of the baselin...
/man/baseline.plot.Rd
no_license
panando/coxed
R
false
true
1,272
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/baseline.plot.R \name{baseline.plot} \alias{baseline.plot} \title{Plot the simulated baseline functions} \usage{ baseline.plot(baseline) } \arguments{ \item{baseline}{A data frame containing five variables: time, and the values of the baselin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{advertisers.get} \alias{advertisers.get} \title{Gets one advertiser by ID.} \usage{ advertisers.get(profileId, id) } \arguments{ \item{profileId}{User profile ID associated with this request} \item{id}{Advertis...
/googledfareportingv26.auto/man/advertisers.get.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
849
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{advertisers.get} \alias{advertisers.get} \title{Gets one advertiser by ID.} \usage{ advertisers.get(profileId, id) } \arguments{ \item{profileId}{User profile ID associated with this request} \item{id}{Advertis...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_test_files.R \name{doc_test_files} \alias{doc_test_files} \title{Run all tests listed in the files} \usage{ doc_test_files(paths, env = test_env(), stop_on_failure = FALSE, stop_on_warning = FALSE, wrap = TRUE) } \arguments{ \item{paths...
/man/doc_test_files.Rd
no_license
thebioengineer/testDoctor
R
false
true
797
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_test_files.R \name{doc_test_files} \alias{doc_test_files} \title{Run all tests listed in the files} \usage{ doc_test_files(paths, env = test_env(), stop_on_failure = FALSE, stop_on_warning = FALSE, wrap = TRUE) } \arguments{ \item{paths...
### topGO # install # source("http://bioconductor.org/biocLite.R") # biocLite() # source("http://bioconductor.org/biocLite.R") # biocLite("topGO") # biocLite("ALL") # biocLite("affyLib") library(topGO) library(ALL) library("VennDiagram") library(gridExtra) library(grid) library(ggplot2) library("SuperExactTest") ...
/9_Positive_selection_analysis/Top_GO.R
no_license
AsexGenomeEvol/Timema_asex_genomes
R
false
false
17,840
r
### topGO # install # source("http://bioconductor.org/biocLite.R") # biocLite() # source("http://bioconductor.org/biocLite.R") # biocLite("topGO") # biocLite("ALL") # biocLite("affyLib") library(topGO) library(ALL) library("VennDiagram") library(gridExtra) library(grid) library(ggplot2) library("SuperExactTest") ...
#' Substance Use Domain #' #' @name Substance Use Domain #' @description The Substance Use data of an ImmPort study is reformated to the CDISC SDTM Substance Use (SU) #' domain model, and is a list of 2 data frames containing 1) Substance Use data \code{\link{SU}} #' and 2) any supplemental Substance Use data \code{...
/R/SubstanceUse.R
no_license
rdshankar/RImmPort
R
false
false
5,197
r
#' Substance Use Domain #' #' @name Substance Use Domain #' @description The Substance Use data of an ImmPort study is reformated to the CDISC SDTM Substance Use (SU) #' domain model, and is a list of 2 data frames containing 1) Substance Use data \code{\link{SU}} #' and 2) any supplemental Substance Use data \code{...
library(tm) library(plyr) suppressPackageStartupMessages(library("argparse")) source("spClassR/helper.R") strsplit_space_tokenizer <- function(x){ return(unlist(strsplit(x, "\\W*\\s+\\W*", perl=TRUE))) } prepEmailTokens <- function(emailText, stops=stopwords("english")){ # lower letters emailLower <- tolower(e...
/spClassR/features.R
no_license
sibyl229/spClass
R
false
false
5,993
r
library(tm) library(plyr) suppressPackageStartupMessages(library("argparse")) source("spClassR/helper.R") strsplit_space_tokenizer <- function(x){ return(unlist(strsplit(x, "\\W*\\s+\\W*", perl=TRUE))) } prepEmailTokens <- function(emailText, stops=stopwords("english")){ # lower letters emailLower <- tolower(e...
library(tidyverse) library(cifti) library(gifti) library(XML) library(DescTools) library(Cairo) # This script will: # 1. Map AHBA samples to Schaefer cortical parcels (average) # 2. Similarly, map to Desikan parcels # 3. Mid-way through the project, the Schaefer atlas was fixed to correct minor # errors ...
/scripts/00_ahba_preprocess/02_map_ahba_to_surface.R
no_license
JujiaoKang/2020_PNAS_Depression
R
false
false
11,337
r
library(tidyverse) library(cifti) library(gifti) library(XML) library(DescTools) library(Cairo) # This script will: # 1. Map AHBA samples to Schaefer cortical parcels (average) # 2. Similarly, map to Desikan parcels # 3. Mid-way through the project, the Schaefer atlas was fixed to correct minor # errors ...
####################### ### Data Day 2019 ### ### Power Session ### ####################### # Title: Interactive mapping of social vulnerability caused by climate change using R # Authors: Richard Johansen & Mark Chalmers # University of Cincinnati Libraries # 4/1/2019 # Code: https://github.com/RAJohansen/DataDa...
/Scripts/Mapping_Social_Vulnerability.R
permissive
RAJohansen/DataDay2019
R
false
false
10,951
r
####################### ### Data Day 2019 ### ### Power Session ### ####################### # Title: Interactive mapping of social vulnerability caused by climate change using R # Authors: Richard Johansen & Mark Chalmers # University of Cincinnati Libraries # 4/1/2019 # Code: https://github.com/RAJohansen/DataDa...
#http://nces.ed.gov/ccd/pubschuniv.asp #ccd <- read.table("sc121a_supp.txt", sep="\t", header=T, fill=T, stringsAsFactors = F) #md <- ccd[ccd$FIPST==24,] #FCC geocode API website: https://www.fcc.gov/developers/census-block-conversions-api #NCES file layout: https://nces.ed.gov/ccd/Data/txt/sc131alay.txt library(haven...
/code/nces_apitest.R
no_license
arkut/rnces
R
false
false
1,154
r
#http://nces.ed.gov/ccd/pubschuniv.asp #ccd <- read.table("sc121a_supp.txt", sep="\t", header=T, fill=T, stringsAsFactors = F) #md <- ccd[ccd$FIPST==24,] #FCC geocode API website: https://www.fcc.gov/developers/census-block-conversions-api #NCES file layout: https://nces.ed.gov/ccd/Data/txt/sc131alay.txt library(haven...
multiple_rep_plot = function(file, a_individual = TRUE, b_individual = TRUE, x_individual = FALSE, a_average = TRUE, b_average = TRUE, x_average = FALSE){ # create main title main_title = bquote("Mulitple Games") # plot all repetitions for a and b, adding in x for cons...
/multiple_rep_plot.R
permissive
MasayukiNagai/Kinetics-Games
R
false
false
4,687
r
multiple_rep_plot = function(file, a_individual = TRUE, b_individual = TRUE, x_individual = FALSE, a_average = TRUE, b_average = TRUE, x_average = FALSE){ # create main title main_title = bquote("Mulitple Games") # plot all repetitions for a and b, adding in x for cons...
# April 13, 2022 analyze m6A results from m6anet method # July 21, 2022 replot c1 <- data.table::fread("./ont/m6anet/C1.data.result.csv.gz") c2 <- data.table::fread("./ont/m6anet/C2.data.result.csv.gz") e1 <- data.table::fread("./ont/m6anet/E1.data.result.csv.gz") e2 <- data.table::fread("./ont/m6anet/E2.data.result...
/m6anet_res.R
no_license
ynren1020/QC
R
false
false
7,858
r
# April 13, 2022 analyze m6A results from m6anet method # July 21, 2022 replot c1 <- data.table::fread("./ont/m6anet/C1.data.result.csv.gz") c2 <- data.table::fread("./ont/m6anet/C2.data.result.csv.gz") e1 <- data.table::fread("./ont/m6anet/E1.data.result.csv.gz") e2 <- data.table::fread("./ont/m6anet/E2.data.result...
## @knitr head(state.x77, n=3) ## @knitr state.x77[1,2] # first row, second column state.x77[1, 3:4] # first row, third and fourth columns ## @knitr state.x77[state.x77[,"Population"] < 500, 1:6] ## @knitr colnames(state.x77) ## @knitr rbind(1:5, c(1, 1, 2, 3, 5)) # 2 b...
/inst/samplecode/multivariate.R
no_license
jverzani/UsingR
R
false
false
14,198
r
## @knitr head(state.x77, n=3) ## @knitr state.x77[1,2] # first row, second column state.x77[1, 3:4] # first row, third and fourth columns ## @knitr state.x77[state.x77[,"Population"] < 500, 1:6] ## @knitr colnames(state.x77) ## @knitr rbind(1:5, c(1, 1, 2, 3, 5)) # 2 b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/powernoise.R \name{powernoise} \alias{powernoise} \title{A function to generate k-noise} \usage{ powernoise(k, N) } \arguments{ \item{k}{Power law scaling exponent} \item{N}{number of samples to generate} } \value{ A named list with three en...
/man/powernoise.Rd
no_license
cran/statcomp
R
false
true
712
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/powernoise.R \name{powernoise} \alias{powernoise} \title{A function to generate k-noise} \usage{ powernoise(k, N) } \arguments{ \item{k}{Power law scaling exponent} \item{N}{number of samples to generate} } \value{ A named list with three en...
library(dataRetrieval) ### Name: readNWISsite ### Title: USGS Site File Data Retrieval ### Aliases: readNWISsite ### Keywords: USGS data import service web ### ** Examples ## Not run: ##D siteINFO <- readNWISsite('05114000') ##D siteINFOMulti <- readNWISsite(c('05114000','09423350')) ## End(Not run)
/data/genthat_extracted_code/dataRetrieval/examples/readNWISsite.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
309
r
library(dataRetrieval) ### Name: readNWISsite ### Title: USGS Site File Data Retrieval ### Aliases: readNWISsite ### Keywords: USGS data import service web ### ** Examples ## Not run: ##D siteINFO <- readNWISsite('05114000') ##D siteINFOMulti <- readNWISsite(c('05114000','09423350')) ## End(Not run)
## transmission probability $p_{ij}$ ########################################### function (thetaSS, R0, epsilon, Data) { # call the function: likelihood of serial interval L_si = dget("4b_L_si.R") # contacts with Case 20 w20 = c(5, 6, 7, 10, 11, 12) # preallocate s_hat20 = rep(NA ,length(w20)) ...
/4d_pij.R
no_license
imlouischan/ebola-ng
R
false
false
796
r
## transmission probability $p_{ij}$ ########################################### function (thetaSS, R0, epsilon, Data) { # call the function: likelihood of serial interval L_si = dget("4b_L_si.R") # contacts with Case 20 w20 = c(5, 6, 7, 10, 11, 12) # preallocate s_hat20 = rep(NA ,length(w20)) ...
%% File Name: IRT.informationCurves.Rd %% File Version: 0.13 \name{IRT.informationCurves} \alias{IRT.informationCurves} \alias{IRT.informationCurves.tam.mml} \alias{IRT.informationCurves.tam.mml.2pl} \alias{IRT.informationCurves.tam.mml.3pl} \alias{IRT.informationCurves.tam.mml.mfr} \alias{plot.IRT.informationCurves} ...
/man/IRT.informationCurves.Rd
no_license
yaozeyang90/TAM
R
false
false
5,239
rd
%% File Name: IRT.informationCurves.Rd %% File Version: 0.13 \name{IRT.informationCurves} \alias{IRT.informationCurves} \alias{IRT.informationCurves.tam.mml} \alias{IRT.informationCurves.tam.mml.2pl} \alias{IRT.informationCurves.tam.mml.3pl} \alias{IRT.informationCurves.tam.mml.mfr} \alias{plot.IRT.informationCurves} ...
setwd("/home/gehad/bigData_lab5") getwd() #install.packages("rpart.plot") #install.packages("ROCR") library("rpart") library("rpart.plot") library("ROCR") #Read the data play_decision <- read.table("DTdata.csv",header=TRUE,sep=",") play_decision summary(play_decision) #Build the tree to "fit" the model fit <- rpart(...
/DecisionTrees.R
no_license
geehad/Naive-Bayes-Classifier---Decision-Trees-in-R
R
false
false
3,010
r
setwd("/home/gehad/bigData_lab5") getwd() #install.packages("rpart.plot") #install.packages("ROCR") library("rpart") library("rpart.plot") library("ROCR") #Read the data play_decision <- read.table("DTdata.csv",header=TRUE,sep=",") play_decision summary(play_decision) #Build the tree to "fit" the model fit <- rpart(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dose.functions.R \name{dfpoly} \alias{dfpoly} \title{Fractional polynomial dose-response function} \usage{ dfpoly(degree = 1, beta.1 = "rel", beta.2 = "rel", power.1 = 0, power.2 = 0) } \arguments{ \item{degree}{The degree of the fra...
/man/dfpoly.Rd
no_license
cran/MBNMAdose
R
false
true
3,505
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dose.functions.R \name{dfpoly} \alias{dfpoly} \title{Fractional polynomial dose-response function} \usage{ dfpoly(degree = 1, beta.1 = "rel", beta.2 = "rel", power.1 = 0, power.2 = 0) } \arguments{ \item{degree}{The degree of the fra...
testlist <- list(ends = c(-14914341L, 1092032927L, -96688997L, 1632068659L, -1985290631L, -1286875988L, 1686393228L, -1178994978L, -161631656L ), pts = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), starts = c(16777216L, 0L, 738263040L, 682962941L, 1612840977L,...
/IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609861111-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
716
r
testlist <- list(ends = c(-14914341L, 1092032927L, -96688997L, 1632068659L, -1985290631L, -1286875988L, 1686393228L, -1178994978L, -161631656L ), pts = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), starts = c(16777216L, 0L, 738263040L, 682962941L, 1612840977L,...
# Functions to compute the bandwidth matrix ### 1a. Flexible Hpi.diag function with 1 stage estimation # Warning: This function requires the package ks. # It can only be used for up to 6 dimensions. #' @export Hpi.diag.flex1 = function(x){ if(is.matrix(x)){Hpi.diag(x, nstage = 1)} else {hpi(x)} } ### 1b. Flex...
/R/bw.R
no_license
johannabertl/ApproxML
R
false
false
2,029
r
# Functions to compute the bandwidth matrix ### 1a. Flexible Hpi.diag function with 1 stage estimation # Warning: This function requires the package ks. # It can only be used for up to 6 dimensions. #' @export Hpi.diag.flex1 = function(x){ if(is.matrix(x)){Hpi.diag(x, nstage = 1)} else {hpi(x)} } ### 1b. Flex...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_cmty_edge_btwns.R \name{get_cmty_edge_btwns} \alias{get_cmty_edge_btwns} \title{Get community membership by edge betweenness} \usage{ get_cmty_edge_btwns(graph) } \arguments{ \item{graph}{a graph object of class \code{dgr_graph}.} } \valu...
/man/get_cmty_edge_btwns.Rd
no_license
timelyportfolio/DiagrammeR
R
false
true
1,238
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_cmty_edge_btwns.R \name{get_cmty_edge_btwns} \alias{get_cmty_edge_btwns} \title{Get community membership by edge betweenness} \usage{ get_cmty_edge_btwns(graph) } \arguments{ \item{graph}{a graph object of class \code{dgr_graph}.} } \valu...
#' @useDynLib eppasm eppasmC #' @export simmod.specfp <- function(fp, VERSION="C"){ if(!exists("popadjust", where=fp)) fp$popadjust <- FALSE if(!exists("incidmod", where=fp)) fp$incidmod <- "eppspectrum" if(VERSION != "R"){ fp$eppmodInt <- match(fp$eppmod, c("rtrend", "directincid"), nomatch=0) # ...
/R/eppasm.R
no_license
aucarter/eppasm
R
false
false
20,675
r
#' @useDynLib eppasm eppasmC #' @export simmod.specfp <- function(fp, VERSION="C"){ if(!exists("popadjust", where=fp)) fp$popadjust <- FALSE if(!exists("incidmod", where=fp)) fp$incidmod <- "eppspectrum" if(VERSION != "R"){ fp$eppmodInt <- match(fp$eppmod, c("rtrend", "directincid"), nomatch=0) # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analyse_randomKde2d.R \name{analyse_randomKde2d} \alias{analyse_randomKde2d} \title{Perform analysis of random 2d distributions} \usage{ analyse_randomKde2d(nfields=100, nstars, maxX, maxY, nKde=50, showStats=FALSE, returnStats=TRUE) } \argu...
/man/analyse_randomKde2d.Rd
no_license
cran/UPMASK
R
false
true
1,327
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analyse_randomKde2d.R \name{analyse_randomKde2d} \alias{analyse_randomKde2d} \title{Perform analysis of random 2d distributions} \usage{ analyse_randomKde2d(nfields=100, nstars, maxX, maxY, nKde=50, showStats=FALSE, returnStats=TRUE) } \argu...
testlist <- list(bytes1 = 771751936L, pmutation = 1.30620522460846e-300) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612886986-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
136
r
testlist <- list(bytes1 = 771751936L, pmutation = 1.30620522460846e-300) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
testlist <- list(type = 0L, z = 2.06376160924347e-319) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609890391-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
108
r
testlist <- list(type = 0L, z = 2.06376160924347e-319) result <- do.call(esreg::G1_fun,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/control.utilities.R \name{ult} \alias{ult} \title{Extract or replace the *ult*imate (last) element of a vector or a list, or an element counting from the end.} \usage{ ult(x, i = 1L) } \arguments{ \item{x}{a vector or a list.} \item{i}{index...
/man/ult.Rd
no_license
Edouard-Legoupil/RDS
R
false
true
730
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/control.utilities.R \name{ult} \alias{ult} \title{Extract or replace the *ult*imate (last) element of a vector or a list, or an element counting from the end.} \usage{ ult(x, i = 1L) } \arguments{ \item{x}{a vector or a list.} \item{i}{index...
## ----setup, include=FALSE----------------------------------------------------- knitr::opts_chunk$set( echo = TRUE, fig.width=6, fig.height=5 ) ## ----------------------------------------------------------------------------- library(TropFishR) t <- seq(-0.2, 3, length.out = 200) K <- c(2, 1, 0.5) COL <- rep(1,3) ...
/inst/doc/Using_TropFishR_ELEFAN_functions.R
no_license
cran/TropFishR
R
false
false
6,480
r
## ----setup, include=FALSE----------------------------------------------------- knitr::opts_chunk$set( echo = TRUE, fig.width=6, fig.height=5 ) ## ----------------------------------------------------------------------------- library(TropFishR) t <- seq(-0.2, 3, length.out = 200) K <- c(2, 1, 0.5) COL <- rep(1,3) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DFIT.R \docType{package} \name{DFIT} \alias{DFIT} \title{Differential Functioning of Items and Tests framework} \description{ \code{DFIT} provides functions for calculating the differential item and test functioning proposed by Raju et al. (1...
/man/DFIT.Rd
no_license
herulor/DFIT
R
false
true
4,379
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DFIT.R \docType{package} \name{DFIT} \alias{DFIT} \title{Differential Functioning of Items and Tests framework} \description{ \code{DFIT} provides functions for calculating the differential item and test functioning proposed by Raju et al. (1...
library(tidyverse) library(ggthemes) library(lubridate) library(survey) library(haven) #look at both private and pulic mrip_all_17 <- read_csv("data/mrip_dm_17_all_sites.csv", col_types = cols(psu_id = col_character())) cls_17 <- read_csv("data/cls_17_all_sites.csv") #make species specific var...
/code/estimates_for_cls_report/direct_estimates/additional_species/direct_estimates_2017_great_barracuda_released_alive.R
no_license
williamsbenjamin/Fish-Estimation-Research
R
false
false
5,443
r
library(tidyverse) library(ggthemes) library(lubridate) library(survey) library(haven) #look at both private and pulic mrip_all_17 <- read_csv("data/mrip_dm_17_all_sites.csv", col_types = cols(psu_id = col_character())) cls_17 <- read_csv("data/cls_17_all_sites.csv") #make species specific var...
library(h2o) ### Name: h2o.mean ### Title: Compute the frame's mean by-column (or by-row). ### Aliases: h2o.mean mean.H2OFrame ### ** Examples ## No test: h2o.init() prostate_path <- system.file("extdata", "prostate.csv", package = "h2o") prostate <- h2o.uploadFile(path = prostate_path) # Default behavior. Will re...
/data/genthat_extracted_code/h2o/examples/h2o.mean.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
566
r
library(h2o) ### Name: h2o.mean ### Title: Compute the frame's mean by-column (or by-row). ### Aliases: h2o.mean mean.H2OFrame ### ** Examples ## No test: h2o.init() prostate_path <- system.file("extdata", "prostate.csv", package = "h2o") prostate <- h2o.uploadFile(path = prostate_path) # Default behavior. Will re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{coKrig} \alias{coKrig} \title{co-Kriging computation.} \usage{ coKrig(Z, K, k, G, g, type = "ordinary", cinv = "syminv") } \arguments{ \item{Z}{Matrix of observed values of the spatial process.} \item{K}{Covariance matrix...
/man/coKrig.Rd
no_license
pedroguarderas/KRIG
R
false
true
2,017
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{coKrig} \alias{coKrig} \title{co-Kriging computation.} \usage{ coKrig(Z, K, k, G, g, type = "ordinary", cinv = "syminv") } \arguments{ \item{Z}{Matrix of observed values of the spatial process.} \item{K}{Covariance matrix...
# Jake Yeung # Date of Creation: 2020-01-20 # File: ~/projects/scchic/scripts/rstudioserver_analysis/BM_all_merged/6-correct_variance_LDA_k4me3.R # K4me3 library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(topicmodels) library(JFuncs) library(scchicFuncs) library(hash) library...
/scripts/rstudioserver_analysis/BM_all_merged/6-correct_variance_LDA_k4me1_remove_plates_write_unenriched_and_stem.R
no_license
jakeyeung/sortchicAllScripts
R
false
false
8,557
r
# Jake Yeung # Date of Creation: 2020-01-20 # File: ~/projects/scchic/scripts/rstudioserver_analysis/BM_all_merged/6-correct_variance_LDA_k4me3.R # K4me3 library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(topicmodels) library(JFuncs) library(scchicFuncs) library(hash) library...
#' Truncated student generator for Bayesian regression simulation #' #' Simulates \code{n} random vectors \eqn{X} exactly distributed #' from the \code{d}-dimensional Student distribution with #' \code{df=}\eqn{\nu} degrees of freedom, mean zero and scale matrix #' \code{Sig}, conditional on \eqn{l<X<u}, #' #' @inherit...
/R/tregress.R
no_license
danmackinlay/TruncatedNormal
R
false
false
3,330
r
#' Truncated student generator for Bayesian regression simulation #' #' Simulates \code{n} random vectors \eqn{X} exactly distributed #' from the \code{d}-dimensional Student distribution with #' \code{df=}\eqn{\nu} degrees of freedom, mean zero and scale matrix #' \code{Sig}, conditional on \eqn{l<X<u}, #' #' @inherit...