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 |
|---|---|---|---|---|---|---|---|---|---|
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 951
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 946
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 946
c
c Input Parameter (command line, file):... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/MayerEichberger-Saffidine/PositionalGames_gttt/ttt_3x3-shape-3-GTTT-2-1-torus-1/ttt_3x3-shape-3-GTTT-2-1-torus-1.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 813 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 951
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 946
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 946
c
c Input Parameter (command line, file):... |
library(rpart)
install.packages('DMwR')
library(DMwR)
install.packages('rpart.plot')
library(rpart.plot)
dft <- read.csv('C://Users/dyerl/Desktop/Titanic dataset.csv')
Ttree<- rpart(Survived~Pclass+Sex+Age+SibSp+Parch+Fare+Embarked, data= dft, method="class", control = rpart.control(minbucket = 25))
prp(Ttree)... | /ml_titanic.R | permissive | yerlandana/R_project | R | false | false | 1,164 | r | library(rpart)
install.packages('DMwR')
library(DMwR)
install.packages('rpart.plot')
library(rpart.plot)
dft <- read.csv('C://Users/dyerl/Desktop/Titanic dataset.csv')
Ttree<- rpart(Survived~Pclass+Sex+Age+SibSp+Parch+Fare+Embarked, data= dft, method="class", control = rpart.control(minbucket = 25))
prp(Ttree)... |
#' @importFrom ggplot2 ggplot
#' @export
ggplot2::ggplot
#' @importFrom ggplot2 aes
#' @export
ggplot2::aes
#' @importFrom ggplot2 geom_sf
#' @export
ggplot2::geom_sf
#' @importFrom ggplot2 geom_sf_text
#' @export
ggplot2::geom_sf_text
#' @importFrom ggplot2 geom_sf_label
#' @export
ggplot2::geom_sf_label
#' @impo... | /R/reexport.R | permissive | elipousson/maplayer | R | false | false | 715 | r | #' @importFrom ggplot2 ggplot
#' @export
ggplot2::ggplot
#' @importFrom ggplot2 aes
#' @export
ggplot2::aes
#' @importFrom ggplot2 geom_sf
#' @export
ggplot2::geom_sf
#' @importFrom ggplot2 geom_sf_text
#' @export
ggplot2::geom_sf_text
#' @importFrom ggplot2 geom_sf_label
#' @export
ggplot2::geom_sf_label
#' @impo... |
listOrganisms <- function() {
handle = new_handle()
handle_setheaders(handle, "User-Agent" = "r/rwikipathways")
handle_setheaders(handle, "Accept" = "application/json")
url = paste("https://webservice.wikipathways.org/listOrganisms?format=json", sep="")
conn <- curl::curl(url, handle, open="r")
txt <- read... | /rWikiPathways/R/listOrganisms.R | permissive | AlexanderPico/rwikipathways | R | false | false | 393 | r | listOrganisms <- function() {
handle = new_handle()
handle_setheaders(handle, "User-Agent" = "r/rwikipathways")
handle_setheaders(handle, "Accept" = "application/json")
url = paste("https://webservice.wikipathways.org/listOrganisms?format=json", sep="")
conn <- curl::curl(url, handle, open="r")
txt <- read... |
source("euler/R/primes.R")
compute <- function() {
for (prime in rev(prime_numbers(7654321))) {
digits <- sort(unique(intToUtf8(utf8ToInt(as.character(prime)), multiple = TRUE)))
if (all(digits == seq_along(digits))) return(prime)
}
} | /problems/0041/compute.R | permissive | Dynortice/Project-Euler | R | false | false | 259 | r | source("euler/R/primes.R")
compute <- function() {
for (prime in rev(prime_numbers(7654321))) {
digits <- sort(unique(intToUtf8(utf8ToInt(as.character(prime)), multiple = TRUE)))
if (all(digits == seq_along(digits))) return(prime)
}
} |
\name{weibull_compet}
\alias{weibull_compet}
\title{Sample event times from a Weibull distribution with competing risks}
\usage{
weibull_compet(lambda0, p, cens_time, X_1 = NULL,
beta_1 = NULL, X_2 = NULL, beta_2 = NULL)
}
\arguments{
\item{lambda0}{vector of length 2 containing the rate
parameters for the ba... | /man/weibull_compet.Rd | permissive | dcmuller/randsurv | R | false | false | 2,053 | rd | \name{weibull_compet}
\alias{weibull_compet}
\title{Sample event times from a Weibull distribution with competing risks}
\usage{
weibull_compet(lambda0, p, cens_time, X_1 = NULL,
beta_1 = NULL, X_2 = NULL, beta_2 = NULL)
}
\arguments{
\item{lambda0}{vector of length 2 containing the rate
parameters for the ba... |
context("clust.pam")
skip_if_not_installed("clue")
test_that("autotest", {
learner = mlr3::lrn("clust.pam")
expect_learner(learner)
result = run_autotest(learner)
expect_true(result, info = result$error)
})
test_that("Learner properties are respected", {
task = tsk("usarrests")
learner = mlr_learners$g... | /tests/testthat/test_mlr_learners_clust_pam.R | no_license | mlr-org/mlr3cluster | R | false | false | 912 | r | context("clust.pam")
skip_if_not_installed("clue")
test_that("autotest", {
learner = mlr3::lrn("clust.pam")
expect_learner(learner)
result = run_autotest(learner)
expect_true(result, info = result$error)
})
test_that("Learner properties are respected", {
task = tsk("usarrests")
learner = mlr_learners$g... |
library(data.table)
library(shiny)
shinyUI(fluidPage(
textAreaInput("text", label = h3("Type a message"), value = " ", width='100%', height='100%'),
uiOutput('suggest1'),
uiOutput('suggest2'),
uiOutput('suggest3')
))
| /RShinyApp/ui.R | no_license | rumbaugh/NextWordPredict | R | false | false | 236 | r |
library(data.table)
library(shiny)
shinyUI(fluidPage(
textAreaInput("text", label = h3("Type a message"), value = " ", width='100%', height='100%'),
uiOutput('suggest1'),
uiOutput('suggest2'),
uiOutput('suggest3')
))
|
context("rmd test")
test_that("test juliacall in rmd", {
skip_on_cran()
skip_on_appveyor()
tmp <- tempfile(fileext = ".md")
rmarkdown::render(test_path("Rmd_test.Rmd"), output_file = tmp)
expect_true(file.exists(tmp))
r <- paste(readLines(tmp), collapse = "\n")
r1 <- paste(readLines(test_p... | /tests/testthat/test_rmd.R | permissive | Non-Contradiction/JuliaCall | R | false | false | 388 | r | context("rmd test")
test_that("test juliacall in rmd", {
skip_on_cran()
skip_on_appveyor()
tmp <- tempfile(fileext = ".md")
rmarkdown::render(test_path("Rmd_test.Rmd"), output_file = tmp)
expect_true(file.exists(tmp))
r <- paste(readLines(tmp), collapse = "\n")
r1 <- paste(readLines(test_p... |
#' @title Apply a transformation to the exposure of an ExposomeSet
#'
#' @param Set `character` Exposomeset on the server which exposures will be transformed
#' @param exposure `character` Name of the exposure to be transformed
#' @param method `character` Function to be applied to the exposure
#' @param new.obj `chara... | /R/ds.transform.R | permissive | isglobal-brge/dsExposomeClient | R | false | false | 1,183 | r | #' @title Apply a transformation to the exposure of an ExposomeSet
#'
#' @param Set `character` Exposomeset on the server which exposures will be transformed
#' @param exposure `character` Name of the exposure to be transformed
#' @param method `character` Function to be applied to the exposure
#' @param new.obj `chara... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
invx <- NULL
set <- function(y){
x <<- y
invx <<- NULL
}
get <- function() x
setinverse <- function(... | /cachematrix.R | no_license | mandy13/ProgrammingAssignment2 | R | false | false | 844 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
invx <- NULL
set <- function(y){
x <<- y
invx <<- NULL
}
get <- function() x
setinverse <- function(... |
indicVarCols <- function(obj) {
cols <- ptycho.cols(obj)
grep("^indic.var", cols)
}
indicGrpCols <- function(obj) {
cols <- ptycho.cols(obj)
grep("^indic.grp", cols)
}
ptycho.cols <- function(z) {
if (inherits(z, "mcmc.list")) {
colnames(z[[1]])
} else if (is.numeric(z)) {
if (is.null(dim(z))) nam... | /ptycho/R/proc.R | no_license | ingted/R-Examples | R | false | false | 3,003 | r | indicVarCols <- function(obj) {
cols <- ptycho.cols(obj)
grep("^indic.var", cols)
}
indicGrpCols <- function(obj) {
cols <- ptycho.cols(obj)
grep("^indic.grp", cols)
}
ptycho.cols <- function(z) {
if (inherits(z, "mcmc.list")) {
colnames(z[[1]])
} else if (is.numeric(z)) {
if (is.null(dim(z))) nam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table10_13.R
\docType{data}
\name{Table10_13}
\alias{Table10_13}
\title{Table 10_13}
\format{
\itemize{
\item \strong{Year}
\item \strong{CPI: }Consumer Price Index
\item \strong{GDP: }Gross domestic product
\item \strong{Imports}
}
}
\usage{... | /man/Table10_13.Rd | no_license | brunoruas2/gujarati | R | false | true | 533 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table10_13.R
\docType{data}
\name{Table10_13}
\alias{Table10_13}
\title{Table 10_13}
\format{
\itemize{
\item \strong{Year}
\item \strong{CPI: }Consumer Price Index
\item \strong{GDP: }Gross domestic product
\item \strong{Imports}
}
}
\usage{... |
createTrainset <- function(varcatalog){
data <- data.frame()
for (i in 1:nrow(varcatalog)){
print(paste("Computing object ", i, " of ", nrow(varcatalog), ".", sep = ""))
object <- try(sclc(as.numeric(as.vector(varcatalog$RA))[i], as.numeric(as.vector(varcatalog$DEC))[i], radii = 0.1,... | /createTrainset.R | no_license | P-R-McWhirter/skycamT_variable_classification_functions | R | false | false | 4,352 | r | createTrainset <- function(varcatalog){
data <- data.frame()
for (i in 1:nrow(varcatalog)){
print(paste("Computing object ", i, " of ", nrow(varcatalog), ".", sep = ""))
object <- try(sclc(as.numeric(as.vector(varcatalog$RA))[i], as.numeric(as.vector(varcatalog$DEC))[i], radii = 0.1,... |
rm(list = objects())
# plot ROC curves
library(plotROC)
library(ggplot2)
library("gridExtra")
library(rlist)
library("grid")
# Multiple plot function
#
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: Number of columns in layout
# - layout: A matrix specifying the layout... | /ACOI_ROCggplot.R | no_license | MarrSue/acoi-featureselection | R | false | false | 8,027 | r | rm(list = objects())
# plot ROC curves
library(plotROC)
library(ggplot2)
library("gridExtra")
library(rlist)
library("grid")
# Multiple plot function
#
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: Number of columns in layout
# - layout: A matrix specifying the layout... |
#' Add comma to vectors
#' @param ... Argument passed to paste0
#' @export
pastecomma=function(...){
paste(...,sep=",")
}
#'Make a density plot with histogram
#' @param data a data.frame
#' @param mapping Set of aesthetic mappings created by aes or aes_.
#' @param linecolor Color of density curve
#' @param ad... | /R/ggDensity.R | no_license | Deerluluolivia/ggiraphExtra | R | false | false | 4,685 | r | #' Add comma to vectors
#' @param ... Argument passed to paste0
#' @export
pastecomma=function(...){
paste(...,sep=",")
}
#'Make a density plot with histogram
#' @param data a data.frame
#' @param mapping Set of aesthetic mappings created by aes or aes_.
#' @param linecolor Color of density curve
#' @param ad... |
setGeneric("equalProj", function(x){standardGeneric("equalProj")})
setMethod("equalProj",
signature=c(x="list"),
definition=function(x){
if(all(is.na(unlist(lapply(x, proj4string)))))
{
return(T)
}else{
if(length(x)==1){
return(T)}else{
return(all(unlist(lapply(x[-1]... | /R/equalProj.R | no_license | guzhongru/move | R | false | false | 1,526 | r | setGeneric("equalProj", function(x){standardGeneric("equalProj")})
setMethod("equalProj",
signature=c(x="list"),
definition=function(x){
if(all(is.na(unlist(lapply(x, proj4string)))))
{
return(T)
}else{
if(length(x)==1){
return(T)}else{
return(all(unlist(lapply(x[-1]... |
rm(list=ls())
#usage of for-loop
x<-c(3,1,-4,5,2,7,-3)
a<-c('sudha','anand','maha')
b<-0
for (i in c(1:length(a)))
b[i]<-a[i]
y<-0
k<-1
for (i in c(1:length(x))) #by index
{
if (x[i]>0)
{
y[k]<-x[i]
k<-k+1
}
}
print(y)
y[i]<-x[i]+100
for (dat in x) #by value
print(dat+100)
... | /day1_forloop.R | no_license | PaulSaikat/R-Programming | R | false | false | 675 | r | rm(list=ls())
#usage of for-loop
x<-c(3,1,-4,5,2,7,-3)
a<-c('sudha','anand','maha')
b<-0
for (i in c(1:length(a)))
b[i]<-a[i]
y<-0
k<-1
for (i in c(1:length(x))) #by index
{
if (x[i]>0)
{
y[k]<-x[i]
k<-k+1
}
}
print(y)
y[i]<-x[i]+100
for (dat in x) #by value
print(dat+100)
... |
fl <- system.file("extdata", "goslim_plant.obo", package="GSEABase")
obo <- getOBOCollection(fl)
test_obo_OBOCollection <- function() {
obj <- OBOCollection()
checkTrue(validObject(obj))
checkEquals(c(0,3), dim(GSEABase:::.kv(obj)))
checkEquals(c(0,1), dim(GSEABase:::.stanza(obj)))
checkEquals(c(0,... | /libs/GSEABase/unitTests/test_OBOCollection.R | no_license | mpg-age-bioinformatics/shiny-david | R | false | false | 3,555 | r | fl <- system.file("extdata", "goslim_plant.obo", package="GSEABase")
obo <- getOBOCollection(fl)
test_obo_OBOCollection <- function() {
obj <- OBOCollection()
checkTrue(validObject(obj))
checkEquals(c(0,3), dim(GSEABase:::.kv(obj)))
checkEquals(c(0,1), dim(GSEABase:::.stanza(obj)))
checkEquals(c(0,... |
library(measures)
### Name: RMSE
### Title: Root mean squared error
### Aliases: RMSE
### ** Examples
n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
RMSE(truth, response)
| /data/genthat_extracted_code/measures/examples/RMSE.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 189 | r | library(measures)
### Name: RMSE
### Title: Root mean squared error
### Aliases: RMSE
### ** Examples
n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
RMSE(truth, response)
|
# script written by Ted Hart
# Count the number of individuals of each species in a data file
#
# Input file format:
#
# 2013-03-22 bluejay 5
# 2013-03-22 mallard 9
# 2013-03-21 robin 1
# 2013-03-20 robin 30
#
# columns are separated by spaces.
### Read in command line arguments
args <- commandArgs(trailingOnly = TRU... | /species_counts.R | no_license | stivnhall/species_count | R | false | false | 1,064 | r | # script written by Ted Hart
# Count the number of individuals of each species in a data file
#
# Input file format:
#
# 2013-03-22 bluejay 5
# 2013-03-22 mallard 9
# 2013-03-21 robin 1
# 2013-03-20 robin 30
#
# columns are separated by spaces.
### Read in command line arguments
args <- commandArgs(trailingOnly = TRU... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Package.R
\docType{package}
\name{dementiaSunday2}
\alias{dementiaSunday2}
\alias{dementiaSunday2-package}
\title{dementiaSunday2}
\description{
dementiaSunday2
}
| /OhdsiDataThonKorea2019/Studies/dementiaSunday2/man/dementiaSunday2.Rd | permissive | ohdsi-korea/OhdsiKoreaTutorials | R | false | true | 241 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Package.R
\docType{package}
\name{dementiaSunday2}
\alias{dementiaSunday2}
\alias{dementiaSunday2-package}
\title{dementiaSunday2}
\description{
dementiaSunday2
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subscript-groups-panel-function-demo-function.R
\name{panel.function.demo}
\alias{panel.function.demo}
\title{Demonstration of how to write a panel function (subscripts and groups)}
\usage{
require(grid)
require(lattice)
pp <- panel.functio... | /man/panel.function.demo.Rd | no_license | claus-e-andersen/clanLattice | R | false | true | 1,219 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subscript-groups-panel-function-demo-function.R
\name{panel.function.demo}
\alias{panel.function.demo}
\title{Demonstration of how to write a panel function (subscripts and groups)}
\usage{
require(grid)
require(lattice)
pp <- panel.functio... |
########################## PLOT5 ##########################
# How have emissions from motor vehicle sources changed
# from 1999–2008 in Baltimore City?
######################### IMPORTS #########################
library(dplyr)
library(ggplot2)
p <- "/home/rogelio/Desktop/datasciencecoursera/"
ath <- "data/eda_fina... | /plot5.R | no_license | rrogerr/exploratory_data_analysis_final_project | R | false | false | 1,551 | r | ########################## PLOT5 ##########################
# How have emissions from motor vehicle sources changed
# from 1999–2008 in Baltimore City?
######################### IMPORTS #########################
library(dplyr)
library(ggplot2)
p <- "/home/rogelio/Desktop/datasciencecoursera/"
ath <- "data/eda_fina... |
getwd()
setwd('/Users/Deweesd/Desktop/ANOVA_MODEL/')
getwd()
library(ggplot2)
library(ggpubr)
library(dplyr)
library(corrplot)
library("Hmisc")
library(gridExtra)
library(grid)
data_frame <- data_frame[-c(13:16),] # remove last 4 rows from df
## Read in files ##
data_frame <- read.csv("./Correlation_DF_Matrix.csv")
... | /R_Scripts/Correlation_matrix_script.R | no_license | deweesd/Matlab-R_UW_Image_Processing | R | false | false | 7,794 | r | getwd()
setwd('/Users/Deweesd/Desktop/ANOVA_MODEL/')
getwd()
library(ggplot2)
library(ggpubr)
library(dplyr)
library(corrplot)
library("Hmisc")
library(gridExtra)
library(grid)
data_frame <- data_frame[-c(13:16),] # remove last 4 rows from df
## Read in files ##
data_frame <- read.csv("./Correlation_DF_Matrix.csv")
... |
hovorod_install <- function(){
open_mpi_url <- "https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.0.tar.gz"
system2()
shell$ gunzip -c openmpi-4.0.1.tar.gz | tar xf -
shell$ cd openmpi-4.0.1
shell$ ./configure --prefix=/usr/local
<...lots of output...>
shell$ make all install
... | /hovorod_install.R | no_license | samuelmacedo83/horovod | R | false | false | 321 | r | hovorod_install <- function(){
open_mpi_url <- "https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.0.tar.gz"
system2()
shell$ gunzip -c openmpi-4.0.1.tar.gz | tar xf -
shell$ cd openmpi-4.0.1
shell$ ./configure --prefix=/usr/local
<...lots of output...>
shell$ make all install
... |
\name{missMethylnews}
\title{missMethyl News}
\encoding{UTF-8}
\section{Version 1.15.2}{\itemize{
\item Updated gsameth to take into account that some CpGs map to multiple genes. For a small number of gene families, this previously caused their associated GO categories/gene sets to be erroneously overrepresented and ... | /inst/NEWS.Rd | no_license | ChuanJ/test | R | false | false | 2,877 | rd | \name{missMethylnews}
\title{missMethyl News}
\encoding{UTF-8}
\section{Version 1.15.2}{\itemize{
\item Updated gsameth to take into account that some CpGs map to multiple genes. For a small number of gene families, this previously caused their associated GO categories/gene sets to be erroneously overrepresented and ... |
source("~/code/R/misc_R_scripts/prop_error/binary_operations.R")
plot_nd_kaon <- function(datfile) {
require("RColorBrewer")
clrs <- brewer.pal(n=9,name="Set1")
nd_kaon <- read.table(header=TRUE,file=datfile,stringsAsFactors=FALSE)
print(nd_kaon)
mpi <- data.frame(val=nd_kaon$mpi,dval=nd_kaon$dmpi)
mK <- d... | /plotutils/plot_nd_kaon.R | no_license | kostrzewa/misc_R_scripts | R | false | false | 1,345 | r | source("~/code/R/misc_R_scripts/prop_error/binary_operations.R")
plot_nd_kaon <- function(datfile) {
require("RColorBrewer")
clrs <- brewer.pal(n=9,name="Set1")
nd_kaon <- read.table(header=TRUE,file=datfile,stringsAsFactors=FALSE)
print(nd_kaon)
mpi <- data.frame(val=nd_kaon$mpi,dval=nd_kaon$dmpi)
mK <- d... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
data(mtcars)
# define server logic for rendering plot
shinyServer(func... | /server.R | no_license | merrill-asp/ShinyApp | R | false | false | 1,573 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
data(mtcars)
# define server logic for rendering plot
shinyServer(func... |
testlist <- list(type = 0L, z = 1.50195956335739e-321)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609891824-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 108 | r | testlist <- list(type = 0L, z = 1.50195956335739e-321)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
#to load the data
file<-"household_power_consumption.txt"
data<-read.table(file,header=TRUE,sep = ";",colClasses=c("character","character",rep("numeric",7)),na = "?")
attach(data)
##taking required data for 2 dates
subset<-Date=="1/2/2007"|Date=="2/2/2007"
reqData<-data[subset,]
attach(reqData)
p<-paste(Date, Time)
req... | /load.R | no_license | TSadhu/ExData_Plotting1 | R | false | false | 419 | r | #to load the data
file<-"household_power_consumption.txt"
data<-read.table(file,header=TRUE,sep = ";",colClasses=c("character","character",rep("numeric",7)),na = "?")
attach(data)
##taking required data for 2 dates
subset<-Date=="1/2/2007"|Date=="2/2/2007"
reqData<-data[subset,]
attach(reqData)
p<-paste(Date, Time)
req... |
GRAY1 = "#231F20"
GRAY2 = "#414040"
GRAY3 = "#555655"
GRAY4 = "#646369"
GRAY5 = "#76787B"
GRAY6 = "#828282"
GRAY7 = "#929497"
GRAY8 = "#A6A6A5"
GRAY9 = "#BFBEBE"
BLUE1 = "#174A7E"
BLUE2 = "#4A81BF"
BLUE3 = "#94B2D7"
BLUE4 = "#94AFC5"
BLUE5 = "#22435e"
BLUE6 = "#95B3D7"
RED1 = "#C3514E"
RED2 = "#E6BAB7"
RED3 = "#800000"... | /theme.r | no_license | miumer/ut_andmeviz | R | false | false | 1,482 | r | GRAY1 = "#231F20"
GRAY2 = "#414040"
GRAY3 = "#555655"
GRAY4 = "#646369"
GRAY5 = "#76787B"
GRAY6 = "#828282"
GRAY7 = "#929497"
GRAY8 = "#A6A6A5"
GRAY9 = "#BFBEBE"
BLUE1 = "#174A7E"
BLUE2 = "#4A81BF"
BLUE3 = "#94B2D7"
BLUE4 = "#94AFC5"
BLUE5 = "#22435e"
BLUE6 = "#95B3D7"
RED1 = "#C3514E"
RED2 = "#E6BAB7"
RED3 = "#800000"... |
\alias{gtkCellRendererProgressNew}
\name{gtkCellRendererProgressNew}
\title{gtkCellRendererProgressNew}
\description{Creates a new \code{\link{GtkCellRendererProgress}}.}
\usage{gtkCellRendererProgressNew()}
\details{Since 2.6}
\value{[\code{\link{GtkCellRenderer}}] the new cell renderer}
\author{Derived by RGtkGen fro... | /RGtk2/man/gtkCellRendererProgressNew.Rd | no_license | lawremi/RGtk2 | R | false | false | 361 | rd | \alias{gtkCellRendererProgressNew}
\name{gtkCellRendererProgressNew}
\title{gtkCellRendererProgressNew}
\description{Creates a new \code{\link{GtkCellRendererProgress}}.}
\usage{gtkCellRendererProgressNew()}
\details{Since 2.6}
\value{[\code{\link{GtkCellRenderer}}] the new cell renderer}
\author{Derived by RGtkGen fro... |
library(data.table)
library(readxl)
library(BSgenome.Mmusculus.UCSC.mm9)
library(BSgenome.Mmusculus.UCSC.mm10)
library(ggseqlogo)
library(regioneR)
#input sleeping beauty vs piggy bac
cuSCC<-as.data.frame(read_xlsx("/s/project/transposon/Output/Snakemake/Input/cusc.xlsx"))
#specify genome
genome=BSgenome.Mmusculus.UC... | /Scripts/insertionFiles (for manual usage)/format_insertion_table_cuSCC.R | permissive | gagneurlab/transmicron | R | false | false | 1,883 | r | library(data.table)
library(readxl)
library(BSgenome.Mmusculus.UCSC.mm9)
library(BSgenome.Mmusculus.UCSC.mm10)
library(ggseqlogo)
library(regioneR)
#input sleeping beauty vs piggy bac
cuSCC<-as.data.frame(read_xlsx("/s/project/transposon/Output/Snakemake/Input/cusc.xlsx"))
#specify genome
genome=BSgenome.Mmusculus.UC... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/geom-abline.r, R/geom-hline.r, R/geom-vline.r
\name{geom_abline}
\alias{geom_abline}
\alias{geom_hline}
\alias{geom_vline}
\title{Lines: horizontal, vertical, and specified by slope and intercept.}
\usage{
geom_abline(mapping = NULL, ... | /man/geom_abline.Rd | no_license | bbolker/ggplot2 | R | false | false | 3,956 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/geom-abline.r, R/geom-hline.r, R/geom-vline.r
\name{geom_abline}
\alias{geom_abline}
\alias{geom_hline}
\alias{geom_vline}
\title{Lines: horizontal, vertical, and specified by slope and intercept.}
\usage{
geom_abline(mapping = NULL, ... |
# This script downloads tornado/hail/wind data from NOAA and converts it into tidy county format.
# Input: raw NOAA storms data and US counties shapefile
# Output: tidy county-wise exposure tables: tornado.csv, hail.csv, wind.csv
# Author: Matthew Kling
# libraries
library(dplyr)
library(rgdal)
library(raster)
librar... | /code/tornado_wind_hail.R | no_license | matthewkling/vortex | R | false | false | 4,698 | r | # This script downloads tornado/hail/wind data from NOAA and converts it into tidy county format.
# Input: raw NOAA storms data and US counties shapefile
# Output: tidy county-wise exposure tables: tornado.csv, hail.csv, wind.csv
# Author: Matthew Kling
# libraries
library(dplyr)
library(rgdal)
library(raster)
librar... |
##########################################################################################
# Generate plots
#
# - data set: BCR-XL-sim
# - plot type: pAUC values
# - method: diffcyt methods (combined)
#
# - supplementary results: varying clustering resolution
#
# Lukas Weber, May 2019
###############################... | /BCR_XL_sim/3_generate_plots/supp_clustering_resolution/plots_BCR_XL_sim_diffcyt_clustering_resolution_combined.R | permissive | lmweber/diffcyt-evaluations | R | false | false | 9,372 | r | ##########################################################################################
# Generate plots
#
# - data set: BCR-XL-sim
# - plot type: pAUC values
# - method: diffcyt methods (combined)
#
# - supplementary results: varying clustering resolution
#
# Lukas Weber, May 2019
###############################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_man_get_recode.r
\name{data_man_get_recode}
\alias{data_man_get_recode}
\title{Show \code{data_man} recodings}
\usage{
data_man_get_recode(container, file = "", lab.prefix = "tab:recode_",
where = "htb", clearpage = NULL, ...)
}
\argum... | /man/data_man_get_recode.Rd | no_license | renlund/dataman | R | false | true | 816 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_man_get_recode.r
\name{data_man_get_recode}
\alias{data_man_get_recode}
\title{Show \code{data_man} recodings}
\usage{
data_man_get_recode(container, file = "", lab.prefix = "tab:recode_",
where = "htb", clearpage = NULL, ...)
}
\argum... |
# Project:
# Links:
# Description:
#
# Data flow
# See config.json for data folder (i.e., config['path_data']).
# Input: files in config['input*'] folders from config.json.
# Output: files in config['output'] and config['output_pd'] folders from config.json.
# Preliminary processing
# RUN THIS CODE IN ... | /folders-code-templates/code/0-make-processed-data/0.1-make-processed-data.R | no_license | ericjdaza/ejdtools | R | false | false | 1,460 | r | # Project:
# Links:
# Description:
#
# Data flow
# See config.json for data folder (i.e., config['path_data']).
# Input: files in config['input*'] folders from config.json.
# Output: files in config['output'] and config['output_pd'] folders from config.json.
# Preliminary processing
# RUN THIS CODE IN ... |
#' @title ggpairsModuleUI1: Variable selection module UI for ggpairs
#' @description Variable selection module UI for ggpairs
#' @param id id
#' @return Variable selection module UI for ggpairs
#' @details Variable selection module UI for ggpairs
#' @examples
#' library(shiny);library(DT);library(data.table);library(j... | /R/ggpairs.R | permissive | AGSCL/jsmodule | R | false | false | 22,226 | r |
#' @title ggpairsModuleUI1: Variable selection module UI for ggpairs
#' @description Variable selection module UI for ggpairs
#' @param id id
#' @return Variable selection module UI for ggpairs
#' @details Variable selection module UI for ggpairs
#' @examples
#' library(shiny);library(DT);library(data.table);library(j... |
library(glmnet)
mydata = read.table("./TrainingSet/Correlation/oesophagus.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.6,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/oesophagus/oesophagus... | /Model/EN/Correlation/oesophagus/oesophagus_066.R | no_license | leon1003/QSMART | R | false | false | 372 | r | library(glmnet)
mydata = read.table("./TrainingSet/Correlation/oesophagus.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.6,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/oesophagus/oesophagus... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BCOPStrain.R
\name{BCOPS.train}
\alias{BCOPS.train}
\title{Training BCOPs score functions with a user-specified classifier}
\usage{
BCOPS.train(classifier, x, y, labels, xte, formula = FALSE, ...)
}
\arguments{
\item{classifier}{a user-specif... | /bcops/man/BCOPS.train.Rd | no_license | LeyingGuan/BCOPS | R | false | true | 2,439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BCOPStrain.R
\name{BCOPS.train}
\alias{BCOPS.train}
\title{Training BCOPs score functions with a user-specified classifier}
\usage{
BCOPS.train(classifier, x, y, labels, xte, formula = FALSE, ...)
}
\arguments{
\item{classifier}{a user-specif... |
#' Posterior Inclusion Probabilities (PIP)
#'
#' A dataset containing the posterior inclusion probabilities of 40 variables
#'
#' @format A numeric vector including 40 PIP values
"L_mean"
| /BDMMA_MacOS/R/L_mean.R | no_license | DAIZHENWEI/BDMMA | R | false | false | 194 | r | #' Posterior Inclusion Probabilities (PIP)
#'
#' A dataset containing the posterior inclusion probabilities of 40 variables
#'
#' @format A numeric vector including 40 PIP values
"L_mean"
|
testlist <- list(b = -7681L)
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613103965-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 95 | r | testlist <- list(b = -7681L)
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
#' Crawl Data
#'
#' Crawl John Hopkin's data and store in database.
#' Every time the function is called the entirety of
#' the data is pulled and the content of the database
#' is overwritten.
#'
#' @export
crawl_coronavirus <- function(){
con <- NULL
if(file.exists(config_file)){
con <- connect()
}
... | /R/crawl.R | permissive | tongni1975/coronavirus | R | false | false | 3,464 | r | #' Crawl Data
#'
#' Crawl John Hopkin's data and store in database.
#' Every time the function is called the entirety of
#' the data is pulled and the content of the database
#' is overwritten.
#'
#' @export
crawl_coronavirus <- function(){
con <- NULL
if(file.exists(config_file)){
con <- connect()
}
... |
library(MetStaT)
### Name: ASCA.Plot
### Title: Plot ASCA results
### Aliases: ASCA.Plot
### Keywords: ASCA PCA
### ** Examples
##Plot the results after doing ASCA.Calculate
## use the data matrix, 'data', and an experimental design matrix, 'F'.
data(ASCAdata)
ASCA <- ASCA.Calculate(ASCAX, ASCAF, equation.elements ... | /data/genthat_extracted_code/MetStaT/examples/ASCA.Plot.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 467 | r | library(MetStaT)
### Name: ASCA.Plot
### Title: Plot ASCA results
### Aliases: ASCA.Plot
### Keywords: ASCA PCA
### ** Examples
##Plot the results after doing ASCA.Calculate
## use the data matrix, 'data', and an experimental design matrix, 'F'.
data(ASCAdata)
ASCA <- ASCA.Calculate(ASCAX, ASCAF, equation.elements ... |
update_functions <- function() {
old.wd <- getwd()
setwd("functions")
sapply(list.files(), source)
setwd(old.wd)
}
update_functions()
df <- load_wide_map_data()
df <- subset(df, map.grade %in% numeric.grades)
df <- subset(df, subject %in% c("reading", "math"))
df <- add_growth_columns_to_spring(df)
df$grade <- df... | /R/rit growth gap boxplots.r | no_license | amcox/map | R | false | false | 3,385 | r | update_functions <- function() {
old.wd <- getwd()
setwd("functions")
sapply(list.files(), source)
setwd(old.wd)
}
update_functions()
df <- load_wide_map_data()
df <- subset(df, map.grade %in% numeric.grades)
df <- subset(df, subject %in% c("reading", "math"))
df <- add_growth_columns_to_spring(df)
df$grade <- df... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_id.R
\name{matched_id}
\alias{matched_id}
\title{This function identity the flybase ID, CG_ID or genesymbol}
\usage{
matched_id(input_ids)
}
\arguments{
\item{input_ids}{a vector contains either flybase ID, CG_ID or genesymbol; can be m... | /man/matched_id.Rd | no_license | YunlongNie/flyfuns | R | false | true | 517 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_id.R
\name{matched_id}
\alias{matched_id}
\title{This function identity the flybase ID, CG_ID or genesymbol}
\usage{
matched_id(input_ids)
}
\arguments{
\item{input_ids}{a vector contains either flybase ID, CG_ID or genesymbol; can be m... |
library(grid)
library(gridExtra)
library(ggplot2)
library(reshape2)
library(patchwork)
###Function#########################
cluster_plot<-function(df, titlename, line){
g <- ggplot(df, aes(y=value,x=as.numeric(variable), colour=Genes)) +geom_line(size=0.1) + theme_bw() +
ylab("tpm") + xlab("dpi") + theme(legend... | /Differential_expression/Scripts/coexpression-clusters-clust.R | no_license | pilarcormo/Wheat-response-PST | R | false | false | 2,924 | r |
library(grid)
library(gridExtra)
library(ggplot2)
library(reshape2)
library(patchwork)
###Function#########################
cluster_plot<-function(df, titlename, line){
g <- ggplot(df, aes(y=value,x=as.numeric(variable), colour=Genes)) +geom_line(size=0.1) + theme_bw() +
ylab("tpm") + xlab("dpi") + theme(legend... |
library(QuantumOps)
### Name: tensor
### Title: tensor
### Aliases: tensor
### ** Examples
tensor(ket(1,0),ket(0,1),ket(1,0),ket(1,0))
tensor(ket(1,1,1,1),ket(1,0,0,1))
tensor(X(),I())
tensor(H(),H(),H())
| /data/genthat_extracted_code/QuantumOps/examples/tensor.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 216 | r | library(QuantumOps)
### Name: tensor
### Title: tensor
### Aliases: tensor
### ** Examples
tensor(ket(1,0),ket(0,1),ket(1,0),ket(1,0))
tensor(ket(1,1,1,1),ket(1,0,0,1))
tensor(X(),I())
tensor(H(),H(),H())
|
#'---
#'output:
#' pdf_document:
#' number_sections: true
#' toc: true
#' toc_depth: 2
#' keep_tex: true
#'title: "mbg models with country year"
#'author: Tim Lucas
#'fontsize: 8pt
#'geometry: margin=0.5in
#'---
#+ defs
name <- 'mbg_country_year'
#' A fairly standard set of covariates
#' Monthly data.
... | /models/mbg_country_year/mbg_country_year.R | no_license | timcdlucas/big_malaria_mapping_methods_comparison | R | false | false | 5,247 | r | #'---
#'output:
#' pdf_document:
#' number_sections: true
#' toc: true
#' toc_depth: 2
#' keep_tex: true
#'title: "mbg models with country year"
#'author: Tim Lucas
#'fontsize: 8pt
#'geometry: margin=0.5in
#'---
#+ defs
name <- 'mbg_country_year'
#' A fairly standard set of covariates
#' Monthly data.
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ee_as_sf.R
\name{ee_as_sf}
\alias{ee_as_sf}
\title{Convert an Earth Engine table in a sf object}
\usage{
ee_as_sf(
x,
dsn,
overwrite = TRUE,
crs = NULL,
via = "getInfo",
maxFeatures = 5000,
container = "rgee_backup",
selectors... | /man/ee_as_sf.Rd | permissive | westamine/rgee | R | false | true | 3,430 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ee_as_sf.R
\name{ee_as_sf}
\alias{ee_as_sf}
\title{Convert an Earth Engine table in a sf object}
\usage{
ee_as_sf(
x,
dsn,
overwrite = TRUE,
crs = NULL,
via = "getInfo",
maxFeatures = 5000,
container = "rgee_backup",
selectors... |
set.seed(1)
kernels <- c("gaussian", "epanechnikov", "rectangular",
"triangular", "biweight", "cosine", "optcosine")
N <- 1000
test_that("single column multivariate kernels = univariate kernels", {
skip_on_cran()
dat <- mtcars[, 1, drop = FALSE]
for (k in kernels) {
x <- ruvk(N, drop(da... | /data/genthat_extracted_code/kernelboot/tests/test_univar_vs_multivar.R | no_license | surayaaramli/typeRrh | R | false | false | 1,927 | r |
set.seed(1)
kernels <- c("gaussian", "epanechnikov", "rectangular",
"triangular", "biweight", "cosine", "optcosine")
N <- 1000
test_that("single column multivariate kernels = univariate kernels", {
skip_on_cran()
dat <- mtcars[, 1, drop = FALSE]
for (k in kernels) {
x <- ruvk(N, drop(da... |
library(testthat)
library(ROI)
library(ROI.plugin.clp)
testthat::test_check("ROI.plugin.clp")
| /data/genthat_extracted_code/ROI.plugin.clp/tests/testthat.R | no_license | surayaaramli/typeRrh | R | false | false | 100 | r | library(testthat)
library(ROI)
library(ROI.plugin.clp)
testthat::test_check("ROI.plugin.clp")
|
context("Test auxiliary summary functions")
test_that("test that aux_mean returns a value of type double, check that returned length = 1, and that the correct numerical value is calculated", {
expect_type(aux_mean(10, 0.35), 'double')
expect_length(aux_mean(10, 0.35), 1)
expect_equal(aux_mean(10, 0.35), 5)
})
te... | /binomial/testthat/test-summary.R | no_license | stat133-sp19/hw-stat133-ansonh84 | R | false | false | 1,483 | r | context("Test auxiliary summary functions")
test_that("test that aux_mean returns a value of type double, check that returned length = 1, and that the correct numerical value is calculated", {
expect_type(aux_mean(10, 0.35), 'double')
expect_length(aux_mean(10, 0.35), 1)
expect_equal(aux_mean(10, 0.35), 5)
})
te... |
/Scripts/Queuing_theory.R | no_license | FredysMD/Modeling-and-Simulation | R | false | false | 2,531 | r | ||
#' Plots the variable importance measures. Requires an input of a variable importance object
#' created from the function Variable.Importance.ITR.
#'
#' @param VI variable importance object from Variable.Importance.ITR. Required input.
#' @param filename name of destination file. Defaults to NULL.
#' @param hori... | /R/plot.VI.R | no_license | jinjinzhou/ITR.Forest | R | false | false | 1,194 | r | #' Plots the variable importance measures. Requires an input of a variable importance object
#' created from the function Variable.Importance.ITR.
#'
#' @param VI variable importance object from Variable.Importance.ITR. Required input.
#' @param filename name of destination file. Defaults to NULL.
#' @param hori... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{play}
\alias{play}
\title{Tell swirl to ignore console input for a while.}
\usage{
play()
}
\description{
It is sometimes useful to play around in the R console out of
curiosity or to solidify a concept. This command will cause
swirl to remain idle, allowing th... | /man/play.Rd | no_license | FlicAnderson/swirl | R | false | false | 679 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{play}
\alias{play}
\title{Tell swirl to ignore console input for a while.}
\usage{
play()
}
\description{
It is sometimes useful to play around in the R console out of
curiosity or to solidify a concept. This command will cause
swirl to remain idle, allowing th... |
#' Logistic regression table with odd ratios
#'
#' @param model A non-empty list containing one or more glm models
#' @param odd.ratio A logical value indicating whether you want odd ratios (TRUE)
#' instead of the usual log odds (FALSE).
#' @param ... further aguments passed to the stargazer function. See ?stargazer:... | /R/stargazer2.R | no_license | cimentadaj/cimentadaj | R | false | false | 1,639 | r | #' Logistic regression table with odd ratios
#'
#' @param model A non-empty list containing one or more glm models
#' @param odd.ratio A logical value indicating whether you want odd ratios (TRUE)
#' instead of the usual log odds (FALSE).
#' @param ... further aguments passed to the stargazer function. See ?stargazer:... |
#!/bin/R
library('qtl')
pop <- 'BRP'
source("/home/jmiller1/QTL_Map_Raw/ELR_final_map/CODE/control_file.R")
mpath <- '/home/jmiller1/QTL_Map_Raw/ELR_final_map'
################################################################################
## put chromosomes together
################################################... | /MAP2/04_BRP_fitQTL.R | no_license | jthmiller/QTL_remap | R | false | false | 3,640 | r | #!/bin/R
library('qtl')
pop <- 'BRP'
source("/home/jmiller1/QTL_Map_Raw/ELR_final_map/CODE/control_file.R")
mpath <- '/home/jmiller1/QTL_Map_Raw/ELR_final_map'
################################################################################
## put chromosomes together
################################################... |
# read in the file
powerdata <- read.csv("household_power_consumption.txt", sep = ";", stringsAsFactors=FALSE)
# classify as date so easy to filer
powerdata$Date <- as.Date(powerdata$Date, format="%d/%m/%Y")
# subsetted relevant dates
powerdated <- subset(powerdata, subset=(powerdata$Date >= "2007-02-01" & powerda... | /plot3code.R | no_license | clagett/Coursera-4DSS-EDA-P1 | R | false | false | 980 | r | # read in the file
powerdata <- read.csv("household_power_consumption.txt", sep = ";", stringsAsFactors=FALSE)
# classify as date so easy to filer
powerdata$Date <- as.Date(powerdata$Date, format="%d/%m/%Y")
# subsetted relevant dates
powerdated <- subset(powerdata, subset=(powerdata$Date >= "2007-02-01" & powerda... |
library(testthat)
library(loder)
test_check("loder")
| /tests/testthat.R | no_license | jonclayden/loder | R | false | false | 54 | r | library(testthat)
library(loder)
test_check("loder")
|
#####---------------------------------------------------------------------------
## multivariate normal offset ellipse/circle probabilities
#####---------------------------------------------------------------------------
## e characterizes the integration ellipsoid: (x-x0)' e (x-x0) < r^2 -> e = S^{-1}
## cdf
pm... | /shotGroups/R/mvnEll.R | no_license | ingted/R-Examples | R | false | false | 8,591 | r | #####---------------------------------------------------------------------------
## multivariate normal offset ellipse/circle probabilities
#####---------------------------------------------------------------------------
## e characterizes the integration ellipsoid: (x-x0)' e (x-x0) < r^2 -> e = S^{-1}
## cdf
pm... |
#' Utility function for pre-processing: prepare jags input data for FP model.
#'
#' @param dat A \code{data.frame} with columns study, treatment, t.start, t.end, n.event, n.risk.
#' @param ref.std A \code{character} of the reference study
#' @param nma.ref.trt A \code{character} of the reference treatment
#' @param mod... | /Rpackages/gemtcPlus/R/groupedTTE_fp_pre_proc.R | permissive | Diarmuid78/Global-HTA-Evidence-Open | R | false | false | 5,147 | r | #' Utility function for pre-processing: prepare jags input data for FP model.
#'
#' @param dat A \code{data.frame} with columns study, treatment, t.start, t.end, n.event, n.risk.
#' @param ref.std A \code{character} of the reference study
#' @param nma.ref.trt A \code{character} of the reference treatment
#' @param mod... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nearth.R
\name{read_nearth_raster}
\alias{read_nearth_raster}
\title{Read one raster data set using \code{raster::raster()}, \code{raster::stack()}
or \code{raster::brick()}}
\usage{
read_nearth_raster(filename, form = c("raster", "stack", "b... | /man/read_nearth_raster.Rd | no_license | BigelowLab/nearth | R | false | true | 808 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nearth.R
\name{read_nearth_raster}
\alias{read_nearth_raster}
\title{Read one raster data set using \code{raster::raster()}, \code{raster::stack()}
or \code{raster::brick()}}
\usage{
read_nearth_raster(filename, form = c("raster", "stack", "b... |
#' Normal Discriminant Function Approach for Estimating Odds Ratio with Exposure
#' Measured in Pools and Potentially Subject to Additive Normal Errors (Constant
#' Odds Ratio Version)
#'
#' Assumes exposure given covariates and outcome is a normal-errors linear
#' regression. Pooled exposure measurements can be assume... | /R/p_ndfa_constant.R | no_license | guhjy/pooling | R | false | false | 13,296 | r | #' Normal Discriminant Function Approach for Estimating Odds Ratio with Exposure
#' Measured in Pools and Potentially Subject to Additive Normal Errors (Constant
#' Odds Ratio Version)
#'
#' Assumes exposure given covariates and outcome is a normal-errors linear
#' regression. Pooled exposure measurements can be assume... |
library(sdmpredictors)
### Name: list_datasets
### Title: Lists the supported datasets
### Aliases: list_datasets
### ** Examples
list_datasets()
list_datasets(marine=TRUE)
list_datasets(terrestrial=TRUE)
| /data/genthat_extracted_code/sdmpredictors/examples/list_datasets.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 213 | r | library(sdmpredictors)
### Name: list_datasets
### Title: Lists the supported datasets
### Aliases: list_datasets
### ** Examples
list_datasets()
list_datasets(marine=TRUE)
list_datasets(terrestrial=TRUE)
|
with(aa74bc44577794dcfb0f2fc24014d4f49, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as... | /80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/aLI64rPLoupg5.R | no_license | ayanmanna8/test | R | false | false | 850 | r | with(aa74bc44577794dcfb0f2fc24014d4f49, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... | /meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615843774-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 2,232 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... |
#Script con las funciones generadoras de tablas y gráficas para la presentación del Comité de Riesgos
#@Author: JavierValverde
library(knitr)
library(odbc)
library(DBI)
library(expss)
library(dplyr)
library(formattable)
library(ggplot2)
library(ggrepel)
library(reshape)
library(htmltools)
library(webshot)
#Opciones de... | /Generador_tablas_y_graficas.R | no_license | jvalverderdz/InformesAutomatizados_Riesgos | R | false | false | 64,585 | r | #Script con las funciones generadoras de tablas y gráficas para la presentación del Comité de Riesgos
#@Author: JavierValverde
library(knitr)
library(odbc)
library(DBI)
library(expss)
library(dplyr)
library(formattable)
library(ggplot2)
library(ggrepel)
library(reshape)
library(htmltools)
library(webshot)
#Opciones de... |
## ----nomessages, echo = FALSE-------------------------------------------------
knitr::opts_chunk$set(
warning = FALSE,
message = FALSE,
fig.height = 5,
fig.width = 5
)
options(digits=4)
par(mar=c(3,3,1,1)+.1)
## -----------------------------------------------------------------------------
library(SimDesign)
... | /inst/doc/Saving-results.R | no_license | cran/SimDesign | R | false | false | 3,819 | r | ## ----nomessages, echo = FALSE-------------------------------------------------
knitr::opts_chunk$set(
warning = FALSE,
message = FALSE,
fig.height = 5,
fig.width = 5
)
options(digits=4)
par(mar=c(3,3,1,1)+.1)
## -----------------------------------------------------------------------------
library(SimDesign)
... |
############################# Facilitating ###############
# set the linguistic enviermnent
Sys.setlocale(category = "LC_ALL", locale = "english")
# set the working directory
setwd("C:/Users/micke/Documents/John Hopkins/Course 5/Week 2 Marrkdown/Assignment");
# Install the packages needed, if they are not... | /PA1_template.R | no_license | mickeykislev/RepData_PeerAssessment2 | R | false | false | 13,272 | r |
############################# Facilitating ###############
# set the linguistic enviermnent
Sys.setlocale(category = "LC_ALL", locale = "english")
# set the working directory
setwd("C:/Users/micke/Documents/John Hopkins/Course 5/Week 2 Marrkdown/Assignment");
# Install the packages needed, if they are not... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.lr.r
\name{test.lr}
\alias{test.lr}
\title{LR Test Statistic}
\usage{
test.lr(surv, cnsr, trt, stra = NULL, fparam = NULL)
}
\arguments{
\item{cnsr}{censoring variable: 1=censoring, 0=event}
\item{trt}{treatment varaible. Accepted value... | /man/test.lr.Rd | no_license | keaven/nphsim | R | false | true | 1,599 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.lr.r
\name{test.lr}
\alias{test.lr}
\title{LR Test Statistic}
\usage{
test.lr(surv, cnsr, trt, stra = NULL, fparam = NULL)
}
\arguments{
\item{cnsr}{censoring variable: 1=censoring, 0=event}
\item{trt}{treatment varaible. Accepted value... |
library(pdftools)
library(tiff)
library(tesseract)
dest <- "C:/Users/XXXX/YYY/ZZZ"
# make a vector of PDF file names
myfiles <- list.files(path = dest, pattern = ".pdf", full.names = TRUE)
sapply(myfiles, FUN = function(i){
file.rename(from = i, to = paste0(dirname(i), "\\", gsub(" ", "", basename(i))))
})
lapp... | /pdf_text.R | no_license | vijayrajmeena/pdf-text-via-tiff | R | false | false | 791 | r | library(pdftools)
library(tiff)
library(tesseract)
dest <- "C:/Users/XXXX/YYY/ZZZ"
# make a vector of PDF file names
myfiles <- list.files(path = dest, pattern = ".pdf", full.names = TRUE)
sapply(myfiles, FUN = function(i){
file.rename(from = i, to = paste0(dirname(i), "\\", gsub(" ", "", basename(i))))
})
lapp... |
source("Data_script.R")
library(datasets)
png("plot1.png", width = 480, height = 480)
hist(electric$Global_active_power, col = "red", xlab = "Global Active Power (kilowatts)", main = "Global Active Power")
dev.off() | /plot1.R | no_license | cznelson2005/Exploring-Data-Analysis | R | false | false | 217 | r | source("Data_script.R")
library(datasets)
png("plot1.png", width = 480, height = 480)
hist(electric$Global_active_power, col = "red", xlab = "Global Active Power (kilowatts)", main = "Global Active Power")
dev.off() |
require(tidyverse); require(magrittr)
setwd('//smb-main.ad.bcm.edu/genepi2/Old_genepi2/Jeremy/GOBACK/Datasets/Expanded_datasets/')
lookup.table <- readRDS('birth.defects.lookup.table.v20230119.rds')
# Compute variables for specific BDs and organ systems --------------------
#' Load birth defects codes.
bpa.subjects... | /data_cleaning_compute_birth_defect_variables.R | permissive | schrawj/GOBACK | R | false | false | 5,756 | r | require(tidyverse); require(magrittr)
setwd('//smb-main.ad.bcm.edu/genepi2/Old_genepi2/Jeremy/GOBACK/Datasets/Expanded_datasets/')
lookup.table <- readRDS('birth.defects.lookup.table.v20230119.rds')
# Compute variables for specific BDs and organ systems --------------------
#' Load birth defects codes.
bpa.subjects... |
library(simboot)
### Name: sbdiv
### Title: Perform simultaneous confidence intervals or adjusted p-values
### for the Shannon and the Simpson index.
### Aliases: sbdiv
### Keywords: htest
### ** Examples
## For plots of the datasets see the help files for the data sets.
## First dataset
data(predatGM)
## struc... | /data/genthat_extracted_code/simboot/examples/sbdiv.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,738 | r | library(simboot)
### Name: sbdiv
### Title: Perform simultaneous confidence intervals or adjusted p-values
### for the Shannon and the Simpson index.
### Aliases: sbdiv
### Keywords: htest
### ** Examples
## For plots of the datasets see the help files for the data sets.
## First dataset
data(predatGM)
## struc... |
#' Wrapper to the Fortran subroutines computing the log-likelihood
#'
#' Log-likelihood of hlme, lcmm, multlcmm, Jointlcmm and mpjlcmm models.
#' The argument's specification is not straightforward, so these functions are usually not directly used.
#'
#' @name loglik
#' @aliases loglik loglikhlme logliklcmm loglikmultl... | /R/loglik.R | no_license | CecileProust-Lima/lcmm | R | false | false | 16,029 | r | #' Wrapper to the Fortran subroutines computing the log-likelihood
#'
#' Log-likelihood of hlme, lcmm, multlcmm, Jointlcmm and mpjlcmm models.
#' The argument's specification is not straightforward, so these functions are usually not directly used.
#'
#' @name loglik
#' @aliases loglik loglikhlme logliklcmm loglikmultl... |
## The combination of the two functions will allow caching of matrix inverse
## avoiding the need to calculate it every time for the same matrix.
## Create a cached matrix from the provided matrix,
## and returns a list containing the available operations on the cached matrix.
## Use names() attribute on the returned ... | /cachematrix.R | no_license | manarhusrieh/ProgrammingAssignment2 | R | false | false | 1,125 | r | ## The combination of the two functions will allow caching of matrix inverse
## avoiding the need to calculate it every time for the same matrix.
## Create a cached matrix from the provided matrix,
## and returns a list containing the available operations on the cached matrix.
## Use names() attribute on the returned ... |
# This script reads in a file of energy consumption data and selects
# data for Feb 1st and 2nd of year 2007.
# It produces a png of 4 different plots of different data values
# over the two-day span
# read in data file and focus on the Feb 1 and 2 days
pc <- read.table("household_power_consumption.txt", sep=';'... | /plot4.R | no_license | chrisrector/ExData_Plotting1 | R | false | false | 1,860 | r | # This script reads in a file of energy consumption data and selects
# data for Feb 1st and 2nd of year 2007.
# It produces a png of 4 different plots of different data values
# over the two-day span
# read in data file and focus on the Feb 1 and 2 days
pc <- read.table("household_power_consumption.txt", sep=';'... |
# source: https://rpubs.com/joscani/unemployment_rate_spain
list.of.packages <- c("MicroDatosEs","rgdal", "lme4","RCurl", "dplyr", "sjPlot", "ggplot2", "broom", "classInt", "reshape2")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[, "Package"])]
if (length(new.packages))
install.packa... | /mapas-epa.R | no_license | raulacejo/codebox | R | false | false | 3,704 | r | # source: https://rpubs.com/joscani/unemployment_rate_spain
list.of.packages <- c("MicroDatosEs","rgdal", "lme4","RCurl", "dplyr", "sjPlot", "ggplot2", "broom", "classInt", "reshape2")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[, "Package"])]
if (length(new.packages))
install.packa... |
#For Random Forest and Decision tree model plots
library(RWeka)
library(party)
library(partykit)
library(sampling)
library(rpart)
library(rpart.plot)
library(pROC)
library(e1071)
library(corrplot)
library(class)
library(fpc)
library(kknn)
library(adabag)
library(gmodels)
library(boot)
library(stats)... | /Decision_tree&RandomForest_plots.R | no_license | ramswaroophk94/Customer-Churn-Analysis | R | false | false | 3,879 | r |
#For Random Forest and Decision tree model plots
library(RWeka)
library(party)
library(partykit)
library(sampling)
library(rpart)
library(rpart.plot)
library(pROC)
library(e1071)
library(corrplot)
library(class)
library(fpc)
library(kknn)
library(adabag)
library(gmodels)
library(boot)
library(stats)... |
# Improved function for binning in which you can set the width and number per bin
biomass_bin <- function(x, year, bin_width = 1, n_per_bin = 10) {
# Set the right year columns.
if (year == 23) {
x <- transform(x, biomass=biomass3, massprod=massprod23)
} else if (year == 12) {
x <- transform(x, biomass=b... | /code/exploratory/flexbinwidth.r | no_license | qdread/forestlight | R | false | false | 6,665 | r | # Improved function for binning in which you can set the width and number per bin
biomass_bin <- function(x, year, bin_width = 1, n_per_bin = 10) {
# Set the right year columns.
if (year == 23) {
x <- transform(x, biomass=biomass3, massprod=massprod23)
} else if (year == 12) {
x <- transform(x, biomass=b... |
#R Programming Task 2
---------------------------------------------
#1
#Object x <-1:15
#Construct a 5x3 matrix for the value of x.
x <- matrix(1:15, 5, 3) #matrix(num,row,col)
print(x)
---------------------------------------------
#2
#Write a program to generate the following 4x4 matrix
#0 0 0 0
#0 0 0 0
#0... | /Unit1/assignment_task_2.R | no_license | Ratanawan/Data-Science | R | false | false | 5,396 | r | #R Programming Task 2
---------------------------------------------
#1
#Object x <-1:15
#Construct a 5x3 matrix for the value of x.
x <- matrix(1:15, 5, 3) #matrix(num,row,col)
print(x)
---------------------------------------------
#2
#Write a program to generate the following 4x4 matrix
#0 0 0 0
#0 0 0 0
#0... |
####################################################################
#' Get API (JSON) and Transform into data.frame
#'
#' This function lets the user bring API data as JSON format and transform it
#' into data.frame. Designed initially for Hubspot but may work on other API
#'
#' @param url Character. API's URL
#' @... | /R/apis.R | no_license | TJPeng/lares | R | false | false | 838 | r | ####################################################################
#' Get API (JSON) and Transform into data.frame
#'
#' This function lets the user bring API data as JSON format and transform it
#' into data.frame. Designed initially for Hubspot but may work on other API
#'
#' @param url Character. API's URL
#' @... |
## -*- truncate-lines: t; fill-column: 65; comment-column: 50; -*-
xtContractValue <- function(quoted.price, coupon, do.round = TRUE) {
do.round <- if (do.round)
round
else
function(x, ignore)
x
yield <- 100 - quoted.price
i ... | /R/xtContractValue.R | no_license | ttmmghmm/NMOF | R | false | false | 455 | r | ## -*- truncate-lines: t; fill-column: 65; comment-column: 50; -*-
xtContractValue <- function(quoted.price, coupon, do.round = TRUE) {
do.round <- if (do.round)
round
else
function(x, ignore)
x
yield <- 100 - quoted.price
i ... |
library(readxl)
library(ggplot2)
library(sf)
library(rnaturalearth)
library(ggmap)
library(flexdashboard)
rm(mapData)
rm(Combined)
covid <- read_excel("team2/covid-fci-data.xlsx")
View(covid) #To viwe the data
#finding the missing values
is.na(covid)
covid$LAT[covid$LAT==""] <- NA
mean(covid)
#storing... | /team2/dashboard.r | no_license | warint/covid-19 | R | false | false | 2,761 | r | library(readxl)
library(ggplot2)
library(sf)
library(rnaturalearth)
library(ggmap)
library(flexdashboard)
rm(mapData)
rm(Combined)
covid <- read_excel("team2/covid-fci-data.xlsx")
View(covid) #To viwe the data
#finding the missing values
is.na(covid)
covid$LAT[covid$LAT==""] <- NA
mean(covid)
#storing... |
#' Highest density region (HDR) for an arbitrary discrete distribution
#'
#' This function computes the highest density region (HDR) with support on the integers. The distribution can be any discrete
#' distribution concentrated on the integers --- it does not have to have any shape properties for the function to work... | /R/HDR.discrete.R | permissive | nfultz/stat.extend | R | false | false | 7,178 | r | #' Highest density region (HDR) for an arbitrary discrete distribution
#'
#' This function computes the highest density region (HDR) with support on the integers. The distribution can be any discrete
#' distribution concentrated on the integers --- it does not have to have any shape properties for the function to work... |
ShamanStine2.PI <-
function(x,p,h,nboot,prob,pmax)
{
set.seed(12345)
n <- nrow(x)
BC <- Shaman.Stine(x,p,h)
BCB <- Shaman.StineB(x,p,h)
bb <- BCB$coef
eb <- sqrt( (n-p) / ( (n-p)-p-1))*BCB$resid
ef <- sqrt( (n-p) / ( (n-p)-p-1))*BC$resid
fore <- matrix(NA,nrow=nboot,ncol=h)
for(i in 1:nboot)
{ ... | /R/ShamanStine2.PI.R | no_license | cran/BootPR | R | false | false | 778 | r | ShamanStine2.PI <-
function(x,p,h,nboot,prob,pmax)
{
set.seed(12345)
n <- nrow(x)
BC <- Shaman.Stine(x,p,h)
BCB <- Shaman.StineB(x,p,h)
bb <- BCB$coef
eb <- sqrt( (n-p) / ( (n-p)-p-1))*BCB$resid
ef <- sqrt( (n-p) / ( (n-p)-p-1))*BC$resid
fore <- matrix(NA,nrow=nboot,ncol=h)
for(i in 1:nboot)
{ ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FLMatrix.R
\docType{class}
\name{FLTable-class}
\alias{FLTable-class}
\title{An S4 class to represent FLTable, an in-database data.frame.}
\arguments{
\item{object}{retrieves the column names of FLTable object}
}
\description{
An S4 class to ... | /man/FLTable-class.Rd | no_license | amalshri/AdapteR | R | false | true | 584 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FLMatrix.R
\docType{class}
\name{FLTable-class}
\alias{FLTable-class}
\title{An S4 class to represent FLTable, an in-database data.frame.}
\arguments{
\item{object}{retrieves the column names of FLTable object}
}
\description{
An S4 class to ... |
sc1_pmm <- readRDS('results/mdsu_obs3_sc1_pmm.rds')
sc1_cart <- readRDS('results/mdsu_obs3_sc1_cart_min2.rds')
sc1_pmm%>%
purrr::map_df(.f=function(x) x$ct_des, .id = 'sim')%>%
dplyr::filter(sur=='mi')%>%
dplyr::summarise(ni_desy = sum(ni_des, na.rm = T),
md_m2 = mean(mean_l),
... | /pgms_simrun/pmm_vs_cart.R | no_license | yuliasidi/ch2sim | R | false | false | 714 | r | sc1_pmm <- readRDS('results/mdsu_obs3_sc1_pmm.rds')
sc1_cart <- readRDS('results/mdsu_obs3_sc1_cart_min2.rds')
sc1_pmm%>%
purrr::map_df(.f=function(x) x$ct_des, .id = 'sim')%>%
dplyr::filter(sur=='mi')%>%
dplyr::summarise(ni_desy = sum(ni_des, na.rm = T),
md_m2 = mean(mean_l),
... |
if(!("readxl") %in% installed.packages()) install.packages("readxl")
library(readxl)
data = read_excel("../dados/exercicio7.xls", sheet = "Plan1")
head(data)
names(data$Atendimento) = data$Áreas
barplot(height = data$Atendimento,
main = "Número de pessoas atendidas",
xlab = "Áreas hospitalares",
... | /codigo/exercicio7.R | no_license | Uemerson/ExerciciosR-IntroducaoCienciaDados | R | false | false | 452 | r | if(!("readxl") %in% installed.packages()) install.packages("readxl")
library(readxl)
data = read_excel("../dados/exercicio7.xls", sheet = "Plan1")
head(data)
names(data$Atendimento) = data$Áreas
barplot(height = data$Atendimento,
main = "Número de pessoas atendidas",
xlab = "Áreas hospitalares",
... |
#### Move to 03_forecast_inflows.R
# remotes::install_github("tadhg-moore/flare-1")
# remotes::install_github("aemon-j/GLM3r", ref = "v3.1.1") # Needed for Windows
forecast_location <- file.path(getwd(), "glm")
noaa_data_location <- file.path(getwd(),"data","NOAA_data","noaa","NOAAGEFS_1hr")
config <- yaml::read_yam... | /glm/03_generate_forecast.R | permissive | tadhg-moore/CRAM-forecast | R | false | false | 10,511 | r | #### Move to 03_forecast_inflows.R
# remotes::install_github("tadhg-moore/flare-1")
# remotes::install_github("aemon-j/GLM3r", ref = "v3.1.1") # Needed for Windows
forecast_location <- file.path(getwd(), "glm")
noaa_data_location <- file.path(getwd(),"data","NOAA_data","noaa","NOAAGEFS_1hr")
config <- yaml::read_yam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynpanel.R
\name{summary.dpd}
\alias{summary.dpd}
\title{Summary}
\usage{
\method{summary}{dpd}(object, ...)
}
\arguments{
\item{object}{is the object of the function}
\item{...}{not used}
}
\description{
Summary
}
| /man/summary.dpd.Rd | no_license | HsuanU/dynpanel | R | false | true | 312 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynpanel.R
\name{summary.dpd}
\alias{summary.dpd}
\title{Summary}
\usage{
\method{summary}{dpd}(object, ...)
}
\arguments{
\item{object}{is the object of the function}
\item{...}{not used}
}
\description{
Summary
}
|
dir <- system.file("examples", "basic", package = "shinyjs")
setwd(dir)
shiny::shinyAppDir(".")
| /shinyjs-basic/app.R | permissive | ycalvinner/shiny-server | R | false | false | 96 | r | dir <- system.file("examples", "basic", package = "shinyjs")
setwd(dir)
shiny::shinyAppDir(".")
|
#' Merge Results from MainSNVClass1.R
#'
#'@param input_dir (Required) Directory storing netMHCpan Results.
#'
#'@param file_prefix (Required) File prefix of netMHCpan Results.
#'
#'If you have "sample_annovar.txt.NO_JOB_ID.HLACLASS1.1.peptide.txt", please set "sample_annovar.txt.NO_JOB_ID".
#'
#'@param hmdir Home dire... | /R/MainMergeSNVClass1.R | no_license | YanqiangLi/Neoantimon | R | false | false | 7,822 | r | #' Merge Results from MainSNVClass1.R
#'
#'@param input_dir (Required) Directory storing netMHCpan Results.
#'
#'@param file_prefix (Required) File prefix of netMHCpan Results.
#'
#'If you have "sample_annovar.txt.NO_JOB_ID.HLACLASS1.1.peptide.txt", please set "sample_annovar.txt.NO_JOB_ID".
#'
#'@param hmdir Home dire... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include cloudwatch_service.R
NULL
#' Deletes the specified alarms
#'
#' @description
#' Deletes the specified alarms. You can delete up to 100 alarms in one
#' operation. How... | /cran/paws.management/R/cloudwatch_operations.R | permissive | sanchezvivi/paws | R | false | false | 107,033 | 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 cloudwatch_service.R
NULL
#' Deletes the specified alarms
#'
#' @description
#' Deletes the specified alarms. You can delete up to 100 alarms in one
#' operation. How... |
\name{inla.climate.mu}
\alias{inla.climate.mu}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Temperature response estimation
}
\description{
Computes Bayesian inference about temperature response of \code{forcing} given parameter information contained in \code{result} obtained from Monte Carlo ... | /man/inla.climate.mu.Rd | no_license | eirikmn/INLA.climate | R | false | false | 3,323 | rd | \name{inla.climate.mu}
\alias{inla.climate.mu}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Temperature response estimation
}
\description{
Computes Bayesian inference about temperature response of \code{forcing} given parameter information contained in \code{result} obtained from Monte Carlo ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{get_p_industry_prefixes}
\alias{get_p_industry_prefixes}
\title{Retrieve primary industry prefixes}
\usage{
get_p_industry_prefixes()
}
\value{
A list of primary industry prefixes
}
\description{
Retrieve primary ind... | /man/get_p_industry_prefixes.Rd | permissive | EnergyEconomyDecoupling/PFUWorkflow | R | false | true | 501 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{get_p_industry_prefixes}
\alias{get_p_industry_prefixes}
\title{Retrieve primary industry prefixes}
\usage{
get_p_industry_prefixes()
}
\value{
A list of primary industry prefixes
}
\description{
Retrieve primary ind... |
# Predict function for Flexible parametric cumulative incidence function
#
# Function for doing predictions for class \code{fcim}
#
# @param fit Object of class \code{fcim} to do predictions from.
# @param newdata Data frame from which to compute predictions. If empty, predictions are made on the data which
# the model... | /R/predict.fcim.R | no_license | LasseHjort/cuRe | R | false | false | 5,557 | r | # Predict function for Flexible parametric cumulative incidence function
#
# Function for doing predictions for class \code{fcim}
#
# @param fit Object of class \code{fcim} to do predictions from.
# @param newdata Data frame from which to compute predictions. If empty, predictions are made on the data which
# the model... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.