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
##################################################### # functions used to build various path combinations # plus helper functions get_levelNameForAttributeName <- function(emuDBhandle, attributeName){ DBconfig = load_DBconfig(emuDBhandle) for(lvlD in DBconfig$levelDefinitions){ aNames = character(0) for(a...
/R/emuR-database.DBconfig.R
no_license
IPS-LMU/emuR
R
false
false
59,496
r
##################################################### # functions used to build various path combinations # plus helper functions get_levelNameForAttributeName <- function(emuDBhandle, attributeName){ DBconfig = load_DBconfig(emuDBhandle) for(lvlD in DBconfig$levelDefinitions){ aNames = character(0) for(a...
for (plot_method in c("ggplot", "plotly")) { for (bool in c(TRUE, FALSE)) { context(paste0(plot_method, ", row_dend_left=", bool)) test_that("heatmaply mtcars (both dend)", { h <- heatmaply(mtcars, row_dend_left = bool, plot_method = plot_method) expect_is(h, "plotly") }) test_...
/tests/testthat/test_heatmaply.R
no_license
zhaoxiaohe/heatmaply
R
false
false
5,736
r
for (plot_method in c("ggplot", "plotly")) { for (bool in c(TRUE, FALSE)) { context(paste0(plot_method, ", row_dend_left=", bool)) test_that("heatmaply mtcars (both dend)", { h <- heatmaply(mtcars, row_dend_left = bool, plot_method = plot_method) expect_is(h, "plotly") }) test_...
library("testthat") library("stagedtrees") test_check("stagedtrees")
/tests/testthat.R
permissive
FedericoCarli/stagedtrees
R
false
false
70
r
library("testthat") library("stagedtrees") test_check("stagedtrees")
\name{onebasis} \alias{onebasis} \alias{summary.onebasis} \alias{mkbasis} \alias{mklagbasis} \title{ Generate a Basis Matrix for Different Functions } \description{ The function generates the basis matrix for a predictor vector. The function operates as a wrapper to existing or user-defined functions. Amongst other o...
/man/onebasis.Rd
no_license
mbexhrs3/dlnm
R
false
false
8,033
rd
\name{onebasis} \alias{onebasis} \alias{summary.onebasis} \alias{mkbasis} \alias{mklagbasis} \title{ Generate a Basis Matrix for Different Functions } \description{ The function generates the basis matrix for a predictor vector. The function operates as a wrapper to existing or user-defined functions. Amongst other o...
# probability ranking rule - adapted from the ecospat package SESAM.prr <- function (proba, sr) { projSR <- round(round(as.vector(sr[[1]]))) new.prob.prr <- proba dataSSDM_p <- proba for (i in 1:nrow(proba)) { print(paste("test.prr, processing row ", i, sep = "")) SR <- projSR[i] if (SR > 0) { ...
/Auxiliary/SESAM_prr.R
no_license
jesusNPL/BayesianSDMs_Oaks
R
false
false
611
r
# probability ranking rule - adapted from the ecospat package SESAM.prr <- function (proba, sr) { projSR <- round(round(as.vector(sr[[1]]))) new.prob.prr <- proba dataSSDM_p <- proba for (i in 1:nrow(proba)) { print(paste("test.prr, processing row ", i, sep = "")) SR <- projSR[i] if (SR > 0) { ...
library(TreeDep) ### Name: Res_boun_CO2 ### Title: Res_boun_CO2 - Calculates hourly boundary layer resistance for ### CO2 ### Aliases: Res_boun_CO2 ### ** Examples data(Bizkaia_data) Res_boun_CO2(x = Bizkaia_data, z_0 = 1)
/data/genthat_extracted_code/TreeDep/examples/Res_boun_CO2.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
233
r
library(TreeDep) ### Name: Res_boun_CO2 ### Title: Res_boun_CO2 - Calculates hourly boundary layer resistance for ### CO2 ### Aliases: Res_boun_CO2 ### ** Examples data(Bizkaia_data) Res_boun_CO2(x = Bizkaia_data, z_0 = 1)
#### hindlimb #### # Set working directory setwd("H:/olivia hip height") name<-read.csv("species_names.csv") #name$fname[1] # jj = 1 # Rerun after each species- sets the column names for the mean data cvalues_mean= matrix(nrow = 0, ncol = 8) colnames(cvalues_mean)<-c('name', 'image','thigh','shank','meta'...
/get_eff.R
no_license
cclemente/Hip_scaling
R
false
false
5,221
r
#### hindlimb #### # Set working directory setwd("H:/olivia hip height") name<-read.csv("species_names.csv") #name$fname[1] # jj = 1 # Rerun after each species- sets the column names for the mean data cvalues_mean= matrix(nrow = 0, ncol = 8) colnames(cvalues_mean)<-c('name', 'image','thigh','shank','meta'...
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(268438272L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(dexterMST:::im_booklet_score,testlist) str(result)
/dexterMST/inst/testfiles/im_booklet_score/AFL_im_booklet_score/im_booklet_score_valgrind_files/1615946031-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
215
r
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(268438272L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(dexterMST:::im_booklet_score,testlist) str(result)
################################################################################################### ################################################PLOT 4############################################# ################################################################################################### ## Create Plot 4 p...
/plot4.R
no_license
ankushrajpandey/ExData_Plotting1
R
false
false
1,415
r
################################################################################################### ################################################PLOT 4############################################# ################################################################################################### ## Create Plot 4 p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rule_fill_gradient2.R \name{rule_fill_gradient2} \alias{rule_fill_gradient2} \title{Fill column with divergent colour gradient} \usage{ rule_fill_gradient2(..., expression, low = scales::muted("red"), mid = "white", high = scales::muted("bl...
/man/rule_fill_gradient2.Rd
no_license
DataStrategist/condformat
R
false
true
1,874
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rule_fill_gradient2.R \name{rule_fill_gradient2} \alias{rule_fill_gradient2} \title{Fill column with divergent colour gradient} \usage{ rule_fill_gradient2(..., expression, low = scales::muted("red"), mid = "white", high = scales::muted("bl...
#Oct. 1, Z. Blue #Okay let's try sentiment analysis on larger corpora of texts. A bunch of novels. dickensNovels <- gutenberg_download(c(19337, 98, 1023, 766, 821, 1400, 786, 963, 968, 967, 730, 883, 564, 700, 580), ...
/2020_sentimentLecture2.R
no_license
LonelyRider-cs/ENGL3106-sent_analysis
R
false
false
2,980
r
#Oct. 1, Z. Blue #Okay let's try sentiment analysis on larger corpora of texts. A bunch of novels. dickensNovels <- gutenberg_download(c(19337, 98, 1023, 766, 821, 1400, 786, 963, 968, 967, 730, 883, 564, 700, 580), ...
rankall <- function(outcome, num = "best"){ ## Read outcome data ## outcome = "heart attack" data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") fd <- as.data.frame(cbind(data[, 2], # hospital data[, 7], # state ...
/02_JohnHopkins_RProgramming/Assignment/Week4/rankall.R
no_license
gandhinaman/JHU_DataScienceSpecialization_master
R
false
false
2,844
r
rankall <- function(outcome, num = "best"){ ## Read outcome data ## outcome = "heart attack" data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") fd <- as.data.frame(cbind(data[, 2], # hospital data[, 7], # state ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rpygeo_reticulate.R \name{rpygeo_search} \alias{rpygeo_search} \title{Search for ArcPy functions and classes} \usage{ rpygeo_search(search_term = "") } \arguments{ \item{search_term}{Search term. Regular expressions are possible.} } \value{ N...
/man/rpygeo_search.Rd
no_license
jannes-m/RPyGeo
R
false
true
1,592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rpygeo_reticulate.R \name{rpygeo_search} \alias{rpygeo_search} \title{Search for ArcPy functions and classes} \usage{ rpygeo_search(search_term = "") } \arguments{ \item{search_term}{Search term. Regular expressions are possible.} } \value{ N...
context("scaledScore") test_that("scaledscore tranforms logits correctly", { odds <- 1 logit <- log(odds) expect_true(scaledScore(logit) == 300) odds <- 0.5 logit <- log(odds) expect_true(scaledScore(logit) == 250) odds <- 0.25 logit <- log(odds) expect_true(scaledScore(l...
/optiRum/tests/testthat/test-scaledScore.R
no_license
ingted/R-Examples
R
false
false
788
r
context("scaledScore") test_that("scaledscore tranforms logits correctly", { odds <- 1 logit <- log(odds) expect_true(scaledScore(logit) == 300) odds <- 0.5 logit <- log(odds) expect_true(scaledScore(logit) == 250) odds <- 0.25 logit <- log(odds) expect_true(scaledScore(l...
/aulasNivelHard/Aula6_conversao_coersao_de_dados.R
no_license
rafaelandradeslv/AprendendoR
R
false
false
411
r
######################################################################### # Name of file - 03_create-management-report.R # Data release - Quarterly Dementia PDS Management Reports # Original Authors - Alice Byers # Original Date - September 2019 # # Written/run on - RStudio Desktop # Version of R - 3.6.1 # # Descriptio...
/code/03_create-management-report.R
no_license
Public-Health-Scotland/dementia-pds
R
false
false
900
r
######################################################################### # Name of file - 03_create-management-report.R # Data release - Quarterly Dementia PDS Management Reports # Original Authors - Alice Byers # Original Date - September 2019 # # Written/run on - RStudio Desktop # Version of R - 3.6.1 # # Descriptio...
## Open and Run on Startup setwd("~/GitHub/Finance_R_Files/R Scripts") getwd() ################################################################################################################ ################################################################################################################ #############...
/R Scripts/NA Strategies.R
no_license
arkagogoldey/Finance_R_Files
R
false
false
11,583
r
## Open and Run on Startup setwd("~/GitHub/Finance_R_Files/R Scripts") getwd() ################################################################################################################ ################################################################################################################ #############...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zzz.R \docType{package} \name{SCNoisyClustering} \alias{SCNoisyClustering} \alias{SCNoisyClustering-package} \title{SCNoisyClustering Single Cell Clustering} \description{ SCNoisyClustering Single Cell Clustering } \author{ Tae Kim <tk382@uch...
/man/SCNoisyClustering.Rd
no_license
tk382/SCNoisyClustering
R
false
true
333
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zzz.R \docType{package} \name{SCNoisyClustering} \alias{SCNoisyClustering} \alias{SCNoisyClustering-package} \title{SCNoisyClustering Single Cell Clustering} \description{ SCNoisyClustering Single Cell Clustering } \author{ Tae Kim <tk382@uch...
# visualizacion de datos ---- library(tidyverse) library(igraph) library(networkD3) # Datos ---- nodos = readxl::read_xlsx("relaciones One Piece.xlsx", sheet = "nodos") nodos %>% group_by(personaje) %>% count() %>% arrange(-n) enlaces = readxl::read_xlsx("relaciones One Piece.xlsx", ...
/Day 17. Pop Culture/code_17.R
no_license
JMZarco/30DayChartChallenge2021
R
false
false
2,267
r
# visualizacion de datos ---- library(tidyverse) library(igraph) library(networkD3) # Datos ---- nodos = readxl::read_xlsx("relaciones One Piece.xlsx", sheet = "nodos") nodos %>% group_by(personaje) %>% count() %>% arrange(-n) enlaces = readxl::read_xlsx("relaciones One Piece.xlsx", ...
# Test 1 test1 <- function(){ myvar1 <- matrix(1:10,nrow=5,ncol=2) print("testing normal matrix variable") testBoolean <- TRUE result <- mytranspose(myvar1) for(row in 1:nrow(myvar1)){ for(col in 1:ncol(myvar1)){ if (result[col,row] != myvar1[row,col]){ testBoolean <- FALSE } ...
/testmytranspose.R
no_license
kaylee123/assignment
R
false
false
3,774
r
# Test 1 test1 <- function(){ myvar1 <- matrix(1:10,nrow=5,ncol=2) print("testing normal matrix variable") testBoolean <- TRUE result <- mytranspose(myvar1) for(row in 1:nrow(myvar1)){ for(col in 1:ncol(myvar1)){ if (result[col,row] != myvar1[row,col]){ testBoolean <- FALSE } ...
# 安装与载入 install.packages("riverplot") library(riverplot) # 包内部演示数据 plot(riverplot.example()) # 1. 画一个6级能量流动图/桑基图 # 构造连接节点(边)的数据框,采用runif生成模拟数据 # 实验中每个节点间的连续情况是己知的 # 生成一个组1-5与组2-6对应的值数据框 edges = data.frame(N1 = paste0(rep(LETTERS[1:4], each = 4), rep(1:5, each = 16)), N2 = paste0(rep(...
/桑葚图.R
no_license
saldh/R
R
false
false
7,004
r
# 安装与载入 install.packages("riverplot") library(riverplot) # 包内部演示数据 plot(riverplot.example()) # 1. 画一个6级能量流动图/桑基图 # 构造连接节点(边)的数据框,采用runif生成模拟数据 # 实验中每个节点间的连续情况是己知的 # 生成一个组1-5与组2-6对应的值数据框 edges = data.frame(N1 = paste0(rep(LETTERS[1:4], each = 4), rep(1:5, each = 16)), N2 = paste0(rep(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{attributes<-} \alias{attributes<-} \title{function extending base::attributes()} \usage{ attributes(x, overwrite = TRUE) <- value } \arguments{ \item{x}{an object} \item{overwrite}{if \code{TRUE}, overwrite old attributes} \it...
/man/attributes-set.Rd
no_license
chmue/quanteda
R
false
true
421
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{attributes<-} \alias{attributes<-} \title{function extending base::attributes()} \usage{ attributes(x, overwrite = TRUE) <- value } \arguments{ \item{x}{an object} \item{overwrite}{if \code{TRUE}, overwrite old attributes} \it...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include acm_service.R NULL #' Adds one or more tags to an ACM certificate #' #' Adds one or more tags to an ACM certificate. Tags are labels that you #' can use to identify a...
/paws/R/acm_operations.R
permissive
johnnytommy/paws
R
false
false
34,665
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include acm_service.R NULL #' Adds one or more tags to an ACM certificate #' #' Adds one or more tags to an ACM certificate. Tags are labels that you #' can use to identify a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{omp_check} \alias{omp_check} \title{Check OpenMP status} \usage{ omp_check() } \value{ \code{TRUE} or {FALSE} depending on availability of OpenMP } \description{ Checks whether OpenMP has been successfully enabled for this insta...
/glmmTMB/man/omp_check.Rd
no_license
glmmTMB/glmmTMB
R
false
true
588
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{omp_check} \alias{omp_check} \title{Check OpenMP status} \usage{ omp_check() } \value{ \code{TRUE} or {FALSE} depending on availability of OpenMP } \description{ Checks whether OpenMP has been successfully enabled for this insta...
######################################################################## # PART 4: ANALYSIS ME ######################################################################## # This file brings together the functions created by createfunctions.R, the # outliers identified by import_trends.R, and the emails imported and clea...
/analysis_me.R
no_license
seinman/hc.emails
R
false
false
5,768
r
######################################################################## # PART 4: ANALYSIS ME ######################################################################## # This file brings together the functions created by createfunctions.R, the # outliers identified by import_trends.R, and the emails imported and clea...
#2 First Commit #analysis to understand why house-elves possess powerful magic using DNA samples and ear measurements #3 Importing Data main_data <- read.csv("./data/houseelf_earlength_dna_data.csv", header = TRUE, sep = "," ) #4 Commit Multiple Files main_data <- read.csv("./data/houseelf_earlength_dna_data_1.csv",...
/houseelf-analysis.R
no_license
blesmas/bhule
R
false
false
1,046
r
#2 First Commit #analysis to understand why house-elves possess powerful magic using DNA samples and ear measurements #3 Importing Data main_data <- read.csv("./data/houseelf_earlength_dna_data.csv", header = TRUE, sep = "," ) #4 Commit Multiple Files main_data <- read.csv("./data/houseelf_earlength_dna_data_1.csv",...
library(MixtureInf) ### Name: grains ### Title: grains data ### Aliases: grains ### Keywords: datasets ### ** Examples #fit a finite noraml mixture model of order 2 to this data set. data(grains) pmle.norm(grains,2,1)
/data/genthat_extracted_code/MixtureInf/examples/grains.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
226
r
library(MixtureInf) ### Name: grains ### Title: grains data ### Aliases: grains ### Keywords: datasets ### ** Examples #fit a finite noraml mixture model of order 2 to this data set. data(grains) pmle.norm(grains,2,1)
#' Draws lollipop plot of amino acid changes on to Protein structure. #' #' @description Draws lollipop plot of amino acid changes. Protein domains are derived from PFAM database. #' @details This function by default looks for fields 'HGVSp_Short', 'AAChange' or 'Protein_Change' in maf file. One can also manually speci...
/R/lollipopPlot.R
permissive
Shicheng-Guo/maftools
R
false
false
16,488
r
#' Draws lollipop plot of amino acid changes on to Protein structure. #' #' @description Draws lollipop plot of amino acid changes. Protein domains are derived from PFAM database. #' @details This function by default looks for fields 'HGVSp_Short', 'AAChange' or 'Protein_Change' in maf file. One can also manually speci...
############################################################################# # _ _____ ____ __ ____ # / | / / | / __ )____ _/ /_/ __ \ # / |/ / /| | / __ / __ `/ __/ /_/ / # / /| / ___ |/ /_/ / /_/ / /_/ _, _/ # /_/ |_/_/ |_/_____/\__,_/\__/_/ |_| # # R Tools for accessing and manipulatin...
/R/geospatial.R
permissive
tinazilla/nabatr-1
R
false
false
7,429
r
############################################################################# # _ _____ ____ __ ____ # / | / / | / __ )____ _/ /_/ __ \ # / |/ / /| | / __ / __ `/ __/ /_/ / # / /| / ___ |/ /_/ / /_/ / /_/ _, _/ # /_/ |_/_/ |_/_____/\__,_/\__/_/ |_| # # R Tools for accessing and manipulatin...
app <- ShinyDriver$new("../", seed = 5453) app$snapshotInit("philstest") app$setInputs(seriousness = "1") app$setInputs(seriousness = "2") app$setInputs(api = "ASPIRIN") app$setInputs(start_date = "2010-01-01") app$setInputs(end_date = "2018-01-01") app$setInputs(seriousness = "0") app$setInputs(seriousness = "1") app...
/Shiny/7_shinytest_open_fda_app/tests/philstest.R
no_license
philbowsher/shiny-rmd-APIs-DBs-pharma-session-2019-11-12
R
false
false
386
r
app <- ShinyDriver$new("../", seed = 5453) app$snapshotInit("philstest") app$setInputs(seriousness = "1") app$setInputs(seriousness = "2") app$setInputs(api = "ASPIRIN") app$setInputs(start_date = "2010-01-01") app$setInputs(end_date = "2018-01-01") app$setInputs(seriousness = "0") app$setInputs(seriousness = "1") app...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predictRisk.R \name{predictRisk} \alias{predictRisk} \alias{predictRisk.CauseSpecificCox} \alias{predictRisk.riskRegression} \alias{predictRisk.FGR} \alias{predictRisk.prodlim} \alias{predictRisk.rfsrc} \alias{predictRisk.aalen} \alias{predic...
/man/predictRisk.Rd
no_license
PablitoCho/riskRegression
R
false
true
5,423
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predictRisk.R \name{predictRisk} \alias{predictRisk} \alias{predictRisk.CauseSpecificCox} \alias{predictRisk.riskRegression} \alias{predictRisk.FGR} \alias{predictRisk.prodlim} \alias{predictRisk.rfsrc} \alias{predictRisk.aalen} \alias{predic...
#[export] lud <- function(x) { .Call(Rfast2_lud,x) }
/fuzzedpackages/Rfast2/R/lud.R
no_license
akhikolla/testpackages
R
false
false
56
r
#[export] lud <- function(x) { .Call(Rfast2_lud,x) }
library(ggplot2) library(viridis) library(reshape2) library(dplyr) library(deeptime) ## Permian load("/cGENIE-metabolic_index.extinction/Habitat.viability.summaries/p0251.CO2.O2.1EFD ecotypes summary shelves short.no.poles.Rdata") ecotypes.summary.short$eq.temp <-as.character(round(ecotypes.summary.short$eq.temp, di...
/Figures/Figure_S4_Viability_supp_ensembles_shelves.R
no_license
richardstockey/cGENIE-metabolic_index.extinction
R
false
false
5,485
r
library(ggplot2) library(viridis) library(reshape2) library(dplyr) library(deeptime) ## Permian load("/cGENIE-metabolic_index.extinction/Habitat.viability.summaries/p0251.CO2.O2.1EFD ecotypes summary shelves short.no.poles.Rdata") ecotypes.summary.short$eq.temp <-as.character(round(ecotypes.summary.short$eq.temp, di...
library(testthat) source("model-functions.R") long.phrase <- c("if", "this", "year", "would", "just", "end", "i", "think", "if", "this", "year", "would") short.phrase <- c("if", "this", "year") # Test CreateValNgrams() ------------------------------------------------------ long.ngrams <- CreateValNgrams(long.phrase...
/model-tests.R
permissive
chrislill/next-word
R
false
false
1,010
r
library(testthat) source("model-functions.R") long.phrase <- c("if", "this", "year", "would", "just", "end", "i", "think", "if", "this", "year", "would") short.phrase <- c("if", "this", "year") # Test CreateValNgrams() ------------------------------------------------------ long.ngrams <- CreateValNgrams(long.phrase...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/br2.R \name{br2} \alias{br2} \title{Build our optimization function} \usage{ br2(params, n, N_max, A1, A2, S1, S2, N) } \arguments{ \item{params}{Parameters to construct function} \item{n}{Number of observations in \code{data}} ...
/man/br2.Rd
no_license
cran/entrymodels
R
false
true
697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/br2.R \name{br2} \alias{br2} \title{Build our optimization function} \usage{ br2(params, n, N_max, A1, A2, S1, S2, N) } \arguments{ \item{params}{Parameters to construct function} \item{n}{Number of observations in \code{data}} ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/robomaker_operations.R \name{robomaker_describe_robot_application} \alias{robomaker_describe_robot_application} \title{Describes a robot application} \usage{ robomaker_describe_robot_application(application, applicationVersion) } \arguments{ ...
/cran/paws.robotics/man/robomaker_describe_robot_application.Rd
permissive
johnnytommy/paws
R
false
true
691
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/robomaker_operations.R \name{robomaker_describe_robot_application} \alias{robomaker_describe_robot_application} \title{Describes a robot application} \usage{ robomaker_describe_robot_application(application, applicationVersion) } \arguments{ ...
library(pinnacle.API) ### Name: GetSettledSpecialFixtures ### Title: Get Settled Special Fixtures ### Aliases: GetSettledSpecialFixtures ### ** Examples ## No test: SetCredentials("TESTAPI", "APITEST") AcceptTermsAndConditions(accepted=TRUE) # Can be run without arguments GetSettledSpecialFixtures() ## End(No test...
/data/genthat_extracted_code/pinnacle.API/examples/GetSettledSpecialFixtures.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
325
r
library(pinnacle.API) ### Name: GetSettledSpecialFixtures ### Title: Get Settled Special Fixtures ### Aliases: GetSettledSpecialFixtures ### ** Examples ## No test: SetCredentials("TESTAPI", "APITEST") AcceptTermsAndConditions(accepted=TRUE) # Can be run without arguments GetSettledSpecialFixtures() ## End(No test...
library(DataExplorer) ### Name: plot_correlation ### Title: Create correlation heatmap for discrete features ### Aliases: plot_correlation ### Keywords: plot_correlation ### ** Examples plot_correlation(iris) plot_correlation(iris, type = "c") plot_correlation(airquality, cor_args = list("use" = "pairwise.complete....
/data/genthat_extracted_code/DataExplorer/examples/plot_correlation.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
330
r
library(DataExplorer) ### Name: plot_correlation ### Title: Create correlation heatmap for discrete features ### Aliases: plot_correlation ### Keywords: plot_correlation ### ** Examples plot_correlation(iris) plot_correlation(iris, type = "c") plot_correlation(airquality, cor_args = list("use" = "pairwise.complete....
\docType{data} \name{exDaily} \alias{exDaily} \title{Example Daily Dataframe included in dataRetrieval} \description{ Initial Daily data frame from the Choptank River } \author{ Robert M. Hirsch \email{rhirsch@usgs.gov} } \keyword{data} \keyword{datasets} \keyword{flow} \keyword{water}
/man/exDaily.Rd
permissive
jlthomps/dataRetrieval
R
false
false
292
rd
\docType{data} \name{exDaily} \alias{exDaily} \title{Example Daily Dataframe included in dataRetrieval} \description{ Initial Daily data frame from the Choptank River } \author{ Robert M. Hirsch \email{rhirsch@usgs.gov} } \keyword{data} \keyword{datasets} \keyword{flow} \keyword{water}
# necessáry R 4.0+ # necessary RStudio 1.3 + require('devtools') #tidymodels development versions devtools::install_github("tidymodels/tune") devtools::install_github("tidymodels/recipes") devtools::install_github("tidymodels/workflows") devtools::install_github("tidymodels/parsnip") # Modeltime & Timetk Development...
/Setup/requirement.R
no_license
LinsiLin/TimeSeries
R
false
false
483
r
# necessáry R 4.0+ # necessary RStudio 1.3 + require('devtools') #tidymodels development versions devtools::install_github("tidymodels/tune") devtools::install_github("tidymodels/recipes") devtools::install_github("tidymodels/workflows") devtools::install_github("tidymodels/parsnip") # Modeltime & Timetk Development...
# Apriori # Data Preprocessing install.packages('arules') library(arules) dataset = read.csv('Market_Basket_Optimisation.csv', header = FALSE) dataset = read.transactions('Market_Basket_Optimisation.csv', sep = ',', rm.duplicates = TRUE) summary(dataset) itemFrequencyPlot(dataset, topN = 20) # Training Apriori on the...
/Apriori/apriori.R
no_license
seansio1995/R-tutorials
R
false
false
481
r
# Apriori # Data Preprocessing install.packages('arules') library(arules) dataset = read.csv('Market_Basket_Optimisation.csv', header = FALSE) dataset = read.transactions('Market_Basket_Optimisation.csv', sep = ',', rm.duplicates = TRUE) summary(dataset) itemFrequencyPlot(dataset, topN = 20) # Training Apriori on the...
library(r2glmm) ### Name: make.partial.C ### Title: Generate partial contrast matrices ### Aliases: make.partial.C ### ** Examples make.partial.C(4, 5, 2) make.partial.C(4, 5, 3) make.partial.C(4, 5, 2:4)
/data/genthat_extracted_code/r2glmm/examples/make.partial.C.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
212
r
library(r2glmm) ### Name: make.partial.C ### Title: Generate partial contrast matrices ### Aliases: make.partial.C ### ** Examples make.partial.C(4, 5, 2) make.partial.C(4, 5, 3) make.partial.C(4, 5, 2:4)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale_colour_crameri.R \name{scale_crameri_oleron} \alias{scale_crameri_oleron} \alias{scale_colour_oleron} \alias{scale_color_oleron} \alias{scale_fill_oleron} \title{Fabio Crameri's \emph{oleron} Multi-Sequential Color Scheme} \source{ Cram...
/man/scale_crameri_oleron.Rd
no_license
cran/khroma
R
false
true
3,945
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale_colour_crameri.R \name{scale_crameri_oleron} \alias{scale_crameri_oleron} \alias{scale_colour_oleron} \alias{scale_color_oleron} \alias{scale_fill_oleron} \title{Fabio Crameri's \emph{oleron} Multi-Sequential Color Scheme} \source{ Cram...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Obligation-class.R \docType{class} \name{Obligation} \alias{Obligation} \title{Classe \code{Obligation}} \description{ Cette classe represente le portefeuille des obligations de la compagnie d'assurance. } \section{Slots}{ \describe{ \item{\...
/man/Obligation.Rd
no_license
DTichit/ALModel
R
false
true
491
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Obligation-class.R \docType{class} \name{Obligation} \alias{Obligation} \title{Classe \code{Obligation}} \description{ Cette classe represente le portefeuille des obligations de la compagnie d'assurance. } \section{Slots}{ \describe{ \item{\...
library(ifs) ### Name: IFSM ### Title: IFSM operator ### Aliases: IFSM ### Keywords: misc ### ** Examples require(ifs) set.seed(123) n <- 50 dt <- 1/n t <- (1:n)*dt Z <- rnorm(n) B <- sqrt(dt)*cumsum(Z) ifsm.w.maps() -> maps a <- maps$a s <- maps$s ifsm.setQF(B, s, a) -> QF ifsm.cf(QF$Q,QF$b,QF$L1,QF$L2,s)-> SOL...
/data/genthat_extracted_code/ifs/examples/IFSM.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
664
r
library(ifs) ### Name: IFSM ### Title: IFSM operator ### Aliases: IFSM ### Keywords: misc ### ** Examples require(ifs) set.seed(123) n <- 50 dt <- 1/n t <- (1:n)*dt Z <- rnorm(n) B <- sqrt(dt)*cumsum(Z) ifsm.w.maps() -> maps a <- maps$a s <- maps$s ifsm.setQF(B, s, a) -> QF ifsm.cf(QF$Q,QF$b,QF$L1,QF$L2,s)-> SOL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-mSet.R, R/Methods-assessor.R \docType{methods} \name{feature_data} \alias{feature_data} \alias{feature_data,mSet-method} \title{Construct or access a feature_data object} \usage{ feature_data(object) \S4method{feature_data}{mSet}(objec...
/man/feature_data.Rd
no_license
zhuchcn/Metabase
R
false
true
970
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-mSet.R, R/Methods-assessor.R \docType{methods} \name{feature_data} \alias{feature_data} \alias{feature_data,mSet-method} \title{Construct or access a feature_data object} \usage{ feature_data(object) \S4method{feature_data}{mSet}(objec...
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv", "getdata%2Fdata%2FGDP.csv") data <- read.csv("getdata%2Fdata%2FGDP.csv", skip=4) download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv", "getdata%2Fdata%2FEDSTATS_Country.csv") edu_data <- read.csv("getda...
/Getting and Cleaning data/Quiz 4/4.R
no_license
giu87/datasciencecoursera
R
false
false
459
r
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv", "getdata%2Fdata%2FGDP.csv") data <- read.csv("getdata%2Fdata%2FGDP.csv", skip=4) download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv", "getdata%2Fdata%2FEDSTATS_Country.csv") edu_data <- read.csv("getda...
#' #' KMeans Model in H2O #' #' Performs k-means clustering on an H2O dataset. #' #' #' @param training_frame An \linkS4class{H2OFrame} object containing the #' variables in the model. #' @param x (Optional) A vector containing the data columns on #' which k-means operates. #' @param k The number of clust...
/h2o-r/h2o-package/R/kmeans.R
permissive
StephaneFeniar/h2o-dev
R
false
false
4,181
r
#' #' KMeans Model in H2O #' #' Performs k-means clustering on an H2O dataset. #' #' #' @param training_frame An \linkS4class{H2OFrame} object containing the #' variables in the model. #' @param x (Optional) A vector containing the data columns on #' which k-means operates. #' @param k The number of clust...
library(data.table) library(tidyverse) library(corrplot) library(cowplot) library(gridGraphics) #colocar el directorio donde están los archivos setwd('/home/jalil/Documents/Doctorado/Pragmaticlab/JN_Article/exp2') ## Chi Data.exp2 <- read_csv('AH_Emo_dat.csv') Data.exp2$Emocion <- Data.exp2$Emocion %>% str_replace...
/code/Análisis_exp2_chi.R
no_license
JalilRT/Facial-expresion-in-communicative-intention
R
false
false
1,323
r
library(data.table) library(tidyverse) library(corrplot) library(cowplot) library(gridGraphics) #colocar el directorio donde están los archivos setwd('/home/jalil/Documents/Doctorado/Pragmaticlab/JN_Article/exp2') ## Chi Data.exp2 <- read_csv('AH_Emo_dat.csv') Data.exp2$Emocion <- Data.exp2$Emocion %>% str_replace...
### The purpose of this script is to load and clean all of the various # .csv files containing polling place data into R. # Start by loading packages pacman::p_load(tidyverse, here, stringr, readr, praise, SmartEDA, ggmap, # Goog...
/Code/Data Load Script.R
permissive
jschulberg/Polling-Places
R
false
false
6,145
r
### The purpose of this script is to load and clean all of the various # .csv files containing polling place data into R. # Start by loading packages pacman::p_load(tidyverse, here, stringr, readr, praise, SmartEDA, ggmap, # Goog...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getAllTicketMetrics.R \name{getAllTicketMetrics} \alias{getAllTicketMetrics} \title{getAllTicketMetrics} \usage{ getAllTicketMetrics() } \value{ returns a data.frame of all ticket metrics for all tickets } \description{ This function is used ...
/man/getAllTicketMetrics.Rd
no_license
808sAndBR/zendeskR
R
false
true
798
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getAllTicketMetrics.R \name{getAllTicketMetrics} \alias{getAllTicketMetrics} \title{getAllTicketMetrics} \usage{ getAllTicketMetrics() } \value{ returns a data.frame of all ticket metrics for all tickets } \description{ This function is used ...
library(ggplot2) if (!require(GGally)) install.packages('GGally') library(GGally) library(rlang) library(purrr) library(dplyr) library(tidyr) ########################################################## groupColors = c(NVAC="#325860", VAC="#FFA533") kde_plots = function(df,.x_var, .y_var){ p = ggplot2::ggplot(dat...
/Code/Models/XG_Model_Full/XG_Final_Features_Plot_Analysis.R
no_license
andrewmejia600/Capstone
R
false
false
1,525
r
library(ggplot2) if (!require(GGally)) install.packages('GGally') library(GGally) library(rlang) library(purrr) library(dplyr) library(tidyr) ########################################################## groupColors = c(NVAC="#325860", VAC="#FFA533") kde_plots = function(df,.x_var, .y_var){ p = ggplot2::ggplot(dat...
## ---- echo = FALSE, message = FALSE, warning = FALSE-------------------------- library(chronicle) set_static <- TRUE figure_width <- 9 figure_height <- 5 # If you want this report to be reproducible, add on this chunk all # the libraries, data loading and preprocessing done before executing # the chronicle rep...
/inst/doc/chronicle.R
no_license
cran/chronicle
R
false
false
2,996
r
## ---- echo = FALSE, message = FALSE, warning = FALSE-------------------------- library(chronicle) set_static <- TRUE figure_width <- 9 figure_height <- 5 # If you want this report to be reproducible, add on this chunk all # the libraries, data loading and preprocessing done before executing # the chronicle rep...
# Load the following... # sample_factors # quantile_norm_data # For reference, factors are # Viral Symptomatic - v_s # Viral Asymptomatic - v_as # Baseline - bl # Bacteria - bc # Load permtest package library(permtest) create_truth_vec_one_vs_all <- function(class) { # Assume that group 1 is class in consideration,...
/R_Code/Archive/permutation_testing_one_v_all.R
permissive
Halmoni100/miRNA_dataPlus
R
false
false
2,001
r
# Load the following... # sample_factors # quantile_norm_data # For reference, factors are # Viral Symptomatic - v_s # Viral Asymptomatic - v_as # Baseline - bl # Bacteria - bc # Load permtest package library(permtest) create_truth_vec_one_vs_all <- function(class) { # Assume that group 1 is class in consideration,...
## The makeCacheMatrix method takes a matrix as an arguement and returns a list that has ## methods to set and get a matrix and set and get the Inverse of the matrix ## The cacheSolve method takes the special matrix (the list returned from makeCache Matrix) ## and tests to see if the inverse is available. If not it cal...
/cachematrix.R
no_license
eujo007/ProgrammingAssignment2
R
false
false
2,496
r
## The makeCacheMatrix method takes a matrix as an arguement and returns a list that has ## methods to set and get a matrix and set and get the Inverse of the matrix ## The cacheSolve method takes the special matrix (the list returned from makeCache Matrix) ## and tests to see if the inverse is available. If not it cal...
#' Adds transparency to colour #' #' @param cols Vector of colours. #' @param alphas Single value or vector of alphas #' @param ... Passed to rgb #' @return rgb colours with transparency set. colAlpha = function(cols,alphas,...) { if(length(alphas)==1) alphas = rep(alphas,length(cols)) tmp = col2rgb(cols) sa...
/R/misc.R
no_license
miktrinh/scGenotyping
R
false
false
114,220
r
#' Adds transparency to colour #' #' @param cols Vector of colours. #' @param alphas Single value or vector of alphas #' @param ... Passed to rgb #' @return rgb colours with transparency set. colAlpha = function(cols,alphas,...) { if(length(alphas)==1) alphas = rep(alphas,length(cols)) tmp = col2rgb(cols) sa...
install.packages("VGAM") library("VGAM")
/Lab3Packages.R
no_license
oxenfree/R-Homework
R
false
false
40
r
install.packages("VGAM") library("VGAM")
library(sqldf) fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" #Download if not already available if(!file.exists("./household_power_consumption.zip")) { download.file(fileUrl,destfile="./household_power_consumption.zip") } # Unzip if not already ava...
/plot4.R
no_license
BobdeTheije/ExData_Plotting1
R
false
false
1,884
r
library(sqldf) fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" #Download if not already available if(!file.exists("./household_power_consumption.zip")) { download.file(fileUrl,destfile="./household_power_consumption.zip") } # Unzip if not already ava...
if(!require(tidyverse)) { install.packages("tidyverse"); require(Rsolnp)} if(!require(shiny)) { install.packages("shiny"); require(Rsolnp)} if(!require(plotly)) { install.packages("plotly"); require(Rsolnp)} if(!require(ggplot2)) { install.packages("ggplot2"); require(Rsolnp)} if(!require(gridExtra)) { install.packages...
/Price_optimization .R
no_license
EunmiemmaKim/Price_optimization-
R
false
false
65,908
r
if(!require(tidyverse)) { install.packages("tidyverse"); require(Rsolnp)} if(!require(shiny)) { install.packages("shiny"); require(Rsolnp)} if(!require(plotly)) { install.packages("plotly"); require(Rsolnp)} if(!require(ggplot2)) { install.packages("ggplot2"); require(Rsolnp)} if(!require(gridExtra)) { install.packages...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_descriptor.R \name{get_descriptor} \alias{get_descriptor} \title{get a descriptor (fingerprints and/or CDK physical descriptors) from SMILES strings} \usage{ get_descriptor(smis = c("C1=CC=C(C=C1)O"), desctypes = c("standard"), scale = ...
/man/get_descriptor.Rd
no_license
cran/iqspr
R
false
true
2,196
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_descriptor.R \name{get_descriptor} \alias{get_descriptor} \title{get a descriptor (fingerprints and/or CDK physical descriptors) from SMILES strings} \usage{ get_descriptor(smis = c("C1=CC=C(C=C1)O"), desctypes = c("standard"), scale = ...
#' Kodebok med utledete variabler #' #' Legg til utledete variabler i kodebok for NORIC #' #' @return data.frame med kodebok for NORIC med utledete variabler #' @export #' @examples #' noric::getKodebokMedUtledetedVar() %>% #' dplyr::filter(fysisk_feltnavn %in% c("uke", #' "m...
/R/getKodebokData.R
permissive
Rapporteket/NORIC
R
false
false
1,850
r
#' Kodebok med utledete variabler #' #' Legg til utledete variabler i kodebok for NORIC #' #' @return data.frame med kodebok for NORIC med utledete variabler #' @export #' @examples #' noric::getKodebokMedUtledetedVar() %>% #' dplyr::filter(fysisk_feltnavn %in% c("uke", #' "m...
source("lib/load_phoneme.R") MakeFeatureMatrix <- function(s5=NA, p=NA) { # Make the scoring matrix using the phoneme features. # # Args: # s5: The penalty for the pairs of consonant and vowel. # p: The Gap penalty. # # Returns: # The scoring matrix using the phoneme features. # Get the number...
/R/lib/scoring_matrix/MakeFeatureMatrix.R
no_license
e155721/src
R
false
false
1,080
r
source("lib/load_phoneme.R") MakeFeatureMatrix <- function(s5=NA, p=NA) { # Make the scoring matrix using the phoneme features. # # Args: # s5: The penalty for the pairs of consonant and vowel. # p: The Gap penalty. # # Returns: # The scoring matrix using the phoneme features. # Get the number...
library(readr) library(ISLR) write_csv(Carseats, "data/islr/Carseats.csv")
/data/islr/save-islr-data.R
no_license
elray1/elray1.github.io
R
false
false
76
r
library(readr) library(ISLR) write_csv(Carseats, "data/islr/Carseats.csv")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-optimizer.R \name{add_players_from_csv,optimizer-method} \alias{add_players_from_csv,optimizer-method} \alias{add_players_from_csv} \title{Add players to optimizer from CSV} \usage{ \S4method{add_players_from_csv}{optimizer}(object, f...
/man/add_players_from_csv-optimizer-method.Rd
permissive
jkope892/dfsOptimizer
R
false
true
891
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-optimizer.R \name{add_players_from_csv,optimizer-method} \alias{add_players_from_csv,optimizer-method} \alias{add_players_from_csv} \title{Add players to optimizer from CSV} \usage{ \S4method{add_players_from_csv}{optimizer}(object, f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saveSession.R \name{saveSession} \alias{saveSession} \title{Saves the current Cytoscape session} \usage{ saveSession(filename, base.url = "http://localhost:1234/v1") } \arguments{ \item{filename}{(char) name of the session file to save} \ite...
/for-scripters/R/r2cytoscape/man/saveSession.Rd
permissive
mpg-age-bioinformatics/cytoscape-automation
R
false
true
546
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saveSession.R \name{saveSession} \alias{saveSession} \title{Saves the current Cytoscape session} \usage{ saveSession(filename, base.url = "http://localhost:1234/v1") } \arguments{ \item{filename}{(char) name of the session file to save} \ite...
library(shiny) library(dplyr) library(ggplot2) comparison <- read.csv("inst/extdata/comparison.csv") %>% tibble::add_column(TimeDiff = NA, .after="DateTime") %>% tibble::add_column(TimeDiffMins = NA, .after="TimeDiff") %>% tibble::add_column(cumDist.x=NA, .after="Distance.x") %>% tibble::add_column(cumDist....
/arizona_app.R
no_license
IotGod/animaltracker
R
false
false
5,110
r
library(shiny) library(dplyr) library(ggplot2) comparison <- read.csv("inst/extdata/comparison.csv") %>% tibble::add_column(TimeDiff = NA, .after="DateTime") %>% tibble::add_column(TimeDiffMins = NA, .after="TimeDiff") %>% tibble::add_column(cumDist.x=NA, .after="Distance.x") %>% tibble::add_column(cumDist....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multisimsum.R \name{multisimsum} \alias{multisimsum} \title{Analyses of simulation studies with multiple estimands at once, including Monte Carlo error} \usage{ multisimsum( data, par, estvarname, se = NULL, true = NULL, methodvar...
/man/multisimsum.Rd
permissive
cran/rsimsum
R
false
true
6,403
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multisimsum.R \name{multisimsum} \alias{multisimsum} \title{Analyses of simulation studies with multiple estimands at once, including Monte Carlo error} \usage{ multisimsum( data, par, estvarname, se = NULL, true = NULL, methodvar...
# Regression : Areas vs Sales #Method1 : creating data from Vectors #X -is area sqft Y-sales in 1000s units; Find relationship betn X & Y X = c(1.7,1.6,2.8,5.6,1.3,2.2, 1.3,1.1,3.2,1.5,5.2,4.6,5.8,3 ) Y = c(3.7,3.9,6.7,9.5,3.4,5.6,3.7,2.7,5.5,2.9,10.7,7.6,11.8,4.1 ) df1 = data.frame(X,Y) head(df1) #2nd method of impo...
/41-LM/18c-SLM-salesarea.R
no_license
DUanalytics/rAnalytics
R
false
false
4,651
r
# Regression : Areas vs Sales #Method1 : creating data from Vectors #X -is area sqft Y-sales in 1000s units; Find relationship betn X & Y X = c(1.7,1.6,2.8,5.6,1.3,2.2, 1.3,1.1,3.2,1.5,5.2,4.6,5.8,3 ) Y = c(3.7,3.9,6.7,9.5,3.4,5.6,3.7,2.7,5.5,2.9,10.7,7.6,11.8,4.1 ) df1 = data.frame(X,Y) head(df1) #2nd method of impo...
#' @name icesTAF-internal #' #' @title Various TAF Helper Functions #' #' @description #' These functions are called by user-level functions. The functionality is #' documented in the user-level functions. #' #' @seealso #' \code{\link{icesTAF-package}} gives an overview of the package. #' #' @keywords inter...
/R/icesTAF-internal.R
no_license
cran/icesTAF
R
false
false
331
r
#' @name icesTAF-internal #' #' @title Various TAF Helper Functions #' #' @description #' These functions are called by user-level functions. The functionality is #' documented in the user-level functions. #' #' @seealso #' \code{\link{icesTAF-package}} gives an overview of the package. #' #' @keywords inter...
## Create Plot 3 with(t, { plot(Sub_metering_1~dateTime, type="l", ylab="Global Active Power (kilowatts)", xlab="") lines(Sub_metering_2~dateTime,col='Red') lines(Sub_metering_3~dateTime,col='Blue') }) legend("topright", col=c("black", "red", "blue"), lwd=c(1,1,1), c("Sub_metering...
/plot3.r
no_license
JIBYMARIYAJOSE/ExData_Plotting1
R
false
false
362
r
## Create Plot 3 with(t, { plot(Sub_metering_1~dateTime, type="l", ylab="Global Active Power (kilowatts)", xlab="") lines(Sub_metering_2~dateTime,col='Red') lines(Sub_metering_3~dateTime,col='Blue') }) legend("topright", col=c("black", "red", "blue"), lwd=c(1,1,1), c("Sub_metering...
library(mixlink) library(coda) set.seed(1234) # ----- Prepare the data ----- n <- 400 x <- runif(n, 0, 8) X <- model.matrix(~ x) Beta.true <- c(-1, 0.5) mean.true <- exp(X %*% Beta.true) kappa.true <- 2.5 Pi.true <- normalize(c(1,2)) d <- ncol(X) J <- length(Pi.true) y <- r.mixlink.pois(n, mean.true, Pi.true, kappa....
/inst/examples/gibbs-pois.R
no_license
cran/mixlink
R
false
false
1,517
r
library(mixlink) library(coda) set.seed(1234) # ----- Prepare the data ----- n <- 400 x <- runif(n, 0, 8) X <- model.matrix(~ x) Beta.true <- c(-1, 0.5) mean.true <- exp(X %*% Beta.true) kappa.true <- 2.5 Pi.true <- normalize(c(1,2)) d <- ncol(X) J <- length(Pi.true) y <- r.mixlink.pois(n, mean.true, Pi.true, kappa....
#' Initiate a plotly visualization #' #' This function maps R objects to [plotly.js](https://plot.ly/javascript/), #' an (MIT licensed) web-based interactive charting library. It provides #' abstractions for doing common things (e.g. mapping data values to #' fill colors (via `color`) or creating [animation]s (via `f...
/R/plotly.R
permissive
trafficonese/plotly_mini
R
false
false
12,055
r
#' Initiate a plotly visualization #' #' This function maps R objects to [plotly.js](https://plot.ly/javascript/), #' an (MIT licensed) web-based interactive charting library. It provides #' abstractions for doing common things (e.g. mapping data values to #' fill colors (via `color`) or creating [animation]s (via `f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blastula_email_format.R \name{blastula_email} \alias{blastula_email} \title{The R Markdown \code{blastula_email} output format} \usage{ blastula_email( content_width = "1000px", toc = FALSE, toc_depth = 3, toc_float = FALSE, number_...
/man/blastula_email.Rd
permissive
rstudio/blastula
R
false
true
3,679
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blastula_email_format.R \name{blastula_email} \alias{blastula_email} \title{The R Markdown \code{blastula_email} output format} \usage{ blastula_email( content_width = "1000px", toc = FALSE, toc_depth = 3, toc_float = FALSE, number_...
TWIX <- function(formula, data=NULL, test.data=NULL, subset=NULL, method="deviance", topn.method="complete", minsplit=20, minbucket=round(minsplit/3), topN=1, splitf="deviance", Devmin=0.01, tol=0.25, cp=0.01, level=30, st=1, score=1, k=0, cluster=NULL, seed.cluster=NULL, cl.level=1, multicore=FALSE, tr...
/R/twix.R
no_license
cran/TWIX
R
false
false
19,233
r
TWIX <- function(formula, data=NULL, test.data=NULL, subset=NULL, method="deviance", topn.method="complete", minsplit=20, minbucket=round(minsplit/3), topN=1, splitf="deviance", Devmin=0.01, tol=0.25, cp=0.01, level=30, st=1, score=1, k=0, cluster=NULL, seed.cluster=NULL, cl.level=1, multicore=FALSE, tr...
draw_usmap_with_insets <- function(map_data, ak_idx, hi_idx, variable, title = NULL, subtitle = NULL, scale_name = 'Value\n(billion $)', scale_factor = 1000, scale_trans = 'identity', scale_breaks = NULL, scale_r...
/final_output/figs/us_map_fxns.R
no_license
qdread/biodiversity-farm2fork-analysis
R
false
false
20,144
r
draw_usmap_with_insets <- function(map_data, ak_idx, hi_idx, variable, title = NULL, subtitle = NULL, scale_name = 'Value\n(billion $)', scale_factor = 1000, scale_trans = 'identity', scale_breaks = NULL, scale_r...
# Configuration ----------------------------------------------------------- #rm(list = ls(all = TRUE)) options(stringsAsFactors = FALSE) source("common.R") #------------------------------------------------------- remove_samplemap <- function(dataset){ samplemap <- mongo.manifest$distinct("collection", toJSON(list(d...
/scripts/clean.db.R
no_license
woodhaha/TCGAarchive
R
false
false
3,543
r
# Configuration ----------------------------------------------------------- #rm(list = ls(all = TRUE)) options(stringsAsFactors = FALSE) source("common.R") #------------------------------------------------------- remove_samplemap <- function(dataset){ samplemap <- mongo.manifest$distinct("collection", toJSON(list(d...
library(testthat) library(GetTDData) test_check("GetTDData")
/tests/testthat.R
permissive
msperlin/GetTDData
R
false
false
66
r
library(testthat) library(GetTDData) test_check("GetTDData")
#' @title Niche overlap (Warren's-I) #' @description Similarity Statistic for Quantifying Niche Overlap using Warren's-I #' #' @param x A matrix or SpatRaster raster class object #' @param y A matrix or SpatRaster raster class object #' with the same dimensions of x #' #' @return A value representing ...
/R/overlap.R
no_license
cran/spatialEco
R
false
false
2,521
r
#' @title Niche overlap (Warren's-I) #' @description Similarity Statistic for Quantifying Niche Overlap using Warren's-I #' #' @param x A matrix or SpatRaster raster class object #' @param y A matrix or SpatRaster raster class object #' with the same dimensions of x #' #' @return A value representing ...
# outcome <- read.csv("DataFiles/outcome-of-care-measures.csv", colClasses = "character") # head(outcome) # ncol(outcome) # names(outcome) # outcome[, 11] <- as.numeric(outcome[, 11]) # hist(outcome[, 11]) # The function reads the outcome-of-care-measures.csv file and returns a character vector # with the name of the ...
/ProgrammingAssignment3/best.R
no_license
Trisotto/datasciencecoursera
R
false
false
1,521
r
# outcome <- read.csv("DataFiles/outcome-of-care-measures.csv", colClasses = "character") # head(outcome) # ncol(outcome) # names(outcome) # outcome[, 11] <- as.numeric(outcome[, 11]) # hist(outcome[, 11]) # The function reads the outcome-of-care-measures.csv file and returns a character vector # with the name of the ...
#' create a chord given an instrument list, base note, and chord name #' #' @param root the root note #' @param instrument a instrument object, default=piano #' @param chord the type of chord #' @param inversion an inversion to apply, first, second, first_down, or second_down #' @param bpm the bpm to dictate the length...
/R/chord.R
no_license
csv/ddr
R
false
false
2,143
r
#' create a chord given an instrument list, base note, and chord name #' #' @param root the root note #' @param instrument a instrument object, default=piano #' @param chord the type of chord #' @param inversion an inversion to apply, first, second, first_down, or second_down #' @param bpm the bpm to dictate the length...
#' Title: Text Mining Homework #' Purpose: Identify what reviews associate with good and bad reviews #' Author: Ted Kwartler #' email: ehk116@gmail.com #' License: GPL>=3 #' Date: 2018-11-24 #' Instructions: #' Fill in the rest of the script, and answer the questions inline. Then upload to canvas. # Set the working d...
/lessons/11_Apr17_TextMining/wk11_homework/textMining_howmework.R
no_license
Sakampavankumar/HarvardSpringStudent2019
R
false
false
5,331
r
#' Title: Text Mining Homework #' Purpose: Identify what reviews associate with good and bad reviews #' Author: Ted Kwartler #' email: ehk116@gmail.com #' License: GPL>=3 #' Date: 2018-11-24 #' Instructions: #' Fill in the rest of the script, and answer the questions inline. Then upload to canvas. # Set the working d...
# 新通路业务数据 #读取新通路数据 #' 读取新通路的标准化后的日期 #' #' @param dir_name 目录 #' #' @return 返回日期字段 #' @export #' #' @examples #' kna_getDate_jd() kna_getDate_jd <- function(dir_name = "data-raw/jlnka_202011/jd_202011_downloads") { files <- dir(dir_name) files_split <-strsplit(files,"_") ncount <- length(files_split) res <- ...
/R/dl_jd.R
no_license
takewiki/jlnkapkg
R
false
false
3,666
r
# 新通路业务数据 #读取新通路数据 #' 读取新通路的标准化后的日期 #' #' @param dir_name 目录 #' #' @return 返回日期字段 #' @export #' #' @examples #' kna_getDate_jd() kna_getDate_jd <- function(dir_name = "data-raw/jlnka_202011/jd_202011_downloads") { files <- dir(dir_name) files_split <-strsplit(files,"_") ncount <- length(files_split) res <- ...
#' mix #' #' This model computes the output streamflow and temperature from two different rivers mixing, each with their own streamflow and temperature. #' @param Q1 streamflow of the recieving water in cubic feet per second (cfs) #' @param Q2 streamflow of the tributary water in cubic feet per second (cfs) #' @para...
/R/mix.R
no_license
melchera/SalmonTemp
R
false
false
742
r
#' mix #' #' This model computes the output streamflow and temperature from two different rivers mixing, each with their own streamflow and temperature. #' @param Q1 streamflow of the recieving water in cubic feet per second (cfs) #' @param Q2 streamflow of the tributary water in cubic feet per second (cfs) #' @para...
set.seed(1738) library(foreach) library(randomForest) library(doParallel) cl <- makeCluster(2) registerDoParallel(cl) getDoParName() setwd("~/UIUC/STAT542") load("~/UIUC/STAT542/reduced_data_train.rdata") reduced_data_train$target <- as.factor(reduced_data_train$target) #Randomly sampling 10% of reduced_data_train...
/reduced_script.R
no_license
thetriumverate/STAT542_Project
R
false
false
2,265
r
set.seed(1738) library(foreach) library(randomForest) library(doParallel) cl <- makeCluster(2) registerDoParallel(cl) getDoParName() setwd("~/UIUC/STAT542") load("~/UIUC/STAT542/reduced_data_train.rdata") reduced_data_train$target <- as.factor(reduced_data_train$target) #Randomly sampling 10% of reduced_data_train...
library(goftest) library(KScorrect) library(fitdistrplus) # We will work with objects of class fitdist from fitdistrplus # test class interface: # name='long name' # code='shorthand id' # distros=c(for,which,distros,can,be,applied) # best=which.[min|max] # warning='warning message regarding this test' # pv...
/src/tests.r
no_license
Blaza/guessdist
R
false
false
5,545
r
library(goftest) library(KScorrect) library(fitdistrplus) # We will work with objects of class fitdist from fitdistrplus # test class interface: # name='long name' # code='shorthand id' # distros=c(for,which,distros,can,be,applied) # best=which.[min|max] # warning='warning message regarding this test' # pv...
#################################################### #Image Crop #From the original image to all 100*100 pixel images #The original working directory should be the one #Containing the pictures that you want to crop #And shrink #################################################### library(EBImage) if(length(lis...
/Reference Code/crop_shrink.R
no_license
Broccolito/HRLR300_Tissue_Dataset
R
false
false
3,955
r
#################################################### #Image Crop #From the original image to all 100*100 pixel images #The original working directory should be the one #Containing the pictures that you want to crop #And shrink #################################################### library(EBImage) if(length(lis...
# The makeCacheMatrix function creates and returns four values: # - set: set the value of the matrix # - get: get the value of the matrix # - setinv: set the inverse of the matrix in the cache # - getinv: get the inverse of the matrix from the cache # cacheSolve then checks to see if the inverse value of the matrix is...
/cachematrix.R
no_license
dwstep/ProgrammingAssignment2
R
false
false
1,435
r
# The makeCacheMatrix function creates and returns four values: # - set: set the value of the matrix # - get: get the value of the matrix # - setinv: set the inverse of the matrix in the cache # - getinv: get the inverse of the matrix from the cache # cacheSolve then checks to see if the inverse value of the matrix is...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.04080044806318e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613108803-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
257
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.04080044806318e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
# Fitness function for GA rule mining based on aritmetic average fitness.fun <- function(Upop, upop_size, genes_num, test, weights) { # Testing fitness of all rules and storing the value in the list for (i in 1:upop_size) { # first we binarize a copy of test according to the thresholds # of the rule under ...
/ga-algorithm-for-or-rules/GAfinal/fitness_arit.R
no_license
DataAnalyticsinStudentHands/RPipeLine
R
false
false
1,550
r
# Fitness function for GA rule mining based on aritmetic average fitness.fun <- function(Upop, upop_size, genes_num, test, weights) { # Testing fitness of all rules and storing the value in the list for (i in 1:upop_size) { # first we binarize a copy of test according to the thresholds # of the rule under ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aux_plotGeneCount.R \name{plotGeneCount} \alias{plotGeneCount} \title{plotGeneCount} \usage{ plotGeneCount(exprMat, plotStats = TRUE, verbose = TRUE) } \arguments{ \item{exprMat}{Expression matrix (genes as rows, cells as columns)} \item{plo...
/man/plotGeneCount.Rd
no_license
aertslab/AUCell
R
false
true
1,473
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aux_plotGeneCount.R \name{plotGeneCount} \alias{plotGeneCount} \title{plotGeneCount} \usage{ plotGeneCount(exprMat, plotStats = TRUE, verbose = TRUE) } \arguments{ \item{exprMat}{Expression matrix (genes as rows, cells as columns)} \item{plo...
# # the general tinkering script # library(SRAdb) sqlfile <- "../SRAmetadb.sqlite" sra_con <- dbConnect(dbDriver("SQLite"), sqlfile) # # intial filter looking for anything containing metagenom rs <- getSRA(search_terms = '"metagenom*" OR "Metagenom*"', sra_con = sra_con) # dim(rs) # [1] 514781 70 # rs_wgs <- filter...
/RCode/MetagenomeWordCloud.R
no_license
seninp-bioinfo/rsets
R
false
false
1,519
r
# # the general tinkering script # library(SRAdb) sqlfile <- "../SRAmetadb.sqlite" sra_con <- dbConnect(dbDriver("SQLite"), sqlfile) # # intial filter looking for anything containing metagenom rs <- getSRA(search_terms = '"metagenom*" OR "Metagenom*"', sra_con = sra_con) # dim(rs) # [1] 514781 70 # rs_wgs <- filter...
########################################################## # Raw and Derivative FSCV Bag Size Tuning Curve ########################################################## ################## # Derivative ################## library(ggplot2) library(latex2exp) library(grid) library(gridExtra) setwd("~/Desktop/Research Final/S...
/Figure 6/FSCV Bag Size Final.R
permissive
gloewing/studyStrap_Figures
R
false
false
4,948
r
########################################################## # Raw and Derivative FSCV Bag Size Tuning Curve ########################################################## ################## # Derivative ################## library(ggplot2) library(latex2exp) library(grid) library(gridExtra) setwd("~/Desktop/Research Final/S...
library(plotrix) draw_dartboard <- function() { plot(NULL, xlim = c(-1, 1), ylim = c(-1,1), pty = 's', asp = 1, axes = FALSE, xlab = '', ylab = '') draw.circle(0, 0, 1) draw.circle(0, 0, 0.75, col = 'deep sky blue') draw.circle(0, 0, 0.5, col = 'red') draw.circle(0, 0, 0.25, col = 'yellow') draw.ci...
/slides/Rcode/bias-variance-dartboard.R
no_license
fditraglia/Econ103Public
R
false
false
1,046
r
library(plotrix) draw_dartboard <- function() { plot(NULL, xlim = c(-1, 1), ylim = c(-1,1), pty = 's', asp = 1, axes = FALSE, xlab = '', ylab = '') draw.circle(0, 0, 1) draw.circle(0, 0, 0.75, col = 'deep sky blue') draw.circle(0, 0, 0.5, col = 'red') draw.circle(0, 0, 0.25, col = 'yellow') draw.ci...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tgompertz.R \name{tgompertz} \alias{tgompertz} \title{Generate a function that simulates time-to-event outcome from a Gompertz Cox PH model} \usage{ tgompertz(lambda, alpha) } \arguments{ \item{lambda}{scale parameter} \item{alpha}{shape par...
/man/tgompertz.Rd
permissive
a-chernofsky/project2
R
false
true
482
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tgompertz.R \name{tgompertz} \alias{tgompertz} \title{Generate a function that simulates time-to-event outcome from a Gompertz Cox PH model} \usage{ tgompertz(lambda, alpha) } \arguments{ \item{lambda}{scale parameter} \item{alpha}{shape par...
testlist <- list(bytes1 = c(56834L, -14614272L, -570228737L, NA, -2147483537L, 1969384549L, 704577281L, 33532708L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 16121856L, 0L, 0L, 0L, 0L, 0L), pmutation = 0) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612887060-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
304
r
testlist <- list(bytes1 = c(56834L, -14614272L, -570228737L, NA, -2147483537L, 1969384549L, 704577281L, 33532708L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 16121856L, 0L, 0L, 0L, 0L, 0L), pmutation = 0) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
# run_popsyn.R script for staged population #Run all demo module for all years #--------------------------------- for(Year in getYears()) { runModule("CreateHouseholds", "VESimHouseholds", RunFor = "AllYears", RunYear = Year) runModule("PredictWorkers", "VESimHouseholds", ...
/sources/framework/VEModel/tests/model-runs/VERSPM-scenario/scripts/run_popsyn.R
permissive
VisionEval/VisionEval-Dev
R
false
false
591
r
# run_popsyn.R script for staged population #Run all demo module for all years #--------------------------------- for(Year in getYears()) { runModule("CreateHouseholds", "VESimHouseholds", RunFor = "AllYears", RunYear = Year) runModule("PredictWorkers", "VESimHouseholds", ...
MaxPro<-function(InitialDesign,s=2,iteration=10){ D0<-as.matrix(InitialDesign) n<-nrow(D0) p<-ncol(D0) D0<-apply(D0,2, function(x) (x-min(x))/(max(x)-min(x))) fgr=function(x) { D=matrix(x,nrow=n,ncol=p) dis=(dist(D[,1]))^s for(j in 2:p) dis=dis*(dist(D[,j]))^s ...
/MaxPro/R/MaxPro.R
no_license
ingted/R-Examples
R
false
false
1,200
r
MaxPro<-function(InitialDesign,s=2,iteration=10){ D0<-as.matrix(InitialDesign) n<-nrow(D0) p<-ncol(D0) D0<-apply(D0,2, function(x) (x-min(x))/(max(x)-min(x))) fgr=function(x) { D=matrix(x,nrow=n,ncol=p) dis=(dist(D[,1]))^s for(j in 2:p) dis=dis*(dist(D[,j]))^s ...
library(httr) library(jsonlite) # Wrapper for messages, spotted in googlesheets3 spf <- function(...) stop(sprintf(...), call. = FALSE) #internals.R from rladies/meetupr package # This helper function makes a single call, given the full API endpoint URL # Used as the workhorse function inside .fetch_results() below ....
/R/datascience.R
no_license
datascience-community/user-groups
R
false
false
20,481
r
library(httr) library(jsonlite) # Wrapper for messages, spotted in googlesheets3 spf <- function(...) stop(sprintf(...), call. = FALSE) #internals.R from rladies/meetupr package # This helper function makes a single call, given the full API endpoint URL # Used as the workhorse function inside .fetch_results() below ....
library(scales) library(broom) library(modelr) library(tidyverse) options(na.action = na.warn) theme_set(theme_bw()) options(repr.plot.width=4, repr.plot.height=3) users <- read_tsv(gzfile('users.tsv.gz')) head(users) #histogram of the label/regressor variable ggplot(users, aes(x=daily.views)) + geom_histogram(bi...
/week3/modeling.R
no_license
Brendafried/coursework
R
false
false
3,671
r
library(scales) library(broom) library(modelr) library(tidyverse) options(na.action = na.warn) theme_set(theme_bw()) options(repr.plot.width=4, repr.plot.height=3) users <- read_tsv(gzfile('users.tsv.gz')) head(users) #histogram of the label/regressor variable ggplot(users, aes(x=daily.views)) + geom_histogram(bi...
## ----warning=FALSE, message=FALSE---------------------------------------- library(HRDiagram) library(ggplot2) library(dplyr) library(readxl) library(GDAdata) ## ----message=FALSE, eval=FALSE------------------------------------------- # library(readxl) # df<-import_mcdonald_data("mcdonaldstars.xlsx") ## ----messa...
/vignettes/HR_Diagram.R
permissive
cowboy2718/Hertzsprung-Russell
R
false
false
1,010
r
## ----warning=FALSE, message=FALSE---------------------------------------- library(HRDiagram) library(ggplot2) library(dplyr) library(readxl) library(GDAdata) ## ----message=FALSE, eval=FALSE------------------------------------------- # library(readxl) # df<-import_mcdonald_data("mcdonaldstars.xlsx") ## ----messa...