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 |
|---|---|---|---|---|---|---|---|---|---|
process_data <- function(show_messages = FALSE) {
# CREATING FILE NAME VARIABLES
f_activity_lables <- ".//UCI HAR Dataset//activity_labels.txt"
f_features <- ".//UCI HAR Dataset//features.txt"
f_X_train <- ".//UCI HAR Dataset//train//X_train.txt"
f_y_train <- ".//UCI HAR Dataset//train//y_train.txt"
f_subj_train <- "./... | /run_analysis_main_code.R | no_license | MGN-Roman/getting_data_course_project | R | false | false | 10,552 | r | process_data <- function(show_messages = FALSE) {
# CREATING FILE NAME VARIABLES
f_activity_lables <- ".//UCI HAR Dataset//activity_labels.txt"
f_features <- ".//UCI HAR Dataset//features.txt"
f_X_train <- ".//UCI HAR Dataset//train//X_train.txt"
f_y_train <- ".//UCI HAR Dataset//train//y_train.txt"
f_subj_train <- "./... |
#'@templateVar aqs_endpoint rawDataNotify
#'
#'@description
#' Returns raw data that match your query criteria. This is an asynchronous
#' query that returns a Transaction ID number. The query is run on our servers
#' and when it is complete, an email will be sent you with a link to your data
#' (tied to the Transactio... | /R/get_rawDataNotify.R | no_license | FluentData/raqdm2 | R | false | false | 426 | r | #'@templateVar aqs_endpoint rawDataNotify
#'
#'@description
#' Returns raw data that match your query criteria. This is an asynchronous
#' query that returns a Transaction ID number. The query is run on our servers
#' and when it is complete, an email will be sent you with a link to your data
#' (tied to the Transactio... |
## FIXME: going crazy trying to figure out the _right_ way to store
## cookies in the package environment.
## For now, just leave them in options(); change get/setMWCookie()
## if/when I figure out how
## JUNK:
## when properly installed (not just loaded via devtools) I get
## Error in assign("cookie", cookie, pos =... | /R/loginWiki.R | no_license | bbolker/wwiki | R | false | false | 5,576 | r | ## FIXME: going crazy trying to figure out the _right_ way to store
## cookies in the package environment.
## For now, just leave them in options(); change get/setMWCookie()
## if/when I figure out how
## JUNK:
## when properly installed (not just loaded via devtools) I get
## Error in assign("cookie", cookie, pos =... |
setwd("C:/cloud/Dropbox/lupine")
library(dplyr)
library(tidyr)
library(testthat)
library(rstan)
library(rstanarm)
library(brms)
library(lme4)
options(stringsAsFactors = F)
source("analysis/format_data/format_scripts.R")
source("analysis/format_data/format_functions.R")
# set rstan options to parallel cores
rstan_optio... | /analysis/vital_rates/surv.R | no_license | AldoCompagnoni/lupine | R | false | false | 23,007 | r | setwd("C:/cloud/Dropbox/lupine")
library(dplyr)
library(tidyr)
library(testthat)
library(rstan)
library(rstanarm)
library(brms)
library(lme4)
options(stringsAsFactors = F)
source("analysis/format_data/format_scripts.R")
source("analysis/format_data/format_functions.R")
# set rstan options to parallel cores
rstan_optio... |
#' B-Spline Basis Functions
#'
#' `step_bs` creates a *specification* of a recipe step
#' that will create new columns that are basis expansions of
#' variables using B-splines.
#'
#' @inheritParams step_center
#' @param ... One or more selector functions to choose which
#' variables are affected by the step. See [s... | /R/bs.R | no_license | statist-bhfz/recipes | R | false | false | 5,664 | r | #' B-Spline Basis Functions
#'
#' `step_bs` creates a *specification* of a recipe step
#' that will create new columns that are basis expansions of
#' variables using B-splines.
#'
#' @inheritParams step_center
#' @param ... One or more selector functions to choose which
#' variables are affected by the step. See [s... |
source("code/packages.R")
# Read Data
INH_ConHum <- read_csv("data_raw/INH_ConHum.csv")
INH_FactInf <- read_csv("data_raw/INH_Fact_Infl.csv")
vars <- read_csv("data_raw/INH_General.xls - INH_General.csv")
index <- read_excel("data_raw/WetlandValues_Index.xlsx")
ConHum_complete <- read_excel("data_raw/ConHum.xlsx")
... | /code/clean_data.R | no_license | malfaro2/humedales | R | false | false | 2,418 | r | source("code/packages.R")
# Read Data
INH_ConHum <- read_csv("data_raw/INH_ConHum.csv")
INH_FactInf <- read_csv("data_raw/INH_Fact_Infl.csv")
vars <- read_csv("data_raw/INH_General.xls - INH_General.csv")
index <- read_excel("data_raw/WetlandValues_Index.xlsx")
ConHum_complete <- read_excel("data_raw/ConHum.xlsx")
... |
library(e1071)
set.seed(1)
# We now use the svm() function to fit the support vector classifier for a given value of the cost parameter.
# Here we demonstrate the use of this function on a two-dimensional example so that we can plot the resulting
# decision boundary.
# We begin by generating the observations, which b... | /Labs/Lab 2/Group4_Lab2.R | no_license | Dtrain27/DataAnalytics2021_Dominic_Schroeder | R | false | false | 4,186 | r | library(e1071)
set.seed(1)
# We now use the svm() function to fit the support vector classifier for a given value of the cost parameter.
# Here we demonstrate the use of this function on a two-dimensional example so that we can plot the resulting
# decision boundary.
# We begin by generating the observations, which b... |
# Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complia... | /aurelius/R/kcca.R | permissive | mafpimentel/hadrian | R | false | false | 11,561 | r | # Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complia... |
context("test-bundle")
tb <- tibble::tibble
test_that("relocate_bundled_cols() works", {
expect_equal(relocate_bundled_cols(c("x", "a1", "y", "a2"), a = c("a1", "a2")), c("x", "a", "y"))
expect_equal(relocate_bundled_cols(c("x", "a1", "y", "a2"), !!!list(a = c("a1", "a2"))), c("x", "a", "y"))
expect_equal(relo... | /tests/testthat/test-bundle.R | permissive | yutannihilation/tiedr | R | false | false | 2,433 | r | context("test-bundle")
tb <- tibble::tibble
test_that("relocate_bundled_cols() works", {
expect_equal(relocate_bundled_cols(c("x", "a1", "y", "a2"), a = c("a1", "a2")), c("x", "a", "y"))
expect_equal(relocate_bundled_cols(c("x", "a1", "y", "a2"), !!!list(a = c("a1", "a2"))), c("x", "a", "y"))
expect_equal(relo... |
#' @title plot Hyper-prior function
#' @description This function plots a hyper-prior density function.
#' Currently supported density function are Uniform, Gamma, Normal, Loggamma and Lognormal.
#' The resulting function is used during MCMC \code{\link{mcmc_bite}}
#' to estimate parameters of priors.
#'
#' @details... | /R/plot_hp.R | no_license | theogab/bite | R | false | false | 2,379 | r | #' @title plot Hyper-prior function
#' @description This function plots a hyper-prior density function.
#' Currently supported density function are Uniform, Gamma, Normal, Loggamma and Lognormal.
#' The resulting function is used during MCMC \code{\link{mcmc_bite}}
#' to estimate parameters of priors.
#'
#' @details... |
# this is gradient descent
gradient_value = function(beta = NULL, df, formula,
family = binomial(), iteration_number = 0,
shuffle_rows = TRUE) {
if (shuffle_rows) {
df = df[sample(nrow(df)), ]
}
y = model.frame(formula, data = df)[,1]
X = model.matrix(fo... | /package_contents.R | no_license | muschellij2/distributed_model | R | false | false | 10,357 | r |
# this is gradient descent
gradient_value = function(beta = NULL, df, formula,
family = binomial(), iteration_number = 0,
shuffle_rows = TRUE) {
if (shuffle_rows) {
df = df[sample(nrow(df)), ]
}
y = model.frame(formula, data = df)[,1]
X = model.matrix(fo... |
# 4. faza: Analiza podatkov
#evropa predikcija
enajsti_graf <- ggplot(podatki3 %>% filter(Cas == 2014),
aes(x = Dolg, y = Deficit)) +
guides(color = guide_legend(ncol = 2)) +
geom_point(aes(color = Drzava, size = Dolg-10*Deficit)) +
geom_hline(yintercept=crta) +
geom_hline(yintercept=... | /analiza/analiza.r | permissive | aleksandrov2/APPR-2015-16 | R | false | false | 4,025 | r | # 4. faza: Analiza podatkov
#evropa predikcija
enajsti_graf <- ggplot(podatki3 %>% filter(Cas == 2014),
aes(x = Dolg, y = Deficit)) +
guides(color = guide_legend(ncol = 2)) +
geom_point(aes(color = Drzava, size = Dolg-10*Deficit)) +
geom_hline(yintercept=crta) +
geom_hline(yintercept=... |
args = commandArgs()
basename = sub(".R$", "", sub("^--file=(.*/)?", "", args[grep("^--file=", args)]))
if (length(basename) != 0)
pdf(file=paste0(basename, "_tmp.pdf"), colormodel="gray", width=7, height=3)
par(family="Palatino")
par(mgp=c(2,0.8,0)) # title and axis margins. default: c(3,1,0)
par(mar=c(3,3,2,2)+0.... | /fig/CIcover10c.R | no_license | JDC-Shimada/bayesbook | R | false | false | 1,270 | r | args = commandArgs()
basename = sub(".R$", "", sub("^--file=(.*/)?", "", args[grep("^--file=", args)]))
if (length(basename) != 0)
pdf(file=paste0(basename, "_tmp.pdf"), colormodel="gray", width=7, height=3)
par(family="Palatino")
par(mgp=c(2,0.8,0)) # title and axis margins. default: c(3,1,0)
par(mar=c(3,3,2,2)+0.... |
run_analysis <- function() {
#1. Merges the training and the test sets to create one data set.
#read training and test data from file
trainingX <- read.table("./train/X_train.txt", header = FALSE, colClass = "character")
trainingY <- read.table("./train/y_train.txt", header = FALSE, colClass = "character")
... | /run_analysis.R | no_license | drewclyde/BodySensorsData | R | false | false | 2,545 | r | run_analysis <- function() {
#1. Merges the training and the test sets to create one data set.
#read training and test data from file
trainingX <- read.table("./train/X_train.txt", header = FALSE, colClass = "character")
trainingY <- read.table("./train/y_train.txt", header = FALSE, colClass = "character")
... |
#' Simulate a simple experiement
#' <means stop being title>
#' Stimulate potential outcomes and adds a variable
#' assumes SUTVA, defines the observed outcomes, deletes
#' potential otucomes and returns the result
#' @param n number of observations
#' @param seed RNG seed
#' @return data.table
#' @export
#' @import da... | /causalA16/R/potential_outcomes.R | no_license | simmt/quant3 | R | false | false | 2,004 | r | #' Simulate a simple experiement
#' <means stop being title>
#' Stimulate potential outcomes and adds a variable
#' assumes SUTVA, defines the observed outcomes, deletes
#' potential otucomes and returns the result
#' @param n number of observations
#' @param seed RNG seed
#' @return data.table
#' @export
#' @import da... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/github-friendly-readmes.R
\name{knit_rmds_to_rdme}
\alias{knit_rmds_to_rdme}
\title{knit all rmarkdown files into .md files in their own directories and name each
README.md so as to take advantage of the github previewing.}
\usage{
kn... | /man/knit_rmds_to_rdme.Rd | no_license | npjc/dames | R | false | false | 510 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/github-friendly-readmes.R
\name{knit_rmds_to_rdme}
\alias{knit_rmds_to_rdme}
\title{knit all rmarkdown files into .md files in their own directories and name each
README.md so as to take advantage of the github previewing.}
\usage{
kn... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1777
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1777
c
c Input Parameter (command line, file):
c input filename QBFLIB/Pan/k_grz_p/k_grz_p-10.qdimacs
c output filename /tmp/d... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Pan/k_grz_p/k_grz_p-10/k_grz_p-10.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 602 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1777
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1777
c
c Input Parameter (command line, file):
c input filename QBFLIB/Pan/k_grz_p/k_grz_p-10.qdimacs
c output filename /tmp/d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_funcs.R
\name{calc_coordinates}
\alias{calc_coordinates}
\title{A function that calculates the coordinates of parliamentary seats in incomplete circular parliaments
E.g. The US (semicircle) and Australian (horseshoe) shaped parlia... | /man/calc_coordinates.Rd | no_license | cran/ggparliament | R | false | true | 914 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_funcs.R
\name{calc_coordinates}
\alias{calc_coordinates}
\title{A function that calculates the coordinates of parliamentary seats in incomplete circular parliaments
E.g. The US (semicircle) and Australian (horseshoe) shaped parlia... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3874
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3874
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query60_query05_1344n/query60_query05_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 714 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3874
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3874
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics-report.R
\name{sf_delete_report_instance}
\alias{sf_delete_report_instance}
\title{Delete a report instance}
\usage{
sf_delete_report_instance(report_id, report_instance_id, verbose = FALSE)
}
\arguments{
\item{report_id}{\code{char... | /man/sf_delete_report_instance.Rd | permissive | carlganz/salesforcer | R | false | true | 2,260 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics-report.R
\name{sf_delete_report_instance}
\alias{sf_delete_report_instance}
\title{Delete a report instance}
\usage{
sf_delete_report_instance(report_id, report_instance_id, verbose = FALSE)
}
\arguments{
\item{report_id}{\code{char... |
#' Chao-Bunge species richness estimator
#'
#' This function implements the species richness estimation procedure outlined
#' in Chao & Bunge (2002).
#'
#'
#' @param input_data An input type that can be processed by \code{convert()} or a \code{phyloseq} object
#' @param cutoff The maximum frequency to use in fitting... | /R/richness_chao_bunge.R | no_license | bryandmartin/breakaway | R | false | false | 5,209 | r | #' Chao-Bunge species richness estimator
#'
#' This function implements the species richness estimation procedure outlined
#' in Chao & Bunge (2002).
#'
#'
#' @param input_data An input type that can be processed by \code{convert()} or a \code{phyloseq} object
#' @param cutoff The maximum frequency to use in fitting... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{digamma_inv}
\alias{digamma_inv}
\title{Inverse digamma function.}
\usage{
digamma_inv(y, precision = 1e-08)
}
\arguments{
\item{y}{value to evaluate the inverse digamma function at.}
\item{precision}{default =... | /man/digamma_inv.Rd | no_license | cran/gigg | R | false | true | 435 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{digamma_inv}
\alias{digamma_inv}
\title{Inverse digamma function.}
\usage{
digamma_inv(y, precision = 1e-08)
}
\arguments{
\item{y}{value to evaluate the inverse digamma function at.}
\item{precision}{default =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eda_re.R
\name{eda_re}
\alias{eda_re}
\title{Re-expression function}
\usage{
eda_re(x, p = 0, tukey = TRUE)
}
\arguments{
\item{x}{Vector}
\item{p}{Power transformation}
\item{tukey}{If set to TRUE then adopt Tukey's power transformation, i... | /man/eda_re.Rd | no_license | ckingdon/FFR_mgimond-tukeyedar | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eda_re.R
\name{eda_re}
\alias{eda_re}
\title{Re-expression function}
\usage{
eda_re(x, p = 0, tukey = TRUE)
}
\arguments{
\item{x}{Vector}
\item{p}{Power transformation}
\item{tukey}{If set to TRUE then adopt Tukey's power transformation, i... |
### To get the column names of the data set to be built
features <- as.list(read.table("C:/Users/KRISHNAKUMAR/Documents/UCI HAR Dataset/features.txt"))
column_names <- c("activity", "subject", as.character(features$V2))
### To build the training data set
labl_train <- read.table("C:/Users/KRISHNAKUMAR/Documents/UCI ... | /UCI HAR Dataset/run_analysis.R | no_license | krish-94/Getting-and-cleaning-data-project-coursera | R | false | false | 2,416 | r | ### To get the column names of the data set to be built
features <- as.list(read.table("C:/Users/KRISHNAKUMAR/Documents/UCI HAR Dataset/features.txt"))
column_names <- c("activity", "subject", as.character(features$V2))
### To build the training data set
labl_train <- read.table("C:/Users/KRISHNAKUMAR/Documents/UCI ... |
#1.6
pnorm(85,90,sqrt(18))
pnorm(90,90,sqrt(18))
pnorm(100,90,sqrt(18))
#6
57-qt(.975,24)*10/sqrt(25)
57+qt(.975,24)*10/sqrt(25) | /hw1.R | no_license | mpbrennan7/Nonparametric | R | false | false | 142 | r |
#1.6
pnorm(85,90,sqrt(18))
pnorm(90,90,sqrt(18))
pnorm(100,90,sqrt(18))
#6
57-qt(.975,24)*10/sqrt(25)
57+qt(.975,24)*10/sqrt(25) |
\name{dispersion}
\alias{dispersion,SeqCountSet-method}
\alias{dispersion<-,SeqCountSet,numeric-method}
\alias{dispersion}
\alias{dispersion<-}
\title{
Acessor functions for the 'dispersion' slot in a
SeqCountData object.
}
\description{
Dispersion parameter for a gene represents its coefficient of
variation of... | /man/dispersion.Rd | no_license | hmyh1202/DSS | R | false | false | 1,267 | rd | \name{dispersion}
\alias{dispersion,SeqCountSet-method}
\alias{dispersion<-,SeqCountSet,numeric-method}
\alias{dispersion}
\alias{dispersion<-}
\title{
Acessor functions for the 'dispersion' slot in a
SeqCountData object.
}
\description{
Dispersion parameter for a gene represents its coefficient of
variation of... |
require("OpenRepGrid")
require(dplyr)
require(randomNames)
require("RPostgres")
require(data.table)
con <- dbConnect(RPostgres::Postgres(), dbname = "projekt",
host = "localhost", port = 5432,
user = "postgres", pass = "**********")
#Kraje============================... | /Pliki_R'owe/los_proj.R | no_license | dmika1234/BazyDanychProjekt | R | false | false | 13,491 | r | require("OpenRepGrid")
require(dplyr)
require(randomNames)
require("RPostgres")
require(data.table)
con <- dbConnect(RPostgres::Postgres(), dbname = "projekt",
host = "localhost", port = 5432,
user = "postgres", pass = "**********")
#Kraje============================... |
args<-commandArgs(TRUE)
vectr<-read.csv(args[1], header = FALSE, sep = ",")[,-1]
size<-nrow(vectr)
if (size == 1) {
three <- rep(3,ncol(vectr))
zero <- rep(0,ncol(vectr))
vectr <- rbind(three, zero)
}
tool<-basename(args[1])
split<-strsplit(tool, "_")
distance<-mean(dist(vectr, method = "manhattan"))
#write(pas... | /Cluster/Scripts/rating.R | no_license | ahenoch/Masterproject | R | false | false | 503 | r | args<-commandArgs(TRUE)
vectr<-read.csv(args[1], header = FALSE, sep = ",")[,-1]
size<-nrow(vectr)
if (size == 1) {
three <- rep(3,ncol(vectr))
zero <- rep(0,ncol(vectr))
vectr <- rbind(three, zero)
}
tool<-basename(args[1])
split<-strsplit(tool, "_")
distance<-mean(dist(vectr, method = "manhattan"))
#write(pas... |
# Unit 6 - Introduction to Clustering
# Video 6
# After following the steps in the video, load the data into R
movies = read.table("http://files.grouplens.org/datasets/movielens/ml-100k/u.item", header=FALSE, sep="|",quote="\"")
str(movies)
# Add column names
colnames(movies) = c("ID", "Title", "ReleaseDate", "Vide... | /Unit6 Clustering/Unit6_Netflix.R | no_license | jpalbino/-AnalyticsEdgeMITx | R | false | false | 3,504 | r | # Unit 6 - Introduction to Clustering
# Video 6
# After following the steps in the video, load the data into R
movies = read.table("http://files.grouplens.org/datasets/movielens/ml-100k/u.item", header=FALSE, sep="|",quote="\"")
str(movies)
# Add column names
colnames(movies) = c("ID", "Title", "ReleaseDate", "Vide... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/track_methods.R
\name{helper}
\alias{helper}
\alias{coords}
\alias{coords.track_xy}
\alias{make_trast}
\alias{make_trast.track_xy}
\alias{extent_x}
\alias{extent_x.track_xy}
\alias{extent_y}
\alias{extent_y.track_xy}
\alias{extent_both}
\alia... | /man/helper.Rd | no_license | nmasto/amt | R | false | true | 1,569 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/track_methods.R
\name{helper}
\alias{helper}
\alias{coords}
\alias{coords.track_xy}
\alias{make_trast}
\alias{make_trast.track_xy}
\alias{extent_x}
\alias{extent_x.track_xy}
\alias{extent_y}
\alias{extent_y.track_xy}
\alias{extent_both}
\alia... |
/final/3loop.R | no_license | Magellen/-gene-project | R | false | false | 2,463 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expand_inputs.R
\name{add_years}
\alias{add_years}
\title{Add a specified number of years to a year}
\usage{
add_years(yyyy, n)
}
\arguments{
\item{yyyy}{year in YYYY format}
\item{n}{number of years to add}
}
\value{
yyyy + n
}
\description... | /wsim.io/man/add_years.Rd | permissive | isciences/wsim | R | false | true | 366 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expand_inputs.R
\name{add_years}
\alias{add_years}
\title{Add a specified number of years to a year}
\usage{
add_years(yyyy, n)
}
\arguments{
\item{yyyy}{year in YYYY format}
\item{n}{number of years to add}
}
\value{
yyyy + n
}
\description... |
#TP2 SGD | /COURS ET TP STAT EN GRDE DIMENSION/TP2 SGD.R | no_license | komiagblodoe/M2-SSD | R | false | false | 10 | r |
#TP2 SGD |
## this script will take the data for every year for a single category and place it in a
## a new folder as a tar.gz file
root.source = "K:/Academic Dataset External/"
root.target = "D:/temp/IRI_DATA/sales/"
root.target.win = "D:\\temp\\IRI_DATA\\sales\\beer"
setwd(root.source)
category.files = dir("./parsed stub f... | /DataPrep/Archived/00_Zip_Raw.R | no_license | wellermatt/exp1.1 | R | false | false | 1,512 | r |
## this script will take the data for every year for a single category and place it in a
## a new folder as a tar.gz file
root.source = "K:/Academic Dataset External/"
root.target = "D:/temp/IRI_DATA/sales/"
root.target.win = "D:\\temp\\IRI_DATA\\sales\\beer"
setwd(root.source)
category.files = dir("./parsed stub f... |
# Defunct: the edits this existed to create are now part of the main package
# phewas_manhattan <-
# function(d, add.phewas.descriptions=T, ...) {
# if(sum(c("phenotype","p") %in% names(d))<2 ) stop("Data input must contain columns phenotype and p.")
# if(class(d$phenotype)!="character") {
# if(class(... | /R/defunct_phewas_manhattan.R | no_license | ekawaler/simplePheWAS | R | false | false | 1,310 | r | # Defunct: the edits this existed to create are now part of the main package
# phewas_manhattan <-
# function(d, add.phewas.descriptions=T, ...) {
# if(sum(c("phenotype","p") %in% names(d))<2 ) stop("Data input must contain columns phenotype and p.")
# if(class(d$phenotype)!="character") {
# if(class(... |
## Assume dataset is in current working directory
## Read in entire dataset
powerData <- read.table("household_power_consumption.txt",
header=TRUE,
sep=";",
colClasses=c("character", "character", rep("numeric",7)),
na="?")
... | /plot3.R | no_license | terrisage/ExData_Plotting1 | R | false | false | 1,118 | r | ## Assume dataset is in current working directory
## Read in entire dataset
powerData <- read.table("household_power_consumption.txt",
header=TRUE,
sep=";",
colClasses=c("character", "character", rep("numeric",7)),
na="?")
... |
# Name: performance.r
# Author: Will Landau (landau@iastate.edu)
# Created: June 2012
#
# This program calculates the runtime of
# a user-specified function, gpu_function,
# and compares it to that of some cpu
# analog, cpu_function.
#
# The script creates three plots, each
# comparing the runtimes of gpu_function ... | /Rcode/R_code/gpuSolve.r | no_license | maoneil/gpuIntroduction | R | false | false | 6,028 | r | # Name: performance.r
# Author: Will Landau (landau@iastate.edu)
# Created: June 2012
#
# This program calculates the runtime of
# a user-specified function, gpu_function,
# and compares it to that of some cpu
# analog, cpu_function.
#
# The script creates three plots, each
# comparing the runtimes of gpu_function ... |
# Missing Values
v1 = c(1,2,NA,NA,5)
is.na(v1)
mean(v1)
mean(v1, na.rm=T)
v1a = na.omit(v1)
sum(v1a)
?na.omit
anyNA(v1)
#all
v1[is.na(v1)] = mean(v1, na.rm=T)
v1
#denoted by NA
library(VIM)
data(sleep, package='VIM')
head(sleep)
dim(sleep)
complete.cases(sleep)
sum(complete.cases(sleep))
sleep[complete.cases(sleep)... | /missingvalue.R | no_license | dhanapalaprudhviraj/analyticsproject1 | R | false | false | 1,317 | r | # Missing Values
v1 = c(1,2,NA,NA,5)
is.na(v1)
mean(v1)
mean(v1, na.rm=T)
v1a = na.omit(v1)
sum(v1a)
?na.omit
anyNA(v1)
#all
v1[is.na(v1)] = mean(v1, na.rm=T)
v1
#denoted by NA
library(VIM)
data(sleep, package='VIM')
head(sleep)
dim(sleep)
complete.cases(sleep)
sum(complete.cases(sleep))
sleep[complete.cases(sleep)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleBypasses.R
\name{unhideAll}
\alias{unhideAll}
\title{Unhide All}
\usage{
unhideAll(network = NULL, base.url = .defaultBaseUrl)
}
\arguments{
\item{network}{(optional) Name or SUID of the network. Default is the
"current" network active ... | /man/unhideAll.Rd | permissive | cytoscape/RCy3 | R | false | true | 1,088 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleBypasses.R
\name{unhideAll}
\alias{unhideAll}
\title{Unhide All}
\usage{
unhideAll(network = NULL, base.url = .defaultBaseUrl)
}
\arguments{
\item{network}{(optional) Name or SUID of the network. Default is the
"current" network active ... |
#' ISOAbstractCatalogue
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO abstract catalogue
#' @return Object of \code{\link{R6Class}} for modelling an ISOAbstracCatalogue
#' @format \code{\link{R6Class}} object.
#'
#' @field name
#' @field scope
#' @field fieldOfApplication
#' @field versionN... | /R/ISOAbstractCatalogue.R | no_license | 65MO/geometa | R | false | false | 3,006 | r | #' ISOAbstractCatalogue
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO abstract catalogue
#' @return Object of \code{\link{R6Class}} for modelling an ISOAbstracCatalogue
#' @format \code{\link{R6Class}} object.
#'
#' @field name
#' @field scope
#' @field fieldOfApplication
#' @field versionN... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{rPVI}
\alias{rPVI}
\title{Raw pairwise variability index.}
\arguments{
\item{x}{A vector of durations in arbitrary unit.}
\item{omit}{Boolean indicating whether NA values should be removed before calculating rPVI.}
}
\val... | /man/rPVI.Rd | no_license | FredrikKarlssonSpeech/articulated | R | false | true | 686 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{rPVI}
\alias{rPVI}
\title{Raw pairwise variability index.}
\arguments{
\item{x}{A vector of durations in arbitrary unit.}
\item{omit}{Boolean indicating whether NA values should be removed before calculating rPVI.}
}
\val... |
library(tgp)
# sh1.daily: mean daily specific humidity
# mean.temp: mean daily temperature
# parms(colnames):'qmin','qmax','qmid','R0max','R0diff','D','L','S0','I0','p'
# discrete=T
# calculate R0
calc_R0_AH <- function(in.parms, num.ens, sh1) {
# Create matrices for storing/returning results:
res.temp = res.te... | /model_code/AH.R | no_license | wan-yang/flu-subtropic-climate-models | R | false | false | 8,620 | r | library(tgp)
# sh1.daily: mean daily specific humidity
# mean.temp: mean daily temperature
# parms(colnames):'qmin','qmax','qmid','R0max','R0diff','D','L','S0','I0','p'
# discrete=T
# calculate R0
calc_R0_AH <- function(in.parms, num.ens, sh1) {
# Create matrices for storing/returning results:
res.temp = res.te... |
#
# This test file has been generated by kwb.test::create_test_files()
#
test_that("add_site_metadata() works", {
expect_error(kwb.pilot:::add_site_metadata())
})
| /tests/testthat/test-function-add_site_metadata.R | permissive | KWB-R/kwb.pilot | R | false | false | 166 | r | #
# This test file has been generated by kwb.test::create_test_files()
#
test_that("add_site_metadata() works", {
expect_error(kwb.pilot:::add_site_metadata())
})
|
# web scrape --------------------------------------------------------------
library(tidyverse)
library(rvest)
pdftab <- read_html("https://tbeptech.org/data/tech-pubs") %>%
html_nodes('p')
txt <- pdftab %>%
html_text() %>%
.[1:263]
ref <- pdftab %>%
html_nodes('a') %>%
html_attr('href')
auths <- gsub('... | /R/01_webscrape.R | no_license | tbep-tech/tbep-refs | R | false | false | 776 | r | # web scrape --------------------------------------------------------------
library(tidyverse)
library(rvest)
pdftab <- read_html("https://tbeptech.org/data/tech-pubs") %>%
html_nodes('p')
txt <- pdftab %>%
html_text() %>%
.[1:263]
ref <- pdftab %>%
html_nodes('a') %>%
html_attr('href')
auths <- gsub('... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pathways.R
\name{writePathways}
\alias{writePathways}
\title{Writes a set of pathways (list of vectors) to a GMT file.}
\usage{
writePathways(pathways, gmtFile)
}
\arguments{
\item{pathways}{(list) named list of vectors}
\item{gmtFile}{(char... | /man/writePathways.Rd | permissive | rosscm/fedup | R | false | true | 698 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pathways.R
\name{writePathways}
\alias{writePathways}
\title{Writes a set of pathways (list of vectors) to a GMT file.}
\usage{
writePathways(pathways, gmtFile)
}
\arguments{
\item{pathways}{(list) named list of vectors}
\item{gmtFile}{(char... |
PISCR.fn = function(
capture_1, capture_2, gender, activity, traploc,
ndraws = 20, burnin = 10, M = 400, scale = 10^4,
nloopL = 50, n.update = 20, batchsize = 1000, mindelta = 0.01,
sigmaOfProposal.logitphi = 0.05, sigmaOfProposal.logitp0 = 0.08,
sigmaOfProposal.logsigmam = 0.02, sigmaOfProposal.logsigmaf ... | /partialID.da.R | no_license | soumenstat89/bilateral | R | false | false | 28,415 | r |
PISCR.fn = function(
capture_1, capture_2, gender, activity, traploc,
ndraws = 20, burnin = 10, M = 400, scale = 10^4,
nloopL = 50, n.update = 20, batchsize = 1000, mindelta = 0.01,
sigmaOfProposal.logitphi = 0.05, sigmaOfProposal.logitp0 = 0.08,
sigmaOfProposal.logsigmam = 0.02, sigmaOfProposal.logsigmaf ... |
### nfl teams (in 2018) by conference, division, or league as a whole ----
# as: parameter to specify how you want teams returned. Three options described below
# --> a length 32 vector of all teams (as="league")
# --> a two element list, where each list is a length 16 vector of teams in each conference (as="conferenc... | /R/01_Initialize_Glicko.R | no_license | aaronweinstock/nfl-playoff-simulation | R | false | false | 9,538 | r | ### nfl teams (in 2018) by conference, division, or league as a whole ----
# as: parameter to specify how you want teams returned. Three options described below
# --> a length 32 vector of all teams (as="league")
# --> a two element list, where each list is a length 16 vector of teams in each conference (as="conferenc... |
\name{GraphClust}
\alias{GraphClust}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
GraphClust
}
\description{
Finds mutational clusters after reordering the protein using the traveling salesman approach.
}
\usage{
GraphClust(mutation.data, position.data, insertion.type = "cheapest_insertion", a... | /man/GraphClust.Rd | no_license | gryslik/GraphPAC | R | false | false | 5,199 | rd | \name{GraphClust}
\alias{GraphClust}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
GraphClust
}
\description{
Finds mutational clusters after reordering the protein using the traveling salesman approach.
}
\usage{
GraphClust(mutation.data, position.data, insertion.type = "cheapest_insertion", a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formatPvalue.R
\name{formatPvalue}
\alias{formatPvalue}
\title{Pretty formatting of \emph{p} values}
\usage{
formatPvalue(values, digits = 3, spaces = TRUE, includeP = TRUE)
}
\arguments{
\item{values}{The p-values to format.}
\it... | /man/formatPvalue.Rd | no_license | cran/rosetta | R | false | true | 1,276 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formatPvalue.R
\name{formatPvalue}
\alias{formatPvalue}
\title{Pretty formatting of \emph{p} values}
\usage{
formatPvalue(values, digits = 3, spaces = TRUE, includeP = TRUE)
}
\arguments{
\item{values}{The p-values to format.}
\it... |
####### This tests gamma distribution w weights in gbm by comparing results with R ######
test <- function() {
htable = h2o.uploadFile(locate("smalldata/gbm_test/moppe.csv"))
htable$premiekl = as.factor(htable$premiekl)
htable$moptva = as.factor(htable$moptva)
htable$zon = as.factor(htable$zon)
#gg = gbm(for... | /h2o-r/tests/testdir_algos/gbm/runit_GBM_weight_gamma.R | permissive | StephRoark/h2o-3 | R | false | false | 1,418 | r | ####### This tests gamma distribution w weights in gbm by comparing results with R ######
test <- function() {
htable = h2o.uploadFile(locate("smalldata/gbm_test/moppe.csv"))
htable$premiekl = as.factor(htable$premiekl)
htable$moptva = as.factor(htable$moptva)
htable$zon = as.factor(htable$zon)
#gg = gbm(for... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enrichment_depletion_test.R
\name{enrichment_depletion_test}
\alias{enrichment_depletion_test}
\title{Test for enrichment or depletion of mutations in genomic regions}
\usage{
enrichment_depletion_test(x, by = c())
}
\arguments{
\item{x}{data... | /man/enrichment_depletion_test.Rd | permissive | zongchangli/MutationalPatterns | R | false | true | 1,227 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enrichment_depletion_test.R
\name{enrichment_depletion_test}
\alias{enrichment_depletion_test}
\title{Test for enrichment or depletion of mutations in genomic regions}
\usage{
enrichment_depletion_test(x, by = c())
}
\arguments{
\item{x}{data... |
library(ape)
testtree <- read.tree("13711_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13711_0_unrooted.txt") | /codeml_files/newick_trees_processed/13711_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("13711_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13711_0_unrooted.txt") |
#Call this file after defining the relevant variables to generate the HTML report.
source('_scripts/paper_6/paper_6_otitis_media/paper_6_otitis_media_synthetic_control_functions.R', local = TRUE)
packages <-
c(
'curl',
'evaluate',
'digest',
'formatR',
'highr',
'markdo... | /_scripts/paper_6/paper_6_otitis_media_sense_analy_pre/paper_6_otitis_media_synthetic_control_report_sa_pre.R | permissive | eliaseythorsson/phd_thesis | R | false | false | 2,902 | r | #Call this file after defining the relevant variables to generate the HTML report.
source('_scripts/paper_6/paper_6_otitis_media/paper_6_otitis_media_synthetic_control_functions.R', local = TRUE)
packages <-
c(
'curl',
'evaluate',
'digest',
'formatR',
'highr',
'markdo... |
source("../R/Api.R")
library(rjson)
library("optparse")
option_list = list( make_option(c("-k", "--key"), action="store", default=NA, type='character',
help="Rosette API key"), make_option(c("-u", "--url"), action="store", default=NA, type='character',
help="Rosette API url"))
opt_parser = ... | /examples/morphology_compound-components.R | permissive | kbailey-basistech/R-Binding | R | false | false | 865 | r | source("../R/Api.R")
library(rjson)
library("optparse")
option_list = list( make_option(c("-k", "--key"), action="store", default=NA, type='character',
help="Rosette API key"), make_option(c("-u", "--url"), action="store", default=NA, type='character',
help="Rosette API url"))
opt_parser = ... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{context}
\alias{context}
\title{Describe the context of a set of tests.}
\usage{
context(desc)
}
\arguments{
\item{desc}{description of context. Should start with a capital letter.}
}
\description{
A context defines a set of tests that test related functionali... | /testthat/man/context.Rd | no_license | radfordneal/R-package-mods | R | false | false | 518 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{context}
\alias{context}
\title{Describe the context of a set of tests.}
\usage{
context(desc)
}
\arguments{
\item{desc}{description of context. Should start with a capital letter.}
}
\description{
A context defines a set of tests that test related functionali... |
# DA 9/10/14: Added argument for IDvars (ID variables that are not to be used in imputation, but should remain in data)
hot.deck <-
function(data, m = 5, method=c("best.cell", "p.draw"), cutoff=10, sdCutoff=1, optimizeSD = FALSE,
optimStep = 0.1, optimStop = 5, weightedAffinity = FALSE, impContinuous = c("HD", "mi... | /hot.deck/R/hot.deck.R | no_license | ingted/R-Examples | R | false | false | 8,075 | r | # DA 9/10/14: Added argument for IDvars (ID variables that are not to be used in imputation, but should remain in data)
hot.deck <-
function(data, m = 5, method=c("best.cell", "p.draw"), cutoff=10, sdCutoff=1, optimizeSD = FALSE,
optimStep = 0.1, optimStop = 5, weightedAffinity = FALSE, impContinuous = c("HD", "mi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get.data.frame.R
\name{get.data.frame}
\alias{get.data.frame}
\title{Get a BETS series as a data.frame.}
\usage{
get.data.frame(code, ts = NULL)
}
\arguments{
\item{code}{An \code{integer}. The unique identifier of the series within ... | /man/get.data.frame.Rd | no_license | nmecsys/BETSlite | R | false | true | 1,024 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get.data.frame.R
\name{get.data.frame}
\alias{get.data.frame}
\title{Get a BETS series as a data.frame.}
\usage{
get.data.frame(code, ts = NULL)
}
\arguments{
\item{code}{An \code{integer}. The unique identifier of the series within ... |
## ----opts, eval = TRUE, echo = FALSE, message = FALSE--------------------
options(width = 60)
## ----simulating_data-----------------------------------------------------
# set a seed for reproducibility
set.seed(212)
n <- 5000
A0 <- rbinom(n, size = 1, p = 0.5)
L1 <- rnorm(n, mean = A0 + 1, sd = 1)
A1 <- rbinom(n, ... | /Lab3/Lab3_codeonly.R | permissive | benkeser/siscer2020 | R | false | false | 10,787 | r | ## ----opts, eval = TRUE, echo = FALSE, message = FALSE--------------------
options(width = 60)
## ----simulating_data-----------------------------------------------------
# set a seed for reproducibility
set.seed(212)
n <- 5000
A0 <- rbinom(n, size = 1, p = 0.5)
L1 <- rnorm(n, mean = A0 + 1, sd = 1)
A1 <- rbinom(n, ... |
library(xgboost)
library(data.table)
library(readr)
library(Matrix)
library(Rtsne)
library(ggplot2)
setwd("/media/branden/SSHD1/kaggle/bnp")
ts1Trans <-fread("./data_trans/ts2Trans_v29.csv")
xgbImpVars <- data.table(read_csv("./stack_models/xgb42Imp.csv"))
load("./data_trans/cvFoldsList.rda")
# varnames <- c(names(ts... | /bnp/stack_models/layer1_xgb48.R | no_license | brandenkmurray/kaggle | R | false | false | 2,367 | r | library(xgboost)
library(data.table)
library(readr)
library(Matrix)
library(Rtsne)
library(ggplot2)
setwd("/media/branden/SSHD1/kaggle/bnp")
ts1Trans <-fread("./data_trans/ts2Trans_v29.csv")
xgbImpVars <- data.table(read_csv("./stack_models/xgb42Imp.csv"))
load("./data_trans/cvFoldsList.rda")
# varnames <- c(names(ts... |
/Programs/Sources/Libraries/masp/Basics/Ft/draw.R | no_license | in-die-nibelungen/SelfLearning | R | false | false | 415 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tar_envvars.R
\name{tar_envvars}
\alias{tar_envvars}
\title{Show environment variables to customize \code{targets}}
\usage{
tar_envvars(unset = "")
}
\arguments{
\item{unset}{Character of length 1, value to return
for any environment variable... | /man/tar_envvars.Rd | permissive | billdenney/targets | R | false | true | 3,221 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tar_envvars.R
\name{tar_envvars}
\alias{tar_envvars}
\title{Show environment variables to customize \code{targets}}
\usage{
tar_envvars(unset = "")
}
\arguments{
\item{unset}{Character of length 1, value to return
for any environment variable... |
# NANCY: The remaining changes that need to be made: 3 graphs and the download section.
#An array_list called reactions_soc, similar to reactions_pt, needs to be created in elasticsearch.
#all of the functions that interact with the api are within utilities.R
#I have already written the code that uses it.
#finally, y... | /apps/CVShiny_elastic/global.R | no_license | hres/cvapps | R | false | false | 3,754 | r | # NANCY: The remaining changes that need to be made: 3 graphs and the download section.
#An array_list called reactions_soc, similar to reactions_pt, needs to be created in elasticsearch.
#all of the functions that interact with the api are within utilities.R
#I have already written the code that uses it.
#finally, y... |
source("RandomForestRegressionUtils.R")
library(ggplot2)
library(caret)
randomForestRegressionDataset = importRandomForestRegressionDataset("RandomForestRegression_Position_Salaries.csv")
#reading RandomForestRegression model
randomForestRegressionModel = readRDS("randomForestRegressionModel.RDS")
#visualizing R... | /RandomForestRegressionVisualization.R | no_license | Santosh-Sah/Random_Forest_Regression_R | R | false | false | 1,217 | r | source("RandomForestRegressionUtils.R")
library(ggplot2)
library(caret)
randomForestRegressionDataset = importRandomForestRegressionDataset("RandomForestRegression_Position_Salaries.csv")
#reading RandomForestRegression model
randomForestRegressionModel = readRDS("randomForestRegressionModel.RDS")
#visualizing R... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_types.R
\name{count_distinct_value}
\alias{count_distinct_value}
\title{get a variables' distinct values matrix}
\usage{
count_distinct_value(df, var.list = names(df))
}
\arguments{
\item{df}{the dataframe}
\item{var.list}{the variables... | /my packages/s.PP/man/count_distinct_value.Rd | no_license | fangju2013/RProj | R | false | true | 581 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_types.R
\name{count_distinct_value}
\alias{count_distinct_value}
\title{get a variables' distinct values matrix}
\usage{
count_distinct_value(df, var.list = names(df))
}
\arguments{
\item{df}{the dataframe}
\item{var.list}{the variables... |
# add_p.tbl_summary ------------------------------------------------------------
add_p_test_t.test <- function(data, variable, by, test.args, conf.level = 0.95, ...) {
.superfluous_args(variable, ...)
expr(stats::t.test(!!rlang::sym(variable) ~ as.factor(!!rlang::sym(by)),
data = !!data, conf.level = !!conf.lev... | /R/utils-add_p_tests.R | permissive | IbrahimHE/gtsummary | R | false | false | 16,741 | r | # add_p.tbl_summary ------------------------------------------------------------
add_p_test_t.test <- function(data, variable, by, test.args, conf.level = 0.95, ...) {
.superfluous_args(variable, ...)
expr(stats::t.test(!!rlang::sym(variable) ~ as.factor(!!rlang::sym(by)),
data = !!data, conf.level = !!conf.lev... |
### Global Variables to incorporate from YML
# VERBOSE_REPORTING
# SILENT_REPORTING
# DATA_EXTRACT_RDAT_LOCATION
# XML_DSD_LOCATION
# FLAG.Flextable = this should be set by the script
# FLAG.Flextable = compareVersion( as.character(pandoc_version()),"2.0" ) >= 0
# parameter.vocabulary
# TRIAL.dose_scale = c( 2, 3, 5, 7... | /R/variables_to_incorporate.R | no_license | LisaHopcroft/CTutils | R | false | false | 617 | r | ### Global Variables to incorporate from YML
# VERBOSE_REPORTING
# SILENT_REPORTING
# DATA_EXTRACT_RDAT_LOCATION
# XML_DSD_LOCATION
# FLAG.Flextable = this should be set by the script
# FLAG.Flextable = compareVersion( as.character(pandoc_version()),"2.0" ) >= 0
# parameter.vocabulary
# TRIAL.dose_scale = c( 2, 3, 5, 7... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploy.R
\name{get_image}
\alias{get_image}
\title{Get the Image}
\usage{
get_image(content, path)
}
\arguments{
\item{content}{A content object}
\item{path}{The path to the image on disk}
}
\description{
Get the Image
}
\seealso{
Other cont... | /man/get_image.Rd | no_license | conceptslearningmachine-FEIN-85-1759293/connectapi | R | false | true | 468 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploy.R
\name{get_image}
\alias{get_image}
\title{Get the Image}
\usage{
get_image(content, path)
}
\arguments{
\item{content}{A content object}
\item{path}{The path to the image on disk}
}
\description{
Get the Image
}
\seealso{
Other cont... |
corr <- function(directory, threshold = 0) {
setwd(file.path(getwd(), directory)) ## setting the directory
correlationVector = NULL ## initializing the correlation matrix
#Looping thru ALL the directory's files
for (i in 1:332)
{
## Due ... | /corr.R | no_license | riccardocaneve/datasciencecoursera | R | false | false | 2,270 | r | corr <- function(directory, threshold = 0) {
setwd(file.path(getwd(), directory)) ## setting the directory
correlationVector = NULL ## initializing the correlation matrix
#Looping thru ALL the directory's files
for (i in 1:332)
{
## Due ... |
#' @name pbapply
#' @title \code{apply} family functions with progress bars
#' @aliases pbsapply
#' @aliases pblapply
#' @aliases pbreplicate
#'
#' @param X either an array for \code{pbapply} or a vector (or list) for
#' \code{pblapply}, \code{pbsapply}, and \code{pbreplicate}
#' @param MARGIN a vector giving the subsc... | /R/pbapply.R | no_license | sboysel/pbapply | R | false | false | 6,026 | r | #' @name pbapply
#' @title \code{apply} family functions with progress bars
#' @aliases pbsapply
#' @aliases pblapply
#' @aliases pbreplicate
#'
#' @param X either an array for \code{pbapply} or a vector (or list) for
#' \code{pblapply}, \code{pbsapply}, and \code{pbreplicate}
#' @param MARGIN a vector giving the subsc... |
#### iBeta ---------------------------------------------------------------------
Beta<-function(Y, X='^GSPC', Since=NULL, Until=NULL, Interval=2, Frequency='Weekly', Theme='BB'){
# ----------------------------------------------------------------------------
#### iBeta 5.3 (An Online Regression Beta Calculato... | /iBeta.R | no_license | FinanceStudyGroup/iBeta.R | R | false | false | 21,461 | r | #### iBeta ---------------------------------------------------------------------
Beta<-function(Y, X='^GSPC', Since=NULL, Until=NULL, Interval=2, Frequency='Weekly', Theme='BB'){
# ----------------------------------------------------------------------------
#### iBeta 5.3 (An Online Regression Beta Calculato... |
\name{genesbyehistolyticaexpressiontiming}
\alias{GenesByEHistolyticaExpressionTiming}
\title{Find <i>E. histolytica</i> genes based on microarray expression fold change calculations between different strains in specified stage and media.}
\description{<br><br>(1) Gene expression in <i>Entamoeba histolytica</i> cysts a... | /man/genesbyehistolyticaexpressiontiming.Rd | no_license | duncantl/REuPathDB | R | false | false | 5,406 | rd | \name{genesbyehistolyticaexpressiontiming}
\alias{GenesByEHistolyticaExpressionTiming}
\title{Find <i>E. histolytica</i> genes based on microarray expression fold change calculations between different strains in specified stage and media.}
\description{<br><br>(1) Gene expression in <i>Entamoeba histolytica</i> cysts a... |
# Across the United States, how have emissions from coal combustion-related sources changed from 1999–2008?
library(ggplot2)
# pre-processing
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Subset coal combustion related NEI data
coal_comb <- grepl("coal", SCC$EI.Sector, igno... | /plot4.R | no_license | kaipinliao/ExData_Plotting2 | R | false | false | 831 | r | # Across the United States, how have emissions from coal combustion-related sources changed from 1999–2008?
library(ggplot2)
# pre-processing
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Subset coal combustion related NEI data
coal_comb <- grepl("coal", SCC$EI.Sector, igno... |
source('rankhospital.R')
RankAll <- function(outcome, num = "best") {
# Returns a 2-column data frame containing the hospital in each state that
# has the ranking specified in num.
#
# Args:
# outcome: outcome name. Can be one of “heart attack”, “heart failure”,
# or “pneumonia”.
# num: ... | /programming_assignment_3/rankall.R | no_license | marcusmonteiro/r_programming_for_data_science | R | false | false | 944 | r | source('rankhospital.R')
RankAll <- function(outcome, num = "best") {
# Returns a 2-column data frame containing the hospital in each state that
# has the ranking specified in num.
#
# Args:
# outcome: outcome name. Can be one of “heart attack”, “heart failure”,
# or “pneumonia”.
# num: ... |
pdf(file='P4_46_day7.pdf',width=4.5,height=4.5);
gstable=read.table('P4_46_day7.gene_summary.txt',header=T)
#
#
# parameters
# Do not modify the variables beginning with "__"
# gstablename='__GENE_SUMMARY_FILE__'
startindex=3
# outputfile='__OUTPUT_FILE__'
targetgenelist=c("SOX9","AAVS1","PROM1","ROSA26","CCR5","CTRL... | /P4_46_day7/P4_46_day7.R | no_license | davidchen0420/Miniscreen | R | false | false | 36,455 | r | pdf(file='P4_46_day7.pdf',width=4.5,height=4.5);
gstable=read.table('P4_46_day7.gene_summary.txt',header=T)
#
#
# parameters
# Do not modify the variables beginning with "__"
# gstablename='__GENE_SUMMARY_FILE__'
startindex=3
# outputfile='__OUTPUT_FILE__'
targetgenelist=c("SOX9","AAVS1","PROM1","ROSA26","CCR5","CTRL... |
\name{ultraFastAnc}
\alias{ultraFastAnc}
\title{
Ultra-fast maximum likelihood ancestral state reconstruction
}
\description{
This function performs ancestral state reconstruction using a fast algorithm based on phylogenetically independent contrasts (Felsenstein 1985). Contrary to \link[phytools]{fastAnc}, which reroo... | /man/ultraFastAnc.Rd | no_license | EddiePerochon/phylocurve | R | false | false | 2,146 | rd | \name{ultraFastAnc}
\alias{ultraFastAnc}
\title{
Ultra-fast maximum likelihood ancestral state reconstruction
}
\description{
This function performs ancestral state reconstruction using a fast algorithm based on phylogenetically independent contrasts (Felsenstein 1985). Contrary to \link[phytools]{fastAnc}, which reroo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meeting.R
\name{extract_property}
\alias{extract_property}
\title{Extract properties from an object}
\usage{
extract_property(obj, arr, propName)
}
\arguments{
\item{obj}{Object to traverse}
\item{arr}{Array of property values to look at e.g... | /man/extract_property.Rd | no_license | jkadcav/meeting | R | false | true | 650 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meeting.R
\name{extract_property}
\alias{extract_property}
\title{Extract properties from an object}
\usage{
extract_property(obj, arr, propName)
}
\arguments{
\item{obj}{Object to traverse}
\item{arr}{Array of property values to look at e.g... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkglog.R
\name{has_pkglog}
\alias{has_pkglog}
\title{Does the folder contain a package log file?}
\usage{
has_pkglog(path = ".")
}
\arguments{
\item{path}{folder to check for a package log}
}
\description{
Does the folder contain a package lo... | /man/has_pkglog.Rd | permissive | mikmart/pkglog | R | false | true | 330 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkglog.R
\name{has_pkglog}
\alias{has_pkglog}
\title{Does the folder contain a package log file?}
\usage{
has_pkglog(path = ".")
}
\arguments{
\item{path}{folder to check for a package log}
}
\description{
Does the folder contain a package lo... |
#' @title Update a WordPress Post
#'
#' @description Updates an existing WordPress post with new values.
#'
#' @param root_url The domain on which you wish to create the post.
#' @param user The username to be passed into the API call to create the post.
#' @param pass The password to be used in the API call to create ... | /R/update-wp-post.R | no_license | cran/wordpressr | R | false | false | 2,941 | r | #' @title Update a WordPress Post
#'
#' @description Updates an existing WordPress post with new values.
#'
#' @param root_url The domain on which you wish to create the post.
#' @param user The username to be passed into the API call to create the post.
#' @param pass The password to be used in the API call to create ... |
#' @name rdpTrain
#' @title Training the RDP classifier
#'
#' @description Training the RDP presence/absence K-mer method on sequence data.
#'
#' @param sequence Character vector of 16S sequences.
#' @param taxon Character vector of taxon labels for each sequence.
#' @param K Word length (integer).
#' @param ... | /R/rdpClassifier.R | no_license | cran/microclass | R | false | false | 6,960 | r | #' @name rdpTrain
#' @title Training the RDP classifier
#'
#' @description Training the RDP presence/absence K-mer method on sequence data.
#'
#' @param sequence Character vector of 16S sequences.
#' @param taxon Character vector of taxon labels for each sequence.
#' @param K Word length (integer).
#' @param ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SimulateMultipleMethods.R
\name{SimulateMultipleMethods}
\alias{SimulateMultipleMethods}
\title{Compare various strategies for Multi-Armed Bandit in stationary
and non-stationary scenarios}
\usage{
SimulateMultipleMethods(method = "Thompson-S... | /man/SimulateMultipleMethods.Rd | permissive | datasciences/MAB | R | false | true | 8,271 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SimulateMultipleMethods.R
\name{SimulateMultipleMethods}
\alias{SimulateMultipleMethods}
\title{Compare various strategies for Multi-Armed Bandit in stationary
and non-stationary scenarios}
\usage{
SimulateMultipleMethods(method = "Thompson-S... |
#Load the libraries needed in this code
library(dplyr)
library(DT)
library(shiny)
library(leaflet)
#UI-------------------------------------------------------------------------------------------------------------------------------------
shinyUI(navbarPage("Accident tracker", id="nav", collapsible=T,
tabPanel("Map",
... | /ui.R | permissive | Andreas001/UPH_Land-Transport-Accident-Tracker | R | false | false | 5,213 | r | #Load the libraries needed in this code
library(dplyr)
library(DT)
library(shiny)
library(leaflet)
#UI-------------------------------------------------------------------------------------------------------------------------------------
shinyUI(navbarPage("Accident tracker", id="nav", collapsible=T,
tabPanel("Map",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/derivatives.r
\name{d_bernoulli_itemblock_proxy}
\alias{d_bernoulli_itemblock_proxy}
\title{Partial derivatives for binary items by item-blocks using observed score proxy.}
\usage{
d_bernoulli_itemblock_proxy(
p_item,
pred_data,
item_da... | /man/d_bernoulli_itemblock_proxy.Rd | permissive | wbelzak/regDIF | R | false | true | 1,071 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/derivatives.r
\name{d_bernoulli_itemblock_proxy}
\alias{d_bernoulli_itemblock_proxy}
\title{Partial derivatives for binary items by item-blocks using observed score proxy.}
\usage{
d_bernoulli_itemblock_proxy(
p_item,
pred_data,
item_da... |
library(RKEEL)
### Name: CHC_C
### Title: CHC_C KEEL Classification Algorithm
### Aliases: CHC_C R6_CHC_C
### Keywords: classification
### ** Examples
#data_train <- RKEEL::loadKeelDataset("iris_train")
#data_test <- RKEEL::loadKeelDataset("iris_test")
#Create algorithm
#algorithm <- RKEEL::CHC_C(data_train, data_... | /data/genthat_extracted_code/RKEEL/examples/CHC-C.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 403 | r | library(RKEEL)
### Name: CHC_C
### Title: CHC_C KEEL Classification Algorithm
### Aliases: CHC_C R6_CHC_C
### Keywords: classification
### ** Examples
#data_train <- RKEEL::loadKeelDataset("iris_train")
#data_test <- RKEEL::loadKeelDataset("iris_test")
#Create algorithm
#algorithm <- RKEEL::CHC_C(data_train, data_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/File.R
\name{HSDSFile}
\alias{HSDSFile}
\title{Construct an object of type HSDSFile}
\usage{
HSDSFile(src, domain)
}
\arguments{
\item{src}{an object of type HSDSSource, the server which exposes the file}
\item{domain}{the domain string; the... | /man/HSDSFile.Rd | no_license | vjcitn/rhdf5client | R | false | true | 774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/File.R
\name{HSDSFile}
\alias{HSDSFile}
\title{Construct an object of type HSDSFile}
\usage{
HSDSFile(src, domain)
}
\arguments{
\item{src}{an object of type HSDSSource, the server which exposes the file}
\item{domain}{the domain string; the... |
#' format_priors
#'
#' @param dataset_list
#' list of datasets to be analyzed of length S
#' @param config
#' list of vectors of indices 1:S of length R
#' @param p1
#' vector of probability of length S or 1
#' @param p12
#' vector of probability of length R or 1
#' @return
#' list with elements
#' p1 vector of probabi... | /R/format_priors.R | permissive | raonyguimaraes/POEMColoc | R | false | false | 906 | r | #' format_priors
#'
#' @param dataset_list
#' list of datasets to be analyzed of length S
#' @param config
#' list of vectors of indices 1:S of length R
#' @param p1
#' vector of probability of length S or 1
#' @param p12
#' vector of probability of length R or 1
#' @return
#' list with elements
#' p1 vector of probabi... |
df <- data.frame(fromJSON(getURL(URLencode(gsub("\n", " ", '129.152.144.84:5001/rest/native/?query=
"select COUNTY, STATE, HOUSINGUNITS, cume_dist()
OVER (PARTITION BY STATE order by HOUSINGUNITS) AS cume_dist
from COUNTIES2
order by 2,3 desc"
')),httpheader=c(DB='jdbc:oracle:thin:@129.152.144.84:1521:ORCL', USER='C#... | /01 SQL Crosstabs/Cume_Dist.R | no_license | mitalisathaye/DV_TableauProject2 | R | false | false | 474 | r | df <- data.frame(fromJSON(getURL(URLencode(gsub("\n", " ", '129.152.144.84:5001/rest/native/?query=
"select COUNTY, STATE, HOUSINGUNITS, cume_dist()
OVER (PARTITION BY STATE order by HOUSINGUNITS) AS cume_dist
from COUNTIES2
order by 2,3 desc"
')),httpheader=c(DB='jdbc:oracle:thin:@129.152.144.84:1521:ORCL', USER='C#... |
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615854126-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 659 | r | testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... |
#' Plugin update of Constantine's C, using ynew
#' @param C A const_C object, the result of a call to C_GP
#' @param xnew The new design point
#' @noRd
expectCup <- function(C, xnew){
if(is.null(nrow(xnew))) xnew <- matrix(xnew, nrow = 1)
nvar <- ncol(xnew)
Cup <- C$mat
kn1 <- cov_gen(xnew, C$model$X0, th... | /R/deprecated.R | no_license | cran/activegp | R | false | false | 1,177 | r | #' Plugin update of Constantine's C, using ynew
#' @param C A const_C object, the result of a call to C_GP
#' @param xnew The new design point
#' @noRd
expectCup <- function(C, xnew){
if(is.null(nrow(xnew))) xnew <- matrix(xnew, nrow = 1)
nvar <- ncol(xnew)
Cup <- C$mat
kn1 <- cov_gen(xnew, C$model$X0, th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Lab8.R
\name{clt_pois}
\alias{clt_pois}
\title{Central Limit Theorem on Poisson Distribution
Produce plots pertaining the distribution of the sample mean from a population distributed as
Poisson distribution}
\usage{
clt_pois(n, iter, lambda ... | /man/clt_pois.Rd | no_license | fraclad/math4753 | R | false | true | 762 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Lab8.R
\name{clt_pois}
\alias{clt_pois}
\title{Central Limit Theorem on Poisson Distribution
Produce plots pertaining the distribution of the sample mean from a population distributed as
Poisson distribution}
\usage{
clt_pois(n, iter, lambda ... |
library(fTrading)
library(zoo)
library(forecast)
library(tseries)
library(ggplot2)
x <- 1:30
t <- 2*x
s <- 12*sin(2*x/pi)
e <- 4*rnorm(30)
y <- t + s + e
datos <- data.frame(fenomeno = y,
tendencia = t,
estacionalidad = s,
error = e,
tie... | /M7_series_tiempo/suavizamiento_exponencial.R | no_license | macc-urosario/dcd2019 | R | false | false | 1,956 | r | library(fTrading)
library(zoo)
library(forecast)
library(tseries)
library(ggplot2)
x <- 1:30
t <- 2*x
s <- 12*sin(2*x/pi)
e <- 4*rnorm(30)
y <- t + s + e
datos <- data.frame(fenomeno = y,
tendencia = t,
estacionalidad = s,
error = e,
tie... |
require(tidyverse)
require(lubridate)
require(leaflet)
require(lubridate)
require(sp)
require(shinydashboard)
require(DT)
require(shinycssloaders)
require(sf)
require(plotly)
header <- dashboardHeader(
title = "NYS COVID-19 TRACKER"
)
body <- dashboardBody(
includeCSS("https://raw.githubusercontent.com/will... | /appV2.R | no_license | willoutcault/covid | R | false | false | 9,081 | r | require(tidyverse)
require(lubridate)
require(leaflet)
require(lubridate)
require(sp)
require(shinydashboard)
require(DT)
require(shinycssloaders)
require(sf)
require(plotly)
header <- dashboardHeader(
title = "NYS COVID-19 TRACKER"
)
body <- dashboardBody(
includeCSS("https://raw.githubusercontent.com/will... |
# conver all pdf to png ------------------------------------------
pdf2png <- function(fname, dpi = 600) {
system(sprintf("2png -ag=4 -at=4 -dpi=%i %s", dpi, fname))
}
pdf2png("figures/reliable_model_plots.pdf")
pdf2png("figures/indicator_plots.pdf")
pdfs <- paste0("figures/", dir("figures/", pattern = "*.pdf"))... | /scripts/OxygenDebt/zz_convert_plots_to_png.R | no_license | susanii/HEAT | R | false | false | 807 | r |
# conver all pdf to png ------------------------------------------
pdf2png <- function(fname, dpi = 600) {
system(sprintf("2png -ag=4 -at=4 -dpi=%i %s", dpi, fname))
}
pdf2png("figures/reliable_model_plots.pdf")
pdf2png("figures/indicator_plots.pdf")
pdfs <- paste0("figures/", dir("figures/", pattern = "*.pdf"))... |
library(testthat)
library(MLAKdane)
#test_check("MLAKdane")
| /tests/testthat.R | no_license | zozlak/MLAKdane | R | false | false | 61 | r | library(testthat)
library(MLAKdane)
#test_check("MLAKdane")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FDRSU.R
\name{GTBY.p.adjust}
\alias{GTBY.p.adjust}
\title{The adjusted p-values for Gilbert-Tarone-BY step-up FDR controlling procedure.}
\usage{
GTBY.p.adjust(p, p.set, alpha, make.decision)
}
\arguments{
\item{p}{numeric vector of p-values ... | /man/GTBY.p.adjust.Rd | no_license | allenzhuaz/MHTdiscrete | R | false | true | 1,850 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FDRSU.R
\name{GTBY.p.adjust}
\alias{GTBY.p.adjust}
\title{The adjusted p-values for Gilbert-Tarone-BY step-up FDR controlling procedure.}
\usage{
GTBY.p.adjust(p, p.set, alpha, make.decision)
}
\arguments{
\item{p}{numeric vector of p-values ... |
## Get Data
path <- getwd()
file <- "household_power_consumption.txt"
filepath <- paste(path, file, sep="/")
data <- subset(data.table(read.table(filepath,header=TRUE,sep=";",na.strings="?")),
xor(Date=="1/2/2007",Date== "2/2/2007"))
## create Date & Time field
DateTime <- paste(data$Date, data$Time... | /plot3.R | no_license | SwissRef/ExData_Plotting1 | R | false | false | 1,075 | r |
## Get Data
path <- getwd()
file <- "household_power_consumption.txt"
filepath <- paste(path, file, sep="/")
data <- subset(data.table(read.table(filepath,header=TRUE,sep=";",na.strings="?")),
xor(Date=="1/2/2007",Date== "2/2/2007"))
## create Date & Time field
DateTime <- paste(data$Date, data$Time... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.configservice_operations.R
\name{delete_retention_configuration}
\alias{delete_retention_configuration}
\title{Deletes the retention configuration}
\usage{
delete_retention_configuration(RetentionConfigurationName)
}
\arguments{
\item{Re... | /service/paws.configservice/man/delete_retention_configuration.Rd | permissive | CR-Mercado/paws | R | false | true | 588 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.configservice_operations.R
\name{delete_retention_configuration}
\alias{delete_retention_configuration}
\title{Deletes the retention configuration}
\usage{
delete_retention_configuration(RetentionConfigurationName)
}
\arguments{
\item{Re... |
\name{eNchange-package}
\alias{eNchange-package}
\alias{eNchange}
\docType{package}
\title{
Ensemble Methods for Multiple Change-Point Detection
}
\description{
Implements a segmentation algorithm for multiple change-point detection in univariate time series using the Ensemble Binary Segmentation of Korkas (20... | /man/eNchange-package.Rd | no_license | cran/eNchange | R | false | false | 2,026 | rd | \name{eNchange-package}
\alias{eNchange-package}
\alias{eNchange}
\docType{package}
\title{
Ensemble Methods for Multiple Change-Point Detection
}
\description{
Implements a segmentation algorithm for multiple change-point detection in univariate time series using the Ensemble Binary Segmentation of Korkas (20... |
library(ape)
testtree <- read.tree("3712_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3712_0_unrooted.txt") | /codeml_files/newick_trees_processed/3712_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("3712_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3712_0_unrooted.txt") |
/Postwork/Sesión 4/Postwork 4.R | no_license | CarolinaBer/BEDU_R | R | false | false | 8,654 | r | ||
## functions to write x- file
make_archive <- function(out_file, overwrite = F, encoding){
options(encoding = encoding)
if (file.exists(out_file)) {
if (overwrite) {
options(encoding = encoding)
pf <- file(out_file, open = "w")
} else {
rnum <- round(runif(1, 10000, 20000), ... | /functions_xfile.R | no_license | haachicanoy/workshop_urosario | R | false | false | 15,240 | r | ## functions to write x- file
make_archive <- function(out_file, overwrite = F, encoding){
options(encoding = encoding)
if (file.exists(out_file)) {
if (overwrite) {
options(encoding = encoding)
pf <- file(out_file, open = "w")
} else {
rnum <- round(runif(1, 10000, 20000), ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.