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 |
|---|---|---|---|---|---|---|---|---|---|
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615765557-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,802 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
#######################
## Example SQL Creds ##
#######################
sql_db <-"some-db"
sql_usr <-"huxley"
sql_pw<-"!" | /dependencies/secrets_example.R | no_license | Sillson/friaR | R | false | false | 121 | r | #######################
## Example SQL Creds ##
#######################
sql_db <-"some-db"
sql_usr <-"huxley"
sql_pw<-"!" |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31582586514531e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615828809-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 361 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31582586514531e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
## File Name: mi.anova.R
## File Version: 0.34
mi.anova <- function( mi.res, formula, type=2 ){
# INPUT:
# mi.res ... mids object (from mice imputation function)
# formula ... formula for ANOVA model (variable names must be in colnames(mi.list[[1]]), ...
# converting MICE object to mi.list
if (typ... | /R/mi.anova.R | no_license | stefvanbuuren/miceadds | R | false | false | 4,841 | r | ## File Name: mi.anova.R
## File Version: 0.34
mi.anova <- function( mi.res, formula, type=2 ){
# INPUT:
# mi.res ... mids object (from mice imputation function)
# formula ... formula for ANOVA model (variable names must be in colnames(mi.list[[1]]), ...
# converting MICE object to mi.list
if (typ... |
library(class)
library(caret)
library(ggplot2)
install.packages('ggplot2')
library(rpart)
library(rpart.plot)
library(randomForest)
library(e1071)
set.seed(123)
path = "E:\\Imarticus\\R Final Project\\dataset_diabetes\\diabetic_data.csv "
diab = read.csv(path,header=T)
colnames(diab)
head(diab)
ncol(di... | /Final_Project_R.R | no_license | siddharth0305/Diabetes | R | false | false | 11,308 | r | library(class)
library(caret)
library(ggplot2)
install.packages('ggplot2')
library(rpart)
library(rpart.plot)
library(randomForest)
library(e1071)
set.seed(123)
path = "E:\\Imarticus\\R Final Project\\dataset_diabetes\\diabetic_data.csv "
diab = read.csv(path,header=T)
colnames(diab)
head(diab)
ncol(di... |
# TOOL deseq2.R: "Differential expression using DESeq2" (Differential expression analysis using the DESeq2 Bioconductor package. You can create the input count table and phenodata file using the tool \"Utilities - Define NGS experiment\". If you have more than two experimental groups, note that the output figures sum u... | /tools/ngs/R/deseq2.R | permissive | edwardtao/chipster-tools | R | false | false | 9,151 | r | # TOOL deseq2.R: "Differential expression using DESeq2" (Differential expression analysis using the DESeq2 Bioconductor package. You can create the input count table and phenodata file using the tool \"Utilities - Define NGS experiment\". If you have more than two experimental groups, note that the output figures sum u... |
"emaxsimB" <-
function(nsim, genObj, prior, modType=4,binary=FALSE,seed=12357,
check=FALSE,nproc=parallel::detectCores(),
negEmax=FALSE,ed50contr=NULL, lambdacontr=NULL,testMods=NULL,
idmax=length(doselev),mcmc=mcmc.control(),customCode=NULL,
customParms=NULL,
description="")
{
... | /R/emaxsimB.R | no_license | cran/clinDR | R | false | false | 14,019 | r | "emaxsimB" <-
function(nsim, genObj, prior, modType=4,binary=FALSE,seed=12357,
check=FALSE,nproc=parallel::detectCores(),
negEmax=FALSE,ed50contr=NULL, lambdacontr=NULL,testMods=NULL,
idmax=length(doselev),mcmc=mcmc.control(),customCode=NULL,
customParms=NULL,
description="")
{
... |
### TERN LANDSCAPES
# Soil pH 4A1 [geoms]
# Author: Brendan Malone
# Email: brendan.malone@csiro.au
# created: 13.9.21
# modified: 16.9.21
# CODE PURPOSE
# Moasic prediction geom tiles
##
## libraries
library(sp);library(rgdal);library(raster)
# root directories
root<- "/datasets/work/af-tern-mal-deb/work/projects/... | /Production/DSM/pH/digital_soil_mapping/mosaic/tile_mosaic_4a1_geoms_labdat_d6.R | permissive | AusSoilsDSM/SLGA | R | false | false | 2,046 | r | ### TERN LANDSCAPES
# Soil pH 4A1 [geoms]
# Author: Brendan Malone
# Email: brendan.malone@csiro.au
# created: 13.9.21
# modified: 16.9.21
# CODE PURPOSE
# Moasic prediction geom tiles
##
## libraries
library(sp);library(rgdal);library(raster)
# root directories
root<- "/datasets/work/af-tern-mal-deb/work/projects/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_next_version.R
\name{get_next_version}
\alias{get_next_version}
\title{get the next version of a data package}
\usage{
get_next_version(
provided_scope = "knb-lter-cap",
provided_identifier,
display_message = FALSE
)
}
\arguments{
\... | /man/get_next_version.Rd | no_license | CAPLTER/capeml | R | false | true | 1,393 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_next_version.R
\name{get_next_version}
\alias{get_next_version}
\title{get the next version of a data package}
\usage{
get_next_version(
provided_scope = "knb-lter-cap",
provided_identifier,
display_message = FALSE
)
}
\arguments{
\... |
#' Recursive density function describing the probability of \eqn{(W(T)-\mu T; T)}
#'
#' Recursive density function describing the probability of \eqn{(W(T)-\mu T; T)}
#'
#' @param u Input of function
#' @param i Index of interim look, e.g., \code{i=2} for the second interim look.
#' \code{i=length(t_vec)} for th... | /R/func_redensity.R | permissive | fzhang8/gsdbias | R | false | false | 1,020 | r |
#' Recursive density function describing the probability of \eqn{(W(T)-\mu T; T)}
#'
#' Recursive density function describing the probability of \eqn{(W(T)-\mu T; T)}
#'
#' @param u Input of function
#' @param i Index of interim look, e.g., \code{i=2} for the second interim look.
#' \code{i=length(t_vec)} for th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/codeartifact_operations.R
\name{codeartifact_update_package_versions_status}
\alias{codeartifact_update_package_versions_status}
\title{Updates the status of one or more versions of a package}
\usage{
codeartifact_update_package_versions_stat... | /paws/man/codeartifact_update_package_versions_status.Rd | permissive | sanchezvivi/paws | R | false | true | 2,909 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/codeartifact_operations.R
\name{codeartifact_update_package_versions_status}
\alias{codeartifact_update_package_versions_status}
\title{Updates the status of one or more versions of a package}
\usage{
codeartifact_update_package_versions_stat... |
# Title: Generate csv of centroids MODIS
# date: nov 2016
# Author: Pérez-Luque AJ @ajpelu
# ------
# Load packages
library('rgdal')
library('sp')
library('tidyverse')
# ------
# ------
# Set dir
mymachine <- '/Users/ajpelu/'
# mymachine <- '/Users/ajpeluLap/'
di <- paste0(mymachine, 'Dropbox/phd/phd_repos/qpyr... | /R/generate_csv_modis_centroid.R | no_license | ajpelu/qpyr_distribution | R | false | false | 1,201 | r | # Title: Generate csv of centroids MODIS
# date: nov 2016
# Author: Pérez-Luque AJ @ajpelu
# ------
# Load packages
library('rgdal')
library('sp')
library('tidyverse')
# ------
# ------
# Set dir
mymachine <- '/Users/ajpelu/'
# mymachine <- '/Users/ajpeluLap/'
di <- paste0(mymachine, 'Dropbox/phd/phd_repos/qpyr... |
# install.packages("V8")
library(V8)
source("R_functions/Sub_Functions_For_App.R")
source("R_functions/Main_Function_For_App.R")
library(mlbench)
library(shinyjs)
library(shiny)
jsResetCode <- "shinyjs.reset = function() {history.go(0)}" # Define the js method that resets the page
ui <- navbarPage(title="TreeMaster"... | /TreeMaster.R | no_license | linchen-deng/TreeMasterShiny | R | false | false | 22,398 | r |
# install.packages("V8")
library(V8)
source("R_functions/Sub_Functions_For_App.R")
source("R_functions/Main_Function_For_App.R")
library(mlbench)
library(shinyjs)
library(shiny)
jsResetCode <- "shinyjs.reset = function() {history.go(0)}" # Define the js method that resets the page
ui <- navbarPage(title="TreeMaster"... |
###################################
# Script de instalação dos pacotes
# R version 4.1.1
##################################
## Usamos o seguinte comando para a instalação dos pacotes que estão no CRAN do R (faça isso caso estes pacotes NÃO ESTEJAM INSTALADOS).
## Obs.: A instalação só precisa ser feita uma vez.
in... | /R/1-Scripts _Pre_Modelagem/1-install_packages.R | no_license | mariapaaiva/projeto_tfunalis | R | false | false | 1,213 | r | ###################################
# Script de instalação dos pacotes
# R version 4.1.1
##################################
## Usamos o seguinte comando para a instalação dos pacotes que estão no CRAN do R (faça isso caso estes pacotes NÃO ESTEJAM INSTALADOS).
## Obs.: A instalação só precisa ser feita uma vez.
in... |
testlist <- list(Beta = 0, CVLinf = -1.36287613609745e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829288-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 487 | r | testlist <- list(Beta = 0, CVLinf = -1.36287613609745e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... |
/separate_scripts/02.glm.project.R | no_license | jjvanderwal/MQ_JCU_work | R | false | false | 5,444 | r | ||
source("config/install-r-libraries.R")
source("legendas.R")
source("candidatos.R")
source("votos.R")
source("consolidacao-eleicao.R")
cat(green("Iniciando atualização de dados\n"))
if (!dir.exists(DATA_DIR)) {
dir.create(DATA_DIR)
}
con = getCon()
tryCatch({
main_atualiza_dados_consolidacao_eleicao()
main_... | /atualizacao-cache/main.R | no_license | fredpolicarpo/de-olho-no-BR | R | false | false | 458 | r | source("config/install-r-libraries.R")
source("legendas.R")
source("candidatos.R")
source("votos.R")
source("consolidacao-eleicao.R")
cat(green("Iniciando atualização de dados\n"))
if (!dir.exists(DATA_DIR)) {
dir.create(DATA_DIR)
}
con = getCon()
tryCatch({
main_atualiza_dados_consolidacao_eleicao()
main_... |
##################
# STAT775
# Midterm
# Problem 03
#
#
##################
#
# Initial Setup
#
setwd("C:/Users/Terence/Documents/GitHub/STAT775/Midterm/")
# setwd("~/STAT775/HW03/")
DATA.FILE.NAME <- "../DataSets/south.african.heart.disease/data.disease"
#
# Data Handling
#
shuffle.data <- function(x) {
# x: a n... | /STAT775/Midterm/Prolem_03.R | permissive | T-R0D/Past-Courses | R | false | false | 9,678 | r | ##################
# STAT775
# Midterm
# Problem 03
#
#
##################
#
# Initial Setup
#
setwd("C:/Users/Terence/Documents/GitHub/STAT775/Midterm/")
# setwd("~/STAT775/HW03/")
DATA.FILE.NAME <- "../DataSets/south.african.heart.disease/data.disease"
#
# Data Handling
#
shuffle.data <- function(x) {
# x: a n... |
############################################
## Intro. à Inferência Bayesiana - Lista 2
## -> Questão 6
############################################
library(TeachingDemos)
library(ggplot2)
library(latex2exp)
library(pscl)
library(R2OpenBUGS)
library(coda)
library(lattice)
library(gridExtra)
# A) Modelling the prior ... | /Masters/CCP9016 - INTRODUÇÃO À INFERÊNCIA BAYESIANA/Exercises/02/Q6.r | no_license | TioMinho/UFC_Courses | R | false | false | 970 | r | ############################################
## Intro. à Inferência Bayesiana - Lista 2
## -> Questão 6
############################################
library(TeachingDemos)
library(ggplot2)
library(latex2exp)
library(pscl)
library(R2OpenBUGS)
library(coda)
library(lattice)
library(gridExtra)
# A) Modelling the prior ... |
#' SSmase() computes MASE for one-step ahead hindcasting cross-validations of indices
#'
#' MASE for one-step ahead hindcasting cross-validations and computes MASE from prediction redisuals.
#' MASE is calculated the average ratio of mean absolute error (MAE) of prediction residuals (MAE.PR) and Naive Predictions (MAE... | /R/SSmase.R | no_license | MOshima-PIFSC/ss3diags | R | false | false | 9,904 | r | #' SSmase() computes MASE for one-step ahead hindcasting cross-validations of indices
#'
#' MASE for one-step ahead hindcasting cross-validations and computes MASE from prediction redisuals.
#' MASE is calculated the average ratio of mean absolute error (MAE) of prediction residuals (MAE.PR) and Naive Predictions (MAE... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adp.sontek.R
\name{read.adp.sontek}
\alias{read.adp.sontek}
\title{Read a Sontek ADP File}
\usage{
read.adp.sontek(file, from = 1, to, by = 1, tz = getOption("oceTz"),
longitude = NA, latitude = NA, type = c("adp", "pcadp"),
monitor = FAL... | /man/read.adp.sontek.Rd | no_license | yuanjisun/oce | R | false | true | 3,853 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adp.sontek.R
\name{read.adp.sontek}
\alias{read.adp.sontek}
\title{Read a Sontek ADP File}
\usage{
read.adp.sontek(file, from = 1, to, by = 1, tz = getOption("oceTz"),
longitude = NA, latitude = NA, type = c("adp", "pcadp"),
monitor = FAL... |
# Created on
# Course work:
# @author:
# Source:
vector1 <- c(1:3)
vector2 <- c(9:14)
result <- array(c(vector1,vector2),dim = c(3,3,2))
# print 1st element of the 3rd column from the first matrix
ele2 <- result[1,3,1]
print(ele2) | /chaaya/accessing_array_element.r | no_license | tactlabs/r-samples | R | false | false | 235 | r | # Created on
# Course work:
# @author:
# Source:
vector1 <- c(1:3)
vector2 <- c(9:14)
result <- array(c(vector1,vector2),dim = c(3,3,2))
# print 1st element of the 3rd column from the first matrix
ele2 <- result[1,3,1]
print(ele2) |
species_vector <- c('Bufo bufo',
'BUbo bubo',
'B. bubo',
'Buteo sp','Buteosp','buteosp1','buteo sp1','Buteo_sp1','Buteo_sp 1',
'Buteo buteo 1758 Linnée','Buteo buteo (linnaeus)',
'Buteo buteo meridionalis',
... | /data/species_names_examples.r | no_license | AlbanSagouis/iClean | R | false | false | 596 | r | species_vector <- c('Bufo bufo',
'BUbo bubo',
'B. bubo',
'Buteo sp','Buteosp','buteosp1','buteo sp1','Buteo_sp1','Buteo_sp 1',
'Buteo buteo 1758 Linnée','Buteo buteo (linnaeus)',
'Buteo buteo meridionalis',
... |
# ---- fit-1pl-hier-stan ----
library(rstan);
model_hier <- stan_model("irt_1pl_hier.stan");
fit_hier <-sampling(model_hier, data = c("I", "J", "y"),
refresh=2000, seed=1234)
options("width"=100);
print(fit_hier, c(paste("b[", 1:5, "]"), paste("theta[", 1:5, "]"),
"mu_b", "sigma_... | /test/integration/example-models/knitr/irt/irt-1pl-hier-fit.R | permissive | nhuurre/stanc3 | R | false | false | 488 | r | # ---- fit-1pl-hier-stan ----
library(rstan);
model_hier <- stan_model("irt_1pl_hier.stan");
fit_hier <-sampling(model_hier, data = c("I", "J", "y"),
refresh=2000, seed=1234)
options("width"=100);
print(fit_hier, c(paste("b[", 1:5, "]"), paste("theta[", 1:5, "]"),
"mu_b", "sigma_... |
help(Distributions) # for a full list
## for each:
## “d” returns the height of the probability density function
## “p” returns the cumulative density function
## “q” returns the inverse cumulative density function (quantiles)
## “r” returns randomly generated numbers
help(Normal)
## examples f... | /tutorial4_basic_probability.r | no_license | tiborh/r | R | false | false | 4,175 | r | help(Distributions) # for a full list
## for each:
## “d” returns the height of the probability density function
## “p” returns the cumulative density function
## “q” returns the inverse cumulative density function (quantiles)
## “r” returns randomly generated numbers
help(Normal)
## examples f... |
\name{mlest}
\alias{mlest}
\title{ML Estimation of Multivariate Normal Data}
\description{
Finds the maximum likelihood estimates of the mean vector and
variance-covariance matrix for multivariate normal data with
(potentially) missing values.
}
\usage{
mlest(data, ...)
}
\arguments{
\item{data}{A data frame or... | /man/mlest.Rd | no_license | cortrudolph/mvnmle | R | false | false | 2,693 | rd | \name{mlest}
\alias{mlest}
\title{ML Estimation of Multivariate Normal Data}
\description{
Finds the maximum likelihood estimates of the mean vector and
variance-covariance matrix for multivariate normal data with
(potentially) missing values.
}
\usage{
mlest(data, ...)
}
\arguments{
\item{data}{A data frame or... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Report-methods.R
\name{rnb.add.section}
\alias{rnb.add.section}
\title{rnb.add.section}
\usage{
rnb.add.section(report, title, description, level = 1L, collapsed = FALSE)
}
\arguments{
\item{report}{Report to write the text to.}
\item{title}... | /man/rnb.add.section.Rd | no_license | epigen/RnBeads | R | false | true | 1,514 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Report-methods.R
\name{rnb.add.section}
\alias{rnb.add.section}
\title{rnb.add.section}
\usage{
rnb.add.section(report, title, description, level = 1L, collapsed = FALSE)
}
\arguments{
\item{report}{Report to write the text to.}
\item{title}... |
# Vignettes that depend on internet access have been precompiled
library(knitr)
oldwd = getwd()
setwd("vignettes/")
knit("orthophotomap.Rmd.orig", "orthophotomap.Rmd")
knit("DEM.Rmd.orig", "DEM.Rmd")
knit("topodb.Rmd.orig", "topodb.Rmd")
setwd(oldwd)
| /vignettes/PRECOMPILE.R | permissive | kadyb/rgugik | R | false | false | 252 | r | # Vignettes that depend on internet access have been precompiled
library(knitr)
oldwd = getwd()
setwd("vignettes/")
knit("orthophotomap.Rmd.orig", "orthophotomap.Rmd")
knit("DEM.Rmd.orig", "DEM.Rmd")
knit("topodb.Rmd.orig", "topodb.Rmd")
setwd(oldwd)
|
context("wflow_build")
# Setup ------------------------------------------------------------------------
# start project in a tempdir
site_dir <- tempfile("test-wflow_build-")
suppressMessages(wflow_start(site_dir, change_wd = FALSE, user.name = "Test Name",
user.email = "test@email"))
on.... | /tests/testthat/test-wflow_build.R | permissive | workflowr/workflowr | R | false | false | 18,789 | r | context("wflow_build")
# Setup ------------------------------------------------------------------------
# start project in a tempdir
site_dir <- tempfile("test-wflow_build-")
suppressMessages(wflow_start(site_dir, change_wd = FALSE, user.name = "Test Name",
user.email = "test@email"))
on.... |
#' Collapse baranka.
#'
#' @param pudelko pudelko. Pudelko z barankiem.
#'
#' @return baranek
#'
#' baranek <- collapse(pudelko)
#' @export
collapse<-function(pudelko) {
ret <- NULL
for(name in ls(envir=globalenv())) {
o <- get(name, globalenv())
if((class(o) == "pudelko") && (o$id == pudelko$id) && (!is.n... | /R/collapse.R | no_license | wernerolaf/agneau | R | false | false | 486 | r | #' Collapse baranka.
#'
#' @param pudelko pudelko. Pudelko z barankiem.
#'
#' @return baranek
#'
#' baranek <- collapse(pudelko)
#' @export
collapse<-function(pudelko) {
ret <- NULL
for(name in ls(envir=globalenv())) {
o <- get(name, globalenv())
if((class(o) == "pudelko") && (o$id == pudelko$id) && (!is.n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/birk.R
\docType{package}
\encoding{UTF-8}
\name{birk}
\alias{birk}
\alias{birk-package}
\title{MA Birk's Functions}
\description{
Collection of tools to make R more convenient. Includes tools to summarize data using statistics not available w... | /birk_2.1.2/birk.Rcheck/00_pkg_src/birk/man/birk.Rd | no_license | matthewabirk/birk | R | false | true | 430 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/birk.R
\docType{package}
\encoding{UTF-8}
\name{birk}
\alias{birk}
\alias{birk-package}
\title{MA Birk's Functions}
\description{
Collection of tools to make R more convenient. Includes tools to summarize data using statistics not available w... |
\name{camel.tiger}
\alias{camel.tiger}
\title{
Tuning Insensitive Graph Estimation and Regression
}
\description{
The function "camel.cmr" implements TIGER and Calibrated CLIME using L1 norm regularization}
\usage{
camel.tiger(data, lambda = NULL, nlambda = NULL, lambda.min.ratio = NULL,
method = "slasso", sy... | /man/camel.tiger.Rd | no_license | cran/camel | R | false | false | 6,577 | rd | \name{camel.tiger}
\alias{camel.tiger}
\title{
Tuning Insensitive Graph Estimation and Regression
}
\description{
The function "camel.cmr" implements TIGER and Calibrated CLIME using L1 norm regularization}
\usage{
camel.tiger(data, lambda = NULL, nlambda = NULL, lambda.min.ratio = NULL,
method = "slasso", sy... |
tar_test("command$update_string()", {
command <- command_init(quote(a <- b + c))
expect_equal(command$string, "expression(a <- b + c)")
})
tar_test("command$hash", {
command <- command_init(quote(a <- b + c))
out <- command$hash
expect_true(is.character(out))
expect_equal(length(out), 1L)
expect_equal(nc... | /tests/testthat/test-class_command.R | permissive | ropensci/targets | R | false | false | 4,444 | r | tar_test("command$update_string()", {
command <- command_init(quote(a <- b + c))
expect_equal(command$string, "expression(a <- b + c)")
})
tar_test("command$hash", {
command <- command_init(quote(a <- b + c))
out <- command$hash
expect_true(is.character(out))
expect_equal(length(out), 1L)
expect_equal(nc... |
require(spatialEco)
require(sp)
require(usedist)
require(rgeos)
require(raster)
require(spatstat)
require(igraph)
require(sf)
require(rgdal)
require(gdistance)
require(otuSummary)
require(gdata)
require(maptools)
require(tidyverse)
require(reshape2)
require(data.table)
#setwd("E:/LCP sensitivity test/ConnectivityHPC_in... | /Code/HPC_5000clusterspgyr80Rep4.R | no_license | ZacharyRobbins/TransferHPC | R | false | false | 14,786 | r | require(spatialEco)
require(sp)
require(usedist)
require(rgeos)
require(raster)
require(spatstat)
require(igraph)
require(sf)
require(rgdal)
require(gdistance)
require(otuSummary)
require(gdata)
require(maptools)
require(tidyverse)
require(reshape2)
require(data.table)
#setwd("E:/LCP sensitivity test/ConnectivityHPC_in... |
#
# 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(dplyr)
library(readr)
library(ggplot2)
library(stringr)
setwd("/cloud/project/bill... | /billboardLyrics/LyricTermer/server.R | permissive | dpmeltz/shiny_server | R | false | false | 1,287 | 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(dplyr)
library(readr)
library(ggplot2)
library(stringr)
setwd("/cloud/project/bill... |
context("Checking race")
test_that("race ...",{
})
| /tests/testthat/test-race.R | no_license | couthcommander/wakefield | R | false | false | 55 | r | context("Checking race")
test_that("race ...",{
})
|
library(Ecdat)
### Name: bankingCrises
### Title: Countries in Banking Crises
### Aliases: bankingCrises
### Keywords: datasets
### ** Examples
data(bankingCrises)
numberOfCrises <- rowSums(bankingCrises[-1], na.rm=TRUE)
plot(bankingCrises$year, numberOfCrises, type='b')
# Write to a file for Wikimedia Commons
svg... | /data/genthat_extracted_code/Ecdat/examples/bankingCrises.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 575 | r | library(Ecdat)
### Name: bankingCrises
### Title: Countries in Banking Crises
### Aliases: bankingCrises
### Keywords: datasets
### ** Examples
data(bankingCrises)
numberOfCrises <- rowSums(bankingCrises[-1], na.rm=TRUE)
plot(bankingCrises$year, numberOfCrises, type='b')
# Write to a file for Wikimedia Commons
svg... |
predict_lambda <- function(df_row, model) {
df <- tibble(
"spi" = c(df_row$spi1, df_row$spi2),
"opp_spi" = c(df_row$spi2, df_row$spi1),
"home" = c(1,-1))
lambdas <- exp(predict(model, newdata = df))
lambdas <- tibble("lambda1" = lambdas[1], "lambda2" = lambdas[2])
return(lambdas)
}
match_probs <- f... | /prediction_helpers.R | no_license | lbenz730/soccer_hfa | R | false | false | 1,170 | r | predict_lambda <- function(df_row, model) {
df <- tibble(
"spi" = c(df_row$spi1, df_row$spi2),
"opp_spi" = c(df_row$spi2, df_row$spi1),
"home" = c(1,-1))
lambdas <- exp(predict(model, newdata = df))
lambdas <- tibble("lambda1" = lambdas[1], "lambda2" = lambdas[2])
return(lambdas)
}
match_probs <- f... |
# Stop-signal context independent parameterization n-choice Wald racing with an EXG,
# External parameters types: "v","B","A","mu","sigma","tau","t0","tf","gf","ts" CHECK THIS
# Internal parameters types: "v","B","A","mu","sigma","tau","t0","tf","gf","ts"
#
# NB1: st0 is not available
# NB2: ts is slope of TRIALS cova... | /dmc/models/WALD-SSEXG/waldSSexg.R | no_license | lukestrickland/ARI | R | false | false | 2,340 | r | # Stop-signal context independent parameterization n-choice Wald racing with an EXG,
# External parameters types: "v","B","A","mu","sigma","tau","t0","tf","gf","ts" CHECK THIS
# Internal parameters types: "v","B","A","mu","sigma","tau","t0","tf","gf","ts"
#
# NB1: st0 is not available
# NB2: ts is slope of TRIALS cova... |
# Copyright 2021 Observational Health Data Sciences and Informatics
#
# This file is part of SkeletonCohortDiagnosticsStudy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.... | /R/VerifyDependencies.R | no_license | jmsyang/PhenotypeTesting | R | false | false | 1,760 | r | # Copyright 2021 Observational Health Data Sciences and Informatics
#
# This file is part of SkeletonCohortDiagnosticsStudy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.... |
library(tidycensus)
library(blscrapeR)
library(tidyverse)
library(usmap)
v <- load_variables(2018, "acs1")
County_profile_Census_Pull <- function(county_fips, Estimates_year, ACS_year, dataset){
Census_Pull <- get_estimates(
geography = "county",
product = "population",
state = "PA",
year = Estimates_ye... | /Census Functions.R | no_license | jvanloon93/ACCD-Tools-Scripts | R | false | false | 11,067 | r | library(tidycensus)
library(blscrapeR)
library(tidyverse)
library(usmap)
v <- load_variables(2018, "acs1")
County_profile_Census_Pull <- function(county_fips, Estimates_year, ACS_year, dataset){
Census_Pull <- get_estimates(
geography = "county",
product = "population",
state = "PA",
year = Estimates_ye... |
#기말고사 공부용
#통계분석 차이
#패키지 모음
#propagate -- fitDistr()은 적합한 분포를 찾게해줌
library(ggplot2)
#어린이 4리터 이하 물
x=seq(0,16,length=100)
y=dnorm(x,mean=7.5, sd=1.5)
plot(x,y,type="l",
xlab="Liters per day",
ylab="Density",
main="Water drunken by school children < 12 years old")
pnorm(4, mean = 7.5, sd=1.5, lower.tail =... | /finalexam_study.R | no_license | znehraks/2021-1-Statistical-Analysis-With-R | R | false | false | 19,600 | r | #기말고사 공부용
#통계분석 차이
#패키지 모음
#propagate -- fitDistr()은 적합한 분포를 찾게해줌
library(ggplot2)
#어린이 4리터 이하 물
x=seq(0,16,length=100)
y=dnorm(x,mean=7.5, sd=1.5)
plot(x,y,type="l",
xlab="Liters per day",
ylab="Density",
main="Water drunken by school children < 12 years old")
pnorm(4, mean = 7.5, sd=1.5, lower.tail =... |
make.glm.formula <- function(formula, data,
name.runningtime = ".t",
Min_T=Min_T,Max_T=Max_T, model=model, # used for formulasplit
...){
# make formula for glm() on splitdata
# replace timevar by workingtime variable name
special <- c("NPH", "NPHNLL", "WCEI")
Terms <- if (missing(data)){
terms(... | /R/make.glm.formula.R | no_license | cran/flexrsurv | R | false | false | 4,224 | r | make.glm.formula <- function(formula, data,
name.runningtime = ".t",
Min_T=Min_T,Max_T=Max_T, model=model, # used for formulasplit
...){
# make formula for glm() on splitdata
# replace timevar by workingtime variable name
special <- c("NPH", "NPHNLL", "WCEI")
Terms <- if (missing(data)){
terms(... |
#' Source all .R files in a directory
#'
#' @param directory The directory to source
#'
#' @examples
#' \dontrun{
#' source.dir('R')
#' }
#'
#' @export
source.dir <- function(directory) {
all.files <- list.files(directory)
nc <- nchar(all.files)
source.file <- all.files[substr(all.files, start=nc-1, stop=nc)==... | /R/source.dir.r | no_license | pbreheny/breheny | R | false | false | 462 | r | #' Source all .R files in a directory
#'
#' @param directory The directory to source
#'
#' @examples
#' \dontrun{
#' source.dir('R')
#' }
#'
#' @export
source.dir <- function(directory) {
all.files <- list.files(directory)
nc <- nchar(all.files)
source.file <- all.files[substr(all.files, start=nc-1, stop=nc)==... |
test_that("Writing SF objects", {
skip_if_not_installed("sf")
compare_to_geojson_obj <- function(sf_obj){
sf_as_dataframe <- fromJSON(toJSON(sf_obj, digits = 8))
sf_as_features <- fromJSON(toJSON(sf_obj, sf = 'features', digits = 8))
geojson_string <- toJSON(sf_obj, sf = 'geojson', digits = 8)
sf_as... | /tests/testthat/test-toJSON-sf.R | permissive | jeroen/jsonlite | R | false | false | 2,485 | r | test_that("Writing SF objects", {
skip_if_not_installed("sf")
compare_to_geojson_obj <- function(sf_obj){
sf_as_dataframe <- fromJSON(toJSON(sf_obj, digits = 8))
sf_as_features <- fromJSON(toJSON(sf_obj, sf = 'features', digits = 8))
geojson_string <- toJSON(sf_obj, sf = 'geojson', digits = 8)
sf_as... |
library(liftOver)
#system("wget http://hgdownload.cse.ucsc.edu/goldenpath/hg19/liftOver/hg19ToHg38.over.chain.gz")
#system("gunzip hg19ToHg38.over.chain.gz")
dmr <- read.csv("mmc3_DMR.csv")
write.table(dmr,"mmc3_DMR.bed",sep="\t",quote=F,row.names=F,col.names=F)
peaksori = dmr[,1:3]
peaks <- GRanges(peaksori[,1],I... | /2_mCA_in_CpGchanges.R | no_license | rtmag/meth_ca | R | false | false | 4,057 | r | library(liftOver)
#system("wget http://hgdownload.cse.ucsc.edu/goldenpath/hg19/liftOver/hg19ToHg38.over.chain.gz")
#system("gunzip hg19ToHg38.over.chain.gz")
dmr <- read.csv("mmc3_DMR.csv")
write.table(dmr,"mmc3_DMR.bed",sep="\t",quote=F,row.names=F,col.names=F)
peaksori = dmr[,1:3]
peaks <- GRanges(peaksori[,1],I... |
# -------------------------------------------------------------------------------------------
# Purpose: This script contains the constants that are used by functions or are commonly used
# by the exec scripts assoicated with this package.
#
# Created by: Dorheim, Kalyn
# Created on: December 1 2017
# Modified: xxx
#... | /oceanpH/R/constants.R | no_license | JGCRI/OA_variability | R | false | false | 1,272 | r | # -------------------------------------------------------------------------------------------
# Purpose: This script contains the constants that are used by functions or are commonly used
# by the exec scripts assoicated with this package.
#
# Created by: Dorheim, Kalyn
# Created on: December 1 2017
# Modified: xxx
#... |
#' Soft-threshold
#' Soft-threshold elements of a vector
#'
#' \code{softthreshold} softthresholds the elements of a vector
#'
#' @param x vector to shrink
#' @param lambda regularization parameter
#' @export
softthreshold <- function(x, lambda) {
}
#' Lasso (Coordinate Descent)
#'
#' \code{lasso_cd} solves the lass... | /Labs/myopt/R/lab2.R | no_license | echi/samsi_opt | R | false | false | 1,598 | r | #' Soft-threshold
#' Soft-threshold elements of a vector
#'
#' \code{softthreshold} softthresholds the elements of a vector
#'
#' @param x vector to shrink
#' @param lambda regularization parameter
#' @export
softthreshold <- function(x, lambda) {
}
#' Lasso (Coordinate Descent)
#'
#' \code{lasso_cd} solves the lass... |
#' Filter Odyssey Data Based on Water Level Data
#'
#' Filters odyssey data to select only observations taken at the same times as a water level logger reports being inundated
#' Outputs optional data frame and optionally saves file
#' If input csv is used, output save file retains base name. Otherwise, output file is ... | /R/FilterOdy.Data.R | no_license | acgoodman/wlTools | R | false | false | 4,566 | r | #' Filter Odyssey Data Based on Water Level Data
#'
#' Filters odyssey data to select only observations taken at the same times as a water level logger reports being inundated
#' Outputs optional data frame and optionally saves file
#' If input csv is used, output save file retains base name. Otherwise, output file is ... |
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
destfile <- paste(getwd(),"/HHpowerconsumption.zip", sep="")
download.file(fileUrl, destfile)
unzip(destfile)
data <- read.table(paste(getwd(),"/household_power_consumption.txt", sep=""), nrows=3000, header=FALSE, s... | /plot3.R | no_license | KK0h/ExData_Plotting1 | R | false | false | 942 | r | fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
destfile <- paste(getwd(),"/HHpowerconsumption.zip", sep="")
download.file(fileUrl, destfile)
unzip(destfile)
data <- read.table(paste(getwd(),"/household_power_consumption.txt", sep=""), nrows=3000, header=FALSE, s... |
library(kernlab)
library(caret)
# read input file for test and train dataset.
train_file <- read.csv("mnist_train.csv")
test_file <- read.csv("mnist_test.csv")
# identiy and name the classifier column as "digit". this is the output variable
colnames(train_file)[1] <- "digit"
colnames(test_file)[1] <- "digit"
# Cha... | /SVM - Image Classification/DDA1710363_main.R | no_license | nitinsriv/R | R | false | false | 4,798 | r |
library(kernlab)
library(caret)
# read input file for test and train dataset.
train_file <- read.csv("mnist_train.csv")
test_file <- read.csv("mnist_test.csv")
# identiy and name the classifier column as "digit". this is the output variable
colnames(train_file)[1] <- "digit"
colnames(test_file)[1] <- "digit"
# Cha... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MiscFuns.R
\name{AIC.fixest}
\alias{AIC.fixest}
\title{Aikake's an information criterion}
\usage{
\method{AIC}{fixest}(object, ..., k = 2)
}
\arguments{
\item{object}{A \code{fixest} object. Obtained using the functions \code{\link[f... | /fixest/man/AIC.fixest.Rd | no_license | akhikolla/InformationHouse | R | false | true | 1,590 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MiscFuns.R
\name{AIC.fixest}
\alias{AIC.fixest}
\title{Aikake's an information criterion}
\usage{
\method{AIC}{fixest}(object, ..., k = 2)
}
\arguments{
\item{object}{A \code{fixest} object. Obtained using the functions \code{\link[f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsunlight-package.R
\docType{package}
\name{rsunlight-package}
\alias{rsunlight-package}
\alias{rsunlight}
\title{Methods for retreiving data from APIs that were
previously under Sulight Labs}
\description{
The various APIs included here are ... | /man/rsunlight-package.Rd | permissive | rOpenGov/rsunlight | R | false | true | 1,227 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsunlight-package.R
\docType{package}
\name{rsunlight-package}
\alias{rsunlight-package}
\alias{rsunlight}
\title{Methods for retreiving data from APIs that were
previously under Sulight Labs}
\description{
The various APIs included here are ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_umap.R
\name{run_umap}
\alias{run_umap}
\title{Run Umap dimension reduction}
\usage{
run_umap(
popseg_long,
ploidy_VAL = NULL,
umap_dist = "manhattan",
umap_min_dist = 0,
umap_spread = 1,
umap_n_neighbors = 40,
mc.cores = 10... | /man/run_umap.Rd | no_license | gladelephant/Nature_2021_Breast-Tumors-Maintain-a-Reservoir-of-Subclonal-Diversity-During-Expansion | R | false | true | 1,070 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_umap.R
\name{run_umap}
\alias{run_umap}
\title{Run Umap dimension reduction}
\usage{
run_umap(
popseg_long,
ploidy_VAL = NULL,
umap_dist = "manhattan",
umap_min_dist = 0,
umap_spread = 1,
umap_n_neighbors = 40,
mc.cores = 10... |
# ################################################################################################################################################
# # The following script is based on Adnrew's work #
# ####################################################################################################################... | /analysis_shalek_data.R | no_license | Xiaojieqiu/Census_BEAM | R | false | false | 17,076 | r | # ################################################################################################################################################
# # The following script is based on Adnrew's work #
# ####################################################################################################################... |
library(shiny)
setwd("~/GitHub/mhardi")
# Load data processing file
source("data_processing.R")
themes <- sort(unique(data$theme))
# Shiny server
shinyServer(
function(input, output) {
# output$text1 <- renderText({input$text1})
# output$text2 <- renderText({input$text2})
# output$text3 <- ... | /server.R | no_license | mohamed-hardi/mhardi | R | false | false | 3,454 | r | library(shiny)
setwd("~/GitHub/mhardi")
# Load data processing file
source("data_processing.R")
themes <- sort(unique(data$theme))
# Shiny server
shinyServer(
function(input, output) {
# output$text1 <- renderText({input$text1})
# output$text2 <- renderText({input$text2})
# output$text3 <- ... |
context("board rsc")
test_rsconnect_boards <- function(key, server) {
board_register("rsconnect",
key = key,
server = server,
cache = tempfile())
board_test("rsconnect", destination = server)
board_deregister("rsconnect")
}
if (test_board_is_registered("rscon... | /tests/testthat/test-board-rsconnect.R | permissive | jonkeane/pins | R | false | false | 1,160 | r | context("board rsc")
test_rsconnect_boards <- function(key, server) {
board_register("rsconnect",
key = key,
server = server,
cache = tempfile())
board_test("rsconnect", destination = server)
board_deregister("rsconnect")
}
if (test_board_is_registered("rscon... |
macdatawd <- "/Volumes/GoogleDrive/Team Drives/Data/CISDM Files/"
windowsdatawd <- "C:/Users/USER/Google Drive/Data Files"
if(file.exists(macdatawd)){
setwd(file.path(macdatawd))
} else {
if(file.exists(windowsdatawd)){
setwd(file.path(windowsdatawd))
}
}
site_coordination <-readWorksheetFromFile('site_coor... | /site_coordination.R | no_license | jbakerr/CIS2017-18 | R | false | false | 1,096 | r | macdatawd <- "/Volumes/GoogleDrive/Team Drives/Data/CISDM Files/"
windowsdatawd <- "C:/Users/USER/Google Drive/Data Files"
if(file.exists(macdatawd)){
setwd(file.path(macdatawd))
} else {
if(file.exists(windowsdatawd)){
setwd(file.path(windowsdatawd))
}
}
site_coordination <-readWorksheetFromFile('site_coor... |
#' Query search traffic keyword data
#'
#' @description Download your Google SEO data.
#'
#' @param siteURL The URL of the website you have auth access to.
#' @param startDate Start date of requested range, in YYYY-MM-DD.
#' @param endDate End date of the requested date range, in YYYY-MM-DD.
#' @param dimensions Zero o... | /R/getData.R | no_license | cran/searchConsoleR | R | false | false | 23,610 | r | #' Query search traffic keyword data
#'
#' @description Download your Google SEO data.
#'
#' @param siteURL The URL of the website you have auth access to.
#' @param startDate Start date of requested range, in YYYY-MM-DD.
#' @param endDate End date of the requested date range, in YYYY-MM-DD.
#' @param dimensions Zero o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variables.R
\name{Constant}
\alias{Constant}
\title{Constant}
\usage{
Constant(value = NULL, shape = NULL, dtype = "float32", device = NULL,
name = "")
}
\arguments{
\item{shape}{- list of ints representing tensor shape}
\item{dtype}{- dat... | /man/Constant.Rd | permissive | Bhaskers-Blu-Org2/CNTK-R | R | false | true | 679 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variables.R
\name{Constant}
\alias{Constant}
\title{Constant}
\usage{
Constant(value = NULL, shape = NULL, dtype = "float32", device = NULL,
name = "")
}
\arguments{
\item{shape}{- list of ints representing tensor shape}
\item{dtype}{- dat... |
remove(list=ls())
cat("\014")
setwd("C:\\Users\\bchen\\Desktop\\JHU-R-Dashboard\\")
# remotes::install_github("joachim-gassen/tidycovid19")
library(tidycovid19)
library(dplyr)
coronavirus<-download_jhu_csse_covid19_data(cached = TRUE)
coronavirus<-as.data.frame(coronavirus)
head(coronavirus, 1)
coronavirus_us <- cor... | /chengb_dashboard.R | no_license | bcheng004/JHU-R-Dashboard | R | false | false | 1,478 | r | remove(list=ls())
cat("\014")
setwd("C:\\Users\\bchen\\Desktop\\JHU-R-Dashboard\\")
# remotes::install_github("joachim-gassen/tidycovid19")
library(tidycovid19)
library(dplyr)
coronavirus<-download_jhu_csse_covid19_data(cached = TRUE)
coronavirus<-as.data.frame(coronavirus)
head(coronavirus, 1)
coronavirus_us <- cor... |
ecoplot <- function(){
library(ggplot2)
theme_set(theme_minimal())
# For data preparation
library("tidyverse")
df <- economics%>%select(date, psavert, uempmed)%>%gather(key = "variables", value = "value", -date)
# Data Visualization
p<-ggplot(df, aes(x = date, y = value)) + geom_line(aes(color = variables)) + scale_c... | /Medium_Test_2/economicplot/R/code.R | no_license | sarahab23/RSQLiteAdmin_Visualisation_Tools | R | false | false | 458 | r | ecoplot <- function(){
library(ggplot2)
theme_set(theme_minimal())
# For data preparation
library("tidyverse")
df <- economics%>%select(date, psavert, uempmed)%>%gather(key = "variables", value = "value", -date)
# Data Visualization
p<-ggplot(df, aes(x = date, y = value)) + geom_line(aes(color = variables)) + scale_c... |
suppressMessages(library("DESeq2"))
suppressMessages(library("edgeR"))
suppressMessages(library(data.table))
# ---------------
# FeatureCounts
# ---------------
fCounts <- read.delim(file=smkin$counts,
header=TRUE,
check.names = FALSE)
fCountsData <- fCounts[
,
-which... | /modules/dge/deseq2.R | no_license | alexandre-nadin/pypette-github | R | false | false | 1,859 | r | suppressMessages(library("DESeq2"))
suppressMessages(library("edgeR"))
suppressMessages(library(data.table))
# ---------------
# FeatureCounts
# ---------------
fCounts <- read.delim(file=smkin$counts,
header=TRUE,
check.names = FALSE)
fCountsData <- fCounts[
,
-which... |
library(csaw)
library(edgeR)
library(rtracklayer)
library(statmod)
library(xscss)
library(microbenchmark)
bpvec = 1000 # Window size
mark = 'EZH2'
method = 'csaw'
cell = 'Encode_twocells'
chip1 = c(
'wgEncodeBroadHistoneHelas3Ezh239875AlnRep1.markdup.q10.sorted.bam',
'wgEncodeBroadHistoneHelas3Ezh239875AlnRep2.ma... | /Public/csaw/EZH2/Encode_twocells/csaw_EZH2_Encode_twocells_1000bp.R | permissive | plbaldoni/epigraHMMPaper | R | false | false | 5,498 | r | library(csaw)
library(edgeR)
library(rtracklayer)
library(statmod)
library(xscss)
library(microbenchmark)
bpvec = 1000 # Window size
mark = 'EZH2'
method = 'csaw'
cell = 'Encode_twocells'
chip1 = c(
'wgEncodeBroadHistoneHelas3Ezh239875AlnRep1.markdup.q10.sorted.bam',
'wgEncodeBroadHistoneHelas3Ezh239875AlnRep2.ma... |
## This function is for caching the inverse of a matrix
## rather than compute it repeatedly
## This function creates a special "matrix" object that
## can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NUL... | /cachematrix.R | no_license | fishboon/ProgrammingAssignment2 | R | false | false | 1,107 | r | ## This function is for caching the inverse of a matrix
## rather than compute it repeatedly
## This function creates a special "matrix" object that
## can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NUL... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615831374-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,047 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
##getting full datatable
datatable <- read.table("household_power_consumption.txt", header = TRUE, sep = ';',na.strings = "?", nrows = 2075259,check.names=FALSE, stringsAsFactors = FALSE, comment.char = "",quote = '\"')
##subsetting the table between two days
date1 <-"1/2/2007"
date2 <-"2/2/2007"
dataused <- datatable... | /exploredata/plot1.R | no_license | waynezx/ExData_Plotting1 | R | false | false | 601 | r | ##getting full datatable
datatable <- read.table("household_power_consumption.txt", header = TRUE, sep = ';',na.strings = "?", nrows = 2075259,check.names=FALSE, stringsAsFactors = FALSE, comment.char = "",quote = '\"')
##subsetting the table between two days
date1 <-"1/2/2007"
date2 <-"2/2/2007"
dataused <- datatable... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# The function makeCacheMatrix creates a special "Matrix" object that can cache its inverse
# 'makeCacheMatrix' function creates a special "Matrxi", which is really a list containing a f... | /cachematrix.R | no_license | Faye2014/ProgrammingAssignment2 | R | false | false | 1,589 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# The function makeCacheMatrix creates a special "Matrix" object that can cache its inverse
# 'makeCacheMatrix' function creates a special "Matrxi", which is really a list containing a f... |
#===============================================================================
# 2021-06-18 -- MPIDR dataviz course
# Final Assignment: Maps challange
# Author: Luca Badolato
#
# Significant credits go to Ilya Kashnitsky from which I taken (and learned) several lines of code
#=======================================... | /code.R | no_license | LucaBadolato/IMPRS-2021-Data-Visualization | R | false | false | 3,575 | r | #===============================================================================
# 2021-06-18 -- MPIDR dataviz course
# Final Assignment: Maps challange
# Author: Luca Badolato
#
# Significant credits go to Ilya Kashnitsky from which I taken (and learned) several lines of code
#=======================================... |
page_one_sidepanel <- sidebarPanel(
selectInput("planet_choose",
label = "Choose a Body to see travel to from Earth:",
choices = c("Mercury", "Venus", "Mars", "Jupiter", "Saturn",
"Uranus", "Neptune", "Pluto", "Moon"),
selected = "Mercury"
),
... | /R/ui.R | permissive | Chicow-Moovers/chicow-moovers.github.io | R | false | false | 374 | r |
page_one_sidepanel <- sidebarPanel(
selectInput("planet_choose",
label = "Choose a Body to see travel to from Earth:",
choices = c("Mercury", "Venus", "Mars", "Jupiter", "Saturn",
"Uranus", "Neptune", "Pluto", "Moon"),
selected = "Mercury"
),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/activeC.R
\name{plot.const_C}
\alias{plot.const_C}
\title{Plot const_C objectc}
\usage{
\method{plot}{const_C}(x, output = c("all", "matrix", "logvals", "projfn"), ...)
}
\arguments{
\item{x}{A const_C object, the result of a call to C_GP}
\... | /man/plot.const_C.Rd | no_license | cran/activegp | R | false | true | 593 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/activeC.R
\name{plot.const_C}
\alias{plot.const_C}
\title{Plot const_C objectc}
\usage{
\method{plot}{const_C}(x, output = c("all", "matrix", "logvals", "projfn"), ...)
}
\arguments{
\item{x}{A const_C object, the result of a call to C_GP}
\... |
head(iris,n=3) # first three fows
| /inst/snippet/iris-head.R | no_license | cran/fastR | R | false | false | 45 | r | head(iris,n=3) # first three fows
|
# Objective: create a function to calculate atmospheric air pressure for a given site elevation
# Author: Grant Coble-Neal
AtmosphericPressure <- function( Elevation, Temperature, parameters = c(P_0 = 1013.25, a = 0.0065, b = 273.15, c = 5.257))
{
# P_0: atmospheric pressure at sea-level in hectopascals (hPA); hPA... | /R/Atmospheric Pressure function.R | no_license | cobleg/solarPV | R | false | false | 1,006 | r |
# Objective: create a function to calculate atmospheric air pressure for a given site elevation
# Author: Grant Coble-Neal
AtmosphericPressure <- function( Elevation, Temperature, parameters = c(P_0 = 1013.25, a = 0.0065, b = 273.15, c = 5.257))
{
# P_0: atmospheric pressure at sea-level in hectopascals (hPA); hPA... |
RML$Train$TrainModel <- function(model, dataSet, column = NULL) {
removeDuplicateColumns <- function(dataSet, column) {
if (is.null(column)) return(dataSet)
for (columnName in names(dataSet)) {
if (identical(dataSet[, columnName], column)) {
dataSet[, columnName... | /Train/TrainModel.R | permissive | ryannel/RML | R | false | false | 1,554 | r | RML$Train$TrainModel <- function(model, dataSet, column = NULL) {
removeDuplicateColumns <- function(dataSet, column) {
if (is.null(column)) return(dataSet)
for (columnName in names(dataSet)) {
if (identical(dataSet[, columnName], column)) {
dataSet[, columnName... |
############## Lauren chosen words Ebony #####################
tab_ebony <- get(load("../output/table_word_frequencies_ebony.rda"))
all_words_ebony <- get(load("../output/all_words_ebony.rda"))
tab_ebony_normalized <- t(apply(tab_ebony, 1, function(x) return(x/sum(x))))
rownames(tab_ebony_normalized) <- paste0("... | /codes/lauren_chosen_words_ebony.R | no_license | kkdey/Black_magazines | R | false | false | 6,710 | r |
############## Lauren chosen words Ebony #####################
tab_ebony <- get(load("../output/table_word_frequencies_ebony.rda"))
all_words_ebony <- get(load("../output/all_words_ebony.rda"))
tab_ebony_normalized <- t(apply(tab_ebony, 1, function(x) return(x/sum(x))))
rownames(tab_ebony_normalized) <- paste0("... |
#------------------------------
#Name: Kamlesh Patel
#Date: Feb-25, 2018
#Project: Chapter 1
#------------------------------
#Learning to create vecors and its oprtations
x <- 1:5
y <- 5
y
print (y)
#add numeric constant 2 to vector x
x+2
x + y
#add numeric vector to vector x
x+ 10:14
#Multipl... | /Chapter1_R (1).R | permissive | KamleshSAS/Base_R- | R | false | false | 500 | r | #------------------------------
#Name: Kamlesh Patel
#Date: Feb-25, 2018
#Project: Chapter 1
#------------------------------
#Learning to create vecors and its oprtations
x <- 1:5
y <- 5
y
print (y)
#add numeric constant 2 to vector x
x+2
x + y
#add numeric vector to vector x
x+ 10:14
#Multipl... |
#Jash Mohinish Mehta
#Homework for Class 3 RowCols-Hw
#TASK 1
mtcars
#Copying raw data into a New Data Set
mymtcars <- mtcars
mymtcars
#First of all assigning disp/cyl to newvar
#Then assigning new variable to mymtcars
mymtcars$newvar <- mymtcars$disp/mymtcars$cyl
mymtcars
#Displaying the summary for... | /week 2 Row Columns/Jash Mehta, HW2, JM.R | no_license | jashmehta89/IST-687-Applied-Data-Science-LabWork | R | false | false | 846 | r | #Jash Mohinish Mehta
#Homework for Class 3 RowCols-Hw
#TASK 1
mtcars
#Copying raw data into a New Data Set
mymtcars <- mtcars
mymtcars
#First of all assigning disp/cyl to newvar
#Then assigning new variable to mymtcars
mymtcars$newvar <- mymtcars$disp/mymtcars$cyl
mymtcars
#Displaying the summary for... |
#############################################################################
#
# XLConnect
# Copyright (C) 2010-2017 Mirai Solutions GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... | /R/normalizeDataframe.R | no_license | GSuvorov/xlconnect | R | false | false | 2,260 | r | #############################################################################
#
# XLConnect
# Copyright (C) 2010-2017 Mirai Solutions GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Factor_Order.R
\name{Factor_Order}
\alias{Factor_Order}
\title{Compute levels of factor}
\usage{
Factor_Order(x)
}
\arguments{
\item{x}{is a factor}
}
\value{
Return levels to the order in which they appear in the data,
An error is raised if ... | /man/Factor_Order.Rd | no_license | STAT545-UBC-hw-2018-19/hw07-ecool50 | R | false | true | 522 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Factor_Order.R
\name{Factor_Order}
\alias{Factor_Order}
\title{Compute levels of factor}
\usage{
Factor_Order(x)
}
\arguments{
\item{x}{is a factor}
}
\value{
Return levels to the order in which they appear in the data,
An error is raised if ... |
##' plot the remap object
##'
##' plot.remap is a function to create the htmlfile
##' and open it by browser
##'
##'
##' @param object an remap object
##' @param path the path for saving REmap object
##' @return Create a html file according to the id of the object
##' @author Chiffon <\url{http://lchiffon.github.io}>
... | /REmap/R/plot.remap.R | permissive | moisiet/R-Packge | R | false | false | 2,397 | r | ##' plot the remap object
##'
##' plot.remap is a function to create the htmlfile
##' and open it by browser
##'
##'
##' @param object an remap object
##' @param path the path for saving REmap object
##' @return Create a html file according to the id of the object
##' @author Chiffon <\url{http://lchiffon.github.io}>
... |
library(GenomicDataCommons)
library(magrittr)
context('legacy endpoint')
## IDs here were selected interactively, just for testing.
## If GDC removes these IDs, expect tests to fail.
files_legacy_ids = files(legacy = TRUE) %>% results(size = 10) %>% ids()
cases_legacy_ids = cases(legacy = TRUE) %>% results(size = 10... | /tests/testthat/test_legacy.R | no_license | economistgame/GenomicDataCommons | R | false | false | 1,751 | r | library(GenomicDataCommons)
library(magrittr)
context('legacy endpoint')
## IDs here were selected interactively, just for testing.
## If GDC removes these IDs, expect tests to fail.
files_legacy_ids = files(legacy = TRUE) %>% results(size = 10) %>% ids()
cases_legacy_ids = cases(legacy = TRUE) %>% results(size = 10... |
women
plot(women)
str(cars)
# 두 줄을 선택한 후 상단에 있는 'Run' 버튼을 누르면 한꺼번에 실행됨
a<-2
b<-a+a
# 작업 디렉토리 지정
getwd()
setwd('/Workspace/R')
getwd()
library(dplyr)
library(ggplot2)
search()
str(iris)
head(iris) #Default는 6개 기본으로 보여줌
head(iris,10)
tail(iris) #끝에서 6개 보여줌
plot(iris)
#두 속성의 상관관계
plot(iris$Petal.Length,iris$Petal.Wi... | /ch02.R | no_license | Dahee99/R-Lecture-2021 | R | false | false | 977 | r | women
plot(women)
str(cars)
# 두 줄을 선택한 후 상단에 있는 'Run' 버튼을 누르면 한꺼번에 실행됨
a<-2
b<-a+a
# 작업 디렉토리 지정
getwd()
setwd('/Workspace/R')
getwd()
library(dplyr)
library(ggplot2)
search()
str(iris)
head(iris) #Default는 6개 기본으로 보여줌
head(iris,10)
tail(iris) #끝에서 6개 보여줌
plot(iris)
#두 속성의 상관관계
plot(iris$Petal.Length,iris$Petal.Wi... |
#######################################
#
# Decision Making on Promotion Strategy for Maru Batting Center
# based on Customer Lifetime Value
# A first small smart attempt!
#
#######################################
rm(list=ls())
#### set up all the parameters
# give names for different customer segments
seg.names = c(... | /Maru Batting Center.R | no_license | smartdumpling/Marketing-Analytics | R | false | false | 9,154 | r | #######################################
#
# Decision Making on Promotion Strategy for Maru Batting Center
# based on Customer Lifetime Value
# A first small smart attempt!
#
#######################################
rm(list=ls())
#### set up all the parameters
# give names for different customer segments
seg.names = c(... |
#' Get game_ids in specified years
#'
#' @import rvest
#' @import stringr
#' @importFrom dplyr %>%
#' @importFrom purrr map
#'
#' @return game_id vector
#' @export
#'
get_gids <- function(start_year, end_year){
if(start_year < 2010 || end_year > lubridate::year(Sys.Date()))
stop(paste0("'years' must be betw... | /R/get_gids.R | permissive | pontsuyu/pitchRx2 | R | false | false | 1,205 | r | #' Get game_ids in specified years
#'
#' @import rvest
#' @import stringr
#' @importFrom dplyr %>%
#' @importFrom purrr map
#'
#' @return game_id vector
#' @export
#'
get_gids <- function(start_year, end_year){
if(start_year < 2010 || end_year > lubridate::year(Sys.Date()))
stop(paste0("'years' must be betw... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotation.R
\docType{methods}
\name{keepEPloops}
\alias{keepEPloops}
\alias{keepEPloops,loops,GRanges,GRanges-method}
\title{Keep enhancer-promoter loops}
\usage{
keepEPloops(lto, enhancer, promoter)
\S4method{keepEPloops}{loops,GRanges,GRa... | /man/keepEPloops.Rd | no_license | DoaneAS/diffloop | R | false | true | 1,780 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotation.R
\docType{methods}
\name{keepEPloops}
\alias{keepEPloops}
\alias{keepEPloops,loops,GRanges,GRanges-method}
\title{Keep enhancer-promoter loops}
\usage{
keepEPloops(lto, enhancer, promoter)
\S4method{keepEPloops}{loops,GRanges,GRa... |
#set up variables
sqlConnString <- "Driver=SQL Server;Server=JrsSql2016e;Database=taxi;Uid=RServicesUser;Pwd=RServicesUser"
trainTable <- "v_pickups_train"
testTable <- "v_pickups_test"
#Column information
ccColInfo <- list(
target_pickup_hour = list(
type = "factor",
levels = as.character(0:23)),
target_... | /pwTaxi.R | no_license | jayman54/pwTaxi | R | false | false | 3,414 | r |
#set up variables
sqlConnString <- "Driver=SQL Server;Server=JrsSql2016e;Database=taxi;Uid=RServicesUser;Pwd=RServicesUser"
trainTable <- "v_pickups_train"
testTable <- "v_pickups_test"
#Column information
ccColInfo <- list(
target_pickup_hour = list(
type = "factor",
levels = as.character(0:23)),
target_... |
# Load Libraries ----------------------------------------------------------
library(marmap)
library(lattice)
# Map Buoys ---------------------------------------------------------------
# read in xyz data
socal <- read.bathy(xyz = "socal_2.xyz", header = FALSE, sep = " ")
# inital map of bathy data
plot... | /Buoy_Bathymetry_Maps.R | no_license | camiel1/Masters_Capstone | R | false | false | 1,299 | r |
# Load Libraries ----------------------------------------------------------
library(marmap)
library(lattice)
# Map Buoys ---------------------------------------------------------------
# read in xyz data
socal <- read.bathy(xyz = "socal_2.xyz", header = FALSE, sep = " ")
# inital map of bathy data
plot... |
#' Field type
#'
#' Test whether a variable is of the required 'field type'.
#'
#'
#' @param d When used in a validation rule, a bare (unquoted) name of a variable.
#' Otherwise a vector of class \code{character}. Coerced to character as
#' necessary.
#' @param ft \code{[character]} Field type.
#' @param exce... | /pkg/R/FDT.R | permissive | SNStatComp/GenericValidationRules | R | false | false | 2,195 | r | #' Field type
#'
#' Test whether a variable is of the required 'field type'.
#'
#'
#' @param d When used in a validation rule, a bare (unquoted) name of a variable.
#' Otherwise a vector of class \code{character}. Coerced to character as
#' necessary.
#' @param ft \code{[character]} Field type.
#' @param exce... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/substr.R
\name{substr}
\alias{substr}
\title{fun_name}
\usage{
substr(params)
}
\arguments{
\item{param}{fun_name}
}
\description{
kolejna funkcja podmieniona
}
| /man/substr.Rd | no_license | granatb/RapeR | R | false | true | 239 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/substr.R
\name{substr}
\alias{substr}
\title{fun_name}
\usage{
substr(params)
}
\arguments{
\item{param}{fun_name}
}
\description{
kolejna funkcja podmieniona
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AssignTransitService.R
\name{estimateTransitModel}
\alias{estimateTransitModel}
\title{Estimate public transit model parameters.}
\usage{
estimateTransitModel()
}
\value{
A list containing the following elements:
BusEquivalents_df: factors to... | /sources/modules/VETransportSupply/man/estimateTransitModel.Rd | permissive | rickdonnelly/VisionEval-Dev | R | false | true | 977 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AssignTransitService.R
\name{estimateTransitModel}
\alias{estimateTransitModel}
\title{Estimate public transit model parameters.}
\usage{
estimateTransitModel()
}
\value{
A list containing the following elements:
BusEquivalents_df: factors to... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotElicitedPrior.R
\name{PlotElicitedPrior}
\alias{PlotElicitedPrior}
\title{Plot elicited priors.}
\usage{
PlotElicitedPrior(elicited.prior, ylab = "Density", ...)
}
\arguments{
\item{elicited.prior}{output form the \code{\link{ElicitBeta}}... | /man/PlotElicitedPrior.Rd | no_license | leb-fmvz-usp/ptb | R | false | true | 705 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotElicitedPrior.R
\name{PlotElicitedPrior}
\alias{PlotElicitedPrior}
\title{Plot elicited priors.}
\usage{
PlotElicitedPrior(elicited.prior, ylab = "Density", ...)
}
\arguments{
\item{elicited.prior}{output form the \code{\link{ElicitBeta}}... |
library(checkmate)
library(testthat)
context("gs_voronoi")
test_that("output is valid geometry", {
coords <- data.frame(x = c(40, 70, 70, 50),
y = c(40, 40, 60, 70))
window <- data.frame(x = c(0, 80),
y = c(0, 80))
input <- gs_point(anchor = coords, window = window)... | /geometr/tests/testthat/test_gs_voronoi.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 1,230 | r | library(checkmate)
library(testthat)
context("gs_voronoi")
test_that("output is valid geometry", {
coords <- data.frame(x = c(40, 70, 70, 50),
y = c(40, 40, 60, 70))
window <- data.frame(x = c(0, 80),
y = c(0, 80))
input <- gs_point(anchor = coords, window = window)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prepare_fpkm_files_from_excel_data_functions.R
\name{get_updated_existing_annotations}
\alias{get_updated_existing_annotations}
\title{Get updated annotations objects (sample_info & ref_annot_to_expr_rds) of FungiExpreZ.}
\usage{
get_updated_... | /man/get_updated_existing_annotations.Rd | permissive | cparsania/FungiExpresZ | R | false | true | 1,232 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prepare_fpkm_files_from_excel_data_functions.R
\name{get_updated_existing_annotations}
\alias{get_updated_existing_annotations}
\title{Get updated annotations objects (sample_info & ref_annot_to_expr_rds) of FungiExpreZ.}
\usage{
get_updated_... |
library(dplyr)
set.seed(11123)
instrumental = as.data.frame(rnorm(1000,mean = 1,sd = sqrt(2)))
colnames(instrumental) = "x_i"
instrumental = instrumental %>%
# mutate(w_star = (1/sqrt(2*pi*1)*exp(-(x_i-0)^2/(2*1)))/(1/sqrt(2*pi*2)*exp(-(x_i-1)^2/(2*2)))) %>%
mutate(w_star = dnorm(x_i,mean=0,sd = 1)/dnorm(x_i... | /Module 5 HW/module 5.R | no_license | yichen-dong/computational_statistics | R | false | false | 2,138 | r | library(dplyr)
set.seed(11123)
instrumental = as.data.frame(rnorm(1000,mean = 1,sd = sqrt(2)))
colnames(instrumental) = "x_i"
instrumental = instrumental %>%
# mutate(w_star = (1/sqrt(2*pi*1)*exp(-(x_i-0)^2/(2*1)))/(1/sqrt(2*pi*2)*exp(-(x_i-1)^2/(2*2)))) %>%
mutate(w_star = dnorm(x_i,mean=0,sd = 1)/dnorm(x_i... |
#!/usr/bin/env Rscript
library('tidyverse')
library('argparser')
argv <- arg_parser("True and false positive / negative calculations on MonoVar.") %>%
add_argument("--gt",
help="file with ground truth genotypes (incl. path), contents: `CHROM\tPOS\tGT`") %>%
add_argument("--calls", help="file wi... | /analysis_pipelines/scripts/monovar.P-N_stats.alt-calling.R | permissive | ProSolo/benchmarking_prosolo | R | false | false | 1,761 | r | #!/usr/bin/env Rscript
library('tidyverse')
library('argparser')
argv <- arg_parser("True and false positive / negative calculations on MonoVar.") %>%
add_argument("--gt",
help="file with ground truth genotypes (incl. path), contents: `CHROM\tPOS\tGT`") %>%
add_argument("--calls", help="file wi... |
Row <- read.table("household_power_consumption.txt", nrow = 1, header = TRUE, sep=";")
x <- as.POSIXct("2006-12-17 00:00:00")
y <- as.POSIXct("2007-02-01 00:00:00")
y - x
#46*24*60 = 66240
#66240+397 = 66637
Row <- read.table("household_power_consumption.txt", skip=66637, nrow = 1, header = TRUE, sep=";")
hpc <- read... | /plot2.R | no_license | RashmShekar/ExData_Plotting1 | R | false | false | 936 | r | Row <- read.table("household_power_consumption.txt", nrow = 1, header = TRUE, sep=";")
x <- as.POSIXct("2006-12-17 00:00:00")
y <- as.POSIXct("2007-02-01 00:00:00")
y - x
#46*24*60 = 66240
#66240+397 = 66637
Row <- read.table("household_power_consumption.txt", skip=66637, nrow = 1, header = TRUE, sep=";")
hpc <- read... |
# Data manipulation:
library(dplyr)
# 1R algorithm:
library(OneR)
# Visualizations:
library(ggplot2)
# Import the data
mushrooms <- read.csv("mushroom_data.csv")
# Check the structure of the data frame and observe the variables
str(mushrooms)
# As can be seen in the above command, the veil_type column only contains
... | /1R_tutorial.R | no_license | AaronStearns/OneR-tutorial | R | false | false | 2,304 | r | # Data manipulation:
library(dplyr)
# 1R algorithm:
library(OneR)
# Visualizations:
library(ggplot2)
# Import the data
mushrooms <- read.csv("mushroom_data.csv")
# Check the structure of the data frame and observe the variables
str(mushrooms)
# As can be seen in the above command, the veil_type column only contains
... |
library(ipdw)
### Name: ipdwInterp
### Title: Inverse Distance Weighting with custom distances
### Aliases: ipdwInterp
### ** Examples
spdf <- data.frame(rnorm(2))
xy <- data.frame(x = c(4, 2), y = c(8, 4))
coordinates(spdf) <- xy
m <- matrix(NA, 10, 10)
costras <- raster(m, xmn = 0, xmx = ncol(m), ymn = 0, ymx =... | /data/genthat_extracted_code/ipdw/examples/ipdwInterp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 705 | r | library(ipdw)
### Name: ipdwInterp
### Title: Inverse Distance Weighting with custom distances
### Aliases: ipdwInterp
### ** Examples
spdf <- data.frame(rnorm(2))
xy <- data.frame(x = c(4, 2), y = c(8, 4))
coordinates(spdf) <- xy
m <- matrix(NA, 10, 10)
costras <- raster(m, xmn = 0, xmx = ncol(m), ymn = 0, ymx =... |
layout <- function(n.plots) {
c <- r <- trunc(sqrt(n.plots))
if (c < 1)
r <- c <- 1
if (c * r < n.plots)
c <- c + 1
if (c * r < n.plots)
r <- r + 1
c(r, c)
}
| /R/utilities.R | permissive | ices-tools-dev/sfdMaps | R | false | false | 200 | r | layout <- function(n.plots) {
c <- r <- trunc(sqrt(n.plots))
if (c < 1)
r <- c <- 1
if (c * r < n.plots)
c <- c + 1
if (c * r < n.plots)
r <- r + 1
c(r, c)
}
|
bayesDem.go <- function(wpp.year.tfr=wpp.year.default, wpp.year.e0=wpp.year.tfr,
wpp.year.pop=wpp.year.tfr) {
quit.bayesdem <- function(h, ...) {
dispose(main.win)
#detach(gtkdb)
}
options(guiToolkit=guiToolkit.default)
#
path = system.file("images",package="bayesDem")
wait.window <- gwindow('Bayes... | /R/bayesDem.R | no_license | raquelrguima/bayesDem | R | false | false | 2,452 | r | bayesDem.go <- function(wpp.year.tfr=wpp.year.default, wpp.year.e0=wpp.year.tfr,
wpp.year.pop=wpp.year.tfr) {
quit.bayesdem <- function(h, ...) {
dispose(main.win)
#detach(gtkdb)
}
options(guiToolkit=guiToolkit.default)
#
path = system.file("images",package="bayesDem")
wait.window <- gwindow('Bayes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.