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 |
|---|---|---|---|---|---|---|---|---|---|
#' Function to visualise comparative enrichment results using a direct acyclic graph (DAG)
#'
#' \code{xEnrichDAGplotAdv} is supposed to visualise the comparative enrichment results (see the function \code{\link{xEnrichCompare}})) using a direct acyclic graph (DAG). Nodes/terms can be colored according to how many time... | /R/xEnrichDAGplotAdv.r | no_license | cran/XGR | R | false | false | 10,965 | r | #' Function to visualise comparative enrichment results using a direct acyclic graph (DAG)
#'
#' \code{xEnrichDAGplotAdv} is supposed to visualise the comparative enrichment results (see the function \code{\link{xEnrichCompare}})) using a direct acyclic graph (DAG). Nodes/terms can be colored according to how many time... |
my.visualize_clusters<-function (cluster_result, projection, colour = NULL, alpha = 1,
marker_size = 0.1, title = NULL, legend_anno = NULL)
{
cluster_ids <- sort(unique(as.vector(cluster_result)))
if (is.vector(cluster_result)) {
if (dim(projection)[1] != length(cluster_result... | /Rcode/my_visualize_clusters.R | no_license | QianlJun/R | R | false | false | 3,005 | r | my.visualize_clusters<-function (cluster_result, projection, colour = NULL, alpha = 1,
marker_size = 0.1, title = NULL, legend_anno = NULL)
{
cluster_ids <- sort(unique(as.vector(cluster_result)))
if (is.vector(cluster_result)) {
if (dim(projection)[1] != length(cluster_result... |
library(class)
library(adabag)
library(randomForest)
data(Vehicle)
l.obs <- nrow(Vehicle)
sub <-sample(1:l.obs,round(l.obs/3),replace = FALSE)
V.train <- Vehicle[-sub,]
V.test <- Vehicle[sub,]
Vehicle.adaboost <- bagging(Class ~.,data=V.train,boos=TRUE,mfinal=3 )
result <-predict(Vehicle.adaboost,V.test[-1... | /Zajecia4/zad4b.R | no_license | mkazber/AI | R | false | false | 464 | r | library(class)
library(adabag)
library(randomForest)
data(Vehicle)
l.obs <- nrow(Vehicle)
sub <-sample(1:l.obs,round(l.obs/3),replace = FALSE)
V.train <- Vehicle[-sub,]
V.test <- Vehicle[sub,]
Vehicle.adaboost <- bagging(Class ~.,data=V.train,boos=TRUE,mfinal=3 )
result <-predict(Vehicle.adaboost,V.test[-1... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{ie_earmarks}
\alias{ie_earmarks}
\title{Search itemized earmark requests through FY 2010.}
\usage{
ie_earmarks(amount = NULL, bill = NULL, city = NULL, description = NULL,
member = NULL, member_party = NULL, member_state = NULL,
recipient = NULL, year = NUL... | /man/ie_earmarks.Rd | permissive | FiveGen/rsunlight | R | false | false | 4,320 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{ie_earmarks}
\alias{ie_earmarks}
\title{Search itemized earmark requests through FY 2010.}
\usage{
ie_earmarks(amount = NULL, bill = NULL, city = NULL, description = NULL,
member = NULL, member_party = NULL, member_state = NULL,
recipient = NULL, year = NUL... |
pyr <- function(n) {
for(i in 1:n) {
cat(5-i+1)
for( j in i:1){
cat(j)
}
cat("\n")
}
}
pyr(5) | /lab6/pyramid.r | no_license | Cryptonex7/Data-Analytics-in-R | R | false | false | 144 | r | pyr <- function(n) {
for(i in 1:n) {
cat(5-i+1)
for( j in i:1){
cat(j)
}
cat("\n")
}
}
pyr(5) |
# Constraint Method LLL Model
# Different variances for all three segments
con.search.D <- function(x, y, n, jlo, jhi, klo, khi,plot)
{
fjk <- matrix(0, n, n)
fxy <- matrix(0, (jhi - jlo + 1), (khi - klo + 1))
## Yulei's edit to avoid using for-loop
jkgrid <- expand.grid(jlo:jhi, klo:khi)
res <- data.frame(j = j... | /hcp/R/MethConL.D.R | no_license | ingted/R-Examples | R | false | false | 5,083 | r | # Constraint Method LLL Model
# Different variances for all three segments
con.search.D <- function(x, y, n, jlo, jhi, klo, khi,plot)
{
fjk <- matrix(0, n, n)
fxy <- matrix(0, (jhi - jlo + 1), (khi - klo + 1))
## Yulei's edit to avoid using for-loop
jkgrid <- expand.grid(jlo:jhi, klo:khi)
res <- data.frame(j = j... |
## generate data set for kmeans
## require(graphics)
## a 2-dimensional example
n <- 10000
x <- rbind(matrix(rnorm(n, sd = 0.3), ncol = 2),
matrix(rnorm(n, mean = 1, sd = 0.3), ncol = 2),
matrix(c(rnorm(n/2, sd=0.3), rnorm(n/2, mean=1.5, sd=0.3)), ncol=2))
colnames(x) <- c("x", "y")
cl <- kmeans... | /kmeans_migration/test04.R | no_license | walkingsparrow/tests | R | false | false | 1,744 | r | ## generate data set for kmeans
## require(graphics)
## a 2-dimensional example
n <- 10000
x <- rbind(matrix(rnorm(n, sd = 0.3), ncol = 2),
matrix(rnorm(n, mean = 1, sd = 0.3), ncol = 2),
matrix(c(rnorm(n/2, sd=0.3), rnorm(n/2, mean=1.5, sd=0.3)), ncol=2))
colnames(x) <- c("x", "y")
cl <- kmeans... |
library(survival)
library(rms)
#Load car package for outlier analysis
require(car)
pharynx <- read.csv("C://Users//lenovo//Desktop//R Day//pharynx.csv"
, header=TRUE)
head(pharynx)
summary(pharynx)
#Cox PH with COND, T_STAGE, and N_STAGE as our predictors and TX stratified
cox.ph_1 <- coxph(Surv(x$... | /R_Day.R | no_license | ayoubimaya/pharynx | R | false | false | 2,780 | r | library(survival)
library(rms)
#Load car package for outlier analysis
require(car)
pharynx <- read.csv("C://Users//lenovo//Desktop//R Day//pharynx.csv"
, header=TRUE)
head(pharynx)
summary(pharynx)
#Cox PH with COND, T_STAGE, and N_STAGE as our predictors and TX stratified
cox.ph_1 <- coxph(Surv(x$... |
###################################################################################################
#' Mexican Hat function call interface for SPOT, deprecated
#'
#' SPOT uses this function for some demos to call the \code{\link{spotMexicanHatFunction}} function
#'
#' @param spotConfig Contains the list of spo... | /SPOT/R/spotFuncStartMexicanHat.R | no_license | ingted/R-Examples | R | false | false | 4,154 | r |
###################################################################################################
#' Mexican Hat function call interface for SPOT, deprecated
#'
#' SPOT uses this function for some demos to call the \code{\link{spotMexicanHatFunction}} function
#'
#' @param spotConfig Contains the list of spo... |
\name{crq}
\alias{crq}
\alias{print.crq}
\title{Function to fit censored quantile regression model}
\description{Fits a conditional quantile regression model for censored data.}
\usage{
crq(formula, data, subset, weights, na.action, method = "grid", contrasts = NULL, ...)
}
\arguments{
\item{formula}{A formula objec... | /man/crq.Rd | no_license | cran/crq | R | false | false | 3,867 | rd | \name{crq}
\alias{crq}
\alias{print.crq}
\title{Function to fit censored quantile regression model}
\description{Fits a conditional quantile regression model for censored data.}
\usage{
crq(formula, data, subset, weights, na.action, method = "grid", contrasts = NULL, ...)
}
\arguments{
\item{formula}{A formula objec... |
/watershedsData/calculateWatershedsData.R | no_license | llllllllc/watershedsData | R | false | false | 8,704 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_acaps_npi_data.R
\name{download_acaps_npi_data}
\alias{download_acaps_npi_data}
\title{Download non-pharmaceutical interventions data}
\usage{
download_acaps_npi_data(silent = FALSE, cached = FALSE)
}
\arguments{
\item{silent}{Whethe... | /man/download_acaps_npi_data.Rd | no_license | josephignace/tidycovid19 | R | false | true | 1,341 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_acaps_npi_data.R
\name{download_acaps_npi_data}
\alias{download_acaps_npi_data}
\title{Download non-pharmaceutical interventions data}
\usage{
download_acaps_npi_data(silent = FALSE, cached = FALSE)
}
\arguments{
\item{silent}{Whethe... |
# FCMS Implementation
#
#
# Author: Tai-Hsien Ou Yang
###############################################################################
cvList<-function( population ,fd=10){
cv.mat <- matrix(0,nrow=population,ncol=fd)
cv=list()
for(i in 1:fd){
cv.mat[,i]= sample(1:population ,replace=FALSE)
cv[[i]]=list... | /survCluster.R | no_license | th86/SurvivalCluster | R | false | false | 5,619 | r | # FCMS Implementation
#
#
# Author: Tai-Hsien Ou Yang
###############################################################################
cvList<-function( population ,fd=10){
cv.mat <- matrix(0,nrow=population,ncol=fd)
cv=list()
for(i in 1:fd){
cv.mat[,i]= sample(1:population ,replace=FALSE)
cv[[i]]=list... |
survIPCW <-
function (object, x, y, z.name, z.value, bw = "dpik", window = "gaussian",
method.weights = "NW", conf = FALSE, n.boot = 200, conf.level = 0.95,
lower.tail = FALSE, cluster = FALSE, ncores = NULL)
{
obj <- object[[1]]
covar <- which(names(object[[1]]) == z.name)
if... | /R/survIPCW.R | no_license | sestelo/condsurv | R | false | false | 21,191 | r | survIPCW <-
function (object, x, y, z.name, z.value, bw = "dpik", window = "gaussian",
method.weights = "NW", conf = FALSE, n.boot = 200, conf.level = 0.95,
lower.tail = FALSE, cluster = FALSE, ncores = NULL)
{
obj <- object[[1]]
covar <- which(names(object[[1]]) == z.name)
if... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colwise-mutate.R
\name{mutate_all}
\alias{mutate_all}
\alias{mutate_if}
\alias{mutate_at}
\alias{transmute_all}
\alias{transmute_if}
\alias{transmute_at}
\title{Mutate multiple columns}
\usage{
mutate_all(.tbl, .funs, ...)
mutate_if(.tbl, .p... | /man/mutate_all.Rd | permissive | tidyverse/dplyr | R | false | true | 7,009 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colwise-mutate.R
\name{mutate_all}
\alias{mutate_all}
\alias{mutate_if}
\alias{mutate_at}
\alias{transmute_all}
\alias{transmute_if}
\alias{transmute_at}
\title{Mutate multiple columns}
\usage{
mutate_all(.tbl, .funs, ...)
mutate_if(.tbl, .p... |
###this is to test any read/percentage question, 1) reads mapped 2) ascomycetes 3) eurotiomycetes
setwd("/Users/kc178/Documents/HiSeq1269/newtaxa_combine_0119/taxa_sum/")
raw_read<-read.delim("LR3_MP_otutable.txt", sep="\t", header=TRUE)
raw_read_data<- raw_read[,2:10]
# read_N<- vector(mode="list", length=9)
read_N<... | /reads_anova_v2.R | no_license | cocomushroom/meta_commu | R | false | false | 21,557 | r | ###this is to test any read/percentage question, 1) reads mapped 2) ascomycetes 3) eurotiomycetes
setwd("/Users/kc178/Documents/HiSeq1269/newtaxa_combine_0119/taxa_sum/")
raw_read<-read.delim("LR3_MP_otutable.txt", sep="\t", header=TRUE)
raw_read_data<- raw_read[,2:10]
# read_N<- vector(mode="list", length=9)
read_N<... |
#' The ASSIST Trial baseline data from Yudkin and Moher 2001 consist of 21
#' general practices containing 2142 patients used for the design of a
#' randomized trial which assigned to three treatments aiming to compare methods
#' of preventing coronary heart disease. We have expanded the aggregated data
#' from the pra... | /R/ym_long.R | no_license | cran/RItools | R | false | false | 1,746 | r | #' The ASSIST Trial baseline data from Yudkin and Moher 2001 consist of 21
#' general practices containing 2142 patients used for the design of a
#' randomized trial which assigned to three treatments aiming to compare methods
#' of preventing coronary heart disease. We have expanded the aggregated data
#' from the pra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trophic_ecology.R
\name{ration}
\alias{ration}
\title{ration}
\usage{
ration(species_list = NULL, fields = NULL, server = NULL, ...)
}
\arguments{
\item{species_list}{A vector of scientific names (each element as "genus species"). If empty, a... | /man/ration.Rd | no_license | Farewe/rfishbase | R | false | true | 1,114 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trophic_ecology.R
\name{ration}
\alias{ration}
\title{ration}
\usage{
ration(species_list = NULL, fields = NULL, server = NULL, ...)
}
\arguments{
\item{species_list}{A vector of scientific names (each element as "genus species"). If empty, a... |
shinyServer(function(input, output, session) {
# Combine the selected variables into a new data frame
selectedData <- reactive({
mtcars[, c(input$xcol, input$ycol)]
})
clusters <- reactive({
kmeans(selectedData(), input... | /server.r | no_license | francoisnguyen/datasciencecoursera | R | false | false | 654 | r |
shinyServer(function(input, output, session) {
# Combine the selected variables into a new data frame
selectedData <- reactive({
mtcars[, c(input$xcol, input$ycol)]
})
clusters <- reactive({
kmeans(selectedData(), input... |
# calculate standard deviation using n
std <- function(x) {
# calculate standard deviation with denominator of n
return(sqrt(mean((x-mean(x, na.rm = T))^2, na.rm = T)))
}
# normalize CADD scores
simple.normalize <- function(x) {
norm.val <- (x - min(x, na.rm=T)) / (max(x, na.rm=T) - min(x, na.rm=T))
if (all(is... | /analysis_scripts/gtex/association_tests/faster.gtex_power_test.modified.fixed.more_perm.speed_up.other_tissues.regress_out_common_eqtls.R | permissive | avallonking/LRTq | R | false | false | 26,842 | r | # calculate standard deviation using n
std <- function(x) {
# calculate standard deviation with denominator of n
return(sqrt(mean((x-mean(x, na.rm = T))^2, na.rm = T)))
}
# normalize CADD scores
simple.normalize <- function(x) {
norm.val <- (x - min(x, na.rm=T)) / (max(x, na.rm=T) - min(x, na.rm=T))
if (all(is... |
`sens2` <- function(x)
{
.Call(dplR.sens2, as.double(x[!is.na(x)]))
}
| /R/sens2.R | no_license | AndyBunn/dplR | R | false | false | 74 | r | `sens2` <- function(x)
{
.Call(dplR.sens2, as.double(x[!is.na(x)]))
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/closed_curly_linter.R
\name{closed_curly_linter}
\alias{closed_curly_linter}
\title{Closed curly linter}
\usage{
closed_curly_linter(allow_single_line = FALSE)
}
\arguments{
\item{allow_single_line}{if \code{TRUE}, allow an open and closed cu... | /man/closed_curly_linter.Rd | permissive | fabian-s/lintr | R | false | true | 692 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/closed_curly_linter.R
\name{closed_curly_linter}
\alias{closed_curly_linter}
\title{Closed curly linter}
\usage{
closed_curly_linter(allow_single_line = FALSE)
}
\arguments{
\item{allow_single_line}{if \code{TRUE}, allow an open and closed cu... |
source("figure generator/library_path.R")
############## Pannel 3 A
data_2 = read.delim(paste("data/Data2_supp.tab",sep=""),comment.char = "#")
data_2 = data_2[data_2$species %in% arbrePhylo$tip.label,]
data_2$average_mira=data_2$average_mira * 100
data_2$framepreserving_proportion=data_2$framepreserving_proportion *... | /figure generator/Figure3.R | no_license | FloBeni/2023-alternative_splicing | R | false | false | 9,693 | r | source("figure generator/library_path.R")
############## Pannel 3 A
data_2 = read.delim(paste("data/Data2_supp.tab",sep=""),comment.char = "#")
data_2 = data_2[data_2$species %in% arbrePhylo$tip.label,]
data_2$average_mira=data_2$average_mira * 100
data_2$framepreserving_proportion=data_2$framepreserving_proportion *... |
#Problem 3.3
library(tswge)
#a
factor.wge(phi = c(1.55, -1, .25))
#All the roots are outside the unit circle so this autoregressive process is stationary.
#b
factor.wge(phi = c(2, -1.76, 1.6, -.77))
#We see that since the characteristic equation has a root inside the unit circle (0.8349) this autoregressive process i... | /Unit04/Problem3_3.R | no_license | cmadding/MSDS6373 | R | false | false | 727 | r | #Problem 3.3
library(tswge)
#a
factor.wge(phi = c(1.55, -1, .25))
#All the roots are outside the unit circle so this autoregressive process is stationary.
#b
factor.wge(phi = c(2, -1.76, 1.6, -.77))
#We see that since the characteristic equation has a root inside the unit circle (0.8349) this autoregressive process i... |
##### To generate the 'plot1.png' file source this file and run 'plot1()'.
# We use the 'data.table' package. If not avail, script asks for it and does not mess with user's library:
if (!isTRUE(require(data.table)))
stop("The 'data.table' package is needed, please use 'install.packages(\"data.table\")' to load i... | /plot1.R | no_license | mmest/ExData_Plotting1 | R | false | false | 2,159 | r | ##### To generate the 'plot1.png' file source this file and run 'plot1()'.
# We use the 'data.table' package. If not avail, script asks for it and does not mess with user's library:
if (!isTRUE(require(data.table)))
stop("The 'data.table' package is needed, please use 'install.packages(\"data.table\")' to load i... |
#############################################################################
# Manx Shearwater Tracking Study
# - note that some birds were tracked in 2 seasons
#############################################################################
# packages
library(sp)
library(rgdal)
library(adehabitatLT)
library(momentuHM... | /manxHMM.R | no_license | kanead/ManxTracks | R | false | false | 6,415 | r | #############################################################################
# Manx Shearwater Tracking Study
# - note that some birds were tracked in 2 seasons
#############################################################################
# packages
library(sp)
library(rgdal)
library(adehabitatLT)
library(momentuHM... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monty-hall-problem-R-script.R
\name{create_game}
\alias{create_game}
\title{Create a new Monty Hall Problem game.}
\usage{
create_game()
}
\arguments{
\item{...}{no arguments are used by the function.}
}
\value{
The function returns a length ... | /man/create_game.Rd | no_license | Niagara1000/montyhall | R | false | true | 1,238 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monty-hall-problem-R-script.R
\name{create_game}
\alias{create_game}
\title{Create a new Monty Hall Problem game.}
\usage{
create_game()
}
\arguments{
\item{...}{no arguments are used by the function.}
}
\value{
The function returns a length ... |
# exercise 6.2.1
rm(list=ls())
source("setup.R")
# Load data
library(cvTools)
library(R.matlab)
dat <- readMat(file.path('Data', 'body.mat'))
X <- dat$X
N <- dat$N
attributeNames <- as.vector(unlist(dat$attributeNames))
M <- dat$M
y <- dat$y
# Linear regression criterion function
# This function takes as input a trai... | /ex6_2_1.R | no_license | julvi/MachineLearning | R | false | false | 3,459 | r | # exercise 6.2.1
rm(list=ls())
source("setup.R")
# Load data
library(cvTools)
library(R.matlab)
dat <- readMat(file.path('Data', 'body.mat'))
X <- dat$X
N <- dat$N
attributeNames <- as.vector(unlist(dat$attributeNames))
M <- dat$M
y <- dat$y
# Linear regression criterion function
# This function takes as input a trai... |
library(ssMousetrack)
### Name: check_prior
### Title: Check prior distributions
### Aliases: check_prior
### ** Examples
## Not run:
##D ## Define priors for all the paramaters
##D priors_list <- list("lognormal(1,1)","normal(2,3)T(0,10)","normal(3,1)")
##D priors_out <- check_prior(priors_list)
##D print(prior... | /data/genthat_extracted_code/ssMousetrack/examples/check_prior.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 685 | r | library(ssMousetrack)
### Name: check_prior
### Title: Check prior distributions
### Aliases: check_prior
### ** Examples
## Not run:
##D ## Define priors for all the paramaters
##D priors_list <- list("lognormal(1,1)","normal(2,3)T(0,10)","normal(3,1)")
##D priors_out <- check_prior(priors_list)
##D print(prior... |
library(ggplot2)
?ggplot2
qplot(data=diamonds, carat, price,
colour = clarity, facets=.~clarity)
| /lesson10_ggplot.R | no_license | decemberkms/R-Study-Udemy | R | false | false | 108 | r | library(ggplot2)
?ggplot2
qplot(data=diamonds, carat, price,
colour = clarity, facets=.~clarity)
|
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2843
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2843
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query54_query49_1344/query54_query49_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 711 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2843
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2843
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
#intsall package mongolite in window under Global Envoirment,go to package the hit install and
#type in serach
libary(mongolite)
conn<-mongo("collection_name", url = "mongod://localhost/databasename")
mydata<- con$find('{"_id" : "us"}')
print(mydata)
| /ConnMongo.R | no_license | mike3722/BigData | R | false | false | 266 | r | #intsall package mongolite in window under Global Envoirment,go to package the hit install and
#type in serach
libary(mongolite)
conn<-mongo("collection_name", url = "mongod://localhost/databasename")
mydata<- con$find('{"_id" : "us"}')
print(mydata)
|
% 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 | EdwinTh/rlang | R | false | true | 1,504 | 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... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.rekognition_operations.R
\name{describe_collection}
\alias{describe_collection}
\title{Describes the specified collection}
\usage{
describe_collection(CollectionId)
}
\arguments{
\item{CollectionId}{[required] The ID of the collection to... | /service/paws.rekognition/man/describe_collection.Rd | permissive | CR-Mercado/paws | R | false | true | 774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.rekognition_operations.R
\name{describe_collection}
\alias{describe_collection}
\title{Describes the specified collection}
\usage{
describe_collection(CollectionId)
}
\arguments{
\item{CollectionId}{[required] The ID of the collection to... |
library(tidyverse)
library(patchwork)
library(grid)
library(gridExtra)
library(here)
source(here('helpers.R'))
league_info <- read_csv(here("league_info.csv"))
### Read in Posterior HA Draws
posterior_means <-
map_dfr(league_info$alias, ~{
league_ <- gsub("\\s", "_", tolower(.x))
goals_posterior <- try(sup... | /paper_figures/fig5.R | no_license | ilariac92/soccer_ha_covid | R | false | false | 7,072 | r | library(tidyverse)
library(patchwork)
library(grid)
library(gridExtra)
library(here)
source(here('helpers.R'))
league_info <- read_csv(here("league_info.csv"))
### Read in Posterior HA Draws
posterior_means <-
map_dfr(league_info$alias, ~{
league_ <- gsub("\\s", "_", tolower(.x))
goals_posterior <- try(sup... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphicalFunctions.R
\name{plotDetectOutlierPlantMaize}
\alias{plotDetectOutlierPlantMaize}
\title{plotDetectOutlierPlantMaize}
\usage{
plotDetectOutlierPlantMaize(datain, outmodels, x, y, genotype, idColor, idFill)
}
\arguments{
\item{datain... | /man/plotDetectOutlierPlantMaize.Rd | no_license | sanchezi/openSilexStatR | R | false | true | 1,413 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphicalFunctions.R
\name{plotDetectOutlierPlantMaize}
\alias{plotDetectOutlierPlantMaize}
\title{plotDetectOutlierPlantMaize}
\usage{
plotDetectOutlierPlantMaize(datain, outmodels, x, y, genotype, idColor, idFill)
}
\arguments{
\item{datain... |
setwd("/Users/burrelvannjr/Desktop/hw2")
library(MASS)
# problem 1
data1 <- rnorm(100,5,2)
hist(data1)
data2 <- rnorm(10000,5,2)
hist(data2)
# problem 2
arrests <- USArrests
sample1 <- arrests[sample(1:nrow(arrests), 20,replace=FALSE),]
sample2 <- arrests[sample(1:nrow(arrests), 20,replace=FALSE),]
sample3 <- ar... | /hw/hw2/hw2.R | no_license | sitakantapanda/stats_csuf | R | false | false | 1,083 | r | setwd("/Users/burrelvannjr/Desktop/hw2")
library(MASS)
# problem 1
data1 <- rnorm(100,5,2)
hist(data1)
data2 <- rnorm(10000,5,2)
hist(data2)
# problem 2
arrests <- USArrests
sample1 <- arrests[sample(1:nrow(arrests), 20,replace=FALSE),]
sample2 <- arrests[sample(1:nrow(arrests), 20,replace=FALSE),]
sample3 <- ar... |
## These 2 functions implement the solution to R Rpogramming Assignment 2
## makeCacheMatrix stores a matrix and be used to return the matrix or its inverse
## Example usage: m <- makeCacheMatrix(matrix(c(1,2,3,4),2,2))
makeCacheMatrix <- function(x = matrix()) {
inverse_m <- NULL
set <- function(y) {
x <<- y... | /cachematrix.R | no_license | hvjaarsveld/ProgrammingAssignment2 | R | false | false | 918 | r | ## These 2 functions implement the solution to R Rpogramming Assignment 2
## makeCacheMatrix stores a matrix and be used to return the matrix or its inverse
## Example usage: m <- makeCacheMatrix(matrix(c(1,2,3,4),2,2))
makeCacheMatrix <- function(x = matrix()) {
inverse_m <- NULL
set <- function(y) {
x <<- y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r2_zeroinflated.R
\name{r2_zeroinflated}
\alias{r2_zeroinflated}
\title{R2 for models with zero-inflation}
\usage{
r2_zeroinflated(model, method = c("default", "correlation"))
}
\arguments{
\item{model}{A model.}
\item{method}{Ind... | /man/r2_zeroinflated.Rd | no_license | cran/performance | R | false | true | 1,196 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r2_zeroinflated.R
\name{r2_zeroinflated}
\alias{r2_zeroinflated}
\title{R2 for models with zero-inflation}
\usage{
r2_zeroinflated(model, method = c("default", "correlation"))
}
\arguments{
\item{model}{A model.}
\item{method}{Ind... |
## ----echo=FALSE----------------------------------------------------------
source("../R/friendly_numbers.R")
source("../R/factorial_loop.R")
## ------------------------------------------------------------------------
divisors(4680)
## ------------------------------------------------------------------------
sum(divis... | /vignettes/vignettes_numpack99.R | no_license | mnoro/numpack99 | R | false | false | 812 | r | ## ----echo=FALSE----------------------------------------------------------
source("../R/friendly_numbers.R")
source("../R/factorial_loop.R")
## ------------------------------------------------------------------------
divisors(4680)
## ------------------------------------------------------------------------
sum(divis... |
## Generate indices for cross-fitting
gen_cf_inds <- function(n, nfolds){
tmp_inds <- sample(1:n, n)
foldid <- quantile(1:n, probs = 0:nfolds / nfolds, type = 1)
foldid[1] <- 0
foldid <- lapply(1:nfolds, function(i){
tmp_inds[(foldid[i]+1):foldid[i+1]]
})
return(foldid)
}
## Center rows... | /R/utils.R | no_license | shizelong1985/ripwPaper | R | false | false | 5,321 | r | ## Generate indices for cross-fitting
gen_cf_inds <- function(n, nfolds){
tmp_inds <- sample(1:n, n)
foldid <- quantile(1:n, probs = 0:nfolds / nfolds, type = 1)
foldid[1] <- 0
foldid <- lapply(1:nfolds, function(i){
tmp_inds[(foldid[i]+1):foldid[i+1]]
})
return(foldid)
}
## Center rows... |
library(readr)
predictions <- read_csv("pred_gbm.csv")
vals <- as.numeric(as.factor(predictions$predict))
output <- matrix(rep(0, nrow(predictions)*9), nrow(predictions), 9)
for(i in 1:nrow(predictions))
{
output[i,vals[i]] <- 1
}
submission <- data.frame(id = 1:144368, output)
write.csv(submission, file="submissio... | /convert.R | no_license | photongl/Kaggle_Otto | R | false | false | 361 | r | library(readr)
predictions <- read_csv("pred_gbm.csv")
vals <- as.numeric(as.factor(predictions$predict))
output <- matrix(rep(0, nrow(predictions)*9), nrow(predictions), 9)
for(i in 1:nrow(predictions))
{
output[i,vals[i]] <- 1
}
submission <- data.frame(id = 1:144368, output)
write.csv(submission, file="submissio... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(9.97941261520059e-316, 1.82313791283123e-303, 2.17107885747982e+205, 6.46608133187586e-200, 7.74860418591375e-304, 7.74860418548976e-304, 2.16452904073932e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(2L, 10L)))
result <- do.call(CNull:::commun... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615773705-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 379 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(9.97941261520059e-316, 1.82313791283123e-303, 2.17107885747982e+205, 6.46608133187586e-200, 7.74860418591375e-304, 7.74860418548976e-304, 2.16452904073932e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(2L, 10L)))
result <- do.call(CNull:::commun... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reclassify.R
\name{plotROC2}
\alias{plotROC2}
\title{Draw ROC curves}
\usage{
plotROC2(fit1, fit2, labels)
}
\arguments{
\item{fit1, fit2}{An object of class glm}
\item{labels}{Labels given to the ROC curves.}
}
\description{
Draw ROC curves... | /man/plotROC2.Rd | no_license | cardiomoon/webr2 | R | false | true | 695 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reclassify.R
\name{plotROC2}
\alias{plotROC2}
\title{Draw ROC curves}
\usage{
plotROC2(fit1, fit2, labels)
}
\arguments{
\item{fit1, fit2}{An object of class glm}
\item{labels}{Labels given to the ROC curves.}
}
\description{
Draw ROC curves... |
# Damon Polioudakis
# 2017-02-21
# Plot known marker lists as heatmaps, violin plots, feature plots
# Must load modules:
# module load gcc/4.9.3
# module load R/3.3.0
################################################################################
rm(list = ls())
set.seed(27)
sessionInfo()
require(methods)
require... | /code/Seurat_ClusterRound2_MarkerPlots.R | no_license | zehualilab/RNAseq_singlecellfetal | R | false | false | 38,023 | r | # Damon Polioudakis
# 2017-02-21
# Plot known marker lists as heatmaps, violin plots, feature plots
# Must load modules:
# module load gcc/4.9.3
# module load R/3.3.0
################################################################################
rm(list = ls())
set.seed(27)
sessionInfo()
require(methods)
require... |
library(shiny)
source("helpers.R")
counties <- readRDS("data/counties.rds")
library(maps)
library(mapproj)
shinyServer(
function(input, output) {
output$text1 <- renderText({
race <- input$var
paste("Map for ", race)
})
output$map <- renderPlot({... | /shiny/L5.counties/server.R | no_license | yama1968/Spikes | R | false | false | 881 | r | library(shiny)
source("helpers.R")
counties <- readRDS("data/counties.rds")
library(maps)
library(mapproj)
shinyServer(
function(input, output) {
output$text1 <- renderText({
race <- input$var
paste("Map for ", race)
})
output$map <- renderPlot({... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import.R
\name{getDBObject}
\alias{getDBObject}
\title{This function gets the data base object as data frame.}
\usage{
getDBObject(
endpoint,
session,
addParams = NULL,
pageSize = -1,
guess_max = 50000
)
}
\arguments{
\item{endpoint... | /man/getDBObject.Rd | no_license | beatnaut/remaputils | R | false | true | 676 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import.R
\name{getDBObject}
\alias{getDBObject}
\title{This function gets the data base object as data frame.}
\usage{
getDBObject(
endpoint,
session,
addParams = NULL,
pageSize = -1,
guess_max = 50000
)
}
\arguments{
\item{endpoint... |
library(RSQLite)
library(fs)
library(purrr)
library(readr)
data_pths <- fs::dir_ls("data/synthea/")
data_fn <- fs::path_file(data_pths) %>% path_ext_remove()
# all the files make too large of a sqlitedb for github
data_pths <- c(
"data/synthea/encounters.csv",
"data/synthea/patients.csv"
)
data_fn <- c(
"enco... | /scripts/create_synthea_sqlite.R | permissive | tataphani/ds4biomed | R | false | false | 670 | r | library(RSQLite)
library(fs)
library(purrr)
library(readr)
data_pths <- fs::dir_ls("data/synthea/")
data_fn <- fs::path_file(data_pths) %>% path_ext_remove()
# all the files make too large of a sqlitedb for github
data_pths <- c(
"data/synthea/encounters.csv",
"data/synthea/patients.csv"
)
data_fn <- c(
"enco... |
# Class Activity: Apply
# Date: February 23, 2017
# Author: Hyunjoo Oh
#########################
##8.15 Class activity. No loops allowed.
# Before starting, clean the environment.
rm(list=ls())
# 1) Make a three dimensional array with dim=c(20,5, 1000) and fill it with random data.
## Think of this as 1000 rando... | /Lecture08_Apply_Class Activity .R | no_license | hyunoooh/RProgramming_Exercises | R | false | false | 2,909 | r | # Class Activity: Apply
# Date: February 23, 2017
# Author: Hyunjoo Oh
#########################
##8.15 Class activity. No loops allowed.
# Before starting, clean the environment.
rm(list=ls())
# 1) Make a three dimensional array with dim=c(20,5, 1000) and fill it with random data.
## Think of this as 1000 rando... |
## read in the data file
library(coda)
library(MCMCpack)
library(ggplot2)
BeerData <- read.table("G:/Program Files (x86)/RStudio-0.98.1062/demo/BeerData.txt", header=TRUE)
attach(BeerData, warn.conflicts=FALSE)
View(BeerData)
## Plotting Raw Data of Scores and Drinks (Types)
df <- data.frame(Obs, Budlight, Bl... | /Bayesian Hierarchical Model/NormalHM.r | no_license | ZijingMao/Statistic | R | false | false | 7,413 | r | ## read in the data file
library(coda)
library(MCMCpack)
library(ggplot2)
BeerData <- read.table("G:/Program Files (x86)/RStudio-0.98.1062/demo/BeerData.txt", header=TRUE)
attach(BeerData, warn.conflicts=FALSE)
View(BeerData)
## Plotting Raw Data of Scores and Drinks (Types)
df <- data.frame(Obs, Budlight, Bl... |
#This code replicates SimulatedWorld_ROMS_function, but adds in a trophic interaction, where:
#Species A: distribution and abundance drivn by SST and Chl-a
#Species B: distribution and abundance drivn by SST and Species A
#EM for Species b: only have chl-a and temp as covariates.
## Switch to Spring Averages
## ... | /SimulatedWorld_ROMS_TrophicInteractions_SamplingBias.R | no_license | Lewis-Barnett-NOAA/Fishery-dependent-SDMs | R | false | false | 9,832 | r | #This code replicates SimulatedWorld_ROMS_function, but adds in a trophic interaction, where:
#Species A: distribution and abundance drivn by SST and Chl-a
#Species B: distribution and abundance drivn by SST and Species A
#EM for Species b: only have chl-a and temp as covariates.
## Switch to Spring Averages
## ... |
# Named Vectors
Charlie <- 1:5
Charlie
# give names
names(Charlie) <- c('a', 'b', 'c', 'd', 'e')
Charlie
Charlie['d']
names(Charlie)
# clear names
names(Charlie) <- NULL
Charlie
# --------------------
# Naming Matrix Dimensions 1
temp.vec <- rep(c('a', 'B', 'zZ'), each=3)
temp.vec
Bravo <- matrix(temp.vec, 3, 3)
B... | /scripts/Section 4 - Matrices/NamingDimensions.R | permissive | LEMSantos/udemy-R_programming_A_to_Z | R | false | false | 472 | r | # Named Vectors
Charlie <- 1:5
Charlie
# give names
names(Charlie) <- c('a', 'b', 'c', 'd', 'e')
Charlie
Charlie['d']
names(Charlie)
# clear names
names(Charlie) <- NULL
Charlie
# --------------------
# Naming Matrix Dimensions 1
temp.vec <- rep(c('a', 'B', 'zZ'), each=3)
temp.vec
Bravo <- matrix(temp.vec, 3, 3)
B... |
#' Example of ShinyMobile app working with cognitoR authentication.
#' - You need to have correctly configured the config.R for CognitoR.
library(shiny)
library(shinyMobile)
library(shinyjs)
library(cognitoR)
#options(shiny.port = 5000)
ui = f7Page(
cookie_ui("cookietest"),
title = "Chi-square Mobile Demo",
init... | /inst/examples/cookie-mobile-app.R | no_license | djfunksalot/cognitoR | R | false | false | 2,289 | r | #' Example of ShinyMobile app working with cognitoR authentication.
#' - You need to have correctly configured the config.R for CognitoR.
library(shiny)
library(shinyMobile)
library(shinyjs)
library(cognitoR)
#options(shiny.port = 5000)
ui = f7Page(
cookie_ui("cookietest"),
title = "Chi-square Mobile Demo",
init... |
library(kdensity)
### Name: bandwidths
### Title: Bandwidth Selectors
### Aliases: bandwidths
### ** Examples
## Not a serious bandwidth function.
silly_width = function(x, kernel = NULL, start = NULL, support = NULL) {
rexp(1)
}
kdensity(mtcars$mpg, start = "gumbel", bw = silly_width)
| /data/genthat_extracted_code/kdensity/examples/bandwidths.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 311 | r | library(kdensity)
### Name: bandwidths
### Title: Bandwidth Selectors
### Aliases: bandwidths
### ** Examples
## Not a serious bandwidth function.
silly_width = function(x, kernel = NULL, start = NULL, support = NULL) {
rexp(1)
}
kdensity(mtcars$mpg, start = "gumbel", bw = silly_width)
|
UUIDgenerate <- function(use.time = NA) .Call(UUID_gen, use.time)
| /R/uuid.R | no_license | mmuurr/s-u.uuid | R | false | false | 66 | r | UUIDgenerate <- function(use.time = NA) .Call(UUID_gen, use.time)
|
## This script generates data for a structural topic model
## and runs ksweep search in the 40-50 range:
#
rm(list=ls())
##library(ggplot2)
##library(RColorBrewer)
library(stm)
load("WTOParagraphDataForSTM.Rdata")
## Data:
##
## Make sure there are no missing values:
print(paste0("There are ",
length... | /code/topic-modeling/15aFocusedSweep.R | no_license | margaretfoster/WTO | R | false | false | 1,781 | r | ## This script generates data for a structural topic model
## and runs ksweep search in the 40-50 range:
#
rm(list=ls())
##library(ggplot2)
##library(RColorBrewer)
library(stm)
load("WTOParagraphDataForSTM.Rdata")
## Data:
##
## Make sure there are no missing values:
print(paste0("There are ",
length... |
#module load intel/18.0 intelmpi/18.0
#module load goolf/7.1.0_3.1.4
#module load gdal proj R/4.0.0
#R
### this code makes figures 10 -- Figure 11 and S13
### libraries
library(data.table)
library(SeqArray)
library(foreach)
library(sp)
library(doMC)
registerDoMC(8)
library(tidyverse)
library(magrittr)... | /Figure10_11_S13_and_S14/5.collect_all_moments_runs.R | no_license | DEST-bio/data-paper | R | false | false | 4,703 | r | #module load intel/18.0 intelmpi/18.0
#module load goolf/7.1.0_3.1.4
#module load gdal proj R/4.0.0
#R
### this code makes figures 10 -- Figure 11 and S13
### libraries
library(data.table)
library(SeqArray)
library(foreach)
library(sp)
library(doMC)
registerDoMC(8)
library(tidyverse)
library(magrittr)... |
library(brms)
### Name: loo_R2.brmsfit
### Title: Compute a LOO-adjusted R-squared for regression models
### Aliases: loo_R2.brmsfit loo_R2
### ** Examples
## Not run:
##D fit <- brm(mpg ~ wt + cyl, data = mtcars)
##D summary(fit)
##D loo_R2(fit)
##D
##D # compute R2 with new data
##D nd <- data.frame(mpg = c(10,... | /data/genthat_extracted_code/brms/examples/loo_R2.brmsfit.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 415 | r | library(brms)
### Name: loo_R2.brmsfit
### Title: Compute a LOO-adjusted R-squared for regression models
### Aliases: loo_R2.brmsfit loo_R2
### ** Examples
## Not run:
##D fit <- brm(mpg ~ wt + cyl, data = mtcars)
##D summary(fit)
##D loo_R2(fit)
##D
##D # compute R2 with new data
##D nd <- data.frame(mpg = c(10,... |
# Copyright (C) 2008-2009 - INRIA - Michael Baudin
# Copyright (C) 2009-2010 - DIGITEO - Michael Baudin
# Copyright (C) 2010-2022 - Sebastien Bihorel
#
# This file must be used under the terms of the CeCILL.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of th... | /R/neldermead.storehistory.R | no_license | cran/neldermead | R | false | false | 1,692 | r | # Copyright (C) 2008-2009 - INRIA - Michael Baudin
# Copyright (C) 2009-2010 - DIGITEO - Michael Baudin
# Copyright (C) 2010-2022 - Sebastien Bihorel
#
# This file must be used under the terms of the CeCILL.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of th... |
library(ergmito)
# Sampler
sampler_3_5_mutual <- new_rergmito(rbernoulli(4) ~ edges + mutual, sizes = 3:5, mc.cores = 1L)
# Sampler
sampler_3_5_ttriad <- new_rergmito(rbernoulli(4) ~ edges + ttriad, sizes = 3:5, mc.cores = 1L)
saveRDS(object = sampler_3_5_ttriad, file = "data/sampler_3_5_ttriad.rds", compress=FALSE)... | /data/sampler_3_5.R | no_license | muriteams/ergmito-simulations | R | false | false | 412 | r | library(ergmito)
# Sampler
sampler_3_5_mutual <- new_rergmito(rbernoulli(4) ~ edges + mutual, sizes = 3:5, mc.cores = 1L)
# Sampler
sampler_3_5_ttriad <- new_rergmito(rbernoulli(4) ~ edges + ttriad, sizes = 3:5, mc.cores = 1L)
saveRDS(object = sampler_3_5_ttriad, file = "data/sampler_3_5_ttriad.rds", compress=FALSE)... |
###########################################################
########################### loading data
stringsAsFactors = FALSE
setwd("~/GRN/Gene_Regulatory_Networks/session_2/")
######## bring out the packages to the working environment.
library(SCENIC)
library(AUCell)
library(RcisTarget)
library(SCopeLoomR)
loomPath <-... | /ACEversion/session_2/RunSCENICsimple.R | no_license | niaid/Gene_Regulatory_Networks | R | false | false | 4,406 | r | ###########################################################
########################### loading data
stringsAsFactors = FALSE
setwd("~/GRN/Gene_Regulatory_Networks/session_2/")
######## bring out the packages to the working environment.
library(SCENIC)
library(AUCell)
library(RcisTarget)
library(SCopeLoomR)
loomPath <-... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(-1.00767791679558e-223, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.295... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615835412-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,050 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(-1.00767791679558e-223, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.295... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eml2eal.R
\name{eml2geographic_coverage}
\alias{eml2geographic_coverage}
\title{Create geographic coverage template from EML}
\usage{
eml2geographic_coverage(eml, path)
}
\arguments{
\item{eml}{(xml_document xml_node) EML}
\item{path}{(chara... | /man/eml2geographic_coverage.Rd | permissive | EDIorg/EMLassemblyline | R | false | true | 531 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eml2eal.R
\name{eml2geographic_coverage}
\alias{eml2geographic_coverage}
\title{Create geographic coverage template from EML}
\usage{
eml2geographic_coverage(eml, path)
}
\arguments{
\item{eml}{(xml_document xml_node) EML}
\item{path}{(chara... |
#setwd("F:\\Drive\\R\\ExData_Plotting1")
#### Plot 04
base2 <- loadProj1()
#### I live in Brazil, so I need to change this...
Sys.setlocale("LC_ALL","C")
png("./PLOTS/plot4.png", width = 480, height = 480)
par(mfrow = c(2, 2))
plot(base2$Time, base2$Global_active_power,type = "n",
ylab = "Global Active Power ... | /plot4.R | no_license | SandorTucakov/ExData_Plotting1 | R | false | false | 999 | r | #setwd("F:\\Drive\\R\\ExData_Plotting1")
#### Plot 04
base2 <- loadProj1()
#### I live in Brazil, so I need to change this...
Sys.setlocale("LC_ALL","C")
png("./PLOTS/plot4.png", width = 480, height = 480)
par(mfrow = c(2, 2))
plot(base2$Time, base2$Global_active_power,type = "n",
ylab = "Global Active Power ... |
### sutable.R ---
#----------------------------------------------------------------------
## author: Thomas Alexander Gerds
## created: Nov 28 2015 (08:40)
## Version:
## last-updated: Dec 1 2015 (09:50)
## By: Thomas Alexander Gerds
## Update #: 5
#---------------------------------------------------... | /R/sutable.R | no_license | zt2730/Publish | R | false | false | 1,712 | r | ### sutable.R ---
#----------------------------------------------------------------------
## author: Thomas Alexander Gerds
## created: Nov 28 2015 (08:40)
## Version:
## last-updated: Dec 1 2015 (09:50)
## By: Thomas Alexander Gerds
## Update #: 5
#---------------------------------------------------... |
#' 2018 National Survey on Drug Use and Health (NSDUH)
#'
#' From the NSDUH website: The National Survey on Drug Use and Health (NSDUH) series, formerly titled National Household Survey on Drug Abuse, is a major source of statistical information on the use of illicit drugs, alcohol, and tobacco and on mental health is... | /R/nsduh2018.R | no_license | tloux/slubst3100labs | R | false | false | 976 | r | #' 2018 National Survey on Drug Use and Health (NSDUH)
#'
#' From the NSDUH website: The National Survey on Drug Use and Health (NSDUH) series, formerly titled National Household Survey on Drug Abuse, is a major source of statistical information on the use of illicit drugs, alcohol, and tobacco and on mental health is... |
#' Metropolis-Hasting MCMC
#'
#' Run \code{n.iterations} of a Metropolis-Hasting MCMC to sample from the target distribution using a gaussian proposal kernel.
#' Two optional optimizations are also implemented: truncated gaussian proposal (to match the support of the target distribution, i.e. boundary of the parameters... | /R/mcmc.r | no_license | arbstat/fitR | R | false | false | 13,294 | r | #' Metropolis-Hasting MCMC
#'
#' Run \code{n.iterations} of a Metropolis-Hasting MCMC to sample from the target distribution using a gaussian proposal kernel.
#' Two optional optimizations are also implemented: truncated gaussian proposal (to match the support of the target distribution, i.e. boundary of the parameters... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vtkMesh2Image.r
\name{vtkMesh2Image}
\alias{vtkMesh2Image}
\title{convert a 3D triangular mesh into a voxel image}
\usage{
vtkMesh2Image(mesh, spacing = c(0.5, 0.5, 0.5), filename = "default.mha",
IJK2RAS = diag(c(-1, -1, 1)), margin = 0.1,... | /man/vtkMesh2Image.Rd | no_license | zarquon42b/RvtkStatismo | R | false | true | 1,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vtkMesh2Image.r
\name{vtkMesh2Image}
\alias{vtkMesh2Image}
\title{convert a 3D triangular mesh into a voxel image}
\usage{
vtkMesh2Image(mesh, spacing = c(0.5, 0.5, 0.5), filename = "default.mha",
IJK2RAS = diag(c(-1, -1, 1)), margin = 0.1,... |
#' Download latest file from epchc.org
#'
#' @param xlsx chr string path for local excel file, to overwrite it not current
#' @param download_latest logical to download latest file regardless of local copy
#' @param urlin url for file location
#'
#' @return The local copy specified in the path by \code{xlsx} is overwri... | /R/read_dlcurrent.R | permissive | mikewessel/tbeptools | R | false | false | 1,972 | r | #' Download latest file from epchc.org
#'
#' @param xlsx chr string path for local excel file, to overwrite it not current
#' @param download_latest logical to download latest file regardless of local copy
#' @param urlin url for file location
#'
#' @return The local copy specified in the path by \code{xlsx} is overwri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reverse-theme.R
\name{reverse_theme}
\alias{reverse_theme}
\title{Convert plot \code{theme} into code to create it}
\usage{
reverse_theme(theme)
}
\arguments{
\item{theme}{a ggplot2 theme object}
}
\value{
Character string "theme_XXX(...)" or... | /man/reverse_theme.Rd | permissive | GuangchuangYu/ggreverse | R | false | true | 522 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reverse-theme.R
\name{reverse_theme}
\alias{reverse_theme}
\title{Convert plot \code{theme} into code to create it}
\usage{
reverse_theme(theme)
}
\arguments{
\item{theme}{a ggplot2 theme object}
}
\value{
Character string "theme_XXX(...)" or... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/time_sequence_data.R
\name{plot.time_sequence_data}
\alias{plot.time_sequence_data}
\title{Plot time-sequence data}
\usage{
\method{plot}{time_sequence_data}(x, predictor_column = NULL, dv = "Prop", model = NULL, ...)
}
\arguments{
\item{x}{Y... | /man/plot.time_sequence_data.Rd | permissive | cran/eyetrackingR | R | false | true | 2,025 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/time_sequence_data.R
\name{plot.time_sequence_data}
\alias{plot.time_sequence_data}
\title{Plot time-sequence data}
\usage{
\method{plot}{time_sequence_data}(x, predictor_column = NULL, dv = "Prop", model = NULL, ...)
}
\arguments{
\item{x}{Y... |
#' Create a new Whale
#'
#' @description
#' Whale Class
#'
#' @docType class
#' @title Whale
#' @description Whale Class
#' @format An \code{R6Class} generator object
#' @field hasBaleen character [optional]
#' @field hasTeeth character [optional]
#' @field className character
#' @importFrom R6 R6Class
#' @importFro... | /samples/client/petstore/R-httr2/R/whale.R | permissive | padamstx/openapi-generator | R | false | false | 6,296 | r | #' Create a new Whale
#'
#' @description
#' Whale Class
#'
#' @docType class
#' @title Whale
#' @description Whale Class
#' @format An \code{R6Class} generator object
#' @field hasBaleen character [optional]
#' @field hasTeeth character [optional]
#' @field className character
#' @importFrom R6 R6Class
#' @importFro... |
---
title: "gradevis"
author: "Alexander Jou"
date: "11/26/2017"
output: html_document
runtime: shiny
---
##Histogram
#Numerical data for graph
hwmdata = data.frame( hw1 = dat$HW1,
hw2 = dat$HW2,
hw3 = dat$HW3,
hw4 = dat$HW4,
hw5 ... | /hw04/app/gradevis.R | no_license | AlexanderJou/stat133-hws-fall17 | R | false | false | 4,845 | r | ---
title: "gradevis"
author: "Alexander Jou"
date: "11/26/2017"
output: html_document
runtime: shiny
---
##Histogram
#Numerical data for graph
hwmdata = data.frame( hw1 = dat$HW1,
hw2 = dat$HW2,
hw3 = dat$HW3,
hw4 = dat$HW4,
hw5 ... |
\docType{data}
\name{mongo.index.background}
\alias{mongo.index.background}
\title{mongo.index.create flag constant - background}
\format{\preformatted{ int 8
}}
\usage{
mongo.index.background
}
\value{
8L
}
\description{
\code{\link{mongo.index.create}()} flag constant -
background.
}
\keyword{datasets}
| /man/mongo.index.background.Rd | no_license | StefanoSpada/rmongodb | R | false | false | 307 | rd | \docType{data}
\name{mongo.index.background}
\alias{mongo.index.background}
\title{mongo.index.create flag constant - background}
\format{\preformatted{ int 8
}}
\usage{
mongo.index.background
}
\value{
8L
}
\description{
\code{\link{mongo.index.create}()} flag constant -
background.
}
\keyword{datasets}
|
library(dplyr)
library(ggplot2)
require(readr)
# importing dataset pf
pf<- read.csv("/Users/santosh/Downloads/pseudo_facebook.tsv", sep = "\t")
# summarising friend count grouping by age and gender
pf.fc_by_age_gender<- pf %>% filter(!is.na(gender))%>%
group_by(age, gender) %>%
summarise(mean_frnd_cnt= mean... | /reshaping dataset in multiple ways.R | no_license | ramyareddy-g/RProgramming | R | false | false | 1,302 | r | library(dplyr)
library(ggplot2)
require(readr)
# importing dataset pf
pf<- read.csv("/Users/santosh/Downloads/pseudo_facebook.tsv", sep = "\t")
# summarising friend count grouping by age and gender
pf.fc_by_age_gender<- pf %>% filter(!is.na(gender))%>%
group_by(age, gender) %>%
summarise(mean_frnd_cnt= mean... |
## Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%).
## data: a data frame.
## measurevar: the name of a column that contains the variable to be summariezed
## groupvars: a vector containing names of columns that contain grouping variables
## na.rm: a ... | /scripts/functions/summarizeSE.R | no_license | JannisCodes/PsyCorona-DataCleaning | R | false | false | 6,201 | r | ## Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%).
## data: a data frame.
## measurevar: the name of a column that contains the variable to be summariezed
## groupvars: a vector containing names of columns that contain grouping variables
## na.rm: a ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/location_function.R
\name{location_function}
\alias{location_function}
\title{Search for the locations of all (GP) practices, by code. Returns GeoJSON or sfc.}
\usage{
location_function(CCG_code, as_sf = TRUE/FALSE)
}
\arguments{
\item{CCG_co... | /man/location_function.Rd | no_license | fergustaylor/openprescribingR | R | false | true | 886 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/location_function.R
\name{location_function}
\alias{location_function}
\title{Search for the locations of all (GP) practices, by code. Returns GeoJSON or sfc.}
\usage{
location_function(CCG_code, as_sf = TRUE/FALSE)
}
\arguments{
\item{CCG_co... |
library(testthat)
library(sparsediscrim)
context("The SDQDA Classifier from Pang et al. (2009)")
test_that("The SDQDA classifier works properly on the iris data set", {
require('MASS')
set.seed(42)
n <- nrow(iris)
train <- sample(seq_len(n), n / 2)
sdqda_out <- sdqda(Species ~ ., data = iris[train, ])
pr... | /tests/testthat/test-sdqda.r | no_license | elephann/sparsediscrim | R | false | false | 687 | r | library(testthat)
library(sparsediscrim)
context("The SDQDA Classifier from Pang et al. (2009)")
test_that("The SDQDA classifier works properly on the iris data set", {
require('MASS')
set.seed(42)
n <- nrow(iris)
train <- sample(seq_len(n), n / 2)
sdqda_out <- sdqda(Species ~ ., data = iris[train, ])
pr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transactions.r
\name{get_transaction_table}
\alias{get_transaction_table}
\title{Get Transaction Table}
\usage{
get_transaction_table(client)
}
\description{
Downloads a table of transactions by css id
}
| /man/get_transaction_table.Rd | no_license | AkhilGNair/scraper | R | false | true | 282 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transactions.r
\name{get_transaction_table}
\alias{get_transaction_table}
\title{Get Transaction Table}
\usage{
get_transaction_table(client)
}
\description{
Downloads a table of transactions by css id
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{print.estimates.zcurve}
\alias{print.estimates.zcurve}
\title{Prints estimates from z-curve object}
\usage{
\method{print.estimates}{zcurve}(x, ...)
}
\arguments{
\item{x}{Estimate of a z-curve object}
\item{...}{Add... | /man/print.estimates.zcurve.Rd | no_license | cran/zcurve | R | false | true | 446 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{print.estimates.zcurve}
\alias{print.estimates.zcurve}
\title{Prints estimates from z-curve object}
\usage{
\method{print.estimates}{zcurve}(x, ...)
}
\arguments{
\item{x}{Estimate of a z-curve object}
\item{...}{Add... |
context("TensorFlow IO dataset ops")
source("utils.R")
# Dummy test to get around CRAN check
test_that("This test block executes on CRAN", {
expect_true(TRUE)
})
test_succeeds("sequence_file_dataset() works successfully", {
dataset <- sequence_file_dataset("testdata/string.seq") %>%
dataset_repeat(2)
itera... | /R-package/tests/testthat/test-datasets-ops.R | permissive | tensorflow/io | R | false | false | 2,028 | r | context("TensorFlow IO dataset ops")
source("utils.R")
# Dummy test to get around CRAN check
test_that("This test block executes on CRAN", {
expect_true(TRUE)
})
test_succeeds("sequence_file_dataset() works successfully", {
dataset <- sequence_file_dataset("testdata/string.seq") %>%
dataset_repeat(2)
itera... |
# all in small case and separated by underscore
NotProcessedOutput = function(args) {
bsg3.5 = args$n3.5$biological_sample_group
bsg3.5.2 = args$n3.5.2$biological_sample_group
cid3.5.2 = args$n3.5.2$colony_id
n3.5.2OnlyKO = subset(args$n3.5.2,args$n3.5.2$biological_sample_group %in% 'experimen... | /Late adults stats pipeline/DRrequiredAgeing/DRrequiredAgeingPackage/R/NotProcessed.R | permissive | xhyuo/impc_stats_pipeline | R | false | false | 4,949 | r | # all in small case and separated by underscore
NotProcessedOutput = function(args) {
bsg3.5 = args$n3.5$biological_sample_group
bsg3.5.2 = args$n3.5.2$biological_sample_group
cid3.5.2 = args$n3.5.2$colony_id
n3.5.2OnlyKO = subset(args$n3.5.2,args$n3.5.2$biological_sample_group %in% 'experimen... |
#### Фильтрация результатов поиска.
#### Выделение твитов, содержащих географические координаты пользователя.
library(twitteR)
api_key <- "ваш_api_key"
api_secret <- "ваш_api_secret"
access_token <- "ваш_access_token"
access_token_secret <- "ваш_access_token_secret"
setup_twitter_oauth(api_key,api_secret,access_tok... | /Сбор данных в интернете/19/02-filtered.R | no_license | kn7072/R | R | false | false | 1,974 | r | #### Фильтрация результатов поиска.
#### Выделение твитов, содержащих географические координаты пользователя.
library(twitteR)
api_key <- "ваш_api_key"
api_secret <- "ваш_api_secret"
access_token <- "ваш_access_token"
access_token_secret <- "ваш_access_token_secret"
setup_twitter_oauth(api_key,api_secret,access_tok... |
rm(list=ls())
library(lme4)
library(lmerTest)
library(dplyr)
library(ggplot2)
library(lattice)
####################################################################
## data
dat <- read.table("alpha_diversity_values.txt")
dat <- within(dat, flight <- relevel(flight, ref = "pre"))
dat$timepoint <- factor(dat$timepoint,... | /Examples/regression3-LMER-example.R | no_license | yunzhang813/JCVI-Biostats | R | false | false | 3,226 | r | rm(list=ls())
library(lme4)
library(lmerTest)
library(dplyr)
library(ggplot2)
library(lattice)
####################################################################
## data
dat <- read.table("alpha_diversity_values.txt")
dat <- within(dat, flight <- relevel(flight, ref = "pre"))
dat$timepoint <- factor(dat$timepoint,... |
#Framework Source: https://bookdown.org/paulcbauer/idv2/8-20-example-a-simple-regression-app.html
library(shiny)
bike_data <- read.csv("bike data.csv")
bike_data$Season <- as.factor(bike_data$Season)
str(bike_data)
ui <- fluidPage(
titlePanel("Regression Model, Bike Data"),
sidebarLayout(
... | /Rshiny/Regression_Example/app.R | no_license | alonzi/Practice_Application_DS | R | false | false | 2,670 | r |
#Framework Source: https://bookdown.org/paulcbauer/idv2/8-20-example-a-simple-regression-app.html
library(shiny)
bike_data <- read.csv("bike data.csv")
bike_data$Season <- as.factor(bike_data$Season)
str(bike_data)
ui <- fluidPage(
titlePanel("Regression Model, Bike Data"),
sidebarLayout(
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OMEROServer.R
\docType{class}
\name{OMEROServer-class}
\alias{OMEROServer-class}
\alias{OMEROServer}
\title{OMEROServer class
Provides access to an OMERO server}
\description{
OMEROServer class
Provides access to an OMERO server
}
\section{Sl... | /man/OMEROServer-class.Rd | no_license | dominikl/rOMERO-gateway | R | false | true | 804 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OMEROServer.R
\docType{class}
\name{OMEROServer-class}
\alias{OMEROServer-class}
\alias{OMEROServer}
\title{OMEROServer class
Provides access to an OMERO server}
\description{
OMEROServer class
Provides access to an OMERO server
}
\section{Sl... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... | /meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615838435-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 826 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_basic_map.R
\name{basic_map}
\alias{basic_map}
\title{Produce leaflet map to be used as a basis for displaying layers}
\usage{
basic_map()
}
\value{
leaflet map
}
\description{
Produce leaflet map to be used as a basis for displaying laye... | /man/basic_map.Rd | no_license | lvaudor/mapdO | R | false | true | 325 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_basic_map.R
\name{basic_map}
\alias{basic_map}
\title{Produce leaflet map to be used as a basis for displaying layers}
\usage{
basic_map()
}
\value{
leaflet map
}
\description{
Produce leaflet map to be used as a basis for displaying laye... |
#' Print "Hello world"
#'
#' This is a simple function that, by default, prints "Hello, world". You can
#' customize the text to print (using the \code{to_print} argument) and add
#' an exclamation point (\code{excited = TRUE}).
#'
#' @param to_print A character string giving the text the function will print
#' @param ... | /R/hello.R | no_license | vbeakovic/deletepackage | R | false | false | 828 | r | #' Print "Hello world"
#'
#' This is a simple function that, by default, prints "Hello, world". You can
#' customize the text to print (using the \code{to_print} argument) and add
#' an exclamation point (\code{excited = TRUE}).
#'
#' @param to_print A character string giving the text the function will print
#' @param ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{goog}
\alias{goog}
\alias{goog200}
\title{Daily closing stock prices of Google Inc}
\format{
Daily time series of class \code{ts}.
}
\source{
\url{https://finance.yahoo.com/quote/GOOG/history}
}
\description{
Closi... | /man/goog.Rd | no_license | robjhyndman/fpp2-package | R | false | true | 592 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{goog}
\alias{goog}
\alias{goog200}
\title{Daily closing stock prices of Google Inc}
\format{
Daily time series of class \code{ts}.
}
\source{
\url{https://finance.yahoo.com/quote/GOOG/history}
}
\description{
Closi... |
\name{PieChart}
\alias{PieChart}
\alias{pc}
\title{Pie Chart}
\description{
Abbreviation: \code{pc}
Plots a pie chart with default colors from a variety of different types of data. Also displays the frequency table for the variable and provides the corresponding chi-square inferential analysis.
}
\usage{
PieChart(x... | /man/PieChart.Rd | no_license | jotaboca/lessR | R | false | false | 8,803 | rd | \name{PieChart}
\alias{PieChart}
\alias{pc}
\title{Pie Chart}
\description{
Abbreviation: \code{pc}
Plots a pie chart with default colors from a variety of different types of data. Also displays the frequency table for the variable and provides the corresponding chi-square inferential analysis.
}
\usage{
PieChart(x... |
#=======Clear environment=======================================================
cat("\f")
rm(list=ls())
dev.off()
#=======Libraries===============================================================
library(dplyr) #yes
#library(nortest)
library(effsize) #yes
#library(ggplot2) #no
library(tidyverse) #yes
library(hrbrthemes... | /bulbul.R | no_license | rilakkuma-ali/Event-Segmentation | R | false | false | 3,306 | r | #=======Clear environment=======================================================
cat("\f")
rm(list=ls())
dev.off()
#=======Libraries===============================================================
library(dplyr) #yes
#library(nortest)
library(effsize) #yes
#library(ggplot2) #no
library(tidyverse) #yes
library(hrbrthemes... |
# Copyright (c) 2015,2016, Qin Zhu and Junhyong Kim, University of Pennsylvania.
# All Rights Reserved.
#
# You may not use this file except in compliance with the Kim Lab License
# located at
#
# http://kim.bio.upenn.edu/software/LICENSE
#
# Unless required by applicable law or agreed to in writing, this
# softwar... | /inst/app/src/server_code/analysis/pLDA.R | no_license | jeevanyue/PIVOT | R | false | false | 9,635 | r | # Copyright (c) 2015,2016, Qin Zhu and Junhyong Kim, University of Pennsylvania.
# All Rights Reserved.
#
# You may not use this file except in compliance with the Kim Lab License
# located at
#
# http://kim.bio.upenn.edu/software/LICENSE
#
# Unless required by applicable law or agreed to in writing, this
# softwar... |
buildQSM <- function(eList) {
Daily <- eList$Daily
Qs <- BaseflowSeparation(Daily$Q)
Daily$Qb <- Qs$bt
Daily$LogQb <- log(Daily$Qb)
Daily$Qq <- Qs$qft + 0.01
Daily$LogQq <- log(Daily$Qq)
Sample <- eList$Sample
Sample <- Sample[!is.na(Sample$Q),]
Sample <- merge(Sample, Daily[,c("Date","Qb","LogQb","Qq... | /QSM/buildQSM.R | no_license | mattdiebel/yahara-trends | R | false | false | 1,375 | r | buildQSM <- function(eList) {
Daily <- eList$Daily
Qs <- BaseflowSeparation(Daily$Q)
Daily$Qb <- Qs$bt
Daily$LogQb <- log(Daily$Qb)
Daily$Qq <- Qs$qft + 0.01
Daily$LogQq <- log(Daily$Qq)
Sample <- eList$Sample
Sample <- Sample[!is.na(Sample$Q),]
Sample <- merge(Sample, Daily[,c("Date","Qb","LogQb","Qq... |
#' @export
print.ssr <- function(x, ...) {
if(x$method == "ocp") {
method <- "observed conditional power"
} else if(x$method == "rocp") {
method <- "restricted observed conditional power"
} else if(x$method == "pz") {
method <- "promising zone"
} else if(x$method == "of") {
method <- "o... | /bootSSR/R/s3_methods.R | no_license | VictorAether/SSR-with-resampling | R | false | false | 1,706 | r | #' @export
print.ssr <- function(x, ...) {
if(x$method == "ocp") {
method <- "observed conditional power"
} else if(x$method == "rocp") {
method <- "restricted observed conditional power"
} else if(x$method == "pz") {
method <- "promising zone"
} else if(x$method == "of") {
method <- "o... |
#' Title: Fan Engagement NBA Tweets
#' Purpose: A2- Case 1
#' Author: Kathleen Lara
#' email: kathleencastrolara@gmail.com
#' Date: January , 2021
# Set the working directory
setwd("~/Desktop/hult_NLP_student/cases/NBA Fan Engagement/data")
#Libraries
library(ggplot2)
library(ggthemes)
library(tm)
library(qdap)
libra... | /Lara_TM_NBA_case.R | no_license | kathleenlara/R-Text-Mining-Analysis-NBAfans | R | false | false | 3,931 | r | #' Title: Fan Engagement NBA Tweets
#' Purpose: A2- Case 1
#' Author: Kathleen Lara
#' email: kathleencastrolara@gmail.com
#' Date: January , 2021
# Set the working directory
setwd("~/Desktop/hult_NLP_student/cases/NBA Fan Engagement/data")
#Libraries
library(ggplot2)
library(ggthemes)
library(tm)
library(qdap)
libra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/idf.R
\name{format.Idf}
\alias{format.Idf}
\title{Format an Idf Object}
\usage{
\method{format}{Idf}(
x,
comment = TRUE,
header = TRUE,
format = eplusr_option("save_format"),
leading = 4L,
sep_at = 29L,
...
)
}
\arguments{
\item... | /man/format.Idf.Rd | permissive | hongyuanjia/eplusr | R | false | true | 1,208 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/idf.R
\name{format.Idf}
\alias{format.Idf}
\title{Format an Idf Object}
\usage{
\method{format}{Idf}(
x,
comment = TRUE,
header = TRUE,
format = eplusr_option("save_format"),
leading = 4L,
sep_at = 29L,
...
)
}
\arguments{
\item... |
#########################################################################/**
# @RdocGeneric plotDensity
# @alias plotDensity.list
# @alias plotDensity.data.frame
# @alias plotDensity.matrix
# @alias plotDensity.numeric
# @alias plotDensity.density
#
# @title "Plots density distributions for a set of vectors"
#
# \descr... | /R/plotDensity.R | no_license | hb-slash/aroma.light | R | false | false | 6,854 | r | #########################################################################/**
# @RdocGeneric plotDensity
# @alias plotDensity.list
# @alias plotDensity.data.frame
# @alias plotDensity.matrix
# @alias plotDensity.numeric
# @alias plotDensity.density
#
# @title "Plots density distributions for a set of vectors"
#
# \descr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findRef.R
\name{findRef}
\alias{findRef}
\title{Reference finding}
\usage{
findRef(peakList)
}
\arguments{
\item{peakList}{The peak lists of the spectra.}
}
\value{
list of 2: refInd (The index of the reference spectrum found by the algorithm... | /man/findRef.Rd | permissive | Beirnaert/speaq | R | false | true | 1,408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findRef.R
\name{findRef}
\alias{findRef}
\title{Reference finding}
\usage{
findRef(peakList)
}
\arguments{
\item{peakList}{The peak lists of the spectra.}
}
\value{
list of 2: refInd (The index of the reference spectrum found by the algorithm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tr_ernest.R
\name{tr_ernest}
\alias{tr_ernest}
\title{Amniote life history dataset}
\usage{
tr_ernest(read = TRUE, ...)
}
\arguments{
\item{read}{(logical) read in csv files. Default: \code{TRUE}}
\item{...}{Curl options passed on to [crul::... | /man/tr_ernest.Rd | permissive | terraref/traits | R | false | true | 1,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tr_ernest.R
\name{tr_ernest}
\alias{tr_ernest}
\title{Amniote life history dataset}
\usage{
tr_ernest(read = TRUE, ...)
}
\arguments{
\item{read}{(logical) read in csv files. Default: \code{TRUE}}
\item{...}{Curl options passed on to [crul::... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.