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 |
|---|---|---|---|---|---|---|---|---|---|
# Choptank_eList has model results already, but the model
# hasn't been run since it was originally saved. This takes
# the .RData files available in this package and converts
# them into their original, pre-modeled form. This is
# especially necessary for testing any modeling function.
eList_Ch <- Choptank_eList
... | /tests/testthat/helper-originaldata.R | permissive | limnoliver/EGRET | R | false | false | 1,720 | r | # Choptank_eList has model results already, but the model
# hasn't been run since it was originally saved. This takes
# the .RData files available in this package and converts
# them into their original, pre-modeled form. This is
# especially necessary for testing any modeling function.
eList_Ch <- Choptank_eList
... |
# ------------------------------------------------------------------------------
# pslide_*()
test_that("pslide_*() works", {
expect_equivalent(pslide_vec(list(1L, 1L), ~.x + .y), 2L)
expect_equivalent(pslide_int(list(1L, 1L), ~.x + .y), 2L)
})
test_that("pslide_*() retains names of first input", {
expect_equiv... | /tests/testthat/test-pslide-vec.R | permissive | jimsforks/slider | R | false | false | 4,670 | r | # ------------------------------------------------------------------------------
# pslide_*()
test_that("pslide_*() works", {
expect_equivalent(pslide_vec(list(1L, 1L), ~.x + .y), 2L)
expect_equivalent(pslide_int(list(1L, 1L), ~.x + .y), 2L)
})
test_that("pslide_*() retains names of first input", {
expect_equiv... |
## This function creates a special "matrix" object that can cache its inverse.
## The function has 4 methods:
## set: sets the value of an identity matrix in the global environment - used to initialize global veraibles
## get: gets the value of an identity matrix from the global environment
## setCacheMatri... | /cachematrix.R | no_license | ebrule/ProgrammingAssignment2 | R | false | false | 2,455 | r | ## This function creates a special "matrix" object that can cache its inverse.
## The function has 4 methods:
## set: sets the value of an identity matrix in the global environment - used to initialize global veraibles
## get: gets the value of an identity matrix from the global environment
## setCacheMatri... |
library(pksensi)
### Name: install_mcsim
### Title: Install MCSim
### Aliases: install_mcsim
### ** Examples
## Not run: install_mcsim(version = 6.0.1, mxstep = 10000)
| /data/genthat_extracted_code/pksensi/examples/install_mcsim.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 176 | r | library(pksensi)
### Name: install_mcsim
### Title: Install MCSim
### Aliases: install_mcsim
### ** Examples
## Not run: install_mcsim(version = 6.0.1, mxstep = 10000)
|
#' Plot LCc Values
#'
#' @param LC (data.frame) plot LC values from getLCc
#'
#' @return a plot of LCc value time series
#'
#' @export
#'
plotLCc = function(LC = NULL) {
lc = as.matrix(LC[, !(names(LC) %in% names(col_lc))])
info = LC[, (names(LC) %in% names(col_lc))]
ncol = ceiling(nrow(lc) / 4)
nrow = ceili... | /R/plotLCc.R | permissive | yangxhcaf/ET | R | false | false | 723 | r | #' Plot LCc Values
#'
#' @param LC (data.frame) plot LC values from getLCc
#'
#' @return a plot of LCc value time series
#'
#' @export
#'
plotLCc = function(LC = NULL) {
lc = as.matrix(LC[, !(names(LC) %in% names(col_lc))])
info = LC[, (names(LC) %in% names(col_lc))]
ncol = ceiling(nrow(lc) / 4)
nrow = ceili... |
# Remove all objects - usually start with this
rm(list=ls())
# Strategy characteristics:
# Load in strategies.
Strategy = NULL
source('/Users/amyhurford/Desktop/BIOL-3295/Labs/Lab 6/AmyStrategy1.R')
Strategy = rbind(Strategy,c(Name=1, b=b, d=d))
source('/Users/amyhurford/Desktop/BIOL-3295/Labs/Lab 6/AmyStrategy2.R')
S... | /Labs/Lab 6/Evolutionary_Simulation.R | no_license | ashbrom35/BIOL-3295 | R | false | false | 1,284 | r | # Remove all objects - usually start with this
rm(list=ls())
# Strategy characteristics:
# Load in strategies.
Strategy = NULL
source('/Users/amyhurford/Desktop/BIOL-3295/Labs/Lab 6/AmyStrategy1.R')
Strategy = rbind(Strategy,c(Name=1, b=b, d=d))
source('/Users/amyhurford/Desktop/BIOL-3295/Labs/Lab 6/AmyStrategy2.R')
S... |
\name{response_trt_graph}
\alias{response_trt_graph}
\title{
Response by Treatment Graphs
}
\description{
Read in an xls file outputted by MTA for FieldPro and give a graph of response variable by treatment number. The type of graph returned can be selected by the user.
}
\usage{
response_trt_graph(filename, trial... | /man/response_trt_graph.Rd | no_license | brentpm2/FIELD_PRO_ANALYSIS | R | false | false | 1,632 | rd | \name{response_trt_graph}
\alias{response_trt_graph}
\title{
Response by Treatment Graphs
}
\description{
Read in an xls file outputted by MTA for FieldPro and give a graph of response variable by treatment number. The type of graph returned can be selected by the user.
}
\usage{
response_trt_graph(filename, trial... |
setwd("C:\\Users\\achatterjee\\Downloads")
dat<-read.csv('Prostate.csv')
#Split data into a training and validation set
tdat<-dat[dat$train==TRUE,]
vdat<-dat[dat$train==FALSE,]
#center and scale all predictors - necessary for shrinkage methods
tdats<-data.frame(
lcavol =(tdat$lcavol -mean(tdat$lcavol ))/... | /In class activities/lasso.R | no_license | mathmodeler2718/Regression | R | false | false | 5,993 | r | setwd("C:\\Users\\achatterjee\\Downloads")
dat<-read.csv('Prostate.csv')
#Split data into a training and validation set
tdat<-dat[dat$train==TRUE,]
vdat<-dat[dat$train==FALSE,]
#center and scale all predictors - necessary for shrinkage methods
tdats<-data.frame(
lcavol =(tdat$lcavol -mean(tdat$lcavol ))/... |
rm(list = ls())
library(tidyverse)
library(ggtext)
library(lemon)
source("helper_functions.R")
source("theme/theme_swd.R")
theme_set(theme_swd() + theme(axis.ticks.x = element_blank(),
axis.ticks.y = element_blank(),
axis.title.x = element_blank(),
... | /FIG0316.R | no_license | wal/storytelling-with-data-ggplot | R | false | false | 2,716 | r | rm(list = ls())
library(tidyverse)
library(ggtext)
library(lemon)
source("helper_functions.R")
source("theme/theme_swd.R")
theme_set(theme_swd() + theme(axis.ticks.x = element_blank(),
axis.ticks.y = element_blank(),
axis.title.x = element_blank(),
... |
library(curl)
library(plyr)
library(readr)
library(dplyr)
library(tidyr)
library(readxl)
WDI_bulk_url <- "http://databank.worldbank.org/data/download/WDI_csv.zip"
WDI_local_filename <- "WDI_csv.zip"
WDI_last_modified <- "WDI_csv.lastmodified"
WDI_local_path <- "WDI_csv"
download_if_modified <- function() {
h <- new... | /WDI_coverage.R | no_license | econandrew/WDI_coverage | R | false | false | 7,938 | r | library(curl)
library(plyr)
library(readr)
library(dplyr)
library(tidyr)
library(readxl)
WDI_bulk_url <- "http://databank.worldbank.org/data/download/WDI_csv.zip"
WDI_local_filename <- "WDI_csv.zip"
WDI_last_modified <- "WDI_csv.lastmodified"
WDI_local_path <- "WDI_csv"
download_if_modified <- function() {
h <- new... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Class-SmoothedPG.R
\name{getCoherencySdNaive-SmoothedPG}
\alias{getCoherencySdNaive-SmoothedPG}
\alias{getCoherencySdNaive,SmoothedPG-method}
\title{Get estimates for the standard deviation of the coherency computed from
smoothed quanti... | /man/getCoherencySdNaive-SmoothedPG.Rd | no_license | cran/quantspec | R | false | true | 3,540 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Class-SmoothedPG.R
\name{getCoherencySdNaive-SmoothedPG}
\alias{getCoherencySdNaive-SmoothedPG}
\alias{getCoherencySdNaive,SmoothedPG-method}
\title{Get estimates for the standard deviation of the coherency computed from
smoothed quanti... |
library(tidyhydat)
### Name: hy_daily
### Title: Extract all daily water level and flow measurements
### Aliases: hy_daily
### ** Examples
## Not run:
##D hy_daily(station_number = c("02JE013","08MF005"))
## End(Not run)
| /data/genthat_extracted_code/tidyhydat/examples/hy_daily.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 229 | r | library(tidyhydat)
### Name: hy_daily
### Title: Extract all daily water level and flow measurements
### Aliases: hy_daily
### ** Examples
## Not run:
##D hy_daily(station_number = c("02JE013","08MF005"))
## End(Not run)
|
# Rely on the 'WorldPhones' dataset in the datasets
# package (which generally comes preloaded).
library(datasets)
# Use a fluid Bootstrap layout
fluidPage(
tags$head(
tags$link(
rel = "icon",
type = "image/x-icon",
href = "http://localhost:1984/default.ico")
),
# Give the page a title
... | /ui.R | no_license | makrez/shiny_deployment_example | R | false | false | 797 | r | # Rely on the 'WorldPhones' dataset in the datasets
# package (which generally comes preloaded).
library(datasets)
# Use a fluid Bootstrap layout
fluidPage(
tags$head(
tags$link(
rel = "icon",
type = "image/x-icon",
href = "http://localhost:1984/default.ico")
),
# Give the page a title
... |
#' @title Generate Genotyping Error Matrix
#'
#' @description Generate a matrix with the probabilities of observed genotypes
#' (columns) conditional on actual genotypes (rows), or return a function to
#' generate such matrices (using a single value Err as input to that
#' function).
#'
#' @details By default (\co... | /R/ErrToM.R | no_license | JiscaH/sequoia | R | false | false | 9,674 | r | #' @title Generate Genotyping Error Matrix
#'
#' @description Generate a matrix with the probabilities of observed genotypes
#' (columns) conditional on actual genotypes (rows), or return a function to
#' generate such matrices (using a single value Err as input to that
#' function).
#'
#' @details By default (\co... |
# Install devtools
install.packages("devtools")
# Load devtools
library("devtools")
# Install caiomsouzarpackage
# https://github.com/caiomsouza/caiomsouzarpackage
devtools::install_github("caiomsouza/caiomsouzarpackage")
#Load caiomsouzarpackage
library("caiomsouzarpackage")
# cat_function doc
?cat_function
# sum... | /mod7/R/src/06_ejercicio_extra/06_ejercicio_extra.R | no_license | caiomsouza/u-tad | R | false | false | 539 | r | # Install devtools
install.packages("devtools")
# Load devtools
library("devtools")
# Install caiomsouzarpackage
# https://github.com/caiomsouza/caiomsouzarpackage
devtools::install_github("caiomsouza/caiomsouzarpackage")
#Load caiomsouzarpackage
library("caiomsouzarpackage")
# cat_function doc
?cat_function
# sum... |
#' @export
precintcon.plot.pn <- function(
...,
interval = 30,
scale = "a",
xlab = NA,
ylab = "PN",
fontsize = 10,
axis.text.color = "black",
legend = NULL,
export = FALSE,
export.name = "pn_plot.... | /R/precintcon.plot.pn.r | no_license | lucasvenez/precintcon | R | false | false | 2,817 | r | #' @export
precintcon.plot.pn <- function(
...,
interval = 30,
scale = "a",
xlab = NA,
ylab = "PN",
fontsize = 10,
axis.text.color = "black",
legend = NULL,
export = FALSE,
export.name = "pn_plot.... |
#install.packages("gdm")
library(gdm)
library(parallel)
library(iterators)
library(foParallel)
library(foreach)
library(sp)
library(raster)
## just gonna try with bellii for now
## using lucas' names to make sure i understand how works -- will need to update
#data <- read.csv("Icterus_ingroup_environmentaldata.csv",h... | /scripts/GDM Analyses/GDM_fromlucas.R | no_license | kaiyaprovost/GDM_pipeline | R | false | false | 8,785 | r | #install.packages("gdm")
library(gdm)
library(parallel)
library(iterators)
library(foParallel)
library(foreach)
library(sp)
library(raster)
## just gonna try with bellii for now
## using lucas' names to make sure i understand how works -- will need to update
#data <- read.csv("Icterus_ingroup_environmentaldata.csv",h... |
#' Collect False Negative and False Positive Values.
#'
#' Function to Collect the False Negative and False Positive Values from each dataset, for the purpose of knowing how many percentage of mislabelled and defective modules are present.
#' @param Obtain the FN and FP values through a dataframe, Defaults to MSD (data... | /R/CollectFNFP.R | no_license | suraj-yathish/MCSlibrary | R | false | false | 1,016 | r | #' Collect False Negative and False Positive Values.
#'
#' Function to Collect the False Negative and False Positive Values from each dataset, for the purpose of knowing how many percentage of mislabelled and defective modules are present.
#' @param Obtain the FN and FP values through a dataframe, Defaults to MSD (data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in
% R/get_recent_personal_explanations_votes_specific_member_by_category.R
\name{get_recent_personal_explanations_votes_specific_member_by_category}
\alias{get_recent_personal_explanations_votes_specific_member_by_category}
\title{Get Recent Pe... | /man/get_recent_personal_explanations_votes_specific_member_by_category.Rd | no_license | DavytJ/ProPublicaR | R | false | true | 2,208 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in
% R/get_recent_personal_explanations_votes_specific_member_by_category.R
\name{get_recent_personal_explanations_votes_specific_member_by_category}
\alias{get_recent_personal_explanations_votes_specific_member_by_category}
\title{Get Recent Pe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/disp.R
\name{disp}
\alias{disp}
\title{Generate a table with identified bubble/crisis periods}
\usage{
disp(OT, obs)
}
\arguments{
\item{OT}{A date vector. Bubbles/crisis periods identified by the
\code{spymonitor::locate} function.... | /man/disp.Rd | no_license | cran/psymonitor | R | false | true | 1,831 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/disp.R
\name{disp}
\alias{disp}
\title{Generate a table with identified bubble/crisis periods}
\usage{
disp(OT, obs)
}
\arguments{
\item{OT}{A date vector. Bubbles/crisis periods identified by the
\code{spymonitor::locate} function.... |
\name{summary.warn}
\alias{summary.warn}
\title{
Summaries of posterior weaning parameters
}
\description{
\code{summary.warn} calculates simple summaries of posterior samples for the four weaning parameters, which is the maximum density estimators and its marginal probabilities, a joint probability for the combina... | /man/summary.warn.Rd | no_license | cran/WARN | R | false | false | 1,748 | rd | \name{summary.warn}
\alias{summary.warn}
\title{
Summaries of posterior weaning parameters
}
\description{
\code{summary.warn} calculates simple summaries of posterior samples for the four weaning parameters, which is the maximum density estimators and its marginal probabilities, a joint probability for the combina... |
\name{overfittingMFA}
\alias{overfittingMFA}
\title{
Basic MCMC sampler
}
\description{
Gibbs sampling for fitting a mixture model of factor analyzers.
}
\usage{
overfittingMFA(x_data, originalX, outputDirectory, Kmax, m, thinning, burn,
g, h, alpha_prior, alpha_sigma, beta_sigma,
start_values, q, zStart, gibbs_z... | /fabMixPackage/version_4.2/fabMix/man/overfittingMFA.Rd | no_license | mqbssppe/overfittingFABMix | R | false | false | 1,268 | rd | \name{overfittingMFA}
\alias{overfittingMFA}
\title{
Basic MCMC sampler
}
\description{
Gibbs sampling for fitting a mixture model of factor analyzers.
}
\usage{
overfittingMFA(x_data, originalX, outputDirectory, Kmax, m, thinning, burn,
g, h, alpha_prior, alpha_sigma, beta_sigma,
start_values, q, zStart, gibbs_z... |
#
# 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(ncdf4)
library(chron)
library(shiny)
library(sp)
library(rgdal)
library(raster)
library(tmap)
da... | /server.R | no_license | bczernecki/shiny | R | false | false | 3,399 | 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(ncdf4)
library(chron)
library(shiny)
library(sp)
library(rgdal)
library(raster)
library(tmap)
da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.shield_operations.R
\name{list_attacks}
\alias{list_attacks}
\title{Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period}
\usage{
list_attacks(ResourceArns = NULL, StartTime = NULL, EndTime = NULL,
NextTo... | /service/paws.shield/man/list_attacks.Rd | permissive | CR-Mercado/paws | R | false | true | 2,367 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.shield_operations.R
\name{list_attacks}
\alias{list_attacks}
\title{Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period}
\usage{
list_attacks(ResourceArns = NULL, StartTime = NULL, EndTime = NULL,
NextTo... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 5735
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 5735
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/t... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/trivial_query60_1344n/trivial_query60_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 714 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 5735
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 5735
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/t... |
## Transaction Summarization Metrics: Per Day, Month, & Year
##
## tx is transaction
## columns to keep: transaction count (txCount), and use adjustedTransaction Amount
## daily blockchain transaction volume (by count & by amount), monthly, & yearly (some coins dont have but one year.. take this into account)
## th... | /coinMetrics.R | no_license | aarondevlin/blockchain_transaction_analysis | R | false | false | 4,665 | r |
## Transaction Summarization Metrics: Per Day, Month, & Year
##
## tx is transaction
## columns to keep: transaction count (txCount), and use adjustedTransaction Amount
## daily blockchain transaction volume (by count & by amount), monthly, & yearly (some coins dont have but one year.. take this into account)
## th... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... | /meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615843876-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 2,232 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/safebrowsing_objects.R
\name{ClientInfo}
\alias{ClientInfo}
\title{ClientInfo Object}
\usage{
ClientInfo(clientId = NULL, clientVersion = NULL)
}
\arguments{
\item{clientId}{A client ID that (hopefully) uniquely identifies the client implemen... | /googlesafebrowsingv4.auto/man/ClientInfo.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 626 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/safebrowsing_objects.R
\name{ClientInfo}
\alias{ClientInfo}
\title{ClientInfo Object}
\usage{
ClientInfo(clientId = NULL, clientVersion = NULL)
}
\arguments{
\item{clientId}{A client ID that (hopefully) uniquely identifies the client implemen... |
#Elian Gonzalez Hernandez
#--------------------------------------------------------------------------------------------
#Pregunta 1
#--------------------------------------------------------------------------------------------
#Esta secuencia es para dibujar la funcion.Alerta debo fijarme en el intervalo de la integra... | /R Script/Examen Elian Gonzalez.R | no_license | elian880530/elian880530.github.io | R | false | false | 6,744 | r | #Elian Gonzalez Hernandez
#--------------------------------------------------------------------------------------------
#Pregunta 1
#--------------------------------------------------------------------------------------------
#Esta secuencia es para dibujar la funcion.Alerta debo fijarme en el intervalo de la integra... |
## init
"SoilProfileCollection" <- function(
idcol='id',
depthcols=c('top','bottom'),
metadata=data.frame(stringsAsFactors=FALSE),
horizons,
site=data.frame(stringsAsFactors=FALSE),
sp=new('SpatialPoints'), # this is a bogus place-holder
diagnostic=data.frame(stringsAsFactors=FALSE)
){
# creation of the obj... | /R/SoilProfileCollection-methods.R | no_license | IKWENZI/aqp | R | false | false | 18,251 | r | ## init
"SoilProfileCollection" <- function(
idcol='id',
depthcols=c('top','bottom'),
metadata=data.frame(stringsAsFactors=FALSE),
horizons,
site=data.frame(stringsAsFactors=FALSE),
sp=new('SpatialPoints'), # this is a bogus place-holder
diagnostic=data.frame(stringsAsFactors=FALSE)
){
# creation of the obj... |
pollutantmean <- function(directory, pollutant, id = 1:332){
# create the path of the directory
path <- paste0(getwd(),'/',directory)
# create data frame df the will contain all the data according to the given id-s
df <- data.frame()
for (i in id) {
if (i < 10) {
data <- read.csv(paste0(p... | /2- R Programming/Week 2/pollutantmean.R | no_license | jrreda/JHU-Data-Science | R | false | false | 930 | r | pollutantmean <- function(directory, pollutant, id = 1:332){
# create the path of the directory
path <- paste0(getwd(),'/',directory)
# create data frame df the will contain all the data according to the given id-s
df <- data.frame()
for (i in id) {
if (i < 10) {
data <- read.csv(paste0(p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postgresDBConnector.R
\name{disconnectFromPostgresDB}
\alias{disconnectFromPostgresDB}
\title{Disconnects from postgres database}
\usage{
disconnectFromPostgresDB(connection)
}
\arguments{
\item{connection}{Postgres connection object}
}
\desc... | /Plumber/man/disconnectFromPostgresDB.Rd | permissive | pbelai/hackTheCrisis | R | false | true | 366 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postgresDBConnector.R
\name{disconnectFromPostgresDB}
\alias{disconnectFromPostgresDB}
\title{Disconnects from postgres database}
\usage{
disconnectFromPostgresDB(connection)
}
\arguments{
\item{connection}{Postgres connection object}
}
\desc... |
##################################################################################################################################
##################################################################################################################################
library(ShortRead)
library(rtracklayer)
library(ts... | /ChILseq_ESC/scripts/coverage2matrix.R | permissive | tschauer/Abe_etal_2022 | R | false | false | 2,352 | r |
##################################################################################################################################
##################################################################################################################################
library(ShortRead)
library(rtracklayer)
library(ts... |
library(shiny)
library(shinydashboard)
library(plotly)
library(dplyr)
library(lubridate)
library(leaflet)
library(htmltools)
library(htmlwidgets)
library(dplyr)
library(lubridate)
library(ggplot2)
#setwd("c:/Users/ujwala/Documents/Cousera_Assignment_3")
seattle <- read.csv("seattle.csv",header = TRUE,... | /server.R | no_license | ujwalamusku/courserassignment3 | R | false | false | 2,949 | r | library(shiny)
library(shinydashboard)
library(plotly)
library(dplyr)
library(lubridate)
library(leaflet)
library(htmltools)
library(htmlwidgets)
library(dplyr)
library(lubridate)
library(ggplot2)
#setwd("c:/Users/ujwala/Documents/Cousera_Assignment_3")
seattle <- read.csv("seattle.csv",header = TRUE,... |
#' Returns corrected metadata if code has been changed by external force, forcing us to do
#' recalculation. NULL otherwise
code_has_been_changed<-function(metadata)
{
digests<-calculate_code_digest(metadata)
if (is.null(metadata$codeCRC) || metadata$codeCRC != digests)
{
metadata$codeCRC <- digests
... | /R/is_object_dirty.R | no_license | adamryczkowski/depwalker | R | false | false | 373 | r |
#' Returns corrected metadata if code has been changed by external force, forcing us to do
#' recalculation. NULL otherwise
code_has_been_changed<-function(metadata)
{
digests<-calculate_code_digest(metadata)
if (is.null(metadata$codeCRC) || metadata$codeCRC != digests)
{
metadata$codeCRC <- digests
... |
call_iatlas_module <- function(
name,
server_function,
input,
session,
...,
tab_id = "explorertabs"
){
link_string <- paste0("link_to_", name)
shiny::observeEvent(input[[link_string]], {
shinydashboard::updateTabItems(
session,
inputId = tab_id,
selected = name
)
})
x ... | /R/call_iatlas_module.R | permissive | CRI-iAtlas/iatlas-app | R | false | false | 363 | r | call_iatlas_module <- function(
name,
server_function,
input,
session,
...,
tab_id = "explorertabs"
){
link_string <- paste0("link_to_", name)
shiny::observeEvent(input[[link_string]], {
shinydashboard::updateTabItems(
session,
inputId = tab_id,
selected = name
)
})
x ... |
parella_sim <- function(N, n, zeros=FALSE, parameters="normal", seed=NULL){
if (!is.null(seed)){
set.seed(seed)
}
if (is.null(N)) stop("The argument N (number of items) must be provided")
if (is.null(n)) stop("The argument n (number of persons) must be provided")
if (is.null(zeros)) zeros <- FALSE
... | /R/parella_sim.R | no_license | cran/mudfold | R | false | false | 2,480 | r | parella_sim <- function(N, n, zeros=FALSE, parameters="normal", seed=NULL){
if (!is.null(seed)){
set.seed(seed)
}
if (is.null(N)) stop("The argument N (number of items) must be provided")
if (is.null(n)) stop("The argument n (number of persons) must be provided")
if (is.null(zeros)) zeros <- FALSE
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tenxSummarizedExperiment.R
\name{tenxSummarizedExperiment}
\alias{tenxSummarizedExperiment}
\alias{as.tenxSummarizedExperiment}
\alias{matrixSummarizedExperiment}
\alias{as.matrixSummarizedExperiment}
\alias{dgCMatrixSummarizedExperiment}
\al... | /man/tenxSummarizedExperiment.Rd | no_license | IMB-Computational-Genomics-Lab/TENxGenomics | R | false | true | 3,253 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tenxSummarizedExperiment.R
\name{tenxSummarizedExperiment}
\alias{tenxSummarizedExperiment}
\alias{as.tenxSummarizedExperiment}
\alias{matrixSummarizedExperiment}
\alias{as.matrixSummarizedExperiment}
\alias{dgCMatrixSummarizedExperiment}
\al... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_heterogeneous_dataset.R
\name{make_heterogeneous_dataset}
\alias{make_heterogeneous_dataset}
\title{Build a heterogeneou dataset of predefined size}
\usage{
make_heterogeneous_dataset(
epitopes,
proteins,
taxonomy_list,
nPos,
n... | /man/make_heterogeneous_dataset.Rd | no_license | richelbilderbeek/epitopes | R | false | true | 3,407 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_heterogeneous_dataset.R
\name{make_heterogeneous_dataset}
\alias{make_heterogeneous_dataset}
\title{Build a heterogeneou dataset of predefined size}
\usage{
make_heterogeneous_dataset(
epitopes,
proteins,
taxonomy_list,
nPos,
n... |
test_that("non-missing scalar replaces all missing values", {
x <- c(NA, 1)
expect_equal(coalesce(x, 1), c(1, 1))
})
test_that("coerces to common type", {
expect_identical(coalesce(NA, 1), 1)
f <- factor("x", levels = c("x", "y"))
expect_identical(coalesce(NA, f), f)
})
test_that("finds non-missing values ... | /tests/testthat/test-coalesce.R | no_license | cran/tidytable | R | false | false | 774 | r | test_that("non-missing scalar replaces all missing values", {
x <- c(NA, 1)
expect_equal(coalesce(x, 1), c(1, 1))
})
test_that("coerces to common type", {
expect_identical(coalesce(NA, 1), 1)
f <- factor("x", levels = c("x", "y"))
expect_identical(coalesce(NA, f), f)
})
test_that("finds non-missing values ... |
plotlyPointMassDistribution <- function(plotrange, input, distType, probrange) {
xseq <- seq(round(min(0, as.numeric(plotrange[1])), 0), round(max(as.numeric(plotrange[2]),
10), 0), 1)
f60 <- 0
graphtype <- ""
if (input$FunctionType == "PDF/PMF") {
f60 <- dpoint(xseq, as.numeric(input$PM... | /plotlyFunctions/PointMass.R | no_license | SOCR/ProbDistCalc_RShiny | R | false | false | 1,922 | r | plotlyPointMassDistribution <- function(plotrange, input, distType, probrange) {
xseq <- seq(round(min(0, as.numeric(plotrange[1])), 0), round(max(as.numeric(plotrange[2]),
10), 0), 1)
f60 <- 0
graphtype <- ""
if (input$FunctionType == "PDF/PMF") {
f60 <- dpoint(xseq, as.numeric(input$PM... |
context("addCountGenos")
# Settings ----
# VCF file
vcfFile <- system.file("extdata", "moderate.vcf", package = "TVTB")
# TVTB parameters
tparam <- TVTBparam(Genotypes("0|0", c("0|1", "1|0"), "1|1"))
# Pre-process variants
vcf <- VariantAnnotation::readVcf(vcfFile, param = tparam)
vcf <- VariantAnnotation::expand(v... | /tests/testthat/test_addCountGenos-methods.R | permissive | kevinrue/TVTB | R | false | false | 1,681 | r | context("addCountGenos")
# Settings ----
# VCF file
vcfFile <- system.file("extdata", "moderate.vcf", package = "TVTB")
# TVTB parameters
tparam <- TVTBparam(Genotypes("0|0", c("0|1", "1|0"), "1|1"))
# Pre-process variants
vcf <- VariantAnnotation::readVcf(vcfFile, param = tparam)
vcf <- VariantAnnotation::expand(v... |
library(EGRET)
### Name: readUserDaily
### Title: Import user daily data for EGRET analysis
### Aliases: readUserDaily
### Keywords: USGS WRTDS data file import
### ** Examples
filePath <- system.file("extdata", package="EGRET")
fileName <- "ChoptankRiverFlow.txt"
Daily <- readUserDaily(filePath,fileName,separator=... | /data/genthat_extracted_code/EGRET/examples/readUserDaily.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 329 | r | library(EGRET)
### Name: readUserDaily
### Title: Import user daily data for EGRET analysis
### Aliases: readUserDaily
### Keywords: USGS WRTDS data file import
### ** Examples
filePath <- system.file("extdata", package="EGRET")
fileName <- "ChoptankRiverFlow.txt"
Daily <- readUserDaily(filePath,fileName,separator=... |
library(foreach)
source('./dataSourcer.R')
BASE_DAT_FNAME <- '/tic-tac-toe-'
BASE_DAT_DIR <- './data/tic-tac-toe/'
runKNN <- function(){
trainingDat <- featurizer.TicTac(getTicTacTrainData())
testDat <- featurizer.TicTac(getTicTacTestData())
xvalRunTime <- system.time(xvalNums <- sum(xval(trainingDat)[,'numGoo... | /k-nearest.R | no_license | ngg123/badges | R | false | false | 1,635 | r | library(foreach)
source('./dataSourcer.R')
BASE_DAT_FNAME <- '/tic-tac-toe-'
BASE_DAT_DIR <- './data/tic-tac-toe/'
runKNN <- function(){
trainingDat <- featurizer.TicTac(getTicTacTrainData())
testDat <- featurizer.TicTac(getTicTacTestData())
xvalRunTime <- system.time(xvalNums <- sum(xval(trainingDat)[,'numGoo... |
#
# This Shiny web application demonstrates the use of custom image files
# in place of icons for value boxes in Shiny Dashboard by overriding two
# functions:
#
# 'icon' from the shiny package and 'valueBox' from the shinydashboard package.
#
# Each function adds minimal, specific additional handling of image files.
#... | /customIconsDemo/app.R | no_license | eefermat/jfsp | R | false | false | 5,759 | r | #
# This Shiny web application demonstrates the use of custom image files
# in place of icons for value boxes in Shiny Dashboard by overriding two
# functions:
#
# 'icon' from the shiny package and 'valueBox' from the shinydashboard package.
#
# Each function adds minimal, specific additional handling of image files.
#... |
# sentiment analysis
library(tidytext)
library(tidyr)
library(wordcloud)
library(ggplot2)
theme_set(theme_bw())
library(stringr)
library(forcats)
library(wordcloud)
# import data
mvll_tidy <- vargas_llosa() %>%
unnest_tokens(word, text)
mvll_tidy <- readRDS('mvll_tidy.rds') %>%
unnest_tokens(word, text)
mvll_s... | /src/sentiment.R | no_license | rlabuonora/mvll_nlp | R | false | false | 1,961 | r | # sentiment analysis
library(tidytext)
library(tidyr)
library(wordcloud)
library(ggplot2)
theme_set(theme_bw())
library(stringr)
library(forcats)
library(wordcloud)
# import data
mvll_tidy <- vargas_llosa() %>%
unnest_tokens(word, text)
mvll_tidy <- readRDS('mvll_tidy.rds') %>%
unnest_tokens(word, text)
mvll_s... |
load.data <- function(){
setwd("/Users/North_Point/Dropbox/MOOC/Data_Science/Exploratory_Analysis/week1/New_Submission")
data <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
data
}
clean.data <- function(){
dat <- load.data()
dat$date... | /plot2.R | no_license | North-Point/ExData_Plotting1 | R | false | false | 2,659 | r | load.data <- function(){
setwd("/Users/North_Point/Dropbox/MOOC/Data_Science/Exploratory_Analysis/week1/New_Submission")
data <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
data
}
clean.data <- function(){
dat <- load.data()
dat$date... |
parSBL<-function(x, Samples, estim.sigma2, aAlpha, verbose=TRUE, ...)
{
setwd(x)
if (verbose)
cat("Creating SBL directory ...")
if (!"SBL"%in%dir())
system("mkdir SBL")
if (verbose)
cat("done \n")
if (missing(Samples))
Samples<-attr(x,"Samples")
if (length(Samples)>2)
stop(" 'Sampl... | /R/parSBL.R | no_license | tf2/CNsolidate | R | false | false | 1,646 | r | parSBL<-function(x, Samples, estim.sigma2, aAlpha, verbose=TRUE, ...)
{
setwd(x)
if (verbose)
cat("Creating SBL directory ...")
if (!"SBL"%in%dir())
system("mkdir SBL")
if (verbose)
cat("done \n")
if (missing(Samples))
Samples<-attr(x,"Samples")
if (length(Samples)>2)
stop(" 'Sampl... |
rforcecom.upsert <-
function(session, objectName, externalIdField, externalId, fields){
# Load packages
#if(!require(XML)){ install.packages("XML"); stop(!require(XML)) }
#if(!require(RCurl)){ install.packages("RCurl"); stop(!require(RCurl)) }
#if(!require(plyr)){ install.packages("plyr"); stop(!require(plyr)) }
... | /OldVersions/RForcecom-0.7/RForcecom/R/rforcecom.upsert.R | permissive | oristides/RForcecom | R | false | false | 1,967 | r | rforcecom.upsert <-
function(session, objectName, externalIdField, externalId, fields){
# Load packages
#if(!require(XML)){ install.packages("XML"); stop(!require(XML)) }
#if(!require(RCurl)){ install.packages("RCurl"); stop(!require(RCurl)) }
#if(!require(plyr)){ install.packages("plyr"); stop(!require(plyr)) }
... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y){
x <<- y
i <<- NULL
}
get <- function() x
setinverse <-function(inverse) i<<- inverse
getinverse <-fun... | /cachematrix.R | no_license | xiangyan0525/ProgrammingAssignment2 | R | false | false | 692 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y){
x <<- y
i <<- NULL
}
get <- function() x
setinverse <-function(inverse) i<<- inverse
getinverse <-fun... |
#' Creates a new audit_measure object
#'
#' This family of functions are used to create a new audit_measure
#' object.
#' Audit measure objects have two subclasses: audit_measure_continuous
#' and audit_measure_discrete. You can create both using the
#' audit_measure function (to allow us to create multiple objects at
... | /R/audit_measure.R | no_license | md0u80c9/SSNAPStats | R | false | false | 25,927 | r | #' Creates a new audit_measure object
#'
#' This family of functions are used to create a new audit_measure
#' object.
#' Audit measure objects have two subclasses: audit_measure_continuous
#' and audit_measure_discrete. You can create both using the
#' audit_measure function (to allow us to create multiple objects at
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hash_sentiment_emojis.R
\docType{data}
\name{hash_emojis_identifier}
\alias{hash_emojis_identifier}
\title{Emoji Identifier Lookup Table}
\format{
A data frame with 734 rows and 2 variables
}
\usage{
data(hash_emojis_identifier)
}
\descriptio... | /man/hash_emojis_identifier.Rd | no_license | Mpellet771/lexicon | R | false | true | 2,425 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hash_sentiment_emojis.R
\docType{data}
\name{hash_emojis_identifier}
\alias{hash_emojis_identifier}
\title{Emoji Identifier Lookup Table}
\format{
A data frame with 734 rows and 2 variables
}
\usage{
data(hash_emojis_identifier)
}
\descriptio... |
## download the raw data
url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
download.file(url = url, 'plotting_data.zip')
## unzip and save
unzip('plotting_data.zip')
### read into a dataframe
dat <- read.csv('household_power_consumption.txt', sep = ';',
... | /plot1.R | no_license | komoroka/ExData_Plotting1 | R | false | false | 1,386 | r | ## download the raw data
url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
download.file(url = url, 'plotting_data.zip')
## unzip and save
unzip('plotting_data.zip')
### read into a dataframe
dat <- read.csv('household_power_consumption.txt', sep = ';',
... |
#For PMCIDs w/o DOI (or for which doi did not yield date) in CORD19 dataset (note specific version)
#get publication data from EuropePMC
#create matching table to integrate in CORD19 instance used in ASReview
#info on package #europepmc:
#https://github.com/ropensci/europepmc
#https://cran.r-project.org/web/packages/... | /Cord19_dataset/CORD19v5_R/02_CORD19_match_PMCID.R | permissive | GerbrichFerdinands/asreview-covid19 | R | false | false | 3,474 | r | #For PMCIDs w/o DOI (or for which doi did not yield date) in CORD19 dataset (note specific version)
#get publication data from EuropePMC
#create matching table to integrate in CORD19 instance used in ASReview
#info on package #europepmc:
#https://github.com/ropensci/europepmc
#https://cran.r-project.org/web/packages/... |
building <- function(X1Y, ny, model) {
if (model == "logistic") {
Xa <- as.data.frame(X1Y[,10:18])
YY <- as.numeric(X1Y[,ny])
#if (max(YY) != 1) {stop("response must be logistic")}
model <- glm(YY ~ ., data = cbind.data.frame(YY, Xa), family = "binomial")
} else if (model == "pls") {
pen... | /CCC_method/R/building.R | no_license | lucanard/CCC | R | false | false | 1,509 | r | building <- function(X1Y, ny, model) {
if (model == "logistic") {
Xa <- as.data.frame(X1Y[,10:18])
YY <- as.numeric(X1Y[,ny])
#if (max(YY) != 1) {stop("response must be logistic")}
model <- glm(YY ~ ., data = cbind.data.frame(YY, Xa), family = "binomial")
} else if (model == "pls") {
pen... |
##
# johaGL 2021
# Get seu object with only Sat cells (for Dr. Brun)
# (note: myonuclei excluded only for graphics)
##
library(ggplot2)
library(tidyverse)
library(Seurat)
library(scales)
library(viridis)
library(Matrix)
library(reticulate)
library(monocle)
library(patchwork)
library(cowplot)
library(RColorBrewer)
libr... | /scripts/review_sCs.R | no_license | LeGrand-Lab/INMG_SingleCell | R | false | false | 5,749 | r | ##
# johaGL 2021
# Get seu object with only Sat cells (for Dr. Brun)
# (note: myonuclei excluded only for graphics)
##
library(ggplot2)
library(tidyverse)
library(Seurat)
library(scales)
library(viridis)
library(Matrix)
library(reticulate)
library(monocle)
library(patchwork)
library(cowplot)
library(RColorBrewer)
libr... |
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of diana2nd02
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... | /OhdsiDataThonKorea2019/Studies/diana2nd02/R/SubmitResults.R | permissive | ohdsi-korea/OhdsiKoreaTutorials | R | false | false | 2,005 | r | # Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of diana2nd02
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... |
library(Compositional)
### Name: Total variability
### Title: Total variability
### Aliases: totvar
### ** Examples
x <- as.matrix(iris[, 1:4])
x <- x / rowSums(x)
totvar(x)
| /data/genthat_extracted_code/Compositional/examples/totvar.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 181 | r | library(Compositional)
### Name: Total variability
### Title: Total variability
### Aliases: totvar
### ** Examples
x <- as.matrix(iris[, 1:4])
x <- x / rowSums(x)
totvar(x)
|
#' @title Dewpoint Temperature
#' @docType data
#' @name tdew
#' @usage tdew
#' @format A rasterbrick (.nc)
#' @description Input dewpoint temperature dataset
#' @keywords datasets
NULL
| /R/tdew.r | no_license | cran/lue | R | false | false | 194 | r | #' @title Dewpoint Temperature
#' @docType data
#' @name tdew
#' @usage tdew
#' @format A rasterbrick (.nc)
#' @description Input dewpoint temperature dataset
#' @keywords datasets
NULL
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runCicero.R
\name{generate_cicero_models}
\alias{generate_cicero_models}
\title{Generate cicero models}
\usage{
generate_cicero_models(cds, distance_parameter, s = 0.75,
window = 5e+05, max_elements = 200,
genomic_coords = cicero::human.h... | /man/generate_cicero_models.Rd | permissive | hypercompetent/cicero | R | false | true | 4,428 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runCicero.R
\name{generate_cicero_models}
\alias{generate_cicero_models}
\title{Generate cicero models}
\usage{
generate_cicero_models(cds, distance_parameter, s = 0.75,
window = 5e+05, max_elements = 200,
genomic_coords = cicero::human.h... |
# No Remotes ----
# Attachments ----
to_install <- c("curl", "data.table", "dplyr", "DT", "ggplot2", "glue", "httr", "jsonlite", "lubridate", "magrittr", "plotly", "pracma", "readr", "rlang", "shiny", "shinycssloaders", "shinydashboard", "shinythemes", "stats", "utils")
for (i in to_install) {
message(paste("look... | /CryptoShiny/inst/dependencies.R | permissive | fernandopf/ThinkRProject | R | false | false | 447 | r | # No Remotes ----
# Attachments ----
to_install <- c("curl", "data.table", "dplyr", "DT", "ggplot2", "glue", "httr", "jsonlite", "lubridate", "magrittr", "plotly", "pracma", "readr", "rlang", "shiny", "shinycssloaders", "shinydashboard", "shinythemes", "stats", "utils")
for (i in to_install) {
message(paste("look... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Annotations.R
\name{CTSStoGenes}
\alias{CTSStoGenes}
\alias{CTSStoGenes,CAGEexp-method}
\title{Make a gene expression table.}
\usage{
CTSStoGenes(object)
\S4method{CTSStoGenes}{CAGEexp}(object)
}
\arguments{
\item{object}{A \code{CAGEexp} ob... | /man/CTSStoGenes.Rd | no_license | snikumbh/CAGEr | R | false | true | 2,060 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Annotations.R
\name{CTSStoGenes}
\alias{CTSStoGenes}
\alias{CTSStoGenes,CAGEexp-method}
\title{Make a gene expression table.}
\usage{
CTSStoGenes(object)
\S4method{CTSStoGenes}{CAGEexp}(object)
}
\arguments{
\item{object}{A \code{CAGEexp} ob... |
# K-fold cross validation example code
# K-fold 교차 검증 여러가지 예제 코드
################################################################
# 첫번째 Example code
# iris데이터 - 5개의 열과 150개의 행
# 사용 모델링 알고리즘 : Random forest
# iris의 Sepal.Length 예측 - iris Sepal.Length Predict
library(plyr)
library(dplyr)
library(randomForest)
data <- ... | /K-fold cross validation example code.R | no_license | Karagul/KFold-Cross-Validation | R | false | false | 3,366 | r | # K-fold cross validation example code
# K-fold 교차 검증 여러가지 예제 코드
################################################################
# 첫번째 Example code
# iris데이터 - 5개의 열과 150개의 행
# 사용 모델링 알고리즘 : Random forest
# iris의 Sepal.Length 예측 - iris Sepal.Length Predict
library(plyr)
library(dplyr)
library(randomForest)
data <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.klmer.R
\name{simulate.klmer}
\alias{simulate.klmer}
\title{Semi-Parametric Bootstrap sample form a klmer object.}
\usage{
\method{simulate}{klmer}(object, nsim = 1, seed = NULL, resids, ...)
}
\arguments{
\item{object}{Models to be ... | /man/simulate.klmer.Rd | no_license | BagchiLab-Uconn/RSPPlme4 | R | false | true | 696 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.klmer.R
\name{simulate.klmer}
\alias{simulate.klmer}
\title{Semi-Parametric Bootstrap sample form a klmer object.}
\usage{
\method{simulate}{klmer}(object, nsim = 1, seed = NULL, resids, ...)
}
\arguments{
\item{object}{Models to be ... |
#' show_dmsg()
#' This function generates will plot heatmaps of methylation level of sites in dmgenes
#'
#' @param mrobj A methyRaw object or a methyRawList object
#' @param dmsg A list containing GRanges objects dmsites and dmgenes returned by
#' det_dmsg()
#' @param min.nsites Required minimal number of msites i... | /R/show_dmsg.R | no_license | littleblackfish/BWASPR | R | false | false | 6,889 | r | #' show_dmsg()
#' This function generates will plot heatmaps of methylation level of sites in dmgenes
#'
#' @param mrobj A methyRaw object or a methyRawList object
#' @param dmsg A list containing GRanges objects dmsites and dmgenes returned by
#' det_dmsg()
#' @param min.nsites Required minimal number of msites i... |
install.packages("highcharter")
library(highcharter)
data("mpg", package = "ggplot2")
head(mpg)
hchart(mpg, "point", hcaes(x = displ, y = cty))
data(diamonds, economics_long, mpg, package = "ggplot2")
library(dplyr)
head(mpg)
hchart(mpg, "scatter", hcaes(x = displ, y = hwy, group = class)) | /highcharter.R | no_license | UrszulaCzerwinska/AppliedPredictiveModeling | R | false | false | 291 | r | install.packages("highcharter")
library(highcharter)
data("mpg", package = "ggplot2")
head(mpg)
hchart(mpg, "point", hcaes(x = displ, y = cty))
data(diamonds, economics_long, mpg, package = "ggplot2")
library(dplyr)
head(mpg)
hchart(mpg, "scatter", hcaes(x = displ, y = hwy, group = class)) |
library(lubridate)
library(tidyverse)
library(cowplot)
climate_recent_raw <- read_csv('data/climate_2018_2019.csv')
# https://www.ncdc.noaa.gov/cdo-web/search
climate_normals_raw <- read_csv('data/climate_normals.csv')
climate_2018 <- climate_recent_raw %>%
separate(DATE, into = c('YEAR','DATE')) %>%
mutate(D... | /code/climatology_analysis.R | no_license | tylerhoecker/seed_addition_GYE | R | false | false | 4,700 | r | library(lubridate)
library(tidyverse)
library(cowplot)
climate_recent_raw <- read_csv('data/climate_2018_2019.csv')
# https://www.ncdc.noaa.gov/cdo-web/search
climate_normals_raw <- read_csv('data/climate_normals.csv')
climate_2018 <- climate_recent_raw %>%
separate(DATE, into = c('YEAR','DATE')) %>%
mutate(D... |
rootdir<-"/data/h_gelbard_lab/projects/20230606_9686_AG_RNAseq_iSGS_estrogen/deseq2_proteincoding_genetable/result"
inputfile<-"RNAseq_human.define"
pvalue<-0.05
useRawPvalue<-0
foldChange<-2
minMedianInGroup<-5
detectedInBothGroup<-0
showLabelInPCA<-1
showDEGeneCluster<-0
addCountOne<-0
usePearsonInHCA<-1
top25o... | /lib/Comparison/DESeq2.r | permissive | shengqh/ngsperl | R | false | false | 53,163 | r |
rootdir<-"/data/h_gelbard_lab/projects/20230606_9686_AG_RNAseq_iSGS_estrogen/deseq2_proteincoding_genetable/result"
inputfile<-"RNAseq_human.define"
pvalue<-0.05
useRawPvalue<-0
foldChange<-2
minMedianInGroup<-5
detectedInBothGroup<-0
showLabelInPCA<-1
showDEGeneCluster<-0
addCountOne<-0
usePearsonInHCA<-1
top25o... |
.sph2car = function(long, lat, radius=1, deg=TRUE){
if (is.matrix(long) || is.data.frame(long)) {
if (ncol(long) == 1) {
long = long[, 1]
}
else if (ncol(long) == 2) {
lat = long[, 2]
long = long[, 1]
}
else if (ncol(long) == 3) {
radius = long[, 3]
lat = long[, 2]
... | /R/Rwcs.R | no_license | asgr/Rwcs | R | false | false | 39,176 | r | .sph2car = function(long, lat, radius=1, deg=TRUE){
if (is.matrix(long) || is.data.frame(long)) {
if (ncol(long) == 1) {
long = long[, 1]
}
else if (ncol(long) == 2) {
lat = long[, 2]
long = long[, 1]
}
else if (ncol(long) == 3) {
radius = long[, 3]
lat = long[, 2]
... |
#' EDMeasure: A package for energy-based dependence measures
#'
#' The EDMeasure package provides measures of mutual dependence and tests of mutual independence,
#' independent component analysis methods based on mutual dependence measures,
#' and measures of conditional mean dependence and tests of conditional me... | /R/EDMeasure-package.R | no_license | cran/EDMeasure | R | false | false | 4,748 | r | #' EDMeasure: A package for energy-based dependence measures
#'
#' The EDMeasure package provides measures of mutual dependence and tests of mutual independence,
#' independent component analysis methods based on mutual dependence measures,
#' and measures of conditional mean dependence and tests of conditional me... |
#makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setInverso <- function(inverso) m <<- inverso
getInverso <- function() m
lis... | /ProgrammingAssignment2.R | no_license | Batikitty/ProgrammingAssignment2- | R | false | false | 869 | r | #makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setInverso <- function(inverso) m <<- inverso
getInverso <- function() m
lis... |
testlist <- list(a = 1179010587L, b = 993737472L, x = c(1179010630L, 1179010630L, 1179010630L, 1179010630L))
result <- do.call(grattan:::anyOutside,testlist)
str(result) | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610055988-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 170 | r | testlist <- list(a = 1179010587L, b = 993737472L, x = c(1179010630L, 1179010630L, 1179010630L, 1179010630L))
result <- do.call(grattan:::anyOutside,testlist)
str(result) |
## My functions will take a matrix (makeCacheMatrix) and create special "matrix"
## capable of caching its inverse, then (cacheSolve) take "matrix" like this and
## compute its inverse (if it hasn't been done yet) or take the cached value.
## makeCacheMatrix takes a matrix and creates a list containing 4 functions:
#... | /cachematrix.R | no_license | Stozek/ProgrammingAssignment2 | R | false | false | 1,256 | r | ## My functions will take a matrix (makeCacheMatrix) and create special "matrix"
## capable of caching its inverse, then (cacheSolve) take "matrix" like this and
## compute its inverse (if it hasn't been done yet) or take the cached value.
## makeCacheMatrix takes a matrix and creates a list containing 4 functions:
#... |
a=3
a
b=c("bonjour","merci","au revoir")
b
rep(b,a)
rep(x = b,times=a)#argument explicite dans rep.int mais caché dans ... pour rep()
install.packages(arsenal)
library(arsenal)
read.csv("2_dataviz_ggplot2/etalab_finess_geocoded.csv")
devtools::install_github("dmlc/xgboost")
library(cartography)
library(sp)
data(... | /0_introduction/example.R | no_license | phileas-condemine/r_initiation_drees | R | false | false | 554 | r | a=3
a
b=c("bonjour","merci","au revoir")
b
rep(b,a)
rep(x = b,times=a)#argument explicite dans rep.int mais caché dans ... pour rep()
install.packages(arsenal)
library(arsenal)
read.csv("2_dataviz_ggplot2/etalab_finess_geocoded.csv")
devtools::install_github("dmlc/xgboost")
library(cartography)
library(sp)
data(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{LUXLung6(2)_2A}
\alias{LUXLung6(2)_2A}
\title{LUXLung6(2), figure 2A}
\format{
A data frame of 364 observations and 3 variables:
\tabular{lll}{
\tab \code{time} \tab event time (in months) \cr
\tab \code{event} \ta... | /man/LUXLung6-open-paren-2-close-paren-_2A.Rd | no_license | Owain-S/kmdata | R | false | true | 1,021 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{LUXLung6(2)_2A}
\alias{LUXLung6(2)_2A}
\title{LUXLung6(2), figure 2A}
\format{
A data frame of 364 observations and 3 variables:
\tabular{lll}{
\tab \code{time} \tab event time (in months) \cr
\tab \code{event} \ta... |
##################################################################################################
# ARCHIPELAGO PLANTS: OUTPUT OF HISTORICAL OCCURRENCE MODEL
##################################################################################################
rm(list=ls())
gc()
memory.size()
memory.limit(64000)
#### - ... | /histocc_output_clean.R | no_license | oysteiop/ArchipelagoPlants | R | false | false | 5,990 | r | ##################################################################################################
# ARCHIPELAGO PLANTS: OUTPUT OF HISTORICAL OCCURRENCE MODEL
##################################################################################################
rm(list=ls())
gc()
memory.size()
memory.limit(64000)
#### - ... |
#' Account Management Functions
#'
#' Functions to enumerate and remove accounts on the local system. Prior to
#' deploying applications you need to register your account on the local system.
#'
#' You register an account using the [setAccountInfo()] function (for
#' ShinyApps) or [connectUser()] function (for other se... | /R/accounts.R | no_license | AlgoSkyNet/rsconnect | R | false | false | 13,083 | r | #' Account Management Functions
#'
#' Functions to enumerate and remove accounts on the local system. Prior to
#' deploying applications you need to register your account on the local system.
#'
#' You register an account using the [setAccountInfo()] function (for
#' ShinyApps) or [connectUser()] function (for other se... |
### EXPLORATORY DATA ANALYSIS - Course Project 1: Plot 1
## Data Source: UC Irvine Machine Learning Repository
## Data Set: Individual household electric power consumption
#Before running, set a working directory and copy this file into it. Data files and plots will be created in the working dir
#Please ensure to c... | /Plot1.R | no_license | nickijc/ExData_Plotting1 | R | false | false | 1,979 | r | ### EXPLORATORY DATA ANALYSIS - Course Project 1: Plot 1
## Data Source: UC Irvine Machine Learning Repository
## Data Set: Individual household electric power consumption
#Before running, set a working directory and copy this file into it. Data files and plots will be created in the working dir
#Please ensure to c... |
/Validacion.Rcheck Renny/00_pkg_src/Validacion/man/PlanktonR.Rd | no_license | mablan/Validacion | R | false | false | 913 | rd | ||
library(testthat)
library(psychTestRCAT)
test_check("psychTestRCAT")
| /tests/testthat.R | permissive | pmcharrison/psychTestRCAT | R | false | false | 70 | r | library(testthat)
library(psychTestRCAT)
test_check("psychTestRCAT")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stars.R, R/sf.R, R/raster.R, R/ncdf.R,
% R/proxy.R, R/rasterize.R, R/xts.R, R/OpenStreetMap.R
\name{st_as_stars}
\alias{st_as_stars}
\alias{st_as_stars.list}
\alias{st_as_stars.default}
\alias{st_as_stars.stars}
\alias{st_as_stars.bbox}
\al... | /man/st_as_stars.Rd | permissive | bafuentes/stars | R | false | true | 5,359 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stars.R, R/sf.R, R/raster.R, R/ncdf.R,
% R/proxy.R, R/rasterize.R, R/xts.R, R/OpenStreetMap.R
\name{st_as_stars}
\alias{st_as_stars}
\alias{st_as_stars.list}
\alias{st_as_stars.default}
\alias{st_as_stars.stars}
\alias{st_as_stars.bbox}
\al... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crawlers.R
\name{download_pdf_tjrs}
\alias{download_pdf_tjrs}
\title{Download de DJE do TJRS}
\usage{
download_pdf_tjrs(...)
}
\arguments{
\item{caderno}{Número inteiro que representa o caderno a ser baixado. Dependendo da época esse número t... | /man/download_pdf_tjrs.Rd | permissive | courtsbr/scraperTJRS | R | false | true | 692 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crawlers.R
\name{download_pdf_tjrs}
\alias{download_pdf_tjrs}
\title{Download de DJE do TJRS}
\usage{
download_pdf_tjrs(...)
}
\arguments{
\item{caderno}{Número inteiro que representa o caderno a ser baixado. Dependendo da época esse número t... |
library("dplyr")
library("ncdf4")
## library("ncdf4.helpers")
library("weathermetrics")
library("raster")
## load("~/Dropbox/thesis/code/pubPriCmp/data/buildingLatlng.rda")
load("../data/building_location.rda")
load("../data/energy_monthly_web_continental.rda")
load("../data/retrofit.avg.energy.enough.data.rda")
fold... | /data-raw/read_bcca.R | no_license | yujiex/retrofitClimateEffect | R | false | false | 6,009 | r | library("dplyr")
library("ncdf4")
## library("ncdf4.helpers")
library("weathermetrics")
library("raster")
## load("~/Dropbox/thesis/code/pubPriCmp/data/buildingLatlng.rda")
load("../data/building_location.rda")
load("../data/energy_monthly_web_continental.rda")
load("../data/retrofit.avg.energy.enough.data.rda")
fold... |
#' @import stringr
#' @import GenomicRanges
#' @import IRanges
#' @title Makes a reference file for Salmon
#' @description This function creates decoys and a transcriptome that will be used by Salmon. It also creates a reference file to import the estimates after the Salmon run.
#' The user can enter a RepMask file wit... | /R/mk.reference.r | no_license | Ravindra-Raut/ExplorATEproject | R | false | false | 7,451 | r | #' @import stringr
#' @import GenomicRanges
#' @import IRanges
#' @title Makes a reference file for Salmon
#' @description This function creates decoys and a transcriptome that will be used by Salmon. It also creates a reference file to import the estimates after the Salmon run.
#' The user can enter a RepMask file wit... |
#' Combine vectors
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' `combine()` is deprecated in favour of [vctrs::vec_c()]. `combine()`
#' attempted to automatically guess whether you wanted [c()] or [unlist()],
#' but could fail in surprising ways. We now believe it's better to be explicit.
#'
#' @param... | /R/deprec-combine.R | permissive | tidyverse/dplyr | R | false | false | 910 | r | #' Combine vectors
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' `combine()` is deprecated in favour of [vctrs::vec_c()]. `combine()`
#' attempted to automatically guess whether you wanted [c()] or [unlist()],
#' but could fail in surprising ways. We now believe it's better to be explicit.
#'
#' @param... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ProjectData.R
\name{SetProjectPI}
\alias{SetProjectPI}
\title{Set PI Name}
\usage{
SetProjectPI(PI)
}
\arguments{
\item{PI}{A string containing the analyst name}
}
\value{
A message stating the name has been changed.
}
\description{
This func... | /man/SetProjectPI.Rd | permissive | akirosingh/Jagannathantools | R | false | true | 462 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ProjectData.R
\name{SetProjectPI}
\alias{SetProjectPI}
\title{Set PI Name}
\usage{
SetProjectPI(PI)
}
\arguments{
\item{PI}{A string containing the analyst name}
}
\value{
A message stating the name has been changed.
}
\description{
This func... |
context("theme_genes")
test_that("a simple geom_gene_arrow plot with theme_genes is drawn without errors", {
expect_error( {
ggplot(
gggenes_example_genes,
aes(xmin = start, xmax = end, y = molecule, fill = gene)
) +
geom_gene_arrow(alpha = 0.5, linetype = 2, colour = "purple") +
the... | /tests/testthat/test-theme_genes.R | no_license | snashraf/gggenes | R | false | false | 389 | r | context("theme_genes")
test_that("a simple geom_gene_arrow plot with theme_genes is drawn without errors", {
expect_error( {
ggplot(
gggenes_example_genes,
aes(xmin = start, xmax = end, y = molecule, fill = gene)
) +
geom_gene_arrow(alpha = 0.5, linetype = 2, colour = "purple") +
the... |
library(reshape2)
url<- 'https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip'
if(!file.exists("data")){
dir.create('data')
}
download.file(url, destfile='data/sensor_data.zip', method='curl')
files<-unzip('data/sensor_data.zip',list=TRUE)
## 1. Merges the training and the test s... | /run_analysis.R | no_license | akarim78/getting-cleaning-data-project | R | false | false | 2,478 | r | library(reshape2)
url<- 'https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip'
if(!file.exists("data")){
dir.create('data')
}
download.file(url, destfile='data/sensor_data.zip', method='curl')
files<-unzip('data/sensor_data.zip',list=TRUE)
## 1. Merges the training and the test s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subgroupAnalysis.R
\name{plot.subgroupAnalysis}
\alias{plot.subgroupAnalysis}
\title{Plot method for objects of class 'runMetaAnalysis'}
\usage{
\method{plot}{subgroupAnalysis}(x, which = NULL, ...)
}
\arguments{
\item{x}{An object of class \... | /man/plot.subgroupAnalysis.Rd | no_license | metapsy-project/metapsyTools | R | false | true | 684 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subgroupAnalysis.R
\name{plot.subgroupAnalysis}
\alias{plot.subgroupAnalysis}
\title{Plot method for objects of class 'runMetaAnalysis'}
\usage{
\method{plot}{subgroupAnalysis}(x, which = NULL, ...)
}
\arguments{
\item{x}{An object of class \... |
library(readr)
library(signal)
#These Values Need to be changed for each data set
{
fileFolder <- 'data/FinalAggregated_210204_122536.csv'
Append <- '_210204_122536.csv'
#StationaryAnem <- "data/Stationary_210202_122942.csv"
StationaryAnem <- 'data/array0204.dat'
lat_anem <- 40.594926667
long_anem <- -105.... | /Scripts/combineDataOptions.R | no_license | elimywilliams/windAnalysis | R | false | false | 3,855 | r | library(readr)
library(signal)
#These Values Need to be changed for each data set
{
fileFolder <- 'data/FinalAggregated_210204_122536.csv'
Append <- '_210204_122536.csv'
#StationaryAnem <- "data/Stationary_210202_122942.csv"
StationaryAnem <- 'data/array0204.dat'
lat_anem <- 40.594926667
long_anem <- -105.... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' @title Connect to an OmniSci database
#'
#' @details TBD Details
#'
#' @description TBD description
#'
#' @param host host
#' @param port port
#' @param username username
#' @param passwo... | /R/RcppExports.R | permissive | stjordanis/ROmniSci | R | false | false | 6,191 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' @title Connect to an OmniSci database
#'
#' @details TBD Details
#'
#' @description TBD description
#'
#' @param host host
#' @param port port
#' @param username username
#' @param passwo... |
generatePPs_internal <- function(model_fn=model_fn, initGuess, NP, paramLims, stateLims, method="SA", scoreThreshold=0.0, model_args=list(),optim_control=list()){
# paramLims and stateLims are both dataframes with a column for the parameter/state name, upper and lower bounds
paramLims <- as.data.frame(paramLims)
... | /content/script/VPop/generatePPs_internal.R | no_license | metrumresearchgroup/ub-cdse-2019 | R | false | false | 3,871 | r | generatePPs_internal <- function(model_fn=model_fn, initGuess, NP, paramLims, stateLims, method="SA", scoreThreshold=0.0, model_args=list(),optim_control=list()){
# paramLims and stateLims are both dataframes with a column for the parameter/state name, upper and lower bounds
paramLims <- as.data.frame(paramLims)
... |
---
title: "HW02 台大英語授課課程數變化"
author: "B04202016 物理二 朱文亞"
date: "2017年4月24日"
output: html_document
---
```{r setup, include=FALSE}
library("dplyr")
library("plotly")
library("RColorBrewer")
require(stats)
knitr::opts_chunk$set(echo = TRUE)
```
## 台大英語授課數量
> 我們專題研究的主題是在台大的國際學生,想藉由不同的數據來描繪出他們在台大的生活。其中的一項指標,就是台大開... | /HW/HW2/eng_class(test).R | no_license | whirllllll/2017_data_course | R | false | false | 3,514 | r | ---
title: "HW02 台大英語授課課程數變化"
author: "B04202016 物理二 朱文亞"
date: "2017年4月24日"
output: html_document
---
```{r setup, include=FALSE}
library("dplyr")
library("plotly")
library("RColorBrewer")
require(stats)
knitr::opts_chunk$set(echo = TRUE)
```
## 台大英語授課數量
> 我們專題研究的主題是在台大的國際學生,想藉由不同的數據來描繪出他們在台大的生活。其中的一項指標,就是台大開... |
tdm.save <- function(input,output,n){
dfm <- dfm.generate(input, n)
dfm <- dfm_trim(dfm, min_docfreq = 3)
y <- data.frame(cbind(words=names(topfeatures(dfm, 1000000)),count=topfeatures(dfm, 1000000)), row.names = c())
#write.csv(y, output)
y
} | /scripts/dfm_save.R | no_license | markusams/WordPredictor | R | false | false | 251 | r | tdm.save <- function(input,output,n){
dfm <- dfm.generate(input, n)
dfm <- dfm_trim(dfm, min_docfreq = 3)
y <- data.frame(cbind(words=names(topfeatures(dfm, 1000000)),count=topfeatures(dfm, 1000000)), row.names = c())
#write.csv(y, output)
y
} |
#' Impute2toBD: A package for creating binary dosage files from Impute 2 files
#'
#' Impute2toBD: A package for creating binary dosage files from Impute 2 files
#'
#' @section Functions:
#' Currently none
#'
#' @docType package
#' @name Impute2toBD
NULL
#' @importFrom Rcpp evalCpp
#' @useDynLib Impute2toBD
NULL
| /R/Impute2toBD.R | no_license | jimb3/Impute2toBD | R | false | false | 314 | r | #' Impute2toBD: A package for creating binary dosage files from Impute 2 files
#'
#' Impute2toBD: A package for creating binary dosage files from Impute 2 files
#'
#' @section Functions:
#' Currently none
#'
#' @docType package
#' @name Impute2toBD
NULL
#' @importFrom Rcpp evalCpp
#' @useDynLib Impute2toBD
NULL
|
######################################################################
## Decompose a vector into a matrix of "fourier" components
##
## Author: Aidan McDermott (AMcD), modified by Roger Peng <rpeng@jhsph.edu>
## Date : Dec 8, 2000
## Revised: 2005-09-29 by R... | /R/decompose.R | no_license | rdpeng/tsmodel | R | false | false | 3,866 | r | ######################################################################
## Decompose a vector into a matrix of "fourier" components
##
## Author: Aidan McDermott (AMcD), modified by Roger Peng <rpeng@jhsph.edu>
## Date : Dec 8, 2000
## Revised: 2005-09-29 by R... |
\name{repl.correl.heatmap}
\alias{repl.correl.heatmap}
\title{Adequation of replicates using a heatmap with hierarchical clustering}
\usage{
repl.correl.heatmap(XP.conditions, XP.names, pathout)
}
\arguments{
\item{XP.conditions}{Vector of experimental conditions for each sample}
\item{XP.names}{Vector of names for eac... | /man/repl.correl.heatmap.Rd | no_license | carinelegrand/RiboVIEW | R | false | false | 8,721 | rd | \name{repl.correl.heatmap}
\alias{repl.correl.heatmap}
\title{Adequation of replicates using a heatmap with hierarchical clustering}
\usage{
repl.correl.heatmap(XP.conditions, XP.names, pathout)
}
\arguments{
\item{XP.conditions}{Vector of experimental conditions for each sample}
\item{XP.names}{Vector of names for eac... |
# Functions for parsing and building SciDB schema strings.
# A SciDB schema string up to version 15.12 looks like:
# optional_array_name<attribute_1:type_1 NULL DEFAULT VALUE, attribute_2:type_2, ...>
# [dimension_1=start:end,chunksize,overlap, dimension_2=start:end,chunksize,overlap, ...]
#
# Starting with SciDB versi... | /R/schema-utils.R | no_license | vishalbelsare/SciDBR | R | false | false | 5,388 | r | # Functions for parsing and building SciDB schema strings.
# A SciDB schema string up to version 15.12 looks like:
# optional_array_name<attribute_1:type_1 NULL DEFAULT VALUE, attribute_2:type_2, ...>
# [dimension_1=start:end,chunksize,overlap, dimension_2=start:end,chunksize,overlap, ...]
#
# Starting with SciDB versi... |
## Put comments here that give an overall description of what your
## functions do
## makeCacheMatrix' stores a list of 4 functions associated with the stored
## matrix, including how to set its value, get its value, sets its solve value
## (i.e. inverse), and retrieve its solve value
makeCacheMatrix <- <- function... | /cachematrix.R | no_license | Magagumo/RProgram | R | false | false | 964 | r | ## Put comments here that give an overall description of what your
## functions do
## makeCacheMatrix' stores a list of 4 functions associated with the stored
## matrix, including how to set its value, get its value, sets its solve value
## (i.e. inverse), and retrieve its solve value
makeCacheMatrix <- <- function... |
# path setup
func.path <- "~/FuDGE/Functions_Def"
save.path <- "~/FuDGE/Model2/FFGL/result"
model.path <- "~/FuDGE/Model_Setting/Model2"
################## Part 0: Preparation #########################################
### Reads in arguments passed in from command line
### args is a vector of strings
args <- (command... | /Simulation/Simulation_Code/Model2/FFGL/script/FFGL_Model2_p60.R | no_license | boxinz17/FuDGE | R | false | false | 13,866 | r | # path setup
func.path <- "~/FuDGE/Functions_Def"
save.path <- "~/FuDGE/Model2/FFGL/result"
model.path <- "~/FuDGE/Model_Setting/Model2"
################## Part 0: Preparation #########################################
### Reads in arguments passed in from command line
### args is a vector of strings
args <- (command... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.