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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/servicediscovery_operations.R \name{servicediscovery_update_instance_custom_health_status} \alias{servicediscovery_update_instance_custom_health_status} \title{Submits a request to change the health status of a custom health check to healthy ...
/cran/paws.networking/man/servicediscovery_update_instance_custom_health_status.Rd
permissive
jcheng5/paws
R
false
true
1,852
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/servicediscovery_operations.R \name{servicediscovery_update_instance_custom_health_status} \alias{servicediscovery_update_instance_custom_health_status} \title{Submits a request to change the health status of a custom health check to healthy ...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.45096932888219e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615779685-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
348
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.45096932888219e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
library(dplyr) context("simulate transitions") onepop <- L_elto %>% # Filter out population # 250, period (year) 5 filter(POPNUM == 250, year == 5) %>% # redefine p for el plantón to s for seedling mutate( stage = case_when(stage == "p" ~ "s", TRUE ~ stage), next_stage = case_when(next_stage == "p" ~ "s"...
/tests/testthat/test_sim_transitions.R
permissive
atyre2/raretrans
R
false
false
4,311
r
library(dplyr) context("simulate transitions") onepop <- L_elto %>% # Filter out population # 250, period (year) 5 filter(POPNUM == 250, year == 5) %>% # redefine p for el plantón to s for seedling mutate( stage = case_when(stage == "p" ~ "s", TRUE ~ stage), next_stage = case_when(next_stage == "p" ~ "s"...
test_that("cdm_copy_to() copies data frames to databases", { map( dbplyr:::test_srcs$get(), ~ expect_equivalent_dm( cdm_copy_to(., dm_for_filter, unique_table_names = TRUE), dm_for_filter ) ) }) test_that("cdm_copy_to() copies data frames from databases", { map( dm_for_filter_src, ...
/tests/testthat/test-copy-to.R
permissive
balthasars/dm
R
false
false
1,163
r
test_that("cdm_copy_to() copies data frames to databases", { map( dbplyr:::test_srcs$get(), ~ expect_equivalent_dm( cdm_copy_to(., dm_for_filter, unique_table_names = TRUE), dm_for_filter ) ) }) test_that("cdm_copy_to() copies data frames from databases", { map( dm_for_filter_src, ...
library(stepp) ### Name: stmodelGLM-class ### Title: Class '"stmodelGLM"' ### Aliases: stmodelGLM-class estimate,stmodelGLM-method ### print,stmodelGLM-method test,stmodelGLM-method ### Keywords: classes ### ** Examples showClass("stmodelGLM")
/data/genthat_extracted_code/stepp/examples/stmodelGLM-class.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
253
r
library(stepp) ### Name: stmodelGLM-class ### Title: Class '"stmodelGLM"' ### Aliases: stmodelGLM-class estimate,stmodelGLM-method ### print,stmodelGLM-method test,stmodelGLM-method ### Keywords: classes ### ** Examples showClass("stmodelGLM")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/effect_plots.R \name{save_group_lineplots} \alias{save_group_lineplots} \title{Save line plots with errorbars by group} \usage{ save_group_lineplots( object, all_features = FALSE, file_path, format = "emf", x = time_col(o...
/man/save_group_lineplots.Rd
permissive
antonvsdata/notame
R
false
true
2,616
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/effect_plots.R \name{save_group_lineplots} \alias{save_group_lineplots} \title{Save line plots with errorbars by group} \usage{ save_group_lineplots( object, all_features = FALSE, file_path, format = "emf", x = time_col(o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neptune_operations.R \name{neptune_delete_db_cluster_parameter_group} \alias{neptune_delete_db_cluster_parameter_group} \title{Deletes a specified DB cluster parameter group} \usage{ neptune_delete_db_cluster_parameter_group(DBClusterParamete...
/cran/paws.database/man/neptune_delete_db_cluster_parameter_group.Rd
permissive
TWarczak/paws
R
false
true
963
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neptune_operations.R \name{neptune_delete_db_cluster_parameter_group} \alias{neptune_delete_db_cluster_parameter_group} \title{Deletes a specified DB cluster parameter group} \usage{ neptune_delete_db_cluster_parameter_group(DBClusterParamete...
library(arrow) server <- function(input, output, session) { pageranks <- list() penalty <- list( `03-10` = -3, `03-16` = -1.5, `03-22` = 0 ) feather_files <- list.files("./data", pattern = ".*-.*.feather") hard_min <- 8.989015e-08 hard_max <- 0.01252892 for(file in feather_files) { name <...
/shiny/server.R
no_license
Appsilon/covid-hackathon
R
false
false
5,115
r
library(arrow) server <- function(input, output, session) { pageranks <- list() penalty <- list( `03-10` = -3, `03-16` = -1.5, `03-22` = 0 ) feather_files <- list.files("./data", pattern = ".*-.*.feather") hard_min <- 8.989015e-08 hard_max <- 0.01252892 for(file in feather_files) { name <...
has_citation <- function(path = ".") { file_exists(path(path, 'inst/CITATION')) } create_meta <- function(path) { path <- path(path, "DESCRIPTION") dcf <- read.dcf(path) meta <- as.list(dcf[1, ]) meta } read_citation <- function(path = ".") { if (!has_citation(path)) { return(character()) } met...
/R/build-home-citation.R
permissive
dfalster/pkgdown
R
false
false
1,208
r
has_citation <- function(path = ".") { file_exists(path(path, 'inst/CITATION')) } create_meta <- function(path) { path <- path(path, "DESCRIPTION") dcf <- read.dcf(path) meta <- as.list(dcf[1, ]) meta } read_citation <- function(path = ".") { if (!has_citation(path)) { return(character()) } met...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setse_expanded.R \name{setse_expanded} \alias{setse_expanded} \title{SETSe embedding showing full convergence history} \usage{ setse_expanded( g, force = "force", distance = "distance", edge_name = "edge_name", k = "k", tstep = 0....
/man/setse_expanded.Rd
no_license
cran/rsetse
R
false
true
3,040
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setse_expanded.R \name{setse_expanded} \alias{setse_expanded} \title{SETSe embedding showing full convergence history} \usage{ setse_expanded( g, force = "force", distance = "distance", edge_name = "edge_name", k = "k", tstep = 0....
# Script to generate modleR logo library(ggplot2) library(rgdal) library(showtext) library(raster) library(rasterVis) library(hexSticker) # South America shapefile shp <- readOGR("dados/shapefile/am_sul/South_America.shp") # Creating raster from shapefile base_ras <- raster(extent(shp), res = 1) ras <- rasterize(shp,...
/scripts/01-nuestra_america_invertida.R
no_license
liibre/logo
R
false
false
1,414
r
# Script to generate modleR logo library(ggplot2) library(rgdal) library(showtext) library(raster) library(rasterVis) library(hexSticker) # South America shapefile shp <- readOGR("dados/shapefile/am_sul/South_America.shp") # Creating raster from shapefile base_ras <- raster(extent(shp), res = 1) ras <- rasterize(shp,...
#'--- #' title: OUTRIDER Results #' author: mumichae #' wb: #' log: #' - snakemake: '`sm str(tmp_dir / "AE" / "{annotation}" / "{dataset}" / "OUTRIDER_results.Rds")`' #' params: #' - padjCutoff: '`sm cfg.AE.get("padjCutoff")`' #' - zScoreCutoff: '`sm cfg.AE.get("zScoreCutoff")`' #' - hpoFile: '`sm cfg.get("hp...
/drop/modules/aberrant-expression-pipeline/OUTRIDER/results.R
permissive
nickhsmith/drop
R
false
false
2,851
r
#'--- #' title: OUTRIDER Results #' author: mumichae #' wb: #' log: #' - snakemake: '`sm str(tmp_dir / "AE" / "{annotation}" / "{dataset}" / "OUTRIDER_results.Rds")`' #' params: #' - padjCutoff: '`sm cfg.AE.get("padjCutoff")`' #' - zScoreCutoff: '`sm cfg.AE.get("zScoreCutoff")`' #' - hpoFile: '`sm cfg.get("hp...
# rm(list=ls()) library(data.table) library(lme4) library(jagsUI) library(MCMCpack) library(arm) dat <- readRDS('Datasets/chl_july18.rds') dat$ly.med=log(dat$ly.med+.01) head(dat) dim(dat) length(unique(dat$lagoslakeid)) ################################################################# ########## BUGS CODE #########...
/Code/Model/chla_jags_ln.R
no_license
limnoliver/LAGOS_DOC
R
false
false
5,396
r
# rm(list=ls()) library(data.table) library(lme4) library(jagsUI) library(MCMCpack) library(arm) dat <- readRDS('Datasets/chl_july18.rds') dat$ly.med=log(dat$ly.med+.01) head(dat) dim(dat) length(unique(dat$lagoslakeid)) ################################################################# ########## BUGS CODE #########...
## realRatingMatrix ## coercion setAs("matrix", "realRatingMatrix", function(from) new("realRatingMatrix", data = dropNA(from))) setAs("realRatingMatrix", "matrix", function(from) dropNA2matrix(from@data)) ## from a data.frame with columns user, item, rating ## this perserves 0s setAs("data.frame", "realRat...
/recommenderlab/R/realRatingMatrix.R
no_license
ingted/R-Examples
R
false
false
4,343
r
## realRatingMatrix ## coercion setAs("matrix", "realRatingMatrix", function(from) new("realRatingMatrix", data = dropNA(from))) setAs("realRatingMatrix", "matrix", function(from) dropNA2matrix(from@data)) ## from a data.frame with columns user, item, rating ## this perserves 0s setAs("data.frame", "realRat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gg_remove.R \name{gg_remove_grid} \alias{gg_remove_grid} \title{Remove both x- and y-axis grids} \usage{ gg_remove_grid(ggplot_obj) } \description{ Remove both x- and y-axis grids }
/man/gg_remove_grid.Rd
no_license
statech/ggutils
R
false
true
260
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gg_remove.R \name{gg_remove_grid} \alias{gg_remove_grid} \title{Remove both x- and y-axis grids} \usage{ gg_remove_grid(ggplot_obj) } \description{ Remove both x- and y-axis grids }
library('dplyr') Month1 <- read.csv('012016-UniqueDevicesHourlyPerLocation_CorrectTimes.csv') Month2 <- read.csv('022016-UniqueDevicesHourlyPerLocation_CorrectTimes.csv') Month3 <- read.csv('032016-UniqueDevicesHourlyPerLocation_CorrectTimes.csv') Month4 <- read.csv('042016-UniqueDevicesHourlyPerLocation_CorrectT...
/R-Scripts/From-CSV/Traffic-Data-From-CSV-Part-03.R
no_license
DavidAMills/hack-the-traffic
R
false
false
7,613
r
library('dplyr') Month1 <- read.csv('012016-UniqueDevicesHourlyPerLocation_CorrectTimes.csv') Month2 <- read.csv('022016-UniqueDevicesHourlyPerLocation_CorrectTimes.csv') Month3 <- read.csv('032016-UniqueDevicesHourlyPerLocation_CorrectTimes.csv') Month4 <- read.csv('042016-UniqueDevicesHourlyPerLocation_CorrectT...
# server library("shiny") library("wordcloud2") library("rhandsontable") library("NISTunits") server = function(input, output){ data = reactiveValues(sample = data.frame(words = c("사과", "딸기", "아보카도", "포도", "바나나", "귤"), count = (10:15) * 5, ...
/30_visualization/shiny/wordcloud2/server.R
no_license
snapbuy/R_edu
R
false
false
1,289
r
# server library("shiny") library("wordcloud2") library("rhandsontable") library("NISTunits") server = function(input, output){ data = reactiveValues(sample = data.frame(words = c("사과", "딸기", "아보카도", "포도", "바나나", "귤"), count = (10:15) * 5, ...
setwd("~/repos/gunfire-locator/") library(tuneR) library(seewave) library(zoo) library(caret) library(randomForest) library(nnet) library(doMC) library(zoo) registerDoMC() load("data/prediction_model.rda") wl <- 1024 ovlp <- 512 rec1 <- readWave("~/Documents/GunTest_26_06_14/AK_545_40/AK_545_40_Записано/Трек 1_001 (...
/predict.R
no_license
nikolaypavlov/gunfire-locator
R
false
false
972
r
setwd("~/repos/gunfire-locator/") library(tuneR) library(seewave) library(zoo) library(caret) library(randomForest) library(nnet) library(doMC) library(zoo) registerDoMC() load("data/prediction_model.rda") wl <- 1024 ovlp <- 512 rec1 <- readWave("~/Documents/GunTest_26_06_14/AK_545_40/AK_545_40_Записано/Трек 1_001 (...
#simuldata <- read.xlsx(file="1997-2015 Informs Data.xlsx", sheetIndex=1,stringsAsFactors = FALSE) rm(list=ls()[!ls() %in% c('simuldata')]) output <- matrix(ncol = 3) simuldata$Authors <- gsub("\\[ Full.*|\\[ Abstract.*","",simuldata$Authors) simuldata$Authors <- gsub("\\),","\\)",simuldata$Authors) for (i in c(1:102,...
/Author Split.R
no_license
kevinzhai/Sim-Scraper
R
false
false
2,875
r
#simuldata <- read.xlsx(file="1997-2015 Informs Data.xlsx", sheetIndex=1,stringsAsFactors = FALSE) rm(list=ls()[!ls() %in% c('simuldata')]) output <- matrix(ncol = 3) simuldata$Authors <- gsub("\\[ Full.*|\\[ Abstract.*","",simuldata$Authors) simuldata$Authors <- gsub("\\),","\\)",simuldata$Authors) for (i in c(1:102,...
#' Information: https://www.garrickadenbuie.com/blog/print-xaringan-chromote/ #' Print xaringan slides to PDF #' #' Prints xaringan slides to a PDF file, even complicated slides #' with panelsets or other html widgets or advanced features. #' Requires a local installation of Chrome. #' #' @param input Path to Rmd or h...
/slides/xaringan_to_pdf.R
no_license
anhnguyendepocen/EDS_212_essential-math
R
false
false
5,154
r
#' Information: https://www.garrickadenbuie.com/blog/print-xaringan-chromote/ #' Print xaringan slides to PDF #' #' Prints xaringan slides to a PDF file, even complicated slides #' with panelsets or other html widgets or advanced features. #' Requires a local installation of Chrome. #' #' @param input Path to Rmd or h...
testthat::test_that("Testing numeric caps",{ # Single vector input ----------------------------------------------------- # Simple test data_in <- 1:10 testthat::expect_equal(prep_numeric_caps(data_in, cap_below=3), c(rep(3,3), 4:10)) testthat::expect_equal(prep_numeric_caps(data_in, cap_above=7), c(1:6 , ...
/tests/testthat/test_prep_numeric_caps.R
no_license
gloverd2/codeBase
R
false
false
1,877
r
testthat::test_that("Testing numeric caps",{ # Single vector input ----------------------------------------------------- # Simple test data_in <- 1:10 testthat::expect_equal(prep_numeric_caps(data_in, cap_below=3), c(rep(3,3), 4:10)) testthat::expect_equal(prep_numeric_caps(data_in, cap_above=7), c(1:6 , ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setViewBounds.R \docType{methods} \name{setViewBounds} \alias{setViewBounds} \alias{setViewBounds,leaflet,list-method} \alias{setViewBounds,leaflet,sfc-method} \alias{setViewBounds,leaflet,sf-method} \alias{setViewBounds,leaflet,Spatial-metho...
/man/setViewBounds-methods.Rd
no_license
BAAQMD/lltools
R
false
true
805
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/setViewBounds.R \docType{methods} \name{setViewBounds} \alias{setViewBounds} \alias{setViewBounds,leaflet,list-method} \alias{setViewBounds,leaflet,sfc-method} \alias{setViewBounds,leaflet,sf-method} \alias{setViewBounds,leaflet,Spatial-metho...
save_drug_sub <- function(con, df, table_name, save_table_only = FALSE, field.types = NULL, primary_key = NULL, foreign_key = "parent_key", ref_table = "drug(primary_key)") { # store drug sub_Table in db dbWriteTable( conn = co...
/R/drug_tables_saver.R
no_license
Sparklingredstar/dbparser
R
false
false
1,572
r
save_drug_sub <- function(con, df, table_name, save_table_only = FALSE, field.types = NULL, primary_key = NULL, foreign_key = "parent_key", ref_table = "drug(primary_key)") { # store drug sub_Table in db dbWriteTable( conn = co...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/pffr-methods.R \name{print.summary.pffr} \alias{print.summary.pffr} \title{Print method for summary of a pffr fit} \usage{ \method{print}{summary.pffr}(x, digits = max(3, getOption("digits") - 3), signif.stars = getOption("sh...
/man/print.summary.pffr.Rd
no_license
alenzhao/refund
R
false
false
860
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/pffr-methods.R \name{print.summary.pffr} \alias{print.summary.pffr} \title{Print method for summary of a pffr fit} \usage{ \method{print}{summary.pffr}(x, digits = max(3, getOption("digits") - 3), signif.stars = getOption("sh...
library(sqldf) ##plot1 ##Read data file setwd("~/Data Science/ExploratoryDataAnalysis/Week 1/data") household <- read.table("household_power_consumption.txt",header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") epc <-subset(household, date >= "2007-01-01" & date <= "2007-01-02") head(epc) summary(epc) ##...
/plot4.R
no_license
awalder1/ExData_Plotting1
R
false
false
1,471
r
library(sqldf) ##plot1 ##Read data file setwd("~/Data Science/ExploratoryDataAnalysis/Week 1/data") household <- read.table("household_power_consumption.txt",header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") epc <-subset(household, date >= "2007-01-01" & date <= "2007-01-02") head(epc) summary(epc) ##...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/not.a.file.R \name{not.a.file} \alias{not.a.file} \title{A function to protect a single SNP id from being interpreted as a file} \usage{ not.a.file(scalar_character) } \description{ A function to protect a single SNP id from being interpreted...
/man/not.a.file.Rd
permissive
choishingwan/lassosum
R
false
true
333
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/not.a.file.R \name{not.a.file} \alias{not.a.file} \title{A function to protect a single SNP id from being interpreted as a file} \usage{ not.a.file(scalar_character) } \description{ A function to protect a single SNP id from being interpreted...
raw.means.plot2 <- function(data, col.id, col.offset, col.x, col.value, fun.aggregate = "mean", ... ) { if(!is.data.frame(data)) stop("data must be a data.frame") columns <- c(col.id, col.offset, col.x, col.value) if (any(!(columns %in% colnames(data)))) stop("column not matching the data") formula.agg <- ...
/R/rm.plot2.R
no_license
plotrix/plotrix
R
false
false
553
r
raw.means.plot2 <- function(data, col.id, col.offset, col.x, col.value, fun.aggregate = "mean", ... ) { if(!is.data.frame(data)) stop("data must be a data.frame") columns <- c(col.id, col.offset, col.x, col.value) if (any(!(columns %in% colnames(data)))) stop("column not matching the data") formula.agg <- ...
#' Loads a TCGA cohort #' #' @description Loads the user mentioned TCGA cohorts #' @param study Study names to load. Use \code{\link{tcgaAvailable}} to see available options. #' @param source Source for MAF files. Can be \code{MC3} or \code{Firehose}. Default \code{MC3}. Argument may be abbreviated (M or F) #' @param ...
/R/tcga.R
permissive
yajass/maftools
R
false
false
2,760
r
#' Loads a TCGA cohort #' #' @description Loads the user mentioned TCGA cohorts #' @param study Study names to load. Use \code{\link{tcgaAvailable}} to see available options. #' @param source Source for MAF files. Can be \code{MC3} or \code{Firehose}. Default \code{MC3}. Argument may be abbreviated (M or F) #' @param ...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615836489-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,048
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse.R \name{parse_issues} \alias{parse_issues} \title{Parse issues overview from \code{get_issues}} \usage{ parse_issues(res) } \arguments{ \item{res}{List returned by corresponding \code{get_} function} } \value{ data.frame with one record...
/man/parse_issues.Rd
permissive
jwinget/projmgr
R
false
true
881
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse.R \name{parse_issues} \alias{parse_issues} \title{Parse issues overview from \code{get_issues}} \usage{ parse_issues(res) } \arguments{ \item{res}{List returned by corresponding \code{get_} function} } \value{ data.frame with one record...
#' Compares Transformations #' #' Compares families of transformations with respect to sense of AIC, R.Squared, Skewness or Kurtosis; For positive y compares between Box-Cox, Dual and Manly transformations; For all values of y it compares between Yeo-Johnson, Manly, Modulus and Bickel-Doksum. #' @param object a data...
/Sandbox/Old comparison functions/compareTransformation.R
no_license
akreutzmann/trafo
R
false
false
995
r
#' Compares Transformations #' #' Compares families of transformations with respect to sense of AIC, R.Squared, Skewness or Kurtosis; For positive y compares between Box-Cox, Dual and Manly transformations; For all values of y it compares between Yeo-Johnson, Manly, Modulus and Bickel-Doksum. #' @param object a data...
# Exercise 5: large data sets: Baby Name Popularity Over Time # Read in the female baby names data file found in the `data` folder into a # variable called `names`. Remember to NOT treat the strings as factors! names <- read.csv("data/female_names.csv", stringsAsFactors=FALSE) # Create a data frame `names_2013` that...
/exercise-5/exercise.R
permissive
YinChen0504/ch9-data-frames
R
false
false
1,246
r
# Exercise 5: large data sets: Baby Name Popularity Over Time # Read in the female baby names data file found in the `data` folder into a # variable called `names`. Remember to NOT treat the strings as factors! names <- read.csv("data/female_names.csv", stringsAsFactors=FALSE) # Create a data frame `names_2013` that...
#### reading in the features positions and names nm = read.table("features.txt", sep = "", stringsAsFactors = FALSE, col.names = c("index", "old_feature")) nm$feature = nm$old_feature ### adding another column where we clean up feature names ### computing subset of columns to extract from X_train and...
/run_analysis.R
no_license
KristinaPlazonic/project1-getdata-coursera
R
false
false
4,034
r
#### reading in the features positions and names nm = read.table("features.txt", sep = "", stringsAsFactors = FALSE, col.names = c("index", "old_feature")) nm$feature = nm$old_feature ### adding another column where we clean up feature names ### computing subset of columns to extract from X_train and...
testlist <- list(vec = NULL, prob_vec = c(5.41104782172621e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(eive:::cga_generate_chromosome,testlist) str(result)
/eive/inst/testfiles/cga_generate_chromosome/AFL_cga_generate_chromosome/cga_generate_chromosome_valgrind_files/1609871280-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
240
r
testlist <- list(vec = NULL, prob_vec = c(5.41104782172621e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(eive:::cga_generate_chromosome,testlist) str(result)
### function for gathering multiple scales at once. # Specifically designed for multilevel data of repeateud measures. Will create NAs for missing time points. gather_multilevel <- function(df, varlist, maxlevel1, varnames) { # first, gather all the scale scores separately. gatherlist <- map(varlist, function(x)...
/gather_multilevel.R
permissive
franciscowilhelm/r-collection
R
false
false
884
r
### function for gathering multiple scales at once. # Specifically designed for multilevel data of repeateud measures. Will create NAs for missing time points. gather_multilevel <- function(df, varlist, maxlevel1, varnames) { # first, gather all the scale scores separately. gatherlist <- map(varlist, function(x)...
### Model ###################################################################### library(tidyverse) # install.packages("broom") # install.packages("rpart") library(broom) library(rpart) diamonds %>% glimpse() ### Basic Statistics ########################################################### summary(diamonds) summary(d...
/GGT/4 - Model.R
permissive
plear/kRtraining
R
false
false
6,492
r
### Model ###################################################################### library(tidyverse) # install.packages("broom") # install.packages("rpart") library(broom) library(rpart) diamonds %>% glimpse() ### Basic Statistics ########################################################### summary(diamonds) summary(d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jj.R \name{factorCOL} \alias{factorCOL} \title{factorCOL} \usage{ factorCOL(dataTOfactor, newLEVELS = NULL) } \arguments{ \item{love}{Do you love cats? Defaults to TRUE.} } \description{ This creates an input factor and remaps levels to integ...
/jj/man/factorCOL.Rd
no_license
jclark50/jj
R
false
true
374
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jj.R \name{factorCOL} \alias{factorCOL} \title{factorCOL} \usage{ factorCOL(dataTOfactor, newLEVELS = NULL) } \arguments{ \item{love}{Do you love cats? Defaults to TRUE.} } \description{ This creates an input factor and remaps levels to integ...
library(BAMMtools) ### Name: cumulativeShiftProbsTree ### Title: Branch-specific rate shift probabilities ### Aliases: cumulativeShiftProbsTree marginalShiftProbsTree ### Keywords: graphics ### ** Examples data(whales) data(events.whales) ed <- getEventData(whales, events.whales, nsamples = 500) # computing the ma...
/data/genthat_extracted_code/BAMMtools/examples/ShiftProbsTree.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
644
r
library(BAMMtools) ### Name: cumulativeShiftProbsTree ### Title: Branch-specific rate shift probabilities ### Aliases: cumulativeShiftProbsTree marginalShiftProbsTree ### Keywords: graphics ### ** Examples data(whales) data(events.whales) ed <- getEventData(whales, events.whales, nsamples = 500) # computing the ma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wafv2_operations.R \name{wafv2_list_api_keys} \alias{wafv2_list_api_keys} \title{Retrieves a list of the API keys that you've defined for the specified scope} \usage{ wafv2_list_api_keys(Scope, NextMarker = NULL, Limit = NULL) } \arguments{ \...
/cran/paws.security.identity/man/wafv2_list_api_keys.Rd
permissive
paws-r/paws
R
false
true
1,728
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wafv2_operations.R \name{wafv2_list_api_keys} \alias{wafv2_list_api_keys} \title{Retrieves a list of the API keys that you've defined for the specified scope} \usage{ wafv2_list_api_keys(Scope, NextMarker = NULL, Limit = NULL) } \arguments{ \...
# Question A - Description of Dataset # Load dataset dataset <- read.csv("dataset/movie_metadata.csv") # 1. Number of observations and variables print("Number of observations and variables:") dim(dataset) # yields 5043 28 # 2. Names of variables print("Names of variables:") names(dataset)
/Part1/QuestionA.R
permissive
JosePedro90/DataMiningAssig
R
false
false
303
r
# Question A - Description of Dataset # Load dataset dataset <- read.csv("dataset/movie_metadata.csv") # 1. Number of observations and variables print("Number of observations and variables:") dim(dataset) # yields 5043 28 # 2. Names of variables print("Names of variables:") names(dataset)
library(eQTLtools) library(icreport) setwd("/zenodotus/dat01/mezeylab_scratch/jij2009/updated_input_files/") RData_file <- "MUTHERlcl.RData" #RData_file <- "GTExAdiposeSubq.RData" load(RData_file) file_name <- gsub("RData", "h5", RData_file) file_name <- paste0("/zenodotus/dat01/mezeylab_scratch/jij2009/eqtl_input_h...
/create_h5/MUTHERlcl.R
no_license
jinhyunju/CONFETI_pipeline
R
false
false
1,300
r
library(eQTLtools) library(icreport) setwd("/zenodotus/dat01/mezeylab_scratch/jij2009/updated_input_files/") RData_file <- "MUTHERlcl.RData" #RData_file <- "GTExAdiposeSubq.RData" load(RData_file) file_name <- gsub("RData", "h5", RData_file) file_name <- paste0("/zenodotus/dat01/mezeylab_scratch/jij2009/eqtl_input_h...
## reading data hpow <- read.csv("./household_power_consumption.txt", sep = ";", stringsAsFactors=FALSE) ## subsetting data hpow1 <- hpow[hpow$Date == "1/2/2007"|hpow$Date == "2/2/2007" , 3] ## replace missing data (i.e. "?" values) if there is any with NA for (i in 1:length(hpow1)) { if (hpow1[i] == "?") {hpow1[...
/plot1.R
no_license
fehtemam/ExData_Plotting1
R
false
false
558
r
## reading data hpow <- read.csv("./household_power_consumption.txt", sep = ";", stringsAsFactors=FALSE) ## subsetting data hpow1 <- hpow[hpow$Date == "1/2/2007"|hpow$Date == "2/2/2007" , 3] ## replace missing data (i.e. "?" values) if there is any with NA for (i in 1:length(hpow1)) { if (hpow1[i] == "?") {hpow1[...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sqs_operations.R \name{sqs_add_permission} \alias{sqs_add_permission} \title{Adds a permission to a queue for a specific principal} \usage{ sqs_add_permission(QueueUrl, Label, AWSAccountIds, Actions) } \arguments{ \item{QueueUrl}{[required] T...
/paws/man/sqs_add_permission.Rd
permissive
jcheng5/paws
R
false
true
4,148
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sqs_operations.R \name{sqs_add_permission} \alias{sqs_add_permission} \title{Adds a permission to a queue for a specific principal} \usage{ sqs_add_permission(QueueUrl, Label, AWSAccountIds, Actions) } \arguments{ \item{QueueUrl}{[required] T...
# Vincent ROCHER (29/03/2021) # Convert DeepG4 output into tsv format seq score for all chromosome # required packages require(Biostrings) require(tidyverse) input_table <- snakemake@input[["table"]] output_file <- snakemake@output[[1]] #read fasta file input_table %>% map(read_tsv) %>% bind_rows() %>% write_tsv(outp...
/prediction_genome/scripts/DeepG4_to_tsv.R
no_license
raphaelmourad/DeepG4ToolsComparison
R
false
false
328
r
# Vincent ROCHER (29/03/2021) # Convert DeepG4 output into tsv format seq score for all chromosome # required packages require(Biostrings) require(tidyverse) input_table <- snakemake@input[["table"]] output_file <- snakemake@output[[1]] #read fasta file input_table %>% map(read_tsv) %>% bind_rows() %>% write_tsv(outp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add.R, R/add_.R \name{e_treemap} \alias{e_treemap} \alias{e_treemap_} \title{Treemap} \usage{ e_treemap(e, parent, child, value, rm_x = TRUE, rm_y = TRUE, ...) e_treemap_(e, parent, child, value, rm_x = TRUE, rm_y = TRUE, ...) } \arguments{ ...
/man/e_treemap.Rd
permissive
Aden2018/echarts4r
R
false
true
1,005
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add.R, R/add_.R \name{e_treemap} \alias{e_treemap} \alias{e_treemap_} \title{Treemap} \usage{ e_treemap(e, parent, child, value, rm_x = TRUE, rm_y = TRUE, ...) e_treemap_(e, parent, child, value, rm_x = TRUE, rm_y = TRUE, ...) } \arguments{ ...
situacao_aluno <- c(1, 1, 2, 1, 1, 1, 4, 1, 5, 3, 1, 2) recode <- c (matriculado = 1, trancamento = 2, desistencia = 3, transferencia = 4, desvinculado = 5) (situacao_aluno <- factor(situacao_aluno, levels = recode, labels = names(recode)))
/scripts/tipos e fatores.R
no_license
fabiana-costa/etl_r_ppgcp
R
false
false
244
r
situacao_aluno <- c(1, 1, 2, 1, 1, 1, 4, 1, 5, 3, 1, 2) recode <- c (matriculado = 1, trancamento = 2, desistencia = 3, transferencia = 4, desvinculado = 5) (situacao_aluno <- factor(situacao_aluno, levels = recode, labels = names(recode)))
#输出 #source('F:/R/sample/确定分层.R', encoding = 'UTF-8') #num_level=select_num_level(dd) level_all=data.frame('区号'=quhao, '输出层数'=num_level, '样本量'=sample_tol[num_level], '总量'=tolnum , '抽样比'=rito[num_level]) ###分层的信息 setwd("F:/R/sample/层信息1...
/sample/输出.R
no_license
hallo128/R
R
false
false
1,872
r
#输出 #source('F:/R/sample/确定分层.R', encoding = 'UTF-8') #num_level=select_num_level(dd) level_all=data.frame('区号'=quhao, '输出层数'=num_level, '样本量'=sample_tol[num_level], '总量'=tolnum , '抽样比'=rito[num_level]) ###分层的信息 setwd("F:/R/sample/层信息1...
testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(1.71542139741633e-310, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06,...
/metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615769470-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
728
r
testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(1.71542139741633e-310, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06,...
# Fingerprinting worker script - running single chip enrichment option # Delay allows time to monitor process starting up print("preparing for script launch, 5s synch delay") Sys.sleep(5) # Read the genelist in genelist <- sampleset[[4]]; total <- length(genelist) # load contents of directory once # this used to be w...
/Fingerprint running scripts/DPD_parallel/DPD_parallel_d.R
no_license
hidelab/database-fingerprint-scripts
R
false
false
1,102
r
# Fingerprinting worker script - running single chip enrichment option # Delay allows time to monitor process starting up print("preparing for script launch, 5s synch delay") Sys.sleep(5) # Read the genelist in genelist <- sampleset[[4]]; total <- length(genelist) # load contents of directory once # this used to be w...
sigmaLowFlows<-function(x, resid.column) { if (class(x)=="streamflow") { fft<-fourierAnalysis(x) data<-fft$signal resid.column<-10 } if (class(x)=="matrix" | class(x)=="data.frame" ) { if( !is.null(resid.column) ) data<-x if (is.null(resid.column)) stop("specify c...
/R/sigmaLFHF.R
no_license
cran/discharge
R
false
false
4,251
r
sigmaLowFlows<-function(x, resid.column) { if (class(x)=="streamflow") { fft<-fourierAnalysis(x) data<-fft$signal resid.column<-10 } if (class(x)=="matrix" | class(x)=="data.frame" ) { if( !is.null(resid.column) ) data<-x if (is.null(resid.column)) stop("specify c...
## summarize_admins ################################################ #' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param ind PARAM_DESCRIPTION, Default: indicator #' @param ig PARAM_DESCRIPTION, Default: indicator_group #' @param summstats PARAM_DESCRIPTION, Default: c("mean", "lower", "upper", "cir...
/antibiotic_usage/mbg_central/LBDCore/R/summarize_admins.R
no_license
The-Oxford-GBD-group/antibiotic_modelling_code
R
false
false
2,342
r
## summarize_admins ################################################ #' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param ind PARAM_DESCRIPTION, Default: indicator #' @param ig PARAM_DESCRIPTION, Default: indicator_group #' @param summstats PARAM_DESCRIPTION, Default: c("mean", "lower", "upper", "cir...
library(raster) library(ggplot2) library(yaml) date_from_filename <- function(f) { b <- basename(f) b <- strsplit(b, '[.]')[[1]] b <- b[1] return(as.Date(b)) } config <- yaml.load_file('scripts/load/config.yml') NRS <- config$NRS NRS <- extent(c(NRS$lon_min, NRS$lon_max, NRS$lat_min, NRS$lat_max)) NCRS <- con...
/scripts/explore/chl_oc_cci/region_ts.R
no_license
dreanod/redseachl
R
false
false
2,380
r
library(raster) library(ggplot2) library(yaml) date_from_filename <- function(f) { b <- basename(f) b <- strsplit(b, '[.]')[[1]] b <- b[1] return(as.Date(b)) } config <- yaml.load_file('scripts/load/config.yml') NRS <- config$NRS NRS <- extent(c(NRS$lon_min, NRS$lon_max, NRS$lat_min, NRS$lat_max)) NCRS <- con...
#' Treemap package #' #' \tabular{ll}{ #' Package: \tab treemap\cr #' Type: \tab Package\cr #' Version: \tab 2.2-1\cr #' Date: \tab 2014-06-04\cr #' License: \tab GPL-3\cr #' LazyLoad: \tab yes\cr #' } #' #' A treemap is a space-filling visualization of hierarchical structures. This package offers great flexibility to ...
/pkg/R/pkg.R
no_license
parthasen/treemap
R
false
false
746
r
#' Treemap package #' #' \tabular{ll}{ #' Package: \tab treemap\cr #' Type: \tab Package\cr #' Version: \tab 2.2-1\cr #' Date: \tab 2014-06-04\cr #' License: \tab GPL-3\cr #' LazyLoad: \tab yes\cr #' } #' #' A treemap is a space-filling visualization of hierarchical structures. This package offers great flexibility to ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diagnostics.R \name{plot_spaghetti} \alias{plot_spaghetti} \title{Plot NONMEM data as spaghetti plot} \usage{ plot_spaghetti(.data, strata = "", grouping = "", idv = "TIME", logY = F, ID = "ID") } \arguments{ \item{.data}{NONMEM data as a d...
/man/plot_spaghetti.Rd
no_license
qPharmetra/PMDatR
R
false
true
889
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diagnostics.R \name{plot_spaghetti} \alias{plot_spaghetti} \title{Plot NONMEM data as spaghetti plot} \usage{ plot_spaghetti(.data, strata = "", grouping = "", idv = "TIME", logY = F, ID = "ID") } \arguments{ \item{.data}{NONMEM data as a d...
###################################################### ###### Statistical Modelling ###################################################### ### Fitted Model ## Model1 Full model model1<- lm(realinf~GDPDEF+CPIAUCSL+CPILFESL+PPIACO+WPSFD4131+IR+IQ,data=mergedata) summary(model1) ## Stepwise Model stepwise(model1, dire...
/Statistical_Model.R
no_license
wenfeichu/Wenfei-s-R-code-share
R
false
false
4,635
r
###################################################### ###### Statistical Modelling ###################################################### ### Fitted Model ## Model1 Full model model1<- lm(realinf~GDPDEF+CPIAUCSL+CPILFESL+PPIACO+WPSFD4131+IR+IQ,data=mergedata) summary(model1) ## Stepwise Model stepwise(model1, dire...
#' Baseline pupil data to the average pupil size within a window #' #' This function is for use with the PupillometryR package to baseline each participant's pupil size to the #' mean pupil size within a window. #' This may not be necessary if you are doing purely within-subject analyses, but it is convenient for #' co...
/R/baseline_data.R
permissive
samhforbes/PupillometryR
R
false
false
2,643
r
#' Baseline pupil data to the average pupil size within a window #' #' This function is for use with the PupillometryR package to baseline each participant's pupil size to the #' mean pupil size within a window. #' This may not be necessary if you are doing purely within-subject analyses, but it is convenient for #' co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{as_numeric} \alias{as_numeric} \title{Convert one dimension data to numeric} \usage{ as_numeric(x) } \arguments{ \item{x}{integer, factor, character. data to be changed.} } \value{ numeric } \description{ Convert one dimension da...
/man/as_numeric.Rd
no_license
sbalci/BitStat
R
false
true
384
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{as_numeric} \alias{as_numeric} \title{Convert one dimension data to numeric} \usage{ as_numeric(x) } \arguments{ \item{x}{integer, factor, character. data to be changed.} } \value{ numeric } \description{ Convert one dimension da...
\name{EasyVisNor} \alias{EasyVisNor} \title{Normality tests and visualisations} \usage{ vis_Nor(vector1 , vector2) } \arguments{ \item{vector1}{vector1 : A vector which represents a variable that we want to test its normality} \item{vector2}{A second vector used for bivariate descriptive statistics} } \de...
/man/EasyVisNor.Rd
no_license
abirjaouani/EasyVisNor
R
false
false
529
rd
\name{EasyVisNor} \alias{EasyVisNor} \title{Normality tests and visualisations} \usage{ vis_Nor(vector1 , vector2) } \arguments{ \item{vector1}{vector1 : A vector which represents a variable that we want to test its normality} \item{vector2}{A second vector used for bivariate descriptive statistics} } \de...
## Information in english ## Create one R script called run_analysis.R that does the following: ## 1. Merges the training and the test sets to create one data set. ## 2. Extracts only the measurements on the mean and standard deviation for each ## measurement. ## 3. Uses descriptive activity names to name the activ...
/run_analysis.R
no_license
gviglioni/Getting-and-Cleaning-Data-Project
R
false
false
4,108
r
## Information in english ## Create one R script called run_analysis.R that does the following: ## 1. Merges the training and the test sets to create one data set. ## 2. Extracts only the measurements on the mean and standard deviation for each ## measurement. ## 3. Uses descriptive activity names to name the activ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/R_dlfoo2_PlotMisc.R \docType{data} \name{palette_gradients} \alias{palette_gradients} \title{list of different colors used for heatmaps Object of type List. Vectors with different colors used for plotting} \format{ An object of class \code{li...
/man/palette_gradients.Rd
no_license
cirrina/dlfoo2
R
false
true
941
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/R_dlfoo2_PlotMisc.R \docType{data} \name{palette_gradients} \alias{palette_gradients} \title{list of different colors used for heatmaps Object of type List. Vectors with different colors used for plotting} \format{ An object of class \code{li...
#' Compile a formula defining a new operator #' @description #' User-defined operators associated to a formula are compiled in shared object #' files with this function. #' @details #' The function `compile_formula` sets up the working directory and the #' environment to call the function [rkeops::compile_code()] for...
/rkeops/R/generic-compile_formula.R
permissive
lelayf/keops
R
false
false
2,635
r
#' Compile a formula defining a new operator #' @description #' User-defined operators associated to a formula are compiled in shared object #' files with this function. #' @details #' The function `compile_formula` sets up the working directory and the #' environment to call the function [rkeops::compile_code()] for...
#check met hastings operation on correlation matrix with wishart move library(MCMCpack) library(tictoc) shape_1 <- 15 shape_2 <- 86 par(mfrow = c(2,2)) hist(rbeta(1E6, shape1 = shape_1, shape2 = shape_2) * 2 - 1, breaks = 1E2, main = "target distribution", xlim = c(-1,1), xlab = "") corr_init <- 0.001 n_iter <- 2E4 c...
/correlationMatrixProposalDistributions.R
no_license
NikVetr/dissertation_work
R
false
false
65,193
r
#check met hastings operation on correlation matrix with wishart move library(MCMCpack) library(tictoc) shape_1 <- 15 shape_2 <- 86 par(mfrow = c(2,2)) hist(rbeta(1E6, shape1 = shape_1, shape2 = shape_2) * 2 - 1, breaks = 1E2, main = "target distribution", xlim = c(-1,1), xlab = "") corr_init <- 0.001 n_iter <- 2E4 c...
find_function_index <- function(code) { # function message function_index <- grep("function",x = code,ignore.case = FALSE,fixed = TRUE) function_messages <- getFunctionName(function_index, code, "function") code <- insert_message(code, function_messages) # observeEvent message function_index <-...
/R/support_function.R
no_license
kartikeyakirar/shinyDebugger
R
false
false
4,971
r
find_function_index <- function(code) { # function message function_index <- grep("function",x = code,ignore.case = FALSE,fixed = TRUE) function_messages <- getFunctionName(function_index, code, "function") code <- insert_message(code, function_messages) # observeEvent message function_index <-...
testlist <- list(data = structure(c(8.25731807835261e-310, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610555899-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
539
r
testlist <- list(data = structure(c(8.25731807835261e-310, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 1.90359856625529e+185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
# Fanduel 2016 Data Analysis # look at summary stats of top 20 qbs in week 1 week1 <- X2016_Fanduel_Results[which(X2016_Fanduel_Results$Week == 1),] week1qb <- week1[which(week1$Pos == "QB"),] mean(week1qb$`FD points`[1:20]) sd(week1qb$`FD points`[1:20]) # summary stats of projected top 20 qbs in week 1 proj_week1 <-...
/Fanduel2016_analysis.R
no_license
petertia/Predicting-Fantasy-Football-Points-Using-Machine-Learning
R
false
false
1,760
r
# Fanduel 2016 Data Analysis # look at summary stats of top 20 qbs in week 1 week1 <- X2016_Fanduel_Results[which(X2016_Fanduel_Results$Week == 1),] week1qb <- week1[which(week1$Pos == "QB"),] mean(week1qb$`FD points`[1:20]) sd(week1qb$`FD points`[1:20]) # summary stats of projected top 20 qbs in week 1 proj_week1 <-...
## I want to make this code a little more flexible time0 = proc.time() library(dplyr) library(survival) require(stats) library(splines2) library(MASS) library(pracma) source("R/ID_frailty_LT_internalFunctions-updated-Bspline-sandwich-v3.R") ## BATCH MODE - take in arguments ## '--args runNum=1 theta=0' args=(command...
/simulations/Bsplines_ID_sims_n5K_R40_adminCens30_noSandSE_varyTheta_newParams-new_NLM_RStudoTest.R
no_license
mathyCathy/RStudioServerTesting
R
false
false
7,686
r
## I want to make this code a little more flexible time0 = proc.time() library(dplyr) library(survival) require(stats) library(splines2) library(MASS) library(pracma) source("R/ID_frailty_LT_internalFunctions-updated-Bspline-sandwich-v3.R") ## BATCH MODE - take in arguments ## '--args runNum=1 theta=0' args=(command...
#' --- #' title: "Linear modelling with R" #' author: "George Savva" #' date: "23/07/2020" #' output: #' html_document: #' theme: simplex #' --- #' ## ----setup, include=FALSE---------------------------------------------------------------------------- knitr::opts_chunk$set(echo = TRUE, warning=FALSE) #' #' ##...
/day 2/linearModelling.R
no_license
georgemsavva/R_training
R
false
false
16,161
r
#' --- #' title: "Linear modelling with R" #' author: "George Savva" #' date: "23/07/2020" #' output: #' html_document: #' theme: simplex #' --- #' ## ----setup, include=FALSE---------------------------------------------------------------------------- knitr::opts_chunk$set(echo = TRUE, warning=FALSE) #' #' ##...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_mcar_10_unstd_mc.mvn.R \name{mvn_mcar_10_mc.mvn_pcci_task} \alias{mvn_mcar_10_mc.mvn_pcci_task} \title{Monte Carlo Method Confidence Intervals Assuming Multivariate Normal Distribution for Indirect Effect in a Simple Mediation Model for D...
/man/mvn_mcar_10_mc.mvn_pcci_task.Rd
permissive
jeksterslabds/jeksterslabRmedsimple
R
false
true
5,619
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mvn_mcar_10_unstd_mc.mvn.R \name{mvn_mcar_10_mc.mvn_pcci_task} \alias{mvn_mcar_10_mc.mvn_pcci_task} \title{Monte Carlo Method Confidence Intervals Assuming Multivariate Normal Distribution for Indirect Effect in a Simple Mediation Model for D...
integer*4 function iwidok (it) implicit integer*4 (i-n) #ccc name: iwidok #ccc version date: 4/16/85 #ccc author(s): Roger N. Clark #ccc language: Ratfor #ccc #ccc short description: checks to see if filid id is ok for wavelengths #ccc #ccc algorithm description: #ccc system requirements: none #ccc subroutin...
/src-local/specpr/src.specpr/wav/iwidok.r
no_license
ns-bak/tetracorder-tutorial
R
false
false
763
r
integer*4 function iwidok (it) implicit integer*4 (i-n) #ccc name: iwidok #ccc version date: 4/16/85 #ccc author(s): Roger N. Clark #ccc language: Ratfor #ccc #ccc short description: checks to see if filid id is ok for wavelengths #ccc #ccc algorithm description: #ccc system requirements: none #ccc subroutin...
### LET US ANALYSE THE VARIABLES IN WAS AND THEIR MISSING VALUES # ### THEN WE WILL PROCEED TO IMPUTATION #### library(foreign) options ("scipen"=100, "digits"=4) library(tidyverse) library (mice) #For Download for Drive (LAPTOP DIRECTORY) setwd("/Users/Juan/Google Drive/A-UK-Research/IO-Wealth-All-Countries/WAS-IOp/...
/Supplementary Material/Replication Code/Britain-WAS/code/2_imputation_new_data_imp2.R
no_license
Juannadie/oep-wealth-inequality-inh-fam-background
R
false
false
11,248
r
### LET US ANALYSE THE VARIABLES IN WAS AND THEIR MISSING VALUES # ### THEN WE WILL PROCEED TO IMPUTATION #### library(foreign) options ("scipen"=100, "digits"=4) library(tidyverse) library (mice) #For Download for Drive (LAPTOP DIRECTORY) setwd("/Users/Juan/Google Drive/A-UK-Research/IO-Wealth-All-Countries/WAS-IOp/...
calc_ab <- function(idata, xp){ n <- nrow(idata) t <- as.data.frame(matrix(nrow = n, ncol = 3)) colnames(t) <- c("lnx", "lnx2", "ylnx") idata <- cbind(idata, t) idata$x <- idata$x idata$lnx <- log(idata$x+xp) idata$lnx2 <- idata$lnx * idata$lnx idata$ylnx <- idata$lnx * idata$y sy <- sum(i...
/server/rscript/find_k.R
no_license
o-star/SPA_Project
R
false
false
4,723
r
calc_ab <- function(idata, xp){ n <- nrow(idata) t <- as.data.frame(matrix(nrow = n, ncol = 3)) colnames(t) <- c("lnx", "lnx2", "ylnx") idata <- cbind(idata, t) idata$x <- idata$x idata$lnx <- log(idata$x+xp) idata$lnx2 <- idata$lnx * idata$lnx idata$ylnx <- idata$lnx * idata$y sy <- sum(i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{evaluate_convergence_diagnostics} \alias{evaluate_convergence_diagnostics} \title{Print diagnostics} \usage{ evaluate_convergence_diagnostics(x) } \arguments{ \item{x}{blm object} } \value{ prints summary of convergence diagn...
/man/evaluate_convergence_diagnostics.Rd
permissive
anhnguyendepocen/blm
R
false
true
376
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generics.R \name{evaluate_convergence_diagnostics} \alias{evaluate_convergence_diagnostics} \title{Print diagnostics} \usage{ evaluate_convergence_diagnostics(x) } \arguments{ \item{x}{blm object} } \value{ prints summary of convergence diagn...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_functions.R \name{set_workspace} \alias{set_workspace} \title{Set workspace} \usage{ set_workspace(path) } \arguments{ \item{path}{Path to the workspace containing your data} } \description{ Set workspace for ArcPy environment } \autho...
/man/set_workspace.Rd
no_license
r-spatial/RPyGeo
R
false
true
362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_functions.R \name{set_workspace} \alias{set_workspace} \title{Set workspace} \usage{ set_workspace(path) } \arguments{ \item{path}{Path to the workspace containing your data} } \description{ Set workspace for ArcPy environment } \autho...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gifti_writer.R \name{gifti_writer} \alias{gifti_writer} \title{Write data to a gifti file.} \usage{ gifti_writer(filepath, ...) } \arguments{ \item{filepath}{path to the output gifti file} \item{...}{parameters passed to \code{\link{gifti_xm...
/man/gifti_writer.Rd
permissive
neuroconductor/freesurferformats
R
false
true
667
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gifti_writer.R \name{gifti_writer} \alias{gifti_writer} \title{Write data to a gifti file.} \usage{ gifti_writer(filepath, ...) } \arguments{ \item{filepath}{path to the output gifti file} \item{...}{parameters passed to \code{\link{gifti_xm...
#' @title maha check #' #' @description \code{maha_check} is a function that runs the mahalanobis check #' #' @details this is based on \code{assertr::insist_rows} and implements a #' malahanobis distance check using \code{assertr:maha_dist}. #' #' @param x Input dataframe, see details. #' #' @return If the class is ...
/R/maha_check.R
permissive
ukgovdatascience/eesectors
R
false
false
708
r
#' @title maha check #' #' @description \code{maha_check} is a function that runs the mahalanobis check #' #' @details this is based on \code{assertr::insist_rows} and implements a #' malahanobis distance check using \code{assertr:maha_dist}. #' #' @param x Input dataframe, see details. #' #' @return If the class is ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ViewShinyPlp.R \name{viewPlp} \alias{viewPlp} \title{viewPlp - Interactively view the performance and model settings} \usage{ viewPlp(runPlp, validatePlp = NULL) } \arguments{ \item{runPlp}{The output of runPlp() (an object of class 'runPlp')...
/man/viewPlp.Rd
permissive
anthonysena/PatientLevelPrediction
R
false
true
641
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ViewShinyPlp.R \name{viewPlp} \alias{viewPlp} \title{viewPlp - Interactively view the performance and model settings} \usage{ viewPlp(runPlp, validatePlp = NULL) } \arguments{ \item{runPlp}{The output of runPlp() (an object of class 'runPlp')...
\name{UlcerIndex} \alias{UlcerIndex} \encoding{latin1} \title{calculate the Ulcer Index} \usage{ UlcerIndex(R, ...) } \arguments{ \item{R}{a vector, matrix, data frame, timeSeries or zoo object of asset returns} \item{\dots}{any other passthru parameters} } \description{ Developed by Peter G. Martin in...
/man/UlcerIndex.Rd
no_license
tsungwu/JFE
R
false
false
1,578
rd
\name{UlcerIndex} \alias{UlcerIndex} \encoding{latin1} \title{calculate the Ulcer Index} \usage{ UlcerIndex(R, ...) } \arguments{ \item{R}{a vector, matrix, data frame, timeSeries or zoo object of asset returns} \item{\dots}{any other passthru parameters} } \description{ Developed by Peter G. Martin in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/date-utilities.R \name{last_day} \alias{last_day} \title{Set Date object to the last day of the month} \usage{ last_day(date) } \arguments{ \item{date}{date object} } \value{ Date object } \description{ Function to change the date of a Date o...
/man/last_day.Rd
no_license
RoelVerbelen/raustats
R
false
true
432
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/date-utilities.R \name{last_day} \alias{last_day} \title{Set Date object to the last day of the month} \usage{ last_day(date) } \arguments{ \item{date}{date object} } \value{ Date object } \description{ Function to change the date of a Date o...
#install.packages("arules") #install.packages("clv") #install.packages("data.table") #install.packages("lsa") #install.packages("rJava") #install.packages("Snowball") library(arules) library(clv) library(data.table) library(lsa) library(plyr) library(rJava) library(Snowball) library(sqldf) #Package for perfor...
/OLD/Similarity_test.R
no_license
sbraddaughdrill/Mutual_Fund_Strategy
R
false
false
7,772
r
#install.packages("arules") #install.packages("clv") #install.packages("data.table") #install.packages("lsa") #install.packages("rJava") #install.packages("Snowball") library(arules) library(clv) library(data.table) library(lsa) library(plyr) library(rJava) library(Snowball) library(sqldf) #Package for perfor...
suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(ggplot2)) suppressPackageStartupMessages(library(ggrepel)) suppressPackageStartupMessages(library(cowplot)) viz_file <- file.path("..", "scripts", "visualization_utils.R") source(viz_file) util_file <- file.path("..", "scripts", "pr...
/3.feature-differences/scripts/nbconverted/discover-feature-differences.r
permissive
DavidStirling/profiling-resistance-mechanisms
R
false
false
11,058
r
suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(ggplot2)) suppressPackageStartupMessages(library(ggrepel)) suppressPackageStartupMessages(library(cowplot)) viz_file <- file.path("..", "scripts", "visualization_utils.R") source(viz_file) util_file <- file.path("..", "scripts", "pr...
# Co doda?: # - dodawanie pojedynczych wierszy do klasy # - po dodaniu wiersza, nale?y okre?li? stan obiektu jako nieprzeliczony # - funkcje powinny m?c korzysta? tylko z przeliczonej klasy # - funkcja do przeliczenia klasy na zadanych danych # - doda? wyliczanie ?rednich z dowolnych kolumn i dodawanie ich do statystyk...
/R/classing_make.R
no_license
michaldanaj/MDBinom
R
false
false
22,305
r
# Co doda?: # - dodawanie pojedynczych wierszy do klasy # - po dodaniu wiersza, nale?y okre?li? stan obiektu jako nieprzeliczony # - funkcje powinny m?c korzysta? tylko z przeliczonej klasy # - funkcja do przeliczenia klasy na zadanych danych # - doda? wyliczanie ?rednich z dowolnych kolumn i dodawanie ich do statystyk...
testlist <- list(A = structure(c(2.31584307390571e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_row...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613101658-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
343
r
testlist <- list(A = structure(c(2.31584307390571e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_row...
#' Basic Bacteria model #' #' A basic bacteria infection model with 2 compartments #' #' @details The model includes bacteria and an immune response. The processes are bacteria growth, death and killing, and immune response activation and decay. This is a predator-prey type model. #' This code is based on a dynamical s...
/vignettes/mysimulator.R
no_license
HulyaKocyigit/DSAIRM
R
false
false
2,632
r
#' Basic Bacteria model #' #' A basic bacteria infection model with 2 compartments #' #' @details The model includes bacteria and an immune response. The processes are bacteria growth, death and killing, and immune response activation and decay. This is a predator-prey type model. #' This code is based on a dynamical s...
# Everything that happens out here happens once when we start the app library(shiny) # UI = user interface, controls what the user sees # and defines the interactive components # Fluidpage defines a visual system that uses rows and columns ui <- fluidPage( "Loblolly app", # SidebarLayout...
/Lesson 2: Our first app/app.R
no_license
lsw5077/Decision-Support-Tools-Short-Course
R
false
false
2,658
r
# Everything that happens out here happens once when we start the app library(shiny) # UI = user interface, controls what the user sees # and defines the interactive components # Fluidpage defines a visual system that uses rows and columns ui <- fluidPage( "Loblolly app", # SidebarLayout...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_and_reporting.R \name{umxPlotACE} \alias{umxPlotACE} \alias{plot.MxModelACE} \title{Make a graphical display of an ACE model} \usage{ umxPlotACE(x = NA, file = "name", digits = 2, means = FALSE, std = TRUE, strip_zero = TRUE, ...) } \ar...
/man/umxPlotACE.Rd
no_license
jpritikin/umx
R
false
true
1,988
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_and_reporting.R \name{umxPlotACE} \alias{umxPlotACE} \alias{plot.MxModelACE} \title{Make a graphical display of an ACE model} \usage{ umxPlotACE(x = NA, file = "name", digits = 2, means = FALSE, std = TRUE, strip_zero = TRUE, ...) } \ar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/body.R \name{body_write_rows} \alias{body_write_rows} \title{Write all the body data to the workbook (but do not write style information)} \usage{ body_write_rows(tab) } \arguments{ \item{tab}{The core tab object} } \description{ Write all th...
/man/body_write_rows.Rd
no_license
harryprince/xltabr
R
false
true
387
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/body.R \name{body_write_rows} \alias{body_write_rows} \title{Write all the body data to the workbook (but do not write style information)} \usage{ body_write_rows(tab) } \arguments{ \item{tab}{The core tab object} } \description{ Write all th...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # function makeCacheMatrix will # 1. compute the inverse of a square matrix # 2. stored the inverse value for possible later use makeCacheMatrix <- function(x = matrix()) { im <- NUL...
/cachematrix.R
no_license
wyZHANG215/RProgrammingAssignment2
R
false
false
1,014
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # function makeCacheMatrix will # 1. compute the inverse of a square matrix # 2. stored the inverse value for possible later use makeCacheMatrix <- function(x = matrix()) { im <- NUL...
install.packages("MSQC") library(MSQC) data("carbon1") data("carbon2") carbon1 class(carbon1) dim(carbon1) #30x3, 8 sample m1<-dim(carbon1)[1] # 30 subsample size m2<-dim(carbon2)[1] # 25 subsample size p<-dim(carbon1)[2] # 3 variable n<-dim(carbon1)[3] # 8 samples mu0<-apply(carbon1, 2, mean) #mean by each variab...
/QC_lab/HW5_Multivariate Atrribute Control Chart/Multi CUSUM, EWMA.R
no_license
Dhyun1/rlab
R
false
false
1,629
r
install.packages("MSQC") library(MSQC) data("carbon1") data("carbon2") carbon1 class(carbon1) dim(carbon1) #30x3, 8 sample m1<-dim(carbon1)[1] # 30 subsample size m2<-dim(carbon2)[1] # 25 subsample size p<-dim(carbon1)[2] # 3 variable n<-dim(carbon1)[3] # 8 samples mu0<-apply(carbon1, 2, mean) #mean by each variab...
# Module UI #' @title mod_places_ui and mod_places_server #' @description A shiny Module. #' #' @param id shiny id #' @param input internal #' @param output internal #' @param session internal #' #' @rdname mod_places #' #' @keywords internal #' @export #' @importFrom shiny NS tagList mod_places_ui <- function(...
/R/mod_places.R
permissive
nandakallugjeri/travelboard
R
false
false
1,296
r
# Module UI #' @title mod_places_ui and mod_places_server #' @description A shiny Module. #' #' @param id shiny id #' @param input internal #' @param output internal #' @param session internal #' #' @rdname mod_places #' #' @keywords internal #' @export #' @importFrom shiny NS tagList mod_places_ui <- function(...
\alias{gtkRangeSetInverted} \name{gtkRangeSetInverted} \title{gtkRangeSetInverted} \description{Ranges normally move from lower to higher values as the slider moves from top to bottom or left to right. Inverted ranges have higher values at the top or on the right rather than on the bottom or left.} \usage{gtkRangeSetIn...
/man/gtkRangeSetInverted.Rd
no_license
cran/RGtk2.10
R
false
false
569
rd
\alias{gtkRangeSetInverted} \name{gtkRangeSetInverted} \title{gtkRangeSetInverted} \description{Ranges normally move from lower to higher values as the slider moves from top to bottom or left to right. Inverted ranges have higher values at the top or on the right rather than on the bottom or left.} \usage{gtkRangeSetIn...
rm(list=ls()) library(keras) library(tensorflow) # input layer: use MNIST images mnist <- dataset_mnist() x_train <- mnist$train$x; y_train <- mnist$train$y x_test <- mnist$test$x; y_test <- mnist$test$y # reshape and rescale x_train <- array_reshape(x_train, c(nrow(x_train), 784)) x_test <- array_reshap...
/ml001.R
no_license
Joshuariver/DL
R
false
false
1,137
r
rm(list=ls()) library(keras) library(tensorflow) # input layer: use MNIST images mnist <- dataset_mnist() x_train <- mnist$train$x; y_train <- mnist$train$y x_test <- mnist$test$x; y_test <- mnist$test$y # reshape and rescale x_train <- array_reshape(x_train, c(nrow(x_train), 784)) x_test <- array_reshap...
suppressPackageStartupMessages(library(optparse, warn.conflicts=F, quietly=T)) option_list <- list( make_option(c("-f", "--file"), type="character", help="Path to featurecount file"), make_option(c("-r", "--reference"), type="character", help="Path to saf re...
/scripts/redistribute_multiple_aligned_reads.r
permissive
huawen-poppy/TE_expression_in_scRNAseq
R
false
false
6,778
r
suppressPackageStartupMessages(library(optparse, warn.conflicts=F, quietly=T)) option_list <- list( make_option(c("-f", "--file"), type="character", help="Path to featurecount file"), make_option(c("-r", "--reference"), type="character", help="Path to saf re...
library(caret) library(ggplot2) library(randomForest) library(tidyverse) library(e1071) library(class) #Importing & splitting data uci <- read_csv("heart.csv") set.seed(123) train.index <- uci$target %>% createDataPartition(p =0.8,list =F) uci_data <- uci[train.index,] uci_test <- uci[-train.index,] #logistic_regressi...
/script.R
no_license
saharrsaber/heartAttackPrediction
R
false
false
1,724
r
library(caret) library(ggplot2) library(randomForest) library(tidyverse) library(e1071) library(class) #Importing & splitting data uci <- read_csv("heart.csv") set.seed(123) train.index <- uci$target %>% createDataPartition(p =0.8,list =F) uci_data <- uci[train.index,] uci_test <- uci[-train.index,] #logistic_regressi...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281053610835e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_b...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615770781-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
361
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281053610835e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_wildfinder.R \name{extract_ursidae} \alias{extract_ursidae} \title{Exctract Ursidae species} \usage{ extract_ursidae(sp) } \value{ a tibble with only info on Ursidae species } \description{ Exctract Ursidae species }
/man/extract_ursidae.Rd
permissive
GaelMariani/datatoolboxexos
R
false
true
300
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_wildfinder.R \name{extract_ursidae} \alias{extract_ursidae} \title{Exctract Ursidae species} \usage{ extract_ursidae(sp) } \value{ a tibble with only info on Ursidae species } \description{ Exctract Ursidae species }
library(rjags) library(dplyr) library(tidyr) library(lazyeval) library(ggplot2) # Create simulation data lambda <- c(30, 200) # avg initial abundance of (juveniles, adults) delta <- c(0.5, 0.7) # survival probabilities of (juveniles, adults) rho <- c(0.4, 0.8) # detection probabilities of (ju...
/archive/JAGS/run_zipkin.R
no_license
kwinner/latentcountmodels
R
false
false
3,226
r
library(rjags) library(dplyr) library(tidyr) library(lazyeval) library(ggplot2) # Create simulation data lambda <- c(30, 200) # avg initial abundance of (juveniles, adults) delta <- c(0.5, 0.7) # survival probabilities of (juveniles, adults) rho <- c(0.4, 0.8) # detection probabilities of (ju...
assign_value<-function(value){ if (value ==1){ pro<- sample(c(0.6,0.7,0.8,0.9,1),1) value<-sample(0:1, 1, replace=T,prob=c(1-pro,pro)) } else if (value ==0) { pro<- sample(c(0.6,0.7,0.8,0.9,1),1) value<-sample(0:1, 1, replace=T,prob=c(pro,1-pro)) } return(value) }
/WRKY_Transcription_Factor/DATASET/assign_value.R
no_license
adilahiri/Graph-Network
R
false
false
296
r
assign_value<-function(value){ if (value ==1){ pro<- sample(c(0.6,0.7,0.8,0.9,1),1) value<-sample(0:1, 1, replace=T,prob=c(1-pro,pro)) } else if (value ==0) { pro<- sample(c(0.6,0.7,0.8,0.9,1),1) value<-sample(0:1, 1, replace=T,prob=c(pro,1-pro)) } return(value) }
### soil texture TERN ## spatial prediction: step 3: untangle compositional data ## modified: 26/3/20 ## Finished: ### variables vart<- "clay" depth<- "d5" batch<- 1 srt<- 1 fin<- 500 ## libraries library(parallel);library(sp);library(rgdal);library(doParallel);library(raster);library(compositions) # root directo...
/Production/DSM/SoilTexture/digitalsoilmapping/spatialprediction/clay/step3/d5/spatialise_clay_d5_1.R
permissive
AusSoilsDSM/SLGA
R
false
false
3,318
r
### soil texture TERN ## spatial prediction: step 3: untangle compositional data ## modified: 26/3/20 ## Finished: ### variables vart<- "clay" depth<- "d5" batch<- 1 srt<- 1 fin<- 500 ## libraries library(parallel);library(sp);library(rgdal);library(doParallel);library(raster);library(compositions) # root directo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_lndscp_map.R \name{lndscp3d_map} \alias{lndscp3d_map} \title{Generate a 3D map plot for an antibody landscape} \usage{ lndscp3d_map(object, xlim, ylim, zlim, ...) } \arguments{ \item{object}{The antibody landscape object} \item{...}{Gra...
/man/lndscp3d_map.Rd
no_license
GuangchuangYu/ablandscapes
R
false
true
406
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_lndscp_map.R \name{lndscp3d_map} \alias{lndscp3d_map} \title{Generate a 3D map plot for an antibody landscape} \usage{ lndscp3d_map(object, xlim, ylim, zlim, ...) } \arguments{ \item{object}{The antibody landscape object} \item{...}{Gra...
context("Test the convergence pipeline") # Data prep data(tcr) tcr_small <- tcr[0:10, ] test_that("results of convergence pipeline are parsed correctly", { c <- convergence(tcr_small, "seqs") expect_s4_class(c, "convergenceGroups") # Check that the data frame of results comes back correctly expect_equal(nrow...
/tests/testthat/test_convergence.R
permissive
nsh87/receptormarker
R
false
false
1,236
r
context("Test the convergence pipeline") # Data prep data(tcr) tcr_small <- tcr[0:10, ] test_that("results of convergence pipeline are parsed correctly", { c <- convergence(tcr_small, "seqs") expect_s4_class(c, "convergenceGroups") # Check that the data frame of results comes back correctly expect_equal(nrow...