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
/impl/02_data_preparation/30_returns&mood/ret_day_quart_v03.R
no_license
yangboyubyron/thesis-google-crypto-trading
R
false
false
2,267
r
suppressPackageStartupMessages(c( library(shiny), library(tm), library(stringr))) source("C:/Users/Usuario/Documents/final/en_US/WordLogic.R") # LoadData() shinyServer(function(input, output) { output$NextWord <- renderPrint({ result <- predictWord(input$inputText) result }); ou...
/server.R
no_license
Quijote2015/Data_Science_Capstone
R
false
false
383
r
suppressPackageStartupMessages(c( library(shiny), library(tm), library(stringr))) source("C:/Users/Usuario/Documents/final/en_US/WordLogic.R") # LoadData() shinyServer(function(input, output) { output$NextWord <- renderPrint({ result <- predictWord(input$inputText) result }); ou...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/autonomic_ganglia.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.8,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/autonomic_ganglia/auton...
/Model/EN/AvgRank/autonomic_ganglia/autonomic_ganglia_081.R
no_license
leon1003/QSMART
R
false
false
384
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/autonomic_ganglia.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.8,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/autonomic_ganglia/auton...
# Used in BASiCS_VarianceDecomp HiddenVarDecomp <- function(Chain) { if (!is(Chain, "BASiCS_Chain")) { stop("'Chain' is not a BASiCS_Chain class object.") } N <- nrow(Chain@parameters$delta) q.bio <- ncol(Chain@parameters$delta) UniqueBatch <- colnames(Chain@parameters$theta) nBatch <- length(UniqueBat...
/R/HiddenVarDecomp.R
no_license
nilseling/BASiCS
R
false
false
2,230
r
# Used in BASiCS_VarianceDecomp HiddenVarDecomp <- function(Chain) { if (!is(Chain, "BASiCS_Chain")) { stop("'Chain' is not a BASiCS_Chain class object.") } N <- nrow(Chain@parameters$delta) q.bio <- ncol(Chain@parameters$delta) UniqueBatch <- colnames(Chain@parameters$theta) nBatch <- length(UniqueBat...
library(ggplot2) library(gstat) library(sp) library(maptools) bDir <- "D:/cenavarro/hnd_usaid/04_interpolation/stations-averages/yearly_pseudost" sY <- 1990 fY <- 2014 oDir <- "D:/cenavarro/hnd_usaid/04_interpolation/outputs_yearly/average" var <- "dter" # List of months mthLs <- c("Jan", "Feb", "Mar", "Apr", "May", ...
/02_interpolations/01_interpolation_idw.R
no_license
CIAT-DAPA/usaid_hnd
R
false
false
1,950
r
library(ggplot2) library(gstat) library(sp) library(maptools) bDir <- "D:/cenavarro/hnd_usaid/04_interpolation/stations-averages/yearly_pseudost" sY <- 1990 fY <- 2014 oDir <- "D:/cenavarro/hnd_usaid/04_interpolation/outputs_yearly/average" var <- "dter" # List of months mthLs <- c("Jan", "Feb", "Mar", "Apr", "May", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SaemixData.R \name{subset.SaemixData} \alias{subset.SaemixData} \alias{subset-methods} \alias{subset} \title{Data subsetting} \arguments{ \item{x}{saemixData object} \item{subset}{logical expression indicating elements or rows to keep: missi...
/Parallel-MCMC/man/subset.SaemixData.Rd
no_license
BelhalK/AccelerationTrainingAlgorithms
R
false
true
596
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SaemixData.R \name{subset.SaemixData} \alias{subset.SaemixData} \alias{subset-methods} \alias{subset} \title{Data subsetting} \arguments{ \item{x}{saemixData object} \item{subset}{logical expression indicating elements or rows to keep: missi...
download <- download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "temp") unzip("temp") unlink("temp") #reading data hpc <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, quote= "", strip.white=TRUE, stringsAsFactors = FALSE, na.strin...
/Plot1.R
no_license
cypressville/ExData_Plotting1
R
false
false
860
r
download <- download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "temp") unzip("temp") unlink("temp") #reading data hpc <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, quote= "", strip.white=TRUE, stringsAsFactors = FALSE, na.strin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lists2df.R \name{lists2df} \alias{lists2df} \title{Combine multiple lists element wise to a single data frame} \usage{ lists2df(...) } \arguments{ \item{...}{Lists of the same length} } \value{ A data frame. With one column for each vector pr...
/man/lists2df.Rd
no_license
realsmak88/ss3sim
R
false
true
1,214
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lists2df.R \name{lists2df} \alias{lists2df} \title{Combine multiple lists element wise to a single data frame} \usage{ lists2df(...) } \arguments{ \item{...}{Lists of the same length} } \value{ A data frame. With one column for each vector pr...
#######Detection of Disruptors - Genes located in the gap between two DCEs that were united in the Healthy group######## find_genes <- function(chr, start, end, coordinates, DA_group){ data <- data_normalized[,which(DA == DA_group)] z <- rowSums(data) genes <- intersect(rownames(coordinates)[coordinates[, "...
/scripts/DCE_analysis/Disruptor_detection.R
permissive
Skourtis/SLE_spatial_gene_expression
R
false
false
3,797
r
#######Detection of Disruptors - Genes located in the gap between two DCEs that were united in the Healthy group######## find_genes <- function(chr, start, end, coordinates, DA_group){ data <- data_normalized[,which(DA == DA_group)] z <- rowSums(data) genes <- intersect(rownames(coordinates)[coordinates[, "...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/bayessir.R \name{bayessir} \alias{bayessir} \title{PMMH algorithm for time-varying SIRS model} \usage{ bayessir(obscholLIST, obsdaysLIST, COVMATLIST, th, trans, invtrans, pmean, psd, betaIIndex, betaWIndex, gammaIndex, kappaIndex, e...
/man/bayessir.Rd
no_license
standardgalactic/bayessir
R
false
false
9,459
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/bayessir.R \name{bayessir} \alias{bayessir} \title{PMMH algorithm for time-varying SIRS model} \usage{ bayessir(obscholLIST, obsdaysLIST, COVMATLIST, th, trans, invtrans, pmean, psd, betaIIndex, betaWIndex, gammaIndex, kappaIndex, e...
testlist <- list(Rs = numeric(0), atmp = 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), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.800335188...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615846096-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
736
r
testlist <- list(Rs = numeric(0), atmp = 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), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.800335188...
read_and_process_saeb_ate_2005 <- function(data_folder, dest_folder_prefix = 'data/processed') { `%>%` <- magrittr::`%>%` list_of_files <- list.files( data_folder, pattern = ".txt|.TXT", recursive = TRUE, full.names = TRUE ) purrr::walk...
/functions/read_and_process_saeb_ate_2005.R
no_license
paeselhz/microdados_saeb_ate_2005
R
false
false
1,330
r
read_and_process_saeb_ate_2005 <- function(data_folder, dest_folder_prefix = 'data/processed') { `%>%` <- magrittr::`%>%` list_of_files <- list.files( data_folder, pattern = ".txt|.TXT", recursive = TRUE, full.names = TRUE ) purrr::walk...
makeTopologyPlotBase <- function(db) { require(ggplot2) p <- ggplot(db,aes(y=ylvl,x=xlvl)) + theme(panel.background=element_blank(), axis.text=element_blank(), axis.ticks=element_blank(), axis.title=element_blank()) return(p) }
/R/makeTopologyPlotBase.R
no_license
catherine-hhs/bbeaR
R
false
false
275
r
makeTopologyPlotBase <- function(db) { require(ggplot2) p <- ggplot(db,aes(y=ylvl,x=xlvl)) + theme(panel.background=element_blank(), axis.text=element_blank(), axis.ticks=element_blank(), axis.title=element_blank()) return(p) }
\name{write.EcoNet} \alias{write.EcoNet} \title{ Write enaR models to an EcoNet formatted file. } \description{ Creates an EcoNet model from an enaR network object that can be used with the online interface for EcoNet. } \usage{ write.EcoNet(x='model',file='file path',mn='ena_model') } \arguments{ \item{x}{ ...
/man/write.EcoNet.Rd
no_license
PatrickPata/enaR
R
false
false
909
rd
\name{write.EcoNet} \alias{write.EcoNet} \title{ Write enaR models to an EcoNet formatted file. } \description{ Creates an EcoNet model from an enaR network object that can be used with the online interface for EcoNet. } \usage{ write.EcoNet(x='model',file='file path',mn='ena_model') } \arguments{ \item{x}{ ...
load("~/workspace/lits/attrib/attrib_year2013/data/lits.RData") tbl <- macro[, c(1,8:14)] tbl[,c(2:7)] <- round(tbl[,c(2:7)], 2) tbl <- tbl[order(tbl$undp_hdi), ] names(tbl) <- c("country","GDP Change 2007-1010","Failed States Index", "Voice And Accountability (WB)","HDI","Democracy (Freedom House)", ...
/code/iv_macro_table.R
permissive
muuankarski/attributions
R
false
false
367
r
load("~/workspace/lits/attrib/attrib_year2013/data/lits.RData") tbl <- macro[, c(1,8:14)] tbl[,c(2:7)] <- round(tbl[,c(2:7)], 2) tbl <- tbl[order(tbl$undp_hdi), ] names(tbl) <- c("country","GDP Change 2007-1010","Failed States Index", "Voice And Accountability (WB)","HDI","Democracy (Freedom House)", ...
library("qualityTools") pdf("ppplot.pdf", bg="transparent") ppPlot(iris$Petal.Length, main="Normal P-P Plot iris$Petal.Length", pch=19, cex=0.5) dev.off()
/inst/examples/data/distribution/ppplot.R
no_license
Kale14/mmstat4
R
false
false
155
r
library("qualityTools") pdf("ppplot.pdf", bg="transparent") ppPlot(iris$Petal.Length, main="Normal P-P Plot iris$Petal.Length", pch=19, cex=0.5) dev.off()
\name{workbook-class} \Rdversion{1.1} \docType{class} \alias{workbook-class} \title{Class "workbook"} \description{ This is \pkg{XLConnect}'s main entity representing a Microsoft Excel workbook. S4 objects of this class and corresponding methods are used to manipulate the underlying Excel workbook instances. } \section...
/man/workbook-class.Rd
no_license
HouYonghui/xlconnect
R
false
false
2,606
rd
\name{workbook-class} \Rdversion{1.1} \docType{class} \alias{workbook-class} \title{Class "workbook"} \description{ This is \pkg{XLConnect}'s main entity representing a Microsoft Excel workbook. S4 objects of this class and corresponding methods are used to manipulate the underlying Excel workbook instances. } \section...
library(HK80) ### Name: HK1980GRID_TO_WGS84GEO ### Title: Convert HK1980GRID coordinates to WGS84GEO coordinates ### Aliases: HK1980GRID_TO_WGS84GEO ### Keywords: HK1980GRID WGS84GEO ### ** Examples options(digits = 15) HK1980GRID_TO_WGS84GEO(820351.389, 832591.320) #### $latitude #### [1] 22.3221739419203 #### ##...
/data/genthat_extracted_code/HK80/examples/HK1980GRID_TO_WGS84GEO.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
497
r
library(HK80) ### Name: HK1980GRID_TO_WGS84GEO ### Title: Convert HK1980GRID coordinates to WGS84GEO coordinates ### Aliases: HK1980GRID_TO_WGS84GEO ### Keywords: HK1980GRID WGS84GEO ### ** Examples options(digits = 15) HK1980GRID_TO_WGS84GEO(820351.389, 832591.320) #### $latitude #### [1] 22.3221739419203 #### ##...
\name{mh25} \alias{mh25} \title{Function to return the MH25 hydrologic indicator statistic for a given data frame} \usage{ mh25(qfiletempf) } \arguments{ \item{qfiletempf}{data frame containing a "discharge" column containing daily flow values} } \value{ mh25 numeric value of MH25 for the given data frame } \descri...
/man/mh25.Rd
no_license
tsangyp/EflowStats
R
false
false
731
rd
\name{mh25} \alias{mh25} \title{Function to return the MH25 hydrologic indicator statistic for a given data frame} \usage{ mh25(qfiletempf) } \arguments{ \item{qfiletempf}{data frame containing a "discharge" column containing daily flow values} } \value{ mh25 numeric value of MH25 for the given data frame } \descri...
#' Read outputs of ALEVEL.OUT #' #' @param project.path path of hydrus project #' @param out.file name of teh alevel file: "A_Level.out" is default output file. #' @param output vector of output names that should be read #' @param warn Logical for displaying/suppressing warnings producted by data.table::fread() #' @par...
/R/read_alevel_out.R
no_license
hydrosphag/hydrusR
R
false
false
2,352
r
#' Read outputs of ALEVEL.OUT #' #' @param project.path path of hydrus project #' @param out.file name of teh alevel file: "A_Level.out" is default output file. #' @param output vector of output names that should be read #' @param warn Logical for displaying/suppressing warnings producted by data.table::fread() #' @par...
library(dplyr) library(xgboost) library(caret) library(data.table) sm_data=read.csv("train_sample.csv") summary(sm_data) summary(sm_data[sm_data$is_attributed==1,]) pacman::p_load(knitr, tidyverse, highcharter, data.table, lubridate, pROC, tictoc, DescTools, lightgbm) head(sm_data[sm_data$is_attributed==1,],n=10) summ...
/Data_manipulation.R
permissive
Jinchili/Fraud-click-detection
R
false
false
1,832
r
library(dplyr) library(xgboost) library(caret) library(data.table) sm_data=read.csv("train_sample.csv") summary(sm_data) summary(sm_data[sm_data$is_attributed==1,]) pacman::p_load(knitr, tidyverse, highcharter, data.table, lubridate, pROC, tictoc, DescTools, lightgbm) head(sm_data[sm_data$is_attributed==1,],n=10) summ...
FitGetPval <- function(jsub, jform){ jfit <- lm(formula = jform, data = jsub) pval <- summary(jfit)$coefficients[2, "Pr(>|t|)"] slope.val <- summary(jfit)$coefficients[2, "Estimate"] slope.se <- summary(jfit)$coefficients[2, "Std. Error"] return(data.frame(pval = pval, slope.val = slope.val, slope.se = slope....
/scripts/Rfunctions/VariabilityFunctions.R
no_license
jakeyeung/sortchicAllScripts
R
false
false
20,571
r
FitGetPval <- function(jsub, jform){ jfit <- lm(formula = jform, data = jsub) pval <- summary(jfit)$coefficients[2, "Pr(>|t|)"] slope.val <- summary(jfit)$coefficients[2, "Estimate"] slope.se <- summary(jfit)$coefficients[2, "Std. Error"] return(data.frame(pval = pval, slope.val = slope.val, slope.se = slope....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{defecttype} \alias{defecttype} \title{공정변수-불량 종류 데이터} \format{ 18개의 행과 4개의 열을 지닌 데이터 프레임: \describe{ \item{id}{관측 고유번호} \item{x1, x2}{두 공정변수} \item{y}{불량 종류 (1, 2, 3)} } } \usage{ defecttype } \description{ 3...
/man/defecttype.Rd
no_license
youngroklee-ml/dmtr
R
false
true
523
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{defecttype} \alias{defecttype} \title{공정변수-불량 종류 데이터} \format{ 18개의 행과 4개의 열을 지닌 데이터 프레임: \describe{ \item{id}{관측 고유번호} \item{x1, x2}{두 공정변수} \item{y}{불량 종류 (1, 2, 3)} } } \usage{ defecttype } \description{ 3...
powerdata <- read.table("household_power_consumption.txt", header=T, sep=";", stringsAsFactors=F, dec=".") subSetData <- powerdata[powerdata$Date %in% c("1/2/2007","2/2/2007") ,] datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as.numeric(subSetData$Glob...
/Plot2.R
no_license
tiagovazsoares/ExData_Plotting1
R
false
false
480
r
powerdata <- read.table("household_power_consumption.txt", header=T, sep=";", stringsAsFactors=F, dec=".") subSetData <- powerdata[powerdata$Date %in% c("1/2/2007","2/2/2007") ,] datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as.numeric(subSetData$Glob...
#CROMO MNTD Analysis #Performed on Brazelton Computing Cluster --Code Pasted into sbatch job file #Run using: #srun --partition highmem --mem 80GB Rscript CRO_MNTD-analysis.r & #job ID 27051 #load librarys library(vegan) library(ape) library(picante) library(readr) #Read in Otu.ids -- BEFORE READING IN R...
/CROMO_MNTD_NTI_Script.R
no_license
SchrenkLab/PAPER_Putman_CommunityAssembly
R
false
false
2,302
r
#CROMO MNTD Analysis #Performed on Brazelton Computing Cluster --Code Pasted into sbatch job file #Run using: #srun --partition highmem --mem 80GB Rscript CRO_MNTD-analysis.r & #job ID 27051 #load librarys library(vegan) library(ape) library(picante) library(readr) #Read in Otu.ids -- BEFORE READING IN R...
library(downloader) url <- "https://raw.githubusercontent.com/genomicsclass/dagdata/master/inst/extdata/femaleControlsPopulation.csv" filename <- basename(url) download(url, destfile=filename) x <- unlist( read.csv(filename) ) set.seed(1) N = 1000 meanList = vector("numeric", N) for(n in 1:N){ meanList[n] = mean(sa...
/Wk2_nullDist.R
no_license
subsoontornlab/RedX
R
false
false
697
r
library(downloader) url <- "https://raw.githubusercontent.com/genomicsclass/dagdata/master/inst/extdata/femaleControlsPopulation.csv" filename <- basename(url) download(url, destfile=filename) x <- unlist( read.csv(filename) ) set.seed(1) N = 1000 meanList = vector("numeric", N) for(n in 1:N){ meanList[n] = mean(sa...
compute.threshold.YI.cROC.bnp <- function(object, newdata, parallel = c("no", "multicore", "snow"), ncpus = 1, cl = NULL) { doMCMCTH <- function(k, res0, res1, Xhp, Xdp, Lh, Ld, grid) { npred <- nrow(Xhp) ngrid <- length(grid) F0 <- F1 <- matrix(0, nrow = ngrid, ncol = npred) t...
/ROCnReg/R/compute.threshold.YI.cROC.bnp.R
no_license
albrizre/spatstat.revdep
R
false
false
8,024
r
compute.threshold.YI.cROC.bnp <- function(object, newdata, parallel = c("no", "multicore", "snow"), ncpus = 1, cl = NULL) { doMCMCTH <- function(k, res0, res1, Xhp, Xdp, Lh, Ld, grid) { npred <- nrow(Xhp) ngrid <- length(grid) F0 <- F1 <- matrix(0, nrow = ngrid, ncol = npred) t...
weekdays <- timeline %>% mutate(WD = weekdays(Meldedatum)) %>% mutate(DoW = wday(Meldedatum)) %>% filter(Meldedatum > max(Meldedatum - backweek * 7)) %>% group_by(DoW, WD) %>% summarize(Fallzahl_Durchschnitt = round(mean(AnzahlFall), 2), sd = sd(AnzahlFall), .groups = "keep") %>% arrange(DoW) %>% as.data....
/scripts/weekdays.R
no_license
klabrx/Corona
R
false
false
384
r
weekdays <- timeline %>% mutate(WD = weekdays(Meldedatum)) %>% mutate(DoW = wday(Meldedatum)) %>% filter(Meldedatum > max(Meldedatum - backweek * 7)) %>% group_by(DoW, WD) %>% summarize(Fallzahl_Durchschnitt = round(mean(AnzahlFall), 2), sd = sd(AnzahlFall), .groups = "keep") %>% arrange(DoW) %>% as.data....
#' Find Labels from rset Object #' #' Produce a vector of resampling labels (e.g. "Fold1") from #' an `rset` object. Currently, `nested_cv` #' is not supported. #' #' @param object An `rset` object #' @param make_factor A logical for whether the results should be #' character or a factor. #' @param ... Not currently...
/R/lables.R
no_license
kmdupr33/rsample
R
false
false
6,892
r
#' Find Labels from rset Object #' #' Produce a vector of resampling labels (e.g. "Fold1") from #' an `rset` object. Currently, `nested_cv` #' is not supported. #' #' @param object An `rset` object #' @param make_factor A logical for whether the results should be #' character or a factor. #' @param ... Not currently...
#+++++++++++++++++++++++++++ # xlsx.writeMultipleData #+++++++++++++++++++++++++++++ # file : the path to the output file # ... : a list of data to write to the workbook xlsx.writeMultipleData <- function (file, d1, d2) { require(xlsx, quietly = TRUE) objects <- list(mtcars, d1, d2) fargs <- as.list(matc...
/functionUtils.R
no_license
momokeith1123/AFDBPRDVAR
R
false
false
640
r
#+++++++++++++++++++++++++++ # xlsx.writeMultipleData #+++++++++++++++++++++++++++++ # file : the path to the output file # ... : a list of data to write to the workbook xlsx.writeMultipleData <- function (file, d1, d2) { require(xlsx, quietly = TRUE) objects <- list(mtcars, d1, d2) fargs <- as.list(matc...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "electricity") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearner...
/models/openml_electricity/classification_class/c32d8211a6df67a5095ea6ba110efce6/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
712
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "electricity") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn = makeLearner...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_daily_stats.R \name{plot_daily_stats} \alias{plot_daily_stats} \title{Plot daily summary statistics} \usage{ plot_daily_stats( data, dates = Date, values = Value, groups = STATION_NUMBER, station_number, roll_days = 1, roll...
/man/plot_daily_stats.Rd
permissive
Rain3498/fasstr
R
false
true
6,878
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_daily_stats.R \name{plot_daily_stats} \alias{plot_daily_stats} \title{Plot daily summary statistics} \usage{ plot_daily_stats( data, dates = Date, values = Value, groups = STATION_NUMBER, station_number, roll_days = 1, roll...
#Homogeneous Poisson process arrivals function (BH=30, L=0.01, mu=180) arrivals <- function(BH,L,mu){ return(rpois(BH/L,mu/(BH/L))) } arrivals(30,0.01,180) #Inhomogeneous Poisson process arrivals #with intensity function of the form at + b ipparrivals <- function(BH, L, a, b){ ipparrivals1 <- numeric(0)...
/CustomerArrivals.R
no_license
nmarwen/ARM
R
false
false
2,962
r
#Homogeneous Poisson process arrivals function (BH=30, L=0.01, mu=180) arrivals <- function(BH,L,mu){ return(rpois(BH/L,mu/(BH/L))) } arrivals(30,0.01,180) #Inhomogeneous Poisson process arrivals #with intensity function of the form at + b ipparrivals <- function(BH, L, a, b){ ipparrivals1 <- numeric(0)...
library(tidyverse) library(sf) # build some shapes ------------------------------------------------------- # a circle pt <- st_point(x = c(0, 0)) radius <- 30 circle <- st_buffer(pt, radius) circle_linestring <- st_cast(circle, "MULTILINESTRING") # something more abstract nc <- st_read(system.file("shape/nc.shp", p...
/analyses/circle-noodle-comparison.R
no_license
mikoontz/sdc-clarifying-concepts
R
false
false
2,856
r
library(tidyverse) library(sf) # build some shapes ------------------------------------------------------- # a circle pt <- st_point(x = c(0, 0)) radius <- 30 circle <- st_buffer(pt, radius) circle_linestring <- st_cast(circle, "MULTILINESTRING") # something more abstract nc <- st_read(system.file("shape/nc.shp", p...
library(leaflet); library(maptools); library(maps); library(stringr); # Capitalize the first word of every string element in a vector properCaps <- function(x) { words <- str_split(x, "\\s") out <- sapply(words, function(word) { paste0( toupper(str_sub(word, 1, 1)), str_sub(word, start = 2), ...
/leaflet.R
no_license
amarnathprabhakar/CNN-stories
R
false
false
1,274
r
library(leaflet); library(maptools); library(maps); library(stringr); # Capitalize the first word of every string element in a vector properCaps <- function(x) { words <- str_split(x, "\\s") out <- sapply(words, function(word) { paste0( toupper(str_sub(word, 1, 1)), str_sub(word, start = 2), ...
# Libraries----- library(tidyverse) library(janitor) library(magrittr) library(caret) library(factoextra) library(gridExtra) library(NbClust) library(cluster) # Data Prep---- data_sample <- read_csv('climate-data-sample.csv') %>% clean_names() first_winter_median <- median(data_sample$date_first_winter_freeze) last_w...
/climate_cluster.R
no_license
rodserr/climate-cluster-Udacity-course
R
false
false
4,499
r
# Libraries----- library(tidyverse) library(janitor) library(magrittr) library(caret) library(factoextra) library(gridExtra) library(NbClust) library(cluster) # Data Prep---- data_sample <- read_csv('climate-data-sample.csv') %>% clean_names() first_winter_median <- median(data_sample$date_first_winter_freeze) last_w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{checkarg_fetch_id_data} \alias{checkarg_fetch_id_data} \title{Check if data for fetch_id() is correct} \usage{ checkarg_fetch_id_data(.data) } \description{ Check if data for fetch_id() is correct } \keyword{internal}
/man/checkarg_fetch_id_data.Rd
permissive
ropensci/qualtRics
R
false
true
311
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/checks.R \name{checkarg_fetch_id_data} \alias{checkarg_fetch_id_data} \title{Check if data for fetch_id() is correct} \usage{ checkarg_fetch_id_data(.data) } \description{ Check if data for fetch_id() is correct } \keyword{internal}
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gadgets.R \name{ask_builder} \alias{ask_builder} \title{ask if go to cheat sheet building menu} \usage{ ask_builder() } \description{ ask if go to cheat sheet building menu }
/man/ask_builder.Rd
no_license
wnk4242/Rcheatsheet
R
false
true
253
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gadgets.R \name{ask_builder} \alias{ask_builder} \title{ask if go to cheat sheet building menu} \usage{ ask_builder() } \description{ ask if go to cheat sheet building menu }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{prml} \alias{prml} \title{Declares that I read a famous textbook.} \usage{ prml() } \description{ Declares that I read a famous textbook. }
/man/prml.Rd
no_license
kota8/rpacktest
R
false
true
238
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{prml} \alias{prml} \title{Declares that I read a famous textbook.} \usage{ prml() } \description{ Declares that I read a famous textbook. }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directoryName.R \name{directoryName} \alias{directoryName} \title{Safe Version of Base Function dirname()} \usage{ directoryName(x) } \arguments{ \item{x}{a file path of which to get the path to the directory only} } \value{ path to directory...
/man/directoryName.Rd
permissive
KWB-R/kwb.utils
R
false
true
614
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directoryName.R \name{directoryName} \alias{directoryName} \title{Safe Version of Base Function dirname()} \usage{ directoryName(x) } \arguments{ \item{x}{a file path of which to get the path to the directory only} } \value{ path to directory...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.R \name{is_app} \alias{is_app} \alias{is_service_principal} \alias{is_user} \alias{is_group} \alias{is_directory_object} \title{Informational functions} \usage{ is_app(object) is_service_principal(object) is_user(object) is_group(object...
/man/info.Rd
permissive
PennState/AzureGraph
R
false
true
505
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.R \name{is_app} \alias{is_app} \alias{is_service_principal} \alias{is_user} \alias{is_group} \alias{is_directory_object} \title{Informational functions} \usage{ is_app(object) is_service_principal(object) is_user(object) is_group(object...
ponies <- c( "Twilight Sparkle", "Rainbow Dash", "Pinkie Pie", "Applejack", "Rarity", "Fluttershy", "Fluttershy"
/R/rpony.R
no_license
adriennewood/mylittlepony
R
false
false
128
r
ponies <- c( "Twilight Sparkle", "Rainbow Dash", "Pinkie Pie", "Applejack", "Rarity", "Fluttershy", "Fluttershy"
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/urinary_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=TRUE) sink('./urinary_tract_069.txt',ap...
/Model/EN/ReliefF/urinary_tract/urinary_tract_069.R
no_license
esbgkannan/QSMART
R
false
false
360
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/urinary_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.65,family="gaussian",standardize=TRUE) sink('./urinary_tract_069.txt',ap...
cat("\014") # Clear your console rm(list = ls()) #clear your environment ########################## Load in header file ######################## # source(file.path("C:/Users/Nick/git/of-dollars-and-data/header.R")) ########################## Load in Libraries ########################## # library(dplyr) library(tidyr...
/analysis/16-investing-vs-saving-plots.R
no_license
intelliBrain/of-dollars-and-data
R
false
false
8,631
r
cat("\014") # Clear your console rm(list = ls()) #clear your environment ########################## Load in header file ######################## # source(file.path("C:/Users/Nick/git/of-dollars-and-data/header.R")) ########################## Load in Libraries ########################## # library(dplyr) library(tidyr...
#### ----------------------------------------------------------------------------- #### IMPORTANT: This app is deployed as appName = mock. So, after setting up the account info #### using rsconnect::setAcountInfo() with the token and secret in shinyapps.io, #### you have to run the command like this> #### rsconnect::d...
/server.R
no_license
Fabricioholgado/fit-mock-app
R
false
false
13,027
r
#### ----------------------------------------------------------------------------- #### IMPORTANT: This app is deployed as appName = mock. So, after setting up the account info #### using rsconnect::setAcountInfo() with the token and secret in shinyapps.io, #### you have to run the command like this> #### rsconnect::d...
\name{like.sst} \alias{like.sst} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ like.sst(ingrid, datax = as.numeric(vec[11]), sigma = as.numeric(vec[12])) } %- maybe also ...
/man/like.sst.Rd
no_license
galuardi/hmmwoa
R
false
false
1,619
rd
\name{like.sst} \alias{like.sst} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ like.sst(ingrid, datax = as.numeric(vec[11]), sigma = as.numeric(vec[12])) } %- maybe also ...
/평가과제.R
no_license
oneday14/my_R
R
false
false
2,869
r
\name{species.tree} \alias{species.tree} \docType{data} \title{Species Phylogenetic tree} \description{This is a simulated phylogenetic trees with 200 tips.} \keyword{datasets}
/man/species.tree.Rd
no_license
cran/evobiR
R
false
false
177
rd
\name{species.tree} \alias{species.tree} \docType{data} \title{Species Phylogenetic tree} \description{This is a simulated phylogenetic trees with 200 tips.} \keyword{datasets}
context("Testing GenoGAMList-class") test_that("GenoGAM builds without parameters", { expect_true(is(GenoGAMList(), "GenoGAMList")) }) test_that("The accessor functions work correctly", { ggl <- makeTestGenoGAMList() expect_error(design()) expect_true(is(design(ggl), "formula")) expect_error(...
/tests/testthat/test_GenoGAMList-class.R
no_license
bedatadriven/fastGenoGAM
R
false
false
2,557
r
context("Testing GenoGAMList-class") test_that("GenoGAM builds without parameters", { expect_true(is(GenoGAMList(), "GenoGAMList")) }) test_that("The accessor functions work correctly", { ggl <- makeTestGenoGAMList() expect_error(design()) expect_true(is(design(ggl), "formula")) expect_error(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/androidenterprise_functions.R \name{managedconfigurationsforuser.delete} \alias{managedconfigurationsforuser.delete} \title{Removes a per-user managed configuration for an app for the specified user.} \usage{ managedconfigurationsforuser.dele...
/googleandroidenterprisev1.auto/man/managedconfigurationsforuser.delete.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,095
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/androidenterprise_functions.R \name{managedconfigurationsforuser.delete} \alias{managedconfigurationsforuser.delete} \title{Removes a per-user managed configuration for an app for the specified user.} \usage{ managedconfigurationsforuser.dele...
#' Make fixed-width bins #' #' Make fixed-width bins based on given bin size. #' #' @param bamfile A BAM file from which the header is read to determine the chromosome lengths. If a \code{bamfile} is specified, option \code{assembly} is ignored. #' @param assembly An assembly from which the chromosome lengths are deter...
/R/makeBins.R
no_license
ustcahwry/chromstaR
R
false
false
10,773
r
#' Make fixed-width bins #' #' Make fixed-width bins based on given bin size. #' #' @param bamfile A BAM file from which the header is read to determine the chromosome lengths. If a \code{bamfile} is specified, option \code{assembly} is ignored. #' @param assembly An assembly from which the chromosome lengths are deter...
rm(list = ls()) library(ggplot2) library(tidyverse) library(ggfortify) library(fastICA) library(datasets) df <- iris[c(1,2,3,4)] a <- fastICA(df, 7, alg.typ = "parallel", fun = "logcosh", alpha = 1, method = "R", row.norm = FALSE, maxit = 200, tol = 0.0001, verbose = TRUE) heat...
/solution3.R
no_license
NYUMachineLearning/hw1-Ying_Liao
R
false
false
330
r
rm(list = ls()) library(ggplot2) library(tidyverse) library(ggfortify) library(fastICA) library(datasets) df <- iris[c(1,2,3,4)] a <- fastICA(df, 7, alg.typ = "parallel", fun = "logcosh", alpha = 1, method = "R", row.norm = FALSE, maxit = 200, tol = 0.0001, verbose = TRUE) heat...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/itis.R \name{getcoveragefromtsn} \alias{getcoveragefromtsn} \title{Get coverge from tsn} \usage{ getcoveragefromtsn(tsn, ...) } \arguments{ \item{tsn}{TSN for a taxonomic group (numeric)} \item{...}{optional additional curl options (...
/man/getcoveragefromtsn.Rd
permissive
MadeleineMcGreer/taxize
R
false
false
561
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/itis.R \name{getcoveragefromtsn} \alias{getcoveragefromtsn} \title{Get coverge from tsn} \usage{ getcoveragefromtsn(tsn, ...) } \arguments{ \item{tsn}{TSN for a taxonomic group (numeric)} \item{...}{optional additional curl options (...
distCat <- function(data) { as.matrix(daisy(data, metric = "gower", stand = TRUE,warnType = F)) } n1byClass <- function(dst, data) { classes<-levels(data$class) g = graph.adjacency(dst, weighted = TRUE) tree = as.matrix(as_adj(mst(as.undirected(g)))) tmp = which(tree != 0, arr.ind = TRUE) cons = da...
/n1byClass.R
no_license
everlandio/EVINCI
R
false
false
931
r
distCat <- function(data) { as.matrix(daisy(data, metric = "gower", stand = TRUE,warnType = F)) } n1byClass <- function(dst, data) { classes<-levels(data$class) g = graph.adjacency(dst, weighted = TRUE) tree = as.matrix(as_adj(mst(as.undirected(g)))) tmp = which(tree != 0, arr.ind = TRUE) cons = da...
source('hillConstants.R') directory <- 'data/' baseFile <- paste(c(directory,'baseData.csv'),collapse="") intFilePrefix <- directory intFileSuffix <- '.csv' #Intervention string details: # inc/red --> increase/reduce # EnLTBI/Imm/LTBItrmt/Trans --> Entering LTBI, Immigration, LTBI Treatment...
/deliverables/costBenefitAnalysis/interventionConfig.R
no_license
mmcdermott/disease-modeling
R
false
false
3,159
r
source('hillConstants.R') directory <- 'data/' baseFile <- paste(c(directory,'baseData.csv'),collapse="") intFilePrefix <- directory intFileSuffix <- '.csv' #Intervention string details: # inc/red --> increase/reduce # EnLTBI/Imm/LTBItrmt/Trans --> Entering LTBI, Immigration, LTBI Treatment...
library(lspls) ### Name: lspls-package ### Title: LS-PLS Models ### Aliases: lspls-package ### Keywords: package multivariate regression ### ** Examples ## FIXME
/data/genthat_extracted_code/lspls/examples/lspls-package.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
169
r
library(lspls) ### Name: lspls-package ### Title: LS-PLS Models ### Aliases: lspls-package ### Keywords: package multivariate regression ### ** Examples ## FIXME
X = read.csv("~/Desktop/local/surescript-code/fixed_drug_details.csv", sep="|", quote="", colClasses=c("character", "integer", "character", "integer", "character", "character", "factor", "character", "numeric", "Date", "character", "factor", "numeric", "character", "factor", "integer", "Date", "character")) # Takes ar...
/import.R
no_license
jmandel/bch-rx-challenge
R
false
false
1,481
r
X = read.csv("~/Desktop/local/surescript-code/fixed_drug_details.csv", sep="|", quote="", colClasses=c("character", "integer", "character", "integer", "character", "character", "factor", "character", "numeric", "Date", "character", "factor", "numeric", "character", "factor", "integer", "Date", "character")) # Takes ar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_interface.R \name{assert_valid_output_dir} \alias{assert_valid_output_dir} \title{Check that a directory is a valid FPEMglobal output directory} \usage{ assert_valid_output_dir( output_folder_path, post_processed = TRUE, countrytra...
/man/assert_valid_output_dir.Rd
permissive
FPcounts/FPEMglobal
R
false
true
1,611
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_interface.R \name{assert_valid_output_dir} \alias{assert_valid_output_dir} \title{Check that a directory is a valid FPEMglobal output directory} \usage{ assert_valid_output_dir( output_folder_path, post_processed = TRUE, countrytra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/C3FURV.R \name{subdaily_out_of_range} \alias{subdaily_out_of_range} \title{Sub-daily big errors test} \usage{ subdaily_out_of_range( subdailydata, meta = NULL, outpath, time_offset = 0, ta_day_upper = 45, ta_day_lower = -35, ta_...
/man/subdaily_out_of_range.Rd
no_license
cran/dataresqc
R
false
true
3,256
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/C3FURV.R \name{subdaily_out_of_range} \alias{subdaily_out_of_range} \title{Sub-daily big errors test} \usage{ subdaily_out_of_range( subdailydata, meta = NULL, outpath, time_offset = 0, ta_day_upper = 45, ta_day_lower = -35, ta_...
class(c(TRUE,FALSE)) class(sqrt(1:10)) class(3+1i) class(1) class(1L) class(0.5:4.5) class(1:5) class(c("she","he","the")) (gender <- factor(c("male","female","male","female"))) levels(gender) nlevels(gender) as.integer(gender) gender_char <- sample(c("female","male"),1000,replace = TRUE) gender_fac <- as....
/罗斐练习2.R
no_license
ROFFI-06/R_01
R
false
false
1,291
r
class(c(TRUE,FALSE)) class(sqrt(1:10)) class(3+1i) class(1) class(1L) class(0.5:4.5) class(1:5) class(c("she","he","the")) (gender <- factor(c("male","female","male","female"))) levels(gender) nlevels(gender) as.integer(gender) gender_char <- sample(c("female","male"),1000,replace = TRUE) gender_fac <- as....
# fit multivariate model to experimental and perturbed time series source('~/Dropbox/1current/multidimensionalChangeMS/multiComponentChange/r_scripts/00_init_dirs_load_packages.R') # these data were compiled and wrangled by Dr Alban Sagious # code to download and wrangle data available at: https://github.com/sablowes/...
/r_scripts/02_btx_multi4_fit.R
permissive
sablowes/MulticomponentBioChange
R
false
false
3,752
r
# fit multivariate model to experimental and perturbed time series source('~/Dropbox/1current/multidimensionalChangeMS/multiComponentChange/r_scripts/00_init_dirs_load_packages.R') # these data were compiled and wrangled by Dr Alban Sagious # code to download and wrangle data available at: https://github.com/sablowes/...
generate.year_summary.O3 <- function(all_years = FALSE, single_year = NULL, year_range = NULL, file_path = NULL, station, quarter_bound...
/R/year_summary_O3.R
permissive
arturochian/stationaRy
R
false
false
15,026
r
generate.year_summary.O3 <- function(all_years = FALSE, single_year = NULL, year_range = NULL, file_path = NULL, station, quarter_bound...
# # Copyright 2007-2016 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
/inst/models/passing/ModelTransformTest.R
permissive
falkcarl/OpenMx
R
false
false
2,010
r
# # Copyright 2007-2016 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
simulateData <- function(simulationConfig, samples, model, indPath, isOracle = FALSE, typeOfSimulator="random", returnData=TRUE, verbose=0) { # Function that simulates the model and then samples the data, if necessary. # Returns a list with M=true model, D=sampled data. # - simulationConfig$n # - simulationCo...
/R/simulateData.R
no_license
caus-am/dom_adapt
R
false
false
5,200
r
simulateData <- function(simulationConfig, samples, model, indPath, isOracle = FALSE, typeOfSimulator="random", returnData=TRUE, verbose=0) { # Function that simulates the model and then samples the data, if necessary. # Returns a list with M=true model, D=sampled data. # - simulationConfig$n # - simulationCo...
library(SECP) ### Name: fds3s ### Title: Mass fractal dimension of sampling 3D clusters ### Aliases: fds3s ### ** Examples # # # # # # # # # # # # # # # # # # Example 1: Isotropic set cover # # # # # # # # # # # # # # # # # pc <- .311608 p1 <- pc - .01 p2 <- pc + .01 lx <- 33; ss <- (lx+1)/2 rf1 <- fssi30(n=100, x=...
/data/genthat_extracted_code/SECP/examples/fds3s.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
4,131
r
library(SECP) ### Name: fds3s ### Title: Mass fractal dimension of sampling 3D clusters ### Aliases: fds3s ### ** Examples # # # # # # # # # # # # # # # # # # Example 1: Isotropic set cover # # # # # # # # # # # # # # # # # pc <- .311608 p1 <- pc - .01 p2 <- pc + .01 lx <- 33; ss <- (lx+1)/2 rf1 <- fssi30(n=100, x=...
################ # Intro to ggplot # eco-data-sci workshop # 1/17/2018 ################ # We'll be using data for National Parks visitation to practice basic data visualization using ggplot (from the National Park Service at <https://irma.nps.gov/Stats/SSRSReports>). # Make sure to check out the Ocean Health Index Da...
/ggplot visualization exercise/data_vis_script.R
no_license
LilianYou/Geography_Analytics
R
false
false
11,534
r
################ # Intro to ggplot # eco-data-sci workshop # 1/17/2018 ################ # We'll be using data for National Parks visitation to practice basic data visualization using ggplot (from the National Park Service at <https://irma.nps.gov/Stats/SSRSReports>). # Make sure to check out the Ocean Health Index Da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load.R \docType{methods} \name{load,ModelRef-method} \alias{load,ModelRef-method} \title{Load a ModelRef} \usage{ \S4method{load}{ModelRef}(file) } \arguments{ \item{file}{object to load} } \description{ Load a ModelRef }
/man/load-ModelRef-method.Rd
no_license
patrickvossler18/simulator
R
false
true
300
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load.R \docType{methods} \name{load,ModelRef-method} \alias{load,ModelRef-method} \title{Load a ModelRef} \usage{ \S4method{load}{ModelRef}(file) } \arguments{ \item{file}{object to load} } \description{ Load a ModelRef }
library(SDMTools) out.dir='E:/Barra Work Directory/outputs/daily_validation/trials/'; setwd(out.dir) cols=rainbow(9) load(file=paste(out.dir, 'dtr.sept08.rData', sep='')) sept08 = out;out=NULL sept08$day = NULL sept08$day=seq(1,length(sept08$julian.day), 1) load(file=paste(out.dir, 'dtr.end-sept08.rData', sep=''))...
/barra/barra_optimum_temp/glencross/validation.image.daintree.r
no_license
LaurenHodgson/Projects
R
false
false
1,332
r
library(SDMTools) out.dir='E:/Barra Work Directory/outputs/daily_validation/trials/'; setwd(out.dir) cols=rainbow(9) load(file=paste(out.dir, 'dtr.sept08.rData', sep='')) sept08 = out;out=NULL sept08$day = NULL sept08$day=seq(1,length(sept08$julian.day), 1) load(file=paste(out.dir, 'dtr.end-sept08.rData', sep=''))...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_logit.R \name{feature_logit} \alias{feature_logit} \title{Generate, format and save a tabulation of the most important predictors in a logit model (glm/glmnet/speedglm).} \usage{ feature_logit(model, cluster_var_vector = NA, feat_lim ...
/man/feature_logit.Rd
no_license
ClaraMarquardt/huhn
R
false
true
474
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feature_logit.R \name{feature_logit} \alias{feature_logit} \title{Generate, format and save a tabulation of the most important predictors in a logit model (glm/glmnet/speedglm).} \usage{ feature_logit(model, cluster_var_vector = NA, feat_lim ...
library(rworldmap) library(RColorBrewer) library(ggplot2) countries = read.csv("countries.csv", na.strings = " NA") countries$GDP = as.numeric(as.character(countries$GDP)) sPDF = joinCountryData2Map(countries, joinCode = "NAME", nameJoinColumn = "Country", verbose = TRUE) png(filename = "C...
/country.R
no_license
tejaykodali/CountryGDP
R
false
false
733
r
library(rworldmap) library(RColorBrewer) library(ggplot2) countries = read.csv("countries.csv", na.strings = " NA") countries$GDP = as.numeric(as.character(countries$GDP)) sPDF = joinCountryData2Map(countries, joinCode = "NAME", nameJoinColumn = "Country", verbose = TRUE) png(filename = "C...
PlotFDRs <- function(lpcfdr.out, frac=.25){ # frac is the fraction of genes plotted. CheckPlotFDRsFormat(lpcfdr.out,frac) lpcfdr <- lpcfdr.out$fdrlpc tfdr <- lpcfdr.out$fdrt tfdrs <- tfdr[tfdr<quantile(tfdr,frac)] lpcfdrs <- lpcfdr[lpcfdr<quantile(lpcfdr,frac)] plot(tfdrs[order(tfdrs, decreasing=FALSE)], ...
/R/PlotFDRs.R
no_license
cran/lpc
R
false
false
599
r
PlotFDRs <- function(lpcfdr.out, frac=.25){ # frac is the fraction of genes plotted. CheckPlotFDRsFormat(lpcfdr.out,frac) lpcfdr <- lpcfdr.out$fdrlpc tfdr <- lpcfdr.out$fdrt tfdrs <- tfdr[tfdr<quantile(tfdr,frac)] lpcfdrs <- lpcfdr[lpcfdr<quantile(lpcfdr,frac)] plot(tfdrs[order(tfdrs, decreasing=FALSE)], ...
function (x, window) { e <- get("data.env", .GlobalEnv) e[["blocksums_n_max"]][[length(e[["blocksums_n_max"]]) + 1]] <- list(x = x, window = window) .Call("_accelerometry_blocksums_n_max", x, window) }
/valgrind_test_dir/blocksums_n_max-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
224
r
function (x, window) { e <- get("data.env", .GlobalEnv) e[["blocksums_n_max"]][[length(e[["blocksums_n_max"]]) + 1]] <- list(x = x, window = window) .Call("_accelerometry_blocksums_n_max", x, window) }
#============ #validation.R #============ #This script defines functions that are used to validate data prior to #reading or writing to the datastore. The functions check whether the datastore #contains the group/table/dataset requested and whether the data match #specifications. Unlike the functions defined in...
/sources/framework/visioneval/R/validation.R
permissive
cities-lab/VisionEval
R
false
false
71,266
r
#============ #validation.R #============ #This script defines functions that are used to validate data prior to #reading or writing to the datastore. The functions check whether the datastore #contains the group/table/dataset requested and whether the data match #specifications. Unlike the functions defined in...
d8a8c8159f3c471cf90e97a7218ea0f6 ttt_4x4-shape-7-GTTT-2-2-torus-1.qdimacs 756 2648
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/MayerEichberger-Saffidine/PositionalGames_gttt/ttt_4x4-shape-7-GTTT-2-2-torus-1/ttt_4x4-shape-7-GTTT-2-2-torus-1.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
82
r
d8a8c8159f3c471cf90e97a7218ea0f6 ttt_4x4-shape-7-GTTT-2-2-torus-1.qdimacs 756 2648
test_that(".file_extdata", { expect_error(.file_extdata("foo")) expect_true(file.exists(.file_extdata("labcodes.csv"))) })
/tests/testthat/test-utils.R
permissive
ampel-leipzig/sbcdata
R
false
false
131
r
test_that(".file_extdata", { expect_error(.file_extdata("foo")) expect_true(file.exists(.file_extdata("labcodes.csv"))) })
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/covidestim.R \name{covidestim_add.priors} \alias{covidestim_add.priors} \title{When adding priors, we want to be sure that a new 'modelconfig' object is created, in order to check these priors} \usage{ \method{covidestim_add}{priors}(rightsid...
/man/covidestim_add.priors.Rd
no_license
sechan9999/covidestim
R
false
true
465
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/covidestim.R \name{covidestim_add.priors} \alias{covidestim_add.priors} \title{When adding priors, we want to be sure that a new 'modelconfig' object is created, in order to check these priors} \usage{ \method{covidestim_add}{priors}(rightsid...
library(ggplot2) setwd("C:\\Users\\letic\\OneDrive\\Área de Trabalho\\PESQUISA\\mini artigo") df_activity <- read.table("activityWD.data", header = TRUE, sep=",") Dias<-c("Segunda", "Terca", "Quarta", "Quinta", "Sexta", "Sabado","Domingo") df_activity pl <- ggplot(df_activity,aes(x = Dia, y=Frequencia)) + ...
/graphActivitySemanas.R
no_license
pauloangelodb/IPI-mini-artigo
R
false
false
691
r
library(ggplot2) setwd("C:\\Users\\letic\\OneDrive\\Área de Trabalho\\PESQUISA\\mini artigo") df_activity <- read.table("activityWD.data", header = TRUE, sep=",") Dias<-c("Segunda", "Terca", "Quarta", "Quinta", "Sexta", "Sabado","Domingo") df_activity pl <- ggplot(df_activity,aes(x = Dia, y=Frequencia)) + ...
source('mainFunctions_sub.R') # HUES64_mesoderm_23_paired_phased_tmml_pvals.bedGraph CPEL_version2 4.2M, Apr 28 (filter 5, no boudnary), 98230 # HUES64_mesoderm_23_paired_phased_tmml_pvals.bedGraph newrun3 9.4M, May 7 (filter 5, boundary), 171985 #Contains boundary condition GR_contain_boundary=import.subject('../downs...
/code_not_in_paper/QC/boundary_condition_check.R
no_license
yuqifang94/ASE
R
false
false
4,381
r
source('mainFunctions_sub.R') # HUES64_mesoderm_23_paired_phased_tmml_pvals.bedGraph CPEL_version2 4.2M, Apr 28 (filter 5, no boudnary), 98230 # HUES64_mesoderm_23_paired_phased_tmml_pvals.bedGraph newrun3 9.4M, May 7 (filter 5, boundary), 171985 #Contains boundary condition GR_contain_boundary=import.subject('../downs...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geneXplain.R \name{gx.trackToGeneSet} \alias{gx.trackToGeneSet} \title{Track to gene set} \usage{ gx.trackToGeneSet(tracks, species, from, to, resultTypes = c("Count"), allGenes = F, destPath, wait = T, verbose = T) } \arguments{ \item{trac...
/man/gx.trackToGeneSet.Rd
permissive
genexplain/geneXplainR
R
false
true
1,022
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geneXplain.R \name{gx.trackToGeneSet} \alias{gx.trackToGeneSet} \title{Track to gene set} \usage{ gx.trackToGeneSet(tracks, species, from, to, resultTypes = c("Count"), allGenes = F, destPath, wait = T, verbose = T) } \arguments{ \item{trac...
# Data cleaning ---------------------------------------------------------- # load packages library(tidyverse) # read in data counts <- read_csv("./data_raw/germination/TPC_germination.csv") # separate slides into site, temp and replicate columns counts <- counts %>% rename(sample = slide) %>% separate(sample...
/scripts/germination.R
no_license
sandraemry/fucus-temp
R
false
false
4,568
r
# Data cleaning ---------------------------------------------------------- # load packages library(tidyverse) # read in data counts <- read_csv("./data_raw/germination/TPC_germination.csv") # separate slides into site, temp and replicate columns counts <- counts %>% rename(sample = slide) %>% separate(sample...
fill_sample <- function(session) { updateTextInput(session, 's_name', value = 'Matthew Webb') updateTextInput(session, 's_email', value = 'mwebb@channelswimmingassocation.com') updateSelectInput(session, 's_gender', selected = 'male') updateTextInput(session, 's_phone', value = '505-867-5309') updateTextAreaI...
/relay-leader/fill_sample.R
no_license
evmo/sbcsa-apply
R
false
false
711
r
fill_sample <- function(session) { updateTextInput(session, 's_name', value = 'Matthew Webb') updateTextInput(session, 's_email', value = 'mwebb@channelswimmingassocation.com') updateSelectInput(session, 's_gender', selected = 'male') updateTextInput(session, 's_phone', value = '505-867-5309') updateTextAreaI...
make_understorey_aboveground_production_flux <- function(c_frac) { ### currently only Varsha's harvest data on HIEv download_understorey_aboveground_data() ### read in the data inDF1 <- read.csv(file.path(getToPath(), "FACE_P0061_RA_PATHARE_UNDERSTORY_ABOVEGRO...
/modules/c_variables/understorey_c_production/make_understorey_production_flux.R
no_license
SoilTSSM/EucFACE_P_synthesis
R
false
false
2,877
r
make_understorey_aboveground_production_flux <- function(c_frac) { ### currently only Varsha's harvest data on HIEv download_understorey_aboveground_data() ### read in the data inDF1 <- read.csv(file.path(getToPath(), "FACE_P0061_RA_PATHARE_UNDERSTORY_ABOVEGRO...
utils::globalVariables(c("input_table", "color.df", "dict.combine","edge_matrix_full"))
/R/data.R
permissive
xinxiong0238/CUInetwork
R
false
false
88
r
utils::globalVariables(c("input_table", "color.df", "dict.combine","edge_matrix_full"))
\name{fW.Gompertz} \alias{fW.Gompertz} \title{Effects of moisture on decomposition rates according to the Gompertz function} \description{Calculates the effects of water content on decomposition rates.} \usage{fW.Gompertz(theta, a = 0.824, b = 0.308)}\arguments{ \item{theta}{A scalar or vector containing values ...
/man/131.Rd
no_license
haiyangzhang798/SoilR
R
false
false
1,051
rd
\name{fW.Gompertz} \alias{fW.Gompertz} \title{Effects of moisture on decomposition rates according to the Gompertz function} \description{Calculates the effects of water content on decomposition rates.} \usage{fW.Gompertz(theta, a = 0.824, b = 0.308)}\arguments{ \item{theta}{A scalar or vector containing values ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/date_classify.R \name{classify_quarter} \alias{classify_quarter} \title{classify by quarter} \usage{ classify_quarter(ts) } \arguments{ \item{ts}{vector of Date} } \value{ vector of Date } \description{ make label for classify by quarter. } \...
/man/classify_quarter.Rd
permissive
rea-osaka/retiex
R
false
true
372
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/date_classify.R \name{classify_quarter} \alias{classify_quarter} \title{classify by quarter} \usage{ classify_quarter(ts) } \arguments{ \item{ts}{vector of Date} } \value{ vector of Date } \description{ make label for classify by quarter. } \...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % findAsciiDoc.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{findAsciiDoc} \alias{...
/man/findAsciiDoc.Rd
no_license
HenrikBengtsson/R.rsp
R
false
false
1,067
rd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % findAsciiDoc.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{findAsciiDoc} \alias{...
library(tidyverse) #GLMs#### titanic<-read.csv("datasets/titanic_long.csv") table(titanic$class, titanic$survived) titanic %>% group_by(class, survived) %>% summarise(count = n()) ##class#### tit.glm <- glm(survived ~ class, data = titanic, family = binomial) library(effects) allE...
/scripts/day3.R
no_license
marthaluka/GLMs-in-R
R
false
false
3,557
r
library(tidyverse) #GLMs#### titanic<-read.csv("datasets/titanic_long.csv") table(titanic$class, titanic$survived) titanic %>% group_by(class, survived) %>% summarise(count = n()) ##class#### tit.glm <- glm(survived ~ class, data = titanic, family = binomial) library(effects) allE...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{reload} \alias{reload} \title{Unload and reload package.} \usage{ reload(pkg = ".", quiet = FALSE) } \arguments{ \item{pkg}{package description, can be path or package name. See \code{\link{as.package}} for more information} \item{quiet}{if \code{TRUE} suppre...
/man/reload.Rd
no_license
kingo55/devtools
R
false
false
945
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{reload} \alias{reload} \title{Unload and reload package.} \usage{ reload(pkg = ".", quiet = FALSE) } \arguments{ \item{pkg}{package description, can be path or package name. See \code{\link{as.package}} for more information} \item{quiet}{if \code{TRUE} suppre...
# Assignment: ASSIGNMENT 4 # Name: Holdman, Sarah # Date: 2020-09-28 ## Load the ggplot2 package library(ggplot2) theme_set(theme_minimal()) ## Set the working directory to the root of your DSC 520 directory setwd("C:/Users/shold/Documents/GITHUB/HOLDMAN_DSC520/dsc520") ## Load the `data/r4ds/heights.csv` to heights...
/assignments/assignment04/assignment_04_HoldmanSarah.R
permissive
sjholdman/dsc520
R
false
false
3,522
r
# Assignment: ASSIGNMENT 4 # Name: Holdman, Sarah # Date: 2020-09-28 ## Load the ggplot2 package library(ggplot2) theme_set(theme_minimal()) ## Set the working directory to the root of your DSC 520 directory setwd("C:/Users/shold/Documents/GITHUB/HOLDMAN_DSC520/dsc520") ## Load the `data/r4ds/heights.csv` to heights...
#' who_cities #' List cities currently being analysed #' @export who_cities <- function () { c ("accra", "bristol", "kathmandu") } match_city <- function (city = NULL) { cities <- c ("accra", "kathmandu") if (!is.null (city)) city <- match.arg (tolower (city), cities) else city <- citie...
/R/utils.R
no_license
ATFutures/who-data
R
false
false
3,349
r
#' who_cities #' List cities currently being analysed #' @export who_cities <- function () { c ("accra", "bristol", "kathmandu") } match_city <- function (city = NULL) { cities <- c ("accra", "kathmandu") if (!is.null (city)) city <- match.arg (tolower (city), cities) else city <- citie...
# Purpose: Create figure 1 for manuscript. It's the presentation of the results from the Cox processes # Packages library(plyr) library(dplyr) library(ggplot2) # Load data alpha_hat <- tbl_df(read.table(file = "../analysis/alpha-hat.txt", sep = "\t", header = TRUE)) alpha_hat_cox <- filter(alpha_hat, process...
/docs/forest-plot.R
no_license
mloop/kdiff-type1-error-rate
R
false
false
920
r
# Purpose: Create figure 1 for manuscript. It's the presentation of the results from the Cox processes # Packages library(plyr) library(dplyr) library(ggplot2) # Load data alpha_hat <- tbl_df(read.table(file = "../analysis/alpha-hat.txt", sep = "\t", header = TRUE)) alpha_hat_cox <- filter(alpha_hat, process...
## ================================================================ ## HEADER ## ================================================================ ## Following two functions can be easily used to calculate inverse ## of a square invertible matrix ## - "efficiency" feature being the caching of the inverse ## ...
/cachematrix.R
no_license
arehurek/ProgrammingAssignment2
R
false
false
1,804
r
## ================================================================ ## HEADER ## ================================================================ ## Following two functions can be easily used to calculate inverse ## of a square invertible matrix ## - "efficiency" feature being the caching of the inverse ## ...
source("internal_v4.R") foldernames=c("Cell 1") sapply(foldernames, function(foldername){ r = readLines(con=file.path(paste(foldername, "/config.txt", sep=""))) get <- function(type){i = grep(type,r); strsplit(r[i], "=")[[1]][2]} as.v <- function(ch){as.numeric(strsplit(ch,",")[[1]])} model=get("model") {if (model=="G...
/R code - Bayesian-based cluster analysis/Bayesian cluster analysis of molecular coordinates data for 1 color data/run_ClusterCentroids_Ch2_v4.R
permissive
Owenlab-UoB/DNA-PAINT-analysis
R
false
false
2,320
r
source("internal_v4.R") foldernames=c("Cell 1") sapply(foldernames, function(foldername){ r = readLines(con=file.path(paste(foldername, "/config.txt", sep=""))) get <- function(type){i = grep(type,r); strsplit(r[i], "=")[[1]][2]} as.v <- function(ch){as.numeric(strsplit(ch,",")[[1]])} model=get("model") {if (model=="G...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/CoreMethods.R \docType{methods} \name{findCellTypes} \alias{findCellTypes} \alias{findCellTypes.geneList} \alias{findCellTypes,SCFind,character-method} \title{queries cells that contain all the genes from the list} \usage{ fi...
/man/findCellTypes.Rd
permissive
thjimmylee/scfind
R
false
true
1,023
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllGenerics.R, R/CoreMethods.R \docType{methods} \name{findCellTypes} \alias{findCellTypes} \alias{findCellTypes.geneList} \alias{findCellTypes,SCFind,character-method} \title{queries cells that contain all the genes from the list} \usage{ fi...
## version: 1.34 ## method: get ## path: /plugins/{name}/json ## code: 200 NULL data_frame <- function(...) { data.frame(..., stringsAsFactors = FALSE) } settings <- list( mounts = data_frame( name = "some-mount", description = "This is a mount that's used by the plugin.", settable = structure(list("s...
/tests/testthat/sample_responses/v1.34/plugin_inspect.R
no_license
cran/stevedore
R
false
false
2,532
r
## version: 1.34 ## method: get ## path: /plugins/{name}/json ## code: 200 NULL data_frame <- function(...) { data.frame(..., stringsAsFactors = FALSE) } settings <- list( mounts = data_frame( name = "some-mount", description = "This is a mount that's used by the plugin.", settable = structure(list("s...
plotbcdf = function (m, ...) UseMethod ("plotbcdf") plotbcdf.mecdf = function (m, regular=TRUE, res=16, ulim, vlim, ...) { x = m$x if (missing (ulim) ) ulim = range (x [,1]) if (missing (vlim) ) vlim = range (x [,2]) if (regular) { u = seq (ulim [1], ulim [2], length=res) v = seq (vlim [1], vlim [2], length=res)...
/bcdfplot.r
no_license
zeke75/PCA-bootstrap
R
false
false
5,241
r
plotbcdf = function (m, ...) UseMethod ("plotbcdf") plotbcdf.mecdf = function (m, regular=TRUE, res=16, ulim, vlim, ...) { x = m$x if (missing (ulim) ) ulim = range (x [,1]) if (missing (vlim) ) vlim = range (x [,2]) if (regular) { u = seq (ulim [1], ulim [2], length=res) v = seq (vlim [1], vlim [2], length=res)...
## makeCacheMatrix is a function which creates a special "matrix" object that can ## cache its inverse for the input (which is an invertible square matrix) makeCacheMatrix <- function(x = matrix()) { m<-NULL y<-NULL setm<-function(y){ x<<-y m<<-NULL } getm<-function() x setinv<-function(solve...
/Assignment 2 - Lexical Scoping.R
no_license
Shubham-Nagle/Assignment-2-Lexical-Scoping
R
false
false
946
r
## makeCacheMatrix is a function which creates a special "matrix" object that can ## cache its inverse for the input (which is an invertible square matrix) makeCacheMatrix <- function(x = matrix()) { m<-NULL y<-NULL setm<-function(y){ x<<-y m<<-NULL } getm<-function() x setinv<-function(solve...
testlist <- list(hi = -2.14555482385487e+110, lo = -2.1455548238548e+110, mu = -2.14555482385487e+110, sig = -2.14555482385487e+110) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610045255-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
194
r
testlist <- list(hi = -2.14555482385487e+110, lo = -2.1455548238548e+110, mu = -2.14555482385487e+110, sig = -2.14555482385487e+110) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
################limma-voom limma_dge <- tabItem(tabName = "limma_dge", br(), br(), h2("Differential Gene Analysis with limma-voom"), br() ,uiOutput("limma_runDGE") ,hr() ,boxPlus(collapsible=T, closable=F, width = 10, title = "DGE analy...
/shared/limma_dgeUI.R
no_license
rosericazondekon/irnaa
R
false
false
2,684
r
################limma-voom limma_dge <- tabItem(tabName = "limma_dge", br(), br(), h2("Differential Gene Analysis with limma-voom"), br() ,uiOutput("limma_runDGE") ,hr() ,boxPlus(collapsible=T, closable=F, width = 10, title = "DGE analy...
############################################################################### ############################################################################### ############################################################################### library("shiny") ## uživatelské rozhraní -----------------------------...
/akademicky_rok_2019_2020/r_kalkulator/ui.R
no_license
LStepanek/17VSADR_Skriptovani_a_analyza_dat_v_jazyce_R
R
false
false
1,606
r
############################################################################### ############################################################################### ############################################################################### library("shiny") ## uživatelské rozhraní -----------------------------...