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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method-accessor.R
\name{mp_extract_rarecurve}
\alias{mp_extract_rarecurve}
\alias{mp_extract_rarecurve,MPSE-method}
\alias{mp_extract_rarecurve,MPSE}
\alias{mp_extract_rarecurve,tbl_mpse-method}
\alias{mp_extract_rarecurve,tbl_mpse}
\alias{mp... | /man/mp_extract_rarecurve-methods.Rd | no_license | YuLab-SMU/MicrobiotaProcess | R | false | true | 1,095 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method-accessor.R
\name{mp_extract_rarecurve}
\alias{mp_extract_rarecurve}
\alias{mp_extract_rarecurve,MPSE-method}
\alias{mp_extract_rarecurve,MPSE}
\alias{mp_extract_rarecurve,tbl_mpse-method}
\alias{mp_extract_rarecurve,tbl_mpse}
\alias{mp... |
# libraries ---------------------------------------------------------------
library(tidyverse)
library(readxl)
library(readr)
library(cowplot)
library(here)
library(ggpubr)
library(showtext)
library(ggtext)
# Theme settings for all plots
theme_nice = theme_set(theme_cowplot(16) +
theme(
... | /R_data_analysis/BGCs/antismash_exploration.R | no_license | dmartimarti/PG_Metformin | R | false | false | 16,910 | r |
# libraries ---------------------------------------------------------------
library(tidyverse)
library(readxl)
library(readr)
library(cowplot)
library(here)
library(ggpubr)
library(showtext)
library(ggtext)
# Theme settings for all plots
theme_nice = theme_set(theme_cowplot(16) +
theme(
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbStrDF.R
\name{dbStr}
\alias{dbStr}
\title{This function allows you to access Databases.}
\usage{
dbStr()
}
\arguments{
\item{db}{db}
}
\description{
This function allows you to access Databases.
}
\examples{
dbStr()
}
\keyword{db}
| /man/dbStr.Rd | no_license | pydemia/unipyr | R | false | true | 311 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbStrDF.R
\name{dbStr}
\alias{dbStr}
\title{This function allows you to access Databases.}
\usage{
dbStr()
}
\arguments{
\item{db}{db}
}
\description{
This function allows you to access Databases.
}
\examples{
dbStr()
}
\keyword{db}
|
## COURSERA R Programming
## Programming Assignment 2
## By: Umut Kemiktarak
## Username: ukemiktarak
## This function creates a special "matrix"
## object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
## init inverse cache
inv <- NULL
## setters and getters
set <- fun... | /cachematrix.R | no_license | ukemiktarak/ProgrammingAssignment2 | R | false | false | 1,075 | r | ## COURSERA R Programming
## Programming Assignment 2
## By: Umut Kemiktarak
## Username: ukemiktarak
## This function creates a special "matrix"
## object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
## init inverse cache
inv <- NULL
## setters and getters
set <- fun... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{addcols}
\alias{addcols}
\title{Add list of columns as NULL columns to supplied dataframe.}
\usage{
addcols(data, cnames)
}
\arguments{
\item{data}{Dataframe to add columns.}
\item{cnames}{Character vector of one or more co... | /man/addcols.Rd | no_license | AdeBaddest/datapackr | R | false | true | 678 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{addcols}
\alias{addcols}
\title{Add list of columns as NULL columns to supplied dataframe.}
\usage{
addcols(data, cnames)
}
\arguments{
\item{data}{Dataframe to add columns.}
\item{cnames}{Character vector of one or more co... |
#!/usr/bin/env Rscript
library(data.table)
library("optparse")
library("qqman")
t_col <- function(color, percent = 50, name = NULL) {
# color = color name
# percent = % transparency
# name = an optional name for the color
## Get RGB values for named color
rgb.val <- col2rgb(color)
## Make new colo... | /replication/gwascat/bin/computestat_ld.r | permissive | h3abionet/h3agwas | R | false | false | 9,925 | r | #!/usr/bin/env Rscript
library(data.table)
library("optparse")
library("qqman")
t_col <- function(color, percent = 50, name = NULL) {
# color = color name
# percent = % transparency
# name = an optional name for the color
## Get RGB values for named color
rgb.val <- col2rgb(color)
## Make new colo... |
x=c(1,3,2,1,2,3,4,3,1,2,3,1)
h=function(var){
return ((6*var+1)%%5)
}
r=c()
b=function(var1){
l1=rev(intToBits(var1))
l1=paste(as.integer(l1),collapse = "")
return(l1)
}
lz=c()
leadzero=function(var2){
var2=strsplit(var2,"")
var2=rev(var2)
for(i in length(var2[[1]]):1){
if(var2[[1... | /fm.R | no_license | ab33sheikh/da | R | false | false | 630 | r | x=c(1,3,2,1,2,3,4,3,1,2,3,1)
h=function(var){
return ((6*var+1)%%5)
}
r=c()
b=function(var1){
l1=rev(intToBits(var1))
l1=paste(as.integer(l1),collapse = "")
return(l1)
}
lz=c()
leadzero=function(var2){
var2=strsplit(var2,"")
var2=rev(var2)
for(i in length(var2[[1]]):1){
if(var2[[1... |
library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/breast.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=1,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/breast/breast_100.txt',append=TRUE)... | /Model/EN/AvgRank/breast/breast_100.R | no_license | leon1003/QSMART | R | false | false | 350 | r | library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/breast.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=1,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/breast/breast_100.txt',append=TRUE)... |
#' translate between different labels of the time points
#'
#' map between the column EVENTref and the columns zeitpunktref or zp_fabianref
#' in event2zeitpunkt_table. These columns are different labels of the time points
#'
#' @param EVENT vector of characters. They must be present in
#' event2zeitpunkt_table$EVENTre... | /R/event2zeitpunkt.R | permissive | maciejrosolowski/progressdatenbankderivate | R | false | false | 2,113 | r | #' translate between different labels of the time points
#'
#' map between the column EVENTref and the columns zeitpunktref or zp_fabianref
#' in event2zeitpunkt_table. These columns are different labels of the time points
#'
#' @param EVENT vector of characters. They must be present in
#' event2zeitpunkt_table$EVENTre... |
\name{rareBiosphere}
\alias{rareBiosphere}
%- Also NEED an "\alias" for EACH other topic documented here.
\title{
Summarize different subgroups in the rare biosphere
}
\description{
The function discriminates different fractions of rare biosphere from the input community data, based on the ratio between the maxi... | /man/rareBiosphere.Rd | no_license | cam315/otuSummary | R | false | false | 4,422 | rd | \name{rareBiosphere}
\alias{rareBiosphere}
%- Also NEED an "\alias" for EACH other topic documented here.
\title{
Summarize different subgroups in the rare biosphere
}
\description{
The function discriminates different fractions of rare biosphere from the input community data, based on the ratio between the maxi... |
gapDF <- household_power_consumption[as.Date(household_power_consumption$Date, "%d/%m/%Y") >= as.Date("2007-02-01", "%Y-%m-%d") & as.Date(household_power_consumption$Date, "%d/%m/%Y") <= as.Date("2007-02-02", "%Y-%m-%d"),c("Global_active_power", "Date", "Time")]
gapDF$Date <- strptime(paste(as.character(gapDF$Date), as... | /plot2.R | no_license | slagathorr/ExData_Plotting1 | R | false | false | 594 | r | gapDF <- household_power_consumption[as.Date(household_power_consumption$Date, "%d/%m/%Y") >= as.Date("2007-02-01", "%Y-%m-%d") & as.Date(household_power_consumption$Date, "%d/%m/%Y") <= as.Date("2007-02-02", "%Y-%m-%d"),c("Global_active_power", "Date", "Time")]
gapDF$Date <- strptime(paste(as.character(gapDF$Date), as... |
#Set the working directory
getwd()
setwd('D:/Documents/DS/EDA/https---github.com-randomnumb-ExData_Plotting1')
#Loading libraries for session.
library(sqldf)
library(lubridate)
#Download the source file
download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip',
... | /plot2.r | no_license | randomnumb/ExData_Plotting1 | R | false | false | 1,362 | r |
#Set the working directory
getwd()
setwd('D:/Documents/DS/EDA/https---github.com-randomnumb-ExData_Plotting1')
#Loading libraries for session.
library(sqldf)
library(lubridate)
#Download the source file
download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip',
... |
library(dplyr)
library(GEOquery)
library(reshape)
library(scater)
library(Seurat)
library(stringr)
library(tidyverse)
setwd("~/Documents/2019_summer_eisai/raw_data/GSE121654_RAW")
# get the data information
gse121654 = getGEO("GSE121654")
# extract the injured mouse information
design_infor = pData(phenoData(gse121... | /irm.R | no_license | xueyuanj/alzheimer_2019 | R | false | false | 8,094 | r | library(dplyr)
library(GEOquery)
library(reshape)
library(scater)
library(Seurat)
library(stringr)
library(tidyverse)
setwd("~/Documents/2019_summer_eisai/raw_data/GSE121654_RAW")
# get the data information
gse121654 = getGEO("GSE121654")
# extract the injured mouse information
design_infor = pData(phenoData(gse121... |
#Set working directory.
#setwd("H:\\Data Science\\course4project1\\exdata-data-household_power_consumption")
#Read in power data from file.
powerdata <- read.table("household_power_consumption.txt",
header = TRUE,
sep = ";",
na.strings = "?")
#Co... | /plot2.R | no_license | johnbejarano/course4project1 | R | false | false | 1,016 | r | #Set working directory.
#setwd("H:\\Data Science\\course4project1\\exdata-data-household_power_consumption")
#Read in power data from file.
powerdata <- read.table("household_power_consumption.txt",
header = TRUE,
sep = ";",
na.strings = "?")
#Co... |
library(tidyverse)
library(doParallel)
registerDoParallel(2)
#--- conditional distribution Y|X=x
n_samp <- 10000
df12 <- 0:5
samp <- foreach(i = df12, .combine = "cbind") %dopar% {
rf(n_samp, df1 = exp(i), df2 = 2^i)
}
colnames(samp) <- df12
samp_df <- as_data_frame(samp) %>%
gather(distribution, sample) %>%
... | /assets/code_files/2018-08-12-conditional_distributions/conditional_ditribution.R | permissive | agisga/www.alexejgossmann.com | R | false | false | 1,322 | r | library(tidyverse)
library(doParallel)
registerDoParallel(2)
#--- conditional distribution Y|X=x
n_samp <- 10000
df12 <- 0:5
samp <- foreach(i = df12, .combine = "cbind") %dopar% {
rf(n_samp, df1 = exp(i), df2 = 2^i)
}
colnames(samp) <- df12
samp_df <- as_data_frame(samp) %>%
gather(distribution, sample) %>%
... |
#' Find overlap between mutations and a genomic region
#'
#' Find the number of mutations that reside in genomic region and take
#' surveyed area of genome into account.
#'
#' @param vcf CollapsedVCF object with mutations
#' @param surveyed GRanges object with regions of the genome that were surveyed
#' @param region... | /R/intersect_with_region.R | permissive | zongchangli/MutationalPatterns | R | false | false | 1,860 | r | #' Find overlap between mutations and a genomic region
#'
#' Find the number of mutations that reside in genomic region and take
#' surveyed area of genome into account.
#'
#' @param vcf CollapsedVCF object with mutations
#' @param surveyed GRanges object with regions of the genome that were surveyed
#' @param region... |
#install.packages("ldhmm")
library(ldhmm)
library(e1071)
ts = ldhmm.ts_log_rtn ("spx" , on ="days")
#ts$d contains the vector of dates,
#ts$x contains the vector of log-returns,
#ts$p contains the vector of prices
DistributionUtils::kurtosis(ts$x)
sapply(0:10, function(drop) e1071::kurtosis(ldhmm.drop_outliers(ts$... | /HMM-LDHMM.R | no_license | jaivrat/R-codes | R | false | false | 8,805 | r | #install.packages("ldhmm")
library(ldhmm)
library(e1071)
ts = ldhmm.ts_log_rtn ("spx" , on ="days")
#ts$d contains the vector of dates,
#ts$x contains the vector of log-returns,
#ts$p contains the vector of prices
DistributionUtils::kurtosis(ts$x)
sapply(0:10, function(drop) e1071::kurtosis(ldhmm.drop_outliers(ts$... |
#shiny_timeline_app
# Define Timeline
suppressPackageStartupMessages(library(timevis))
suppressPackageStartupMessages(library(dplyr))
timeline_items <- data_frame(
content = c("PhD start",
"Establish Advisory Committee",
"Advisory Committee Meeting",
... | /shiny_timeline_app.R | permissive | egouldo/shiny_phd_timeline | R | false | false | 1,784 | r | #shiny_timeline_app
# Define Timeline
suppressPackageStartupMessages(library(timevis))
suppressPackageStartupMessages(library(dplyr))
timeline_items <- data_frame(
content = c("PhD start",
"Establish Advisory Committee",
"Advisory Committee Meeting",
... |
CMADE <- function(par, fn, ..., lower, upper, control=list()) {
library("ringbuffer")
## Function to check the presence of options in the arguments specified by the user
# @name - argument name
# @default - default value of the argument
# RETURN: value specified by user if the given argument name found,... | /CEC2013/CMADE-New3/CMADEv12.R | no_license | Jagorius/EvolutionAlgorithms | R | false | false | 15,008 | r | CMADE <- function(par, fn, ..., lower, upper, control=list()) {
library("ringbuffer")
## Function to check the presence of options in the arguments specified by the user
# @name - argument name
# @default - default value of the argument
# RETURN: value specified by user if the given argument name found,... |
args=(commandArgs(TRUE))
#evaluate the arguments
for(i in 1:length(args)) {
eval(parse(text=args[[i]]))
}
#.libPaths("/data1/dduursma/R/x86_64-redhat-linux-gnu-library/")
library(dismo)
options(java.parameters = "-Xmx1g" )
#read in observation SWD file
sp_dat<- read.table(paste(work.dir,"data/",... | /OriginalExoticPlantsProject/Unix_Maxent_batch_run_4.R | no_license | daisyduursma/SDMexoticPlants | R | false | false | 5,263 | r | args=(commandArgs(TRUE))
#evaluate the arguments
for(i in 1:length(args)) {
eval(parse(text=args[[i]]))
}
#.libPaths("/data1/dduursma/R/x86_64-redhat-linux-gnu-library/")
library(dismo)
options(java.parameters = "-Xmx1g" )
#read in observation SWD file
sp_dat<- read.table(paste(work.dir,"data/",... |
library(tidyverse)
library(rtweet)
library(ggraph)
library(igraph)
library(scales)
library(hrbrthemes)
extrafont::loadfonts(device = "win")
tweets <- search_tweets("#COP24", n = 10000, include_rts = FALSE,
retryonratelimit = FALSE)
saveRDS(tweets)
View(tweets)
ts_plot(tweets, "6 hours") +... | /content/dev-eval/media-monitoring-script.R | permissive | pembletonc/blogdown | R | false | false | 3,223 | r | library(tidyverse)
library(rtweet)
library(ggraph)
library(igraph)
library(scales)
library(hrbrthemes)
extrafont::loadfonts(device = "win")
tweets <- search_tweets("#COP24", n = 10000, include_rts = FALSE,
retryonratelimit = FALSE)
saveRDS(tweets)
View(tweets)
ts_plot(tweets, "6 hours") +... |
#' Calculation of variable importance for regression and classification models
#'
#' A generic method for calculating variable importance for objects produced by
#' \code{train} and method specific methods
#'
#' For models that do not have corresponding \code{varImp} methods, see
#' \code{\link{filterVarImp}}.
#'
#' Ot... | /R/varImp.R | no_license | yasminemabdelfattah/caret-1 | R | false | false | 18,032 | r | #' Calculation of variable importance for regression and classification models
#'
#' A generic method for calculating variable importance for objects produced by
#' \code{train} and method specific methods
#'
#' For models that do not have corresponding \code{varImp} methods, see
#' \code{\link{filterVarImp}}.
#'
#' Ot... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linear_MODP.R
\name{do.modp}
\alias{do.modp}
\title{Modified Orthogonal Discriminant Projection}
\usage{
do.modp(
X,
label,
ndim = 2,
preprocess = c("center", "scale", "cscale", "decorrelate", "whiten"),
type = c("proportion", 0.1),... | /man/linear_MODP.Rd | no_license | dungcv/Rdimtools | R | false | true | 2,753 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linear_MODP.R
\name{do.modp}
\alias{do.modp}
\title{Modified Orthogonal Discriminant Projection}
\usage{
do.modp(
X,
label,
ndim = 2,
preprocess = c("center", "scale", "cscale", "decorrelate", "whiten"),
type = c("proportion", 0.1),... |
#' @title "ibw_error_checks": Does error checks for the library
#'
#' @description Runs through the basic error checks for the rest of the library
#'
#' @author Deepankar Datta <deepankardatta@nhs.net>
#'
#' @param weight Weight of a person in kilograms
#' @param height Height of a person in metres
#' @param weight_uni... | /R/ibw_error_checks.r | no_license | deepankardatta/IdealBodyWeightR | R | false | false | 3,391 | r | #' @title "ibw_error_checks": Does error checks for the library
#'
#' @description Runs through the basic error checks for the rest of the library
#'
#' @author Deepankar Datta <deepankardatta@nhs.net>
#'
#' @param weight Weight of a person in kilograms
#' @param height Height of a person in metres
#' @param weight_uni... |
#!/usr/bin/env Rscript
library(plyr)
args = commandArgs(trailingOnly=TRUE)
genes <-data.frame(read.table(args[1]))
names <-data.frame(read.table(args[2]))
names(genes)<- c("gene", "short.name")
head(genes)
names(names)<- c("gene", "short.name")
head(names)
merged_and_ordered <- join(x=genes, y=names, by="gene", type =... | /merged_and_ordered.R | permissive | LiZhaoLab/2019_Dmel_testis_singlecell | R | false | false | 378 | r | #!/usr/bin/env Rscript
library(plyr)
args = commandArgs(trailingOnly=TRUE)
genes <-data.frame(read.table(args[1]))
names <-data.frame(read.table(args[2]))
names(genes)<- c("gene", "short.name")
head(genes)
names(names)<- c("gene", "short.name")
head(names)
merged_and_ordered <- join(x=genes, y=names, by="gene", type =... |
#' Download meteorological and pollutant data from CETESB QUALAR
#'
#' This function download the main meteorological parameters for model
#' evaluation, together with criteria pollutants for one
#' air quality station (AQS). It will pad out the date with
#' missing data with NA.
#' This function required to have
#' \h... | /R/cetesb_retrieve_met_pol.R | permissive | ropensci/qualR | R | false | false | 5,033 | r | #' Download meteorological and pollutant data from CETESB QUALAR
#'
#' This function download the main meteorological parameters for model
#' evaluation, together with criteria pollutants for one
#' air quality station (AQS). It will pad out the date with
#' missing data with NA.
#' This function required to have
#' \h... |
local({
## Helper function to get the path to the library directory for a
## given packrat project.
getPackratLibDir <- function(projDir = NULL) {
path <- file.path("packrat", "lib", R.version$platform, getRversion())
if (!is.null(projDir)) {
## Strip trailing slashes if necessary
projDir <... | /test/packrat/packrat/init.R | permissive | virtualstaticvoid/heroku-buildpack-r | R | false | false | 8,404 | r | local({
## Helper function to get the path to the library directory for a
## given packrat project.
getPackratLibDir <- function(projDir = NULL) {
path <- file.path("packrat", "lib", R.version$platform, getRversion())
if (!is.null(projDir)) {
## Strip trailing slashes if necessary
projDir <... |
library(umx)
### Name: umxExpCov
### Title: Get the expected vcov matrix
### Aliases: umxExpCov vcov.MxModel
### ** Examples
require(umx)
data(demoOneFactor)
latents = c("G")
manifests = names(demoOneFactor)
m1 <- mxModel("One Factor", type = "RAM",
manifestVars = manifests, latentVars = latents,
mxPath(from =... | /data/genthat_extracted_code/umx/examples/umxExpCov.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 599 | r | library(umx)
### Name: umxExpCov
### Title: Get the expected vcov matrix
### Aliases: umxExpCov vcov.MxModel
### ** Examples
require(umx)
data(demoOneFactor)
latents = c("G")
manifests = names(demoOneFactor)
m1 <- mxModel("One Factor", type = "RAM",
manifestVars = manifests, latentVars = latents,
mxPath(from =... |
# Load HW data from Excel sample files
hwdata = readxl::read_xls("HTWT1.xls")
# Define Height/Weight regression from Chapter 1
f <- function(x) {
103.40 + (6.38 * x)
}
# Create 2 empty vectors
v_height <- vector()
v_weight <- vector()
# Print out regression for all x's in HW data
for (i in hwdata$X) {
y = f(i)... | /chap1_Ex2.R | no_license | fsuskate/Econometrics | R | false | false | 949 | r | # Load HW data from Excel sample files
hwdata = readxl::read_xls("HTWT1.xls")
# Define Height/Weight regression from Chapter 1
f <- function(x) {
103.40 + (6.38 * x)
}
# Create 2 empty vectors
v_height <- vector()
v_weight <- vector()
# Print out regression for all x's in HW data
for (i in hwdata$X) {
y = f(i)... |
##' drawing phylogenetic trees from list of phylo objects
##'
##' @title ggdensitree
##' @param data a list of phylo objects or any object with an as.phylo and fortify method
##' @param mapping aesthetic mapping
##' @param layout one of 'slanted', 'rectangluar', 'fan', 'circular' or 'radial' (default: 'slanted')
##' @p... | /R/ggdensitree.R | no_license | brj1/ggtree | R | false | false | 5,566 | r | ##' drawing phylogenetic trees from list of phylo objects
##'
##' @title ggdensitree
##' @param data a list of phylo objects or any object with an as.phylo and fortify method
##' @param mapping aesthetic mapping
##' @param layout one of 'slanted', 'rectangluar', 'fan', 'circular' or 'radial' (default: 'slanted')
##' @p... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "chscase_vine2")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... | /models/openml_chscase_vine2/classification_binaryClass/6110940daeb0879ec1f82f6c17809456/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 693 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "chscase_vine2")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/funcn.R
\name{getcut}
\alias{getcut}
\title{Get optimal cut points for binary or right censored phenotype}
\usage{
getcut(pre, act, fam = "Logistic")
}
\arguments{
\item{pre}{predicted value}
\item{act}{actual values (class for binary phenot... | /man/getcut.Rd | permissive | xiaoqiao21/glmaag | R | false | true | 691 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/funcn.R
\name{getcut}
\alias{getcut}
\title{Get optimal cut points for binary or right censored phenotype}
\usage{
getcut(pre, act, fam = "Logistic")
}
\arguments{
\item{pre}{predicted value}
\item{act}{actual values (class for binary phenot... |
# Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComAdobeXmpWorkerFilesNcommXMPFi... | /clients/r/generated/R/ComAdobeXmpWorkerFilesNcommXMPFilesNCommInfo.r | permissive | shinesolutions/swagger-aem-osgi | R | false | false | 5,846 | r | # Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComAdobeXmpWorkerFilesNcommXMPFi... |
# James Rekow
piusTreatmentTest = function(M = 40, numSubgroups = 1, N = 20, iStrength = 1, univ = 1,
sigmaMax = 0.1, thresholdMult = 10 ^ (-1), maxSteps = 10 ^ 4,
tStep = 10 ^ (-2), intTime = 1, interSmplMult = 0.01, lambda = 0,
... | /piusTreatmentTest.r | permissive | JamesRekow/Canine_Cohort_GLV_Model | R | false | false | 2,541 | r | # James Rekow
piusTreatmentTest = function(M = 40, numSubgroups = 1, N = 20, iStrength = 1, univ = 1,
sigmaMax = 0.1, thresholdMult = 10 ^ (-1), maxSteps = 10 ^ 4,
tStep = 10 ^ (-2), intTime = 1, interSmplMult = 0.01, lambda = 0,
... |
#read data
data <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors=FALSE, dec=".")
#format date
data$Date <- as.Date(data$Date, "%d/%m/%Y")
#select data
subdata<-data[data$Date > "2007-1-31" & data$Date < "2007-2-3", ]
subdata$Time <- strptime(paste(subdata$Date, subdata$Time,... | /Plot 4.R | no_license | MolterGaus/ExData_Plotting1 | R | false | false | 1,375 | r | #read data
data <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors=FALSE, dec=".")
#format date
data$Date <- as.Date(data$Date, "%d/%m/%Y")
#select data
subdata<-data[data$Date > "2007-1-31" & data$Date < "2007-2-3", ]
subdata$Time <- strptime(paste(subdata$Date, subdata$Time,... |
#' Pull information from TMDB API
#' @description Combine Api pull functions 'pull_movie_titles', and 'pull_cast' to create
#' a dataframe that a network can be built from
#' @param api_key Api key requested from the website
#' @param genres genres of interest can include: 'Action', 'Adventure', 'Animation',
#' 'Come... | /R/create_network_data.R | no_license | kaseyriver11/movieNetwork | R | false | false | 1,617 | r |
#' Pull information from TMDB API
#' @description Combine Api pull functions 'pull_movie_titles', and 'pull_cast' to create
#' a dataframe that a network can be built from
#' @param api_key Api key requested from the website
#' @param genres genres of interest can include: 'Action', 'Adventure', 'Animation',
#' 'Come... |
test.terrainr <- function(
ncdf4.spatiotemporal = NULL
) {
thisFunctionName <- "test.terrainr";
cat("\n### ~~~~~~~~~~~~~~~~~~~~ ###");
cat(paste0("\n",thisFunctionName,"() starts.\n"));
require(terrainr);
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ###
ncdf4.object.spatiotemporal <- ... | /earth-observation/synthetic-aperture-radar/007-fpc-scores/code/test-terrainr.R | no_license | paradisepilot/study | R | false | false | 4,608 | r |
test.terrainr <- function(
ncdf4.spatiotemporal = NULL
) {
thisFunctionName <- "test.terrainr";
cat("\n### ~~~~~~~~~~~~~~~~~~~~ ###");
cat(paste0("\n",thisFunctionName,"() starts.\n"));
require(terrainr);
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ###
ncdf4.object.spatiotemporal <- ... |
testlist <- list(Beta = 0, CVLinf = -1.36403152722321e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615828956-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 487 | r | testlist <- list(Beta = 0, CVLinf = -1.36403152722321e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature_size_change.R
\name{feat_size_change}
\alias{feat_size_change}
\title{Feature: Instantaneous Size Change}
\usage{
feat_size_change(new_size, population = 1, time = "0")
}
\arguments{
\item{new_size}{A \code{\link{parameter}} giving th... | /man/feat_size_change.Rd | no_license | jorgeamaya/coala | R | false | true | 1,720 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature_size_change.R
\name{feat_size_change}
\alias{feat_size_change}
\title{Feature: Instantaneous Size Change}
\usage{
feat_size_change(new_size, population = 1, time = "0")
}
\arguments{
\item{new_size}{A \code{\link{parameter}} giving th... |
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 1.5351463494971e-38,... | /epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926351-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 1,100 | r | testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 1.5351463494971e-38,... |
library(PASWR2)
library(broom)
library(dplyr)
ggplot(data = GRADES, aes(x = sat, y = gpa)) +
geom_point(color = "lightblue") +
theme_bw() +
geom_smooth(method = "lm", se = FALSE)
GRADES %>%
filter(sat >= 1000, sat <= 1200) %>%
ggplot(aes(x = sat, y = gpa)) +
geom_point(color = "lightblue") +
geom_s... | /Rscripts/miscRegStuff.R | permissive | calebjbdavis/STT5812CourseRepo | R | false | false | 530 | r | library(PASWR2)
library(broom)
library(dplyr)
ggplot(data = GRADES, aes(x = sat, y = gpa)) +
geom_point(color = "lightblue") +
theme_bw() +
geom_smooth(method = "lm", se = FALSE)
GRADES %>%
filter(sat >= 1000, sat <= 1200) %>%
ggplot(aes(x = sat, y = gpa)) +
geom_point(color = "lightblue") +
geom_s... |
#-------------------------------------------------------------------------------
# addfiglab: Add a figure label in topleft-most corner
#-------------------------------------------------------------------------------
#' @name addfiglab
#' @title Add a figure label in topleft-most corner
#' @description Add a figure la... | /R/addfiglab.R | no_license | daynefiler/dlfUtils | R | false | false | 1,343 | r | #-------------------------------------------------------------------------------
# addfiglab: Add a figure label in topleft-most corner
#-------------------------------------------------------------------------------
#' @name addfiglab
#' @title Add a figure label in topleft-most corner
#' @description Add a figure la... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stat.tfisher.omni.R
\name{stat.tfisher.omni}
\alias{stat.tfisher.omni}
\title{Construct omnibus thresholding Fisher's (TFisher) p-value combination statistic.}
\usage{
stat.tfisher.omni(p, TAU1, TAU2, M = NULL, MU = NULL, SIGMA2 = NULL,... | /man/stat.tfisher.omni.Rd | no_license | cran/TFisher | R | false | true | 1,954 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stat.tfisher.omni.R
\name{stat.tfisher.omni}
\alias{stat.tfisher.omni}
\title{Construct omnibus thresholding Fisher's (TFisher) p-value combination statistic.}
\usage{
stat.tfisher.omni(p, TAU1, TAU2, M = NULL, MU = NULL, SIGMA2 = NULL,... |
\name{connectedSets}
\alias{connectedSets}
\title{Connected sets in a matrix}
\description{
Finds connected data sets, i.e. connected rows and columns
of a numeric matrix M.
}
\usage{connectedSets(M)}
\arguments{
\item{M}{Numeric matrix with missing values assumed to be NA or 0.}
}
\details{
In a two-way classifica... | /man/connectedSets.Rd | no_license | cran/pheno | R | false | false | 1,936 | rd | \name{connectedSets}
\alias{connectedSets}
\title{Connected sets in a matrix}
\description{
Finds connected data sets, i.e. connected rows and columns
of a numeric matrix M.
}
\usage{connectedSets(M)}
\arguments{
\item{M}{Numeric matrix with missing values assumed to be NA or 0.}
}
\details{
In a two-way classifica... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Main.R
\name{execute}
\alias{execute}
\title{Execute the Study}
\usage{
execute(connectionDetails, cdmDatabaseSchema,
cohortDatabaseSchema = cdmDatabaseSchema, cohortTable = "cohort",
oracleTempSchema = cohortDatabaseSchema, outputFolder,... | /OhdsiDataThonKorea2019/Studies/datathon4Est2/man/execute.Rd | permissive | ohdsi-korea/OhdsiKoreaTutorials | R | false | true | 3,449 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Main.R
\name{execute}
\alias{execute}
\title{Execute the Study}
\usage{
execute(connectionDetails, cdmDatabaseSchema,
cohortDatabaseSchema = cdmDatabaseSchema, cohortTable = "cohort",
oracleTempSchema = cohortDatabaseSchema, outputFolder,... |
library(shiny)
library(shinythemes)
rm(list=ls())
ui <- fluidPage(
theme = shinytheme("superhero"),
# img(src = "image.jpg"),
h1("Estimez votre patrimoine, actuel et futur"),
# h3(""),
span("Cette page est associée au billet de blog: ", style="size-font:2.4em;"),
span(a("Gérer son patrimoine commence pa... | /app.R | no_license | Direr/blog_01 | R | false | false | 3,854 | r | library(shiny)
library(shinythemes)
rm(list=ls())
ui <- fluidPage(
theme = shinytheme("superhero"),
# img(src = "image.jpg"),
h1("Estimez votre patrimoine, actuel et futur"),
# h3(""),
span("Cette page est associée au billet de blog: ", style="size-font:2.4em;"),
span(a("Gérer son patrimoine commence pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{NeoALTTO(a)_2A}
\alias{NeoALTTO(a)_2A}
\title{NeoALTTO(a), figure 2A}
\format{
A data frame of 303 observations and 3 variables:
\tabular{lll}{
\tab \code{time} \tab event time (in years) \cr
\tab \code{event} \tab... | /man/NeoALTTO-open-paren-a-close-paren-_2A.Rd | no_license | Owain-S/kmdata | R | false | true | 1,019 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{NeoALTTO(a)_2A}
\alias{NeoALTTO(a)_2A}
\title{NeoALTTO(a), figure 2A}
\format{
A data frame of 303 observations and 3 variables:
\tabular{lll}{
\tab \code{time} \tab event time (in years) \cr
\tab \code{event} \tab... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parallel.R
\name{runParallel}
\alias{runParallel}
\title{Initialize parallel workers}
\usage{
runParallel(ncores = 1L)
}
\arguments{
\item{ncores}{integer number of cores to initialize}
}
\value{
cluster object
}
\description{
Initialize para... | /man/runParallel.Rd | permissive | linnykos/rfunctions | R | false | true | 432 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parallel.R
\name{runParallel}
\alias{runParallel}
\title{Initialize parallel workers}
\usage{
runParallel(ncores = 1L)
}
\arguments{
\item{ncores}{integer number of cores to initialize}
}
\value{
cluster object
}
\description{
Initialize para... |
library('Seurat')
library(dplyr)
library(ggplot2)
# tsne plot
colors.use <- scales::hue_pal()(length(levels(dds@ident)))
p1 <- TSNEPlot(dds, do.label = FALSE, do.return=TRUE, colors.use = colors.use)
p1$data$pheno <- dds@meta.data$Pheno
p1 + facet_grid(. ~ pheno)
# violin plot for gene
VlnPlot(dds,feature,cols.use ... | /visualization_seurat.R | no_license | roofya/sae_lung_seurat | R | false | false | 1,337 | r |
library('Seurat')
library(dplyr)
library(ggplot2)
# tsne plot
colors.use <- scales::hue_pal()(length(levels(dds@ident)))
p1 <- TSNEPlot(dds, do.label = FALSE, do.return=TRUE, colors.use = colors.use)
p1$data$pheno <- dds@meta.data$Pheno
p1 + facet_grid(. ~ pheno)
# violin plot for gene
VlnPlot(dds,feature,cols.use ... |
testlist <- list(x1 = NaN, x2 = numeric(0), y1 = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y2 = numeric(0))
result <- do.call(palm:::euc_distances,testlist)
str(result) | /palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612968229-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 294 | r | testlist <- list(x1 = NaN, x2 = numeric(0), y1 = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y2 = numeric(0))
result <- do.call(palm:::euc_distances,testlist)
str(result) |
ExploreTimeData <- function(
timeData = NULL,
dataSymbol = NULL,
filePath = NULL,
plotDesc = NULL,
numLags = 25
) {
############################################ Histograms ###############################################
dir.create(file.path(filePath, "Histograms"), showWarnings = FALSE)... | /R_NYSE_Stock_Forecasting/ExploreTimeData.R | no_license | karipalmier/DePaul_Projects | R | false | false | 4,829 | r |
ExploreTimeData <- function(
timeData = NULL,
dataSymbol = NULL,
filePath = NULL,
plotDesc = NULL,
numLags = 25
) {
############################################ Histograms ###############################################
dir.create(file.path(filePath, "Histograms"), showWarnings = FALSE)... |
# draw the graph to overlay PA 1 month delta, SPX, oecd cli and its 6 month delta.
# https://00819.blogspot.com/2019/02/plot-abline-eps-gspc.html for the reference
#
start_date <- "1992-01-01"
# end_date <- last(index(cli_xts))
end_date <- as.Date(as.yearmon((mondate(index(last(cli_xts)))+0)),frac=1)
period <- past... | /index/padelta_spx_cliidelta.r | no_license | onomoto/R2 | R | false | false | 1,386 | r | # draw the graph to overlay PA 1 month delta, SPX, oecd cli and its 6 month delta.
# https://00819.blogspot.com/2019/02/plot-abline-eps-gspc.html for the reference
#
start_date <- "1992-01-01"
# end_date <- last(index(cli_xts))
end_date <- as.Date(as.yearmon((mondate(index(last(cli_xts)))+0)),frac=1)
period <- past... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as_tibble.R
\name{as_tibble}
\alias{as_tibble}
\alias{current_as_tibble}
\alias{forecast_as_tibble}
\title{Parse owm data to tibble object}
\usage{
current_as_tibble(data)
forecast_as_tibble(data)
}
\arguments{
\item{data}{result returned fr... | /man/as_tibble.Rd | no_license | aedobbyn/owmr | R | false | true | 430 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as_tibble.R
\name{as_tibble}
\alias{as_tibble}
\alias{current_as_tibble}
\alias{forecast_as_tibble}
\title{Parse owm data to tibble object}
\usage{
current_as_tibble(data)
forecast_as_tibble(data)
}
\arguments{
\item{data}{result returned fr... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(plotly)
library(ggplot2)
library(RColorBrewer)
my_colours <- brewer.pal(3, "Greens")
# De... | /MASTER_app_shiny-tutorial.R | no_license | bioinformatics-ca/AUR_2021 | R | false | false | 2,096 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(plotly)
library(ggplot2)
library(RColorBrewer)
my_colours <- brewer.pal(3, "Greens")
# De... |
library(lubridate)
library(plyr)
raw_data <- read.csv("241_Project__Pilot_mTurk.csv", na.strings='')
perform_data_cleaning <- function (raw_data) {
# Not used in at runtime, but useful for debugging this function
questions <- raw_data[1,]
# Remove the question text row
working_data <- raw_data[ 2:nrow(r... | /Pilot-Preliminary-Analysis.R | permissive | sho-ohata/w241-political-news | R | false | false | 3,692 | r | library(lubridate)
library(plyr)
raw_data <- read.csv("241_Project__Pilot_mTurk.csv", na.strings='')
perform_data_cleaning <- function (raw_data) {
# Not used in at runtime, but useful for debugging this function
questions <- raw_data[1,]
# Remove the question text row
working_data <- raw_data[ 2:nrow(r... |
dists<-c()
for (i in 1:10000) {
P1<-runif(2)
P2<-runif(2)
dist<-sqrt(sum((P1-P2)^2))
dists<-c(dists,dist)
}
mean.dist<-mean(dists)
sd.dist<-sd(dists)
cat(mean.dist,sd.dist,"\n")
hist(dists) | /HLP2D.R | no_license | flucey/chem160module13 | R | false | false | 207 | r | dists<-c()
for (i in 1:10000) {
P1<-runif(2)
P2<-runif(2)
dist<-sqrt(sum((P1-P2)^2))
dists<-c(dists,dist)
}
mean.dist<-mean(dists)
sd.dist<-sd(dists)
cat(mean.dist,sd.dist,"\n")
hist(dists) |
#' Vision experience (aka plot theme).
#'
#' Describe the vision, also known as setting the theme for your plot.
#' @param base_plot The base_plot sent from the \code{\link{visualize}} chain
#' @param base_size Font size
#' @param base_family Font family
#'
#' @return Customizes the appearance of the plot.
#' @name vis... | /R/vision.R | no_license | lwjohnst86/seer | R | false | false | 1,763 | r | #' Vision experience (aka plot theme).
#'
#' Describe the vision, also known as setting the theme for your plot.
#' @param base_plot The base_plot sent from the \code{\link{visualize}} chain
#' @param base_size Font size
#' @param base_family Font family
#'
#' @return Customizes the appearance of the plot.
#' @name vis... |
library(Rquake)
### Name: XYSETUP
### Title: Set up matrix for hypocenter inversion
### Aliases: XYSETUP
### Keywords: misc
### ** Examples
## Not run:
##D ## start with the location of the closest station
##D XY = XYSETUP(STAS, c(STAS$lat[w1],STAS$lon[w1], initz, STAS$sec[w1]-t0a ) , vel )
##D
## End(Not run... | /data/genthat_extracted_code/Rquake/examples/XYSETUP.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 326 | r | library(Rquake)
### Name: XYSETUP
### Title: Set up matrix for hypocenter inversion
### Aliases: XYSETUP
### Keywords: misc
### ** Examples
## Not run:
##D ## start with the location of the closest station
##D XY = XYSETUP(STAS, c(STAS$lat[w1],STAS$lon[w1], initz, STAS$sec[w1]-t0a ) , vel )
##D
## End(Not run... |
/V1/LS-V1.R | no_license | Oliewan/Linear-Solver | R | false | false | 5,276 | r | ||
library(extremeStat)
### Name: printL
### Title: print dlf objects
### Aliases: printL
### Keywords: list methods print
### ** Examples
# see
?distLextreme
| /data/genthat_extracted_code/extremeStat/examples/printL.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 165 | r | library(extremeStat)
### Name: printL
### Title: print dlf objects
### Aliases: printL
### Keywords: list methods print
### ** Examples
# see
?distLextreme
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectrum.test.R
\name{spectrum.test}
\alias{spectrum.test}
\title{Permutation-spectrum test for time-series data}
\usage{
spectrum.test(x = NULL, sims = 10^6, progress = TRUE)
}
\arguments{
\item{x}{A vector of time-series values (mu... | /man/spectrum.test.Rd | no_license | cran/ts.extend | R | false | true | 1,472 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectrum.test.R
\name{spectrum.test}
\alias{spectrum.test}
\title{Permutation-spectrum test for time-series data}
\usage{
spectrum.test(x = NULL, sims = 10^6, progress = TRUE)
}
\arguments{
\item{x}{A vector of time-series values (mu... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../../findNSourceUtils.R')
# Test k-means clustering on prostate.csv
test.km.prostate <- function(conn) {
Log.info("Importing prostate.csv data...\n")
# prostate.hex = h2o.importURL(conn, "https..//raw.github.com/0xdata/h2o/master/small... | /R/tests/testdir_algos/kmeans/runit_kmeans_prostate.R | permissive | vkuznet/h2o | R | false | false | 1,318 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../../findNSourceUtils.R')
# Test k-means clustering on prostate.csv
test.km.prostate <- function(conn) {
Log.info("Importing prostate.csv data...\n")
# prostate.hex = h2o.importURL(conn, "https..//raw.github.com/0xdata/h2o/master/small... |
# In regression problems we predict continuous values for a target variable.
#the slope/coefficient values learnt in LR for all the variables are similar to the weights learnt for the corresponding variables in log R or a neural net.
#The learning part in LR while training the model is learning the relation between t... | /Linear Regression/Linear_Regression.R | no_license | sagar3122/Data-Science-and-Machine-Learning-with-R | R | false | false | 26,741 | r | # In regression problems we predict continuous values for a target variable.
#the slope/coefficient values learnt in LR for all the variables are similar to the weights learnt for the corresponding variables in log R or a neural net.
#The learning part in LR while training the model is learning the relation between t... |
#' @import data.table
net_base_flow <- function(x){
x <- as.data.table(x)
el <- normalize_edges(x)
el2 <- el[,.(nett = sum(weight), base = min(abs(weight))), by=.(from,to)]
list( nett = el2[nett != 0, .(from, to, weight = nett, weight_rel = nett/base)]
, base = el2[base != 0, .(from, to, weight = base... | /R/netflow.R | permissive | edwindj/hodgedecompose | R | false | false | 410 | r | #' @import data.table
net_base_flow <- function(x){
x <- as.data.table(x)
el <- normalize_edges(x)
el2 <- el[,.(nett = sum(weight), base = min(abs(weight))), by=.(from,to)]
list( nett = el2[nett != 0, .(from, to, weight = nett, weight_rel = nett/base)]
, base = el2[base != 0, .(from, to, weight = base... |
#' @name byte_mutation
#' @title Performs mutation operation on a given double vector
#' @description This function is not called directly but is given as a parameter in \code{GA::ga} function.
#' In \code{GA::ga}, if the parameter \code{mutation=} is set to \code{byte_mutation} than
#' the byte-coded mutation operato... | /R/oplibrary.R | no_license | jbytecode/mcga | R | false | false | 25,603 | r | #' @name byte_mutation
#' @title Performs mutation operation on a given double vector
#' @description This function is not called directly but is given as a parameter in \code{GA::ga} function.
#' In \code{GA::ga}, if the parameter \code{mutation=} is set to \code{byte_mutation} than
#' the byte-coded mutation operato... |
# Program Name:ad_analyze_prog
# Date :2017.12.12
###### Program's Outline ######
#< Goal >
# (1) Visualize Online-Offline ad effectiveness
# (2) Budget planing to maximize ad effectiveness
#
#< Image of visualization of Online-Offline ad effectiveness>
#
# In addition to CPA, making Cognitive-based ad effect... | /old/sample_SEM_adv_20171212.R | no_license | Norway1981/test | R | false | false | 3,631 | r | # Program Name:ad_analyze_prog
# Date :2017.12.12
###### Program's Outline ######
#< Goal >
# (1) Visualize Online-Offline ad effectiveness
# (2) Budget planing to maximize ad effectiveness
#
#< Image of visualization of Online-Offline ad effectiveness>
#
# In addition to CPA, making Cognitive-based ad effect... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pagerank_score.R
\name{pagerank_score}
\alias{pagerank_score}
\title{PageRank Score}
\usage{
pagerank_score(edge_list, filtered_info_df)
}
\arguments{
\item{edge_list}{list contains separate edge data.frames for each chain}
\item{filtered_in... | /man/pagerank_score.Rd | permissive | berkgurdamar/predatoR | R | false | true | 626 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pagerank_score.R
\name{pagerank_score}
\alias{pagerank_score}
\title{PageRank Score}
\usage{
pagerank_score(edge_list, filtered_info_df)
}
\arguments{
\item{edge_list}{list contains separate edge data.frames for each chain}
\item{filtered_in... |
options("keep.source"=TRUE)
run <- function(){
abd_stop(0)
abd_start()
a <- 10
b <- 20
add <- function(x, y){
result <- x + y
result
}
finalito <- add(a,b)
abd_stop()
}
run() | /R_test_files/func.R | no_license | luisrodrigues154/ABD_tool | R | false | false | 243 | r | options("keep.source"=TRUE)
run <- function(){
abd_stop(0)
abd_start()
a <- 10
b <- 20
add <- function(x, y){
result <- x + y
result
}
finalito <- add(a,b)
abd_stop()
}
run() |
#' @importFrom partykit party
#' @importFrom flipU OutcomeName
#' @importFrom stats formula
#' @importFrom verbs Sum
treeFrameToParty <- function(frame, xlevels, model, terms, labels)
{
df <- data.frame()
node.hash <- getNodeHash(xlevels)
not.leaf <- frame$var != "<leaf>"
n.splits <- Sum(not.leaf, rem... | /R/partytree.R | no_license | Displayr/flipTrees | R | false | false | 8,850 | r | #' @importFrom partykit party
#' @importFrom flipU OutcomeName
#' @importFrom stats formula
#' @importFrom verbs Sum
treeFrameToParty <- function(frame, xlevels, model, terms, labels)
{
df <- data.frame()
node.hash <- getNodeHash(xlevels)
not.leaf <- frame$var != "<leaf>"
n.splits <- Sum(not.leaf, rem... |
\name{barcode.quality}
\alias{barcode.quality}
\title{Estimates of barcode quality
}
\description{
Provides several estimates of the quality of a barcode classification, comparing network modules with attributed species names
}
\usage{
barcode.quality(dismat=NA,threshold=NA,refer2max=FALSE,save.file=FALSE,
modFileNam... | /man/barcode.quality.Rd | no_license | hillhillll/sidier | R | false | false | 4,275 | rd | \name{barcode.quality}
\alias{barcode.quality}
\title{Estimates of barcode quality
}
\description{
Provides several estimates of the quality of a barcode classification, comparing network modules with attributed species names
}
\usage{
barcode.quality(dismat=NA,threshold=NA,refer2max=FALSE,save.file=FALSE,
modFileNam... |
library(shinythemes)
library(shiny)
rm(list = ls())
shinyUI(fluidPage(
theme = shinytheme("superhero"),
tags$head(
tags$style(HTML("
@import url('../ww/css.txt');
"))
),
#cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone, simplex, slate, spacelab, superhero, u... | /ui.R | no_license | paulsseb/UNRASYS | R | false | false | 2,413 | r | library(shinythemes)
library(shiny)
rm(list = ls())
shinyUI(fluidPage(
theme = shinytheme("superhero"),
tags$head(
tags$style(HTML("
@import url('../ww/css.txt');
"))
),
#cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone, simplex, slate, spacelab, superhero, u... |
library(foreign)
library(CCA)
library(yacca)
library(MASS)
library(corrplot) #Plot Correlations
#Read in Iris Data
setwd("E:/DPU/Summer I/Advance Data Analysis/week7/HW3")
responses <- read.csv(file="responses.csv", header=TRUE, sep=",")
head(responses)
#Check Sample Size and Number of Variables
dim... | /Canonical Correlation Analysis on the Young People/Canonical Correlation Analysis on the Young People.R | no_license | umaimakhh/Data-Analysis-and-Regression | R | false | false | 5,333 | r | library(foreign)
library(CCA)
library(yacca)
library(MASS)
library(corrplot) #Plot Correlations
#Read in Iris Data
setwd("E:/DPU/Summer I/Advance Data Analysis/week7/HW3")
responses <- read.csv(file="responses.csv", header=TRUE, sep=",")
head(responses)
#Check Sample Size and Number of Variables
dim... |
require(ggplot2)
require(tidyverse)
require(gridExtra)
require(grid)
require(magrittr)
require(factoextra)
require(dismo)
require(rJava)
load('../amazon maximum height extras/maxentHeight70Cor80v14042020.Rdata')
# source('./10_ImportingRasters.R')
meanVariables = maximas@data %>% na.omit() %>% sapply(mea... | /45_MarginalPlotsME.R | no_license | Gorgens/amazon-maximum-height | R | false | false | 37,614 | r | require(ggplot2)
require(tidyverse)
require(gridExtra)
require(grid)
require(magrittr)
require(factoextra)
require(dismo)
require(rJava)
load('../amazon maximum height extras/maxentHeight70Cor80v14042020.Rdata')
# source('./10_ImportingRasters.R')
meanVariables = maximas@data %>% na.omit() %>% sapply(mea... |
library(ape)
testtree <- read.tree("1292_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1292_0_unrooted.txt") | /codeml_files/newick_trees_processed/1292_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("1292_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1292_0_unrooted.txt") |
curl_get_plaintext <- function(url, handle, encoding) {
req <- curl::curl_fetch_memory(url, handle)
if (req$status_code != 200) stop("Failed to fetch data.", call. = FALSE)
stringr::str_conv(req$content, encoding = encoding)
}
#' Query function generator
#'
#' Query values using HTTP GET. Expected returned val... | /R/realtime.R | permissive | junduck/tswbench | R | false | false | 8,908 | r | curl_get_plaintext <- function(url, handle, encoding) {
req <- curl::curl_fetch_memory(url, handle)
if (req$status_code != 200) stop("Failed to fetch data.", call. = FALSE)
stringr::str_conv(req$content, encoding = encoding)
}
#' Query function generator
#'
#' Query values using HTTP GET. Expected returned val... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAnimalAlleleFileHeaders.R
\name{getAnimalAlleleFileHeaders}
\alias{getAnimalAlleleFileHeaders}
\title{Gets character vector of the approved file headers before loci list for a
animal allele file.}
\usage{
getAnimalAlleleFileHeaders()
}
\de... | /man/getAnimalAlleleFileHeaders.Rd | permissive | rmsharp/parentfindr | R | false | true | 427 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAnimalAlleleFileHeaders.R
\name{getAnimalAlleleFileHeaders}
\alias{getAnimalAlleleFileHeaders}
\title{Gets character vector of the approved file headers before loci list for a
animal allele file.}
\usage{
getAnimalAlleleFileHeaders()
}
\de... |
library(chemometrics)
### Name: stepwise
### Title: Stepwise regression
### Aliases: stepwise
### Keywords: multivariate
### ** Examples
data(NIR)
X <- NIR$xNIR[1:30,] # first 30 observations - for illustration
y <- NIR$yGlcEtOH[1:30,1] # only variable Glucose
NIR.Glc <- data.frame(X=X, y=y)
res=stepwise(y~.,d... | /data/genthat_extracted_code/chemometrics/examples/stepwise.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 350 | r | library(chemometrics)
### Name: stepwise
### Title: Stepwise regression
### Aliases: stepwise
### Keywords: multivariate
### ** Examples
data(NIR)
X <- NIR$xNIR[1:30,] # first 30 observations - for illustration
y <- NIR$yGlcEtOH[1:30,1] # only variable Glucose
NIR.Glc <- data.frame(X=X, y=y)
res=stepwise(y~.,d... |
rm(list = ls())
options(tinytex.verbose = TRUE)
options(knitr.duplicate.label = "allow")
knitr::opts_chunk$set(
crop = NULL,
cache = TRUE,
tidy = TRUE,
tidy.opts = list(width.cutoff = 50),
error = TRUE,
warning = FALSE,
message = FALSE,
out.width = "70%",
fig.align = 'center',
fig.width = 6,
fig... | /_common.R | no_license | JosCordn0807/notas-curso-estadistica-parte-1 | R | false | false | 388 | r | rm(list = ls())
options(tinytex.verbose = TRUE)
options(knitr.duplicate.label = "allow")
knitr::opts_chunk$set(
crop = NULL,
cache = TRUE,
tidy = TRUE,
tidy.opts = list(width.cutoff = 50),
error = TRUE,
warning = FALSE,
message = FALSE,
out.width = "70%",
fig.align = 'center',
fig.width = 6,
fig... |
### Kristin Meier
### R script for MSiA 400 Lab 1
### Excersise 1 Problem 2
### 10/16/2016
# Write your own one-way ANOVA function in R which takes two vectors
# (i.e. data and group labels)
# as input and the F-test result (e.g. reject null hypothesis or not) as output.
# calculate data for anova
# calculate ... | /anova_ftest.R | no_license | kmeier1633/exampleR | R | false | false | 3,030 | r |
### Kristin Meier
### R script for MSiA 400 Lab 1
### Excersise 1 Problem 2
### 10/16/2016
# Write your own one-way ANOVA function in R which takes two vectors
# (i.e. data and group labels)
# as input and the F-test result (e.g. reject null hypothesis or not) as output.
# calculate data for anova
# calculate ... |
#' @import sf
#' @importFrom rlang .env .data
viz_payrolls_map <- function(data = load_data(),
arg1 = "Melbourne",
arg2 = NULL) {
df <- data$payrolls_sa3_jobs
city <- arg1
df <- df %>%
filter(!is.na(.data$value)) %>%
filter(.data$date == max(.da... | /R/viz_payrolls_map.R | permissive | anhnguyendepocen/macrodashboard | R | false | false | 2,789 | r | #' @import sf
#' @importFrom rlang .env .data
viz_payrolls_map <- function(data = load_data(),
arg1 = "Melbourne",
arg2 = NULL) {
df <- data$payrolls_sa3_jobs
city <- arg1
df <- df %>%
filter(!is.na(.data$value)) %>%
filter(.data$date == max(.da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reshape.r
\name{cast_tokens_aggregate}
\alias{cast_tokens_aggregate}
\title{Like cast_tokens, but instead of returning the tokens, aggregate one column}
\usage{
cast_tokens_aggregate(tokens, x, FUN, by, id, collapse_id = F, ...)
}
\arguments{... | /man/cast_tokens_aggregate.Rd | permissive | strohne/rsyntax | R | false | true | 1,254 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reshape.r
\name{cast_tokens_aggregate}
\alias{cast_tokens_aggregate}
\title{Like cast_tokens, but instead of returning the tokens, aggregate one column}
\usage{
cast_tokens_aggregate(tokens, x, FUN, by, id, collapse_id = F, ...)
}
\arguments{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directconnect_operations.R
\name{directconnect_allocate_transit_virtual_interface}
\alias{directconnect_allocate_transit_virtual_interface}
\title{Provisions a transit virtual interface to be owned by the specified AWS
account}
\usage{
direct... | /cran/paws.networking/man/directconnect_allocate_transit_virtual_interface.Rd | permissive | johnnytommy/paws | R | false | true | 1,834 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directconnect_operations.R
\name{directconnect_allocate_transit_virtual_interface}
\alias{directconnect_allocate_transit_virtual_interface}
\title{Provisions a transit virtual interface to be owned by the specified AWS
account}
\usage{
direct... |
context("Check TS functions")
data(rodents)
lda_data <- rodents$document_term_table
document_term_table <- rodents$document_term_table
document_covariate_table <- rodents$document_covariate_table
topics <- 2
nseeds <- 1
formulas <- ~ 1
nchangepoints <- 1
weights <- document_weights(document_term_table)
LDAs... | /tests/testthat/test-09-TS.R | permissive | cran/LDATS | R | false | false | 8,779 | r | context("Check TS functions")
data(rodents)
lda_data <- rodents$document_term_table
document_term_table <- rodents$document_term_table
document_covariate_table <- rodents$document_covariate_table
topics <- 2
nseeds <- 1
formulas <- ~ 1
nchangepoints <- 1
weights <- document_weights(document_term_table)
LDAs... |
library(tidyverse)
# load in the data
ipip <- read_csv('ipip50_sample.csv')
# This dataset includes measures of the Big 5 Inventory personality index, which
# measures traits of Agreeableness, Conscientiousness, Extroversion,
# Neuroticism, and Openness, along with measures of age, BMI, and exercise
# habits for 1... | /big5health.R | no_license | UofTPsychProg-fall-2019/ps9-nrbouffard | R | false | false | 6,562 | r |
library(tidyverse)
# load in the data
ipip <- read_csv('ipip50_sample.csv')
# This dataset includes measures of the Big 5 Inventory personality index, which
# measures traits of Agreeableness, Conscientiousness, Extroversion,
# Neuroticism, and Openness, along with measures of age, BMI, and exercise
# habits for 1... |
sqlitePath <- "hopper.db"
save_data_tidy <- function(con, df, table){
if(!(is.null(df$date_of_birth))){
df %>%
mutate(date_of_birth = stringr::str_extract(openssl::sha256(as.character(date_of_birth)), "[0-9a-z]+"),
first_name = openssl::sha256(tolower(first_name)),
last_name = op... | /storage.R | permissive | medpsytuebingen/Aiakos | R | false | false | 2,048 | r | sqlitePath <- "hopper.db"
save_data_tidy <- function(con, df, table){
if(!(is.null(df$date_of_birth))){
df %>%
mutate(date_of_birth = stringr::str_extract(openssl::sha256(as.character(date_of_birth)), "[0-9a-z]+"),
first_name = openssl::sha256(tolower(first_name)),
last_name = op... |
#
# 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(readxl)
library(data.table)
library(dplyr)
library(ggplot2)
# Define server log... | /Server.R | no_license | jcode2code/vbDash | R | false | false | 2,166 | 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(readxl)
library(data.table)
library(dplyr)
library(ggplot2)
# Define server log... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidycensus.R
\name{get_acs_race_ethnicity}
\alias{get_acs_race_ethnicity}
\title{Get race/ethnicity data from ACS}
\usage{
get_acs_race_ethnicity(...)
}
\arguments{
\item{...}{}
}
\value{
data frame with race/ethnicity data
}
\description{
Ge... | /man/get_acs_race_ethnicity.Rd | permissive | malcolmbarrett/rfortherestofus | R | false | true | 353 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidycensus.R
\name{get_acs_race_ethnicity}
\alias{get_acs_race_ethnicity}
\title{Get race/ethnicity data from ACS}
\usage{
get_acs_race_ethnicity(...)
}
\arguments{
\item{...}{}
}
\value{
data frame with race/ethnicity data
}
\description{
Ge... |
#load the dplyr library to use group_by and summerize_all
library(dplyr)
#pull all the data into r
x_training <- read.table('./train/X_train.txt')
x_test <- read.table('./test/X_test.txt')
y_training <- read.table('./train/Y_train.txt')
y_test <- read.table('./test/Y_test.txt')
subject_test <- read.table('./test... | /run_analysis.R | no_license | mreed/cleaning_data_course_assignment | R | false | false | 1,794 | r | #load the dplyr library to use group_by and summerize_all
library(dplyr)
#pull all the data into r
x_training <- read.table('./train/X_train.txt')
x_test <- read.table('./test/X_test.txt')
y_training <- read.table('./train/Y_train.txt')
y_test <- read.table('./test/Y_test.txt')
subject_test <- read.table('./test... |
#' Indirect Analysis
#'
#' This script is designed analyze the set of runs <l> against ecosystem metrics.
#' @param l A list of the data sets to analyze. For each plot, the data saved in the files specified by l will be loaded and plotted.
#' @param dir The prefered output directory for the generated images. Include th... | /R/Analysis.Indirect.R | no_license | tbrycekelly/CCELIM | R | false | false | 1,761 | r | #' Indirect Analysis
#'
#' This script is designed analyze the set of runs <l> against ecosystem metrics.
#' @param l A list of the data sets to analyze. For each plot, the data saved in the files specified by l will be loaded and plotted.
#' @param dir The prefered output directory for the generated images. Include th... |
ggplot() +
coord_cartesian() +
scale_x_continuous() +
scale_y_continuous() +
labs(title='Hospital Payments by Disease in Texas') +
labs(x=paste("PAYMENT"), y="Overpaid Amount") +
layer(data=overpaid,
mapping=aes(x=as.numeric(as.character(PAYMENT)), y=Overpaid_amt, color=MEASURE_NAME),
st... | /02 Data Wrangling/Plot5.R | no_license | bca625/DV_RProject2 | R | false | false | 512 | r | ggplot() +
coord_cartesian() +
scale_x_continuous() +
scale_y_continuous() +
labs(title='Hospital Payments by Disease in Texas') +
labs(x=paste("PAYMENT"), y="Overpaid Amount") +
layer(data=overpaid,
mapping=aes(x=as.numeric(as.character(PAYMENT)), y=Overpaid_amt, color=MEASURE_NAME),
st... |
#read text file
library(tm)
setwd("~/Desktop")
tweets<-readLines("Tweets.txt")
tweets
#build corpus
corpus<- Corpus(VectorSource(tweets))
#create term document matrix
tdm<-TermDocumentMatrix(corpus, control = list(minWordLength=c(1,Inf)))
tdm
#reduce the sparsity
t <- removeSparseTerms(tdm, sparse=0.98)
t
#convert ... | /sin.R | no_license | rakshakannu/cluster-analysis-of-tweets | R | false | false | 783 | r | #read text file
library(tm)
setwd("~/Desktop")
tweets<-readLines("Tweets.txt")
tweets
#build corpus
corpus<- Corpus(VectorSource(tweets))
#create term document matrix
tdm<-TermDocumentMatrix(corpus, control = list(minWordLength=c(1,Inf)))
tdm
#reduce the sparsity
t <- removeSparseTerms(tdm, sparse=0.98)
t
#convert ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stan_clogit.R
\name{stan_clogit}
\alias{stan_clogit}
\title{Conditional logistic (clogit) regression models via Stan}
\usage{
stan_clogit(
formula,
data,
subset,
na.action = NULL,
contrasts = NULL,
...,
strata,
prior = normal(... | /man/stan_clogit.Rd | no_license | cran/rstanarm | R | false | true | 7,913 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stan_clogit.R
\name{stan_clogit}
\alias{stan_clogit}
\title{Conditional logistic (clogit) regression models via Stan}
\usage{
stan_clogit(
formula,
data,
subset,
na.action = NULL,
contrasts = NULL,
...,
strata,
prior = normal(... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include wafv2_service.R
NULL
.wafv2$associate_web_acl_input <- function(...) {
args <- c(as.list(environment()), list(...))
shape <- structure(list(WebACLArn = structure(logical(0), tags = list(type = "string"))... | /paws/R/wafv2_interfaces.R | permissive | TWarczak/paws | R | false | false | 116,159 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include wafv2_service.R
NULL
.wafv2$associate_web_acl_input <- function(...) {
args <- c(as.list(environment()), list(...))
shape <- structure(list(WebACLArn = structure(logical(0), tags = list(type = "string"))... |
# Jake Yeung
# Date of Creation: 2020-08-25
# File: ~/projects/scchic/scripts/rstudioserver_analysis/ZF_all_merged/MARA_downstream_ZF.R
# Analyze MARA downstream for ZF
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
# Load mara outputs -----------------------------------------... | /scripts/rstudioserver_analysis/ZF_all_merged/MARA_downstream_ZF.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 337 | r | # Jake Yeung
# Date of Creation: 2020-08-25
# File: ~/projects/scchic/scripts/rstudioserver_analysis/ZF_all_merged/MARA_downstream_ZF.R
# Analyze MARA downstream for ZF
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
# Load mara outputs -----------------------------------------... |
library(shiny)
# Define UI for slider demo application
shinyUI(fluidPage(
shinyjs::useShinyjs(),
# Application title
headerPanel("Foreign Policy Survey"),
sidebarPanel(
# This is intentionally an empty object.
h5("Created by:"),
tags$a("The Institute for Quantitative Social Science... | /ui.R | no_license | aaronrkaufman/SeqBlock | R | false | false | 783 | r | library(shiny)
# Define UI for slider demo application
shinyUI(fluidPage(
shinyjs::useShinyjs(),
# Application title
headerPanel("Foreign Policy Survey"),
sidebarPanel(
# This is intentionally an empty object.
h5("Created by:"),
tags$a("The Institute for Quantitative Social Science... |
#' Glance at an irtree_fit object
#'
#' Glance accepts an `irtree_fit` object and returns a [tibble][tibble::tibble-package]
#' with exactly one row of model summaries.
#'
#' @return A one-row [tibble][tibble::tibble-package] with columns such as `AIC` and `BIC`.
#' ## Converged
#' The column `converged` indic... | /R/tidiers.R | no_license | cran/ItemResponseTrees | R | false | false | 18,421 | r | #' Glance at an irtree_fit object
#'
#' Glance accepts an `irtree_fit` object and returns a [tibble][tibble::tibble-package]
#' with exactly one row of model summaries.
#'
#' @return A one-row [tibble][tibble::tibble-package] with columns such as `AIC` and `BIC`.
#' ## Converged
#' The column `converged` indic... |
# All imports and globally used variables are in global.R ---------------------------------------------
ui <- fluidPage(
theme = overallTheme, # adjust this in globals
navbarPage(
title = "IMPD UOF and UCR data 2014-2019",
position = "static-top",
# Maps -----------------------------------------... | /Shiny/IMPD_Data_2014_2019/ui.R | no_license | punctuationmarks/IMPD-Data-Analysis | R | false | false | 11,225 | r |
# All imports and globally used variables are in global.R ---------------------------------------------
ui <- fluidPage(
theme = overallTheme, # adjust this in globals
navbarPage(
title = "IMPD UOF and UCR data 2014-2019",
position = "static-top",
# Maps -----------------------------------------... |
birdList <- c("BBWA","BLPW","BOCH","BRCR","BTNW",
"CAWA","CMWA","CONW","OVEN","PISI",
"RBNU","SWTH","TEWA","WETA","YRWA")
scales <- c("100", "500")
wd <- "/home/tmichele/projects/borealBirdsAndForestry/outputs/trends"
library("reproducible")
habitatSupplyChange <- yearlyHabitatSupplyChange(... | /temp/habitatChangePlot.R | no_license | tati-micheletti/borealBirdsAndForestry | R | false | false | 1,114 | r |
birdList <- c("BBWA","BLPW","BOCH","BRCR","BTNW",
"CAWA","CMWA","CONW","OVEN","PISI",
"RBNU","SWTH","TEWA","WETA","YRWA")
scales <- c("100", "500")
wd <- "/home/tmichele/projects/borealBirdsAndForestry/outputs/trends"
library("reproducible")
habitatSupplyChange <- yearlyHabitatSupplyChange(... |
\name{circles}
\alias{circles}
\title{ plot circles }
\description{
This function plots circles at given locations with given radii.
}
\usage{
circles(x, y, r, ...)
}
\arguments{
\item{x}{ vector of x coordinates }
\item{y}{ vector of y coordinates }
\item{r}{ vactor of radii }
\item{\dots}{ additional graphic... | /man/circles.Rd | no_license | cran/tripack | R | false | false | 652 | rd | \name{circles}
\alias{circles}
\title{ plot circles }
\description{
This function plots circles at given locations with given radii.
}
\usage{
circles(x, y, r, ...)
}
\arguments{
\item{x}{ vector of x coordinates }
\item{y}{ vector of y coordinates }
\item{r}{ vactor of radii }
\item{\dots}{ additional graphic... |
#' Estimation for network MR simulation
#'
#' @param sim_list Output from network_MR_simulation function
#'
#' @return A vector of the true and estimated total, direct and indirect effect and the bias of each
#' @export
#'
#' @examples
#' network_MR_analysis(network_MR_simulation())
#'
#' @author Jeremy A Labrecque
#'... | /network_MR_analysis.R | no_license | jalabrecque/MR_multiple_exposures | R | false | false | 1,925 | r | #' Estimation for network MR simulation
#'
#' @param sim_list Output from network_MR_simulation function
#'
#' @return A vector of the true and estimated total, direct and indirect effect and the bias of each
#' @export
#'
#' @examples
#' network_MR_analysis(network_MR_simulation())
#'
#' @author Jeremy A Labrecque
#'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.