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 |
|---|---|---|---|---|---|---|---|---|---|
library(testthat)
library(ojUtils)
test_check("ojUtils")
| /tests/testthat.R | no_license | ojessen/ojUtils | R | false | false | 58 | r | library(testthat)
library(ojUtils)
test_check("ojUtils")
|
library(dplyr)
library(leaflet)
Sys.chmod(c("bin/blastn", "bin/blastp"), mode = "0771")
#------------------------------------------------------------------------------#
# read data - Country Polygons GeoJSON as sp #
#-------------------------------------------------------------------... | /map_my_corona_shiny/global.R | no_license | hdsu-bioquant/mapmyflu | R | false | false | 2,500 | r | library(dplyr)
library(leaflet)
Sys.chmod(c("bin/blastn", "bin/blastp"), mode = "0771")
#------------------------------------------------------------------------------#
# read data - Country Polygons GeoJSON as sp #
#-------------------------------------------------------------------... |
logL_tau.mfa <- function (Y, g, q, pivec, B, mu, D,
sigma_type, D_type, ...) {
if (!is.matrix(Y))
Y <- as.matrix(Y)
p <- ncol(Y)
n <- nrow(Y)
Fji <- array(NA, c(n, g))
if (sigma_type == 'common') {
if (D_type == 'common') {
inv_D <- diag(1 / diag(D))
B_inv_D <- B * diag(inv... | /R/logL_tau_mfa.R | no_license | suren-rathnayake/EMMIXmfa | R | false | false | 2,785 | r | logL_tau.mfa <- function (Y, g, q, pivec, B, mu, D,
sigma_type, D_type, ...) {
if (!is.matrix(Y))
Y <- as.matrix(Y)
p <- ncol(Y)
n <- nrow(Y)
Fji <- array(NA, c(n, g))
if (sigma_type == 'common') {
if (D_type == 'common') {
inv_D <- diag(1 / diag(D))
B_inv_D <- B * diag(inv... |
BayesInputCopyPaste.GCL <- function(origindir, targetdir, mixvec, i = "A"){
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This function will copy the BAYES input files (.ctl, .mix) from the V drive
# and paste them onto the server to run BAYES.
#
# Input parameters~~~~~... | /BayesInputCopyPaste.GCL.R | no_license | krshedd/GCL-R-Scripts | R | false | false | 2,798 | r | BayesInputCopyPaste.GCL <- function(origindir, targetdir, mixvec, i = "A"){
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This function will copy the BAYES input files (.ctl, .mix) from the V drive
# and paste them onto the server to run BAYES.
#
# Input parameters~~~~~... |
## Matrix inversion is usually a costly computation
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are used to create a special object that
## stores a matrix and caches its inverse
## This function creates a special "matrix" object that can cach... | /cachematrix.R | no_license | Jeyanthpranav/ProgrammingAssignment2 | R | false | false | 1,380 | r | ## Matrix inversion is usually a costly computation
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are used to create a special object that
## stores a matrix and caches its inverse
## This function creates a special "matrix" object that can cach... |
ge_txt <- function(el){
el$getElementText()[[1]]
}
ge_ref <- function(el){
el$getElementAttribute("href")[[1]]
}
sapply(jobs, ge_txt)
sapply(jobs, ge_ref)
| /rselenium_helper_functions.R | no_license | c-pinkelman/webscraping2019 | R | false | false | 167 | r | ge_txt <- function(el){
el$getElementText()[[1]]
}
ge_ref <- function(el){
el$getElementAttribute("href")[[1]]
}
sapply(jobs, ge_txt)
sapply(jobs, ge_ref)
|
library(samplingVarEst)
### Name: Est.Mean.NHT
### Title: The Narain-Horvitz-Thompson estimator for a mean
### Aliases: Est.Mean.NHT
### Keywords: point estimation mean
### ** Examples
data(oaxaca) #Loads the Oaxaca municipalities dataset
pik.U <- Pk.PropNorm.U(373, oaxaca$HOMES00) #R... | /data/genthat_extracted_code/samplingVarEst/examples/Est_Mean_NHT.rd.R | no_license | surayaaramli/typeRrh | R | false | false | 812 | r | library(samplingVarEst)
### Name: Est.Mean.NHT
### Title: The Narain-Horvitz-Thompson estimator for a mean
### Aliases: Est.Mean.NHT
### Keywords: point estimation mean
### ** Examples
data(oaxaca) #Loads the Oaxaca municipalities dataset
pik.U <- Pk.PropNorm.U(373, oaxaca$HOMES00) #R... |
==Generic test
proc main () is
aa : Array<Array<int>> := [[1,2,3,4],[1,2,4,3]];
const x: char := 'c';
y:int := '\t';
as : Array<string> := create Array<string>(3);
ssss : string;
a : Array<int> := aa[y];
a[y] := a[a['\n'-8]] +1;
try
a1 : Array<int> := [1,2,3,4] if as[1] = "" else [4,3,2,1];
ca... | /tests/demo05.r | permissive | IdrissRio/RNB-Compiler | R | false | false | 1,365 | r | ==Generic test
proc main () is
aa : Array<Array<int>> := [[1,2,3,4],[1,2,4,3]];
const x: char := 'c';
y:int := '\t';
as : Array<string> := create Array<string>(3);
ssss : string;
a : Array<int> := aa[y];
a[y] := a[a['\n'-8]] +1;
try
a1 : Array<int> := [1,2,3,4] if as[1] = "" else [4,3,2,1];
ca... |
#######
### Starter Script for Case 1:
### Reminder: make sure all the files and
### scripts are in the working directory
###
### List of files:
### natalityNew.Rda
### DataAnalyticsFunctions.R
###
### Keep in mind that:
### Questions 1, 3 and 4 can be solved after the Cleaning up of the data below.
### Qu... | /HealthCareAnalyticsCaseStudy.R | no_license | chelseaalford/Projects | R | false | false | 11,162 | r | #######
### Starter Script for Case 1:
### Reminder: make sure all the files and
### scripts are in the working directory
###
### List of files:
### natalityNew.Rda
### DataAnalyticsFunctions.R
###
### Keep in mind that:
### Questions 1, 3 and 4 can be solved after the Cleaning up of the data below.
### Qu... |
## File Name: gdina_progress_start_estimation.R
## File Version: 0.05
gdina_progress_start_estimation <- function( progress, linkfct, disp, G, groupre,
s1, display)
{
if (progress){
cat(disp,"\n")
cat( " Link function:", linkfct, "\n")
if (G>1){
cat(" Multiple ... | /CDM/R/gdina_progress_start_estimation.R | no_license | akhikolla/InformationHouse | R | false | false | 559 | r | ## File Name: gdina_progress_start_estimation.R
## File Version: 0.05
gdina_progress_start_estimation <- function( progress, linkfct, disp, G, groupre,
s1, display)
{
if (progress){
cat(disp,"\n")
cat( " Link function:", linkfct, "\n")
if (G>1){
cat(" Multiple ... |
### SVM binning workflow R script v.1.0 ############################################################
#based on the metagenomics workflow of Albertsen et al. (2013) and updated with binning and visualizaiton code
# Install the required packages
install.packages("vegan") #Used for PCA/CA analysis
install.packa... | /svm.binning.workflow.R | permissive | leejz/meta-omics-scripts | R | false | false | 27,208 | r | ### SVM binning workflow R script v.1.0 ############################################################
#based on the metagenomics workflow of Albertsen et al. (2013) and updated with binning and visualizaiton code
# Install the required packages
install.packages("vegan") #Used for PCA/CA analysis
install.packa... |
#' @include DBI.R
NULL
#' DBIConnection transaction methods are not supported for
#' Pool objects.
#'
#' You cannot perfrom SQL transaction using a Pool object directly
#' (because that would imply keeping a connection open and not
#' knowing when to return it back to the pool).
#'
#' If you must use these methods, fe... | /R/DBI-connection-transaction.R | no_license | zzawadz/pool | R | false | false | 2,061 | r | #' @include DBI.R
NULL
#' DBIConnection transaction methods are not supported for
#' Pool objects.
#'
#' You cannot perfrom SQL transaction using a Pool object directly
#' (because that would imply keeping a connection open and not
#' knowing when to return it back to the pool).
#'
#' If you must use these methods, fe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gossip}
\alias{gossip}
\title{gossip}
\format{
A data frame with 599 rows and 23 variables:
\describe{
\item{\code{ID}}{double Participant ID}
\item{\code{Age}}{double Participant age}
\item{\code{Nationality}}{cha... | /man/gossip.Rd | permissive | grasshoppermouse/gossipdata2008 | R | false | true | 2,389 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{gossip}
\alias{gossip}
\title{gossip}
\format{
A data frame with 599 rows and 23 variables:
\describe{
\item{\code{ID}}{double Participant ID}
\item{\code{Age}}{double Participant age}
\item{\code{Nationality}}{cha... |
amelia2mitml.list <- function(x){
# convert amelia to mitml.list
out <- unname(x$imputations)
class(out) <- c("mitml.list", "list")
return(out)
}
| /R/amelia2mitml.list.R | no_license | simongrund1/mitml | R | false | false | 156 | r | amelia2mitml.list <- function(x){
# convert amelia to mitml.list
out <- unname(x$imputations)
class(out) <- c("mitml.list", "list")
return(out)
}
|
require(ggplot2)
# ggseg ----
context("test-schaefer17-adapt_scales")
test_that("Check that ggseg:::adapt_scales is working", {
# expect_equal(mode(ggseg:::adapt_scales(unnest(schaefer17_100, ggseg))), "list")
expect_error(ggseg:::adapt_scales(schaefer17_100))
})
context("test-schaefer17-palettes")
test_that("che... | /tests/testthat/test-schaefer17.R | permissive | ggseg/ggsegSchaefer | R | false | false | 2,510 | r | require(ggplot2)
# ggseg ----
context("test-schaefer17-adapt_scales")
test_that("Check that ggseg:::adapt_scales is working", {
# expect_equal(mode(ggseg:::adapt_scales(unnest(schaefer17_100, ggseg))), "list")
expect_error(ggseg:::adapt_scales(schaefer17_100))
})
context("test-schaefer17-palettes")
test_that("che... |
##########################################################
# Create edx set, validation set (final hold-out test set)
##########################################################
# Note: this process could take a couple of minutes
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.o... | /RecommendationSystem.R | no_license | jgarcia-garcia/EdxMovieLensCapstone | R | false | false | 13,983 | r | ##########################################################
# Create edx set, validation set (final hold-out test set)
##########################################################
# Note: this process could take a couple of minutes
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.o... |
#exceptSubject
#dyamashita
dir("K:\\github\\MultiHandGesture\\ServerPC\\DataAnalyticsForGesture\\result\\20160727190602\\subject","csv$")
test_data <- read.csv("K:\\github\\MultiHandGesture\\ServerPC\\DataAnalyticsForGesture\\result\\20160727190602\\subject\\subject_dyamashita_6devices.csv",header=T)
dir("K:\\github\\M... | /ServerPC/DataAnalyticsForGesture/result/20160727190602/exceptSubject/exceptSubject.R | no_license | kentx422/MultiHandGesture | R | false | false | 4,457 | r | #exceptSubject
#dyamashita
dir("K:\\github\\MultiHandGesture\\ServerPC\\DataAnalyticsForGesture\\result\\20160727190602\\subject","csv$")
test_data <- read.csv("K:\\github\\MultiHandGesture\\ServerPC\\DataAnalyticsForGesture\\result\\20160727190602\\subject\\subject_dyamashita_6devices.csv",header=T)
dir("K:\\github\\M... |
install.packages("textfeatures")
library(textfeatures)
## the text of five of Trump's most retweeted tweets
trump_tweets <- c(
"#FraudNewsCNN #FNN https://t.co/WYUnHjjUjg",
"TODAY WE MAKE AMERICA GREAT AGAIN!",
paste("Why would Kim Jong-un insult me by calling me \"old,\" when I would",
"NEVER call him \"... | /PLAY_textfeature package.R | no_license | tbs17/Cool_R_Stuff | R | false | false | 3,662 | r | install.packages("textfeatures")
library(textfeatures)
## the text of five of Trump's most retweeted tweets
trump_tweets <- c(
"#FraudNewsCNN #FNN https://t.co/WYUnHjjUjg",
"TODAY WE MAKE AMERICA GREAT AGAIN!",
paste("Why would Kim Jong-un insult me by calling me \"old,\" when I would",
"NEVER call him \"... |
# command to run script
# Rscript --vanilla heatmap.R path/to/input path/to/output label title
#########################################################
### get arguments
#########################################################
args = commandArgs(trailingOnly=TRUE)
# test if there is at least one argument: if not, ... | /analysis/heatmap.R | no_license | arpcard/asm_microbe_2019_rgi | R | false | false | 2,715 | r | # command to run script
# Rscript --vanilla heatmap.R path/to/input path/to/output label title
#########################################################
### get arguments
#########################################################
args = commandArgs(trailingOnly=TRUE)
# test if there is at least one argument: if not, ... |
# Makes distribution functions to construct likelihood woith targetd data
#data : target list of data points
# W: 0=no weight, 1= weight likelihood by number of points in category(for multi-target fitting)
Make_distr_fns<-function (data,weight){
funclist <- list()
ii<-0
for (i in 1:length(data))
{... | /fun/not_in_use/Make_distr_fns.R | no_license | kklot/india-subnational-tbmodel | R | false | false | 728 | r | # Makes distribution functions to construct likelihood woith targetd data
#data : target list of data points
# W: 0=no weight, 1= weight likelihood by number of points in category(for multi-target fitting)
Make_distr_fns<-function (data,weight){
funclist <- list()
ii<-0
for (i in 1:length(data))
{... |
\name{NEWS}
\title{News for Package \pkg{Rcpp}}
\newcommand{\ghpr}{\href{https://github.com/RcppCore/Rcpp/pull/#1}{##1}}
\newcommand{\ghit}{\href{https://github.com/RcppCore/Rcpp/issues/#1}{##1}}
\section{Changes in Rcpp patch release version 1.0.4.6 (2020-04-02)}{
\itemize{
\item Changes in Rcpp API:
\itemi... | /prog_files/library/Rcpp/NEWS.Rd | no_license | iNZightVIT/iNZightVIT-WIN | R | false | false | 136,974 | rd | \name{NEWS}
\title{News for Package \pkg{Rcpp}}
\newcommand{\ghpr}{\href{https://github.com/RcppCore/Rcpp/pull/#1}{##1}}
\newcommand{\ghit}{\href{https://github.com/RcppCore/Rcpp/issues/#1}{##1}}
\section{Changes in Rcpp patch release version 1.0.4.6 (2020-04-02)}{
\itemize{
\item Changes in Rcpp API:
\itemi... |
library(ape)
testtree <- read.tree("4197_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4197_1_unrooted.txt") | /codeml_files/newick_trees_processed/4197_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("4197_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4197_1_unrooted.txt") |
% $Id: np.density.bw.Rd,v 1.63 2006/11/03 21:17:20 tristen Exp $
\name{npudensbw}
\alias{npudensbw}
\alias{npudensbw.formula}
\alias{npudensbw.NULL}
\alias{npudensbw.default}
\alias{npudensbw.bandwidth}
\title{Kernel Density Bandwidth Selection with Mixed Data Types}
\description{
\code{npudensbw} computes a bandwi... | /man/np.density.bw.Rd | no_license | songnku/R-Package-np | R | false | false | 25,086 | rd | % $Id: np.density.bw.Rd,v 1.63 2006/11/03 21:17:20 tristen Exp $
\name{npudensbw}
\alias{npudensbw}
\alias{npudensbw.formula}
\alias{npudensbw.NULL}
\alias{npudensbw.default}
\alias{npudensbw.bandwidth}
\title{Kernel Density Bandwidth Selection with Mixed Data Types}
\description{
\code{npudensbw} computes a bandwi... |
get_gallery <-
function(section = 'hot',
sort = 'viral',
page = 0,
window = 'day',
showViral = TRUE,
...){
stopifnot(section %in% c('hot', 'top', 'user'))
if (!is.null(window)) {
stopifnot(window %in% c('day', 'week', 'month', 'year', 'all'))
}
stopif... | /R/get_gallery.R | no_license | Zedseayou/imguR | R | false | false | 943 | r | get_gallery <-
function(section = 'hot',
sort = 'viral',
page = 0,
window = 'day',
showViral = TRUE,
...){
stopifnot(section %in% c('hot', 'top', 'user'))
if (!is.null(window)) {
stopifnot(window %in% c('day', 'week', 'month', 'year', 'all'))
}
stopif... |
## This function is to cache the inverse of a matrix
## This function creates a special "matrix" object
## that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
iv <- NULL
set <- function(y) {
x <<- y
iv <<- NULL
}
get <- function() x
setinverse <- function(solve) iv <<- solve
ge... | /cachematrix.R | no_license | mandychan101/ProgrammingAssignment2 | R | false | false | 946 | r | ## This function is to cache the inverse of a matrix
## This function creates a special "matrix" object
## that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
iv <- NULL
set <- function(y) {
x <<- y
iv <<- NULL
}
get <- function() x
setinverse <- function(solve) iv <<- solve
ge... |
library(ape)
### Name: corphylo
### Title: Correlations among Multiple Traits with Phylogenetic Signal
### Aliases: corphylo print.corphylo
### Keywords: regression
### ** Examples
## Simple example using data without correlations or phylogenetic
## signal. This illustrates the structure of the input data.
phy <- ... | /data/genthat_extracted_code/ape/examples/corphylo.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 5,743 | r | library(ape)
### Name: corphylo
### Title: Correlations among Multiple Traits with Phylogenetic Signal
### Aliases: corphylo print.corphylo
### Keywords: regression
### ** Examples
## Simple example using data without correlations or phylogenetic
## signal. This illustrates the structure of the input data.
phy <- ... |
update_data <- function(data, bterms, na.action = na.omit2,
drop.unused.levels = TRUE,
terms_attr = NULL, knots = NULL) {
# Update data for use in brms functions
# Args:
# data: the original data.frame
# bterms: object of class brmsterms
# na.action: funct... | /R/data-helpers.R | no_license | zhaoxiaohe/brms | R | false | false | 19,837 | r | update_data <- function(data, bterms, na.action = na.omit2,
drop.unused.levels = TRUE,
terms_attr = NULL, knots = NULL) {
# Update data for use in brms functions
# Args:
# data: the original data.frame
# bterms: object of class brmsterms
# na.action: funct... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
if(is.null(x)) {
x<-matrix(rnorm(4), 2)
}
... | /cachematrix.R | no_license | julie7986/ProgrammingAssignment2 | R | false | false | 924 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
if(is.null(x)) {
x<-matrix(rnorm(4), 2)
}
... |
testlist <- list(data = structure(c(2.02894210815544, 3.45845952088873e-322 ), .Dim = 1:2), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610555109-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 168 | r | testlist <- list(data = structure(c(2.02894210815544, 3.45845952088873e-322 ), .Dim = 1:2), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrangle.R
\name{dup.data.frame}
\alias{dup.data.frame}
\title{Show records with duplicate or duplicated values of grouping variables.}
\usage{
\method{dup}{data.frame}(x, ...)
}
\arguments{
\item{x}{data.frame}
\item{...}{optional grouping c... | /man/dup.data.frame.Rd | no_license | bergsmat/wrangle | R | false | true | 634 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrangle.R
\name{dup.data.frame}
\alias{dup.data.frame}
\title{Show records with duplicate or duplicated values of grouping variables.}
\usage{
\method{dup}{data.frame}(x, ...)
}
\arguments{
\item{x}{data.frame}
\item{...}{optional grouping c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/st_pdist.R
\name{st.pdist}
\alias{st.pdist}
\title{Pairwise Distance for Data on Stiefel Manifold}
\usage{
st.pdist(x, type = c("intrinsic", "extrinsic"), as.dist = TRUE)
}
\arguments{
\item{x}{either an array of size \eqn{(p\times r\times N)... | /man/st.pdist.Rd | no_license | cran/RiemStiefel | R | false | true | 2,042 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/st_pdist.R
\name{st.pdist}
\alias{st.pdist}
\title{Pairwise Distance for Data on Stiefel Manifold}
\usage{
st.pdist(x, type = c("intrinsic", "extrinsic"), as.dist = TRUE)
}
\arguments{
\item{x}{either an array of size \eqn{(p\times r\times N)... |
#' Create Folds
#'
#' This function provides a list of row indices used for k-fold cross-validation (basic, stratified, grouped, or blocked). Repeated fold creation is supported as well.
#'
#' By default, the function uses stratified splitting. This will balance the folds regarding the distribution of the input vector ... | /R/create_folds.R | no_license | shaoyoucheng/splitTools | R | false | false | 3,447 | r | #' Create Folds
#'
#' This function provides a list of row indices used for k-fold cross-validation (basic, stratified, grouped, or blocked). Repeated fold creation is supported as well.
#'
#' By default, the function uses stratified splitting. This will balance the folds regarding the distribution of the input vector ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convenience.R
\name{pwr.t.test.contour}
\alias{pwr.t.test.contour}
\title{Plot a Power Contour for a t-test comparison}
\usage{
pwr.t.test.contour(
nmin,
nmax,
esmin,
esmax,
sig.level = 0.05,
type = c("two.sample", "one.sample", "... | /man/pwr.t.test.contour.Rd | permissive | mathesong/pwrcontour | R | false | true | 2,472 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convenience.R
\name{pwr.t.test.contour}
\alias{pwr.t.test.contour}
\title{Plot a Power Contour for a t-test comparison}
\usage{
pwr.t.test.contour(
nmin,
nmax,
esmin,
esmax,
sig.level = 0.05,
type = c("two.sample", "one.sample", "... |
# This directs to DESeq2 and Rsubread manual
# browseVignettes("DESeq2")
# RsubreadUsersGuide()
# if (!requireNamespace("BiocManager", quietly = TRUE))
# install.packages("BiocManager")
#
# BiocManager::install("Rsubread")
# BiocManager::install("DESeq2")
# BiocManager::install("ggplot2")
# BiocManager::install("GG... | /ChIPseq Analysis Code/R/FeatureCounts_DeSeq2_H3_AID.R | permissive | Arndt-Lab/NAR_02_2023 | R | false | false | 6,026 | r | # This directs to DESeq2 and Rsubread manual
# browseVignettes("DESeq2")
# RsubreadUsersGuide()
# if (!requireNamespace("BiocManager", quietly = TRUE))
# install.packages("BiocManager")
#
# BiocManager::install("Rsubread")
# BiocManager::install("DESeq2")
# BiocManager::install("ggplot2")
# BiocManager::install("GG... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cairo--bespoke.R
\name{cairo_polygon_vec}
\alias{cairo_polygon_vec}
\title{Draw lots of polygons}
\usage{
cairo_polygon_vec(cr, x, y, idx, r, g, b, a, sr, sg, sb, sa)
}
\arguments{
\item{cr}{\code{cairo_t *}}
\item{x}{\code{double}}
\item{y... | /man/cairo_polygon_vec.Rd | permissive | coolbutuseless/cairocore | R | false | true | 1,962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cairo--bespoke.R
\name{cairo_polygon_vec}
\alias{cairo_polygon_vec}
\title{Draw lots of polygons}
\usage{
cairo_polygon_vec(cr, x, y, idx, r, g, b, a, sr, sg, sb, sa)
}
\arguments{
\item{cr}{\code{cairo_t *}}
\item{x}{\code{double}}
\item{y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/angle_scan.R
\name{angle_scan}
\alias{angle_scan}
\title{Fixed wavelengh angle-scan of a thin film stack}
\usage{
angle_scan(layers, angles = seq(0, 90, length.out = 500),
wavelength = 6.33e-07, polarisation = "p",
incident_medium.index =... | /man/angle_scan.Rd | no_license | cankunqiu/mlfilms | R | false | true | 2,089 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/angle_scan.R
\name{angle_scan}
\alias{angle_scan}
\title{Fixed wavelengh angle-scan of a thin film stack}
\usage{
angle_scan(layers, angles = seq(0, 90, length.out = 500),
wavelength = 6.33e-07, polarisation = "p",
incident_medium.index =... |
thesecondbestfunction = function(depvar, winners, otheroptions) {
pvals = data.frame(predictor = NA, pval = NA)
### The real function
for (i in 1:length(otheroptions)) {
if (is.null(winners) == TRUE) {
model = lm(depvar ~ otheroptions[, i], data = otheroptions)
modelsum = summary(model)
... | /stats_project_functions_dec12_final.R | no_license | Zoya-Atiq/Final_Project_Stepwise_Regression | R | false | false | 2,236 | r | thesecondbestfunction = function(depvar, winners, otheroptions) {
pvals = data.frame(predictor = NA, pval = NA)
### The real function
for (i in 1:length(otheroptions)) {
if (is.null(winners) == TRUE) {
model = lm(depvar ~ otheroptions[, i], data = otheroptions)
modelsum = summary(model)
... |
#---------------------------------------
# bangladesh-uptake-plot.R
#
# ben arnold (benarnold@berkeley.edu)
#
# plot uptake measures
#---------------------------------------
#---------------------------------------
# preamble
#---------------------------------------
rm(list=ls())
library(scales)
#--------------------... | /R Primary Outcome Code/bd R files/uptake-figureBD.R | no_license | amertens/Wash-Benefits-Kenya | R | false | false | 3,620 | r | #---------------------------------------
# bangladesh-uptake-plot.R
#
# ben arnold (benarnold@berkeley.edu)
#
# plot uptake measures
#---------------------------------------
#---------------------------------------
# preamble
#---------------------------------------
rm(list=ls())
library(scales)
#--------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim.r
\name{sim}
\alias{sim}
\title{Simulate data to test model fitting}
\usage{
sim(catch, survey1, survey2, survey3, paa.catch.female, paa.catch.male,
n.trips.paa.catch, paa.survey1.female, paa.survey1.male, n.trips.paa.survey1,
paa.mat... | /man/sim.Rd | no_license | pbs-assess/tmbpop | R | false | true | 6,052 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim.r
\name{sim}
\alias{sim}
\title{Simulate data to test model fitting}
\usage{
sim(catch, survey1, survey2, survey3, paa.catch.female, paa.catch.male,
n.trips.paa.catch, paa.survey1.female, paa.survey1.male, n.trips.paa.survey1,
paa.mat... |
# clean round 2 results
# author(s): ctw
# initiated: mar 2020
# script purpose:
# 1) read in raw qualtrics data (lives in data/raw/) [.. and eventually reviewer corrections]
## > must download manually bc CU qualtrics settings doesn't allow user to authenticate with 'qualtRics' R package
# 3) tidy
# 4) apply basic ... | /round2_metareview/clean_qa_data/1_clean_round2.R | no_license | caitlintwhite/kremeny_analyses | R | false | false | 256,500 | r | # clean round 2 results
# author(s): ctw
# initiated: mar 2020
# script purpose:
# 1) read in raw qualtrics data (lives in data/raw/) [.. and eventually reviewer corrections]
## > must download manually bc CU qualtrics settings doesn't allow user to authenticate with 'qualtRics' R package
# 3) tidy
# 4) apply basic ... |
matrixsetup_lambda <- function(
lambda, # lambda argument
nGroup, # Number of groups
expcov, # Expected covariance matrices (list).
observednames, latentnames,
equal = FALSE,
sampletable,
name = "lambda",
identification = c("loadings","variance"),
simple = FALSE
){
identification <... | /R/03_modelformation_matrixSetup_lambda.R | no_license | SachaEpskamp/psychonetrics | R | false | false | 5,636 | r | matrixsetup_lambda <- function(
lambda, # lambda argument
nGroup, # Number of groups
expcov, # Expected covariance matrices (list).
observednames, latentnames,
equal = FALSE,
sampletable,
name = "lambda",
identification = c("loadings","variance"),
simple = FALSE
){
identification <... |
library(bnlearn)
data(learning.test)
res = gs(learning.test)
plot(res)
res2 = iamb(learning.test)
plot(res2)
all.equal(res, res2)
ntests(res)
res = hc(learning.test)
plot(res)
data(gaussian.test)
res = gs(gaussian.test)
plot(res)
blacklist = data.frame(from = c("B", "F"), to = c("F", "B"))
blacklist
res3... | /code.R | no_license | icounter/PartB2 | R | false | false | 2,336 | r | library(bnlearn)
data(learning.test)
res = gs(learning.test)
plot(res)
res2 = iamb(learning.test)
plot(res2)
all.equal(res, res2)
ntests(res)
res = hc(learning.test)
plot(res)
data(gaussian.test)
res = gs(gaussian.test)
plot(res)
blacklist = data.frame(from = c("B", "F"), to = c("F", "B"))
blacklist
res3... |
##Programming Assignment 2: Lexical Scoping
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
##Inverse Matrix and cache result. Use this cache for subsequent calculations instead of recalculating
makeCacheMatrix <- function(x = matrix()) {
Inv <- NULL
set <- function(... | /cachematrix.R | no_license | datascience2017/ProgrammingAssignment2 | R | false | false | 4,889 | r | ##Programming Assignment 2: Lexical Scoping
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
##Inverse Matrix and cache result. Use this cache for subsequent calculations instead of recalculating
makeCacheMatrix <- function(x = matrix()) {
Inv <- NULL
set <- function(... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 401
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 401
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/que... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query55_exquery_1344n/query55_exquery_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 704 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 401
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 401
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/que... |
# load the source code of the functions to be tested
source("../functions/regression-functions.R")
# context with one test that groups expectations
context("Test for residual sum squares value")
test_that("residual sum squares works as expected", {
reg <- lm(mpg ~ disp + hp, data = mtcars)
expect_equal(residua... | /code/tests/test-regression.R | permissive | stacyjchang/stat159-fall2016-hw03 | R | false | false | 1,515 | r | # load the source code of the functions to be tested
source("../functions/regression-functions.R")
# context with one test that groups expectations
context("Test for residual sum squares value")
test_that("residual sum squares works as expected", {
reg <- lm(mpg ~ disp + hp, data = mtcars)
expect_equal(residua... |
# filled.contour関数による等高線プロット
filled.contour(volcano, color.palette = terrain.colors, main = "マウント・イーデンの標高") | /chapter9/filledcontour.R | no_license | AnguillaJaponica/RProgramming | R | false | false | 155 | r | # filled.contour関数による等高線プロット
filled.contour(volcano, color.palette = terrain.colors, main = "マウント・イーデンの標高") |
## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(lavaanPlot)
library(lavaan)
library(tidyverse)
## -----------------------------------------------------------------------------
HS.model <- ' visual =~ x1 + x2 + x3
te... | /vignettes/Conditional-Formatting.R | no_license | alishinski/lavaanPlot | R | false | false | 2,635 | r | ## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(lavaanPlot)
library(lavaan)
library(tidyverse)
## -----------------------------------------------------------------------------
HS.model <- ' visual =~ x1 + x2 + x3
te... |
/statistical significance of pairwise alignment.R | no_license | NabJa/Statistical-methods-for-Bioinformatics | R | false | false | 2,163 | r | ||
#Creating Normal List From Vectors
#list is a collection of items of different type
#it's multidimenisional
basic_list =list(1,2,3+4i,TRUE, "Hello World")
typeof(basic_list)
m = c(1,2,3)
n = c(1.0,2.0,3.0)
o = c(1.0+2.0i,2.0+3.0i,3.0+4.0i)
p = c(TRUE,FALSE)
Q_list = list(m,n,o,p)
print(Q_list)
names(Q_list) = c("num... | /Chapter-03-DataTypes-Lists.R | no_license | balajidileepkumar/R_ML | R | false | false | 1,935 | r | #Creating Normal List From Vectors
#list is a collection of items of different type
#it's multidimenisional
basic_list =list(1,2,3+4i,TRUE, "Hello World")
typeof(basic_list)
m = c(1,2,3)
n = c(1.0,2.0,3.0)
o = c(1.0+2.0i,2.0+3.0i,3.0+4.0i)
p = c(TRUE,FALSE)
Q_list = list(m,n,o,p)
print(Q_list)
names(Q_list) = c("num... |
# install and load packages
loadpackage <- function(x){
for( i in x ){
# require returns TRUE invisibly if it was able to load package
if( ! require( i , character.only = TRUE ) ){
# If package was not able to be loaded then re-install
install.packages( i , dependencies = TRUE )
}
# Loa... | /assignment_1/scripts/ANALYZE.R | no_license | StefZimm/Modern-Workflows | R | false | false | 8,462 | r | # install and load packages
loadpackage <- function(x){
for( i in x ){
# require returns TRUE invisibly if it was able to load package
if( ! require( i , character.only = TRUE ) ){
# If package was not able to be loaded then re-install
install.packages( i , dependencies = TRUE )
}
# Loa... |
library(pROC)
data = clinical.total
clinical.roc <- roc(ClinActivity ~ CTSUV + TBR_L + TBR_BP + PETVAS3, data = data)
data = imaging.total
imaging.roc <- roc(PETActivity ~ CTSUV + TBR_L + TBR_BP + PETVAS3, data = data)
clinical.coords <- lapply(clinical.roc,
coords,
x... | /ROC.R | no_license | hrdashora/pet-scoring | R | false | false | 718 | r | library(pROC)
data = clinical.total
clinical.roc <- roc(ClinActivity ~ CTSUV + TBR_L + TBR_BP + PETVAS3, data = data)
data = imaging.total
imaging.roc <- roc(PETActivity ~ CTSUV + TBR_L + TBR_BP + PETVAS3, data = data)
clinical.coords <- lapply(clinical.roc,
coords,
x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/useArgonDash.R
\name{useArgonDash}
\alias{useArgonDash}
\title{Use 'argonDash' in 'shiny'}
\usage{
useArgonDash()
}
\description{
Allow to use functions from 'argonDash' into a classic 'shiny' app,
specifically \code{argonCard}, \code{argonTa... | /man/useArgonDash.Rd | permissive | jcheng5/shinyWidgets | R | false | true | 3,668 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/useArgonDash.R
\name{useArgonDash}
\alias{useArgonDash}
\title{Use 'argonDash' in 'shiny'}
\usage{
useArgonDash()
}
\description{
Allow to use functions from 'argonDash' into a classic 'shiny' app,
specifically \code{argonCard}, \code{argonTa... |
library(shiny)
library(shinyWidgets)
library(shinyBS)
library(DT)
library(tidyverse)
library(dplyr)
library(reshape2)
library(recommenderlab)
source("load_data.R", local = TRUE)$value
ui <- fluidPage(
sidebarPanel(
h2("Introduction"),
h5("This shiny app is an example for a category recommender based on
... | /app.R | no_license | HoriaSt/Recommender_R | R | false | false | 2,228 | r | library(shiny)
library(shinyWidgets)
library(shinyBS)
library(DT)
library(tidyverse)
library(dplyr)
library(reshape2)
library(recommenderlab)
source("load_data.R", local = TRUE)$value
ui <- fluidPage(
sidebarPanel(
h2("Introduction"),
h5("This shiny app is an example for a category recommender based on
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db_maintenance.R
\name{runSnippet}
\alias{runSnippet}
\title{check one snippet}
\usage{
runSnippet(snippet, lang, mysql = "mysql --defaults-file=~/.my.cnf")
}
\value{
datetime if the snippet runs without errors else NA
}
\description{
check o... | /man/runSnippet.Rd | no_license | mpio-be/snippets | R | false | true | 470 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db_maintenance.R
\name{runSnippet}
\alias{runSnippet}
\title{check one snippet}
\usage{
runSnippet(snippet, lang, mysql = "mysql --defaults-file=~/.my.cnf")
}
\value{
datetime if the snippet runs without errors else NA
}
\description{
check o... |
######################################################################################
#
#On malbec2 in ~biocbuild/public_html/BBS/3.11/bioc:
#
# - meat-index.dcf: same list of packages as in the manifest EXCEPT
#that packages that have a DESCRIPTION file that is too broken for the
#builds are separated and put in sk... | /ThirdRun.R | no_license | lshep/BuildReportDatabase | R | false | false | 13,538 | r | ######################################################################################
#
#On malbec2 in ~biocbuild/public_html/BBS/3.11/bioc:
#
# - meat-index.dcf: same list of packages as in the manifest EXCEPT
#that packages that have a DESCRIPTION file that is too broken for the
#builds are separated and put in sk... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cohort_df.R
\name{adlCohort}
\alias{adlCohort}
\title{Fetch Adelaide Test Samples split into differet subsampling cohorts}
\usage{
adlCohort(binarized = FALSE)
}
\arguments{
\item{binarized}{lgl(1) whether to binarize all features (eg, for OR... | /man/adlCohort.Rd | no_license | mbadge/hipsMultimodal | R | false | true | 667 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cohort_df.R
\name{adlCohort}
\alias{adlCohort}
\title{Fetch Adelaide Test Samples split into differet subsampling cohorts}
\usage{
adlCohort(binarized = FALSE)
}
\arguments{
\item{binarized}{lgl(1) whether to binarize all features (eg, for OR... |
##[Classification]=group
##Data_to_be_Classified=raster
##Training_Data=vector
##Class_ID_Field=string
##Mask_Raster=file
##Output_Raster = output raster
##Number_of_Cores_for_Processing = number 2
##Number_of_Trees = number 150
# TODO: make sure that the training date crs matches the raster crs. project training da... | /rscripts/GWA_TBX/RandomForestClass.rsx | no_license | bjoern234/GWA_scripts | R | false | false | 3,958 | rsx | ##[Classification]=group
##Data_to_be_Classified=raster
##Training_Data=vector
##Class_ID_Field=string
##Mask_Raster=file
##Output_Raster = output raster
##Number_of_Cores_for_Processing = number 2
##Number_of_Trees = number 150
# TODO: make sure that the training date crs matches the raster crs. project training da... |
group_by_isotopes_vsplit <- function(dataA, step.mz.diff = 1,
mdgnum = -1) {
diffmatB <- {
}
time_mult_fact <- 1
diff_mz_num <- 1
t1 <- dataA$time
mzdefect <- 1000 * ((dataA$mz - floor(dataA$mz)))
d1 <- density(mzdefect, bw = "nrd", from = min(mzdefect... | /R/group_by_isotopes_vsplit.R | no_license | stolltho/xMSannotator | R | false | false | 1,911 | r | group_by_isotopes_vsplit <- function(dataA, step.mz.diff = 1,
mdgnum = -1) {
diffmatB <- {
}
time_mult_fact <- 1
diff_mz_num <- 1
t1 <- dataA$time
mzdefect <- 1000 * ((dataA$mz - floor(dataA$mz)))
d1 <- density(mzdefect, bw = "nrd", from = min(mzdefect... |
#' initial setup code ; v.0.7 load frames with regions
#' This function wraps setup code
#' @param arg Defaults to true.
#' @family setup
#' @keywords setup
#' @export preSetUp
#' @examples
#' preSetUp(TRUE)
#' preSetUp()
preSetUp <- function(arg = TRUE) {
library(thesisdown)
setwd("/Volumes/Bmac/febThesis/index")
#i... | /R/preSetUp.R | no_license | benyomin/censusFunctions | R | false | false | 998 | r | #' initial setup code ; v.0.7 load frames with regions
#' This function wraps setup code
#' @param arg Defaults to true.
#' @family setup
#' @keywords setup
#' @export preSetUp
#' @examples
#' preSetUp(TRUE)
#' preSetUp()
preSetUp <- function(arg = TRUE) {
library(thesisdown)
setwd("/Volumes/Bmac/febThesis/index")
#i... |
testlist <- list(end = NULL, start = NULL, x = structure(c(4.65661649758392e-10, 6.95356800386775e-310, 8.73727301118898e+91, 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), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0,... | /dynutils/inst/testfiles/project_to_segments/AFL_project_to_segments/project_to_segments_valgrind_files/1609870503-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 409 | r | testlist <- list(end = NULL, start = NULL, x = structure(c(4.65661649758392e-10, 6.95356800386775e-310, 8.73727301118898e+91, 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), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0,... |
## [Put comments here that give an overall description of what your
## functions do]
## [Write a short comment describing this function]
## The following function creates a special matrix that can retain
## its inverse in cache
## Variables
## 'x' as the matrix, 'xinv' as the matrix inverse
## Functions
## 'set', 'get... | /cachematrix.R | no_license | liangk7/ProgrammingAssignment2 | R | false | false | 1,229 | r | ## [Put comments here that give an overall description of what your
## functions do]
## [Write a short comment describing this function]
## The following function creates a special matrix that can retain
## its inverse in cache
## Variables
## 'x' as the matrix, 'xinv' as the matrix inverse
## Functions
## 'set', 'get... |
##collection of functions that vectorize code for you
##__author__ = 'Matthew Campos (matthew.campos19@imperial.ac.uk)'
##__version__ = '0.0.1'
## Build a random matrix
M <- matrix(rnorm(100), 10, 10) #produces a 10x10 matrix of 100 random numbers from normal distribution
## Take the mean of each row
RowMeans <- app... | /Week3/Code/apply1.R | no_license | matthewcampos/CMEECourseWork | R | false | false | 648 | r | ##collection of functions that vectorize code for you
##__author__ = 'Matthew Campos (matthew.campos19@imperial.ac.uk)'
##__version__ = '0.0.1'
## Build a random matrix
M <- matrix(rnorm(100), 10, 10) #produces a 10x10 matrix of 100 random numbers from normal distribution
## Take the mean of each row
RowMeans <- app... |
#load the affy library
biocLite("mogene20sttranscriptcluster.db")
library(gdata)
library(affy)
library(affyio)
library(annotate)
library(mogene20stprobeset.db)
library(mogene20sttranscriptcluster.db)
biocLite("hugene10sttranscriptcluster.db")
library(hugene10sttranscriptcluster.db)
# Read in the CEL files in the dire... | /R_from_H_driver/Aimin_project.R | no_license | aiminy/SCCC-Code | R | false | false | 11,945 | r | #load the affy library
biocLite("mogene20sttranscriptcluster.db")
library(gdata)
library(affy)
library(affyio)
library(annotate)
library(mogene20stprobeset.db)
library(mogene20sttranscriptcluster.db)
biocLite("hugene10sttranscriptcluster.db")
library(hugene10sttranscriptcluster.db)
# Read in the CEL files in the dire... |
#### get elevation data and average over radius around points
library(dplyr)
library(here)
library(glue)
library(sf)
library(raster)
here()
setwd(here())
# get XY data
samtoolsfilter <- "F2308" # F2308 filter only
samtoolsqual <- "q48"
minimaprundate <- 20200929
kelpierundate <- 20200927
primer <- "BF3BR2"
outputi... | /Hmsc_CD/local/p0_elevation_data.r | permissive | dougwyu/HJA_analyses_Kelpie | R | false | false | 4,042 | r |
#### get elevation data and average over radius around points
library(dplyr)
library(here)
library(glue)
library(sf)
library(raster)
here()
setwd(here())
# get XY data
samtoolsfilter <- "F2308" # F2308 filter only
samtoolsqual <- "q48"
minimaprundate <- 20200929
kelpierundate <- 20200927
primer <- "BF3BR2"
outputi... |
for (n in 1:25) {
if (n%%2==0) {
cat(n,"is an even\n") # Testing for even or odd
} else {
cat(n," is an odd\n")
}
if (n%%10==0) {
cat(n," is a multiple of 10\n")
}
} | /modulus.R | no_license | jesscapall99/chem160module13 | R | false | false | 185 | r | for (n in 1:25) {
if (n%%2==0) {
cat(n,"is an even\n") # Testing for even or odd
} else {
cat(n," is an odd\n")
}
if (n%%10==0) {
cat(n," is a multiple of 10\n")
}
} |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
####################################################################
##m=makeCacheMatrix(x) This function creates a list of functions
##which it assigns to m. The list contains a functi... | /cachematrix.R | no_license | dhaead/ProgrammingAssignment2 | R | false | false | 1,616 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
####################################################################
##m=makeCacheMatrix(x) This function creates a list of functions
##which it assigns to m. The list contains a functi... |
#' Function for reading raw data.
#'
#' Currently BDF/EDF, 32-bit .CNT, and Brain Vision Analyzer files are
#' supported. Filetype is determined by the file extension.The `edfReader`
#' package is used to load BDF/EDF files, whereas custom code is used for .CNT
#' and BVA files. The function creates an `eeg_data` struc... | /R/file_io.R | no_license | chris-english/eegUtils | R | false | false | 43,941 | r | #' Function for reading raw data.
#'
#' Currently BDF/EDF, 32-bit .CNT, and Brain Vision Analyzer files are
#' supported. Filetype is determined by the file extension.The `edfReader`
#' package is used to load BDF/EDF files, whereas custom code is used for .CNT
#' and BVA files. The function creates an `eeg_data` struc... |
#' Partially specify columns of a data frame
#'
#' This special class can be passed to `.ptype` in order to specify the
#' types of only some of the columns in a data frame.
#'
#' @param ... Attributes of subclass
#' @export
#' @examples
#' pf <- partial_frame(x = double())
#' pf
#'
#' vec_rbind(
#' data.frame(x = 1L... | /R/partial-frame.R | no_license | michaelquinn32/vctrs | R | false | false | 2,504 | r | #' Partially specify columns of a data frame
#'
#' This special class can be passed to `.ptype` in order to specify the
#' types of only some of the columns in a data frame.
#'
#' @param ... Attributes of subclass
#' @export
#' @examples
#' pf <- partial_frame(x = double())
#' pf
#'
#' vec_rbind(
#' data.frame(x = 1L... |
\name{CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000}
\alias{CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000}
\title{
CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000
}
\description{
CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000
}
\usage{
CAAElementsPlanetaryOrbit_Nept... | /man/CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000.Rd | no_license | helixcn/skycalc | R | false | false | 860 | rd | \name{CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000}
\alias{CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000}
\title{
CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000
}
\description{
CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelionJ2000
}
\usage{
CAAElementsPlanetaryOrbit_Nept... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_solve.R
\name{model_solve}
\alias{model_solve}
\title{model.solve}
\usage{
model_solve(
CONFIG,
FUN,
XSTART = rep(100, 144),
BTOL = 0.01,
MAXIT = 1000,
MESSAGE = T
)
}
\arguments{
\item{CONFIG}{The configuration generated fr... | /man/model_solve.Rd | no_license | realxinzhao/tradecast | R | false | true | 811 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_solve.R
\name{model_solve}
\alias{model_solve}
\title{model.solve}
\usage{
model_solve(
CONFIG,
FUN,
XSTART = rep(100, 144),
BTOL = 0.01,
MAXIT = 1000,
MESSAGE = T
)
}
\arguments{
\item{CONFIG}{The configuration generated fr... |
# esempio di regressione sul dataset Boston
library(keras)
boston <- dataset_boston_housing()
# come vediamo il dataset è una lista, andiamo a vedere quindi la sua struttura
str(boston)
# usiamo il fattore di assegnazione multipla "%<-%" che ci permette di creare gli oggetti di train e di test
c(c(train, cl_train),... | /CODICE-Corso-Completo-di-Data-Science-con-R/Sezione 9/8. Esempio di output numerico sul dataset Boston.R | no_license | franktor65/Private | R | false | false | 1,153 | r | # esempio di regressione sul dataset Boston
library(keras)
boston <- dataset_boston_housing()
# come vediamo il dataset è una lista, andiamo a vedere quindi la sua struttura
str(boston)
# usiamo il fattore di assegnazione multipla "%<-%" che ci permette di creare gli oggetti di train e di test
c(c(train, cl_train),... |
library(lubridate)
power <- read.table("household_power_consumption.txt", sep=";", header = TRUE)
power$Date <- dmy(power$Date) # Formating the date
head(power$Date) # checking if the date format has changed or not
class(power$Time)
power$Time <- hms(power$Time) # Formating the time
head(power$Time) # checking if the ... | /plot4.R | no_license | amitstudent/ExData_Plotting1 | R | false | false | 2,454 | r | library(lubridate)
power <- read.table("household_power_consumption.txt", sep=";", header = TRUE)
power$Date <- dmy(power$Date) # Formating the date
head(power$Date) # checking if the date format has changed or not
class(power$Time)
power$Time <- hms(power$Time) # Formating the time
head(power$Time) # checking if the ... |
#' @rdname characterize
#' @title Character conversion of labelled data
#' @description Convert labelled variables to character or factor
#' @param x A vector or data frame.
#' @param coerce_character A logical indicating whether to additionally coerce character columns to factor (in \code{factorize}). Default \cod... | /R/characterize.R | no_license | cran/rio | R | false | false | 2,968 | r | #' @rdname characterize
#' @title Character conversion of labelled data
#' @description Convert labelled variables to character or factor
#' @param x A vector or data frame.
#' @param coerce_character A logical indicating whether to additionally coerce character columns to factor (in \code{factorize}). Default \cod... |
library(pterrace)
### Name: two_circle_density_dat
### Title: Point cloud of two circles of same size but different point
### density
### Aliases: two_circle_density_dat
### Keywords: datasets
### ** Examples
# load data
data(two_circle_density_dat)
# input variables
Xlim <- c(-3,6)
Ylim <- c(-3,3)
lim <- cbind(... | /data/genthat_extracted_code/pterrace/examples/two_circle_density_dat.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 759 | r | library(pterrace)
### Name: two_circle_density_dat
### Title: Point cloud of two circles of same size but different point
### density
### Aliases: two_circle_density_dat
### Keywords: datasets
### ** Examples
# load data
data(two_circle_density_dat)
# input variables
Xlim <- c(-3,6)
Ylim <- c(-3,3)
lim <- cbind(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/display.R
\name{compose}
\alias{compose}
\alias{mk_par}
\title{Define flextable displayed values}
\usage{
compose(x, i = NULL, j = NULL, value, part = "body")
mk_par(x, i = NULL, j = NULL, value, part = "body")
}
\arguments{
\item{x}{a flext... | /man/compose.Rd | no_license | travistdale/flextable | R | false | true | 1,307 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/display.R
\name{compose}
\alias{compose}
\alias{mk_par}
\title{Define flextable displayed values}
\usage{
compose(x, i = NULL, j = NULL, value, part = "body")
mk_par(x, i = NULL, j = NULL, value, part = "body")
}
\arguments{
\item{x}{a flext... |
################
###Question 1.7### sin(2x) + 2
################
####Part 1######
set.seed(1)
x_train<-rnorm(1:100)
set.seed(2)
epsilon_train <- rnorm(1:100)
y_train <- sin(x_train*2)+2+epsilon_train # train set
y_train_no_error <- sin(x_train*2)+2
set.seed(3)
x_test <- rnorm(1:10000)
set.seed(4)
epsilon_test <- rn... | /HW1/HW1_17.R | no_license | vveeraCB/boothML | R | false | false | 2,990 | r | ################
###Question 1.7### sin(2x) + 2
################
####Part 1######
set.seed(1)
x_train<-rnorm(1:100)
set.seed(2)
epsilon_train <- rnorm(1:100)
y_train <- sin(x_train*2)+2+epsilon_train # train set
y_train_no_error <- sin(x_train*2)+2
set.seed(3)
x_test <- rnorm(1:10000)
set.seed(4)
epsilon_test <- rn... |
plan <- drake_plan(
trace = TRUE,
files = target(
load_dataset(res,mode,mz,diag),
# Define an analysis target for each combination of
# tuning_setting, mean_value, and model_function.
transform = cross(
res=!!c(2),
mode=!!c(2),#(1,2),
mz=!!c(2),#(2,1),
diag=!!c(6),#(3,6),
... | /R/static_plan.R | permissive | smartscalpel/regressionCV | R | false | false | 13,693 | r | plan <- drake_plan(
trace = TRUE,
files = target(
load_dataset(res,mode,mz,diag),
# Define an analysis target for each combination of
# tuning_setting, mean_value, and model_function.
transform = cross(
res=!!c(2),
mode=!!c(2),#(1,2),
mz=!!c(2),#(2,1),
diag=!!c(6),#(3,6),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.r
\name{get_barcode_sequence}
\alias{get_barcode_sequence}
\title{Extract the cell barcode sequence from one or more barcode strings}
\usage{
get_barcode_sequence(barcode_str)
}
\arguments{
\item{barcode_str}{Formatted cell barcode seque... | /data/cellrangerRkit/man/get_barcode_sequence.Rd | permissive | buenrostrolab/10x_scRNAseq | R | false | true | 452 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.r
\name{get_barcode_sequence}
\alias{get_barcode_sequence}
\title{Extract the cell barcode sequence from one or more barcode strings}
\usage{
get_barcode_sequence(barcode_str)
}
\arguments{
\item{barcode_str}{Formatted cell barcode seque... |
habitat.model.db = function( ip=NULL, DS=NULL, v=NULL, p=NULL, yr=NULL, debug=F ) {
# ~ 5hr , when k=200
# variograms are not used .. the model solutions require > 3 days to complete!
# if GAMM speeds improve try again
# currently fast GAM == "bam" is used
if (DS %in% c("large.male.auxill... | /snowcrab/src/_Rfunctions/analysis/habitat.model.db.r | no_license | rodrigosantana/ecomod | R | false | false | 15,456 | r |
habitat.model.db = function( ip=NULL, DS=NULL, v=NULL, p=NULL, yr=NULL, debug=F ) {
# ~ 5hr , when k=200
# variograms are not used .. the model solutions require > 3 days to complete!
# if GAMM speeds improve try again
# currently fast GAM == "bam" is used
if (DS %in% c("large.male.auxill... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 51166
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 50974
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 50974
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query10_query57_1344/query10_query57_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 812 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 51166
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 50974
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 50974
c
c Input Parameter (command line, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/saveObject.r
\name{saveObject}
\alias{saveObject}
\title{Save Object}
\usage{
saveObject(name = NULL, object, parent = NULL, suggest = "",
env = parent.frame(), remove = NULL, debug = FALSE)
}
\arguments{
\item{name}{character giving the na... | /man/saveObject.Rd | no_license | sctyner/strvalidator | R | false | true | 1,280 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/saveObject.r
\name{saveObject}
\alias{saveObject}
\title{Save Object}
\usage{
saveObject(name = NULL, object, parent = NULL, suggest = "",
env = parent.frame(), remove = NULL, debug = FALSE)
}
\arguments{
\item{name}{character giving the na... |
#Example Context: Simple Linear Regression
#To simplify things, we will sample for the residual variance and use theb
needed_packages = c("invgamma", "mvtnorm", "coda")
for(i in 1:length(needed_packages)){
haspackage = require(needed_packages[i], character.only = TRUE)
if(haspackage == FALSE){
install.packag... | /Lectures/08-MCMC-Algorithms/Gibbs_Sampling.R | no_license | guanlanxu/BayesianPsychometricModeling | R | false | false | 3,607 | r |
#Example Context: Simple Linear Regression
#To simplify things, we will sample for the residual variance and use theb
needed_packages = c("invgamma", "mvtnorm", "coda")
for(i in 1:length(needed_packages)){
haspackage = require(needed_packages[i], character.only = TRUE)
if(haspackage == FALSE){
install.packag... |
LatLngSanityCheck = function(latLngData,data)
{
for(i in 2:NROW(latLngData))
{
t_Hub_j = time(point1 = as.list(latLngData[1,-1]),point2 = as.list(latLngData[i,-1]))
if(t_Hub_j > 3)
{
pincode = data %>% filter(.,order_external_id %in% as.character(latLngData[i,1])) %>% select(.,Pincode)
pinco... | /LatLngSanityCheck.R | no_license | ketki-analytics/Vehicle_Route_Optimization | R | false | false | 688 | r | LatLngSanityCheck = function(latLngData,data)
{
for(i in 2:NROW(latLngData))
{
t_Hub_j = time(point1 = as.list(latLngData[1,-1]),point2 = as.list(latLngData[i,-1]))
if(t_Hub_j > 3)
{
pincode = data %>% filter(.,order_external_id %in% as.character(latLngData[i,1])) %>% select(.,Pincode)
pinco... |
#source("~/code/code_R/generate_accession_name2.R")
n=length(data.accession)
index=c(1,2,3,4,5,6,7,8,9,12,13)
for(i in index){
cat(data.accession[[i]][[1]],"\n")
rn=dim(data.accession[[i]][[2]])[1]
#print(data.accession[[i]][[2]][2:rn,2])
Entry_number=c(as.character(data.accession[[i]][[2]][2:rn,1]))
acc=c(pas... | /code_R/generate_accession_name2.R | permissive | solgenomics/zeabase | R | false | false | 3,372 | r | #source("~/code/code_R/generate_accession_name2.R")
n=length(data.accession)
index=c(1,2,3,4,5,6,7,8,9,12,13)
for(i in index){
cat(data.accession[[i]][[1]],"\n")
rn=dim(data.accession[[i]][[2]])[1]
#print(data.accession[[i]][[2]][2:rn,2])
Entry_number=c(as.character(data.accession[[i]][[2]][2:rn,1]))
acc=c(pas... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sample_colors.R
\name{crayon_set_clr}
\alias{crayon_set_clr}
\title{Style text with crayon}
\usage{
crayon_set_clr(string, clr, ...)
}
\description{
Style text with crayon
}
\examples{
#> Source Code:
crayon_set_clr
}
| /man/crayon_set_clr.Rd | no_license | k-hench/fftidy | R | false | true | 296 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sample_colors.R
\name{crayon_set_clr}
\alias{crayon_set_clr}
\title{Style text with crayon}
\usage{
crayon_set_clr(string, clr, ...)
}
\description{
Style text with crayon
}
\examples{
#> Source Code:
crayon_set_clr
}
|
\name{crowding_distance}
\alias{crowding_distance}
\title{Crowding Distance}
\usage{
crowding_distance(front)
}
\arguments{
\item{front}{matrix of function values.}
}
\value{
crowding distance for each function value.
}
\description{
Calculate crowding distances.
}
\author{
Olaf Mersmann \email{olafm@statisti... | /man/crowding_distance.Rd | no_license | cran/emoa | R | false | false | 341 | rd | \name{crowding_distance}
\alias{crowding_distance}
\title{Crowding Distance}
\usage{
crowding_distance(front)
}
\arguments{
\item{front}{matrix of function values.}
}
\value{
crowding distance for each function value.
}
\description{
Calculate crowding distances.
}
\author{
Olaf Mersmann \email{olafm@statisti... |
## Sequencing Run Log
library(lubridate)
library(dplyr)
library(tidyverse)
library(janitor)
# extract the spreadsheet notebook (first sheet; sheet = 1, "sequencing")
sequencing_run_log_IGM <- flipAPI::DownloadXLSX("https://www.dropbox.com/s/8pqkjfib37fric8/sequencing%20run%20log%20at%20IGM%20post%2004-2017.xlsx?dl=0",... | /CREATE/R/EXTRACT_SEQUENCINGRUN.R | no_license | bonnfire/PalmerLab_genotyping | R | false | false | 4,165 | r | ## Sequencing Run Log
library(lubridate)
library(dplyr)
library(tidyverse)
library(janitor)
# extract the spreadsheet notebook (first sheet; sheet = 1, "sequencing")
sequencing_run_log_IGM <- flipAPI::DownloadXLSX("https://www.dropbox.com/s/8pqkjfib37fric8/sequencing%20run%20log%20at%20IGM%20post%2004-2017.xlsx?dl=0",... |
library(rnoaa)
### Name: cpc_prcp
### Title: Precipitation data from NOAA Climate Prediction Center (CPC)
### Aliases: cpc_prcp
### ** Examples
## Not run:
##D cpc_prcp(date = "2017-01-15")
##D cpc_prcp(date = "2015-06-05")
##D cpc_prcp(date = "2017-01-15")
##D
##D cpc_prcp(date = "2005-07-09")
##D
##D cpc_prcp(... | /data/genthat_extracted_code/rnoaa/examples/cpc_prcp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 416 | r | library(rnoaa)
### Name: cpc_prcp
### Title: Precipitation data from NOAA Climate Prediction Center (CPC)
### Aliases: cpc_prcp
### ** Examples
## Not run:
##D cpc_prcp(date = "2017-01-15")
##D cpc_prcp(date = "2015-06-05")
##D cpc_prcp(date = "2017-01-15")
##D
##D cpc_prcp(date = "2005-07-09")
##D
##D cpc_prcp(... |
#####
#Bugger App FINAL
#####
#Initializing the required packages
library(shiny)
library(ggplot2)
library(purrr)
library(dplyr)
library(DT)
#Supplying example datan options
data(diamonds)
data(mtcars)
data(iris)
#This will let ggplot2 control the plotting (color, fill) based on type
values <- sapply(mtcars,function(... | /submitted_project_code.R | no_license | ColeNypaver/buggers_data_package | R | false | false | 8,278 | r | #####
#Bugger App FINAL
#####
#Initializing the required packages
library(shiny)
library(ggplot2)
library(purrr)
library(dplyr)
library(DT)
#Supplying example datan options
data(diamonds)
data(mtcars)
data(iris)
#This will let ggplot2 control the plotting (color, fill) based on type
values <- sapply(mtcars,function(... |
library(GOSemSim)
context("Wang")
test_that("Wang's method", {
hsGO <- godata('org.Hs.eg.db', ont="MF", computeIC=FALSE)
x <- goSim("GO:0004022", "GO:0005515", semData=hsGO, measure="Wang")
expect_true(x >= 0 && x<=1)
})
| /B_analysts_sources_github/GuangchuangYu/bioc-release/test-Wang.R | no_license | Irbis3/crantasticScrapper | R | false | false | 235 | r | library(GOSemSim)
context("Wang")
test_that("Wang's method", {
hsGO <- godata('org.Hs.eg.db', ont="MF", computeIC=FALSE)
x <- goSim("GO:0004022", "GO:0005515", semData=hsGO, measure="Wang")
expect_true(x >= 0 && x<=1)
})
|
library(plyr)
data <- read.csv("data/gapminder-FiveYearData.csv", stringsAsFactors=FALSE)
# Some examples with the apply family functions
averageLifeExp <- tapply(data$lifeExp[data$year == 1992], data$country[data$year == 1992], mean)
avgLifeExpPerContinentPerYear <- tapply(data$lifeExp, list(data$continent, data... | /data/lessons/40-repeating/analysis.R | permissive | dbarneche/2014-10-31-USyd | R | false | false | 1,154 | r | library(plyr)
data <- read.csv("data/gapminder-FiveYearData.csv", stringsAsFactors=FALSE)
# Some examples with the apply family functions
averageLifeExp <- tapply(data$lifeExp[data$year == 1992], data$country[data$year == 1992], mean)
avgLifeExpPerContinentPerYear <- tapply(data$lifeExp, list(data$continent, data... |
#' Calculates conditional likelihood of one species presences based on environmental values and presence of other species at a range of sites.
#'
#' @title Conditional prediction of species at range of sites site.
#' @param draws A set of mcmc draws produced by the GRETA function draws.
#' @param betas_shared Non speci... | /R/pred_cond_entire.R | no_license | samaperrin/JSAM | R | false | false | 1,551 | r | #' Calculates conditional likelihood of one species presences based on environmental values and presence of other species at a range of sites.
#'
#' @title Conditional prediction of species at range of sites site.
#' @param draws A set of mcmc draws produced by the GRETA function draws.
#' @param betas_shared Non speci... |
rm(list=ls())
library(tidyverse)
library(zoo)
#Mock data
# set.seed(12345)
# AGEDAYS<-c(1,31,70, 100, 200, 210,220,270,300,
# 5,20,50,100,130,
# 7,14,21,28,45)
# AGEDAYS<-rep(sample.int(720, 60),50)
# SUBJID<-c(1,1,1,1,1, 1,1,1,1,
# 2,2,2,2,2,
# 3,3,3,3,3)
# SUBJID<-rep(1:... | /Scripts/Wast_incidence_functions.R | no_license | child-growth/Rally-6 | R | false | false | 59,068 | r |
rm(list=ls())
library(tidyverse)
library(zoo)
#Mock data
# set.seed(12345)
# AGEDAYS<-c(1,31,70, 100, 200, 210,220,270,300,
# 5,20,50,100,130,
# 7,14,21,28,45)
# AGEDAYS<-rep(sample.int(720, 60),50)
# SUBJID<-c(1,1,1,1,1, 1,1,1,1,
# 2,2,2,2,2,
# 3,3,3,3,3)
# SUBJID<-rep(1:... |
funnel <- function(x,y,variable="area",precision="t",level=0.95,level.UD=0.95,...)
{
variable <- canonical.name(variable)
variable <- match.arg(variable,c("area","diffusion","speed","tauposition","tauvelocity","distance"))
effect <- variable
if(precision=="N") { precision <- "DOF" }
precision <- canonical.na... | /R/funnel.R | no_license | ctmm-initiative/ctmm | R | false | false | 4,001 | r | funnel <- function(x,y,variable="area",precision="t",level=0.95,level.UD=0.95,...)
{
variable <- canonical.name(variable)
variable <- match.arg(variable,c("area","diffusion","speed","tauposition","tauvelocity","distance"))
effect <- variable
if(precision=="N") { precision <- "DOF" }
precision <- canonical.na... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/odataR_code.R
\name{odataR_get_cat}
\alias{odataR_get_cat}
\title{Get catalog information}
\usage{
odataR_get_cat(root = NULL, type = "Tables", query = NULL, debug = F)
}
\arguments{
\item{root}{Character string with root of structure. Defaul... | /man/odataR_get_cat.Rd | permissive | HanOostdijk/odataR | R | false | true | 2,700 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/odataR_code.R
\name{odataR_get_cat}
\alias{odataR_get_cat}
\title{Get catalog information}
\usage{
odataR_get_cat(root = NULL, type = "Tables", query = NULL, debug = F)
}
\arguments{
\item{root}{Character string with root of structure. Defaul... |
\name{Counts accesors}
\alias{countsb}
\alias{countse1i}
\alias{countsg}
\alias{countsie2}
\alias{countsj}
\alias{rdsg}
\alias{rdsb}
\title{
Accessors for ASpliCounts object
}
\description{
Accessors for ASpliCounts object
}
\usage{
countsb(x)
countse1i(x)
countsg(x)
countsie2(x)
countsj(x)
rdsg(x)
rdsb(x)
}
\arguments... | /man/acc_counts.Rd | no_license | estepi/ASpli | R | false | false | 999 | rd | \name{Counts accesors}
\alias{countsb}
\alias{countse1i}
\alias{countsg}
\alias{countsie2}
\alias{countsj}
\alias{rdsg}
\alias{rdsb}
\title{
Accessors for ASpliCounts object
}
\description{
Accessors for ASpliCounts object
}
\usage{
countsb(x)
countse1i(x)
countsg(x)
countsie2(x)
countsj(x)
rdsg(x)
rdsb(x)
}
\arguments... |
# Support Vector Machine (SVM)
# Classification Template
setwd("C:/Users/willh/Udemy/Machine Learning A-Z/P14-Machine-Learning-AZ-Template-Folder/Part 3 - Classification/Section 16 - Support Vector Machine (SVM)")
# Importing the dataset
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[, 3:5]
... | /Machine_Learning_A-Z/Classification/Support_Vector_Machine_(SVM)/svm_WH.R | no_license | CrunchWillSupreme/Udemy | R | false | false | 2,853 | r | # Support Vector Machine (SVM)
# Classification Template
setwd("C:/Users/willh/Udemy/Machine Learning A-Z/P14-Machine-Learning-AZ-Template-Folder/Part 3 - Classification/Section 16 - Support Vector Machine (SVM)")
# Importing the dataset
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[, 3:5]
... |
# Check activity units in RGCs
source('templates/create_Rmd_blocks.R')
if(!interactive()) { # running using Makefile
# Obtain inputs from the environment
run1 <- Sys.getenv('QC_RUN1')
base.dir <- Sys.getenv('QC_BASE_DIRECTORY')
result.dir <- Sys.getenv('QC_RESULT_PATH')
} else { # running interactively
run1 <- "r... | /QC/scripts/qc_rtable_rgc.R | no_license | psrc/luv | R | false | false | 11,605 | r | # Check activity units in RGCs
source('templates/create_Rmd_blocks.R')
if(!interactive()) { # running using Makefile
# Obtain inputs from the environment
run1 <- Sys.getenv('QC_RUN1')
base.dir <- Sys.getenv('QC_BASE_DIRECTORY')
result.dir <- Sys.getenv('QC_RESULT_PATH')
} else { # running interactively
run1 <- "r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{gdp_quarterly}
\alias{gdp_quarterly}
\title{Quarterly GDP}
\format{Data frame with 4 columns
\describe{
\item{EconYear}{Year of the economic quarter. Because economic quarters are
deemed to begin and end on week boundaries, this... | /man/gdp_quarterly.Rd | no_license | JGCRI/eiamod | R | false | true | 703 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{gdp_quarterly}
\alias{gdp_quarterly}
\title{Quarterly GDP}
\format{Data frame with 4 columns
\describe{
\item{EconYear}{Year of the economic quarter. Because economic quarters are
deemed to begin and end on week boundaries, this... |
#!/usr/bin/Rscript --vanilla --default-packages=methods,utils,stats
cliargs = commandArgs(trailingOnly=TRUE)
# create parser object
parser <- argparse::ArgumentParser(description='Get sensevectors.')
# specify desired options by default ArgumentParser will add an help option
parser$add_argument('--install', action='... | /bin/senseasim | permissive | uhh-lt/senseasim | R | false | false | 1,446 | #!/usr/bin/Rscript --vanilla --default-packages=methods,utils,stats
cliargs = commandArgs(trailingOnly=TRUE)
# create parser object
parser <- argparse::ArgumentParser(description='Get sensevectors.')
# specify desired options by default ArgumentParser will add an help option
parser$add_argument('--install', action='... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.