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 |
|---|---|---|---|---|---|---|---|---|---|
require(ggplot2)
require(plyr)
library(msm)
# set.seed(70032608) # so that intervals don't change
turkdata.full <- read.csv("./data/turkdataclean.csv", stringsAsFactors=FALSE)
turkdata <- subset(turkdata, len>10)
library(doMC)
registerDoMC(cores=12)
turkdata <- ddply(turkdata, .(ip.id, test_param), transform, n=le... | /AcmTransactions/code/PlotRanges.R | no_license | srvanderplas/LieFactorSine | R | false | false | 1,424 | r | require(ggplot2)
require(plyr)
library(msm)
# set.seed(70032608) # so that intervals don't change
turkdata.full <- read.csv("./data/turkdataclean.csv", stringsAsFactors=FALSE)
turkdata <- subset(turkdata, len>10)
library(doMC)
registerDoMC(cores=12)
turkdata <- ddply(turkdata, .(ip.id, test_param), transform, n=le... |
#'A dataset containing NO2 data for 2016
#'
#'This dataset contains smoothed NO2 data from March to September 2016
#'
#'@format An array of 4 x 179 x 360 dimensions.
#'\describe{
#' \item{Dimension 1}{Each \code{NO2_2016[t, , ]} contains NO2 data for a given month with \code{t=1} corresponding to March and \code{t=7} ... | /R/NO2_2016-data.R | permissive | battyone/eventstream | R | false | false | 567 | r | #'A dataset containing NO2 data for 2016
#'
#'This dataset contains smoothed NO2 data from March to September 2016
#'
#'@format An array of 4 x 179 x 360 dimensions.
#'\describe{
#' \item{Dimension 1}{Each \code{NO2_2016[t, , ]} contains NO2 data for a given month with \code{t=1} corresponding to March and \code{t=7} ... |
875d85812c3fc50799492dfb21191633 tlc02-uniform-depth-117.qdimacs 27023 71264 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Miller-Marin/trafficlight-controller/tlc02-uniform-depth-117/tlc02-uniform-depth-117.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 76 | r | 875d85812c3fc50799492dfb21191633 tlc02-uniform-depth-117.qdimacs 27023 71264 |
library(phyloseq)
library(Hmisc)
library(plyr)
library(reshape2)
library(igraph)
source("~/Documents/repos/R_code/R_functions/network_effective_size.R")
### input args: 1. phyloseq RDS object; 2. the last column that is a factor;
args<-commandArgs(TRUE)
input_path<-unlist(strsplit(as.character(args[1]), "/", fixed=T... | /rscripts/spearman_cc/spearman_hoeffding_cc_final_stats.R | no_license | fandemonium/R_code | R | false | false | 2,806 | r | library(phyloseq)
library(Hmisc)
library(plyr)
library(reshape2)
library(igraph)
source("~/Documents/repos/R_code/R_functions/network_effective_size.R")
### input args: 1. phyloseq RDS object; 2. the last column that is a factor;
args<-commandArgs(TRUE)
input_path<-unlist(strsplit(as.character(args[1]), "/", fixed=T... |
portfolio.difference <- function( portfolios, x.b, method = c( "relative","absolute" ) )
{
###
### this function computes the difference measure specified by
### the method for a single portfolio in a vector or a collection of
### portfolios in a matrix
###
### arguments
### portfolios = a vector or matrix of p... | /R/portfolio.difference.R | no_license | cran/rportfolios | R | false | false | 2,217 | r | portfolio.difference <- function( portfolios, x.b, method = c( "relative","absolute" ) )
{
###
### this function computes the difference measure specified by
### the method for a single portfolio in a vector or a collection of
### portfolios in a matrix
###
### arguments
### portfolios = a vector or matrix of p... |
library(ncdf4)
library(maps)
setwd("/store/msclim/bhendj/tmp")
files <- list.files(pattern='20130501_global..nc')
tp <- list()
for (f in files){
nc <- nc_open(f)
tptmp <- ncvar_get(nc, 'tp')
lon <- nc$dim$lon$vals
lat <- nc$dim$lat$vals
nc_close(nc)
tpdiff <- tptmp
for (i in 2:214) tpdiff[,,,i] <- tptmp... | /ecmwf_system4_rainfall_erratic_problems.R | no_license | jonasbhend/Rdump | R | false | false | 1,178 | r | library(ncdf4)
library(maps)
setwd("/store/msclim/bhendj/tmp")
files <- list.files(pattern='20130501_global..nc')
tp <- list()
for (f in files){
nc <- nc_open(f)
tptmp <- ncvar_get(nc, 'tp')
lon <- nc$dim$lon$vals
lat <- nc$dim$lat$vals
nc_close(nc)
tpdiff <- tptmp
for (i in 2:214) tpdiff[,,,i] <- tptmp... |
death <- read.csv("/users/wana/desktop/causes_of_death.csv")
totals <- subset(death, AGE.GROUP == "All Ages")
heartdisease <- subset(totals, LEADING.CAUSES.OF.DEATH == "Heart disease")
plot(heartdisease$FATALITIES)
#This plot describes the number of fatalities due to heart disease over time
infant <- subset(death, AGE... | /Assignment1.R | no_license | aaronwan2/aaron_wan | R | false | false | 495 | r | death <- read.csv("/users/wana/desktop/causes_of_death.csv")
totals <- subset(death, AGE.GROUP == "All Ages")
heartdisease <- subset(totals, LEADING.CAUSES.OF.DEATH == "Heart disease")
plot(heartdisease$FATALITIES)
#This plot describes the number of fatalities due to heart disease over time
infant <- subset(death, AGE... |
#### Pre instructions ####
#setwd(dir = "~/thesis/Mass/FluctuatingSelectionForPubli/")
setwd(dir = "/home/timothee/Documents/GitHub/FluctuatingSelectionForPubli/")
library("pedantics")
library('lme4')
library('tidyr')
library('nadiv')
#### Load data ####
RawPheno <- read.table(file = "ForFluctuatingSelectionRaw.txt",... | /DataPrepFluSel.R | no_license | timotheenivalis/FluctuatingSelectionForPubli | R | false | false | 10,133 | r | #### Pre instructions ####
#setwd(dir = "~/thesis/Mass/FluctuatingSelectionForPubli/")
setwd(dir = "/home/timothee/Documents/GitHub/FluctuatingSelectionForPubli/")
library("pedantics")
library('lme4')
library('tidyr')
library('nadiv')
#### Load data ####
RawPheno <- read.table(file = "ForFluctuatingSelectionRaw.txt",... |
#' RMoE: LASSO Regularized Mixture of Experts Models
#'
#' @description `RMoE` is a package containing regularized Mixture of Experts
#' models using the Lasso penalty.
#'
#' `RMoE` contains the following Regularized Mixture-of-Experts models:
#'
#' \itemize{
#' \item GaussianRMoE: Gaussian Regularixed Mixture of Exp... | /R/RMoE-package.R | no_license | fchamroukhi/HDME | R | false | false | 780 | r | #' RMoE: LASSO Regularized Mixture of Experts Models
#'
#' @description `RMoE` is a package containing regularized Mixture of Experts
#' models using the Lasso penalty.
#'
#' `RMoE` contains the following Regularized Mixture-of-Experts models:
#'
#' \itemize{
#' \item GaussianRMoE: Gaussian Regularixed Mixture of Exp... |
# Elina Turunen
# Exercise 4 (Data Wrangling) and 5
# Original data source: http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/human1.txt
# Exercise 4: Data Wrangling
# read the “Human development” and “Gender inequality” datas
hd <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/p... | /creat_human.R | no_license | elinaturunen/IODS-project | R | false | false | 6,545 | r | # Elina Turunen
# Exercise 4 (Data Wrangling) and 5
# Original data source: http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/human1.txt
# Exercise 4: Data Wrangling
# read the “Human development” and “Gender inequality” datas
hd <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/p... |
generation_time <- get_generation_time(disease = "SARS-CoV-2", source = "ganyani", max_value = 5)
reporting_delay <- dist_spec(
mean = log(3), mean_sd = 0.1,
sd = log(2), sd_sd = 0.1, max = 5
)
futile.logger::flog.threshold("FATAL")
# uses example case vector
cases <- EpiNow2::example_confirmed[1:30]
cases <- data... | /tests/testthat/test-regional_runtimes.R | permissive | epiforecasts/EpiNow2 | R | false | false | 1,042 | r | generation_time <- get_generation_time(disease = "SARS-CoV-2", source = "ganyani", max_value = 5)
reporting_delay <- dist_spec(
mean = log(3), mean_sd = 0.1,
sd = log(2), sd_sd = 0.1, max = 5
)
futile.logger::flog.threshold("FATAL")
# uses example case vector
cases <- EpiNow2::example_confirmed[1:30]
cases <- data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path_enrichmentscore.R
\name{path_enrichmentscore}
\alias{path_enrichmentscore}
\title{Calculates pathway enrichment score of the pathways linked to significant metabolites}
\usage{
path_enrichmentscore(
met_path,
sig_metabolite_kegg_id,
... | /man/path_enrichmentscore.Rd | permissive | khemlalnirmalkar/MetENP | R | false | true | 1,644 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path_enrichmentscore.R
\name{path_enrichmentscore}
\alias{path_enrichmentscore}
\title{Calculates pathway enrichment score of the pathways linked to significant metabolites}
\usage{
path_enrichmentscore(
met_path,
sig_metabolite_kegg_id,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny-modules.R
\name{multi_selectUI}
\alias{multi_selectUI}
\title{multi_select UI}
\usage{
multi_selectUI(id, label = "Metric", multiple = TRUE, width = NULL)
}
\arguments{
\item{id}{Shiny id}
\item{label}{label}
\item{multiple}{multiple ... | /man/multi_selectUI.Rd | no_license | pochenok/googleAnalyticsR | R | false | true | 499 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny-modules.R
\name{multi_selectUI}
\alias{multi_selectUI}
\title{multi_select UI}
\usage{
multi_selectUI(id, label = "Metric", multiple = TRUE, width = NULL)
}
\arguments{
\item{id}{Shiny id}
\item{label}{label}
\item{multiple}{multiple ... |
#' Extract e0 and K-ratio data from a single duplicate Ni/Cu//PET
#'
#' A helper function prepare data for processing with StrataGemTwoLayersOnPET
#'
#' @param df A data frame with e0 and K-ratios for NiK and CuK for multiple duplicates \code{df}
#'
#' @param nDupl The duplicate to extract e0 and K-ratios \code{nDupl... | /R/getDupNiCuKR.R | no_license | jrminter/rWrapStrataGem | R | false | false | 670 | r | #' Extract e0 and K-ratio data from a single duplicate Ni/Cu//PET
#'
#' A helper function prepare data for processing with StrataGemTwoLayersOnPET
#'
#' @param df A data frame with e0 and K-ratios for NiK and CuK for multiple duplicates \code{df}
#'
#' @param nDupl The duplicate to extract e0 and K-ratios \code{nDupl... |
#'---
#' title: "Counts Summary: `r paste(snakemake@wildcards$dataset, snakemake@wildcards$annotation, sep = '--')`"
#' author:
#' wb:
#' log:
#' - snakemake: '`sm str(tmp_dir / "AE" / "{annotation}" / "{dataset}" / "count_summary.Rds")`'
#' input:
#' - ods: '`sm cfg.getProcessedResultsDir() +
#' "/... | /drop/modules/aberrant-expression-pipeline/Counting/Summary.R | permissive | nickhsmith/drop | R | false | false | 5,343 | r | #'---
#' title: "Counts Summary: `r paste(snakemake@wildcards$dataset, snakemake@wildcards$annotation, sep = '--')`"
#' author:
#' wb:
#' log:
#' - snakemake: '`sm str(tmp_dir / "AE" / "{annotation}" / "{dataset}" / "count_summary.Rds")`'
#' input:
#' - ods: '`sm cfg.getProcessedResultsDir() +
#' "/... |
pollutantmean <- function(directory, pollutant, id = 1:332) {
files <- (Sys.glob("specdata//*.csv"))[id];
combined_data <- c()
for (file in files) {
file_data <- read.csv(file, sep = ",");
pollutant_data <- file_data[,pollutant];
pollutant_data <- pollutant_data[!is.na(pollutant_data)]
co... | /R_Programming/Project_1/pollutantmean.R | no_license | droidaman/R_projects | R | false | false | 408 | r | pollutantmean <- function(directory, pollutant, id = 1:332) {
files <- (Sys.glob("specdata//*.csv"))[id];
combined_data <- c()
for (file in files) {
file_data <- read.csv(file, sep = ",");
pollutant_data <- file_data[,pollutant];
pollutant_data <- pollutant_data[!is.na(pollutant_data)]
co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ds_search.R
\name{ds_search}
\alias{ds_search}
\title{Datastore - search or get a dataset from CKRAN datastore}
\usage{
ds_search(
resource_id = NULL,
filters = NULL,
q = NULL,
plain = NULL,
language = NULL,
fields = NULL,
offse... | /man/ds_search.Rd | permissive | nn-at/ckanr | R | false | true | 3,129 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ds_search.R
\name{ds_search}
\alias{ds_search}
\title{Datastore - search or get a dataset from CKRAN datastore}
\usage{
ds_search(
resource_id = NULL,
filters = NULL,
q = NULL,
plain = NULL,
language = NULL,
fields = NULL,
offse... |
## These functions are interrelated, the first will allow the second to calculate and check for storage
## in the global environment
## mCM pulls together a list of functions that allow caching of a matrix
makeCacheMatrix <- function(A = matrix()) {
m <- NULL
set <- function(y) {
A <<- y
... | /cachematrix.R | no_license | gfdii/datasciencecoursera | R | false | false | 777 | r | ## These functions are interrelated, the first will allow the second to calculate and check for storage
## in the global environment
## mCM pulls together a list of functions that allow caching of a matrix
makeCacheMatrix <- function(A = matrix()) {
m <- NULL
set <- function(y) {
A <<- y
... |
# checking mm cc mortg home_eq stud_loan
# phone, mail, tellers
f_comm_offer <- function(new_acq){
comm <- alist()
comm$mail_offer <- runif(1) < 0.1
comm$phone_offer <- runif(1) < 0.3
comm$email_offer <- runif(1) < 0.5
comm$mail_acq <- F
comm$phone_acq <- F
comm$email_acq <- F
resp_probs <- c(0.... | /data/data_generation/f02_cluster.r | no_license | anjchatt/smartanalytics | R | false | false | 7,092 | r | # checking mm cc mortg home_eq stud_loan
# phone, mail, tellers
f_comm_offer <- function(new_acq){
comm <- alist()
comm$mail_offer <- runif(1) < 0.1
comm$phone_offer <- runif(1) < 0.3
comm$email_offer <- runif(1) < 0.5
comm$mail_acq <- F
comm$phone_acq <- F
comm$email_acq <- F
resp_probs <- c(0.... |
#' A function
#'
#' @param file A string
#' @param expr A variable in the dataframe
#'
#' @return A dataframe
#' @import dplyr
#' @import utils
#' @import haven
#' @import stringr
#' @import writexl
#' @export
#'
Shinyreadonemerge=function(path,keyword,xls=F,writexlsx=F,writesav=F){
setwd(path)
if (xls==F)
dir(... | /R/Shinyreadonemerge.R | no_license | songssssss/cleanbot | R | false | false | 1,104 | r | #' A function
#'
#' @param file A string
#' @param expr A variable in the dataframe
#'
#' @return A dataframe
#' @import dplyr
#' @import utils
#' @import haven
#' @import stringr
#' @import writexl
#' @export
#'
Shinyreadonemerge=function(path,keyword,xls=F,writexlsx=F,writesav=F){
setwd(path)
if (xls==F)
dir(... |
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252168852e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613104498-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 344 | r | testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252168852e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... |
plot.prm <-
function(x,type="yyp",alpha=.025,colors=list(bars="#0000AA",errorbars="red",background="#BBBBEE",abline="#21A0D2", scores="#0000AA",cutoffs="#00EEEE", badouts="darkred", modouts="black"),textsize=6,errorbar_width=1,data,yscale=NULL, ...)
# plot.prm automatically generates Partial Robust M regression We... | /R/plot.prm.R | no_license | cran/sprm | R | false | false | 7,294 | r | plot.prm <-
function(x,type="yyp",alpha=.025,colors=list(bars="#0000AA",errorbars="red",background="#BBBBEE",abline="#21A0D2", scores="#0000AA",cutoffs="#00EEEE", badouts="darkred", modouts="black"),textsize=6,errorbar_width=1,data,yscale=NULL, ...)
# plot.prm automatically generates Partial Robust M regression We... |
#' PES - Indicator Matrix
#'
#' A function that takes a vector of seasons, where the i-th entry = k indicates that datapoint i is in season k, and forms
#' the indicator matrix required for the PES method
#'
#' @param seasons
#'
#' @export
#' @examples
#' seasons <- c(1,2,3,3)
#' getPESIndicator(seasons)
#' 1 0 0 0... | /R/getPESIndicatorMatrix.R | no_license | DanielWaller/multiseas | R | false | false | 608 | r | #' PES - Indicator Matrix
#'
#' A function that takes a vector of seasons, where the i-th entry = k indicates that datapoint i is in season k, and forms
#' the indicator matrix required for the PES method
#'
#' @param seasons
#'
#' @export
#' @examples
#' seasons <- c(1,2,3,3)
#' getPESIndicator(seasons)
#' 1 0 0 0... |
#' @title removeIsotope
#' @description removeIsotope
#' @author Xiaotao Shen
#' \email{shenxt@@sioc.ac.cn}
#' @param data A maxtrix or data.frame.
#' @param data.from data from where?
#' @return A data without isotopes.
#' @export
setGeneric(name = "removeIsotope",
def = function(data,
... | /R/removeIsotope.R | permissive | jaspershen/sxtTools | R | false | false | 2,330 | r | #' @title removeIsotope
#' @description removeIsotope
#' @author Xiaotao Shen
#' \email{shenxt@@sioc.ac.cn}
#' @param data A maxtrix or data.frame.
#' @param data.from data from where?
#' @return A data without isotopes.
#' @export
setGeneric(name = "removeIsotope",
def = function(data,
... |
# PPCC test for normality obtained from
# https://github.com/USGS-R/smwrStats/blob/master/R/ppcc.test.R
PPCC_test_norm_USGS_Lorenz
#' Test for Normality
#'
#' Computes the probability plot correlation coefficient test for departures
#' from normality.
#'
#' @param x a vector of numeric values. Missing valu... | /PPCC_test_norm_USGS_Lorenz.R | no_license | jshecht/NSFFA | R | false | false | 3,276 | r | # PPCC test for normality obtained from
# https://github.com/USGS-R/smwrStats/blob/master/R/ppcc.test.R
PPCC_test_norm_USGS_Lorenz
#' Test for Normality
#'
#' Computes the probability plot correlation coefficient test for departures
#' from normality.
#'
#' @param x a vector of numeric values. Missing valu... |
# A number of useful functions for manipulating matrices
ma<-function(x,n,f=identity){res<-as.numeric(stats::filter(f(x),rep(1/n,n),method="convolution",sides=1,circular=FALSE)); ifelse(is.na(res),0,res)}
ms<-function(x,n,f=identity){res<-as.numeric(stats::filter(f(x),rep(1,n),method="convolution",sides=1,circula... | /MartrixOperations.R | permissive | jessieserrino/data-science-project-2019 | R | false | false | 1,717 | r |
# A number of useful functions for manipulating matrices
ma<-function(x,n,f=identity){res<-as.numeric(stats::filter(f(x),rep(1/n,n),method="convolution",sides=1,circular=FALSE)); ifelse(is.na(res),0,res)}
ms<-function(x,n,f=identity){res<-as.numeric(stats::filter(f(x),rep(1,n),method="convolution",sides=1,circula... |
calcQ<-function(biomassByGroup){
## calculate kempton's Q diversity index
## ainsworth suggests dropping species groups that drop below ** of B0 before calculating Q
#biomassByGroup is a vector of biomass' for each species group
getMyBin<-function(x, bins=biomassBins){
index<-bins<=x
thisBiomassBi... | /(0)Functions_general/calcQ.R | no_license | mcgregorv/AtlantisRscripts | R | false | false | 1,388 | r | calcQ<-function(biomassByGroup){
## calculate kempton's Q diversity index
## ainsworth suggests dropping species groups that drop below ** of B0 before calculating Q
#biomassByGroup is a vector of biomass' for each species group
getMyBin<-function(x, bins=biomassBins){
index<-bins<=x
thisBiomassBi... |
context("issue #8")
tree <- hier_create(root = "Total", nodes = LETTERS[1:4])
tree <- hier_add(tree, root = "A", nodes = "a0")
code <- hier_convert(tree, as = "code")
tree_imported <- hier_import(inp = code, from = "code")
tree <- .sort(tree)
tree_imported <- .sort(tree_imported)
expect_true(inherits(tree_imported... | /tests/testthat/test_issue8.R | no_license | bernhard-da/sdcHierarchies | R | false | false | 378 | r | context("issue #8")
tree <- hier_create(root = "Total", nodes = LETTERS[1:4])
tree <- hier_add(tree, root = "A", nodes = "a0")
code <- hier_convert(tree, as = "code")
tree_imported <- hier_import(inp = code, from = "code")
tree <- .sort(tree)
tree_imported <- .sort(tree_imported)
expect_true(inherits(tree_imported... |
# MATRICES::
# Es un vector con filas y columnas
# vector x:
x<- c(1:12)
# DIM() Asigna una nueva dimensión al vector acorde al número de elementos
dim(x) <- c(4,3) # 4 filas y 3 columnas
#MATRIX()
notas_update<- c(notas, 20, 11, 3, 8, 19, 16)
m_notas<- matrix(data=notas_update, nrow = 5, ncol = 2) # por de... | /matrices.R | no_license | AngryDani/Rparatodos | R | false | false | 2,488 | r | # MATRICES::
# Es un vector con filas y columnas
# vector x:
x<- c(1:12)
# DIM() Asigna una nueva dimensión al vector acorde al número de elementos
dim(x) <- c(4,3) # 4 filas y 3 columnas
#MATRIX()
notas_update<- c(notas, 20, 11, 3, 8, 19, 16)
m_notas<- matrix(data=notas_update, nrow = 5, ncol = 2) # por de... |
library(caret)
glimpse(train1)
repeatedCV <- trainControl(method = "repeatedcv",
number = 5,
repeats = 3)
rf_grid <- expand.grid(mtry = seq(from = 2, to = ncol(train1) - 1, by = 1))
glimpse(train1)
model<-train(x = train1[,c(-1,-6,-5,-4)],
... | /tuning.R | no_license | zzjayzz/kaggle-competition-titanic- | R | false | false | 963 | r | library(caret)
glimpse(train1)
repeatedCV <- trainControl(method = "repeatedcv",
number = 5,
repeats = 3)
rf_grid <- expand.grid(mtry = seq(from = 2, to = ncol(train1) - 1, by = 1))
glimpse(train1)
model<-train(x = train1[,c(-1,-6,-5,-4)],
... |
\name{saveRun}
\alias{saveRun}
%- 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{
saveRun(egeneStruct, runName, params = NULL, summarization = logsum, transiters = 100, pairscorefil... | /KnockoutNets/man/saveRun.Rd | permissive | sverchkov/vaske-fgnem | R | false | false | 3,108 | rd | \name{saveRun}
\alias{saveRun}
%- 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{
saveRun(egeneStruct, runName, params = NULL, summarization = logsum, transiters = 100, pairscorefil... |
# R functions for proposed method for density responses
# Load necessary packages
library(pdist)
library(matrixStats)
library(fields)
# Function for obtaining candidate bandwidths
# X: observed X (matrix of size (sample size,number of covariates))
# add: number of additional grid points for numerical integra... | /Codes for simulation 2/R_functions_for_proposed_method_for_density_responses.R | no_license | kw-lee/Add-Reg-Hilbert-Res | R | false | false | 5,953 | r | # R functions for proposed method for density responses
# Load necessary packages
library(pdist)
library(matrixStats)
library(fields)
# Function for obtaining candidate bandwidths
# X: observed X (matrix of size (sample size,number of covariates))
# add: number of additional grid points for numerical integra... |
BBest <- function(y,m,method="MM"){
if (sum(as.integer(m)==m)==length(m)){
} else{
stop("m must be integer")
}
if (min(m)<=0){
stop("m must be positive")
}
if (is.numeric(y)){
} else{
stop("y must be numeric")
}
if (sum(y%%1==0)==length(y)){
} else {
stop("y must be integ... | /R/BBest.R | no_license | cran/PROreg | R | false | false | 5,583 | r | BBest <- function(y,m,method="MM"){
if (sum(as.integer(m)==m)==length(m)){
} else{
stop("m must be integer")
}
if (min(m)<=0){
stop("m must be positive")
}
if (is.numeric(y)){
} else{
stop("y must be numeric")
}
if (sum(y%%1==0)==length(y)){
} else {
stop("y must be integ... |
# Author: Esmit Pérez
# Exploratory Data Analysis, Coursera exdata-011
# Date: Feb 5 2015
# Generate all at once!
if (file.exists("plot1.png")){
file.remove("plot1.png")
}
if (file.exists("plot2.png")){
file.remove("plot2.png")
}
if (file.exists("plot3.png")){
file.remove("plot3.png")
}
if (fi... | /make_all_plots.R | no_license | esmitperez/coursera-ExData_Plotting1 | R | false | false | 453 | r | # Author: Esmit Pérez
# Exploratory Data Analysis, Coursera exdata-011
# Date: Feb 5 2015
# Generate all at once!
if (file.exists("plot1.png")){
file.remove("plot1.png")
}
if (file.exists("plot2.png")){
file.remove("plot2.png")
}
if (file.exists("plot3.png")){
file.remove("plot3.png")
}
if (fi... |
\docType{methods}
\name{nneg}
\alias{nneg}
\alias{nneg,matrix-method}
\alias{nneg-methods}
\alias{nneg,NMF-method}
\alias{posneg}
\alias{rposneg}
\alias{rposneg,matrix-method}
\alias{rposneg-methods}
\alias{rposneg,NMF-method}
\title{Transforming from Mixed-sign to Nonnegative Data}
\usage{
nneg(object, ...)
\S4me... | /man/nneg.Rd | no_license | cran/NMF | R | false | false | 5,319 | rd | \docType{methods}
\name{nneg}
\alias{nneg}
\alias{nneg,matrix-method}
\alias{nneg-methods}
\alias{nneg,NMF-method}
\alias{posneg}
\alias{rposneg}
\alias{rposneg,matrix-method}
\alias{rposneg-methods}
\alias{rposneg,NMF-method}
\title{Transforming from Mixed-sign to Nonnegative Data}
\usage{
nneg(object, ...)
\S4me... |
#library(dplyr)
library(plyr)
library(dplyr)
library(magrittr)
#setwd("/home/michaelh/SIMULATION_paper/")
#options("exppression" = 500000)
##########################################
#: Calculate True h^2 for each Scenario :#
##########################################
simPars <-
read.table("scripts/simulationParam... | /examples/GWAS/2stage4_mjmcmc_gwas.r | no_license | aliaksah/EMJMCMC2016 | R | false | false | 13,762 | r | #library(dplyr)
library(plyr)
library(dplyr)
library(magrittr)
#setwd("/home/michaelh/SIMULATION_paper/")
#options("exppression" = 500000)
##########################################
#: Calculate True h^2 for each Scenario :#
##########################################
simPars <-
read.table("scripts/simulationParam... |
\name{ChromSets}
\docType{data}
\alias{sets}
\title{Gene-sets from Subramanian et al. study}
\description{List of gene-sets used in Subramanian et al. study,
representing chromosomal regions. 40 of the original 212 were
excluded, in order to obtain non-overlapping sets (atoms.)}
\usage{data(ChromSets)}
\format{
... | /man/ChromSets.Rd | no_license | leekgroup/Set | R | false | false | 802 | rd | \name{ChromSets}
\docType{data}
\alias{sets}
\title{Gene-sets from Subramanian et al. study}
\description{List of gene-sets used in Subramanian et al. study,
representing chromosomal regions. 40 of the original 212 were
excluded, in order to obtain non-overlapping sets (atoms.)}
\usage{data(ChromSets)}
\format{
... |
# 15.04.2016 script to calculate regression parameters for each file, average them, plot the
# resulting regressions, MW them against baseline.
require(abind)
setwd("/home/somros/Documents/itn100results/sizeSpectrum2000/S250/i3")
list<-list.files("/home/somros/Documents/itn100results/sizeSpectrum2000/S250/i3",
... | /spectrumMetricsCalc.R | no_license | somros/r4ITN | R | false | false | 2,348 | r | # 15.04.2016 script to calculate regression parameters for each file, average them, plot the
# resulting regressions, MW them against baseline.
require(abind)
setwd("/home/somros/Documents/itn100results/sizeSpectrum2000/S250/i3")
list<-list.files("/home/somros/Documents/itn100results/sizeSpectrum2000/S250/i3",
... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 27646
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 27646
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/wgrowing/ctrl.e#1.a#3.E#12... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/wgrowing/ctrl.e#1.a#3.E#128.A#48.c#.w#9.s#53.asp/ctrl.e#1.a#3.E#128.A#48.c#.w#9.s#53.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 720 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 27646
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 27646
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/wgrowing/ctrl.e#1.a#3.E#12... |
#' @title ctbi.plot
#'
#' @description Plot the raw data with the bins, long-term trend and cyclic component shown.
#'
#' @param list.main the list output from the function ctbi.main
#' @param show.n.bin number of bins shown within one graphic
#' @param show.outliers boolean to show or hide flagged outliers
#'
#' @retu... | /PartII.aggregation/step1_procedure/ctbi_showmedian/ctbi.plot2.R | no_license | fritte2/ctbi_article | R | false | false | 4,940 | r | #' @title ctbi.plot
#'
#' @description Plot the raw data with the bins, long-term trend and cyclic component shown.
#'
#' @param list.main the list output from the function ctbi.main
#' @param show.n.bin number of bins shown within one graphic
#' @param show.outliers boolean to show or hide flagged outliers
#'
#' @retu... |
#' Wrapper to add prior pseudo counts to the mutation data
#'
#' This function is a wrapper for the function \code{\link{add_counts}} that adds prior dirichlet counts to the mutation data for multinomial (and binomial) regression. This wrapper was used in our analysis in Bertl et al. (2007) (see References).
#'
#' The ... | /R/wrapper_prior_pseudo_counts.R | no_license | wenmm/MultinomialMutations | R | false | false | 2,402 | r | #' Wrapper to add prior pseudo counts to the mutation data
#'
#' This function is a wrapper for the function \code{\link{add_counts}} that adds prior dirichlet counts to the mutation data for multinomial (and binomial) regression. This wrapper was used in our analysis in Bertl et al. (2007) (see References).
#'
#' The ... |
plot4 <- function () {
##get and clean data
print("get and clean data, please wait...")
power_data <- read.table("household_power_consumption.txt", sep = ";", colClasses = "character", header = T)
power_data$Datetime <- paste(power_data$Date, power_data$Time)
power_data$Datetime ... | /plot4.R | no_license | vaanxy/ExData_Plotting1 | R | false | false | 1,671 | r | plot4 <- function () {
##get and clean data
print("get and clean data, please wait...")
power_data <- read.table("household_power_consumption.txt", sep = ";", colClasses = "character", header = T)
power_data$Datetime <- paste(power_data$Date, power_data$Time)
power_data$Datetime ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/methods-segvis.R
\docType{methods}
\name{file}
\alias{file}
\alias{file,segvis-method}
\alias{file<-}
\alias{file<-,segvis,character-method}
\title{file methods}
\usage{
file(object)
file(object) <- value
\S4method{... | /man/file-methods.Rd | no_license | lengning/Segvis | R | false | false | 820 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/methods-segvis.R
\docType{methods}
\name{file}
\alias{file}
\alias{file,segvis-method}
\alias{file<-}
\alias{file<-,segvis,character-method}
\title{file methods}
\usage{
file(object)
file(object) <- value
\S4method{... |
# Packages
if (!require('pacman')) install.packages('pacman'); library('pacman')
p_load(tidyverse, magrittr)
short_name <- "com"
# Qualtrics and html resources
source("scripts/html_qualtrics_codes.R")
# Qualtrics tags template to wrapp around
# Instructions
ins_wrapper <-
'[[Question:Text]]\n[[ID:replaceID]]\n<spa... | /scripts/comprehension.R | no_license | gorkang/R_conditions_creation | R | false | false | 2,873 | r | # Packages
if (!require('pacman')) install.packages('pacman'); library('pacman')
p_load(tidyverse, magrittr)
short_name <- "com"
# Qualtrics and html resources
source("scripts/html_qualtrics_codes.R")
# Qualtrics tags template to wrapp around
# Instructions
ins_wrapper <-
'[[Question:Text]]\n[[ID:replaceID]]\n<spa... |
#' Convert valid alpha array to probabilities under log-linear formulation
#'
#' @param A alpha array. Must be valid and provide identifiable log-linear
#' specification
#' @param J index List of variable interactions to include
#' @param I vector. Number of categories for each variable in sence
#'
#' @return an array ... | /R/alpha2prob.R | no_license | jlivsey/Dvar | R | false | false | 874 | r | #' Convert valid alpha array to probabilities under log-linear formulation
#'
#' @param A alpha array. Must be valid and provide identifiable log-linear
#' specification
#' @param J index List of variable interactions to include
#' @param I vector. Number of categories for each variable in sence
#'
#' @return an array ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_e0_hmd.R
\name{plot_e0_hmd}
\alias{plot_e0_hmd}
\title{The evolution of the life expectancy of a newborn}
\source{
\\href{https://www.mortality.org/}
}
\usage{
plot_e0_hmd(Country, username, password)
}
\arguments{
\item{Country}{The set... | /man/plot_e0_hmd.Rd | permissive | katrienantonio/MultiMoMo | R | false | true | 875 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_e0_hmd.R
\name{plot_e0_hmd}
\alias{plot_e0_hmd}
\title{The evolution of the life expectancy of a newborn}
\source{
\\href{https://www.mortality.org/}
}
\usage{
plot_e0_hmd(Country, username, password)
}
\arguments{
\item{Country}{The set... |
library(mdmb)
### Name: remove_NA_data_frame
### Title: Removes Rows with Some Missing Entries in a Data Frame
### Aliases: remove_NA_data_frame
### ** Examples
#############################################################################
# EXAMPLE 1: Removing rows in a data frame (listwise deletion)
##############... | /data/genthat_extracted_code/mdmb/examples/remove_NA_data_frame.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,140 | r | library(mdmb)
### Name: remove_NA_data_frame
### Title: Removes Rows with Some Missing Entries in a Data Frame
### Aliases: remove_NA_data_frame
### ** Examples
#############################################################################
# EXAMPLE 1: Removing rows in a data frame (listwise deletion)
##############... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fgsea.R
\name{calcGseaStat}
\alias{calcGseaStat}
\title{Calculates GSEA statistics for a given query gene set}
\usage{
calcGseaStat(
stats,
selectedStats,
gseaParam = 1,
returnAllExtremes = FALSE,
returnLeadingEdge = FALSE,
scoreT... | /man/calcGseaStat.Rd | permissive | ctlab/fgsea | R | false | true | 1,762 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fgsea.R
\name{calcGseaStat}
\alias{calcGseaStat}
\title{Calculates GSEA statistics for a given query gene set}
\usage{
calcGseaStat(
stats,
selectedStats,
gseaParam = 1,
returnAllExtremes = FALSE,
returnLeadingEdge = FALSE,
scoreT... |
library(np)
### Name: npqcmstest
### Title: Kernel Consistent Quantile Regression Model Specification Test
### with Mixed Data Types
### Aliases: npqcmstest
### Keywords: nonparametric
### ** Examples
## Not run:
##D # EXAMPLE 1: For this example, we conduct a consistent quantile regression
##D # model specifica... | /data/genthat_extracted_code/np/examples/np.qcmstest.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,468 | r | library(np)
### Name: npqcmstest
### Title: Kernel Consistent Quantile Regression Model Specification Test
### with Mixed Data Types
### Aliases: npqcmstest
### Keywords: nonparametric
### ** Examples
## Not run:
##D # EXAMPLE 1: For this example, we conduct a consistent quantile regression
##D # model specifica... |
#' Data Depths
#'
#' `step_depth` creates a *specification* of a recipe
#' step that will convert numeric data into measurement of
#' *data depth*. This is done for each value of a categorical
#' class variable.
#'
#' @inheritParams step_center
#' @inherit step_center return
#' @param ... One or more selector functi... | /R/depth.R | no_license | p-hunter/recipes | R | false | false | 7,251 | r | #' Data Depths
#'
#' `step_depth` creates a *specification* of a recipe
#' step that will convert numeric data into measurement of
#' *data depth*. This is done for each value of a categorical
#' class variable.
#'
#' @inheritParams step_center
#' @inherit step_center return
#' @param ... One or more selector functi... |
library(ade4)
library(data.table)
library(class)
library(caret)
#load data from CSV
CustData = read.csv("Telco-Customer-Churn.csv" , header = TRUE)
summary(CustData)
head(CustData)
#get structure of dataset
str(CustData)
#remove missing values
CustData = na.omit(CustData)
#convert char into numeric
#One-hot-encoding ... | /TelcoCustomerChurn.R | no_license | haputhanthree/CustomerChurn | R | false | false | 2,513 | r | library(ade4)
library(data.table)
library(class)
library(caret)
#load data from CSV
CustData = read.csv("Telco-Customer-Churn.csv" , header = TRUE)
summary(CustData)
head(CustData)
#get structure of dataset
str(CustData)
#remove missing values
CustData = na.omit(CustData)
#convert char into numeric
#One-hot-encoding ... |
## File Name: gdina_reduced_skillspace_multiple_groups.R
## File Version: 0.10
gdina_reduced_skillspace_multiple_groups <- function( Z, reduced.skillspace.method, item_patt_freq_matr,
p.aj.xi, G )
{
#---- single group
if (G==1){
res <- gdina_reduced_skillspace_single_group( Z=Z, red... | /CDM/R/gdina_reduced_skillspace_multiple_groups.R | no_license | akhikolla/InformationHouse | R | false | false | 1,102 | r | ## File Name: gdina_reduced_skillspace_multiple_groups.R
## File Version: 0.10
gdina_reduced_skillspace_multiple_groups <- function( Z, reduced.skillspace.method, item_patt_freq_matr,
p.aj.xi, G )
{
#---- single group
if (G==1){
res <- gdina_reduced_skillspace_single_group( Z=Z, red... |
CellP2 = function(data, m = 2){
require(gtools)
if (m>2) {
print("At m>2, this function runs very slowly for large data sets. Be prepared for a long wait.")
}
nrow = nrow(data)
ncol = ncol(data)
if (m > (ncol-1)) {
return(print("m is not a valid value"))
} else {
PossComs = fu... | /new_function2.R | permissive | athompson039/ant055-thesis | R | false | false | 5,510 | r | CellP2 = function(data, m = 2){
require(gtools)
if (m>2) {
print("At m>2, this function runs very slowly for large data sets. Be prepared for a long wait.")
}
nrow = nrow(data)
ncol = ncol(data)
if (m > (ncol-1)) {
return(print("m is not a valid value"))
} else {
PossComs = fu... |
#' @include model-utils.R
NULL
#' @rdname mlflow_save_model
#' @param sample_input Sample Spark DataFrame input that the model can evaluate. This is required by MLeap for data schema inference.
#'
#' @export
mlflow_save_model.ml_pipeline_model <- function(model,
path,
... | /mlflow/R/mlflow/R/model-mleap.R | permissive | dmatrix/mlflow | R | false | false | 1,946 | r | #' @include model-utils.R
NULL
#' @rdname mlflow_save_model
#' @param sample_input Sample Spark DataFrame input that the model can evaluate. This is required by MLeap for data schema inference.
#'
#' @export
mlflow_save_model.ml_pipeline_model <- function(model,
path,
... |
#EXAMPLE: COIN TOSS
if(!require(ggplot2)){
install.packages("ggplot2", dependencies = TRUE)
library(ggplot2)
}
#Setting all the possible values for theta:
theta_values<-seq(from=0, to=1, length.out = 200)
#Compute the likelihood function:
likelihood<-dbinom(6, 10, prob=theta_values)
#Set the p... | /Intro_Bayesian_examples/Example1_CoinToss/n_coinTosses.R | no_license | AnnaBellido/Bayesian_Intro_Examples | R | false | false | 2,902 | r | #EXAMPLE: COIN TOSS
if(!require(ggplot2)){
install.packages("ggplot2", dependencies = TRUE)
library(ggplot2)
}
#Setting all the possible values for theta:
theta_values<-seq(from=0, to=1, length.out = 200)
#Compute the likelihood function:
likelihood<-dbinom(6, 10, prob=theta_values)
#Set the p... |
library(ptest)
### Name: B3
### Title: Benchmark set B3
### Aliases: B3
### Keywords: datasets
### ** Examples
data(alpha)
data(B3)
alphaB3 <- alpha[rownames(alpha) %in% B3,]
| /data/genthat_extracted_code/ptest/examples/B3.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 184 | r | library(ptest)
### Name: B3
### Title: Benchmark set B3
### Aliases: B3
### Keywords: datasets
### ** Examples
data(alpha)
data(B3)
alphaB3 <- alpha[rownames(alpha) %in% B3,]
|
# AUTO GENERATED FILE - DO NOT EDIT
vtkReader <- function(children=NULL, id=NULL, port=NULL, vtkClass=NULL, url=NULL, parseAsText=NULL, parseAsArrayBuffer=NULL, renderOnUpdate=NULL, resetCameraOnUpdate=NULL) {
props <- list(children=children, id=id, port=port, vtkClass=vtkClass, url=url, parseAsText=parseAsTe... | /R/vtkReader.R | permissive | plantly/dash-vtk | R | false | false | 882 | r | # AUTO GENERATED FILE - DO NOT EDIT
vtkReader <- function(children=NULL, id=NULL, port=NULL, vtkClass=NULL, url=NULL, parseAsText=NULL, parseAsArrayBuffer=NULL, renderOnUpdate=NULL, resetCameraOnUpdate=NULL) {
props <- list(children=children, id=id, port=port, vtkClass=vtkClass, url=url, parseAsText=parseAsTe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gene_features_class.R
\name{name}
\alias{name}
\title{Name generic}
\usage{
name(object, ...)
}
\description{
Name generic
}
| /man/name.Rd | no_license | nvolkova/MutSim | R | false | true | 203 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gene_features_class.R
\name{name}
\alias{name}
\title{Name generic}
\usage{
name(object, ...)
}
\description{
Name generic
}
|
##Hypothesis
girls <- c(2,4,5,6,7,6,7,8,9)
mean(girls)
boys <- c(6,9,9,9,9,9,9,9,9)
##Null hypothesis is both are equal girls = boys
## want to prove that girls are better than boys , this called alternate hypothesis
##by using t.test()
t.test(boys,girls,confi.level = 0.95)#, alternative = "less")
| /Hypothesis.R | no_license | malreddy8627/malreddy8627 | R | false | false | 300 | r | ##Hypothesis
girls <- c(2,4,5,6,7,6,7,8,9)
mean(girls)
boys <- c(6,9,9,9,9,9,9,9,9)
##Null hypothesis is both are equal girls = boys
## want to prove that girls are better than boys , this called alternate hypothesis
##by using t.test()
t.test(boys,girls,confi.level = 0.95)#, alternative = "less")
|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/Collate.r
\name{collator_freqs2}
\alias{collator_freqs2}
\title{A new version of collator_freqs() that calls collator_mutiple_lists_mx2() (and then
mean_array_pctile_CIs2()) instead of then 'non-2' versions. This means that
per... | /src/man/collator_freqs2.Rd | no_license | compassresearchcentre/simario | R | false | false | 2,894 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/Collate.r
\name{collator_freqs2}
\alias{collator_freqs2}
\title{A new version of collator_freqs() that calls collator_mutiple_lists_mx2() (and then
mean_array_pctile_CIs2()) instead of then 'non-2' versions. This means that
per... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/si_uniroot_conf_int.R
\name{univariate_si_conf_ints}
\alias{univariate_si_conf_ints}
\title{Calculate uniroot CIs on selection intensities}
\usage{
univariate_si_conf_ints(fit, lik_fn, min_si, max_si, conf)
}
\arguments{
\item{fit}{From bbmle... | /man/univariate_si_conf_ints.Rd | no_license | Townsend-Lab-Yale/cancereffectsizeR | R | false | true | 621 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/si_uniroot_conf_int.R
\name{univariate_si_conf_ints}
\alias{univariate_si_conf_ints}
\title{Calculate uniroot CIs on selection intensities}
\usage{
univariate_si_conf_ints(fit, lik_fn, min_si, max_si, conf)
}
\arguments{
\item{fit}{From bbmle... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sortable-package.R
\docType{package}
\name{sortable}
\alias{sortable}
\alias{_PACKAGE}
\alias{sortable-package}
\title{sortable: Drag-and-Drop in 'shiny' Apps with 'SortableJS'}
\description{
\if{html}{\figure{logo.png}{options: styl... | /man/sortable.Rd | no_license | cran/sortable | R | false | true | 2,048 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sortable-package.R
\docType{package}
\name{sortable}
\alias{sortable}
\alias{_PACKAGE}
\alias{sortable-package}
\title{sortable: Drag-and-Drop in 'shiny' Apps with 'SortableJS'}
\description{
\if{html}{\figure{logo.png}{options: styl... |
# Copyright 2015 Province of British Columbia
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | /tests/testthat/test-pareto.R | permissive | zhangjw7sustech/ssdtools | R | false | false | 3,105 | r | # Copyright 2015 Province of British Columbia
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{autoplot.gpsm_erf}
\alias{autoplot.gpsm_erf}
\title{A helper function for gpsm_erf object}
\usage{
\method{autoplot}{gpsm_erf}(object, ...)
}
\arguments{
\item{object}{A gpsm_erf object.}
\item{...}{Additional arguments passed t... | /man/autoplot.gpsm_erf.Rd | no_license | wxwx1993/GPSmatching | R | false | true | 480 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{autoplot.gpsm_erf}
\alias{autoplot.gpsm_erf}
\title{A helper function for gpsm_erf object}
\usage{
\method{autoplot}{gpsm_erf}(object, ...)
}
\arguments{
\item{object}{A gpsm_erf object.}
\item{...}{Additional arguments passed t... |
# List all the wordlist files in the WD and save it in "files"
files <- list.files()
# Loop for randomize and sample each wordlists in "files"
for (i in 1:length(files)) {
# Load wordlists one by one as listed in "files"
for (i in 1:length(files)) {
file.name <- files[i] # save wordlist file name
assign(fi... | /r/assign.R | no_license | stefanocoretta/snippets | R | false | false | 370 | r | # List all the wordlist files in the WD and save it in "files"
files <- list.files()
# Loop for randomize and sample each wordlists in "files"
for (i in 1:length(files)) {
# Load wordlists one by one as listed in "files"
for (i in 1:length(files)) {
file.name <- files[i] # save wordlist file name
assign(fi... |
library(fs)
test_that("validate factory - config tests", {
f <- new_factory(path = path_temp(), move_in = FALSE)
on.exit(dir_delete(f))
config_path <- path(f, "factory_config")
original_config <- as.data.frame(read.dcf(config_path))
original_names <- names(original_config)
tmp <- original_config
coln... | /tests/testthat/test-validate_factory.R | permissive | yadevi/reportfactory | R | false | false | 1,358 | r | library(fs)
test_that("validate factory - config tests", {
f <- new_factory(path = path_temp(), move_in = FALSE)
on.exit(dir_delete(f))
config_path <- path(f, "factory_config")
original_config <- as.data.frame(read.dcf(config_path))
original_names <- names(original_config)
tmp <- original_config
coln... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Source_Plotting.R
\name{GetColorDistribution}
\alias{GetColorDistribution}
\title{Get Colors}
\usage{
GetColorDistribution(P, Data, i, colors = c("coral1", "coral4"))
}
\arguments{
\item{P}{A list of parameters.}
\item{Data}{The Pre or Post ... | /Human_Cultural_Boundaries/man/GetColorDistribution.Rd | no_license | NeuroBio/HCB_R_Package | R | false | true | 487 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Source_Plotting.R
\name{GetColorDistribution}
\alias{GetColorDistribution}
\title{Get Colors}
\usage{
GetColorDistribution(P, Data, i, colors = c("coral1", "coral4"))
}
\arguments{
\item{P}{A list of parameters.}
\item{Data}{The Pre or Post ... |
library(httr)
library(readr)
options(scipen=999)
api_key = '62dNL6NiTagPRqbDVqaPn0UESAgiVH06kc6SKqwz'
url = paste("https://api.nal.usda.gov/ndb/list?format=json<=f&sort=n&max=500&api_key=",api_key,sep="")
r <- GET(url)
results = content(r)[[1]]$item
length(results)
offset=500
status_code = 200
while(status_code == 2... | /get_key_pairs.R | no_license | sminer3/nutrition_tracker | R | false | false | 902 | r | library(httr)
library(readr)
options(scipen=999)
api_key = '62dNL6NiTagPRqbDVqaPn0UESAgiVH06kc6SKqwz'
url = paste("https://api.nal.usda.gov/ndb/list?format=json<=f&sort=n&max=500&api_key=",api_key,sep="")
r <- GET(url)
results = content(r)[[1]]$item
length(results)
offset=500
status_code = 200
while(status_code == 2... |
## Set the path to the data directory
print(dir.data <- paste0(getwd(),"/"))
## Make a variable to hold the path to the file we want to import
print(path.abs.data.src <- paste0(
dir.data
,"household_power_consumption.txt"
))
## Confirm we have downloaded the data properly
stopifnot(file.exists(pa... | /plot4.r | no_license | kgbaird/ExData_Plotting1 | R | false | false | 2,874 | r |
## Set the path to the data directory
print(dir.data <- paste0(getwd(),"/"))
## Make a variable to hold the path to the file we want to import
print(path.abs.data.src <- paste0(
dir.data
,"household_power_consumption.txt"
))
## Confirm we have downloaded the data properly
stopifnot(file.exists(pa... |
\name{circos.genomicRect}
\alias{circos.genomicRect}
\title{
Draw rectangle-like grid, specifically for genomic graphics
}
\description{
Draw rectangle-like grid, specifically for genomic graphics
}
\usage{
circos.genomicRect(
region,
value = NULL,
ytop = NULL,
ybottom = NULL,
ytop.column = NULL,
... | /man/circos.genomicRect.Rd | permissive | dgabbe/circlize | R | false | false | 4,769 | rd | \name{circos.genomicRect}
\alias{circos.genomicRect}
\title{
Draw rectangle-like grid, specifically for genomic graphics
}
\description{
Draw rectangle-like grid, specifically for genomic graphics
}
\usage{
circos.genomicRect(
region,
value = NULL,
ytop = NULL,
ybottom = NULL,
ytop.column = NULL,
... |
library(here)
library(tidyverse)
summaries = read_rds(here('data', 'summary.rds'))
odds = read_rds(here('data', 'odds.rds'))
events = read_rds(here('data', 'events.rds'))
minute.data = summaries %>%
filter(has_events) %>%
filter(!has_invalid_match) %>%
left_join(events, by = c("season", "stagecode", "tieid",... | /model/v3/00_prep-predictors.R | permissive | ryanvmenezes/tiepredict | R | false | false | 5,454 | r | library(here)
library(tidyverse)
summaries = read_rds(here('data', 'summary.rds'))
odds = read_rds(here('data', 'odds.rds'))
events = read_rds(here('data', 'events.rds'))
minute.data = summaries %>%
filter(has_events) %>%
filter(!has_invalid_match) %>%
left_join(events, by = c("season", "stagecode", "tieid",... |
library("alphahull")
library("adehabitatHR")
library('maptools')
library(RCurl)
g_1000<-read.delim("/Users/weiz/Downloads/recoded_1000G.raw",header = T,sep = " ")
rownames(g_1000) <- g_1000[,2]
unprocessed_single_cell_data_total_transposed <-g_1000[,7:39188]
population<- read.delim("/Users/weiz/Downloads/igsr_sampl... | /Topological analysis.R | no_license | weizhuang128/TSNE_DDRTree_Human_Trajectories | R | false | false | 2,695 | r |
library("alphahull")
library("adehabitatHR")
library('maptools')
library(RCurl)
g_1000<-read.delim("/Users/weiz/Downloads/recoded_1000G.raw",header = T,sep = " ")
rownames(g_1000) <- g_1000[,2]
unprocessed_single_cell_data_total_transposed <-g_1000[,7:39188]
population<- read.delim("/Users/weiz/Downloads/igsr_sampl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selection_path.R
\name{reg_path}
\alias{reg_path}
\title{reg_path}
\usage{
reg_path(
net,
lambda,
eta_max,
eta_min,
capac_infos,
selection_diff = 1,
selection_min,
selection_max,
silent
)
}
\arguments{
\item{net}{a gene netw... | /man/reg_path.Rd | permissive | YuanlongLiu/SigMod | R | false | true | 600 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selection_path.R
\name{reg_path}
\alias{reg_path}
\title{reg_path}
\usage{
reg_path(
net,
lambda,
eta_max,
eta_min,
capac_infos,
selection_diff = 1,
selection_min,
selection_max,
silent
)
}
\arguments{
\item{net}{a gene netw... |
library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/pancreas.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.5,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/pancreas/pancreas_058.txt',appe... | /Model/EN/AvgRank/pancreas/pancreas_058.R | no_license | leon1003/QSMART | R | false | false | 358 | r | library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/pancreas.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.5,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/pancreas/pancreas_058.txt',appe... |
#################################################
############## GENERAL SETUP
#clear workspace:
rm(list=ls())
#set working directories
setwd("~/Dropbox/academia/experimentals/processing/analyse-process/ISA/mainExp/")
#load libraries
library(lme4)
library(LaplacesDemon)
library(plyr)
library(gridExtra)
libr... | /Exp1/exp1A/bayesianChecks/glmer/glmComparison1A.R | no_license | Nian-Jingqing/ior | R | false | false | 5,359 | r | #################################################
############## GENERAL SETUP
#clear workspace:
rm(list=ls())
#set working directories
setwd("~/Dropbox/academia/experimentals/processing/analyse-process/ISA/mainExp/")
#load libraries
library(lme4)
library(LaplacesDemon)
library(plyr)
library(gridExtra)
libr... |
library(PkgsFromFiles)
### Name: pff_plot_summary_pkgs
### Title: Plots a summary of used packages fround in files from a given
### folder
### Aliases: pff_plot_summary_pkgs
### ** Examples
my.dir <- dirname(system.file('extdata', package = 'PkgsFromFiles'))
p <- pff_plot_summary_pkgs(my.dir)
print(p)
| /data/genthat_extracted_code/PkgsFromFiles/examples/pff_plot_summary_pkgs.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 315 | r | library(PkgsFromFiles)
### Name: pff_plot_summary_pkgs
### Title: Plots a summary of used packages fround in files from a given
### folder
### Aliases: pff_plot_summary_pkgs
### ** Examples
my.dir <- dirname(system.file('extdata', package = 'PkgsFromFiles'))
p <- pff_plot_summary_pkgs(my.dir)
print(p)
|
## Macro View: makeCacheMatrix function creates a special "matrix" object
## cachesolve function computes the inverse of this "matrix object.
## In addition, if the inverse has already been calculated, then cachsolve function will retrieve this inverse from the cache.
## Input: e.g. a <- makeCacheMatrix(matrix(c(1,2,3... | /cachematrix.R | no_license | datamick/ProgrammingAssignment2 | R | false | false | 1,616 | r | ## Macro View: makeCacheMatrix function creates a special "matrix" object
## cachesolve function computes the inverse of this "matrix object.
## In addition, if the inverse has already been calculated, then cachsolve function will retrieve this inverse from the cache.
## Input: e.g. a <- makeCacheMatrix(matrix(c(1,2,3... |
#' Processed NMR urine spectrum.
#'
#' An array of values containing information about metabolites within a urine sample.
#'
#' @format an array with 55674 elements with their value pertaining to the ppm intensity
"x"
| /R/x.R | permissive | kbario/NMRalter8r | R | false | false | 218 | r | #' Processed NMR urine spectrum.
#'
#' An array of values containing information about metabolites within a urine sample.
#'
#' @format an array with 55674 elements with their value pertaining to the ppm intensity
"x"
|
/dfg_for_kilimanjaro/insa/landuse_bwplot.R | no_license | environmentalinformatics-marburg/magic | R | false | false | 10,973 | r | ||
plot.Cross.Street.Type.raw <- function(feature) {
t <- sort(table(feature), decreasing=TRUE)
par(mar=c(5,12,5,2))
barplot(t, horiz=TRUE, las=1, main="Cross.Street.Type (raw)")
}
if (!exists(".no.output")) {
load("RData/Cross.Street.Type.raw.RData")
pdf(file="Cross.Street.Type.raw.RPlot.pdf")
plot.Cross.Str... | /src/feature/plot/Cross.Street.Type.raw.R | no_license | donaldong/montgomery_county_crash | R | false | false | 343 | r | plot.Cross.Street.Type.raw <- function(feature) {
t <- sort(table(feature), decreasing=TRUE)
par(mar=c(5,12,5,2))
barplot(t, horiz=TRUE, las=1, main="Cross.Street.Type (raw)")
}
if (!exists(".no.output")) {
load("RData/Cross.Street.Type.raw.RData")
pdf(file="Cross.Street.Type.raw.RPlot.pdf")
plot.Cross.Str... |
#' Downloading ERA5(Land)-data from ECMWF servers
#'
#' This function breaks down download calls into monthly intervals, downloads ERA5(-Land) data from ECMWF servers according to user-specification, and fuses the downloaded files together according to user-demands. The actual time to download is dependent on ECMWF dow... | /R/download.R | permissive | juvelas/KrigR | R | false | false | 21,472 | r | #' Downloading ERA5(Land)-data from ECMWF servers
#'
#' This function breaks down download calls into monthly intervals, downloads ERA5(-Land) data from ECMWF servers according to user-specification, and fuses the downloaded files together according to user-demands. The actual time to download is dependent on ECMWF dow... |
# version 1.0
source("https://raw.githubusercontent.com/eogasawara/mylibrary/master/myTransform.R")
source("https://raw.githubusercontent.com/eogasawara/mylibrary/master/myFitting.R")
# smoothing
smoothing <- function(n) {
obj <- dal_transform()
obj$n <- n
class(obj) <- append("smoothing", class(obj))
retu... | /mySmoothing.R | permissive | damiaomelo/mylibrary | R | false | false | 2,710 | r | # version 1.0
source("https://raw.githubusercontent.com/eogasawara/mylibrary/master/myTransform.R")
source("https://raw.githubusercontent.com/eogasawara/mylibrary/master/myFitting.R")
# smoothing
smoothing <- function(n) {
obj <- dal_transform()
obj$n <- n
class(obj) <- append("smoothing", class(obj))
retu... |
#!/usr/bin/env Rscript
library(readr)
library(dplyr)
library(tibble)
library(ggplot2)
library(cowplot)
library(lubridate)
library(gridExtra)
#### Figure 2: IAT vs. 2nd line usage Plot ####
iat <- read_csv(file = "fig_data/figure_2_threshold_sensitivity.csv") %>%
mutate(spectrum = broad_prop*100,
iat = iat... | /notebooks/plot_figure_2.R | permissive | clinicalml/amr-uti-stm | R | false | false | 1,361 | r | #!/usr/bin/env Rscript
library(readr)
library(dplyr)
library(tibble)
library(ggplot2)
library(cowplot)
library(lubridate)
library(gridExtra)
#### Figure 2: IAT vs. 2nd line usage Plot ####
iat <- read_csv(file = "fig_data/figure_2_threshold_sensitivity.csv") %>%
mutate(spectrum = broad_prop*100,
iat = iat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_empty_branch.R
\name{create_empty_branch}
\alias{create_empty_branch}
\title{Create Empty Branch From Github}
\usage{
create_empty_branch(
repo = NULL,
branch = NULL,
org = "KWB-R",
set_githubuser = TRUE,
git_exe = path_to_gi... | /man/create_empty_branch.Rd | permissive | KWB-R/kwb.pkgbuild | R | false | true | 1,267 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_empty_branch.R
\name{create_empty_branch}
\alias{create_empty_branch}
\title{Create Empty Branch From Github}
\usage{
create_empty_branch(
repo = NULL,
branch = NULL,
org = "KWB-R",
set_githubuser = TRUE,
git_exe = path_to_gi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isNumberOrNaOrNanOrInfVector.R
\name{isNumberOrNaOrNanOrInfVector}
\alias{isNumberOrNaOrNanOrInfVector}
\title{Wrapper for the checkarg function, using specific parameter settings.}
\usage{
isNumberOrNaOrNanOrInfVector(argument, default... | /man/isNumberOrNaOrNanOrInfVector.Rd | no_license | cran/checkarg | R | false | true | 2,467 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isNumberOrNaOrNanOrInfVector.R
\name{isNumberOrNaOrNanOrInfVector}
\alias{isNumberOrNaOrNanOrInfVector}
\title{Wrapper for the checkarg function, using specific parameter settings.}
\usage{
isNumberOrNaOrNanOrInfVector(argument, default... |
############################################################################
##log in UI
uiLogin <- function(){
tagList(
fluidPage(
br(), br(),br(),
wellPanel(
# span(h5("(Test account: user name: test, password: test)"), style = "color:red"),
textInput(inputId = "user_name",
... | /ui/logInSignUpUI.R | no_license | jaspershen/pregnancy_project_website | R | false | false | 8,495 | r | ############################################################################
##log in UI
uiLogin <- function(){
tagList(
fluidPage(
br(), br(),br(),
wellPanel(
# span(h5("(Test account: user name: test, password: test)"), style = "color:red"),
textInput(inputId = "user_name",
... |
#' Buy a note on the primary market
#'
#' Create an order to purchase a note. If the account has sufficient
#' funding, the note will be purchased once the loan has passed
#' through the funding stage.
#'
#' @param loanId Unique ID for loans. These can be found using the
#' ListedLoans() function.
#' @param amount Amou... | /R/lc_SubmitOrder.R | permissive | akshaychhabra/LendingClub | R | false | false | 1,989 | r | #' Buy a note on the primary market
#'
#' Create an order to purchase a note. If the account has sufficient
#' funding, the note will be purchased once the loan has passed
#' through the funding stage.
#'
#' @param loanId Unique ID for loans. These can be found using the
#' ListedLoans() function.
#' @param amount Amou... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_gallery}
\alias{get_gallery}
\title{Get Gallery}
\usage{
get_gallery()
}
\description{
Remove '/' from the end of the Gallery URL
}
| /man/get_gallery.Rd | no_license | cran/alterryx | R | false | true | 239 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_gallery}
\alias{get_gallery}
\title{Get Gallery}
\usage{
get_gallery()
}
\description{
Remove '/' from the end of the Gallery URL
}
|
# Check to see if the data sets exist. If not, load it in.
if(!exists("NEI")){
NEI <- readRDS("summarySCC_PM25.rds")
}
if(!exists("SCC")){
SCC <- readRDS("Source_Classification_Code.rds")
}
# Aggregate the PM2.5 data points so we can graph it by year, specifically for fips 24510.
yearData <- aggregate(NEI$Emissio... | /plot2.R | no_license | slagathorr/exploratory_proj2 | R | false | false | 797 | r | # Check to see if the data sets exist. If not, load it in.
if(!exists("NEI")){
NEI <- readRDS("summarySCC_PM25.rds")
}
if(!exists("SCC")){
SCC <- readRDS("Source_Classification_Code.rds")
}
# Aggregate the PM2.5 data points so we can graph it by year, specifically for fips 24510.
yearData <- aggregate(NEI$Emissio... |
### Sparse PLS with Hyperparameter optimisation ###
#Setup
library(mixOmics)
library(reshape2)
library(psych)
library(Matrix)
library(gtools)
library(ggplot2)
library(MCMCpack)
library(caret)
#Load data
#Getting MEG connectome from adjacency matrices
wd <- "U:/Documents/ACE_Data/Thesis_Analysis/MI_PLS_MEG/"
setwd(wd)... | /MI_multiblock_sparsePLS.R | no_license | ajohnson62/PLS_Analysis | R | false | false | 49,905 | r | ### Sparse PLS with Hyperparameter optimisation ###
#Setup
library(mixOmics)
library(reshape2)
library(psych)
library(Matrix)
library(gtools)
library(ggplot2)
library(MCMCpack)
library(caret)
#Load data
#Getting MEG connectome from adjacency matrices
wd <- "U:/Documents/ACE_Data/Thesis_Analysis/MI_PLS_MEG/"
setwd(wd)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitHRegL1.R
\name{fitHRegL1}
\alias{fitHRegL1}
\title{L1 Fit of Four Parameter Harmonic Regression}
\usage{
fitHRegL1(z, t = 1:n, K = 500, ncpu = 1, lambdaRange = c(1/n,
0.45))
}
\arguments{
\item{z}{series.}
\item{t}{Time points.}
\item{... | /man/fitHRegL1.Rd | no_license | CliffordLai/harper | R | false | true | 2,459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitHRegL1.R
\name{fitHRegL1}
\alias{fitHRegL1}
\title{L1 Fit of Four Parameter Harmonic Regression}
\usage{
fitHRegL1(z, t = 1:n, K = 500, ncpu = 1, lambdaRange = c(1/n,
0.45))
}
\arguments{
\item{z}{series.}
\item{t}{Time points.}
\item{... |
setwd("/Users/dougolson/Google Drive/Coursera/Exploratory\ Data\ Analysis/")
dataUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url = dataUrl,destfile = "./data.zip",method = "curl")
unzip("./data.zip")
list.files()
data <- read.csv("~/Google Drive/Coursera/... | /Plot_2.R | no_license | dougolson/ExData_Plotting1 | R | false | false | 970 | r | setwd("/Users/dougolson/Google Drive/Coursera/Exploratory\ Data\ Analysis/")
dataUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url = dataUrl,destfile = "./data.zip",method = "curl")
unzip("./data.zip")
list.files()
data <- read.csv("~/Google Drive/Coursera/... |
library(odr)
### Name: power.2m
### Title: Budget and/or sample size, power, MDES calculation for two-level
### multisite randomized trials
### Aliases: power.2m
### ** Examples
# unconstrained optimal design #---------
myod1 <- od.2m(icc = 0.2, omega = 0.02, r12 = 0.5, r22m = 0.5,
c1 = 1, c2 = 10... | /data/genthat_extracted_code/odr/examples/power.2m.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,630 | r | library(odr)
### Name: power.2m
### Title: Budget and/or sample size, power, MDES calculation for two-level
### multisite randomized trials
### Aliases: power.2m
### ** Examples
# unconstrained optimal design #---------
myod1 <- od.2m(icc = 0.2, omega = 0.02, r12 = 0.5, r22m = 0.5,
c1 = 1, c2 = 10... |
# install.packages("plotROC")
# https://cran.r-project.org/web/packages/plotROC/plotROC.pdf
# modified example from https://rviews.rstudio.com/2019/03/01/some-r-packages-for-roc-curves/
# source("naive_bayes/bankloan_naive_bayes.R")
library(plotROC)
ggplot(mapping = aes(m = test.probabilities.4[,1], d = ifelse(test.... | /naive_bayes/bankloan_naive_bayes_roc.R | no_license | angelazhu623/gwu-data-mining | R | false | false | 457 | r | # install.packages("plotROC")
# https://cran.r-project.org/web/packages/plotROC/plotROC.pdf
# modified example from https://rviews.rstudio.com/2019/03/01/some-r-packages-for-roc-curves/
# source("naive_bayes/bankloan_naive_bayes.R")
library(plotROC)
ggplot(mapping = aes(m = test.probabilities.4[,1], d = ifelse(test.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cli.R
\name{cli_par}
\alias{cli_par}
\title{CLI paragraph}
\usage{
cli_par(id = NULL, class = NULL, .auto_close = TRUE, .envir = parent.frame())
}
\arguments{
\item{id}{Element id, a string. If \code{NULL}, then a new id is generated
and retu... | /man/cli_par.Rd | permissive | r-lib/cli | R | false | true | 2,311 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cli.R
\name{cli_par}
\alias{cli_par}
\title{CLI paragraph}
\usage{
cli_par(id = NULL, class = NULL, .auto_close = TRUE, .envir = parent.frame())
}
\arguments{
\item{id}{Element id, a string. If \code{NULL}, then a new id is generated
and retu... |
#' Order samples within a network.
#'
#' Get the order of samples within a module based on the module summary vector.
#'
#' @inheritParams common_params
#' @inheritParams simplify_param
#'
#' @param na.rm logical; If \code{TRUE} variables present in the
#' \code{discovery} dataset but missing from the \code{test}... | /R/orderSamples.R | no_license | xflicsu/NetRep | R | false | false | 8,989 | r | #' Order samples within a network.
#'
#' Get the order of samples within a module based on the module summary vector.
#'
#' @inheritParams common_params
#' @inheritParams simplify_param
#'
#' @param na.rm logical; If \code{TRUE} variables present in the
#' \code{discovery} dataset but missing from the \code{test}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SVFWholeNL.R
\name{SVFWholeNL}
\alias{SVFWholeNL}
\title{SVF Netherlands}
\usage{
SVFWholeNL(filepath, maxView)
}
\arguments{
\item{filepath}{path to the LAS files}
\item{maxView}{maximum viewing distance for the sky view factor calculations... | /man/SVFWholeNL.Rd | no_license | AnneMossink/SkyViewFactor | R | false | true | 384 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SVFWholeNL.R
\name{SVFWholeNL}
\alias{SVFWholeNL}
\title{SVF Netherlands}
\usage{
SVFWholeNL(filepath, maxView)
}
\arguments{
\item{filepath}{path to the LAS files}
\item{maxView}{maximum viewing distance for the sky view factor calculations... |
# run_app() | /app.R | permissive | listen2099/electron-quick-start | R | false | false | 11 | r | # run_app() |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\name{richKEGG}
\alias{richKEGG}
\title{richKEGG method}
\usage{
richKEGG(
x,
kodata,
pvalue = 0.05,
padj = NULL,
organism = NULL,
ontology = "KEGG",
keytype = NULL,
minSize = 2,
maxSize = 500,
keepRich = TRU... | /man/richKEGG-methods.Rd | no_license | Arinze-BioX/richR | R | false | true | 777 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\name{richKEGG}
\alias{richKEGG}
\title{richKEGG method}
\usage{
richKEGG(
x,
kodata,
pvalue = 0.05,
padj = NULL,
organism = NULL,
ontology = "KEGG",
keytype = NULL,
minSize = 2,
maxSize = 500,
keepRich = TRU... |
library(shiny)
library(dplyr)
library(ggplot2)
library(gmodels)
library(ggfortify)
library(RSQLite)
library(MASS)
library(maxLik)
source("datasetsServer.R")
multivariateServer <- function(input, output, session,dataSet) {
ns <- session$ns
############# Get the Dataset ################
myData <- reactiv... | /multivariateServer.R | no_license | jberilo/didat-1 | R | false | false | 12,037 | r | library(shiny)
library(dplyr)
library(ggplot2)
library(gmodels)
library(ggfortify)
library(RSQLite)
library(MASS)
library(maxLik)
source("datasetsServer.R")
multivariateServer <- function(input, output, session,dataSet) {
ns <- session$ns
############# Get the Dataset ################
myData <- reactiv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.