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(e1071)
library(dplyr)
str(iris)
svm_model <- svm(Species~.,data = iris,kernel="radial")
print(svm_model)
pred <- predict(svm_model,iris)
table(pred,iris$Species)
| /IrisSVMex.R | no_license | chzelada/machine_learning_course_io | R | false | false | 171 | r | library(e1071)
library(dplyr)
str(iris)
svm_model <- svm(Species~.,data = iris,kernel="radial")
print(svm_model)
pred <- predict(svm_model,iris)
table(pred,iris$Species)
|
#' Builds a synthetic variable for education attainment - 2010
#' @param data.frame
#' @value data.frame
#' @export
build_geography_state2010standard_2010 <- function(CensusData){
if(!is.data.frame(CensusData)){
stop("'CensusData' is not a data.frame")
}
check_... | /R/build_geography_state2010standard_2010.R | no_license | claudiacerqn/harmonizeIBGE | R | false | false | 761 | r | #' Builds a synthetic variable for education attainment - 2010
#' @param data.frame
#' @value data.frame
#' @export
build_geography_state2010standard_2010 <- function(CensusData){
if(!is.data.frame(CensusData)){
stop("'CensusData' is not a data.frame")
}
check_... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
loc <- function(data) {
.Call(dplyr_loc, data)
}
dfloc <- function(df) {
.Call(dplyr_dfloc, df)
}
plfloc <- function(data) {
.Call(dplyr_plfloc, data)
}
strings_addresses <- func... | /R/RcppExports.R | permissive | tonyfischetti/dplyr | R | false | false | 5,513 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
loc <- function(data) {
.Call(dplyr_loc, data)
}
dfloc <- function(df) {
.Call(dplyr_dfloc, df)
}
plfloc <- function(data) {
.Call(dplyr_plfloc, data)
}
strings_addresses <- func... |
\name{stm-package}
\alias{stm-package}
\docType{package}
\title{
Structural Topic Model
}
\description{
This package implements the Structural Topic Model, a general approach to including document-level metadata within mixed-membership topic models. To read the vignette use \code{vignette('stmVignette')}.
Functions to... | /man/stm-package.Rd | no_license | fototo/stm | R | false | false | 1,821 | rd | \name{stm-package}
\alias{stm-package}
\docType{package}
\title{
Structural Topic Model
}
\description{
This package implements the Structural Topic Model, a general approach to including document-level metadata within mixed-membership topic models. To read the vignette use \code{vignette('stmVignette')}.
Functions to... |
% Generated by r6-generator-maven-plugin: do not edit by hand
\name{JavaApi}
\alias{JavaApi}
\title{Java Epidemic}
\section{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{
J = jepidemic::JavaApi$get(logLevel)
}
\if{html}{\out{</div>}}
}
\arguments{
\if{html}{\out{<div class="arguments">}}
\item{lo... | /r-library/man/JavaApi.Rd | permissive | terminological/jepidemic | R | false | false | 17,740 | rd | % Generated by r6-generator-maven-plugin: do not edit by hand
\name{JavaApi}
\alias{JavaApi}
\title{Java Epidemic}
\section{Usage}{
\if{html}{\out{<div class="r">}}
\preformatted{
J = jepidemic::JavaApi$get(logLevel)
}
\if{html}{\out{</div>}}
}
\arguments{
\if{html}{\out{<div class="arguments">}}
\item{lo... |
#' Arc-node topology.
#'
#' Return a label and vertex count of each arc.
#'
#' Arcs are unbranched paths within the line segment graph. Nodes are the vertices where three or more arcs meet.
#'
#' As with the `PATH` and `SC` models the arc id values will only be relevant when
#' those entities are identified and labell... | /R/00_arc.R | no_license | mpadge/silicate | R | false | false | 3,008 | r |
#' Arc-node topology.
#'
#' Return a label and vertex count of each arc.
#'
#' Arcs are unbranched paths within the line segment graph. Nodes are the vertices where three or more arcs meet.
#'
#' As with the `PATH` and `SC` models the arc id values will only be relevant when
#' those entities are identified and labell... |
convert.ICES.lat.lon.full <- function(ices) {
# split the ICES rectangle in to the number part and the letter part
# the number part relates to latitude, the letter part relates to longitude
part1 <- substr(ices,1,2)
part2 <- substr(ices,3,4)
# get two look up tables, with latlabels and values and
#... | /scripts/convert.ICES.lat.lon.full.R | no_license | mauriziogibin/csquares | R | false | false | 1,373 | r |
convert.ICES.lat.lon.full <- function(ices) {
# split the ICES rectangle in to the number part and the letter part
# the number part relates to latitude, the letter part relates to longitude
part1 <- substr(ices,1,2)
part2 <- substr(ices,3,4)
# get two look up tables, with latlabels and values and
#... |
context("large-test")
test_that("selection works correctly on a large barrage of tests", {
HTML_IDS <- paste0(
c("<html id=\"html\"><head>", " <link id=\"link-href\" href=\"foo\" />",
" <link id=\"link-nohref\" />", "</head><body>", "<div id=\"outer-div\">",
" <a id=\"name-anchor\" ... | /tests/testthat/test-select.R | no_license | renkun-ken/selectr | R | false | false | 9,913 | r | context("large-test")
test_that("selection works correctly on a large barrage of tests", {
HTML_IDS <- paste0(
c("<html id=\"html\"><head>", " <link id=\"link-href\" href=\"foo\" />",
" <link id=\"link-nohref\" />", "</head><body>", "<div id=\"outer-div\">",
" <a id=\"name-anchor\" ... |
# Reshaping data
# no siempre va a estar ordenada => 1 dejar buen formato.
# data ordenada: 1) cada variable tiene su propia columna
# 2) Cada variable tiene su propia fila
# 3) Cada tabla/Archivo guarda data solo 1 tipo de observacion
install.packages("reshape")
library(reshape)
head(mtcars)
install.packages("resh... | /Course3_DataClean/week 3/Reshaping data.R | no_license | Bttobar/Bttobar-JH_datascience | R | false | false | 1,891 | r | # Reshaping data
# no siempre va a estar ordenada => 1 dejar buen formato.
# data ordenada: 1) cada variable tiene su propia columna
# 2) Cada variable tiene su propia fila
# 3) Cada tabla/Archivo guarda data solo 1 tipo de observacion
install.packages("reshape")
library(reshape)
head(mtcars)
install.packages("resh... |
## -----------------------------------------------------------------------------
#TODO 8.1: Read in LifeExp.csv and check that it was read in correctly
gapminder1 <- read.csv("LifeExp.csv", header = TRUE, na.strings = "")
dim(gapminder1)
## -----------------------------------------------------------------------------... | /exercises/ex8/exercise_8_solutions.R | no_license | anhnguyendepocen/FOR-STT875 | R | false | false | 3,741 | r | ## -----------------------------------------------------------------------------
#TODO 8.1: Read in LifeExp.csv and check that it was read in correctly
gapminder1 <- read.csv("LifeExp.csv", header = TRUE, na.strings = "")
dim(gapminder1)
## -----------------------------------------------------------------------------... |
library(NISTunits)
### Name: NISTwattTOukThUnthPerMin
### Title: Convert watt to British thermal unitth per minute
### Aliases: NISTwattTOukThUnthPerMin
### Keywords: programming
### ** Examples
NISTwattTOukThUnthPerMin(10)
| /data/genthat_extracted_code/NISTunits/examples/NISTwattTOukThUnthPerMin.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 231 | r | library(NISTunits)
### Name: NISTwattTOukThUnthPerMin
### Title: Convert watt to British thermal unitth per minute
### Aliases: NISTwattTOukThUnthPerMin
### Keywords: programming
### ** Examples
NISTwattTOukThUnthPerMin(10)
|
### FICHERO DE FUNCIONES DE NORMALIZACIÓN
require(dataPreparation)
#Función que aplica normalización min-max a toda la base de datos
min_max_db <- function(train, test){
for (i in 1:50){
min <- min(train[,i], na.rm = T)
max <- max(train[,i], na.rm = T)
train[,i] <- (train[,i]-min)/(max-min)
tes... | /preprocess/normalization.R | no_license | jaumeCloquellCapo/data-mining-preprocess-and-classification | R | false | false | 676 | r | ### FICHERO DE FUNCIONES DE NORMALIZACIÓN
require(dataPreparation)
#Función que aplica normalización min-max a toda la base de datos
min_max_db <- function(train, test){
for (i in 1:50){
min <- min(train[,i], na.rm = T)
max <- max(train[,i], na.rm = T)
train[,i] <- (train[,i]-min)/(max-min)
tes... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{metacore_example}
\alias{metacore_example}
\title{Get path to metacore example}
\usage{
metacore_example(file = NULL)
}
\arguments{
\item{file}{Name of file. If \code{NULL}, the example files will be listed.}
}
\description{
met... | /man/metacore_example.Rd | permissive | thomas-neitmann/metacore | R | false | true | 516 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{metacore_example}
\alias{metacore_example}
\title{Get path to metacore example}
\usage{
metacore_example(file = NULL)
}
\arguments{
\item{file}{Name of file. If \code{NULL}, the example files will be listed.}
}
\description{
met... |
# R script to read in campaign data
# Alex Archibald, CAS, January 2012
library(gdata) # required to trim character white space
# this data file can be added to -- just follow the format!
obs.dat <- read.csv(paste(script.dir, "campaign_data.csv", sep=""))
# format data
obs.dat$start.date <- as.Date(obs.dat$start.dat... | /read_campaign_dat.R | no_license | paultgriffiths/R_pyle | R | false | false | 471 | r | # R script to read in campaign data
# Alex Archibald, CAS, January 2012
library(gdata) # required to trim character white space
# this data file can be added to -- just follow the format!
obs.dat <- read.csv(paste(script.dir, "campaign_data.csv", sep=""))
# format data
obs.dat$start.date <- as.Date(obs.dat$start.dat... |
\name{MTSdiag}
\alias{MTSdiag}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Multivariate Time Series Diagnostic Check
%% ~~function to do ... ~~
}
\description{Performs model checking for a fitted multivariate time series model, including residual cross-correlation matrices,
multivariate Ljun... | /man/MTSdiag.Rd | no_license | tsay/MTS | R | false | false | 1,903 | rd | \name{MTSdiag}
\alias{MTSdiag}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Multivariate Time Series Diagnostic Check
%% ~~function to do ... ~~
}
\description{Performs model checking for a fitted multivariate time series model, including residual cross-correlation matrices,
multivariate Ljun... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_catch_curves_for_catch.r
\name{PlotCatchCurvesForCatch}
\alias{PlotCatchCurvesForCatch}
\title{Plot catch curves for catch}
\usage{
PlotCatchCurvesForCatch(asap, a1, save.plots, od, plotf, first.age = -999)
}
\arguments{
\item{a... | /man/PlotCatchCurvesForCatch.Rd | permissive | cmlegault/ASAPplots | R | false | true | 757 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_catch_curves_for_catch.r
\name{PlotCatchCurvesForCatch}
\alias{PlotCatchCurvesForCatch}
\title{Plot catch curves for catch}
\usage{
PlotCatchCurvesForCatch(asap, a1, save.plots, od, plotf, first.age = -999)
}
\arguments{
\item{a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clean_price.R
\name{clean_price}
\alias{clean_price}
\usage{
clean_price(x)
}
\description{
function the clean the price dataset for Sharpe ratio calcuations
}
| /man/clean_price.Rd | no_license | jmoss13148/sandpr | R | false | true | 239 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clean_price.R
\name{clean_price}
\alias{clean_price}
\usage{
clean_price(x)
}
\description{
function the clean the price dataset for Sharpe ratio calcuations
}
|
#' @method as.double lfactor
#' @export
as.double.lfactor <- function(x, ...) {
as.double(as.character(switchllevels(x)))
}
| /R/as.double.lfactor.R | no_license | pdbailey0/lfactors | R | false | false | 126 | r | #' @method as.double lfactor
#' @export
as.double.lfactor <- function(x, ...) {
as.double(as.character(switchllevels(x)))
}
|
library("httr")
library(XML)
library(bitops)
# Sets up a context for a connection to the iRODS REST service..
# from https://github.com/irods/r-irodsclient
#
# Args:
# irods_server: The hostname or address of the iRODS server.
# irods_rest_api_port: The port to connect to the iRODS REST API.
# username: ... | /lib/iRODS_API.R | no_license | markwh/NWM_val | R | false | false | 22,131 | r | library("httr")
library(XML)
library(bitops)
# Sets up a context for a connection to the iRODS REST service..
# from https://github.com/irods/r-irodsclient
#
# Args:
# irods_server: The hostname or address of the iRODS server.
# irods_rest_api_port: The port to connect to the iRODS REST API.
# username: ... |
\name{shortnames<-}
\alias{shortnames<-}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Modify the shortnames of a NG_data object.
}
\description{
Shortnames are useful to reduce the node names of navigation graphs. The node names of navigation graphs are either linked with the names or the sh... | /man/shortnamessetter.Rd | no_license | cran/RnavGraph | R | false | false | 1,347 | rd | \name{shortnames<-}
\alias{shortnames<-}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Modify the shortnames of a NG_data object.
}
\description{
Shortnames are useful to reduce the node names of navigation graphs. The node names of navigation graphs are either linked with the names or the sh... |
setwd("D:/data analysis/Exploratory Analysis- Project1")
## Full data
dataFull <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?")
dataFull$Date <- as.Date(dataFull$Date, format="%d/%m/%Y")
## Required data
data <- subset(dataFull, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
... | /plot4.R | no_license | halibeiki/ExData_Plotting1 | R | false | false | 1,223 | r | setwd("D:/data analysis/Exploratory Analysis- Project1")
## Full data
dataFull <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?")
dataFull$Date <- as.Date(dataFull$Date, format="%d/%m/%Y")
## Required data
data <- subset(dataFull, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
... |
#' Factor a polynomial
#'
#' Factor a polynomial
#'
#' @param mpoly a character parseable by \code{\link{mp}}, an
#' \code{mpoly} object, or a pointer to a polynomial in M2
#' @param ring a \code{\link{ring}} object or a pointer to such an
#' object
#' @param code return only the M2 code? (default: \code{FALSE})
#'... | /R/factor_poly.R | no_license | rshhar/m2r | R | false | false | 2,795 | r | #' Factor a polynomial
#'
#' Factor a polynomial
#'
#' @param mpoly a character parseable by \code{\link{mp}}, an
#' \code{mpoly} object, or a pointer to a polynomial in M2
#' @param ring a \code{\link{ring}} object or a pointer to such an
#' object
#' @param code return only the M2 code? (default: \code{FALSE})
#'... |
library(dplyr)
library(plyr)
trainData <- read.csv("train/X_train.txt",sep = "",header = F)
testData <- read.csv("test/X_test.txt",sep = "",header = F)
featuresNames <- read.csv("features.txt",sep = "",header = F,stringsAsFactors = F)
colnames(trainData) <- featuresNames[,2]
colnames(testData) <- featuresNames[,2]
... | /run_analysis.R | no_license | caramirezal/gettingNCleaningData | R | false | false | 2,938 | r | library(dplyr)
library(plyr)
trainData <- read.csv("train/X_train.txt",sep = "",header = F)
testData <- read.csv("test/X_test.txt",sep = "",header = F)
featuresNames <- read.csv("features.txt",sep = "",header = F,stringsAsFactors = F)
colnames(trainData) <- featuresNames[,2]
colnames(testData) <- featuresNames[,2]
... |
\name{bramblecanes}
\alias{bramblecanes}
\docType{data}
\title{Hutchings' Bramble Canes data}
\description{
Data giving the locations and ages of bramble canes in a field.
A marked point pattern.
}
\format{
An object of class \code{"ppp"}
representing the point pattern of plant locations.
Entries include
... | /spatstat.data/man/bramblecanes.Rd | no_license | albrizre/spatstat.revdep | R | false | false | 2,337 | rd | \name{bramblecanes}
\alias{bramblecanes}
\docType{data}
\title{Hutchings' Bramble Canes data}
\description{
Data giving the locations and ages of bramble canes in a field.
A marked point pattern.
}
\format{
An object of class \code{"ppp"}
representing the point pattern of plant locations.
Entries include
... |
\name{hoff}
\alias{hoff}
\title{Social Security Expenditure Data}
\description{
This data set contains annual social security expenditure (as percent
of budget lagged by two years), the
relative frequency of mentions social justice received in the party's
platform in each year, and whether the president is R... | /man/hoff.Rd | no_license | IQSS/Zelig | R | false | false | 751 | rd | \name{hoff}
\alias{hoff}
\title{Social Security Expenditure Data}
\description{
This data set contains annual social security expenditure (as percent
of budget lagged by two years), the
relative frequency of mentions social justice received in the party's
platform in each year, and whether the president is R... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elb_operations.R
\name{elb_describe_load_balancer_policy_types}
\alias{elb_describe_load_balancer_policy_types}
\title{Describes the specified load balancer policy types or all load balancer
policy types}
\usage{
elb_describe_load_balancer_po... | /cran/paws.networking/man/elb_describe_load_balancer_policy_types.Rd | permissive | TWarczak/paws | R | false | true | 2,065 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elb_operations.R
\name{elb_describe_load_balancer_policy_types}
\alias{elb_describe_load_balancer_policy_types}
\title{Describes the specified load balancer policy types or all load balancer
policy types}
\usage{
elb_describe_load_balancer_po... |
\name{erdos_number}
\alias{erdos_number}
\title{erdos number}
\usage{
erdos_number(myname, target = "Erdos", cutoff = 2)
}
\arguments{
\item{myname}{name as character with two elements,
forename and surname}
\item{target}{the name to match}
\item{cutoff}{stop trying after going this number of
levels deep}... | /man/erdos_number.Rd | no_license | imclab/RMendeley | R | false | false | 896 | rd | \name{erdos_number}
\alias{erdos_number}
\title{erdos number}
\usage{
erdos_number(myname, target = "Erdos", cutoff = 2)
}
\arguments{
\item{myname}{name as character with two elements,
forename and surname}
\item{target}{the name to match}
\item{cutoff}{stop trying after going this number of
levels deep}... |
#!/usr/bin/R
args<-commandArgs(T)
if (length(args)!=1) {
print ("")
print("Usage: Rscript /data/script/Get_OrgDb_KEGG_Name.R \"Homo sapiens\"")
print("")
stop(call.=FALSE)
}
SpeciesFullName <- args[1]
print (paste("Searching for species:",SpeciesFullName,"...",sep=""))
suppressMessages(library(clusterProfile... | /Pipeline/R_for_RNAseq/archive/0Get_OrgDb_KEGG_Name.R | no_license | Iceylee/NGS-Pacbio | R | false | false | 761 | r | #!/usr/bin/R
args<-commandArgs(T)
if (length(args)!=1) {
print ("")
print("Usage: Rscript /data/script/Get_OrgDb_KEGG_Name.R \"Homo sapiens\"")
print("")
stop(call.=FALSE)
}
SpeciesFullName <- args[1]
print (paste("Searching for species:",SpeciesFullName,"...",sep=""))
suppressMessages(library(clusterProfile... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c2_100_25")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... | /models/openml_fri_c2_100_25/classification_binaryClass/d4261ff97817ade194c9a2660b57a82a/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 692 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c2_100_25")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... |
# tidyYarns.R is a function that reads in data from the 4 csvs pertaining to yarn type
# (purchased, twist, dyed, and spun) and binds them into a single table. The function then
# cleans the table
tidyYarns <- function(){
# Load necessary library
library(dplyr)
# Read in data sets to... | /tidyYarns.R | no_license | MichaelCHarrison/Washougal-Mill-Study | R | false | false | 1,822 | r | # tidyYarns.R is a function that reads in data from the 4 csvs pertaining to yarn type
# (purchased, twist, dyed, and spun) and binds them into a single table. The function then
# cleans the table
tidyYarns <- function(){
# Load necessary library
library(dplyr)
# Read in data sets to... |
## Caching the Inverse of a Matrix
## Creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
set <- function(y) {
x <<- y
inverse <<- NULL
}
get <- function() x
setInverse <- function(inv) inverse <<- inv
getInverse <- function() i... | /cachematrix.R | no_license | ntquyen/ProgrammingAssignment2 | R | false | false | 916 | r | ## Caching the Inverse of a Matrix
## Creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
set <- function(y) {
x <<- y
inverse <<- NULL
}
get <- function() x
setInverse <- function(inv) inverse <<- inv
getInverse <- function() i... |
library(sentencepiece) ## using at least version 0.1.3 from https://github.com/bnosac/sentencepiece
library(word2vec)
library(bit)
library(crfsuite)
library(torch)
# bpemb <- BPEembed(file_sentencepiece = "C:/Users/Jan/Dropbox/Work/RForgeBNOSAC/VUB/torch.ner/en.wiki.bpe.vs25000.model",
# file_word2ve... | /dev/01-ner-bilstm-packed.R | no_license | DIGI-VUB/torch.ner | R | false | false | 8,264 | r | library(sentencepiece) ## using at least version 0.1.3 from https://github.com/bnosac/sentencepiece
library(word2vec)
library(bit)
library(crfsuite)
library(torch)
# bpemb <- BPEembed(file_sentencepiece = "C:/Users/Jan/Dropbox/Work/RForgeBNOSAC/VUB/torch.ner/en.wiki.bpe.vs25000.model",
# file_word2ve... |
## Put comments here that give an overall description of what your
## functions that cache the inverse of a matrix
# Function that handles matrix type's objects in order to cache its inverse
makeCacheMatrix <- function(x=matrix()){
## Initializing variables
matrixInv <- NULL
## Set the matrix
set <- functi... | /cachematrix.R | no_license | fparrale/ProgrammingAssignment2 | R | false | false | 1,718 | r | ## Put comments here that give an overall description of what your
## functions that cache the inverse of a matrix
# Function that handles matrix type's objects in order to cache its inverse
makeCacheMatrix <- function(x=matrix()){
## Initializing variables
matrixInv <- NULL
## Set the matrix
set <- functi... |
make_all_spp <- function(cuke_db, cuke_alg, taxonomy) {
cuke_db_tmp <- cuke_db[match(dimnames(cuke_alg)[[1]],
cuke_db$guid), ]
genera <- unique(cuke_db_tmp$genusorhigher)
genera <- genera[-grep("\\?", genera)]
all_spp <- cuke_db_tmp[cuke_db_tmp$genusorhigher %in% genera,... | /R/morphospecies_stats.R | no_license | fmichonneau/cuke-barcoding | R | false | false | 2,031 | r | make_all_spp <- function(cuke_db, cuke_alg, taxonomy) {
cuke_db_tmp <- cuke_db[match(dimnames(cuke_alg)[[1]],
cuke_db$guid), ]
genera <- unique(cuke_db_tmp$genusorhigher)
genera <- genera[-grep("\\?", genera)]
all_spp <- cuke_db_tmp[cuke_db_tmp$genusorhigher %in% genera,... |
#!/usr/bin/env Rscript
# Set the precision to 16 digits:
options( digits = 16 );
#' Generate test fixtures.
#'
#' @examples
#' main();
main <- function() {
#' Get the script filepath.
#'
#' @return The absolute path of this script
#'
#' @examples
#' filepath <- get_script_path();
get_script_path <- function() ... | /lib/node_modules/@stdlib/math/base/special/binomcoefln/test/fixtures/r/runner.R | permissive | mqzry/stdlib | R | false | false | 1,993 | r | #!/usr/bin/env Rscript
# Set the precision to 16 digits:
options( digits = 16 );
#' Generate test fixtures.
#'
#' @examples
#' main();
main <- function() {
#' Get the script filepath.
#'
#' @return The absolute path of this script
#'
#' @examples
#' filepath <- get_script_path();
get_script_path <- function() ... |
#' Search the CANADENSYS Vascan API.
#'
#' @export
#' @param q (character) Can be a scientific name, a vernacular name or a VASCAN
#' taxon identifier (e.g. 861)
#' @param format (character) One of json (default) or xml.
#' @param raw (logical) If TRUE, raw json or xml returned, if FALSE, parsed
#' data returned.
#... | /R/vascan_search.r | permissive | haithamsghaier/taxize | R | false | false | 2,764 | r | #' Search the CANADENSYS Vascan API.
#'
#' @export
#' @param q (character) Can be a scientific name, a vernacular name or a VASCAN
#' taxon identifier (e.g. 861)
#' @param format (character) One of json (default) or xml.
#' @param raw (logical) If TRUE, raw json or xml returned, if FALSE, parsed
#' data returned.
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotHR.R
\name{plotHR}
\alias{plotHR}
\title{Plot a spline in a Cox regression model}
\usage{
plotHR(models, term = 1, se = TRUE, cntrst = ifelse(inherits(models,
"rms") || inherits(models[[1]], "rms"), TRUE, FALSE),
polygon_ci = TRUE, ru... | /man/plotHR.Rd | no_license | guhjy/Greg | R | false | true | 6,854 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotHR.R
\name{plotHR}
\alias{plotHR}
\title{Plot a spline in a Cox regression model}
\usage{
plotHR(models, term = 1, se = TRUE, cntrst = ifelse(inherits(models,
"rms") || inherits(models[[1]], "rms"), TRUE, FALSE),
polygon_ci = TRUE, ru... |
library(rpart)
library(treeClust)
honest.rpart.structure <- function(X, Y, method="standard", structY=NULL, leaf.size=3, diameter.test=NULL) {
n <- nrow(X)
colnames(X) <- paste("x", 1:ncol(X), sep="")
pass.diameter.check <- FALSE
while (!pass.diameter.check) {
if (method=="random") {
trainData <- dat... | /Simulation/honestRpart_v0.R | no_license | siriuz42/Boulevard_pri | R | false | false | 3,989 | r | library(rpart)
library(treeClust)
honest.rpart.structure <- function(X, Y, method="standard", structY=NULL, leaf.size=3, diameter.test=NULL) {
n <- nrow(X)
colnames(X) <- paste("x", 1:ncol(X), sep="")
pass.diameter.check <- FALSE
while (!pass.diameter.check) {
if (method=="random") {
trainData <- dat... |
library(ESG)
### Name: getRiskParamsScenariosliqSpr
### Title: getRiskParamsScenariosliqSpr method
### Aliases: getRiskParamsScenariosliqSpr
### getRiskParamsScenariosliqSpr,Scenarios-method
### ** Examples
scenarios1 <- new("Scenarios")
scenarios1 <- setParamsBaseScenarios(scenarios1, horizon=5, nScenarios=10)
s... | /data/genthat_extracted_code/ESG/examples/getRiskParamsScenariosliqSpr.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 572 | r | library(ESG)
### Name: getRiskParamsScenariosliqSpr
### Title: getRiskParamsScenariosliqSpr method
### Aliases: getRiskParamsScenariosliqSpr
### getRiskParamsScenariosliqSpr,Scenarios-method
### ** Examples
scenarios1 <- new("Scenarios")
scenarios1 <- setParamsBaseScenarios(scenarios1, horizon=5, nScenarios=10)
s... |
##Function for extracting rough spectra table that includes masses fragment labels and intensity from msms evidence file
#I'm going to just add in a bunch of funky fart sounds because THATS HOW I ROOOOOOLLLLL
Fact2Num <- function(mydataframe){
mydataframe[,1] <- as.character(mydataframe[,1])
mydataframe[,1] ... | /ExtractingFrom_msms.R | no_license | Justin92/SpectraExtraction | R | false | false | 1,234 | r | ##Function for extracting rough spectra table that includes masses fragment labels and intensity from msms evidence file
#I'm going to just add in a bunch of funky fart sounds because THATS HOW I ROOOOOOLLLLL
Fact2Num <- function(mydataframe){
mydataframe[,1] <- as.character(mydataframe[,1])
mydataframe[,1] ... |
#' Learn about optional fields for related get_ functions
#'
#' The \code{help} family of functions lists the optional query parameters available
#' for each of the related \code{get_} functions. When no optional arguments are
#' available, a blank character vector is returned.
#'
#' For more details on these parameter... | /R/help.R | permissive | jwinget/projmgr | R | false | false | 1,391 | r | #' Learn about optional fields for related get_ functions
#'
#' The \code{help} family of functions lists the optional query parameters available
#' for each of the related \code{get_} functions. When no optional arguments are
#' available, a blank character vector is returned.
#'
#' For more details on these parameter... |
find_droughts <- function(x, threshold = vary_threshold, ...) {
if(!inherits(x, "xts")) x <- as.xts(x)
x <- .check_xts(x)
discharge <- if(ncol(x) == 1) x[, 1] else {
if(!"discharge" %in% names(x)) {
stop("'x' must eihter be an object of class lfobj, an xts object with one column or with a colum... | /lfstat/R/pooling.R | no_license | ingted/R-Examples | R | false | false | 10,542 | r |
find_droughts <- function(x, threshold = vary_threshold, ...) {
if(!inherits(x, "xts")) x <- as.xts(x)
x <- .check_xts(x)
discharge <- if(ncol(x) == 1) x[, 1] else {
if(!"discharge" %in% names(x)) {
stop("'x' must eihter be an object of class lfobj, an xts object with one column or with a colum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aiplatform_functions.R
\name{projects.locations.indexEndpoints.create}
\alias{projects.locations.indexEndpoints.create}
\title{Creates an IndexEndpoint.}
\usage{
projects.locations.indexEndpoints.create(
GoogleCloudAiplatformV1IndexEndpoint... | /googleaiplatformv1.auto/man/projects.locations.indexEndpoints.create.Rd | no_license | justinjm/autoGoogleAPI | R | false | true | 1,279 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aiplatform_functions.R
\name{projects.locations.indexEndpoints.create}
\alias{projects.locations.indexEndpoints.create}
\title{Creates an IndexEndpoint.}
\usage{
projects.locations.indexEndpoints.create(
GoogleCloudAiplatformV1IndexEndpoint... |
wine_data <- read.table("http://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data", sep = ",")
head(wine_data)
nrow(wine_data)
colnames(wine_data) <- c("Cvs", "Alcohol",
"Malic_Acid", "Ash", "Alkalinity_of_Ash",
"Magnesium", "Total_Phenols", "Flavanoids... | /Group4 lab1.R | no_license | liuq8/DataAnalytics2020_Qingyang_Liu | R | false | false | 679 | r | wine_data <- read.table("http://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data", sep = ",")
head(wine_data)
nrow(wine_data)
colnames(wine_data) <- c("Cvs", "Alcohol",
"Malic_Acid", "Ash", "Alkalinity_of_Ash",
"Magnesium", "Total_Phenols", "Flavanoids... |
#####################
## R source to first pair assignment
## Dan Murphy & Paulo Kalkhake
## Last update: 11 November 2016
## R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
## Platform: x86_64-apple-darwin13.4.0 (64-bit)
## What it does: Merges cleaned data sets
##########################
#Dynamical link
source('c... | /code/merge.R | no_license | PHenriqueK/FinalPaper | R | false | false | 2,474 | r | #####################
## R source to first pair assignment
## Dan Murphy & Paulo Kalkhake
## Last update: 11 November 2016
## R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
## Platform: x86_64-apple-darwin13.4.0 (64-bit)
## What it does: Merges cleaned data sets
##########################
#Dynamical link
source('c... |
# R --vanilla -f plot-results.R --args <links.csv> <plain.csv>
#options(echo=FALSE)
args <- commandArgs(trailingOnly = TRUE)
if(length(args) != 1) {
message("Usage: R --vanilla -f plot-confidence.R --args <out.pdf>")
quit()
}
outpath=args[1]
# Set fonts to match Latex
library(Cairo)
mainfont <- "Garamond"
... | /results/contig_confidence/plot-confidence.R | permissive | Phelimb/mccortex | R | false | false | 1,929 | r |
# R --vanilla -f plot-results.R --args <links.csv> <plain.csv>
#options(echo=FALSE)
args <- commandArgs(trailingOnly = TRUE)
if(length(args) != 1) {
message("Usage: R --vanilla -f plot-confidence.R --args <out.pdf>")
quit()
}
outpath=args[1]
# Set fonts to match Latex
library(Cairo)
mainfont <- "Garamond"
... |
library(probout)
### Name: OutlierStatistic
### Title: Nonparametric Outlier Statistic
### Aliases: OutlierStatistic
### Keywords: nonparametric
### ** Examples
stat <- OutlierStatistic(faithful)
q.99 <- quantile(stat,.99)
out <- stat > q.99
plot( faithful[,1], faithful[,2],
main="red : .99 quantile f... | /data/genthat_extracted_code/probout/examples/OutlierStatistic.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 782 | r | library(probout)
### Name: OutlierStatistic
### Title: Nonparametric Outlier Statistic
### Aliases: OutlierStatistic
### Keywords: nonparametric
### ** Examples
stat <- OutlierStatistic(faithful)
q.99 <- quantile(stat,.99)
out <- stat > q.99
plot( faithful[,1], faithful[,2],
main="red : .99 quantile f... |
## These functions take a matrix as argument and cache its inverse
## This function creates a "special matrix" which is in
## fact a list of functions to: (a) set and get the value of matrix
## and (b) set and get the inverse of that matrix
makeCacheMatrix <- function(x = matrix()) {
i<-NULL
set<-function(y){
x... | /cachematrix.R | no_license | gobelina/ProgrammingAssignment2 | R | false | false | 945 | r | ## These functions take a matrix as argument and cache its inverse
## This function creates a "special matrix" which is in
## fact a list of functions to: (a) set and get the value of matrix
## and (b) set and get the inverse of that matrix
makeCacheMatrix <- function(x = matrix()) {
i<-NULL
set<-function(y){
x... |
library(HistDAWass)
library(tidyverse)
from_DFg_to_MH<-function(DFg, # a grouped data.frame or tibble
labs_rows, #the name of the variables that defines groups
typeH="base",# this will be used when several histogram estimation methods will be available
... | /Scripts/From_dataframe_to_HD_table.R | no_license | Airpino/HD_SDA_tutorial | R | false | false | 1,429 | r | library(HistDAWass)
library(tidyverse)
from_DFg_to_MH<-function(DFg, # a grouped data.frame or tibble
labs_rows, #the name of the variables that defines groups
typeH="base",# this will be used when several histogram estimation methods will be available
... |
# load packages
require(nlme)
require(pastecs)
require(lme4)
require(lsmeans)
require(MuMIn)
require(rcompanion)
require(car)
require(stats)
require(ggplot2)
require(readxl)
# clear workspace
rm(list = ls(all = TRUE))
######################################
# WITHIN-SUBJECT ANALYSIS
###################################... | /LogisticRegression_MMN_FollowUp.R | permissive | acalcus/MMHL | R | false | false | 3,648 | r | # load packages
require(nlme)
require(pastecs)
require(lme4)
require(lsmeans)
require(MuMIn)
require(rcompanion)
require(car)
require(stats)
require(ggplot2)
require(readxl)
# clear workspace
rm(list = ls(all = TRUE))
######################################
# WITHIN-SUBJECT ANALYSIS
###################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unbGen.R
\name{uMpool}
\alias{uMpool}
\title{Pooled central moment estimates - two-sample}
\usage{
uMpool(smp, a, order)
}
\arguments{
\item{smp}{sample.}
\item{a}{vector of the same length as \code{smp} specifying categories of
observations... | /man/uMpool.Rd | no_license | innager/Umoments | R | false | true | 1,848 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unbGen.R
\name{uMpool}
\alias{uMpool}
\title{Pooled central moment estimates - two-sample}
\usage{
uMpool(smp, a, order)
}
\arguments{
\item{smp}{sample.}
\item{a}{vector of the same length as \code{smp} specifying categories of
observations... |
wine = read.csv("wine.csv")
str(wine)
summary(wine)
model = lm(Price ~ HarvestRain +WinterRain, data = wine)
summary(model)
teamRank = c(1,2,3,3,4,4,4,4,5,5)
wins2012 = c(94,88,95,88,93,94,98,97,93,94)
cor(teamRank, wins2012)
wins2013 = c(97,97,92,93,92,96,94,96,92,90)
cor(teamRank, wins2013)
climate = read.csv("climat... | /Module 2/climatecommands.R | no_license | Gayatri-Prathyusha/20186081-R-Programming | R | false | false | 1,144 | r | wine = read.csv("wine.csv")
str(wine)
summary(wine)
model = lm(Price ~ HarvestRain +WinterRain, data = wine)
summary(model)
teamRank = c(1,2,3,3,4,4,4,4,5,5)
wins2012 = c(94,88,95,88,93,94,98,97,93,94)
cor(teamRank, wins2012)
wins2013 = c(97,97,92,93,92,96,94,96,92,90)
cor(teamRank, wins2013)
climate = read.csv("climat... |
#' pmartRdata
#'
#' The pmartRdata package contains four sets of example mass spectrometry data: proteomics (both peptide- and protein-level data), metabolomics, and lipidomics.
#'
#'
#' @section Data types:
#'
#' This package contains accurate mass and time (AMT) tag mass spectrometry (MS) data for an experiment inves... | /R/pmartRdata.R | no_license | clabornd/pmartRdata | R | false | false | 3,158 | r | #' pmartRdata
#'
#' The pmartRdata package contains four sets of example mass spectrometry data: proteomics (both peptide- and protein-level data), metabolomics, and lipidomics.
#'
#'
#' @section Data types:
#'
#' This package contains accurate mass and time (AMT) tag mass spectrometry (MS) data for an experiment inves... |
library(mosaic)
library(quantmod) # quantitstive models
library(foreach) # for more sophosticated loops for loops with return values.
#Long-Short EFTs
################################################################################
#### Now use a bootstrap approach
#### With more efts
myefts = c("CSM", "QAI", "HD... | /R Scripts/Chris_Portfolio_Problem.R | no_license | edwardeustachon/Predictive-Modeling-Part-2-Exercises | R | false | false | 6,032 | r | library(mosaic)
library(quantmod) # quantitstive models
library(foreach) # for more sophosticated loops for loops with return values.
#Long-Short EFTs
################################################################################
#### Now use a bootstrap approach
#### With more efts
myefts = c("CSM", "QAI", "HD... |
# =========================================================
# by R.Gacesa (UMCG, 2019)
#
# MISC FUNCTIONS for plotting, microbiome stuff ...
#
# NOTE:
# > also includes some functions written by Dr. Alexander Kurilshikov (UMCG)
# =============================================================================
li... | /Scripts/RGacesa_ML_Scripts/R_Misc.R | no_license | millagois/Groningen-Microbiome | R | false | false | 46,055 | r | # =========================================================
# by R.Gacesa (UMCG, 2019)
#
# MISC FUNCTIONS for plotting, microbiome stuff ...
#
# NOTE:
# > also includes some functions written by Dr. Alexander Kurilshikov (UMCG)
# =============================================================================
li... |
getHapMapIds <- function(object){
if(is(object$SKW, "ff")){
open(object$SKW)
open(object$SNR)
}
if(all(nchar(sampleNames(object)) == 7)) return(object)
pathToSampleMap <- system.file("extdata", package="crlmmCompendium")
sampleInfo <- read.table(file.path(pathToSampleMap, "passing_cels_sample_map.txt"),
s... | /R/functions.R | no_license | rscharpf/crlmmCompendium | R | false | false | 8,907 | r | getHapMapIds <- function(object){
if(is(object$SKW, "ff")){
open(object$SKW)
open(object$SNR)
}
if(all(nchar(sampleNames(object)) == 7)) return(object)
pathToSampleMap <- system.file("extdata", package="crlmmCompendium")
sampleInfo <- read.table(file.path(pathToSampleMap, "passing_cels_sample_map.txt"),
s... |
# install.packages("RMySQL")
library(RMySQL)
mydb= dbConnect(MySQL(),user="root",password="root",dbname="sakila",host="localhost")
dbListTables(mydb)
rs <- dbSendQuery(mydb,"select * from actor")
rows <- fetch(rs,n=-1)
rs <- dbSendQuery(mydb,"select * from payment")
rows <- fetch(rs,n=-1) | /mysql.r | no_license | SamJake/test | R | false | false | 290 | r | # install.packages("RMySQL")
library(RMySQL)
mydb= dbConnect(MySQL(),user="root",password="root",dbname="sakila",host="localhost")
dbListTables(mydb)
rs <- dbSendQuery(mydb,"select * from actor")
rows <- fetch(rs,n=-1)
rs <- dbSendQuery(mydb,"select * from payment")
rows <- fetch(rs,n=-1) |
#' set_TextType
#'
#' For any EML element of class TextType, this function can be used to generate the appropriate EML from a markdown-formatted file.
#' @param text a plain text character string which will be used directly as the content of the node if no file is given
#' @param file path to a file providing formatted... | /R/set_TextType.R | permissive | dmullen17/eml2 | R | false | false | 3,303 | r | #' set_TextType
#'
#' For any EML element of class TextType, this function can be used to generate the appropriate EML from a markdown-formatted file.
#' @param text a plain text character string which will be used directly as the content of the node if no file is given
#' @param file path to a file providing formatted... |
names <- c("Kate", "Jack", "Bob", "Ana", "Will")
grades <- c(1.5, 4, 5, NA, 5)
is.integer(grades)
passed <- c(FALSE, TRUE, TRUE, NA, TRUE)
length(passed) | /solutions/ex1.R | no_license | irudnyts/introR | R | false | false | 155 | r | names <- c("Kate", "Jack", "Bob", "Ana", "Will")
grades <- c(1.5, 4, 5, NA, 5)
is.integer(grades)
passed <- c(FALSE, TRUE, TRUE, NA, TRUE)
length(passed) |
context("test-flank")
test_that("flank works", {
A.bed <- read.table(text=
"chr1 100 200
chr1 500 600")
my.genome <- read.table(text=
"chr1 1000")
results <- read.table(text=
"chr1 95 100
chr1 200 205
chr1 495 500
chr1 600 605")
expect_equal(bedtoolsr::bt.flank(A.bed, my.genome, b=5), resu... | /tests/testthat/test-bt.flank.R | permissive | PhanstielLab/bedtoolsr | R | false | false | 328 | r | context("test-flank")
test_that("flank works", {
A.bed <- read.table(text=
"chr1 100 200
chr1 500 600")
my.genome <- read.table(text=
"chr1 1000")
results <- read.table(text=
"chr1 95 100
chr1 200 205
chr1 495 500
chr1 600 605")
expect_equal(bedtoolsr::bt.flank(A.bed, my.genome, b=5), resu... |
310463b2f60704fc50bd464c01fbcab3 ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#29.asp.qdimacs 5131 14878 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#29.asp/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#29.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 91 | r | 310463b2f60704fc50bd464c01fbcab3 ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#29.asp.qdimacs 5131 14878 |
library(stringr)
library(readtext)
#regex-uitdrukkingen testen: https://regexr.com/
setwd("~/projects/SDG_base")
url <- "https://www.wbcsd.org/Overview/Our-members/Members"
#b <- read_html(url)
b <- readtext('WBCSD.txt')
b <- tolower(b)
c7 <- str_extract_all(b, pattern = "(\\/[a-z]*.svg)")
c8 <- str_extract_all(b, p... | /SDG_base/WBCSD.R | no_license | jwhwaal/orgban | R | false | false | 767 | r | library(stringr)
library(readtext)
#regex-uitdrukkingen testen: https://regexr.com/
setwd("~/projects/SDG_base")
url <- "https://www.wbcsd.org/Overview/Our-members/Members"
#b <- read_html(url)
b <- readtext('WBCSD.txt')
b <- tolower(b)
c7 <- str_extract_all(b, pattern = "(\\/[a-z]*.svg)")
c8 <- str_extract_all(b, p... |
{"copyright":"VigNet: Copyright 2003-2017 (c), WordsEye Inc",
"data":[{"we.japan.r":{"entity":"obj-bridge-vp5412"}},
{"we.japan.r":{"entity":"toyota-vehicle.n","certainty":"typically-true-val.n"}},
{"we.japan.r":{"entity":"sushi.n","certainty":"typically-true-val.n"}},
{"we.japan.r":{"entity":"sushi-bowl.n","certainty"... | /vignet.47/assertions/we.japan.r | no_license | mulinski/SpatialNet | R | false | false | 1,482 | r | {"copyright":"VigNet: Copyright 2003-2017 (c), WordsEye Inc",
"data":[{"we.japan.r":{"entity":"obj-bridge-vp5412"}},
{"we.japan.r":{"entity":"toyota-vehicle.n","certainty":"typically-true-val.n"}},
{"we.japan.r":{"entity":"sushi.n","certainty":"typically-true-val.n"}},
{"we.japan.r":{"entity":"sushi-bowl.n","certainty"... |
testlist <- list(x = c(2.08655633926036e-308, 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, 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))
re... | /myTAI/inst/testfiles/cpp_geom_mean/AFL_cpp_geom_mean/cpp_geom_mean_valgrind_files/1615842230-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 379 | r | testlist <- list(x = c(2.08655633926036e-308, 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, 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))
re... |
##################################################
# Making DICOM tables
##################################################
rm(list = ls())
library(dplyr)
library(rvest)
library(httr)
library(xml2)
library(tidyr)
library(data.table)
library(tools)
files = c("ex_dicom_data/id_dicom_dump.html",
"ex_dicom_data... | /ex_dicom_data/making_dicom_tags.R | no_license | muschellij2/dcmtk | R | false | false | 1,574 | r | ##################################################
# Making DICOM tables
##################################################
rm(list = ls())
library(dplyr)
library(rvest)
library(httr)
library(xml2)
library(tidyr)
library(data.table)
library(tools)
files = c("ex_dicom_data/id_dicom_dump.html",
"ex_dicom_data... |
build_TD_Matrix <- function(n, a1, a2, b, c1, c2){
# This function build a special nxn tridiagonal matrix
#the sub diagonalis a1 and a2 alternately
# diagonal is b
# super diagonal is c1 and c2 alternately
# Initialize Matrix A
A <- matrix(rep (0, n * n), n, n)
# fill in rows
for (i in 1:n){
... | /build_TD_Matrix.R | no_license | JeremyJosephLin/markovcpp | R | false | false | 859 | r | build_TD_Matrix <- function(n, a1, a2, b, c1, c2){
# This function build a special nxn tridiagonal matrix
#the sub diagonalis a1 and a2 alternately
# diagonal is b
# super diagonal is c1 and c2 alternately
# Initialize Matrix A
A <- matrix(rep (0, n * n), n, n)
# fill in rows
for (i in 1:n){
... |
################################################################################
############## Mixed-Effects Models With Censored Response #####################
################################################################################
## Normal ##
## Linear Case ##
## EM Algorithm ##
#############... | /tlmec/R/linearN.R | no_license | ingted/R-Examples | R | false | false | 5,888 | r | ################################################################################
############## Mixed-Effects Models With Censored Response #####################
################################################################################
## Normal ##
## Linear Case ##
## EM Algorithm ##
#############... |
\name{segment.complement}
\alias{segment.complement}
\title{ Complement of Investment Segments }
\description{
This function returns a vector of investments that are in a portfolio
with n investments but not in the given investment segments
}
\usage{
segment.complement(n, segments)
}
\arguments{
\item{... | /man/segment.complement.Rd | no_license | cran/rportfolios | R | false | false | 1,215 | rd | \name{segment.complement}
\alias{segment.complement}
\title{ Complement of Investment Segments }
\description{
This function returns a vector of investments that are in a portfolio
with n investments but not in the given investment segments
}
\usage{
segment.complement(n, segments)
}
\arguments{
\item{... |
#!/usr/bin/Rscript --no-environ
argv = commandArgs(TRUE)
if((length(argv) < 2) | (length(argv) > 3)){
stop("Usage: cell_neighbor_change_orientation_pattern.R <movie_db_directory> <output_directory> <'ROI list in quotes'>")
}else{
movieDir=normalizePath(argv[1])
if(is.na(file.info(movieDir)$isdir)) stop(paste("mo... | /docs/quickstart/scripts/cell_neighbor_change_orientation_pattern.R | permissive | Kottpalli/tissue_miner | R | false | false | 1,722 | r | #!/usr/bin/Rscript --no-environ
argv = commandArgs(TRUE)
if((length(argv) < 2) | (length(argv) > 3)){
stop("Usage: cell_neighbor_change_orientation_pattern.R <movie_db_directory> <output_directory> <'ROI list in quotes'>")
}else{
movieDir=normalizePath(argv[1])
if(is.na(file.info(movieDir)$isdir)) stop(paste("mo... |
## Moved here from flowCore to eliminate dependency issues.
## The spillover and spillover_match generics remain in flowCore
## to provide a message about the move.
## ===========================================================================
## spillover method
## ----------------------------------------------------... | /R/spillover.R | no_license | RGLab/flowStats | R | false | false | 29,358 | r | ## Moved here from flowCore to eliminate dependency issues.
## The spillover and spillover_match generics remain in flowCore
## to provide a message about the move.
## ===========================================================================
## spillover method
## ----------------------------------------------------... |
`cem.main` <-
function (treatment=NULL, data, cutpoints = NULL, drop=NULL,
k2k=FALSE, method=NULL, mpower=2, verbose = 0,
baseline.group,keep.all=TRUE)
{
if (is.null(data))
stop("Dataframe must be specified", call. = FALSE)
if (!is.data.frame(data)) {
stop("Data must be a dataframe", c... | /R/cem.main.R | no_license | IQSS/cem | R | false | false | 4,032 | r | `cem.main` <-
function (treatment=NULL, data, cutpoints = NULL, drop=NULL,
k2k=FALSE, method=NULL, mpower=2, verbose = 0,
baseline.group,keep.all=TRUE)
{
if (is.null(data))
stop("Dataframe must be specified", call. = FALSE)
if (!is.data.frame(data)) {
stop("Data must be a dataframe", c... |
library(testthat)
library(sdmTMB)
test_check("sdmTMB")
| /tests/testthat.R | no_license | Kotkot/sdmTMB | R | false | false | 56 | r | library(testthat)
library(sdmTMB)
test_check("sdmTMB")
|
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
t... | /myapp/app.R | permissive | sbhagerty/Intro_to_Shiny_March_2020 | R | false | false | 1,459 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
t... |
### Remove previous variables
rm(list = ls())
StartTimeTotal <- proc.time()
#### Libraries, set seed, set cores ----
library(data.table)
library(doParallel)
library(foreach)
library(doRNG)
library(copula)
library(compiler)
library(metafor)
enableJIT(3)
set.seed(123)
# Number of cores for parallel
num.Cores <- detec... | /Final/NSTotalOut2.R | no_license | Schupert/MetaSimulationProject | R | false | false | 21,056 | r | ### Remove previous variables
rm(list = ls())
StartTimeTotal <- proc.time()
#### Libraries, set seed, set cores ----
library(data.table)
library(doParallel)
library(foreach)
library(doRNG)
library(copula)
library(compiler)
library(metafor)
enableJIT(3)
set.seed(123)
# Number of cores for parallel
num.Cores <- detec... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "phoneme")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "Class")
lrn = makeLearner("cl... | /models/openml_phoneme/classification_Class/659760db9237d42f4dcf5b6c4d02f2ef/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 697 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "phoneme")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "Class")
lrn = makeLearner("cl... |
dataset<- read.table("household_power_consumption.txt",sep=";",header = TRUE,na.strings = "?",colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
head(dataset)
# We will only be using data from the dates 2007-02-01 and 2007-02-02 (2 days data) Y_M_D
# conv... | /plot1.R | no_license | salmanhaider94/ExData_Plotting1 | R | false | false | 1,113 | r | dataset<- read.table("household_power_consumption.txt",sep=";",header = TRUE,na.strings = "?",colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
head(dataset)
# We will only be using data from the dates 2007-02-01 and 2007-02-02 (2 days data) Y_M_D
# conv... |
library(mfdb)
library(unittest, quietly = TRUE)
source('utils/helpers.R')
g <- NULL
mdb <- fake_mdb()
ok_group("Can generate objects", {
expect_error(
mfdb_interval("l", c()),
"vect must at least be 2 items long")
expect_error(
mfdb_interval("l", c(1)),
"vect must at least be 2... | /tests/test-mfdb_aggregate_interval.R | no_license | pfrater/mfdb | R | false | false | 3,225 | r | library(mfdb)
library(unittest, quietly = TRUE)
source('utils/helpers.R')
g <- NULL
mdb <- fake_mdb()
ok_group("Can generate objects", {
expect_error(
mfdb_interval("l", c()),
"vect must at least be 2 items long")
expect_error(
mfdb_interval("l", c(1)),
"vect must at least be 2... |
##############################################
#
# General description:
#
# The following script analyzes non-reference L1 detected by our analysis
# and compares them from data form the euL1db data base
# (see http://eul1db.unice.fr/)
# Input:
#
# Family_eul1db: data on families
# Individuals_... | /Scripts/L1NonReferenceAnalysis.R | no_license | hdohna/L1polymORFgit | R | false | false | 6,394 | r | ##############################################
#
# General description:
#
# The following script analyzes non-reference L1 detected by our analysis
# and compares them from data form the euL1db data base
# (see http://eul1db.unice.fr/)
# Input:
#
# Family_eul1db: data on families
# Individuals_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search.R
\name{search_recipes}
\alias{search_recipes}
\title{Search recipes on Yummly.com}
\usage{
search_recipes(search_words, require_pictures, allowed_ingredient,
excluded_ingredient, allowed_diet, allowed_allergy, allowed_cuisine,
exc... | /man/search_recipes.Rd | no_license | RomanTsegelskyi/yummlyr | R | false | true | 5,128 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search.R
\name{search_recipes}
\alias{search_recipes}
\title{Search recipes on Yummly.com}
\usage{
search_recipes(search_words, require_pictures, allowed_ingredient,
excluded_ingredient, allowed_diet, allowed_allergy, allowed_cuisine,
exc... |
##First read in the arguments listed at the command line
args=(commandArgs(TRUE))
library(emma)
source('lib/imageplot.R')
source('lib/slice.R')
##args is now a list of character vectors
## First check to see if arguments are passed.
## Then cycle through each element of the list and evaluate the expressions.
if(length(... | /gex.init.R | no_license | zzj/GEX | R | false | false | 1,159 | r | ##First read in the arguments listed at the command line
args=(commandArgs(TRUE))
library(emma)
source('lib/imageplot.R')
source('lib/slice.R')
##args is now a list of character vectors
## First check to see if arguments are passed.
## Then cycle through each element of the list and evaluate the expressions.
if(length(... |
###--- feature selection ---###
library(MASS)
### asume la existencia de la variable parsed ###
lm.fit <- lm(money_total.x ~. , data = train)
step_money <- stepAIC(lm.fit, direction="both")
final_vars_money_total <- names(step_money$model)
lm.fit <- lm(trans_count.x ~. , data = train)
step_count <- stepAIC(lm.fit,... | /variable_selection.R | no_license | FritangaTV/hackthonBancomerR | R | false | false | 621 | r | ###--- feature selection ---###
library(MASS)
### asume la existencia de la variable parsed ###
lm.fit <- lm(money_total.x ~. , data = train)
step_money <- stepAIC(lm.fit, direction="both")
final_vars_money_total <- names(step_money$model)
lm.fit <- lm(trans_count.x ~. , data = train)
step_count <- stepAIC(lm.fit,... |
library(jsonlite)
jsonData <- fromJSON("https://api.github.com/users/jtleek/repos")
names(jsonData)
names(jsonData$owner)
jsonData$owner$login
myjson <- toJSON(iris, pretty = TRUE)
cat(myjson)
iris2 <- fromJSON(myjson)
head(iris2)
| /Getting and Cleaning Data/Quizz and exercices/Github_repos-JSON.R | permissive | vanAkim/Data.Science.Specialization | R | false | false | 235 | r | library(jsonlite)
jsonData <- fromJSON("https://api.github.com/users/jtleek/repos")
names(jsonData)
names(jsonData$owner)
jsonData$owner$login
myjson <- toJSON(iris, pretty = TRUE)
cat(myjson)
iris2 <- fromJSON(myjson)
head(iris2)
|
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/biocontainer.r
\name{biocontainer}
\alias{biocontainer}
\title{biocontainer}
\usage{
biocontainer(type = "Trap REDLAV ITA", nrecipients = 50,
container_shape = 3, capacity = 1000, initVol = 750,
frac_initVol = 0.75, surface_area ... | /man/biocontainer.Rd | no_license | masspern/rAedesSim | R | false | false | 3,359 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/biocontainer.r
\name{biocontainer}
\alias{biocontainer}
\title{biocontainer}
\usage{
biocontainer(type = "Trap REDLAV ITA", nrecipients = 50,
container_shape = 3, capacity = 1000, initVol = 750,
frac_initVol = 0.75, surface_area ... |
assocTestSeq <- function(seqData,
nullModObj,
aggVarList,
AF.sample = NULL,
AF.range = c(0,1),
weight.beta = c(1,1),
weight.user = NULL,
test = "... | /R/assocTestSeq.R | no_license | hanchenphd/GENESIS | R | false | false | 35,141 | r | assocTestSeq <- function(seqData,
nullModObj,
aggVarList,
AF.sample = NULL,
AF.range = c(0,1),
weight.beta = c(1,1),
weight.user = NULL,
test = "... |
timestamp <- Sys.time()
library(caret)
model <- "rbf"
#########################################################################
set.seed(2)
training <- twoClassSim(50, linearVars = 2)
testing <- twoClassSim(500, linearVars = 2)
trainX <- training[, -ncol(training)]
trainY <- training$Class
seeds <- vector(mode = "l... | /RegressionTests/Code/rbf.R | no_license | JackStat/caret | R | false | false | 5,789 | r | timestamp <- Sys.time()
library(caret)
model <- "rbf"
#########################################################################
set.seed(2)
training <- twoClassSim(50, linearVars = 2)
testing <- twoClassSim(500, linearVars = 2)
trainX <- training[, -ncol(training)]
trainY <- training$Class
seeds <- vector(mode = "l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-auth.R
\docType{class}
\name{Auth-class}
\alias{Auth-class}
\alias{Auth}
\title{Class Auth}
\description{
Auth object
}
\details{
Every object could be requested from this Auth object and any action
could start from this object using ca... | /man/Auth-class.Rd | permissive | lelkaklel/sevenbridges-r | R | false | true | 6,000 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-auth.R
\docType{class}
\name{Auth-class}
\alias{Auth-class}
\alias{Auth}
\title{Class Auth}
\description{
Auth object
}
\details{
Every object could be requested from this Auth object and any action
could start from this object using ca... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genomics_objects.R
\name{Read.info}
\alias{Read.info}
\title{Read.info Object}
\usage{
Read.info()
}
\value{
Read.info object
}
\description{
Read.info Object
}
\details{
Autogenerated via \code{\link[googleAuthR]{gar_create_api_objects}}
A m... | /googlegenomicsv1.auto/man/Read.info.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 515 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genomics_objects.R
\name{Read.info}
\alias{Read.info}
\title{Read.info Object}
\usage{
Read.info()
}
\value{
Read.info object
}
\description{
Read.info Object
}
\details{
Autogenerated via \code{\link[googleAuthR]{gar_create_api_objects}}
A m... |
library(eesim)
### Name: binary_exposure
### Title: Simulate binary exposure data
### Aliases: binary_exposure
### ** Examples
binary_exposure(n = 5, p = 0.1, trend = "cos1", amp = .02,
start.date = "2001-02-01")
binary_exposure(n=10, p=.1, cust_expdraw=rnbinom,
cust_expdraw_args=lis... | /data/genthat_extracted_code/eesim/examples/binary_exposure.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 336 | r | library(eesim)
### Name: binary_exposure
### Title: Simulate binary exposure data
### Aliases: binary_exposure
### ** Examples
binary_exposure(n = 5, p = 0.1, trend = "cos1", amp = .02,
start.date = "2001-02-01")
binary_exposure(n=10, p=.1, cust_expdraw=rnbinom,
cust_expdraw_args=lis... |
/libc/stdio/fseek/man.r | no_license | paulohrpinheiro/tropix-libs | R | false | false | 1,872 | r | ||
# plot 3
png("plot3.png")
with(data2, {plot(datetime, Sub_metering_1, type = "l", xlab = "",
ylab = "Energy sub metering")
lines(datetime, Sub_metering_2, col = "red")
lines(datetime, Sub_metering_3, col = "blue")
legend("topright", lty = c(1, 1), col = c("black", ... | /plot3.R | no_license | dppower/ExData_Plotting1 | R | false | false | 429 | r | # plot 3
png("plot3.png")
with(data2, {plot(datetime, Sub_metering_1, type = "l", xlab = "",
ylab = "Energy sub metering")
lines(datetime, Sub_metering_2, col = "red")
lines(datetime, Sub_metering_3, col = "blue")
legend("topright", lty = c(1, 1), col = c("black", ... |
source('query.functions.r')
library(biomaRt)
library(xlsx)
library(KEGGREST)
library(gplots)
library(ggplot2)
override=FALSE
signed=FALSE
#ensembl=useMart("ensembl",'hsapiens_gene_ensembl')
ensembl=useMart("ENSEMBL_MART_ENSEMBL",dataset="hsapiens_gene_ensembl", host="www.ensembl.org")
r1 <- read.xlsx('geneList/Courc... | /query.r | no_license | bkellman/NotAnotherTeenGeneList_NATGL | R | false | false | 6,937 | r | source('query.functions.r')
library(biomaRt)
library(xlsx)
library(KEGGREST)
library(gplots)
library(ggplot2)
override=FALSE
signed=FALSE
#ensembl=useMart("ensembl",'hsapiens_gene_ensembl')
ensembl=useMart("ENSEMBL_MART_ENSEMBL",dataset="hsapiens_gene_ensembl", host="www.ensembl.org")
r1 <- read.xlsx('geneList/Courc... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/fun.mdata.r
\name{renameany}
\alias{renameany}
\title{rename anything in the table (columns or cells)
you can specify a subset of columns to look at
if the selector is ambiguous.
note that you can have circular renaming, because the d... | /man/renameany.Rd | no_license | tlamadon/rutils | R | false | false | 600 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/fun.mdata.r
\name{renameany}
\alias{renameany}
\title{rename anything in the table (columns or cells)
you can specify a subset of columns to look at
if the selector is ambiguous.
note that you can have circular renaming, because the d... |
## Download USGS gauge station data
# A Carter
# updated: 2020-10-07
# install.packages("dataRetrieval")
library(dataRetrieval) # interact with NWIS and WQP data
library(tidyverse)
library(nhdplusTools)
library(tmap)
library(lubridate)
# library(zoo)
# library(sf)
# library(rgdal)
# library(rgeos)
setwd("C:/Users/A... | /src/retrieval_scripts/download_analyze_USGS_discharge.R | no_license | amcarter/nhc_50yl_sandbox | R | false | false | 12,609 | r | ## Download USGS gauge station data
# A Carter
# updated: 2020-10-07
# install.packages("dataRetrieval")
library(dataRetrieval) # interact with NWIS and WQP data
library(tidyverse)
library(nhdplusTools)
library(tmap)
library(lubridate)
# library(zoo)
# library(sf)
# library(rgdal)
# library(rgeos)
setwd("C:/Users/A... |
install.packages("microbenchmark")
library(microbenchmark)
library(janeaustenr)
library(ggplot2)
# Load the parallel package
library(parallel)
# Make a cluster with 4 nodes
cl <- makeCluster(spec = 4)
# Investigate the structure of cl
str(cl)
# What is the process ID of the workers?
clusterCall(cl, Sys.getpid)
# St... | /The_Parallel_Package.R | no_license | anesta95/Parallel_Programming_Efficient_R_Code | R | false | false | 7,169 | r | install.packages("microbenchmark")
library(microbenchmark)
library(janeaustenr)
library(ggplot2)
# Load the parallel package
library(parallel)
# Make a cluster with 4 nodes
cl <- makeCluster(spec = 4)
# Investigate the structure of cl
str(cl)
# What is the process ID of the workers?
clusterCall(cl, Sys.getpid)
# St... |
library(tidyverse)
library(xts)
library(PerformanceAnalytics)
library(quantmod)
library(rbcb)
# Variação financeira do BOVA11
getSymbols("BOVA11.SA",
from = "2020-01-31",
to = "2020-10-01")
Cl(BOVA11.SA)[c("2020-01-31", "2020-09-30")] %>% as.numeric()
Cl(BOVA11.SA)[c("2020-01-31", "2020-09-3... | /exercícios/acompanhamento de aula cap_4.R | no_license | wilsonfreitas/curso-topicos-de-financas-com-R | R | false | false | 5,593 | r |
library(tidyverse)
library(xts)
library(PerformanceAnalytics)
library(quantmod)
library(rbcb)
# Variação financeira do BOVA11
getSymbols("BOVA11.SA",
from = "2020-01-31",
to = "2020-10-01")
Cl(BOVA11.SA)[c("2020-01-31", "2020-09-30")] %>% as.numeric()
Cl(BOVA11.SA)[c("2020-01-31", "2020-09-3... |
# library(rvest)
# library(notifyR)
# library(magrittr)
# library(httr)
#
# session <- NAVlogin("dzafar", "09po;l)(POp")
#
# url <- "https://fs.insidenci.com/psp/fsprd/EMPLOYEE/ERP/c/ADMINISTER_EXPENSE_FUNCTIONS.TE_TIME_ENTRY.GBL"
#
# session %<>% jump_to(url)
#
# # access iframe
# iframe_url <- session %>%
# html_no... | /R/zzz-Rchive/update_report.R | no_license | sdanielzafar/NAVtrackr | R | false | false | 452 | r | # library(rvest)
# library(notifyR)
# library(magrittr)
# library(httr)
#
# session <- NAVlogin("dzafar", "09po;l)(POp")
#
# url <- "https://fs.insidenci.com/psp/fsprd/EMPLOYEE/ERP/c/ADMINISTER_EXPENSE_FUNCTIONS.TE_TIME_ENTRY.GBL"
#
# session %<>% jump_to(url)
#
# # access iframe
# iframe_url <- session %>%
# html_no... |
#
# shopifyr: An R Interface to the Shopify API
#
# Copyright (C) 2015 Charlie Friedemann cfriedem @ gmail.com
# Shopify API (c) 2006-2015 Shopify Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... | /R/Report.R | no_license | cran/shopifyr | R | false | false | 2,167 | r | #
# shopifyr: An R Interface to the Shopify API
#
# Copyright (C) 2015 Charlie Friedemann cfriedem @ gmail.com
# Shopify API (c) 2006-2015 Shopify Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Output_Functions.R
\name{.generateUniversalSampleSheet}
\alias{.generateUniversalSampleSheet}
\title{Generate a sample sheet (universal function)}
\usage{
.generateUniversalSampleSheet(df, SRA_library_strategy)
}
\arguments{
\item{df}{Data fr... | /man/dot-generateUniversalSampleSheet.Rd | no_license | ss-lab-cancerunit/SpiderSeqR | R | false | true | 674 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Output_Functions.R
\name{.generateUniversalSampleSheet}
\alias{.generateUniversalSampleSheet}
\title{Generate a sample sheet (universal function)}
\usage{
.generateUniversalSampleSheet(df, SRA_library_strategy)
}
\arguments{
\item{df}{Data fr... |
print.CA <- function (x, file = NULL, sep = ";", ...){
res.ca <- x
if (!inherits(res.ca, "CA")) stop("non convenient data")
cat("**Results of the Correspondence Analysis (CA)**\n")
cat("The row variable has ",nrow(res.ca$call$X)," categories; the column variable has", ncol(res.ca$call$X), "categorie... | /FactoMineR/R/print.CA.R | no_license | Etjean/M1stuff | R | false | false | 2,732 | r | print.CA <- function (x, file = NULL, sep = ";", ...){
res.ca <- x
if (!inherits(res.ca, "CA")) stop("non convenient data")
cat("**Results of the Correspondence Analysis (CA)**\n")
cat("The row variable has ",nrow(res.ca$call$X)," categories; the column variable has", ncol(res.ca$call$X), "categorie... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/git.R
\name{is_git_current_branch}
\alias{is_git_current_branch}
\title{Test If Current Git Branch}
\usage{
is_git_current_branch(branch = "master", dir = ".")
}
\arguments{
\item{branch}{string of branch name}
\item{dir}{string of path to g... | /man/is_git_current_branch.Rd | permissive | poissonconsulting/tulip | R | false | true | 476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/git.R
\name{is_git_current_branch}
\alias{is_git_current_branch}
\title{Test If Current Git Branch}
\usage{
is_git_current_branch(branch = "master", dir = ".")
}
\arguments{
\item{branch}{string of branch name}
\item{dir}{string of path to g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.