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(mosaic)
library(tidyverse)
library(data.table)
library(tree)
library(randomForest)
library(rpart)
library(gbm)
library(pdp)
# unfiltered
greenbuildingsuf = read.csv("./DataScienceCourseHomework/exercises-3/data/greenbuildings.csv", header=TRUE)
# get the data
greenbuildings = read.csv("./DataScienceCourse... | /exercises-3/scripts/exercises3_problem1.R | no_license | nfra/DataScienceCourseHomework | R | false | false | 5,527 | r | library(mosaic)
library(tidyverse)
library(data.table)
library(tree)
library(randomForest)
library(rpart)
library(gbm)
library(pdp)
# unfiltered
greenbuildingsuf = read.csv("./DataScienceCourseHomework/exercises-3/data/greenbuildings.csv", header=TRUE)
# get the data
greenbuildings = read.csv("./DataScienceCourse... |
# data
require(tseries)
require(forecast)
wales <- read.csv("WalesCases.csv")
df4 <- ts(wales$newCasesByPublishDate)
df4 <- rev(df4)
# Step 1: check if we need take transformation (qualtratics or exponential)
# plot the data
plot(df4, type = "l")
# plot the mean
Mt <- matrix(df4, 217, 2, byrow = T)
mt <- apply(Mt, 1, ... | /src/Wales.R | no_license | Eleanorkong/Predicting-Covid-19-UK-Cases | R | false | false | 2,926 | r | # data
require(tseries)
require(forecast)
wales <- read.csv("WalesCases.csv")
df4 <- ts(wales$newCasesByPublishDate)
df4 <- rev(df4)
# Step 1: check if we need take transformation (qualtratics or exponential)
# plot the data
plot(df4, type = "l")
# plot the mean
Mt <- matrix(df4, 217, 2, byrow = T)
mt <- apply(Mt, 1, ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot.plot.R
\name{plot1DNumeric}
\alias{plot1DNumeric}
\title{Plot an one-dimensional function.}
\usage{
plot1DNumeric(x, show.optimum = FALSE, n.samples = 500L, ...)
}
\arguments{
\item{x}{[\code{smoof_function}]\cr
Function.}
\item... | /man/plot1DNumeric.Rd | no_license | mhils/smoof | R | false | false | 755 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot.plot.R
\name{plot1DNumeric}
\alias{plot1DNumeric}
\title{Plot an one-dimensional function.}
\usage{
plot1DNumeric(x, show.optimum = FALSE, n.samples = 500L, ...)
}
\arguments{
\item{x}{[\code{smoof_function}]\cr
Function.}
\item... |
library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'wald'
scenario <- 24
param <- 1
anal_type <- "mice"
ss <- ss.bounds%>%
dplyr::filter(method == "wald", scenario.id == scenario)
do_val <- 0.2
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detect... | /sim_pgms/wald/do20/2xcontH0_sc24_do20_mice.R | no_license | yuliasidi/nibinom_apply | R | false | false | 3,328 | r | library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'wald'
scenario <- 24
param <- 1
anal_type <- "mice"
ss <- ss.bounds%>%
dplyr::filter(method == "wald", scenario.id == scenario)
do_val <- 0.2
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detect... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_reshaping.R
\name{matrix_graphe}
\alias{matrix_graphe}
\title{Constuire la matrice d'adjacence du graphe}
\usage{
matrix_graphe(m_crois, multi = TRUE)
}
\arguments{
\item{m_crois}{Matrice de croisement.}
\item{multi}{Booléen indiquant s'... | /fuzzedpackages/diffman/man/matrix_graphe.Rd | no_license | akhikolla/testpackages | R | false | true | 983 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_reshaping.R
\name{matrix_graphe}
\alias{matrix_graphe}
\title{Constuire la matrice d'adjacence du graphe}
\usage{
matrix_graphe(m_crois, multi = TRUE)
}
\arguments{
\item{m_crois}{Matrice de croisement.}
\item{multi}{Booléen indiquant s'... |
# Parallel binary models ####
# Run source code
rm(list = ls())
source("R Code/00_Master Code.R")
# Run parallel
library(MCMCglmm); library(ggregplot); library(INLA); library(parallel); library(dplyr)
prior.bin2 <- list(R = list(V = diag(1), nu = 0.002, fix = 1))
# Modelling all mammal-mammal pairs ####
mf = 15... | /R Code/HP3 Code/1_Sharing Models/Defunct Sharing Models/Parallel Binomial Model 2 (No G).R | no_license | gfalbery/Helmneth | R | false | false | 742 | r | # Parallel binary models ####
# Run source code
rm(list = ls())
source("R Code/00_Master Code.R")
# Run parallel
library(MCMCglmm); library(ggregplot); library(INLA); library(parallel); library(dplyr)
prior.bin2 <- list(R = list(V = diag(1), nu = 0.002, fix = 1))
# Modelling all mammal-mammal pairs ####
mf = 15... |
suppressPackageStartupMessages(library(tidyverse))
library(glue)
library(ggrepel)
library(here)
korean_archaeological_sites <- readxl::read_excel(here("analysis/data/raw_data/korean-archaeologica-sites.xlsx"))
# data from PhD data sheet, not KAS sheet.
mydata <- read.csv(here("analysis/data/raw_data/General_info.csv"... | /analysis/paper/002-artifact-volumetric-density.R | permissive | parkgayoung/koreapaleolithicmobilityoccupation | R | false | false | 3,271 | r | suppressPackageStartupMessages(library(tidyverse))
library(glue)
library(ggrepel)
library(here)
korean_archaeological_sites <- readxl::read_excel(here("analysis/data/raw_data/korean-archaeologica-sites.xlsx"))
# data from PhD data sheet, not KAS sheet.
mydata <- read.csv(here("analysis/data/raw_data/General_info.csv"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Cicero.R
\name{featureToGR}
\alias{featureToGR}
\title{feature to GRanges}
\usage{
featureToGR(feature)
}
\description{
feature to GRanges
}
| /man/featureToGR.Rd | no_license | xuzhougeng/scatacr | R | false | true | 219 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Cicero.R
\name{featureToGR}
\alias{featureToGR}
\title{feature to GRanges}
\usage{
featureToGR(feature)
}
\description{
feature to GRanges
}
|
make_d_plot <- function(half_life, dose, blq, loq00, loq20, noerror) {
result <-
half_life %>%
full_join(dose) %>%
full_join(blq) %>%
full_join(
loq00 %>%
rename_at(.vars=-1, .funs=function(x) paste0(x, "_loq00"))
) %>%
full_join(
loq20 %>%
rename_at(.vars=-1, .funs... | /_drake_functions_figures.R | no_license | billdenney/tobit-half-life | R | false | false | 5,333 | r | make_d_plot <- function(half_life, dose, blq, loq00, loq20, noerror) {
result <-
half_life %>%
full_join(dose) %>%
full_join(blq) %>%
full_join(
loq00 %>%
rename_at(.vars=-1, .funs=function(x) paste0(x, "_loq00"))
) %>%
full_join(
loq20 %>%
rename_at(.vars=-1, .funs... |
### Pass test ------------------------------------------------------------------
# type
expect_silent(check_class("chr", type = "character"))
expect_silent(check_class(2, type = "numeric"))
expect_silent(check_class(-1.4, type = "numeric"))
expect_silent(check_class(2L, type = "integer"))
expect_silent(check_class(TRU... | /inst/tinytest/test_check_class.R | no_license | thfuchs/testr | R | false | false | 3,697 | r | ### Pass test ------------------------------------------------------------------
# type
expect_silent(check_class("chr", type = "character"))
expect_silent(check_class(2, type = "numeric"))
expect_silent(check_class(-1.4, type = "numeric"))
expect_silent(check_class(2L, type = "integer"))
expect_silent(check_class(TRU... |
setwd('/home/kushwanth/machinelearning/r_practice/DataScience_Specialization/R programming/assignment1')
electric_data = read.table("household_power_consumption.txt",sep=";",header=TRUE)
electric_data$Date_Time<-strptime(paste(electric_data$Date,electric_data$Time),"%d/%m/%Y %H:%M:%S")
electric_data[c(100,20000,50000... | /plot4.R | no_license | tkngoutham/ExData_Plotting1 | R | false | false | 1,999 | r | setwd('/home/kushwanth/machinelearning/r_practice/DataScience_Specialization/R programming/assignment1')
electric_data = read.table("household_power_consumption.txt",sep=";",header=TRUE)
electric_data$Date_Time<-strptime(paste(electric_data$Date,electric_data$Time),"%d/%m/%Y %H:%M:%S")
electric_data[c(100,20000,50000... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cnd-restarts.R
\name{rst_abort}
\alias{rst_abort}
\title{Jump to the abort restart}
\usage{
rst_abort()
}
\description{
The abort restart is the only restart that is established at top
level. It is used by R as a top-level target, most notabl... | /man/rst_abort.Rd | no_license | yutannihilation/rlang | R | false | true | 1,461 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cnd-restarts.R
\name{rst_abort}
\alias{rst_abort}
\title{Jump to the abort restart}
\usage{
rst_abort()
}
\description{
The abort restart is the only restart that is established at top
level. It is used by R as a top-level target, most notabl... |
random <- function(x) {
n <- runif(1, 0.0, 1.0)
return (n[1])
}
n <- rnorm(1, mean=5.0, sd=2.0)
data <- rnorm(10, mean=n[1], sd=2.0)
cat("data D, taken from Normal distribution (mean= ", n[1], ", sd=2.0)\n\n")
data
summary(data)
cat("\n")
# log p(D|m)
likelihood <- function(m) {
return (sum(log(dnorm(data, mea... | /DataScience/KuboTakuya/chapter-08/metro.R | permissive | YuichiroSato/Blog | R | false | false | 912 | r | random <- function(x) {
n <- runif(1, 0.0, 1.0)
return (n[1])
}
n <- rnorm(1, mean=5.0, sd=2.0)
data <- rnorm(10, mean=n[1], sd=2.0)
cat("data D, taken from Normal distribution (mean= ", n[1], ", sd=2.0)\n\n")
data
summary(data)
cat("\n")
# log p(D|m)
likelihood <- function(m) {
return (sum(log(dnorm(data, mea... |
# Plot expression of ANXA1 in our RNA-seq and proteomics data.
setwd("~/git/spinal-cord-injury-elife-2018")
options(stringsAsFactors = F)
library(tidyverse)
library(magrittr)
library(org.Hs.eg.db)
source("R/theme.R")
# read RNA-seq
rnaseq = read.delim("data/expression/rnaseq/sleuth/sleuth-norm-filt.txt")
targets = rea... | /R/figures/plot-annexin.R | permissive | skinnider/spinal-cord-injury-elife-2018 | R | false | false | 2,990 | r | # Plot expression of ANXA1 in our RNA-seq and proteomics data.
setwd("~/git/spinal-cord-injury-elife-2018")
options(stringsAsFactors = F)
library(tidyverse)
library(magrittr)
library(org.Hs.eg.db)
source("R/theme.R")
# read RNA-seq
rnaseq = read.delim("data/expression/rnaseq/sleuth/sleuth-norm-filt.txt")
targets = rea... |
#----Matrix----
# Let's construct two 5x2 matrix with a sequence of number from 1 to 10,
# one with byrow = TRUE and one with byrow = FALSE to see the difference.
#Construct a matrix with 5 rows that contain the numbers 1 up to 10 and byrow=TRUE
matrix_a <-matrix(1:10, byrow = TRUE, nrow = 5)
matrix_a
# Print dimen... | /Matrix.R | no_license | divyaimale29/R_Programming | R | false | false | 2,371 | r | #----Matrix----
# Let's construct two 5x2 matrix with a sequence of number from 1 to 10,
# one with byrow = TRUE and one with byrow = FALSE to see the difference.
#Construct a matrix with 5 rows that contain the numbers 1 up to 10 and byrow=TRUE
matrix_a <-matrix(1:10, byrow = TRUE, nrow = 5)
matrix_a
# Print dimen... |
run_analysis <- function() {
datatrain<-read.table("UCI HAR Dataset/train/X_train.txt",stringsAsFactors=F) #Load raw data
datatest<-read.table("UCI HAR Dataset/test/X_test.txt",stringsAsFactors=F)
dataset<-rbind(datatrain,datatest)
names<-read.table("UCI HAR Dataset/features.txt",stringsAsFactors=F) #Load data names
... | /run_analysis.R | no_license | N17051983/gettingandcleaningdata | R | false | false | 2,043 | r | run_analysis <- function() {
datatrain<-read.table("UCI HAR Dataset/train/X_train.txt",stringsAsFactors=F) #Load raw data
datatest<-read.table("UCI HAR Dataset/test/X_test.txt",stringsAsFactors=F)
dataset<-rbind(datatrain,datatest)
names<-read.table("UCI HAR Dataset/features.txt",stringsAsFactors=F) #Load data names
... |
library("ape")
library("kmer")
library("Matrix")
library("FindMyFriends")
# Format input and output
input_folder = "/Users/matthewthompson/Documents/UAMS_SURF/K-mer_testing/FAA_files/phylotypeA/"
folder_name = "FAA_files/phylotypeA/"
output_folder = "/Users/matthewthompson/Documents/UAMS_SURF/K-mer_testing/CSV_files/p... | /kmerCounter.R | no_license | mdttrump97/Kmer_pangenomes | R | false | false | 2,323 | r | library("ape")
library("kmer")
library("Matrix")
library("FindMyFriends")
# Format input and output
input_folder = "/Users/matthewthompson/Documents/UAMS_SURF/K-mer_testing/FAA_files/phylotypeA/"
folder_name = "FAA_files/phylotypeA/"
output_folder = "/Users/matthewthompson/Documents/UAMS_SURF/K-mer_testing/CSV_files/p... |
# makeCacheMatrix
# Creates a special "matrix" object that can cache its inverse.
# The object does not calculate the inverse, just saves it inside.
# Saves the matrix to variable x and its inverse to variable s in scope.
# Returned object (actually it's a list) contains methods:
# set: sets matrix and resets cached in... | /cachematrix.R | no_license | meghnasharma1410/ProgrammingAssignment2 | R | false | false | 1,377 | r | # makeCacheMatrix
# Creates a special "matrix" object that can cache its inverse.
# The object does not calculate the inverse, just saves it inside.
# Saves the matrix to variable x and its inverse to variable s in scope.
# Returned object (actually it's a list) contains methods:
# set: sets matrix and resets cached in... |
regresseur_mais <- function(dataset) {
# Chargement de l environnement
load("envMais.Rdata")
library(kernlab)
library(MASS)
library(e1071)
predictions <- predict(svmfit, newdata = dataset)
return(predictions)
} | /TD9/sy19_tp7/scripts/regresseur_mais.R | no_license | sidiatig/SY19 | R | false | false | 227 | r | regresseur_mais <- function(dataset) {
# Chargement de l environnement
load("envMais.Rdata")
library(kernlab)
library(MASS)
library(e1071)
predictions <- predict(svmfit, newdata = dataset)
return(predictions)
} |
#'Make an interactive bar plot with error bar
#'
#'@param data A data.frame
#'@param mapping Set of aesthetic mappings created by aes or aes_.
#'@param interactive A logical value. If TRUE, an interactive plot will be returned
#'@param digits An integer indicating the number of decimal places
#'@param mode if 2, two-si... | /R/ggErrorBar.R | no_license | cardiomoon/ggiraphExtra | R | false | false | 4,392 | r | #'Make an interactive bar plot with error bar
#'
#'@param data A data.frame
#'@param mapping Set of aesthetic mappings created by aes or aes_.
#'@param interactive A logical value. If TRUE, an interactive plot will be returned
#'@param digits An integer indicating the number of decimal places
#'@param mode if 2, two-si... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
}
makeCacheMatrix <- function(x = matrix()) {
## Create matrix
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
# Settin... | /cachematrix.R | no_license | dcarmody421/ProgrammingAssignment2 | R | false | false | 975 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
}
makeCacheMatrix <- function(x = matrix()) {
## Create matrix
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
# Settin... |
#' Median value of a field among points within polygons
#'
#' Calculates the \strong{median} value of a field for a set of
#' \code{\link{data-Point}}'s within a set of \code{\link{data-Polygon}}'s
#'
#' @export
#' @template math
#' @template lint
#' @family aggregations
#' @return A FeatureCollection of \code{\link{da... | /R/median.R | permissive | jbousquin/lawn | R | false | false | 764 | r | #' Median value of a field among points within polygons
#'
#' Calculates the \strong{median} value of a field for a set of
#' \code{\link{data-Point}}'s within a set of \code{\link{data-Polygon}}'s
#'
#' @export
#' @template math
#' @template lint
#' @family aggregations
#' @return A FeatureCollection of \code{\link{da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tree_properties.R
\name{DescendantEdges}
\alias{DescendantEdges}
\alias{AllDescendantEdges}
\title{Descendant Edges}
\usage{
DescendantEdges(edge, parent, child, nEdge = length(parent))
AllDescendantEdges(parent, child, nEdge = length(parent... | /man/DescendantEdges.Rd | no_license | nanoquanta/TreeTools | R | false | true | 1,679 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tree_properties.R
\name{DescendantEdges}
\alias{DescendantEdges}
\alias{AllDescendantEdges}
\title{Descendant Edges}
\usage{
DescendantEdges(edge, parent, child, nEdge = length(parent))
AllDescendantEdges(parent, child, nEdge = length(parent... |
library(tidyverse)
library(neonUtilities)
library(data.table)
library(phenocamapi)
library(lubridate)
library(jpeg)
library(phenocamr)
library(XML)
library(RCurl)
library(rlist)
sites <- c("HARV", "OSBS", "CPER")
### flux data ###
## from tutorial https://www.neonscience.org/eddy-data-intro
zipsByProduct(dpID="DP4... | /data/pullData.R | no_license | katharynduffy/NEONSummitPhenology | R | false | false | 2,539 | r | library(tidyverse)
library(neonUtilities)
library(data.table)
library(phenocamapi)
library(lubridate)
library(jpeg)
library(phenocamr)
library(XML)
library(RCurl)
library(rlist)
sites <- c("HARV", "OSBS", "CPER")
### flux data ###
## from tutorial https://www.neonscience.org/eddy-data-intro
zipsByProduct(dpID="DP4... |
#' @export
#'
#' @title F.est.efficiency
#'
#' @description Estimate trap efficiency for every sample period, per trap.
#'
#' @param release.df A data frame produced by \code{F.get.release.data}.
#' Contains information on releases and recaptures. This data frame has one
#' line per release trial per trap... | /R/est_efficiency.r | no_license | tmcd82070/CAMP_RST | R | false | false | 7,516 | r | #' @export
#'
#' @title F.est.efficiency
#'
#' @description Estimate trap efficiency for every sample period, per trap.
#'
#' @param release.df A data frame produced by \code{F.get.release.data}.
#' Contains information on releases and recaptures. This data frame has one
#' line per release trial per trap... |
# test_outerlabels.R
# Time-stamp: <23 Apr 2019 14:49:43 c:/x/rpack/corrgram/tests/testthat/test_outerlabels.R>
require(corrgram)
# short syntax for outer labels
corrgram(state.x77, outer.labels=list(bottom=TRUE, right=TRUE))
# use default labels in outer margin
corrgram(state.x77, outer.labels=list(bottom=TRUE, rig... | /tests/testthat/test_outerlabels.R | no_license | Moly-malibu/corrgram | R | false | false | 2,848 | r | # test_outerlabels.R
# Time-stamp: <23 Apr 2019 14:49:43 c:/x/rpack/corrgram/tests/testthat/test_outerlabels.R>
require(corrgram)
# short syntax for outer labels
corrgram(state.x77, outer.labels=list(bottom=TRUE, right=TRUE))
# use default labels in outer margin
corrgram(state.x77, outer.labels=list(bottom=TRUE, rig... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{addDataset}
\alias{addDataset}
\title{Add a new dataset}
\usage{
addDataset(api, data)
}
\arguments{
\item{api}{a \code{\link{mangalapi}} object}
\item{data}{the dataset in list format}
}
\description{
Post a new dataset to the database
}
\details{
Requires au... | /man/addDataset.Rd | no_license | mangal-interactions/rmangal-v1 | R | false | false | 336 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{addDataset}
\alias{addDataset}
\title{Add a new dataset}
\usage{
addDataset(api, data)
}
\arguments{
\item{api}{a \code{\link{mangalapi}} object}
\item{data}{the dataset in list format}
}
\description{
Post a new dataset to the database
}
\details{
Requires au... |
# Libraries ----
stopifnot(
require(optparse),
require(reshape2),
require(gplots),
require(openxlsx),
require(xtable),
require(tenxutils),
require(gsfisher)
)
# Options ----
option_list <- list(
make_option(c("--genesetdir"), default="none",
help="directory containing the genesets t... | /R/summariseGenesets.R | permissive | MatthieuRouland/tenx | R | false | false | 13,009 | r | # Libraries ----
stopifnot(
require(optparse),
require(reshape2),
require(gplots),
require(openxlsx),
require(xtable),
require(tenxutils),
require(gsfisher)
)
# Options ----
option_list <- list(
make_option(c("--genesetdir"), default="none",
help="directory containing the genesets t... |
library(readr)
library(rstan)
setwd("C:\\Users\\Zicheng Cai\\Dropbox\\Courses\\18SP\\SDS383D\\Section3\\MATLAB\\3.9")
tea_discipline_oss <- read_csv("tea_discipline_oss.csv")
#View(tea_discipline_oss)
uncensored_data = subset(tea_discipline_oss,ACTIONS>0)
gender = uncensored_data$SEXX
gender[gender == 'FEMALE'] = 0
g... | /Section3/MATLAB/3.9/exercise39_1.R | no_license | caizicheng/SDS383D | R | false | false | 827 | r | library(readr)
library(rstan)
setwd("C:\\Users\\Zicheng Cai\\Dropbox\\Courses\\18SP\\SDS383D\\Section3\\MATLAB\\3.9")
tea_discipline_oss <- read_csv("tea_discipline_oss.csv")
#View(tea_discipline_oss)
uncensored_data = subset(tea_discipline_oss,ACTIONS>0)
gender = uncensored_data$SEXX
gender[gender == 'FEMALE'] = 0
g... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{us_change}
\alias{us_change}
\title{Percentage changes in economic variables in the USA.}
\format{Time series of class `tsibble`}
\source{
Federal Reserve Bank of St Louis.
}
\description{
\code{us_change} is a qua... | /man/us_change.Rd | no_license | nisargvp/fpp3-package | R | false | true | 611 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{us_change}
\alias{us_change}
\title{Percentage changes in economic variables in the USA.}
\format{Time series of class `tsibble`}
\source{
Federal Reserve Bank of St Louis.
}
\description{
\code{us_change} is a qua... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rDNA.R
\name{dna_scale1dbin}
\alias{dna_scale1dbin}
\title{One-dimensional binary scaling from a DNA connection}
\usage{
dna_scale1dbin(connection, variable1 = "organization",
variable2 = "concept", qualifier = "agreement", threshold = NULL... | /rDNA/man/dna_scale1dbin.Rd | no_license | marcmelliger/dna | R | false | true | 10,784 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rDNA.R
\name{dna_scale1dbin}
\alias{dna_scale1dbin}
\title{One-dimensional binary scaling from a DNA connection}
\usage{
dna_scale1dbin(connection, variable1 = "organization",
variable2 = "concept", qualifier = "agreement", threshold = NULL... |
#' waltplot
#'
#' A function to grid all the waltplots.
#'
#' @param vars A vector of column names to be plotted.
#' @param smoothed A parameter of whether to use histogram (0) or violinplots (1) in the waltplot grid.
#' @param data The data frame.
#' @export
#'
waltplot <- function (vars, smoothed, data) {
p = NU... | /R/waltplot.R | no_license | cognopod/walter | R | false | false | 801 | r | #' waltplot
#'
#' A function to grid all the waltplots.
#'
#' @param vars A vector of column names to be plotted.
#' @param smoothed A parameter of whether to use histogram (0) or violinplots (1) in the waltplot grid.
#' @param data The data frame.
#' @export
#'
waltplot <- function (vars, smoothed, data) {
p = NU... |
/Modélisation arima direct.R | no_license | isma-yod/Les-Cours-du-master-Statistiques-et-Econom-trie | R | false | false | 9,369 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitMPWR.R
\name{fitMPWR}
\alias{fitMPWR}
\title{fitMPWR implements an optimized dynamic programming algorithm to fit a
MPWR model.}
\usage{
fitMPWR(X, Y, K, p = 3)
}
\arguments{
\item{X}{Numeric vector of length \emph{m} representing the cova... | /man/fitMPWR.Rd | no_license | fchamroukhi/MPWR_r | R | false | true | 1,591 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitMPWR.R
\name{fitMPWR}
\alias{fitMPWR}
\title{fitMPWR implements an optimized dynamic programming algorithm to fit a
MPWR model.}
\usage{
fitMPWR(X, Y, K, p = 3)
}
\arguments{
\item{X}{Numeric vector of length \emph{m} representing the cova... |
context("class level lsm_c_ed metric")
landscapemetrics_class_landscape_value <- lsm_c_ed(landscape)
test_that("lsm_c_ed is typestable", {
expect_is(lsm_c_ed(landscape), "tbl_df")
expect_is(lsm_c_ed(landscape_stack), "tbl_df")
expect_is(lsm_c_ed(landscape_brick), "tbl_df")
expect_is(lsm_c_ed(l... | /tests/testthat/test-lsm-c-ed.R | no_license | cran/landscapemetrics | R | false | false | 1,006 | r | context("class level lsm_c_ed metric")
landscapemetrics_class_landscape_value <- lsm_c_ed(landscape)
test_that("lsm_c_ed is typestable", {
expect_is(lsm_c_ed(landscape), "tbl_df")
expect_is(lsm_c_ed(landscape_stack), "tbl_df")
expect_is(lsm_c_ed(landscape_brick), "tbl_df")
expect_is(lsm_c_ed(l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{expandLimits}
\alias{expandLimits}
\title{This function}
\usage{
expandLimits(x, factor = 0.1)
}
\arguments{
\item{x}{A numeric vector.}
\item{factor}{The factor to expand the limits with.}
}
\value{
A list with the expanded up... | /man/expandLimits.Rd | no_license | beatnaut/remaputils | R | false | true | 382 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{expandLimits}
\alias{expandLimits}
\title{This function}
\usage{
expandLimits(x, factor = 0.1)
}
\arguments{
\item{x}{A numeric vector.}
\item{factor}{The factor to expand the limits with.}
}
\value{
A list with the expanded up... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_functions.R
\name{subaccounts.insert}
\alias{subaccounts.insert}
\title{Inserts a new subaccount.}
\usage{
subaccounts.insert(Subaccount, profileId)
}
\arguments{
\item{Subaccount}{The \link{Subaccount} object to pass to this met... | /googledfareportingv25beta1.auto/man/subaccounts.insert.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,046 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_functions.R
\name{subaccounts.insert}
\alias{subaccounts.insert}
\title{Inserts a new subaccount.}
\usage{
subaccounts.insert(Subaccount, profileId)
}
\arguments{
\item{Subaccount}{The \link{Subaccount} object to pass to this met... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boost_tree_spark.R
\name{details_boost_tree_spark}
\alias{details_boost_tree_spark}
\title{Boosted trees via Spark}
\description{
\code{\link[sparklyr:ml_gradient_boosted_trees]{sparklyr::ml_gradient_boosted_trees()}} creates a series of deci... | /man/details_boost_tree_spark.Rd | permissive | tidymodels/parsnip | R | false | true | 5,641 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boost_tree_spark.R
\name{details_boost_tree_spark}
\alias{details_boost_tree_spark}
\title{Boosted trees via Spark}
\description{
\code{\link[sparklyr:ml_gradient_boosted_trees]{sparklyr::ml_gradient_boosted_trees()}} creates a series of deci... |
\name{print.glmnet}
\alias{print.glmnet}
\title{print a glmnet object}
\description{
Print a summary of the glmnet path at each step along the path.
}
\usage{
\method{print}{glmnet}(x, digits = max(3, getOption("digits") - 3), ...)
}
\arguments{
\item{x}{fitted glmnet object}
\item{digits}{significant digits in pri... | /Programming_Projects/R Projects/glmnet/man/print.glmnet.Rd | no_license | pmnyc/Data_Engineering_Collections | R | false | false | 1,235 | rd | \name{print.glmnet}
\alias{print.glmnet}
\title{print a glmnet object}
\description{
Print a summary of the glmnet path at each step along the path.
}
\usage{
\method{print}{glmnet}(x, digits = max(3, getOption("digits") - 3), ...)
}
\arguments{
\item{x}{fitted glmnet object}
\item{digits}{significant digits in pri... |
# C Green 29 August 2021
# background_variables.R
# R script for results in Appendix 10: Analysis of possibly confounding variables in the main ESD study
#######################################################################################################
#
# Investigate effects of known background variables on ... | /R Scripts/background_variables.R | permissive | CJCGreen/data_analysis_ESD_study | R | false | false | 30,832 | r | # C Green 29 August 2021
# background_variables.R
# R script for results in Appendix 10: Analysis of possibly confounding variables in the main ESD study
#######################################################################################################
#
# Investigate effects of known background variables on ... |
library(blavaan)
### Name: blavCompare
### Title: Bayesian model comparisons.
### Aliases: blavCompare BF
### ** Examples
## Not run:
##D hsm1 <- ' visual =~ x1 + x2 + x3 + x4
##D textual =~ x4 + x5 + x6
##D speed =~ x7 + x8 + x9 '
##D
##D fit1 <- bcfa(hsm1, data=HolzingerSwineford1939)
##D... | /data/genthat_extracted_code/blavaan/examples/blavCompare.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 552 | r | library(blavaan)
### Name: blavCompare
### Title: Bayesian model comparisons.
### Aliases: blavCompare BF
### ** Examples
## Not run:
##D hsm1 <- ' visual =~ x1 + x2 + x3 + x4
##D textual =~ x4 + x5 + x6
##D speed =~ x7 + x8 + x9 '
##D
##D fit1 <- bcfa(hsm1, data=HolzingerSwineford1939)
##D... |
#' @title
#' @examples
create_lexicon <- function(x, doc_prop_max = 1, word_min = 5, word_max = Inf, out_dtm = FALSE, ...) {
if(!is.character(x)) {
stop("x is not a character vector")
}
.it <- text2vec::itoken(x, progressbar = FALSE)
.vocab <- text2vec::create_vocabulary(.it)
.vocab <- text2vec::prune_vo... | /R/machine_learning_functions.R | no_license | Shea-Fyffe/PsychStudent | R | false | false | 4,551 | r | #' @title
#' @examples
create_lexicon <- function(x, doc_prop_max = 1, word_min = 5, word_max = Inf, out_dtm = FALSE, ...) {
if(!is.character(x)) {
stop("x is not a character vector")
}
.it <- text2vec::itoken(x, progressbar = FALSE)
.vocab <- text2vec::create_vocabulary(.it)
.vocab <- text2vec::prune_vo... |
#EasyShu团队出品,更多精彩内容请关注微信公众号【EasyShu】
#如有问题修正与深入学习,可联系微信:EasyCharts
library(ggplot2)
library(RColorBrewer)
color_theme<-brewer.pal(7,"Set2")[c(1,2,4,5)]
mydata<-read.csv("Boxplot_Data.csv",stringsAsFactors=FALSE)
ggplot(mydata, aes(Class, Value))+
geom_boxplot(aes(fill = Class),size=0.25) +
geom_jitter(widt... | /第1章 R语言编程与绘图基础/图1-7-8 不同颜色主题的图表效果.R | no_license | Easy-Shu/Beautiful-Visualization-with-R | R | false | false | 1,120 | r |
#EasyShu团队出品,更多精彩内容请关注微信公众号【EasyShu】
#如有问题修正与深入学习,可联系微信:EasyCharts
library(ggplot2)
library(RColorBrewer)
color_theme<-brewer.pal(7,"Set2")[c(1,2,4,5)]
mydata<-read.csv("Boxplot_Data.csv",stringsAsFactors=FALSE)
ggplot(mydata, aes(Class, Value))+
geom_boxplot(aes(fill = Class),size=0.25) +
geom_jitter(widt... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot.clumps.r
\name{plot.clumps}
\alias{plot.clumps}
\title{Plot marker clumps on Manhattan plot.}
\usage{
plot.clumps(gwas.result, clumps, chr, region, clambda = F)
}
\arguments{
\item{gwas.result}{an object of the \code{\link[GenABE... | /man/plot.clumps.Rd | no_license | cgmisc-team/cgmisc | R | false | false | 970 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot.clumps.r
\name{plot.clumps}
\alias{plot.clumps}
\title{Plot marker clumps on Manhattan plot.}
\usage{
plot.clumps(gwas.result, clumps, chr, region, clambda = F)
}
\arguments{
\item{gwas.result}{an object of the \code{\link[GenABE... |
library(shiny)
shinyUI(fluidPage(
titlePanel("Estimated Marathon Time"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
h1("select your fastest time"),
sliderInput("slider_mins", "Mins:", 0,150,30),
sliderInput("distance", "KM:", 0,21,5)
),
... | /ui.R | no_license | bmillaard/Shiny-app-and-repr-pitch | R | false | false | 423 | r | library(shiny)
shinyUI(fluidPage(
titlePanel("Estimated Marathon Time"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
h1("select your fastest time"),
sliderInput("slider_mins", "Mins:", 0,150,30),
sliderInput("distance", "KM:", 0,21,5)
),
... |
# Exploratory Data Analysis Course Project 1: Plot 1
# Read the data.
source("read.R")
# Create the PNG file as required.
png(filename="plot1.png", width = 480, height = 480)
# Draw a histogram with red bars and given labels.
with(data, hist(Global_active_power, col="red",
main="Global Active Power",... | /plot1.R | no_license | thfetcke/ExData_Plotting1 | R | false | false | 388 | r | # Exploratory Data Analysis Course Project 1: Plot 1
# Read the data.
source("read.R")
# Create the PNG file as required.
png(filename="plot1.png", width = 480, height = 480)
# Draw a histogram with red bars and given labels.
with(data, hist(Global_active_power, col="red",
main="Global Active Power",... |
CallOMICFS <- function(dt,lb,index,fs){
dirpath <- "..\\FS\\OMICFS\\"
dt_train <- dt[index,]
lb_train <- data.frame(lb = as.numeric(lb[index]))
# OMICFS Parameter
psfeanum <- fs$K
expfeanum <- fs$E
parameter <- data.frame(psfeanum,expfeanum)
# Prepare the data for OMICFS in matla... | /Evaluate/CallOMICFS.R | permissive | ZongN/FeatureSelection | R | false | false | 861 | r | CallOMICFS <- function(dt,lb,index,fs){
dirpath <- "..\\FS\\OMICFS\\"
dt_train <- dt[index,]
lb_train <- data.frame(lb = as.numeric(lb[index]))
# OMICFS Parameter
psfeanum <- fs$K
expfeanum <- fs$E
parameter <- data.frame(psfeanum,expfeanum)
# Prepare the data for OMICFS in matla... |
#' @include addClusterCols.R
#' @include spatialPlot.R
#' @import shiny
#'
NULL
#' RunShinySpaniel
#'
#' A function to visualise Spatial Transcriptomics. It requires a prepocessed
#' Seurat Object or a SingleCellExperiment object as well as a rasterised image
#' saved as an .rds object. There are 4 plots available ... | /R/shinySpaniel.R | permissive | stephenwilliams22/Spaniel | R | false | false | 8,304 | r | #' @include addClusterCols.R
#' @include spatialPlot.R
#' @import shiny
#'
NULL
#' RunShinySpaniel
#'
#' A function to visualise Spatial Transcriptomics. It requires a prepocessed
#' Seurat Object or a SingleCellExperiment object as well as a rasterised image
#' saved as an .rds object. There are 4 plots available ... |
library(pwr)
# 3(c)
pwr.p.test(h=0.03, sig.level=0.001, power=0.8, alternative='two.sided')
# 3(e)
pwr.p.test(h=0.01, sig.level=0.001, power=0.5, alternative='two.sided')
| /ABtest_pwr.R | no_license | Sarah-Zhang/Business_Strategy_Projects | R | false | false | 171 | r | library(pwr)
# 3(c)
pwr.p.test(h=0.03, sig.level=0.001, power=0.8, alternative='two.sided')
# 3(e)
pwr.p.test(h=0.01, sig.level=0.001, power=0.5, alternative='two.sided')
|
# tcpa data processing
tcpa_info_file <- '~/Documents/workspace/phospho_network/processed_data/tcpa/tcpa_mapping.csv'
tcpa_data_file <- '~/scratch/TCPA_2016-03-22/TCGA-BRCA-L3-S35.csv'
tcpa_info_outfile <- '~/Documents/workspace/phospho_network/processed_data/tcpa/tcpa_data_processed.csv'
data_parser <- function... | /src/scratch/TCPA_analysis/preprocessing/tcpa_processing.R | no_license | chrischen1/phospho_network | R | false | false | 1,979 | r | # tcpa data processing
tcpa_info_file <- '~/Documents/workspace/phospho_network/processed_data/tcpa/tcpa_mapping.csv'
tcpa_data_file <- '~/scratch/TCPA_2016-03-22/TCGA-BRCA-L3-S35.csv'
tcpa_info_outfile <- '~/Documents/workspace/phospho_network/processed_data/tcpa/tcpa_data_processed.csv'
data_parser <- function... |
#' Access files in the current app
#'
#' @param ... Character vector specifying directory and or file to
#' point to inside the current package.
#'
#' @noRd
app_sys <- function(...){
system.file(..., package = "contratoscovid")
}
#' Read App Config
#'
#' @param value Value to retrieve from the config file.
... | /Golem/contratoscovid/R/app_config.R | permissive | manosaladata/contrataciones-estado-emergencia | R | false | false | 788 | r | #' Access files in the current app
#'
#' @param ... Character vector specifying directory and or file to
#' point to inside the current package.
#'
#' @noRd
app_sys <- function(...){
system.file(..., package = "contratoscovid")
}
#' Read App Config
#'
#' @param value Value to retrieve from the config file.
... |
## TODO: chunk size for evaluate = FALSE
`pdredge` <-
function(global.model, cluster = NA,
beta = c("none", "sd", "partial.sd"),
evaluate = TRUE,
rank = "AICc", fixed = NULL, m.lim = NULL, m.min, m.max, subset,
trace = FALSE, varying, extra, ct.args = NULL, check = FALSE, ...) {
#FIXME: m.max cannot be 0... | /MuMIn/R/pdredge.R | no_license | ingted/R-Examples | R | false | false | 24,040 | r | ## TODO: chunk size for evaluate = FALSE
`pdredge` <-
function(global.model, cluster = NA,
beta = c("none", "sd", "partial.sd"),
evaluate = TRUE,
rank = "AICc", fixed = NULL, m.lim = NULL, m.min, m.max, subset,
trace = FALSE, varying, extra, ct.args = NULL, check = FALSE, ...) {
#FIXME: m.max cannot be 0... |
\name{.JavaArrayConstructor}
\name{.JavaGetArrayElement}
\name{.JavaSetArrayElement}
\name{.JavaArrayLength}
\alias{.JavaArrayConstructor}
\alias{.JavaGetArrayElement}
\alias{.JavaSetArrayElement}
\alias{.JavaArrayLength}
\title{Create and access elements of Java arrays from R.}
\description{
These functions allow on... | /man/Array.Rd | no_license | cran/Java | R | false | false | 2,733 | rd | \name{.JavaArrayConstructor}
\name{.JavaGetArrayElement}
\name{.JavaSetArrayElement}
\name{.JavaArrayLength}
\alias{.JavaArrayConstructor}
\alias{.JavaGetArrayElement}
\alias{.JavaSetArrayElement}
\alias{.JavaArrayLength}
\title{Create and access elements of Java arrays from R.}
\description{
These functions allow on... |
\name{ulog}
\alias{ulog}
\alias{ulog.init}
\title{
System logging functions
}
\description{
\code{ulog} sends output to a system log or ulog daemon.
\code{ulog.init} defines where all logging will be directed to.
}
\usage{
ulog(...)
ulog.init(path = NULL, application = NULL)
}
\arguments{
\item{path}{string, path... | /man/ulog.Rd | no_license | s-u/ulog | R | false | false | 1,782 | rd | \name{ulog}
\alias{ulog}
\alias{ulog.init}
\title{
System logging functions
}
\description{
\code{ulog} sends output to a system log or ulog daemon.
\code{ulog.init} defines where all logging will be directed to.
}
\usage{
ulog(...)
ulog.init(path = NULL, application = NULL)
}
\arguments{
\item{path}{string, path... |
# Building a Prod-Ready, Robust Shiny Application.
#
# Each step is optional.
#
# 2. All along your project
## 2.1 Add modules
##
golem::add_module( name = "country_select" ) # Name of the module
golem::add_module( name = "country_flag" ) # Name of the module
golem::add_module( name = "country_map" ) # Name of th... | /dev/02_dev.R | permissive | lee269/iapdashboard | R | false | false | 1,670 | r | # Building a Prod-Ready, Robust Shiny Application.
#
# Each step is optional.
#
# 2. All along your project
## 2.1 Add modules
##
golem::add_module( name = "country_select" ) # Name of the module
golem::add_module( name = "country_flag" ) # Name of the module
golem::add_module( name = "country_map" ) # Name of th... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/oesophagus.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.15,family="gaussian",standardize=FALSE)
sink('./oesophagus_032.txt',appe... | /Model/EN/Classifier/oesophagus/oesophagus_032.R | no_license | esbgkannan/QSMART | R | false | false | 358 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/oesophagus.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.15,family="gaussian",standardize=FALSE)
sink('./oesophagus_032.txt',appe... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 27646
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 27646
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#128.A#48.c#.w#9.s#13.asp/ctrl.e#1.a#3.E#128.A#48.c#.w#9.s#13.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 732 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 27646
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 27646
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... |
#Read in data and format as dates
data <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?",nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data$Date <- as.Date(data$Date, format="%d/%m/%Y")
#Subset Data
data <- subset(data, subset=(Date >= "2007-02-01"... | /Plot 4.R | no_license | agusdon/R-Exploratory-Data-Analysis | R | false | false | 1,230 | r | #Read in data and format as dates
data <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?",nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data$Date <- as.Date(data$Date, format="%d/%m/%Y")
#Subset Data
data <- subset(data, subset=(Date >= "2007-02-01"... |
# this file calculates teams' elo ratings after each game played in a season.
# initial elo is set to 1300, the average over time per 538
# the formula for elo is:
# R[i+1] = R[i] + K * (S[a] - E[a])
# where
# e[a] = 1 / 1 + 10^((elo[b] - elo[a]) / 400)
# and
# K = 20 * (MoV[a] + ... | /scripts/calculate_team_elo.R | no_license | elliottmorris/rNBA | R | false | false | 7,108 | r | # this file calculates teams' elo ratings after each game played in a season.
# initial elo is set to 1300, the average over time per 538
# the formula for elo is:
# R[i+1] = R[i] + K * (S[a] - E[a])
# where
# e[a] = 1 / 1 + 10^((elo[b] - elo[a]) / 400)
# and
# K = 20 * (MoV[a] + ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evaluation.R
\name{pit}
\alias{pit}
\alias{pit.idr}
\alias{pit.data.frame}
\title{Probability integral transform (PIT)}
\usage{
pit(predictions, y, randomize = TRUE, seed = NULL)
\method{pit}{idr}(predictions, y, randomize = TRUE, seed = NUL... | /man/pit.Rd | no_license | evwalz/isodistrreg | R | false | true | 2,332 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evaluation.R
\name{pit}
\alias{pit}
\alias{pit.idr}
\alias{pit.data.frame}
\title{Probability integral transform (PIT)}
\usage{
pit(predictions, y, randomize = TRUE, seed = NULL)
\method{pit}{idr}(predictions, y, randomize = TRUE, seed = NUL... |
######################################################
##### -- climate-vs-habitat-change-california -- #####
######################################################
##################### FUNCTIONS ######################
##### -- multispeciesPP_edit() -- #####
##### Modified multispeciesPP function: function was edited ... | /src/climate-vs-habitat-change-california-functions.R | no_license | giorap/climate-vs-habitat-change-california | R | false | false | 41,916 | r | ######################################################
##### -- climate-vs-habitat-change-california -- #####
######################################################
##################### FUNCTIONS ######################
##### -- multispeciesPP_edit() -- #####
##### Modified multispeciesPP function: function was edited ... |
chum <- final.fish[ which(final.fish$Species=='Chum'), ]
myvars <- c("ID_code", "Length_TSFT_mm", "Chum_total", "total", "Injury","Sex", "Ocean_age", "Set_time")
chum <- chum[myvars]
# make sure data makes sense
chum <- chum[ which(chum$Chum_total > 0), ]
# create unique id and add it to data (enter total numb... | /predator/relative size/chum/chum_rs_raw.R | permissive | annepolyakov/PacificSalmonProject | R | false | false | 1,950 | r | chum <- final.fish[ which(final.fish$Species=='Chum'), ]
myvars <- c("ID_code", "Length_TSFT_mm", "Chum_total", "total", "Injury","Sex", "Ocean_age", "Set_time")
chum <- chum[myvars]
# make sure data makes sense
chum <- chum[ which(chum$Chum_total > 0), ]
# create unique id and add it to data (enter total numb... |
#####################################################################
########## packages, data import, settings ##########
#####################################################################
options(repr.plot.width = 7.5, repr.plot.height = 7.5)
library(tidyverse)
# load ML helper functions
source(... | /R/random_forest.R | no_license | HenrikEckermann/pred_bmc2022 | R | false | false | 20,060 | r | #####################################################################
########## packages, data import, settings ##########
#####################################################################
options(repr.plot.width = 7.5, repr.plot.height = 7.5)
library(tidyverse)
# load ML helper functions
source(... |
# desaparición forzada
library(tidyverse)
library(lubridate)
desfor_comun <- read.csv("data/secretariado_rnped/rnped_comun.csv") %>%
as_tibble() %>%
mutate(fuerocomun_desapfecha_fmt = dmy(fuerocomun_desapfecha),
date = ymd(date))
names(desfor_comun) <- str_replace(names(desfor_comun), "fuerocomun_",... | /munge/01_rnped.R | no_license | CADSalud/imunic | R | false | false | 707 | r |
# desaparición forzada
library(tidyverse)
library(lubridate)
desfor_comun <- read.csv("data/secretariado_rnped/rnped_comun.csv") %>%
as_tibble() %>%
mutate(fuerocomun_desapfecha_fmt = dmy(fuerocomun_desapfecha),
date = ymd(date))
names(desfor_comun) <- str_replace(names(desfor_comun), "fuerocomun_",... |
## Why not use assert_that() here? It's possibly a bit slow:
## microbenchmark(assert_that(is.numeric(1)), assert_numeric(1))
## Lazy evaluation saves us most of the time, but most of the time in
## assert_that is spent on carefully evaluating things. I'm open to
## moving to it.
assert_inherits <- function(x, what... | /R/utils_assert.R | no_license | karthik/maker | R | false | false | 3,944 | r | ## Why not use assert_that() here? It's possibly a bit slow:
## microbenchmark(assert_that(is.numeric(1)), assert_numeric(1))
## Lazy evaluation saves us most of the time, but most of the time in
## assert_that is spent on carefully evaluating things. I'm open to
## moving to it.
assert_inherits <- function(x, what... |
### old 330 samples
dataPathRNASeq_old <- '/export/home/pfkuan/WTCproject/Epigenetics/Data/RNASeq/ProcessedData_RemovedDuplicates/'
load(file=paste(dataPathRNASeq_old,'clinical_rnaseq_16Aug2017.RData',sep=''))
load(paste(dataPathRNASeq_old,'GeneCounts.RData',sep='')) ### load genecounts
load(paste(dataPathRNASeq_old,'F... | /Renxu/ProcessRNASeqData_CombineBatch_08.25.2017.R | no_license | chang-che/Work | R | false | false | 2,555 | r | ### old 330 samples
dataPathRNASeq_old <- '/export/home/pfkuan/WTCproject/Epigenetics/Data/RNASeq/ProcessedData_RemovedDuplicates/'
load(file=paste(dataPathRNASeq_old,'clinical_rnaseq_16Aug2017.RData',sep=''))
load(paste(dataPathRNASeq_old,'GeneCounts.RData',sep='')) ### load genecounts
load(paste(dataPathRNASeq_old,'F... |
i = 475
library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/")
bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed"
setwd("/lustre/scr/w/e/weisun/TCGA/bam/")
cmd = "ls *_asCounts_hetSNP_EA_hap1.bam"
ffs = system(cmd, intern=TRUE)
length(ffs)
head(ffs)
sams = gsub(... | /data_preparation/R_batch3/_step3/step3_countReads_EA.474.R | no_license | jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples | R | false | false | 651 | r | i = 475
library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/")
bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed"
setwd("/lustre/scr/w/e/weisun/TCGA/bam/")
cmd = "ls *_asCounts_hetSNP_EA_hap1.bam"
ffs = system(cmd, intern=TRUE)
length(ffs)
head(ffs)
sams = gsub(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_max_mode_share_scenarios.R
\name{create_max_mode_share_scenarios}
\alias{create_max_mode_share_scenarios}
\title{Create scenarios defined by maximum mode share}
\usage{
create_max_mode_share_scenarios(trip_set)
}
\arguments{
\item{trip... | /man/create_max_mode_share_scenarios.Rd | no_license | CHUANKOUCONG/ITHIM-R | R | false | true | 613 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_max_mode_share_scenarios.R
\name{create_max_mode_share_scenarios}
\alias{create_max_mode_share_scenarios}
\title{Create scenarios defined by maximum mode share}
\usage{
create_max_mode_share_scenarios(trip_set)
}
\arguments{
\item{trip... |
#copied from Dprangle's gnk implementation
check.params <-
function(A,B,g,k,c=0.8,theta){
if(!is.null(theta)) {
if(!is.matrix(theta)) {
if(length(theta)==4) {
A <- theta[1]
B <- theta[2]
g <- theta[3]
k <- theta[4]
} else if(length(theta)==5) {
... | /gk.R | no_license | nayyarv/ABCThesis | R | false | false | 2,132 | r | #copied from Dprangle's gnk implementation
check.params <-
function(A,B,g,k,c=0.8,theta){
if(!is.null(theta)) {
if(!is.matrix(theta)) {
if(length(theta)==4) {
A <- theta[1]
B <- theta[2]
g <- theta[3]
k <- theta[4]
} else if(length(theta)==5) {
... |
# Swaggy Jenkins
#
# Jenkins API clients generated from Swagger / Open API specification
#
# OpenAPI spec version: 1.1.1
# Contact: blah@cliffano.com
# Generated by: https://openapi-generator.tech
#' GithubScmlinks Class
#'
#' @field self
#' @field _class
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSO... | /clients/r/generated/R/GithubScmlinks.r | permissive | miao1007/swaggy-jenkins | R | false | false | 2,014 | r | # Swaggy Jenkins
#
# Jenkins API clients generated from Swagger / Open API specification
#
# OpenAPI spec version: 1.1.1
# Contact: blah@cliffano.com
# Generated by: https://openapi-generator.tech
#' GithubScmlinks Class
#'
#' @field self
#' @field _class
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSO... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/InternalSimple_functions.R
\name{transpar}
\alias{transpar}
\title{Internal function: Transparent named colour}
\usage{
transpar(Colour, alpha = 100)
}
\arguments{
\item{Colour}{A colour name from colours() function which is desired in transp... | /man/transpar.Rd | no_license | ArdernHB/KnnDist | R | false | true | 706 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/InternalSimple_functions.R
\name{transpar}
\alias{transpar}
\title{Internal function: Transparent named colour}
\usage{
transpar(Colour, alpha = 100)
}
\arguments{
\item{Colour}{A colour name from colours() function which is desired in transp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/event-loop.R
\name{event_loop}
\alias{event_loop}
\title{Event loop}
\description{
Event loop
}
\section{Usage}{
\preformatted{el <- event_loop$new()
el$run_http(handle, callback)
el$run_delay(delay, callback)
}
}
\section{Arguments}{
\des... | /man/event_loop.Rd | permissive | strategist922/async-2 | R | false | true | 1,146 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/event-loop.R
\name{event_loop}
\alias{event_loop}
\title{Event loop}
\description{
Event loop
}
\section{Usage}{
\preformatted{el <- event_loop$new()
el$run_http(handle, callback)
el$run_delay(delay, callback)
}
}
\section{Arguments}{
\des... |
require(testthat)
context("Conversion from Solar Dates to Lunar Dates")
test_that("correct conversion of Solar Dates to Lunar Dates", {
expect_that(lunarCal(as.Date("1981-07-21")), equals(c(Year=1981, Month=6, Day=20, Leap=0)))
expect_that(lunarCal(as.Date("1987-06-26")), equals(c(Year=1987, Month=6, Day=1, Lea... | /tests/test_lunarCalSet1.R | no_license | chainsawriot/hongkong | R | false | false | 2,460 | r | require(testthat)
context("Conversion from Solar Dates to Lunar Dates")
test_that("correct conversion of Solar Dates to Lunar Dates", {
expect_that(lunarCal(as.Date("1981-07-21")), equals(c(Year=1981, Month=6, Day=20, Leap=0)))
expect_that(lunarCal(as.Date("1987-06-26")), equals(c(Year=1987, Month=6, Day=1, Lea... |
library(spdep)
### Name: spautolm
### Title: Spatial conditional and simultaneous autoregression model
### estimation
### Aliases: spautolm residuals.spautolm deviance.spautolm coef.spautolm
### fitted.spautolm print.spautolm summary.spautolm LR1.spautolm
### logLik.spautolm print.summary.spautolm
### Keywords:... | /data/genthat_extracted_code/spdep/examples/spautolm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 5,687 | r | library(spdep)
### Name: spautolm
### Title: Spatial conditional and simultaneous autoregression model
### estimation
### Aliases: spautolm residuals.spautolm deviance.spautolm coef.spautolm
### fitted.spautolm print.spautolm summary.spautolm LR1.spautolm
### logLik.spautolm print.summary.spautolm
### Keywords:... |
# This function is used in the solver function and has no independent usages
vectortransmissioneq <- function(t, y, parms)
{
with(
as.list(c(y,parms)), #lets us access variables and parameters stored in y and pars by name
{
#the ordinary differential equations
dSh = - Sh * b1 * Iv + w * Rh... | /inst/simulatorfunctions/simulate_vectortransmission.R | no_license | cgolden1993/DSAIDE | R | false | false | 4,286 | r | # This function is used in the solver function and has no independent usages
vectortransmissioneq <- function(t, y, parms)
{
with(
as.list(c(y,parms)), #lets us access variables and parameters stored in y and pars by name
{
#the ordinary differential equations
dSh = - Sh * b1 * Iv + w * Rh... |
#' Write a metabolism modeling configuration file
#'
#' Write a table (tsv) of configuration information for individual metabolism
#' modeling jobs (one row/job per site-strategy combination). This tsv should
#' reflect the full information needed to re-run a set of jobs. The jobs will
#' probably, but not necessar... | /R/stage_metab_config.R | permissive | berdaniera/mda.streams | R | false | false | 9,124 | r | #' Write a metabolism modeling configuration file
#'
#' Write a table (tsv) of configuration information for individual metabolism
#' modeling jobs (one row/job per site-strategy combination). This tsv should
#' reflect the full information needed to re-run a set of jobs. The jobs will
#' probably, but not necessar... |
#----- R for Data Science (Hadley Wickham) -----
# https://r4ds.had.co.nz
#----- Chapter 5 -----
rm(list = ls())
library(tidyverse)
ggplot(data = diamonds) +
geom_bar(mapping = aes(x = cut))
count(diamonds, cut)
diamonds %>%
filter(between(y, 3, 20))
diamonds %>%
filter(between(y, 0, 3))
diamonds2 <- diamonds... | /R for data science book - 2019.R | no_license | wbdill/r-sandbox01 | R | false | false | 7,742 | r | #----- R for Data Science (Hadley Wickham) -----
# https://r4ds.had.co.nz
#----- Chapter 5 -----
rm(list = ls())
library(tidyverse)
ggplot(data = diamonds) +
geom_bar(mapping = aes(x = cut))
count(diamonds, cut)
diamonds %>%
filter(between(y, 3, 20))
diamonds %>%
filter(between(y, 0, 3))
diamonds2 <- diamonds... |
library(hexSticker)
library(yfR)
df_sp500 <- yfR::yf_get('^GSPC', first_date = '1950-01-01') %>%
dplyr::ungroup() %>%
dplyr::select(ref_date, price_adjusted)
s <- sticker(~plot(df_sp500, cex=.5, cex.axis=.5, mgp=c(0,.3,0),
xlab="", ylab="SP500"),
package="yfR",
p_size... | /inst/scripts/S_create_logo.R | permissive | ropensci/yfR | R | false | false | 470 | r | library(hexSticker)
library(yfR)
df_sp500 <- yfR::yf_get('^GSPC', first_date = '1950-01-01') %>%
dplyr::ungroup() %>%
dplyr::select(ref_date, price_adjusted)
s <- sticker(~plot(df_sp500, cex=.5, cex.axis=.5, mgp=c(0,.3,0),
xlab="", ylab="SP500"),
package="yfR",
p_size... |
library(AHMbook)
### Name: sim.spatialHDS
### Title: Simulates data for a hierarchical spatial distance sampling
### model
### Aliases: sim.spatialHDS
### ** Examples
# Generate data with the default arguments and look at the structure:
tmp <- sim.spatialHDS()
str(tmp)
| /data/genthat_extracted_code/AHMbook/examples/sim.spatialHDS.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 279 | r | library(AHMbook)
### Name: sim.spatialHDS
### Title: Simulates data for a hierarchical spatial distance sampling
### model
### Aliases: sim.spatialHDS
### ** Examples
# Generate data with the default arguments and look at the structure:
tmp <- sim.spatialHDS()
str(tmp)
|
assert_callr_function <- function(callr_function) {
if (!is.null(callr_function)) {
assert_function(
callr_function,
"callr_function must be a function or NULL."
)
}
}
assert_chr <- function(x, msg = NULL) {
if (!is.character(x)) {
throw_validate(msg %||% "x must be a character.")
}
}
... | /R/utils_assert.R | permissive | russHyde/targets | R | false | false | 7,113 | r | assert_callr_function <- function(callr_function) {
if (!is.null(callr_function)) {
assert_function(
callr_function,
"callr_function must be a function or NULL."
)
}
}
assert_chr <- function(x, msg = NULL) {
if (!is.character(x)) {
throw_validate(msg %||% "x must be a character.")
}
}
... |
# Loading libraries
library("easypackages")
libraries("tidyverse", "tidyquant", "gganimate")
# Reading in data directly from github
climate_spend_raw <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master... | /00_scripts/p1_climate_spending.R | no_license | shrysr/sr-tidytuesday | R | false | false | 4,000 | r | # Loading libraries
library("easypackages")
libraries("tidyverse", "tidyquant", "gganimate")
# Reading in data directly from github
climate_spend_raw <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master... |
library(SDMTools)
species=list.files('/home/jc148322/Bird_NARP/models_1km/')
sh.dir='/home/jc148322/scripts/NARP_birds/pot_mat/';dir.create(sh.dir) #dir to write sh scripts to
for (spp in species[31:length(species)]){ cat(spp, '\n')
setwd(sh.dir)
##create the sh file
zz = file(paste('05.',spp,'.pot.mat.sh',sep='... | /summaries and images/05.batch.pot.mat.r | no_license | jjvanderwal/NCCARF_bird_impacts | R | false | false | 690 | r |
library(SDMTools)
species=list.files('/home/jc148322/Bird_NARP/models_1km/')
sh.dir='/home/jc148322/scripts/NARP_birds/pot_mat/';dir.create(sh.dir) #dir to write sh scripts to
for (spp in species[31:length(species)]){ cat(spp, '\n')
setwd(sh.dir)
##create the sh file
zz = file(paste('05.',spp,'.pot.mat.sh',sep='... |
<html>
<head>
<meta name="TextLength" content="SENT_NUM:6, WORD_NUM:102">
</head>
<body bgcolor="white">
<a href="#0" id="0">Ship Sinks, Crew Rescued.</a>
<a href="#1" id="1">He did not give the ship's origin or destination.</a>
<a href="#2" id="2">Earlier reports had said that the ship was a passenger ferry, possibly ... | /DUC-Dataset/Summary_p100_R/D111.AP880913-0070.html.R | no_license | Angela7126/SLNSumEval | R | false | false | 854 | r | <html>
<head>
<meta name="TextLength" content="SENT_NUM:6, WORD_NUM:102">
</head>
<body bgcolor="white">
<a href="#0" id="0">Ship Sinks, Crew Rescued.</a>
<a href="#1" id="1">He did not give the ship's origin or destination.</a>
<a href="#2" id="2">Earlier reports had said that the ship was a passenger ferry, possibly ... |
# These two functions work together to check if a supplied matrix already has an inverse calculated
# if it does then it is just retrieved from the cache object and if not it is colculated using solve()
# use by running: aMatrixObject <- makeCacheMatrix() to make the special matrix object
# then use this objects set ... | /cachematrix.R | no_license | cascadenite/ProgrammingAssignment2 | R | false | false | 1,692 | r | # These two functions work together to check if a supplied matrix already has an inverse calculated
# if it does then it is just retrieved from the cache object and if not it is colculated using solve()
# use by running: aMatrixObject <- makeCacheMatrix() to make the special matrix object
# then use this objects set ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stable_kendall_distribution.R
\name{pkendSym}
\alias{pkendSym}
\title{CDF of symmetrical Kendall stable distribution}
\usage{
pkendSym(m_alpha)
}
\arguments{
\item{m_alpha}{function giving moments of order alpha of step dist.}
}
\value{
funct... | /man/pkendSym.Rd | permissive | mstaniak/kendallRandomPackage | R | false | true | 609 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stable_kendall_distribution.R
\name{pkendSym}
\alias{pkendSym}
\title{CDF of symmetrical Kendall stable distribution}
\usage{
pkendSym(m_alpha)
}
\arguments{
\item{m_alpha}{function giving moments of order alpha of step dist.}
}
\value{
funct... |
context("indention square brackets")
test_that("square brackets cause indention", {
expect_warning(test_collection(
"indention_square_brackets",
"square_brackets_line_break",
transformer = style_text
), NA)
})
| /tests/testthat/test-square_brackets.R | permissive | lorenzwalthert/styler | R | false | false | 227 | r | context("indention square brackets")
test_that("square brackets cause indention", {
expect_warning(test_collection(
"indention_square_brackets",
"square_brackets_line_break",
transformer = style_text
), NA)
})
|
# +++Goals+++
#Aim of this project is to simulate Protein Mass Spectra from the Protein Sequence. This includes simulation of the isotope pattern, the pattern generated by several charge states which are usually observed. In a later stage the resolution of the mass spectrometer shall be included to have an idea of th... | /PRoteinMassSpecSim.R | no_license | AChemist/PRoteinMassSpecSim | R | false | false | 4,403 | r |
# +++Goals+++
#Aim of this project is to simulate Protein Mass Spectra from the Protein Sequence. This includes simulation of the isotope pattern, the pattern generated by several charge states which are usually observed. In a later stage the resolution of the mass spectrometer shall be included to have an idea of th... |
library(readxl)
library(ggplot2)
library(dplyr)
# 1) Use la funcion read_excel para importar la base de datos "nombres60.xlsx"
# guarde el tibble resultante un objeto de nombre "notas"
notas <- read_excel("nombres60.xlsx")
# 2) Cree un diagrama de dispersión, con las notas de la prueba
# solemne en el eje horizo... | /2019_2/control3/Sergio Muñoz - Control 3.R | no_license | ricardomayerb/ico8305 | R | false | false | 1,525 | r | library(readxl)
library(ggplot2)
library(dplyr)
# 1) Use la funcion read_excel para importar la base de datos "nombres60.xlsx"
# guarde el tibble resultante un objeto de nombre "notas"
notas <- read_excel("nombres60.xlsx")
# 2) Cree un diagrama de dispersión, con las notas de la prueba
# solemne en el eje horizo... |
varCompCI <- function(nullMMobj, prop=TRUE){
if(prop){
if(nullMMobj$hetResid){
stop("Estimates of proportional variance are not supported with heterogeneous group residual variances")
}
ci <- matrix(NA, nrow=length(nullMMobj$varComp), ncol=2)
est <- nullMMobj$varComp/sum... | /R/varCompCI.R | no_license | hanchenphd/GENESIS | R | false | false | 1,191 | r | varCompCI <- function(nullMMobj, prop=TRUE){
if(prop){
if(nullMMobj$hetResid){
stop("Estimates of proportional variance are not supported with heterogeneous group residual variances")
}
ci <- matrix(NA, nrow=length(nullMMobj$varComp), ncol=2)
est <- nullMMobj$varComp/sum... |
#' Summarise event log
#'
#' Returns summary metrics of event log
#'
#' @param eventlog event log
#'
#' @return named vector having summary metrics
#'
#' @export
summarise_eventlog <- function(eventlog) {
case_summary <- summarise_cases(eventlog)
n_cases <- nrow(case_summary)
avg_trace_length <- mean(case_summ... | /tclust/R/summarise_eventlog.R | no_license | nirmalpatel/trace_clustering | R | false | false | 881 | r | #' Summarise event log
#'
#' Returns summary metrics of event log
#'
#' @param eventlog event log
#'
#' @return named vector having summary metrics
#'
#' @export
summarise_eventlog <- function(eventlog) {
case_summary <- summarise_cases(eventlog)
n_cases <- nrow(case_summary)
avg_trace_length <- mean(case_summ... |
#' @name enrich
#' @title Enrich `sf` object with OSM data
#' @description Perform enriched query on OSM and add as new column.
#'
#' @param name the column name of the feature to be added
#' @param dataset target `sf` dataset to enrich with this package
#' @param key target OSM feature key to add, see [osmdata::add_os... | /R/enrich_osm.R | permissive | sodascience/osmenrich | R | false | false | 9,562 | r | #' @name enrich
#' @title Enrich `sf` object with OSM data
#' @description Perform enriched query on OSM and add as new column.
#'
#' @param name the column name of the feature to be added
#' @param dataset target `sf` dataset to enrich with this package
#' @param key target OSM feature key to add, see [osmdata::add_os... |
#' @export
safe_log <- function(rValue)
{
if (rValue > 0)
{
return(log(rValue))
} else {
return(-20)
}
}
#' @export
ExecuteMarxan_paramtest <- function(sParam,rMin,rMax,rUserBLM,rUserSPF,rUserTarg)
{
cat(paste0("ExecuteMarxan_paramtest start\n"))
withProgress(message="Run param... | /R/prepare_param_test.R | no_license | dondealban/marxanui | R | false | false | 9,204 | r | #' @export
safe_log <- function(rValue)
{
if (rValue > 0)
{
return(log(rValue))
} else {
return(-20)
}
}
#' @export
ExecuteMarxan_paramtest <- function(sParam,rMin,rMax,rUserBLM,rUserSPF,rUserTarg)
{
cat(paste0("ExecuteMarxan_paramtest start\n"))
withProgress(message="Run param... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics-dashboard.R
\name{sf_dashboard_set_sticky_filter}
\alias{sf_dashboard_set_sticky_filter}
\title{Set a sticky dashboard filter}
\usage{
sf_dashboard_set_sticky_filter(
dashboard_id,
dashboard_filters = c(character(0))
)
}
\argume... | /man/sf_dashboard_set_sticky_filter.Rd | permissive | carlganz/salesforcer | R | false | true | 1,612 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics-dashboard.R
\name{sf_dashboard_set_sticky_filter}
\alias{sf_dashboard_set_sticky_filter}
\title{Set a sticky dashboard filter}
\usage{
sf_dashboard_set_sticky_filter(
dashboard_id,
dashboard_filters = c(character(0))
)
}
\argume... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/autoburnin.R
\name{autoburnin}
\alias{autoburnin}
\title{Automatically calculate and apply burnin value}
\usage{
autoburnin(jags_out, return.burnin = FALSE, ...)
}
\arguments{
\item{jags_out}{JAGS output}
\item{return.burnin}{Logical. If \co... | /modules/assim.batch/man/autoburnin.Rd | permissive | PecanProject/pecan | R | false | true | 809 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/autoburnin.R
\name{autoburnin}
\alias{autoburnin}
\title{Automatically calculate and apply burnin value}
\usage{
autoburnin(jags_out, return.burnin = FALSE, ...)
}
\arguments{
\item{jags_out}{JAGS output}
\item{return.burnin}{Logical. If \co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estims.R
\name{divergence_min_KS}
\alias{divergence_min_KS}
\title{Divergence minimization by Kolmogorov Smirnov}
\usage{
divergence_min_KS(res = res)
}
\arguments{
\item{res}{residuals from a linear model with response variable yt and
expla... | /man/divergence_min_KS.Rd | no_license | akreutzmann/trafo | R | false | true | 457 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estims.R
\name{divergence_min_KS}
\alias{divergence_min_KS}
\title{Divergence minimization by Kolmogorov Smirnov}
\usage{
divergence_min_KS(res = res)
}
\arguments{
\item{res}{residuals from a linear model with response variable yt and
expla... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
... | /submitbutton1/server.R | no_license | shrutiror/Shiny_Web_Applications | R | false | false | 463 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
... |
# Harvey Barnhard
# February 29, 2020
# Last modified on February 29, 2020
# Libraries ====================================================================
library(Rsolnp) # Constrained optimization
library(parallel) # Parallel processing
library(pbapply) # Progress bars for parallel processing
library(TMB)
prop.h... | /R/ll_fun2.R | no_license | harveybarnhard/NPMLEsurv | R | false | false | 5,146 | r | # Harvey Barnhard
# February 29, 2020
# Last modified on February 29, 2020
# Libraries ====================================================================
library(Rsolnp) # Constrained optimization
library(parallel) # Parallel processing
library(pbapply) # Progress bars for parallel processing
library(TMB)
prop.h... |
# http://www.biostars.org/p/61192/ | /ExtractRNA-seq.R | no_license | zhenyisong/CardioTF_Database | R | false | false | 34 | r | # http://www.biostars.org/p/61192/ |
library(testthat)
library(reportr)
test_check("reportr")
| /tests/testthat.R | no_license | jonclayden/reportr | R | false | false | 58 | r | library(testthat)
library(reportr)
test_check("reportr")
|
### Dogbone Integration
# 1. Complex Analysis: Dogbone Contour Example
# https://www.youtube.com/watch?v=UDIKojCQ94U
integrate(function(x) x^(3/4) * (3 - x)^(1/4) / (5 - x), lower=0, upper=3)
# 2. Complex Analysis: Dogbone Contour Example #2
# https://www.youtube.com/watch?v=q1BxM1MWAqA
integrate(function... | /Math/Integrals.Dogbone.R | no_license | discoleo/R | R | false | false | 7,257 | r |
### Dogbone Integration
# 1. Complex Analysis: Dogbone Contour Example
# https://www.youtube.com/watch?v=UDIKojCQ94U
integrate(function(x) x^(3/4) * (3 - x)^(1/4) / (5 - x), lower=0, upper=3)
# 2. Complex Analysis: Dogbone Contour Example #2
# https://www.youtube.com/watch?v=q1BxM1MWAqA
integrate(function... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.