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 |
|---|---|---|---|---|---|---|---|---|---|
\name{divideUp}
\alias{divideUp}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Partition data into mutiple nearly equal subsets}
\description{
Randomly partition data into nearly equal subsets. If
\code{balanced=TRUE} the requirement is imposed that the subsets
should as far as possible be balan... | /man/divideUp.Rd | no_license | cran/hddplot | R | false | false | 1,669 | rd | \name{divideUp}
\alias{divideUp}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Partition data into mutiple nearly equal subsets}
\description{
Randomly partition data into nearly equal subsets. If
\code{balanced=TRUE} the requirement is imposed that the subsets
should as far as possible be balan... |
# install deeptimekb package from github
devtools::install_github("xgmachina/DeepTimeKB/R_pkg", upgrade = FALSE, force = T)
library(DeepTimeKB)
gts.list("international") # international should be the latest isc
gts.list("international", "Epoch")
gts.list("North America", "Epoch")
gts.list(region = 2) # error
gts.list(... | /R_Functions/examples/ex.R | permissive | xgmachina/DeepTimeKB | R | false | false | 1,789 | r | # install deeptimekb package from github
devtools::install_github("xgmachina/DeepTimeKB/R_pkg", upgrade = FALSE, force = T)
library(DeepTimeKB)
gts.list("international") # international should be the latest isc
gts.list("international", "Epoch")
gts.list("North America", "Epoch")
gts.list(region = 2) # error
gts.list(... |
\name{CASchools}
\alias{CASchools}
\title{California Test Score Data}
\description{The dataset contains data on test performance, school
characteristics and student demographic backgrounds for school districts in California.}
\usage{data("CASchools")}
\format{
A data frame containing 420 observations on 14 vari... | /man/CASchools.Rd | no_license | cran/AER | R | false | false | 2,888 | rd | \name{CASchools}
\alias{CASchools}
\title{California Test Score Data}
\description{The dataset contains data on test performance, school
characteristics and student demographic backgrounds for school districts in California.}
\usage{data("CASchools")}
\format{
A data frame containing 420 observations on 14 vari... |
#' Ionosphere data: A dataset of 351 radar readings
#'
#' This dataset contains 351 entries (radar readings from a system in goose bay laboratory) and 35 columns.
#' The 35th columns is the label columns identifying the entry as either good or bad. Additionally, the 2nd column
#' only contains 0's.
#'
#' @format A file... | /R/ionosphere_data.R | no_license | parichit/DCEM | R | false | false | 861 | r | #' Ionosphere data: A dataset of 351 radar readings
#'
#' This dataset contains 351 entries (radar readings from a system in goose bay laboratory) and 35 columns.
#' The 35th columns is the label columns identifying the entry as either good or bad. Additionally, the 2nd column
#' only contains 0's.
#'
#' @format A file... |
#Natural language processing
# Importar el dataset
dataset_original = read.delim("Restaurant_Reviews.tsv",
quote = '',stringsAsFactors = FALSE)
# Limpieza de textos
#install.packages("tm")
#install.packages("SnowballC")
#Stopwords
library(SnowballC)
# procesamiento de texto
library(tm)
# Tomar ... | /Part 7 - Natural Language Processing/Section 36 - Natural Language Processing/natural_language_processing David.R | no_license | darubiano/MachineLearning-AZ | R | false | false | 1,988 | r | #Natural language processing
# Importar el dataset
dataset_original = read.delim("Restaurant_Reviews.tsv",
quote = '',stringsAsFactors = FALSE)
# Limpieza de textos
#install.packages("tm")
#install.packages("SnowballC")
#Stopwords
library(SnowballC)
# procesamiento de texto
library(tm)
# Tomar ... |
# Map settled individuals
#
#'
#'@title Take disMELS output file dfrs (from readAllResults) and produce a map that maps settled individuals
#'
#'@description Function to produce map settled individuals
#'
#'@return map of settled individuals
#'@export
#'
#'
#source("C:/Users/Mike/Documents/Snow Crab/SnowCrabFunction... | /SettledMapWNonSettled.R | no_license | torrem/scFunctions | R | false | false | 15,031 | r | # Map settled individuals
#
#'
#'@title Take disMELS output file dfrs (from readAllResults) and produce a map that maps settled individuals
#'
#'@description Function to produce map settled individuals
#'
#'@return map of settled individuals
#'@export
#'
#'
#source("C:/Users/Mike/Documents/Snow Crab/SnowCrabFunction... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adexchangebuyer_objects.R
\name{Creative.servingRestrictions.contexts}
\alias{Creative.servingRestrictions.contexts}
\title{Creative.servingRestrictions.contexts Object}
\usage{
Creative.servingRestrictions.contexts()
}
\value{
Creative.servi... | /googleadexchangebuyerv14.auto/man/Creative.servingRestrictions.contexts.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 1,051 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adexchangebuyer_objects.R
\name{Creative.servingRestrictions.contexts}
\alias{Creative.servingRestrictions.contexts}
\title{Creative.servingRestrictions.contexts Object}
\usage{
Creative.servingRestrictions.contexts()
}
\value{
Creative.servi... |
library(ConvexPaper)
## Parameters for put option
rate <- 0.06
step <- 0.02
vol <- 0.2
n_dec <- 51
strike <- 40
discount <- exp(-rate * step)
## Grid
n_grid <- 301
grid <- seq(30, 60, length = n_grid)
## Disturbances
nD <- 1000 ## size of sampling
dist <- rep(NA, nD)
u <- (rate - 0.5 * vol^2) * step
sigma <- vol * sqr... | /scripts/finite.R | no_license | YeeJeremy/ConvexPaper | R | false | false | 2,279 | r | library(ConvexPaper)
## Parameters for put option
rate <- 0.06
step <- 0.02
vol <- 0.2
n_dec <- 51
strike <- 40
discount <- exp(-rate * step)
## Grid
n_grid <- 301
grid <- seq(30, 60, length = n_grid)
## Disturbances
nD <- 1000 ## size of sampling
dist <- rep(NA, nD)
u <- (rate - 0.5 * vol^2) * step
sigma <- vol * sqr... |
#NASA Global Annual Temperature Anomalies - Land & Ocean
#Setup Dataset
setwd("/Users/krusa/OneDrive/Documents/GitHub/R-Scripts")
dtmean<-read.table("gl_land_ocean.txt", header = FALSE)
#Catagories
yrTime<- dtmean[,1]
tempMean<- dtmean[,2]
#Statistical Summary of Temperature Anomalies
summary(tempMean)
#Boxplot of... | /Linear Regression Modelling 2 Subsets.R | no_license | Kevin-Do/R-Scripts | R | false | false | 2,082 | r | #NASA Global Annual Temperature Anomalies - Land & Ocean
#Setup Dataset
setwd("/Users/krusa/OneDrive/Documents/GitHub/R-Scripts")
dtmean<-read.table("gl_land_ocean.txt", header = FALSE)
#Catagories
yrTime<- dtmean[,1]
tempMean<- dtmean[,2]
#Statistical Summary of Temperature Anomalies
summary(tempMean)
#Boxplot of... |
library(QuantTools)
### Name: store_market_data
### Title: Store historical market data
### Aliases: store_market_data store_finam_data store_iqfeed_data
### store_moex_data
### ** Examples
## No test:
## Finam data storage
settings = list(
# set storage path, it is perfect to use Solid State Drive for data s... | /data/genthat_extracted_code/QuantTools/examples/store_market_data.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 3,842 | r | library(QuantTools)
### Name: store_market_data
### Title: Store historical market data
### Aliases: store_market_data store_finam_data store_iqfeed_data
### store_moex_data
### ** Examples
## No test:
## Finam data storage
settings = list(
# set storage path, it is perfect to use Solid State Drive for data s... |
apo <- function(data, treshold){
Variable <- colnames(data)
noOutlier <- vector()
means <- vector()
i <- 1
while(i <= length(data)){
len <- length(data[data[,i] > treshold[i],i])
noOutlier<- c(noOutlier,len)
meany <- mean(data[data[,i] <= treshold[i],i])
means <- c(means,meany)
i <- i + 1
... | /R-workspace/UaPsProjekt/apo.R | no_license | mcfr3d/EDAA35-Utv-rdering-av-programvarusystem | R | false | false | 404 | r | apo <- function(data, treshold){
Variable <- colnames(data)
noOutlier <- vector()
means <- vector()
i <- 1
while(i <= length(data)){
len <- length(data[data[,i] > treshold[i],i])
noOutlier<- c(noOutlier,len)
meany <- mean(data[data[,i] <= treshold[i],i])
means <- c(means,meany)
i <- i + 1
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/antanym.R
\docType{package}
\name{antanym}
\alias{antanym}
\alias{antanym-package}
\title{\pkg{antanym}}
\description{
\pkg{antanym}
}
\author{
Australian Antarctic Data Centre \email{aadc@aad.gov.au}
}
\references{
\url{http://data.aad.gov.a... | /man/antanym.Rd | permissive | AustralianAntarcticScience/antanym | R | false | true | 340 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/antanym.R
\docType{package}
\name{antanym}
\alias{antanym}
\alias{antanym-package}
\title{\pkg{antanym}}
\description{
\pkg{antanym}
}
\author{
Australian Antarctic Data Centre \email{aadc@aad.gov.au}
}
\references{
\url{http://data.aad.gov.a... |
T.mean <-
function(geneZ){
Zvec = geneZ[,2]
gname0 = as.vector(geneZ[,1])
names(Zvec) = gname0
Tvec <- tapply(Zvec, gname0, mean)
mvec <- tapply(gname0, gname0, length)
Txx = cbind(Tvec,mvec)
colnames(Txx) = c('T','m')
rownames(Txx) = names(mvec)
return(Txx)
}
| /sgRSEA/R/T.mean.R | no_license | ingted/R-Examples | R | false | false | 303 | r | T.mean <-
function(geneZ){
Zvec = geneZ[,2]
gname0 = as.vector(geneZ[,1])
names(Zvec) = gname0
Tvec <- tapply(Zvec, gname0, mean)
mvec <- tapply(gname0, gname0, length)
Txx = cbind(Tvec,mvec)
colnames(Txx) = c('T','m')
rownames(Txx) = names(mvec)
return(Txx)
}
|
## "smoothing2" uses "smooth2", and is used in "RNMF".
## "smoothing2" takes in a "graph" (data frame, or vector, or matrix). It returns either a matrix or a data frame of the smoothed data frame.
## NOTE: Examples of "smoothing2" can be found in "smoothing2.r"
smoothing2 = function(graph, outs, p = NULL, n = NULL, fra... | /R/smoothing2.R | no_license | RandomSeeds/rNMF | R | false | false | 903 | r | ## "smoothing2" uses "smooth2", and is used in "RNMF".
## "smoothing2" takes in a "graph" (data frame, or vector, or matrix). It returns either a matrix or a data frame of the smoothed data frame.
## NOTE: Examples of "smoothing2" can be found in "smoothing2.r"
smoothing2 = function(graph, outs, p = NULL, n = NULL, fra... |
## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----message=FALSE, warning=FALSE---------------------------------------------
library(OmicInt)
## -----------------------------------------------------------------------------
#data<-score_genes("dat... | /inst/doc/OmicInt_vignette.R | no_license | cran/OmicInt | R | false | false | 5,305 | r | ## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----message=FALSE, warning=FALSE---------------------------------------------
library(OmicInt)
## -----------------------------------------------------------------------------
#data<-score_genes("dat... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "blogger")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "Class")
lrn = makeLearner("cl... | /models/openml_blogger/classification_Class/15c6dfd27480122827a112e12a8b0928/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 709 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "blogger")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "Class")
lrn = makeLearner("cl... |
library(tidyverse)
## Samples are cols
clr <- function(df) {
round(apply(df, 2, function(x) log(x) - mean(log(x))), 5)
}
dat <- data.frame(
sample1 = c(10, 1, 0.1),
sample2 = c(20, 2, 0.005)
)
rownames(dat) <- letters[1:3]
dat <- as.data.frame(t(dat))
dat$sample <- rownames(dat)
dat %>% as_tibble %>% pivot_lon... | /test_files/test.R | permissive | mooreryan/coda | R | false | false | 1,755 | r | library(tidyverse)
## Samples are cols
clr <- function(df) {
round(apply(df, 2, function(x) log(x) - mean(log(x))), 5)
}
dat <- data.frame(
sample1 = c(10, 1, 0.1),
sample2 = c(20, 2, 0.005)
)
rownames(dat) <- letters[1:3]
dat <- as.data.frame(t(dat))
dat$sample <- rownames(dat)
dat %>% as_tibble %>% pivot_lon... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fun_colordetect.R
\name{fun_colordetect}
\alias{fun_colordetect}
\title{fun_colordetect
detects the location of each curve in the image using medoids}
\usage{
fun_colordetect(fig.df, num_curves = NULL, black_marks = F)
}
\arguments{
\item{fig... | /man/fun_colordetect.Rd | permissive | Owain-S/SurvdigitizeR | R | false | true | 807 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fun_colordetect.R
\name{fun_colordetect}
\alias{fun_colordetect}
\title{fun_colordetect
detects the location of each curve in the image using medoids}
\usage{
fun_colordetect(fig.df, num_curves = NULL, black_marks = F)
}
\arguments{
\item{fig... |
#' Class shaq
#'
#' An S4 container for a distributed tall/skinny matrix.
#'
#' @details
#' The (conceptual) global (non-distributed) matrix should be distributed by
#' row, meaning that each submatrix should own all of the columns of the global
#' matrix. Most methods assume no other real structure, however for bes... | /R/00-classes.r | permissive | RBigData/kazaam | R | false | false | 2,560 | r | #' Class shaq
#'
#' An S4 container for a distributed tall/skinny matrix.
#'
#' @details
#' The (conceptual) global (non-distributed) matrix should be distributed by
#' row, meaning that each submatrix should own all of the columns of the global
#' matrix. Most methods assume no other real structure, however for bes... |
# Homework 3 ----------------------------------------------------------------------
#
# Problem 1 -----------------------------------------------------------------------
library(haven)
library(dplyr)
library(ggfortify)
library(survival)
library(ggplot2)
library(broom)
anemia2 <- read_sas("~/WORKING_DIRECTORIES/biosta... | /homework/hw3.R | no_license | discmagnet/biostat.675 | R | false | false | 6,349 | r | # Homework 3 ----------------------------------------------------------------------
#
# Problem 1 -----------------------------------------------------------------------
library(haven)
library(dplyr)
library(ggfortify)
library(survival)
library(ggplot2)
library(broom)
anemia2 <- read_sas("~/WORKING_DIRECTORIES/biosta... |
#::::::::::::::::
# llrmnewton
#::::::::::::::::
subroutine llrmnewton (cd, nxis, q, nxi, rs, nobs, cntsum, cnt, qdrs, nqd, nx, xxwt,
qdwt, prec, maxiter, mchpr, jpvt, wk, info)
integer nxis, nxi, nobs, nqd, nx, maxiter, jpvt(*), info
double precision cd(*), q(nxi,*), rs(nxis,*), cntsum,... | /src/ratfor/llrmnewton.r | no_license | cran/gss | R | false | false | 14,948 | r |
#::::::::::::::::
# llrmnewton
#::::::::::::::::
subroutine llrmnewton (cd, nxis, q, nxi, rs, nobs, cntsum, cnt, qdrs, nqd, nx, xxwt,
qdwt, prec, maxiter, mchpr, jpvt, wk, info)
integer nxis, nxi, nobs, nqd, nx, maxiter, jpvt(*), info
double precision cd(*), q(nxi,*), rs(nxis,*), cntsum,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Hpo_test.r
\name{PRnd}
\alias{PRnd}
\title{ND Test}
\usage{
PRnd(x, m = 10, p = 0, q = 0)
}
\arguments{
\item{x}{time series.}
\item{m}{the maximum number of lag of correlation to test.}
\item{p}{AR order.}
\item{q}{MA order... | /man/PRnd.Rd | no_license | ConvFuncTimeSeries/test3 | R | false | true | 755 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Hpo_test.r
\name{PRnd}
\alias{PRnd}
\title{ND Test}
\usage{
PRnd(x, m = 10, p = 0, q = 0)
}
\arguments{
\item{x}{time series.}
\item{m}{the maximum number of lag of correlation to test.}
\item{p}{AR order.}
\item{q}{MA order... |
#####################################
# 第48回衆議院議員総選挙
# https://www.soumu.go.jp/senkyo/senkyo_s/data/shugiin48/index.html
# 都道府県別届出政党等別得票数(小選挙区)
#####################################
library(dplyr)
read_pref_party_votes <- function(data, party) {
data %>%
purrr::set_names(c("区分", stringr::str_c(
rep(party, ... | /data-raw/shugiin48.R | no_license | uribo/jfssa2021_datavis | R | false | false | 1,580 | r | #####################################
# 第48回衆議院議員総選挙
# https://www.soumu.go.jp/senkyo/senkyo_s/data/shugiin48/index.html
# 都道府県別届出政党等別得票数(小選挙区)
#####################################
library(dplyr)
read_pref_party_votes <- function(data, party) {
data %>%
purrr::set_names(c("区分", stringr::str_c(
rep(party, ... |
#########################################################
#########################################################
### ###
### RUN Pollock JSDM ###
### ###
######################... | /Simulations test/HPR_model.R | no_license | dansmi-hub/JSDM_Inference | R | false | false | 4,151 | r | #########################################################
#########################################################
### ###
### RUN Pollock JSDM ###
### ###
######################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prob_rebuilt_goal.R
\name{prob_rebuilt_goal}
\alias{prob_rebuilt_goal}
\title{Calculate the probability of reaching a rebuilding goal}
\usage{
prob_rebuilt_goal(traj, goal = 0.5 * lh.params.test$K1plus, rebuild.yr = 100)
}
\arguments{
\item{t... | /man/prob_rebuilt_goal.Rd | no_license | mcsiple/ltbycatch | R | false | true | 911 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prob_rebuilt_goal.R
\name{prob_rebuilt_goal}
\alias{prob_rebuilt_goal}
\title{Calculate the probability of reaching a rebuilding goal}
\usage{
prob_rebuilt_goal(traj, goal = 0.5 * lh.params.test$K1plus, rebuild.yr = 100)
}
\arguments{
\item{t... |
## The makeCacheMatrix function ultimately returns a list of the inverse.
makeCacheMatrix <- function(x = matrix()) { #Default of argument x is an empty matrix.
m <- NULL #Creates inv, an empty object to be used later.
set <- function(y) { # function with... | /cachematrix.R | no_license | herij68/ProgrammingAssignment2 | R | false | false | 1,995 | r |
## The makeCacheMatrix function ultimately returns a list of the inverse.
makeCacheMatrix <- function(x = matrix()) { #Default of argument x is an empty matrix.
m <- NULL #Creates inv, an empty object to be used later.
set <- function(y) { # function with... |
print.dglars <- function (x,digits = max(3, getOption("digits") - 3), ...){
action <- x$action
g <- x$g
dev <- x$dev
dev.ratio <- 1 - dev/dev[1]
df <- x$df
tbl <- data.frame(action,g,dev,dev.ratio,df)
names(tbl) <- c("Sequence","g","Dev","%Dev","df")
id <- which(action!="")
n.tbl <- dim(tbl)[1]
n.space <- len... | /dglars/R/print.dglars.R | no_license | ingted/R-Examples | R | false | false | 879 | r | print.dglars <- function (x,digits = max(3, getOption("digits") - 3), ...){
action <- x$action
g <- x$g
dev <- x$dev
dev.ratio <- 1 - dev/dev[1]
df <- x$df
tbl <- data.frame(action,g,dev,dev.ratio,df)
names(tbl) <- c("Sequence","g","Dev","%Dev","df")
id <- which(action!="")
n.tbl <- dim(tbl)[1]
n.space <- len... |
#Libraries included
library(reshape2)
#Read in all of the neeeded .txt files
features <- read.table("./UCI HAR Dataset/features.txt")
x_test <- read.table("./UCI HAR Dataset/test/X_test.txt")
y_test <- read.table("./UCI HAR Dataset/test/Y_test.txt")
activity_labels <- read.table("./UCI HAR Dataset/activity_labels.txt"... | /run_analysis.R | no_license | downthesun01/Getting_and_Cleaning_Data | R | false | false | 3,809 | r | #Libraries included
library(reshape2)
#Read in all of the neeeded .txt files
features <- read.table("./UCI HAR Dataset/features.txt")
x_test <- read.table("./UCI HAR Dataset/test/X_test.txt")
y_test <- read.table("./UCI HAR Dataset/test/Y_test.txt")
activity_labels <- read.table("./UCI HAR Dataset/activity_labels.txt"... |
fn_data_simul = function(ncurve, Sig = c(1, .5)^2, sig = .05, seedn = 1234,
nbasis = 10, norder = 5, ntime = 1000){
#### true curves ####
mu = function(t){ 5*(1-2*t)}
f1 = function(t){sqrt(2)*sin(2*pi*(t))}
f2 = function(t){sqrt(2)*cos(2*pi*(t))}
#### basis ####
tgrid = seq(0,... | /functions/fn_data_simul.R | no_license | syeeun/jointmono | R | false | false | 1,886 | r | fn_data_simul = function(ncurve, Sig = c(1, .5)^2, sig = .05, seedn = 1234,
nbasis = 10, norder = 5, ntime = 1000){
#### true curves ####
mu = function(t){ 5*(1-2*t)}
f1 = function(t){sqrt(2)*sin(2*pi*(t))}
f2 = function(t){sqrt(2)*cos(2*pi*(t))}
#### basis ####
tgrid = seq(0,... |
#' @title Title
#'
#' @description Description
#'
#' @param x A number.
#' @param y A number.
#' @return return value here.
#' @details
#' Additional details here
#' @examples
#' example function call here
#' @export
social_treatment_module <- function(dat, at)
{
#Description:
#Assigns treatment status (0/1) to ... | /R/social_treatment_module.R | no_license | EvoNetHIV/RoleSPVL | R | false | false | 4,130 | r | #' @title Title
#'
#' @description Description
#'
#' @param x A number.
#' @param y A number.
#' @return return value here.
#' @details
#' Additional details here
#' @examples
#' example function call here
#' @export
social_treatment_module <- function(dat, at)
{
#Description:
#Assigns treatment status (0/1) to ... |
# ----------------------------------------------
# Audrey Batzel
#
# 6/15/18
# prep of PNLP data for multiple imputation
setwd('C:/local/gf/')
# Cleaned up/edited/redone - 02/19 through 5/19
# 5/16/19 reorganized code - this is now another prep file before QR/duplicate removal. Then run duplicate remov... | /outcome_measurement/malaria/cod/prep_for_MI.R | no_license | ihmeuw/gf | R | false | false | 8,015 | r | # ----------------------------------------------
# Audrey Batzel
#
# 6/15/18
# prep of PNLP data for multiple imputation
setwd('C:/local/gf/')
# Cleaned up/edited/redone - 02/19 through 5/19
# 5/16/19 reorganized code - this is now another prep file before QR/duplicate removal. Then run duplicate remov... |
library(tidycensus)
census <- read.csv("census_codebook.csv")
#years <- list(2018)
census$my_cen_vars <- as.character(census$my_cen_vars)
la_census <- get_acs(
geography = "tract",
variables = census$my_cen_vars,
state = "CA",
county = '037',
survey="acs5",
year = 2018,
... | /dtLA_redistrict/map/get_census.R | no_license | yaoyaocai/dtlA_redistricting | R | false | false | 1,081 | r | library(tidycensus)
census <- read.csv("census_codebook.csv")
#years <- list(2018)
census$my_cen_vars <- as.character(census$my_cen_vars)
la_census <- get_acs(
geography = "tract",
variables = census$my_cen_vars,
state = "CA",
county = '037',
survey="acs5",
year = 2018,
... |
## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----echo=FALSE---------------------------------------------------------------
knitr::include_graphics("https://raw.githubusercontent.com/Anirban166/testComplexity/mast... | /inst/doc/testComplexity.R | no_license | cran/testComplexity | R | false | false | 987 | r | ## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----echo=FALSE---------------------------------------------------------------
knitr::include_graphics("https://raw.githubusercontent.com/Anirban166/testComplexity/mast... |
\name{Blocking Workers}
\alias{BlockWorker}
\alias{BlockWorkers}
\alias{block}
\alias{UnblockWorker}
\alias{UnblockWorkers}
\alias{unblock}
\alias{GetBlockedWorkers}
\alias{blockedworkers}
\title{Block/Unblock Worker(s)}
\description{Block or unblock a worker. This prevents a worker from completing any HITs for you whi... | /man/BlockWorker.Rd | no_license | imclab/MTurkR | R | false | false | 4,765 | rd | \name{Blocking Workers}
\alias{BlockWorker}
\alias{BlockWorkers}
\alias{block}
\alias{UnblockWorker}
\alias{UnblockWorkers}
\alias{unblock}
\alias{GetBlockedWorkers}
\alias{blockedworkers}
\title{Block/Unblock Worker(s)}
\description{Block or unblock a worker. This prevents a worker from completing any HITs for you whi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organization.R
\name{ramp_path1}
\alias{ramp_path1}
\title{Formats a base path for a file given all keys.}
\usage{
ramp_path1(stage, location, project, user, rproject, path = NULL)
}
\arguments{
\item{stage}{One of (input, working, output). M... | /man/ramp_path1.Rd | no_license | dd-harp/rampdata | R | false | true | 844 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organization.R
\name{ramp_path1}
\alias{ramp_path1}
\title{Formats a base path for a file given all keys.}
\usage{
ramp_path1(stage, location, project, user, rproject, path = NULL)
}
\arguments{
\item{stage}{One of (input, working, output). M... |
## Project Air Pollution
## 1999
### read the data
pm0 <- read.table("\\\\wbad.group\\dfs_WB\\10_Home\\UWBBENOELF\\DATA\\Desktop\\pm25_data\\pm25_data\\RD_501_88101_1999-0.txt", comment.char = "#", header = FALSE, sep = "|", na.strings = "")
### check dimensions
dim(pm0)
head(pm0)
### read the column names
cnames <... | /rcode/airpollution_project.R | no_license | luifidor/datasciencecoursera | R | false | false | 8,888 | r |
## Project Air Pollution
## 1999
### read the data
pm0 <- read.table("\\\\wbad.group\\dfs_WB\\10_Home\\UWBBENOELF\\DATA\\Desktop\\pm25_data\\pm25_data\\RD_501_88101_1999-0.txt", comment.char = "#", header = FALSE, sep = "|", na.strings = "")
### check dimensions
dim(pm0)
head(pm0)
### read the column names
cnames <... |
#' Tilemap Switzerland
#'
#' A data.frame (or spatial object) of Switzerland's tilemap
#'
#' @name tilemap_ch
#' @param fortified, a logical a data.frame instead of spatial object to be returned
#' @param withLake, a logical have Leman and Bodensee lakes?
#' @source \url{https://github.com/ernstbaslerpartner/Switzer... | /R/tilemap_Switzerland.R | no_license | d-qn/tamMap | R | false | false | 2,036 | r | #' Tilemap Switzerland
#'
#' A data.frame (or spatial object) of Switzerland's tilemap
#'
#' @name tilemap_ch
#' @param fortified, a logical a data.frame instead of spatial object to be returned
#' @param withLake, a logical have Leman and Bodensee lakes?
#' @source \url{https://github.com/ernstbaslerpartner/Switzer... |
PMinCDaR <- function(PriceData, alpha = 0.95, softBudget = FALSE, ...){
if(is.null(dim(PriceData))){
stop("Argument for 'PriceData' must be rectangular.\n")
}
if(any(is.na(PriceData))){
stop("NA-values contained in object for 'PriceData'.\n")
}
if(alpha <= 0 || alpha >= 1){
stop("Argument for 'alp... | /R/PMinCDaR.R | no_license | MatixR/FRAPO | R | false | false | 2,943 | r | PMinCDaR <- function(PriceData, alpha = 0.95, softBudget = FALSE, ...){
if(is.null(dim(PriceData))){
stop("Argument for 'PriceData' must be rectangular.\n")
}
if(any(is.na(PriceData))){
stop("NA-values contained in object for 'PriceData'.\n")
}
if(alpha <= 0 || alpha >= 1){
stop("Argument for 'alp... |
#' Test for etiologic heterogeneity of risk factors according to individual
#' disease markers in a case-control study
#'
#' @author Emily C Zabor \email{zabore@@mskcc.org}
#'
#' @description \code{eh_test_marker} takes a list of individual disease
#' markers,
#' a list of risk factors, a variable name denoting case ve... | /R/eh_test_marker.R | no_license | zabore/riskclustr | R | false | false | 10,444 | r | #' Test for etiologic heterogeneity of risk factors according to individual
#' disease markers in a case-control study
#'
#' @author Emily C Zabor \email{zabore@@mskcc.org}
#'
#' @description \code{eh_test_marker} takes a list of individual disease
#' markers,
#' a list of risk factors, a variable name denoting case ve... |
#Load Dataset
dataset = read.table("household_power_consumption.txt",header=TRUE, sep=";")
#Change date to be of type date
dataset$Date = as.Date(dataset$Date[], format="%d/%m/%Y")
#Subset dataset with the data for the 2 dates specified in the problem
day1data = subset(dataset,Date==as.Date("2007-02-01"))
day2data = s... | /Plot4.R | no_license | johnmartinez0408/ExData_Plotting1 | R | false | false | 1,976 | r | #Load Dataset
dataset = read.table("household_power_consumption.txt",header=TRUE, sep=";")
#Change date to be of type date
dataset$Date = as.Date(dataset$Date[], format="%d/%m/%Y")
#Subset dataset with the data for the 2 dates specified in the problem
day1data = subset(dataset,Date==as.Date("2007-02-01"))
day2data = s... |
library(entropart)
### Name: BetaDiversity
### Title: Reduced-bias beta diversity of a metacommunity
### Aliases: BetaDiversity
### ** Examples
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest)
data(Paracou618)
# Estimate Shannon beta diversity
summary(BetaDiversity(Paracou618.... | /data/genthat_extracted_code/entropart/examples/BetaDiversity.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 543 | r | library(entropart)
### Name: BetaDiversity
### Title: Reduced-bias beta diversity of a metacommunity
### Aliases: BetaDiversity
### ** Examples
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest)
data(Paracou618)
# Estimate Shannon beta diversity
summary(BetaDiversity(Paracou618.... |
# makeCacheMatrix creates is a function to
# set the value of the matrix
# get the value of the matrix
# set the value of inverse of the matrix
# get the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() ... | /cachematrix.R | no_license | sushantshekharsingh/ProgrammingAssignment2 | R | false | false | 844 | r | # makeCacheMatrix creates is a function to
# set the value of the matrix
# get the value of the matrix
# set the value of inverse of the matrix
# get the value of inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() ... |
1-length(which(rare.comics$Appearances == ""))/nrow(rare.comics)
rare.comics
table(is.na(rare.comics$)
summary(rare.comics$Price)
class() | /0_tools/Exploration.R | permissive | carbajalcarlos/lit_rev | R | false | false | 141 | r | 1-length(which(rare.comics$Appearances == ""))/nrow(rare.comics)
rare.comics
table(is.na(rare.comics$)
summary(rare.comics$Price)
class() |
library(idar)
### Name: LF.gof
### Title: Loosmore and Ford Goodness of Fit Test
### Aliases: LF.gof
### Keywords: spatial
### ** Examples
# some envelopesfor some idar function
# The argument "savefuns" must be set to "TRUE"
# BEWARE: in real tests nsim shpuld be 199 or higher
data(lansing)
maple.lambda<- density(... | /data/genthat_extracted_code/idar/examples/LF.gof.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 763 | r | library(idar)
### Name: LF.gof
### Title: Loosmore and Ford Goodness of Fit Test
### Aliases: LF.gof
### Keywords: spatial
### ** Examples
# some envelopesfor some idar function
# The argument "savefuns" must be set to "TRUE"
# BEWARE: in real tests nsim shpuld be 199 or higher
data(lansing)
maple.lambda<- density(... |
## Deprecated for now - requires significant work following changes to webpage
#' Scrape Bath Rugby match dates, kick-off times and results
#'
#' Web scraping function to gather dates and times of Bath Rugby matches, and
#' whether or not Bath won, from the
#' \href{http://www.bathrugby.com/fixtures-results/results-... | /R/web_scraping.R | permissive | owenjonesuob/BANEScarparkinglite | R | false | false | 23,881 | r | ## Deprecated for now - requires significant work following changes to webpage
#' Scrape Bath Rugby match dates, kick-off times and results
#'
#' Web scraping function to gather dates and times of Bath Rugby matches, and
#' whether or not Bath won, from the
#' \href{http://www.bathrugby.com/fixtures-results/results-... |
options(digits=16)
#通过Hamilton滤波更新共同因子所处状态
p_s_initial_2=rep(list(0),block)
for(i in 1:block)
{
p_s_initial_2[[i]]=matrix(0,nrow = 1,ncol=2)
}
east=1
mid=1
west=1
north=1
for(i in 1:block)
{
if(i %in% east_number)
{
p_s_initial_2[[i]][,1]=p_miu_2[[i]][1,1]*dnorm(e_2[i,1],mean=(1-lambda_... | /5hamilton filter estimation.R | no_license | Allisterh/Regime-Switching-Hierarchical-Dynamic-Factor | R | false | false | 5,231 | r |
options(digits=16)
#通过Hamilton滤波更新共同因子所处状态
p_s_initial_2=rep(list(0),block)
for(i in 1:block)
{
p_s_initial_2[[i]]=matrix(0,nrow = 1,ncol=2)
}
east=1
mid=1
west=1
north=1
for(i in 1:block)
{
if(i %in% east_number)
{
p_s_initial_2[[i]][,1]=p_miu_2[[i]][1,1]*dnorm(e_2[i,1],mean=(1-lambda_... |
heatmap.3 <- function(x,
Rowv = TRUE, Colv = if (symm) "Rowv" else TRUE,
distfun = dist,
hclustfun = hclust,
dendrogram = c("both","row", "column", "none"),
symm = FALSE,
scale = c("none",... | /MOCA/PostProcess/R/Heatmap3.R | no_license | stick-figure/MOCA | R | false | false | 17,354 | r | heatmap.3 <- function(x,
Rowv = TRUE, Colv = if (symm) "Rowv" else TRUE,
distfun = dist,
hclustfun = hclust,
dendrogram = c("both","row", "column", "none"),
symm = FALSE,
scale = c("none",... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/drop_file_ops.R
\name{drop_exists}
\alias{drop_exists}
\title{Checks to see if a file/folder exists on Dropbox}
\usage{
drop_exists(path = NULL, dtoken = get_dropbox_token())
}
\arguments{
\item{path}{The full path to a Dropbox file}
... | /man/drop_exists.Rd | no_license | ajzz/rdrop2 | R | false | false | 797 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/drop_file_ops.R
\name{drop_exists}
\alias{drop_exists}
\title{Checks to see if a file/folder exists on Dropbox}
\usage{
drop_exists(path = NULL, dtoken = get_dropbox_token())
}
\arguments{
\item{path}{The full path to a Dropbox file}
... |
library(paleofire)
### Name: pfCompositeLF
### Title: Produce a composite serie from multiple charcoal records using a
### local regression procedure (from the locfit package)
### Aliases: pfCompositeLF
### ** Examples
## Not run:
##D ID=pfSiteSel(continent=="North America", l12==1, long>=-160 & long<=-140)
##D ... | /data/genthat_extracted_code/paleofire/examples/pfCompositeLF.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 756 | r | library(paleofire)
### Name: pfCompositeLF
### Title: Produce a composite serie from multiple charcoal records using a
### local regression procedure (from the locfit package)
### Aliases: pfCompositeLF
### ** Examples
## Not run:
##D ID=pfSiteSel(continent=="North America", l12==1, long>=-160 & long<=-140)
##D ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cont.spdf.R
\name{cont.spdf}
\alias{cont.spdf}
\title{Plot PDF of Continuous Random Variables}
\usage{
cont.spdf(dist, lo, up, para, para2, ymax, xl, yl, dcol, np = 100, xp)
}
\arguments{
\item{dist}{Distribution name ("exp", "gamma", "weibul... | /man/cont.spdf.Rd | permissive | jhk0530/Rstat | R | false | true | 975 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cont.spdf.R
\name{cont.spdf}
\alias{cont.spdf}
\title{Plot PDF of Continuous Random Variables}
\usage{
cont.spdf(dist, lo, up, para, para2, ymax, xl, yl, dcol, np = 100, xp)
}
\arguments{
\item{dist}{Distribution name ("exp", "gamma", "weibul... |
shiny_panel_filter <- fluidPage(
tags$div(
class = "container",
h1("Data Summary"),
fluidPage(
fluidRow(
column(8,
tableOutput("summarycontents"),
plotlyOutput("countshist"),
plotlyOutput("geneshist"),
dataTableOutput("contents")),
column(
... | /inst/shiny/ui_02_filter.R | permissive | minghao2016/singleCellTK | R | false | false | 1,710 | r | shiny_panel_filter <- fluidPage(
tags$div(
class = "container",
h1("Data Summary"),
fluidPage(
fluidRow(
column(8,
tableOutput("summarycontents"),
plotlyOutput("countshist"),
plotlyOutput("geneshist"),
dataTableOutput("contents")),
column(
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smooth-pc-spectrum.R
\name{smooth_pc_spectrum}
\alias{smooth_pc_spectrum}
\alias{smooth_pc_spectrum.default}
\alias{smooth_pc_spectrum.sparse_pc_spectrum}
\title{Smooth pitch-class spectrum}
\usage{
smooth_pc_spectrum(
x,
...,
sigma = 6... | /man/smooth_pc_spectrum.Rd | permissive | pmcharrison/hrep | R | false | true | 2,383 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smooth-pc-spectrum.R
\name{smooth_pc_spectrum}
\alias{smooth_pc_spectrum}
\alias{smooth_pc_spectrum.default}
\alias{smooth_pc_spectrum.sparse_pc_spectrum}
\title{Smooth pitch-class spectrum}
\usage{
smooth_pc_spectrum(
x,
...,
sigma = 6... |
## ---- message = FALSE, warning = FALSE-----------------------------------
#load packages and csv file
library(ggplot2)
library(dplyr)
library(grid)
library(fmsb)
library(fivethirtyeight)
library(knitr)
library(wordcloud)
library(gridExtra)
## ---- warning = FALSE, message = FALSE, fig.width = 10-------------------
#... | /docs/articles/comics_gender.R | no_license | byuidatascience/fivethirtyeight | R | false | false | 7,983 | r | ## ---- message = FALSE, warning = FALSE-----------------------------------
#load packages and csv file
library(ggplot2)
library(dplyr)
library(grid)
library(fmsb)
library(fivethirtyeight)
library(knitr)
library(wordcloud)
library(gridExtra)
## ---- warning = FALSE, message = FALSE, fig.width = 10-------------------
#... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615832916-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db.reader.R
\name{db.reader}
\alias{db.reader}
\title{Read a SQlite3 database with a (.db) file extension.}
\usage{
db.reader(data.file, filename, variable.name)
}
\arguments{
\item{data.file}{The name of the data file to be read.}
\item{fil... | /man/db.reader.Rd | no_license | connectedblue/ProjectTemplate2 | R | false | true | 910 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db.reader.R
\name{db.reader}
\alias{db.reader}
\title{Read a SQlite3 database with a (.db) file extension.}
\usage{
db.reader(data.file, filename, variable.name)
}
\arguments{
\item{data.file}{The name of the data file to be read.}
\item{fil... |
## Checking find cluster nodes for more general cases
## These extend (greatly) from cases from bnp_more_general_cases.Rmd (Sept. 2019)
library(nimble, lib.loc = '/tmp/nim-bmg')
## Basic more general cases
## Most basic case
code <- nimbleCode({
for(i in 1:n) {
for(j in 1:J) {
y[i, j] ~ dnorm... | /packages/nimble/inst/tests/bnp_more_general.R | permissive | DRJP/nimble | R | false | false | 75,174 | r | ## Checking find cluster nodes for more general cases
## These extend (greatly) from cases from bnp_more_general_cases.Rmd (Sept. 2019)
library(nimble, lib.loc = '/tmp/nim-bmg')
## Basic more general cases
## Most basic case
code <- nimbleCode({
for(i in 1:n) {
for(j in 1:J) {
y[i, j] ~ dnorm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict_margin}
\alias{predict_margin}
\title{Predict margin}
\usage{
predict_margin(model, pred_result)
}
\arguments{
\item{model}{aflelo_model object}
\item{pred_result}{probablilty of home win}
}
\value{
Margin for the hom... | /man/predict_margin.Rd | no_license | lazappi/aflelo | R | false | true | 586 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict_margin}
\alias{predict_margin}
\title{Predict margin}
\usage{
predict_margin(model, pred_result)
}
\arguments{
\item{model}{aflelo_model object}
\item{pred_result}{probablilty of home win}
}
\value{
Margin for the hom... |
lcy.gSpan <- function(graph, n.process=4, support=0.5, num.node=2, edge.label='', vertex.activity=TRUE, activity.key='color', mine.tool.path=''){
old.path <- getwd()
setwd(output.dir)
lcy.initiation('gSpan')
# prepare input file for gSpan
print('Preparing input file for gSpan')
parameter <- lcy... | /R/lcy.gSpan.R | no_license | chengyu-liu-cs/lcyCF | R | false | false | 1,403 | r | lcy.gSpan <- function(graph, n.process=4, support=0.5, num.node=2, edge.label='', vertex.activity=TRUE, activity.key='color', mine.tool.path=''){
old.path <- getwd()
setwd(output.dir)
lcy.initiation('gSpan')
# prepare input file for gSpan
print('Preparing input file for gSpan')
parameter <- lcy... |
# Pacotes -----------------------------------------------------------------
library(dplyr)
library(purrr)
library(stringr)
library(readr)
library(readxl)
library(tidyr)
# Leitura -----------------------------------------------------------------
# base de multas de forma eletrônica
arqs <- list.files("data-raw/carros... | /data-raw/tidydata.R | no_license | dfalbel/spmultas | R | false | false | 1,401 | r | # Pacotes -----------------------------------------------------------------
library(dplyr)
library(purrr)
library(stringr)
library(readr)
library(readxl)
library(tidyr)
# Leitura -----------------------------------------------------------------
# base de multas de forma eletrônica
arqs <- list.files("data-raw/carros... |
/moshi21.shangpin.R | no_license | leivenwong/RFiles-64 | R | false | false | 3,668 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module_04_keyword.R
\name{extract_community_graph}
\alias{extract_community_graph}
\title{extract subgraph for a given community}
\usage{
extract_community_graph(g, community)
}
\arguments{
\item{g}{full graph}
\item{community}{community}
}
... | /man/extract_community_graph.Rd | no_license | Geographie-cites/corpusminer-package | R | false | true | 375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module_04_keyword.R
\name{extract_community_graph}
\alias{extract_community_graph}
\title{extract subgraph for a given community}
\usage{
extract_community_graph(g, community)
}
\arguments{
\item{g}{full graph}
\item{community}{community}
}
... |
function_display = function(corpus_dtm_tf)
{
require(wordcloud)
library(wordcloud)
require(igraph)
library(igraph)
##Wordcloud
display_word_cloud=function(corpus_dtm_tf){
corpus_dtm=as.matrix(corpus_dtm_tf)
corpus_dtm_columns_sum=apply(corpus_dtm,2,sum)
minimum = min(120, length(corpus_dtm_co... | /function_to_plot.R | no_license | ravichandrakolluri/Text-Analytics | R | false | false | 3,041 | r | function_display = function(corpus_dtm_tf)
{
require(wordcloud)
library(wordcloud)
require(igraph)
library(igraph)
##Wordcloud
display_word_cloud=function(corpus_dtm_tf){
corpus_dtm=as.matrix(corpus_dtm_tf)
corpus_dtm_columns_sum=apply(corpus_dtm,2,sum)
minimum = min(120, length(corpus_dtm_co... |
### actuar: Actuarial Functions and Heavy Tailed Distributions
###
### Definition of the {d,p,q,r,m,lev}pareto4 functions to compute
### characteristics of the Pareto (type) IV distribution. The version
### used in these functions has cumulative distribution function
###
### Pr[X <= x] = 1 - (1/(1 + v))^shape1, x > m... | /R/Pareto4.R | no_license | cran/actuar | R | false | false | 1,700 | r | ### actuar: Actuarial Functions and Heavy Tailed Distributions
###
### Definition of the {d,p,q,r,m,lev}pareto4 functions to compute
### characteristics of the Pareto (type) IV distribution. The version
### used in these functions has cumulative distribution function
###
### Pr[X <= x] = 1 - (1/(1 + v))^shape1, x > m... |
server = function(input, output, session) {
gam.t = reactive({ signif(seq(min(input$range.gamma), max(input$range.gamma), length = 500), digits = 4)})
gam.p <- signif(seq(0, 1, length = 500), digits = 4)
gam.C <- reactive({ pgamma(gam.t(), input$kappa, input$theta)})
gam.P <- reactive({ dgamma(gam.t(), input$kapp... | /teachingApps/inst/apps/distribution_gamma_functions/server.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 2,541 | r | server = function(input, output, session) {
gam.t = reactive({ signif(seq(min(input$range.gamma), max(input$range.gamma), length = 500), digits = 4)})
gam.p <- signif(seq(0, 1, length = 500), digits = 4)
gam.C <- reactive({ pgamma(gam.t(), input$kappa, input$theta)})
gam.P <- reactive({ dgamma(gam.t(), input$kapp... |
# SQE API
#
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
#
# The version of the OpenAPI document: v1
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title EditionScriptLinesDTO
#' @description EditionScriptLinesDTO Class
#' @format... | /libs/r/R/edition_script_lines_dto.R | permissive | Scripta-Qumranica-Electronica/SQE_API_Connectors | R | false | false | 2,390 | r | # SQE API
#
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
#
# The version of the OpenAPI document: v1
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title EditionScriptLinesDTO
#' @description EditionScriptLinesDTO Class
#' @format... |
.get_shapeinfo_any <- function(object)
{
if (is.null(object)) return (NULL)
if (inherits(object, "Spatial"))
return (.get_shape_info_from_sp(object))
if (inherits(object, "sf"))
return (.get_shape_info_from_sf(object))
if (inherits(object, "sfc"))
return (.get_shape_info_from_sf(object))
... | /R/arc.shapeinfo.R | permissive | feipsu/r-bridge | R | false | false | 1,419 | r | .get_shapeinfo_any <- function(object)
{
if (is.null(object)) return (NULL)
if (inherits(object, "Spatial"))
return (.get_shape_info_from_sp(object))
if (inherits(object, "sf"))
return (.get_shape_info_from_sf(object))
if (inherits(object, "sfc"))
return (.get_shape_info_from_sf(object))
... |
# INPUT: Contemporary U.S. counties
# Vars: FIPS, Name, 2010 Census pop and centroids (lat and long)
# Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
# OUTPUT: Alternative datasets of county-level rates
# Assumptions: Heterogenous populations across counties
# Left-right global trend, increasing mo... | /CODE_Linear Trend_heterog.R | no_license | jesschen32/LISA | R | false | false | 3,985 | r |
# INPUT: Contemporary U.S. counties
# Vars: FIPS, Name, 2010 Census pop and centroids (lat and long)
# Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
# OUTPUT: Alternative datasets of county-level rates
# Assumptions: Heterogenous populations across counties
# Left-right global trend, increasing mo... |
# Week 1
#
# - differences between commentaries
# - location of intertexts in source
# load base script
source(file.path("R", "loeb.R"))
# functions
book.getter <- Vectorize(function(src, id) {
as.numeric(sub(",.*", "", corpus[[src]]$loc[id]))
}, USE.NAMES=F)
# load the texts
index.file <- file.path("data", "i... | /scripts/week-1.R | no_license | cwf2/unige.achilleid | R | false | false | 3,151 | r | # Week 1
#
# - differences between commentaries
# - location of intertexts in source
# load base script
source(file.path("R", "loeb.R"))
# functions
book.getter <- Vectorize(function(src, id) {
as.numeric(sub(",.*", "", corpus[[src]]$loc[id]))
}, USE.NAMES=F)
# load the texts
index.file <- file.path("data", "i... |
library(embryogrowth)
### Name: resultNest_6p_SSM
### Title: Fit using the nest database
### Aliases: resultNest_6p_SSM
### Keywords: datasets
### ** Examples
## Not run:
##D library(embryogrowth)
##D data(nest)
##D formated <- FormatNests(nest)
##D x <- structure(c(104.954347370542, 3447.10062406071, 661.26936392... | /data/genthat_extracted_code/embryogrowth/examples/resultNest_6p_SSM.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 769 | r | library(embryogrowth)
### Name: resultNest_6p_SSM
### Title: Fit using the nest database
### Aliases: resultNest_6p_SSM
### Keywords: datasets
### ** Examples
## Not run:
##D library(embryogrowth)
##D data(nest)
##D formated <- FormatNests(nest)
##D x <- structure(c(104.954347370542, 3447.10062406071, 661.26936392... |
library(dplyr)
library(reshape2)
library(MASS)
library(leaps)
library(glmnet)
require(caret)
library(randomForest)
library(ggplot2)
# Read in Data
e = read.csv("FULL.csv",stringsAsFactors = F)
# Clean-up
e = e %>%
mutate(Dept.Name = as.factor(Dept.Name),
AcctgMonth = as.Date(AcctgMonth,"%m/%... | /VarSelect_PredModeling.R | no_license | duantl96/Emission | R | false | false | 6,055 | r | library(dplyr)
library(reshape2)
library(MASS)
library(leaps)
library(glmnet)
require(caret)
library(randomForest)
library(ggplot2)
# Read in Data
e = read.csv("FULL.csv",stringsAsFactors = F)
# Clean-up
e = e %>%
mutate(Dept.Name = as.factor(Dept.Name),
AcctgMonth = as.Date(AcctgMonth,"%m/%... |
#
# This test file has been generated by kwb.test::create_test_files()
# launched by user micha on 2020-06-03 23:21:57.
# Your are strongly encouraged to modify the dummy functions
# so that real cases are tested. You should then delete this comment.
#
test_that("create_directories() works", {
expect_error(
kwb... | /tests/testthat/test-function-create_directories.R | permissive | KWB-R/kwb.nextcloud | R | false | false | 412 | r | #
# This test file has been generated by kwb.test::create_test_files()
# launched by user micha on 2020-06-03 23:21:57.
# Your are strongly encouraged to modify the dummy functions
# so that real cases are tested. You should then delete this comment.
#
test_that("create_directories() works", {
expect_error(
kwb... |
if (getwd() != "E:/class/statistic/BIO384K/repeat"){
setwd("E:/class/statistic/BIO384K/repeat")
}
# https://www.kaggle.com/jonathanbouchet/forecasting-beijing-s-housing
getwd()
library(dplyr)
library(tidyverse)
library(reshape2)
library(visdat)
library(lubridate)
library(ggplot2)
library(viridis)
library(psych)
libra... | /data_preprocess.R | no_license | ningzesun1993/replication_assignment | R | false | false | 13,659 | r | if (getwd() != "E:/class/statistic/BIO384K/repeat"){
setwd("E:/class/statistic/BIO384K/repeat")
}
# https://www.kaggle.com/jonathanbouchet/forecasting-beijing-s-housing
getwd()
library(dplyr)
library(tidyverse)
library(reshape2)
library(visdat)
library(lubridate)
library(ggplot2)
library(viridis)
library(psych)
libra... |
library(tidyverse)
packs <- c('scales', 'ggvis', 'sp', 'rgdal', 'ggmap', 'maps', 'mapdata', 'mapproj', 'maptools', 'raster', 'rasterVis',
'rnaturalearth', 'rnaturalearthdata', 'rnaturalearthhires', 'choroplethr', 'choroplethrMaps', 'XML', 'demogR', 'acs')
lapply(packs, require, character.only = TRUE)
| /.Rprofile | permissive | bateyt/marra | R | false | false | 313 | rprofile | library(tidyverse)
packs <- c('scales', 'ggvis', 'sp', 'rgdal', 'ggmap', 'maps', 'mapdata', 'mapproj', 'maptools', 'raster', 'rasterVis',
'rnaturalearth', 'rnaturalearthdata', 'rnaturalearthhires', 'choroplethr', 'choroplethrMaps', 'XML', 'demogR', 'acs')
lapply(packs, require, character.only = TRUE)
|
#' @title Calculates Angles between 3 Points
#' @name WinkelCalc
#' @description Calculates all three angles for an imaginary right triangle
#' between the actual turbine, the possible influencing turbine and a
#' right angle. The function works as well with non-right triangles, although
#' it is not needed for the ge... | /R/WinkelCalc.R | no_license | aganbal/windfarmGA | R | false | false | 2,170 | r | #' @title Calculates Angles between 3 Points
#' @name WinkelCalc
#' @description Calculates all three angles for an imaginary right triangle
#' between the actual turbine, the possible influencing turbine and a
#' right angle. The function works as well with non-right triangles, although
#' it is not needed for the ge... |
####################################################################
# Creator: Cindy S Cheung
# Script Name: Sector Univariate Time Series Analysis
# Purpose: For every sector, extract/downlaod historical data and
# produce univariate plots that evaluates the rate of
# return.
# Version: 1.0
... | /QuantitativeAnalysis/R/Setup/Sectors.R | no_license | CindySCheung/DataSciencePortfolio | R | false | false | 10,703 | r | ####################################################################
# Creator: Cindy S Cheung
# Script Name: Sector Univariate Time Series Analysis
# Purpose: For every sector, extract/downlaod historical data and
# produce univariate plots that evaluates the rate of
# return.
# Version: 1.0
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extend_quantmod.R
\name{get_adjusted_close_column}
\alias{get_adjusted_close_column}
\title{get_adjusted_close_column}
\usage{
get_adjusted_close_column(stock_xts_obj)
}
\arguments{
\item{stock_xts_obj}{}
}
\value{
the adjusted close column o... | /man/get_adjusted_close_column.Rd | no_license | gmahjub/steal-basis-r | R | false | true | 418 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extend_quantmod.R
\name{get_adjusted_close_column}
\alias{get_adjusted_close_column}
\title{get_adjusted_close_column}
\usage{
get_adjusted_close_column(stock_xts_obj)
}
\arguments{
\item{stock_xts_obj}{}
}
\value{
the adjusted close column o... |
#
# 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)
library(raster)
attach('model.bin')
attach('metadata.bin')
library(FedData)
#library(mag... | /server.R | no_license | rmalarc/SurgeModeling | R | false | false | 15,213 | 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)
library(raster)
attach('model.bin')
attach('metadata.bin')
library(FedData)
#library(mag... |
library(Dowd)
### Name: CdfOfSumUsingProductCopula
### Title: Derives prob ( X + Y < quantile) using Product copula
### Aliases: CdfOfSumUsingProductCopula
### ** Examples
# Prob ( X + Y < q ) using Product Copula for X with mean 2.3 and std. .2
# and Y with mean 4.5 and std. 1.5 with beta 1.2 at 0.9 quantile
... | /data/genthat_extracted_code/Dowd/examples/CdfOfSumUsingProductCopula.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 376 | r | library(Dowd)
### Name: CdfOfSumUsingProductCopula
### Title: Derives prob ( X + Y < quantile) using Product copula
### Aliases: CdfOfSumUsingProductCopula
### ** Examples
# Prob ( X + Y < q ) using Product Copula for X with mean 2.3 and std. .2
# and Y with mean 4.5 and std. 1.5 with beta 1.2 at 0.9 quantile
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stage1.R
\name{txids_get}
\alias{txids_get}
\title{Searches for descendant taxonomic IDs}
\usage{
txids_get(ps, retmax = 10000)
}
\arguments{
\item{ps}{Parameters list, generated with parameters()}
\item{retmax}{integer, maximum number of ID... | /man/txids_get.Rd | permissive | cnyuanh/phylotaR | R | false | true | 2,481 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stage1.R
\name{txids_get}
\alias{txids_get}
\title{Searches for descendant taxonomic IDs}
\usage{
txids_get(ps, retmax = 10000)
}
\arguments{
\item{ps}{Parameters list, generated with parameters()}
\item{retmax}{integer, maximum number of ID... |
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 1623998355L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... | /dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615938383-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 826 | r | testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 1623998355L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... |
# This is for the Coursera Exploratory data Analysis class, Project 1, plot 1.
# This R code will generate a file called "plot1.png" and place it in your working directory
# First, download the data set from UC Irvine Machine Learning Repository (see link in README.md file)
# Be sure to set your working directory to w... | /plot1.R | no_license | ctsmightydog/ExData_Plotting1 | R | false | false | 1,108 | r | # This is for the Coursera Exploratory data Analysis class, Project 1, plot 1.
# This R code will generate a file called "plot1.png" and place it in your working directory
# First, download the data set from UC Irvine Machine Learning Repository (see link in README.md file)
# Be sure to set your working directory to w... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/trainModels.R
\name{decTree}
\alias{decTree}
\title{decTree: Trains a decision tree model}
\usage{
decTree(plpdata, databaseSchema, cohortId, outcomeId, outputFolder)
}
\arguments{
\item{databaseSchema}{The database schema that contai... | /extraModels/man/decTree.Rd | permissive | jreps/inProgress | R | false | false | 929 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/trainModels.R
\name{decTree}
\alias{decTree}
\title{decTree: Trains a decision tree model}
\usage{
decTree(plpdata, databaseSchema, cohortId, outcomeId, outputFolder)
}
\arguments{
\item{databaseSchema}{The database schema that contai... |
#' @title Dr.s Sally Gall and Dan Cohan HSI Function
#'
#' @description Calculates the HSI given the values of forb cover, forb height, grass cover, grass height, shrub cover, shrub height, tree cover, bare ground, forb diversity, and grass diversity.
#'
#' @param fcs Forb cover in spring/summer measured as the avera... | /MBQhsi/R/SGDChsi.R | no_license | rocrat/MBQ_Package | R | false | false | 4,207 | r | #' @title Dr.s Sally Gall and Dan Cohan HSI Function
#'
#' @description Calculates the HSI given the values of forb cover, forb height, grass cover, grass height, shrub cover, shrub height, tree cover, bare ground, forb diversity, and grass diversity.
#'
#' @param fcs Forb cover in spring/summer measured as the avera... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pattern.R
\name{pattern}
\alias{pattern}
\alias{pattern<-}
\title{Returns and updates pattern attribute.}
\usage{
pattern(x)
pattern(x) <- value
}
\arguments{
\item{x}{surveydata object}
\item{value}{New value}
}
\description{
The pattern a... | /man/pattern.Rd | no_license | evanodell/surveydata | R | false | true | 1,323 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pattern.R
\name{pattern}
\alias{pattern}
\alias{pattern<-}
\title{Returns and updates pattern attribute.}
\usage{
pattern(x)
pattern(x) <- value
}
\arguments{
\item{x}{surveydata object}
\item{value}{New value}
}
\description{
The pattern a... |
#' @export
dodo = function(sx=1, dhs, backward=FALSE, fixpars = FALSE, ICAR=TRUE, n_cores=4,
test=FALSE, sub_set=0) {
library(tidyverse)
library(magrittr)
set.seed(2020)
meta <- list() # track used metadata for post-processing
meta$seed <- 2020
# Read and prep data
dhs %<>%
mutate_if(is.integer, as.double)... | /R/dodo.R | permissive | kklot/mxtmb | R | false | false | 3,278 | r | #' @export
dodo = function(sx=1, dhs, backward=FALSE, fixpars = FALSE, ICAR=TRUE, n_cores=4,
test=FALSE, sub_set=0) {
library(tidyverse)
library(magrittr)
set.seed(2020)
meta <- list() # track used metadata for post-processing
meta$seed <- 2020
# Read and prep data
dhs %<>%
mutate_if(is.integer, as.double)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayesianlm.R
\name{bayesianlm}
\alias{bayesianlm}
\title{Simple bayesian regression function.}
\usage{
bayesianlm(
X,
y,
priorMean,
priorPrecision,
priorIntercept = 0,
regweights,
includeIntercept = F
)
}
\arguments{
\item{X}{da... | /man/bayesianlm.Rd | permissive | ANTsX/ANTsR | R | false | true | 4,127 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayesianlm.R
\name{bayesianlm}
\alias{bayesianlm}
\title{Simple bayesian regression function.}
\usage{
bayesianlm(
X,
y,
priorMean,
priorPrecision,
priorIntercept = 0,
regweights,
includeIntercept = F
)
}
\arguments{
\item{X}{da... |
#!/usr/bin/env Rscript
localdir = getwd()
clustering_level = 'Genus'
analysis_type = 'beta_diversity'
knitr_options="
knitr::opts_chunk$set(
echo=TRUE,
# dpi=300,
fig.width=6,
fig.height=6
)"
relative_abundance_cutoff = 0.002
prevalence_cutoff = 0.1
min_count_cutoff = 0
#all_covariate_names = 'c("CaseString"... | /amd_templates/metadata/beta_diversity/analysis_metadata.R | no_license | ohsu-microbiome/utilities | R | false | false | 541 | r | #!/usr/bin/env Rscript
localdir = getwd()
clustering_level = 'Genus'
analysis_type = 'beta_diversity'
knitr_options="
knitr::opts_chunk$set(
echo=TRUE,
# dpi=300,
fig.width=6,
fig.height=6
)"
relative_abundance_cutoff = 0.002
prevalence_cutoff = 0.1
min_count_cutoff = 0
#all_covariate_names = 'c("CaseString"... |
## SETUP
## Drinking water and PTB sybling analysis
## Author: A. Sherris
# define options for project
# define exposure of interest
# options: "Arsenic", "Nitrate", "Perchlorate"
# potential options for future research: "Uranium", "Chromium (VI)", "Gross Alpha","Selenium",
# "Mercury", "Iron", "Manganese", "... | /code/0_config.R | permissive | arsherris/nitrate-and-preterm-birth | R | false | false | 1,648 | r | ## SETUP
## Drinking water and PTB sybling analysis
## Author: A. Sherris
# define options for project
# define exposure of interest
# options: "Arsenic", "Nitrate", "Perchlorate"
# potential options for future research: "Uranium", "Chromium (VI)", "Gross Alpha","Selenium",
# "Mercury", "Iron", "Manganese", "... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp450}
\alias{spp450}
\title{species function}
\usage{
spp450(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... | /man/spp450.Rd | permissive | Djeppschmidt/Model.Microbiome | R | false | true | 456 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp450}
\alias{spp450}
\title{species function}
\usage{
spp450(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... |
# ==========================================================
#
# 生信技能树转录组入门课程 -- 差异分析结果的功能注释
# • 导入差异分析结果,判断显著差异基因
# • 画个火山图看看挑选的差异基因合理与否
# • 显著差异基因的GO/KEGG注释
# • OrgDb类型注释数据学习,了解基因注释原理其实是ID转换
#
# ==========================================================
# 在开始之前保证当前项目目录下面存在以下文件:
# • ... | /script/function_DEG.R | permissive | todaroroad/RNA_seq_Biotrainee | R | false | false | 11,194 | r | # ==========================================================
#
# 生信技能树转录组入门课程 -- 差异分析结果的功能注释
# • 导入差异分析结果,判断显著差异基因
# • 画个火山图看看挑选的差异基因合理与否
# • 显著差异基因的GO/KEGG注释
# • OrgDb类型注释数据学习,了解基因注释原理其实是ID转换
#
# ==========================================================
# 在开始之前保证当前项目目录下面存在以下文件:
# • ... |
\name{UVError}
\alias{UVError}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Calculation of the elements of the 2D MSE terms
}
\description{
This function calculates the different terms in the 2D MSE equation, the rotation of EOFs and so on for a unique given model. This function is inte... | /man/UVError.Rd | no_license | cran/SailoR | R | false | false | 2,807 | rd | \name{UVError}
\alias{UVError}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Calculation of the elements of the 2D MSE terms
}
\description{
This function calculates the different terms in the 2D MSE equation, the rotation of EOFs and so on for a unique given model. This function is inte... |
# Stepwise Feature Selection/Elimination
# takes a ML model and a dataset with a list of additional features to choose from
| /script/archive/test_stepwise_FE.R | no_license | genpack/tutorials | R | false | false | 127 | r | # Stepwise Feature Selection/Elimination
# takes a ML model and a dataset with a list of additional features to choose from
|
# Loading the essential packages
pack_vec <- c("tictoc", "zeallot", "stringr", "quanteda", "tidyr", "dplyr", "ggplot2")
sapply(pack_vec, require, character.only = TRUE)
quanteda_options("threads" = 8)
text_files <- list.files("final/en_US")
prefix <- paste0(getwd(), "/final/en_US/")
text_files <- paste0(prefix, text_f... | /alpha_model.R | no_license | SteveWang1992/SteveWang1992 | R | false | false | 2,073 | r | # Loading the essential packages
pack_vec <- c("tictoc", "zeallot", "stringr", "quanteda", "tidyr", "dplyr", "ggplot2")
sapply(pack_vec, require, character.only = TRUE)
quanteda_options("threads" = 8)
text_files <- list.files("final/en_US")
prefix <- paste0(getwd(), "/final/en_US/")
text_files <- paste0(prefix, text_f... |
#' @title Returns a subset of data-frame or matrix
#'
#' @description Returns a random subset of columns of a data-frame or matrix
#'
#' @param origData A \code{matrix} object or a \code{data-frame}
#' @param Seed To randomize, specify any Seed you desire
#' @param sampleSize The number of columns to sample, from the... | /R/sampleColumns.R | no_license | snandi/RFunctionsSN | R | false | false | 1,139 | r | #' @title Returns a subset of data-frame or matrix
#'
#' @description Returns a random subset of columns of a data-frame or matrix
#'
#' @param origData A \code{matrix} object or a \code{data-frame}
#' @param Seed To randomize, specify any Seed you desire
#' @param sampleSize The number of columns to sample, from the... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_description.R
\docType{data}
\name{SFO2013}
\alias{SFO2013}
\title{Data - Ambient Temperature for the City of San Francisco for all of 2013}
\usage{
data(SFO2013)
}
\description{
This is a data frame of Ambient temperature data, extracte... | /man/SFO2013.Rd | no_license | jmallon/weatherData | R | false | true | 635 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_description.R
\docType{data}
\name{SFO2013}
\alias{SFO2013}
\title{Data - Ambient Temperature for the City of San Francisco for all of 2013}
\usage{
data(SFO2013)
}
\description{
This is a data frame of Ambient temperature data, extracte... |
##' This package just contains data on seedlings and their associated
##' substrates from Mt. Moosilauke.
##' @name seedsub
##' @import data.table
NULL
| /R/seedsub.R | no_license | nverno/seedsub | R | false | false | 153 | r | ##' This package just contains data on seedlings and their associated
##' substrates from Mt. Moosilauke.
##' @name seedsub
##' @import data.table
NULL
|
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 6.79038653108887e-313, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615785087-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 6.79038653108887e-313, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
#' Make temperature scenario relative to a particular baseline
#'
#' When interpreting future (or past) temperature scenarios that provide absolute temperatures,
#' it is important to consider the temperature baseline, i.e. a temperature scenario produced with
#' similar models and methods that corresponds to the ... | /fuzzedpackages/chillR/R/temperature_scenario_baseline_adjustment.R | no_license | akhikolla/testpackages | R | false | false | 13,062 | r | #' Make temperature scenario relative to a particular baseline
#'
#' When interpreting future (or past) temperature scenarios that provide absolute temperatures,
#' it is important to consider the temperature baseline, i.e. a temperature scenario produced with
#' similar models and methods that corresponds to the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.R
\name{Dataset.count}
\alias{Dataset.count}
\title{Dataset.count}
\usage{
Dataset.count(id, ...)
}
\arguments{
\item{id}{The ID of a SolveBio dataset, or a Dataset object.}
\item{...}{(optional) Additional query parameters (e.g. fil... | /man/Dataset.count.Rd | no_license | stevekm/solvebio-r | R | false | true | 682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.R
\name{Dataset.count}
\alias{Dataset.count}
\title{Dataset.count}
\usage{
Dataset.count(id, ...)
}
\arguments{
\item{id}{The ID of a SolveBio dataset, or a Dataset object.}
\item{...}{(optional) Additional query parameters (e.g. fil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_abun_profile.r
\name{calc_abun_profile}
\alias{calc_abun_profile}
\title{Abundance profiles}
\usage{
calc_abun_profile(locs, t_window, sim, N_S)
}
\arguments{
\item{locs}{(required) either a two-column matrix of cell locations where
spe... | /Code/CTSim 2/man/calc_abun_profile.Rd | no_license | hurlbertlab/core-transient-simulation | R | false | true | 2,237 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_abun_profile.r
\name{calc_abun_profile}
\alias{calc_abun_profile}
\title{Abundance profiles}
\usage{
calc_abun_profile(locs, t_window, sim, N_S)
}
\arguments{
\item{locs}{(required) either a two-column matrix of cell locations where
spe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.