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/ec2_operations.R
\name{ec2_delete_vpc_endpoint_connection_notifications}
\alias{ec2_delete_vpc_endpoint_connection_notifications}
\title{Deletes one or more VPC endpoint connection notifications}
\usage{
ec2_delete_vpc_endpoint_connection_not... | /cran/paws.compute/man/ec2_delete_vpc_endpoint_connection_notifications.Rd | permissive | TWarczak/paws | R | false | true | 1,226 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_delete_vpc_endpoint_connection_notifications}
\alias{ec2_delete_vpc_endpoint_connection_notifications}
\title{Deletes one or more VPC endpoint connection notifications}
\usage{
ec2_delete_vpc_endpoint_connection_not... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{qinvGamma}
\alias{qinvGamma}
\title{Compute the quantile function of Inverse gamma distribution}
\usage{
qinvGamma(p, a, b, lower.tail = TRUE, log.p = FALSE)
}
\arguments{
\item{p}{vector of probabilities}
\item{a}{the shape ... | /man/qinvGamma.Rd | no_license | cran/crmPack | R | false | true | 717 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{qinvGamma}
\alias{qinvGamma}
\title{Compute the quantile function of Inverse gamma distribution}
\usage{
qinvGamma(p, a, b, lower.tail = TRUE, log.p = FALSE)
}
\arguments{
\item{p}{vector of probabilities}
\item{a}{the shape ... |
load("industryData.RData")
library(streamgraph)
industryData <- data
industryData <- industryData %>% filter(industry_name != "Total Nonfarm" & industry_name != "Total Private" & industry_name != "Goods Producing"
& industry_name != "Service-Providing" & industry_name != "Privat... | /APIs/streamgraph.R | no_license | bekahdevore/rKW | R | false | false | 586 | r | load("industryData.RData")
library(streamgraph)
industryData <- data
industryData <- industryData %>% filter(industry_name != "Total Nonfarm" & industry_name != "Total Private" & industry_name != "Goods Producing"
& industry_name != "Service-Providing" & industry_name != "Privat... |
#!/usr/bin/env Rscript
###############################################################################
library('getopt');
params=c(
"input_file", "i", 1, "character",
"cutoff", "c", 1, "numeric",
"output_file", "o", 2, "character"
);
opt=getopt(spec=matrix(params, ncol=4, byrow=TRUE), debug=FALSE);
script_name=... | /Profile/Attic/SummaryTable_Utilities/Apply_Binomial_Filter_on_SummaryTable.r | no_license | MedicineAndTheMicrobiome/AnalysisTools | R | false | false | 3,921 | r | #!/usr/bin/env Rscript
###############################################################################
library('getopt');
params=c(
"input_file", "i", 1, "character",
"cutoff", "c", 1, "numeric",
"output_file", "o", 2, "character"
);
opt=getopt(spec=matrix(params, ncol=4, byrow=TRUE), debug=FALSE);
script_name=... |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# ProjectName: Sanofi CMAX
# Purpose: Summary
# programmer: Zhe Liu
# Date: 2020-08-14
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
##---- Readin ----
# product info
product.i... | /04_Codes/06_Summary.R | no_license | Zaphiroth/Sanofi_CMAX_2020Q1Q2 | R | false | false | 13,316 | r | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# ProjectName: Sanofi CMAX
# Purpose: Summary
# programmer: Zhe Liu
# Date: 2020-08-14
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
##---- Readin ----
# product info
product.i... |
library(ecd)
### Name: ecld.quartic_Qp_atm_attr
### Title: Calculate ATM attributes from key quartic parameters
### Aliases: ecld.quartic_Qp_atm_attr ecld.quartic_model_sample
### ecld.quartic_model_sample_attr
### Keywords: quartic
### ** Examples
ttm <- seq(sqrt(90), sqrt(365), length.out=3)^2 / 365
epsr = 0.01... | /data/genthat_extracted_code/ecd/examples/ecld.quartic_Qp_atm_attr.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 552 | r | library(ecd)
### Name: ecld.quartic_Qp_atm_attr
### Title: Calculate ATM attributes from key quartic parameters
### Aliases: ecld.quartic_Qp_atm_attr ecld.quartic_model_sample
### ecld.quartic_model_sample_attr
### Keywords: quartic
### ** Examples
ttm <- seq(sqrt(90), sqrt(365), length.out=3)^2 / 365
epsr = 0.01... |
formulaLCA <- function(variables, covariates = NULL)
{
if ( is.null(covariates) ) {
f <- paste( paste("cbind(", paste(variables, sep = "", collapse = ","), ")", sep = ""), "~1", sep = "" )
} else {
f <- paste( paste("cbind(", paste(variables, sep = "", collapse = ","), ")", sep = ""),
paste(... | /R/fitLCA.R | no_license | michaelfop/LCAvarsel | R | false | false | 2,456 | r | formulaLCA <- function(variables, covariates = NULL)
{
if ( is.null(covariates) ) {
f <- paste( paste("cbind(", paste(variables, sep = "", collapse = ","), ")", sep = ""), "~1", sep = "" )
} else {
f <- paste( paste("cbind(", paste(variables, sep = "", collapse = ","), ")", sep = ""),
paste(... |
\alias{gtkTreeViewColumnSetExpand}
\name{gtkTreeViewColumnSetExpand}
\title{gtkTreeViewColumnSetExpand}
\description{Sets the column to take available extra space. This space is shared equally
amongst all columns that have the expand set to \code{TRUE}. If no column has this
option set, then the last column gets all ... | /RGtk2/man/gtkTreeViewColumnSetExpand.Rd | no_license | lawremi/RGtk2 | R | false | false | 710 | rd | \alias{gtkTreeViewColumnSetExpand}
\name{gtkTreeViewColumnSetExpand}
\title{gtkTreeViewColumnSetExpand}
\description{Sets the column to take available extra space. This space is shared equally
amongst all columns that have the expand set to \code{TRUE}. If no column has this
option set, then the last column gets all ... |
## For the moment, don't smooth either inc or CF
## it's supposed to be fast
## may need to smooth one before estimating other later on
init_rate <- function(rate, dat){
default <- 0.001
rcrude <- dat[[sprintf("%s_num",rate)]] / dat[[sprintf("%s_denom",rate)]]
rcrude[is.na(rcrude)] <- default
rcrude[... | /R/disbayes_utils.R | no_license | kingwatam/disbayes | R | false | false | 2,064 | r | ## For the moment, don't smooth either inc or CF
## it's supposed to be fast
## may need to smooth one before estimating other later on
init_rate <- function(rate, dat){
default <- 0.001
rcrude <- dat[[sprintf("%s_num",rate)]] / dat[[sprintf("%s_denom",rate)]]
rcrude[is.na(rcrude)] <- default
rcrude[... |
#' Performs graph-based permutation tests
#'
#' Performs graph-based tests for one-way designs.
#'
#' @param physeq A phyloseq object.
#' @param sampletype A string giving the column name of the sample to
#' be tested. This should be a factor with two or more levels.
#' @param grouping Either a string with the name o... | /R/graphtest-functions.R | no_license | krisrs1128/phyloseqGraphTest | R | false | false | 7,431 | r |
#' Performs graph-based permutation tests
#'
#' Performs graph-based tests for one-way designs.
#'
#' @param physeq A phyloseq object.
#' @param sampletype A string giving the column name of the sample to
#' be tested. This should be a factor with two or more levels.
#' @param grouping Either a string with the name o... |
setwd("C://Users//PRATAP KUMAR//OneDrive//Desktop//New folder")
cancer <- read.csv("LungDataSet.csv")
summary(cancer)
test <- read.csv(file="C://Users//PRATAP KUMAR//OneDrive//Desktop//New folder//Test.csv", header=TRUE, sep=",")
testdata<-data.frame(test)
#checking the distribution of the target variable
table... | /NaiveBayesClassifier.R | no_license | webxprince/lung-cancer-prediction-using-machine-learning-techniques-classification | R | false | false | 1,834 | r | setwd("C://Users//PRATAP KUMAR//OneDrive//Desktop//New folder")
cancer <- read.csv("LungDataSet.csv")
summary(cancer)
test <- read.csv(file="C://Users//PRATAP KUMAR//OneDrive//Desktop//New folder//Test.csv", header=TRUE, sep=",")
testdata<-data.frame(test)
#checking the distribution of the target variable
table... |
\name{house}
\alias{house}
\docType{data}
\title{house
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data("house")}
\format{
A data frame with 15 observations on the following 2 variables.
\describe{
\item{\code{Size}}{a numeric v... | /man/house.Rd | no_license | imran1570/pacourse | R | false | false | 707 | rd | \name{house}
\alias{house}
\docType{data}
\title{house
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data("house")}
\format{
A data frame with 15 observations on the following 2 variables.
\describe{
\item{\code{Size}}{a numeric v... |
library(ggm)
### Name: transClos
### Title: Transitive closure of a graph
### Aliases: transClos
### Keywords: graphs models multivariate
### ** Examples
## Closure of a DAG
d <- DAG(y ~ x, x ~ z)
transClos(d)
## Closure of an UG
g <- UG(~ x*y*z+z*u+u*v)
transClos(g)
| /data/genthat_extracted_code/ggm/examples/transClos.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 276 | r | library(ggm)
### Name: transClos
### Title: Transitive closure of a graph
### Aliases: transClos
### Keywords: graphs models multivariate
### ** Examples
## Closure of a DAG
d <- DAG(y ~ x, x ~ z)
transClos(d)
## Closure of an UG
g <- UG(~ x*y*z+z*u+u*v)
transClos(g)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_and_utility.r
\name{umx_residualize}
\alias{umx_residualize}
\title{umx_residualize}
\usage{
umx_residualize(var, covs = NULL, suffixes = NULL, data)
}
\arguments{
\item{var}{The base name of the variable you want to residualize. Alterna... | /man/umx_residualize.Rd | no_license | sayramc/umx | R | false | true | 3,473 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_and_utility.r
\name{umx_residualize}
\alias{umx_residualize}
\title{umx_residualize}
\usage{
umx_residualize(var, covs = NULL, suffixes = NULL, data)
}
\arguments{
\item{var}{The base name of the variable you want to residualize. Alterna... |
shiny.widgets.env = as.environment(list(widget.counter=list(), run.event.handlers=TRUE))
reset.event.handlers = function() {
shiny.widgets.env$widget.counter=list()
}
ace.editor.height = function(txt, font.size=12,min.height=30, min.lines=2,max.lines=NULL,extra.lines=1, code.lines=NULL) {
restore.point("ace.ed... | /R/shiny_utils.r | no_license | skranz/StratTourn | R | false | false | 3,336 | r | shiny.widgets.env = as.environment(list(widget.counter=list(), run.event.handlers=TRUE))
reset.event.handlers = function() {
shiny.widgets.env$widget.counter=list()
}
ace.editor.height = function(txt, font.size=12,min.height=30, min.lines=2,max.lines=NULL,extra.lines=1, code.lines=NULL) {
restore.point("ace.ed... |
rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... | /Simulations/Scripts/R/Rare/Scenario 16/CMPEn50KrareScen16BE.R | no_license | yadevi/CausalMPE | R | false | false | 4,220 | r | rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... |
#'@export
unnest_tokens.default <- function(tbl, output, input, token = "words",
format = c("text", "man", "latex", "html", "xml"),
to_lower = TRUE, drop = TRUE,
collapse = NULL, ...) {
output_col <- col_name(substi... | /R/unnest_tokens.R | permissive | jonmcalder/tidytext | R | false | false | 7,669 | r | #'@export
unnest_tokens.default <- function(tbl, output, input, token = "words",
format = c("text", "man", "latex", "html", "xml"),
to_lower = TRUE, drop = TRUE,
collapse = NULL, ...) {
output_col <- col_name(substi... |
\name{mydata}
\alias{mydata}
\docType{data}
\title{
Tree list dataset
}
\description{
An example of possible dataset.
}
\usage{data("mydata")}
\format{
A data frame with 207 observations on the following 15 variables.
\describe{
\item{\code{sito}}{a numeric vector}
\item{\code{compartimento}}{a numeric vect... | /man/mydata.Rd | no_license | npuletti/ForITdev | R | false | false | 1,196 | rd | \name{mydata}
\alias{mydata}
\docType{data}
\title{
Tree list dataset
}
\description{
An example of possible dataset.
}
\usage{data("mydata")}
\format{
A data frame with 207 observations on the following 15 variables.
\describe{
\item{\code{sito}}{a numeric vector}
\item{\code{compartimento}}{a numeric vect... |
library(rvest)
site<- "https://comic.naver.com/genre/bestChallenge.nhn?&page="
text <- NULL
comicName <- NULL
comicSummary <- NULL
comicGrade <- NULL
for(i in 1:5){
url <- paste(site, i, sep="")
text <- read_html(url)
# comicName
nodes <- html_nodes(text, "h6.challengeTitle > a")
comicName <- html_text(nodes, tri... | /수행평가.R | no_license | syj4572/R-practice | R | false | false | 651 | r |
library(rvest)
site<- "https://comic.naver.com/genre/bestChallenge.nhn?&page="
text <- NULL
comicName <- NULL
comicSummary <- NULL
comicGrade <- NULL
for(i in 1:5){
url <- paste(site, i, sep="")
text <- read_html(url)
# comicName
nodes <- html_nodes(text, "h6.challengeTitle > a")
comicName <- html_text(nodes, tri... |
# ALADYM Age length based dynamic model - version 12.3
# Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018
# COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy
# In case of use of the model, the Authors should be cited.
# If you have any comments or suggestions please contact the follow... | /BEMTOOL-ver2.5-2018_0901/src/biol/bmtALADYM/ALADYM-ver12.3-2017_0501/gui/forecast/escape_survival_extvector_fore/escape_survival_extvector_M_fore.create_model.r | no_license | gresci/BEMTOOL2.5 | R | false | false | 1,935 | r | # ALADYM Age length based dynamic model - version 12.3
# Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018
# COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy
# In case of use of the model, the Authors should be cited.
# If you have any comments or suggestions please contact the follow... |
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")
model <- "ctree2"
#########################################################################
set.seed(2)
training <- twoClassSim(50, linearVars = 2)
testing <- twoClassSim(500, linearVars = 2)
trainX <- training[, -ncol(training)]
trainY <- training$Cla... | /RegressionTests/Code/ctree2.R | no_license | bleutner/caret | R | false | false | 4,264 | r | library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")
model <- "ctree2"
#########################################################################
set.seed(2)
training <- twoClassSim(50, linearVars = 2)
testing <- twoClassSim(500, linearVars = 2)
trainX <- training[, -ncol(training)]
trainY <- training$Cla... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale_edge_size.R
\name{scale_edge_size}
\alias{scale_edge_radius}
\alias{scale_edge_size}
\alias{scale_edge_size_area}
\alias{scale_edge_size_continuous}
\alias{scale_edge_size_discrete}
\alias{scale_edge_size_identity}
\alias{scale_edge_siz... | /man/scale_edge_size.Rd | no_license | foton263/ggraph | R | false | true | 2,254 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale_edge_size.R
\name{scale_edge_size}
\alias{scale_edge_radius}
\alias{scale_edge_size}
\alias{scale_edge_size_area}
\alias{scale_edge_size_continuous}
\alias{scale_edge_size_discrete}
\alias{scale_edge_size_identity}
\alias{scale_edge_siz... |
library(phylosim)
### Name: setRateParamList.HKY
### Title: Set the rate parameters
### Aliases: setRateParamList.HKY HKY.setRateParamList
### setRateParamList,HKY-method
### ** Examples
# create HKY object
p<-HKY()
# set/get rate parameters
setRateParamList(p,list(
"Alpha"=1,
"Beta"=0.5
))
getRa... | /data/genthat_extracted_code/phylosim/examples/setRateParamList.HKY.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 493 | r | library(phylosim)
### Name: setRateParamList.HKY
### Title: Set the rate parameters
### Aliases: setRateParamList.HKY HKY.setRateParamList
### setRateParamList,HKY-method
### ** Examples
# create HKY object
p<-HKY()
# set/get rate parameters
setRateParamList(p,list(
"Alpha"=1,
"Beta"=0.5
))
getRa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate_SIR_model_ode.R
\name{simulate_SIR_model_ode}
\alias{simulate_SIR_model_ode}
\title{SIR model}
\usage{
simulate_SIR_model_ode(
S = 1000,
I = 1,
R = 0,
b = 0.002,
g = 1,
tstart = 0,
tfinal = 100,
dt = 0.1
)
}
\argument... | /man/simulate_SIR_model_ode.Rd | no_license | pnojai/DSAIDE | R | false | true | 2,369 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate_SIR_model_ode.R
\name{simulate_SIR_model_ode}
\alias{simulate_SIR_model_ode}
\title{SIR model}
\usage{
simulate_SIR_model_ode(
S = 1000,
I = 1,
R = 0,
b = 0.002,
g = 1,
tstart = 0,
tfinal = 100,
dt = 0.1
)
}
\argument... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fbind.R
\name{fbind}
\alias{fbind}
\title{Bind two factors}
\usage{
fbind(a, b)
}
\arguments{
\item{a}{A factor.}
\item{b}{A factor.}
}
\value{
A factor.
}
\description{
I could say more. This is called the 'description'.
}
\examples{
a <- f... | /man/fbind.Rd | permissive | jennybc/foofactors3 | R | false | true | 439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fbind.R
\name{fbind}
\alias{fbind}
\title{Bind two factors}
\usage{
fbind(a, b)
}
\arguments{
\item{a}{A factor.}
\item{b}{A factor.}
}
\value{
A factor.
}
\description{
I could say more. This is called the 'description'.
}
\examples{
a <- f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expand.covs.R
\name{expand.covs.msdata}
\alias{expand.covs.msdata}
\title{Expand covariates in multi-state dataset in long format}
\usage{
\method{expand.covs}{msdata}(data, covs, append = TRUE, longnames = TRUE, ...)
}
\arguments{
\... | /man/expand.covs.msdata.Rd | no_license | cran/mstate | R | false | true | 3,518 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expand.covs.R
\name{expand.covs.msdata}
\alias{expand.covs.msdata}
\title{Expand covariates in multi-state dataset in long format}
\usage{
\method{expand.covs}{msdata}(data, covs, append = TRUE, longnames = TRUE, ...)
}
\arguments{
\... |
library(loop)
### Name: lclw
### Title: find the largest weight food chain among the candidate longest
### food chains for a given node (species)
### Aliases: lclw
### ** Examples
#mat=matrix(c(0,5,3,7,0,5,0,8,0,4,3,8,0,1,6,7,0,1,0,2,0,4,6,2,0),5,5)
#search for species 3
#lclw(gemat=mat,sp=3)
#longest chain isn't... | /data/genthat_extracted_code/loop/examples/lclw.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 421 | r | library(loop)
### Name: lclw
### Title: find the largest weight food chain among the candidate longest
### food chains for a given node (species)
### Aliases: lclw
### ** Examples
#mat=matrix(c(0,5,3,7,0,5,0,8,0,4,3,8,0,1,6,7,0,1,0,2,0,4,6,2,0),5,5)
#search for species 3
#lclw(gemat=mat,sp=3)
#longest chain isn't... |
##=============================
## Global active power - PLOT 1
##=============================
## reading household_power_consumption.txt as data frame
data.pwr <- as.data.frame(read.table("household_power_consumption.txt", sep = ";", header = TRUE, na.strings="?"))
head(data.pwr)
## converting Date column to Date c... | /plot1.R | no_license | Hrtz/ExData_Plotting1 | R | false | false | 791 | r | ##=============================
## Global active power - PLOT 1
##=============================
## reading household_power_consumption.txt as data frame
data.pwr <- as.data.frame(read.table("household_power_consumption.txt", sep = ";", header = TRUE, na.strings="?"))
head(data.pwr)
## converting Date column to Date c... |
# data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4
library(parallel)
simRep <- 5000 # Replication times in one simulation
pvalue.true <- .05 # Testing type I error
#b.var <- c(0.04) # The set of varaince of random covariates b as random slope
#smooth <- 1 # measurement error is added to M if smoo... | /full simulation/summer/addpoint/bonf_homo_addpoint/2050_add.R | no_license | wma9/FMRI-project | R | false | false | 9,258 | r | # data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4
library(parallel)
simRep <- 5000 # Replication times in one simulation
pvalue.true <- .05 # Testing type I error
#b.var <- c(0.04) # The set of varaince of random covariates b as random slope
#smooth <- 1 # measurement error is added to M if smoo... |
rm(list=ls())
setwd('c:/Study/My projects/Sparse-nonlinear-GM/Codes/')
setwd('c:/Study/Sparse-nonlinear-GM/Codes/')
source('HLGM.R')
source('HLGM-bin.R')
source('Generator_new2.R')
source('jsem.R')
source('Generator.R')
source('l1LS_Main.R')
source('Objval.R')
source('JMLE.R')
library(glasso)
library(parallel)
anal... | /Codes/babysteps.R | no_license | shubhobm/Sparse-nonlinear-GM | R | false | false | 4,669 | r | rm(list=ls())
setwd('c:/Study/My projects/Sparse-nonlinear-GM/Codes/')
setwd('c:/Study/Sparse-nonlinear-GM/Codes/')
source('HLGM.R')
source('HLGM-bin.R')
source('Generator_new2.R')
source('jsem.R')
source('Generator.R')
source('l1LS_Main.R')
source('Objval.R')
source('JMLE.R')
library(glasso)
library(parallel)
anal... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importKCL.R
\name{importKCL}
\alias{importKCL}
\title{Import data from King's College London networks}
\usage{
importKCL(site = "my1", year = 2009, pollutant = "all", met = FALSE,
units = "mass", extra = FALSE)
}
\arguments{
\item{site}{Sit... | /man/importKCL.Rd | no_license | Rahul-Sindhu/openair | R | false | true | 31,347 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importKCL.R
\name{importKCL}
\alias{importKCL}
\title{Import data from King's College London networks}
\usage{
importKCL(site = "my1", year = 2009, pollutant = "all", met = FALSE,
units = "mass", extra = FALSE)
}
\arguments{
\item{site}{Sit... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wafregional_operations.R
\name{wafregional_create_rule}
\alias{wafregional_create_rule}
\title{This is AWS WAF CLASSIC documentation}
\usage{
wafregional_create_rule(Name, MetricName, ChangeToken, Tags)
}
\arguments{
\item{Name}{[required] A ... | /paws/man/wafregional_create_rule.Rd | permissive | jcheng5/paws | R | false | true | 3,701 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wafregional_operations.R
\name{wafregional_create_rule}
\alias{wafregional_create_rule}
\title{This is AWS WAF CLASSIC documentation}
\usage{
wafregional_create_rule(Name, MetricName, ChangeToken, Tags)
}
\arguments{
\item{Name}{[required] A ... |
##### load data
library(dplyr)
library(purrr)
library(lubridate)
library(spaMM)
library(tidyr)
rm(list = ls())
load("AllCall_Tidy.rda")
load("Group_AllInfo.rda")
str(Group_AllInfo)
str(AllCall_Tidy)
id <- Group_AllInfo %>%
select(AnimalID, Colony, Date, Weight, Sex, Age, BreedingStatus) %>%
distinct()
int <- All... | /interactions_analysis.R | no_license | pv272/Dominance_DMR_Analyses | R | false | false | 9,402 | r | ##### load data
library(dplyr)
library(purrr)
library(lubridate)
library(spaMM)
library(tidyr)
rm(list = ls())
load("AllCall_Tidy.rda")
load("Group_AllInfo.rda")
str(Group_AllInfo)
str(AllCall_Tidy)
id <- Group_AllInfo %>%
select(AnimalID, Colony, Date, Weight, Sex, Age, BreedingStatus) %>%
distinct()
int <- All... |
install.packages("sqldf")
install.packages("dplyr")
install.packages("chron")
install.packages("xlsx")
library(sqldf)
library(dplyr)
library(chron)
library(xlsx)
sink(file="test10.txt", append = TRUE)
readinteger <- function()
{
n <- readline(prompt="Enter year: ")
n <- as.integer(n)
if (is.na... | /Assignment1/AssignmentPart2/FINAL.r | no_license | pratikpatre/DataScience | R | false | false | 44,352 | r | install.packages("sqldf")
install.packages("dplyr")
install.packages("chron")
install.packages("xlsx")
library(sqldf)
library(dplyr)
library(chron)
library(xlsx)
sink(file="test10.txt", append = TRUE)
readinteger <- function()
{
n <- readline(prompt="Enter year: ")
n <- as.integer(n)
if (is.na... |
# calculate module scores using Seurat addModuleScore, AUCell/UCell, and SCINA
args<-commandArgs(T)
if (length(args)<3) {
stop("Usage: Rscript Seurat_markerScores.R [data.RDS] [markers.csv] [assay(SCT/RNA]")
}
suppressPackageStartupMessages({
library(RColorBrewer)
library(Seurat)
library(gridExtra)
librar... | /R/stereo-seq/Seurat_sigScores_spatial.R | no_license | zglu/Scripts_Bioinfo | R | false | false | 7,156 | r | # calculate module scores using Seurat addModuleScore, AUCell/UCell, and SCINA
args<-commandArgs(T)
if (length(args)<3) {
stop("Usage: Rscript Seurat_markerScores.R [data.RDS] [markers.csv] [assay(SCT/RNA]")
}
suppressPackageStartupMessages({
library(RColorBrewer)
library(Seurat)
library(gridExtra)
librar... |
#' @title Annotate genes from a reference table
#' @description Given a reference tidy table with the columns "SNP", "GENE", "DIST", and "FUNCTION",
#' this function merges it with the dataset by SNP (so each SNP must be unique), and then concatenate
#' the genes and their respective function by comma to set unique re... | /R/annotate_fromtbl.R | no_license | cmcouto-silva/snpsel | R | false | false | 1,824 | r | #' @title Annotate genes from a reference table
#' @description Given a reference tidy table with the columns "SNP", "GENE", "DIST", and "FUNCTION",
#' this function merges it with the dataset by SNP (so each SNP must be unique), and then concatenate
#' the genes and their respective function by comma to set unique re... |
library(UsingR)
## Content:
# Точкови оценки
# Доверителни интервали
# confidence level (Ниво на доверие) = 0.95 или 0.99
# two-side conf interval
# one-side conf interval
# Proportion test - prop.test
# Mean
# z-test - simple.z.test
# t-test - t.test
# Median
# wilcox test - wilcox.test
## Confidence Interval Estima... | /from-previous-year/Lecture7.R | permissive | ivanchuchulski/fmi-statistics | R | false | false | 4,838 | r | library(UsingR)
## Content:
# Точкови оценки
# Доверителни интервали
# confidence level (Ниво на доверие) = 0.95 или 0.99
# two-side conf interval
# one-side conf interval
# Proportion test - prop.test
# Mean
# z-test - simple.z.test
# t-test - t.test
# Median
# wilcox test - wilcox.test
## Confidence Interval Estima... |
\name{pos}
\alias{pos}
\title{Position (bp)}
\description{This is a vector containing position (in base pair) of each heterozygous site for the read count data in "Example.rda".
}
| /man/pos.Rd | no_license | cran/falconx | R | false | false | 183 | rd | \name{pos}
\alias{pos}
\title{Position (bp)}
\description{This is a vector containing position (in base pair) of each heterozygous site for the read count data in "Example.rda".
}
|
###------------------###
### 0. Load packages ###
###------------------###
# http://econ.geo.uu.nl/peeg/peeg1709.pdf
library (EconGeo)
library (igraph)
###-------------------------------------###
### 1. The economy as a matrix (2-mode) ###
###-------------------------------------###
# data from ?RCA
?RCA
## generat... | /teaching/lab-2.R | no_license | PABalland/PABalland.github.io | R | false | false | 5,480 | r |
###------------------###
### 0. Load packages ###
###------------------###
# http://econ.geo.uu.nl/peeg/peeg1709.pdf
library (EconGeo)
library (igraph)
###-------------------------------------###
### 1. The economy as a matrix (2-mode) ###
###-------------------------------------###
# data from ?RCA
?RCA
## generat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visit.R
\name{context_towards_terminals}
\alias{context_towards_terminals}
\title{Update the a parse table given outer context}
\usage{
context_towards_terminals(pd_nested, outer_lag_newlines, outer_indent,
outer_spaces, outer_indention_ref... | /man/context_towards_terminals.Rd | no_license | yutannihilation/styler | R | false | true | 1,112 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visit.R
\name{context_towards_terminals}
\alias{context_towards_terminals}
\title{Update the a parse table given outer context}
\usage{
context_towards_terminals(pd_nested, outer_lag_newlines, outer_indent,
outer_spaces, outer_indention_ref... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{new_token}
\alias{new_token}
\title{Generate and initialise new token.}
\usage{
new_token(token, endpoint, app, params = list(),
cache = getOption("httr_oauth_cache"))
}
\arguments{
\item{params}{list of params}
\item{endpoint}{An OAuth endpoint, created by ... | /man/new_token.Rd | no_license | meixiaba/httr | R | false | false | 846 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{new_token}
\alias{new_token}
\title{Generate and initialise new token.}
\usage{
new_token(token, endpoint, app, params = list(),
cache = getOption("httr_oauth_cache"))
}
\arguments{
\item{params}{list of params}
\item{endpoint}{An OAuth endpoint, created by ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redist.R
\name{redist.segcalc}
\alias{redist.segcalc}
\title{Segregation index calculation for MCMC redistricting.}
\usage{
redist.segcalc(algout, grouppop, fullpop)
}
\arguments{
\item{algout}{A matrix of congressional district assignments o... | /man/redist.segcalc.Rd | no_license | leesharma/redist | R | false | true | 1,762 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redist.R
\name{redist.segcalc}
\alias{redist.segcalc}
\title{Segregation index calculation for MCMC redistricting.}
\usage{
redist.segcalc(algout, grouppop, fullpop)
}
\arguments{
\item{algout}{A matrix of congressional district assignments o... |
library(dplyr)
library(sjmisc)
library(sjPlot)
library(ggplot2)
data("mtcars")
names (mtcars)
head(mtcars)
newmtcars <- select (mtcars,c("am","gear","carb"))
##plot a correlation matrix for all variabless
sjp.corr (newmtcars)
sjt.corr (newmtcars,show.p = TRUE,p.numeric = TRUE) | /00_LEARNING_R/lesson2-ex2.r | permissive | kalliopischoina/basicstatistics | R | false | false | 302 | r | library(dplyr)
library(sjmisc)
library(sjPlot)
library(ggplot2)
data("mtcars")
names (mtcars)
head(mtcars)
newmtcars <- select (mtcars,c("am","gear","carb"))
##plot a correlation matrix for all variabless
sjp.corr (newmtcars)
sjt.corr (newmtcars,show.p = TRUE,p.numeric = TRUE) |
source('Setup.r')
source('GenStates_coupled.r')
source('lam_lik.r')
source('FirstSwitchOld.r')
set.seed(3809)
iter = 5
nstate = all_s[,-1]
nsw_ind = sw_ind
ntime = matrix( all_t, nrow=1)
ostate = nstate
osw_ind = nsw_ind
otime = ntime
osp_state = ostate[which(osw_ind=='SP'),]
## propose a seque... | /Main_Inference.r | no_license | FayFrost/Switching_Coupled | R | false | false | 5,717 | r |
source('Setup.r')
source('GenStates_coupled.r')
source('lam_lik.r')
source('FirstSwitchOld.r')
set.seed(3809)
iter = 5
nstate = all_s[,-1]
nsw_ind = sw_ind
ntime = matrix( all_t, nrow=1)
ostate = nstate
osw_ind = nsw_ind
otime = ntime
osp_state = ostate[which(osw_ind=='SP'),]
## propose a seque... |
\name{const}
\alias{const}
\title{Constancy Table}
\description{For a classified set of vegetation samples,
lists for each species the fraction of samples in each
class the species occurs in.}
\usage{const(comm, clustering, minval = 0, show = minval, digits = 2,
sort = FALSE, spcord = NULL)}
\arguments{
... | /man/const.Rd | no_license | cran/labdsv | R | false | false | 2,841 | rd | \name{const}
\alias{const}
\title{Constancy Table}
\description{For a classified set of vegetation samples,
lists for each species the fraction of samples in each
class the species occurs in.}
\usage{const(comm, clustering, minval = 0, show = minval, digits = 2,
sort = FALSE, spcord = NULL)}
\arguments{
... |
\name{M.barkeri_iAF692}
\docType{data}
\alias{M.barkeri_iAF692}
\title{ Metabolic reconstruction of M.barkeri }
\description{"Modeling methanogenesis with a genome-scale metabolic reconstruction of Methanosarcina barkeri"}
\usage{M.barkeri_iAF692}
\format{An sbml object of class rsbml}
\source{Molecular Systems ... | /man/M.barkeri_iAF692.Rd | no_license | cran/BiGGR | R | false | false | 632 | rd | \name{M.barkeri_iAF692}
\docType{data}
\alias{M.barkeri_iAF692}
\title{ Metabolic reconstruction of M.barkeri }
\description{"Modeling methanogenesis with a genome-scale metabolic reconstruction of Methanosarcina barkeri"}
\usage{M.barkeri_iAF692}
\format{An sbml object of class rsbml}
\source{Molecular Systems ... |
library(ape)
testtree <- read.tree("11116_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11116_0_unrooted.txt") | /codeml_files/newick_trees_processed/11116_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("11116_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11116_0_unrooted.txt") |
#' Majority rule equilibrium
#'
#' Phase plot for majority rule. Requires majority preference relation function.
#'
#' @param P Matrix with location of ideal points
#' @param n number of arrow per region
#' @param raylengths vector with lengths of distances to examine
#' @param grid number of grid points
#' @keywords P... | /R/gt_majority_phase.R | no_license | macartan/hop | R | false | false | 1,193 | r | #' Majority rule equilibrium
#'
#' Phase plot for majority rule. Requires majority preference relation function.
#'
#' @param P Matrix with location of ideal points
#' @param n number of arrow per region
#' @param raylengths vector with lengths of distances to examine
#' @param grid number of grid points
#' @keywords P... |
#'@title Function to compute bootstrapped changepoint statistics
#'
#'@description This function compute bootstrapped multipliers values for the Cramer-von Mises and Kolmogorov-Smirnov test statistics for changepoint
#'@param MC matrix needed for multipliers
#'@param xi multipliers
#'@param s seque... | /R/cpCopMultStats.R | no_license | cran/changepointTests | R | false | false | 982 | r | #'@title Function to compute bootstrapped changepoint statistics
#'
#'@description This function compute bootstrapped multipliers values for the Cramer-von Mises and Kolmogorov-Smirnov test statistics for changepoint
#'@param MC matrix needed for multipliers
#'@param xi multipliers
#'@param s seque... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frame.R
\name{z.rncol}
\alias{z.rncol}
\title{rename a single or many col}
\usage{
z.rncol(x, replace)
}
\arguments{
\item{replace}{c("oldColName"="newColName") or c(oldColName="newColName")}
}
\value{
returns a new df, old one does not chang... | /man/z.rncol.Rd | permissive | hmorzaria/zmisc | R | false | true | 1,830 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frame.R
\name{z.rncol}
\alias{z.rncol}
\title{rename a single or many col}
\usage{
z.rncol(x, replace)
}
\arguments{
\item{replace}{c("oldColName"="newColName") or c(oldColName="newColName")}
}
\value{
returns a new df, old one does not chang... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_sets.R
\docType{data}
\name{EconomyLong}
\alias{EconomyLong}
\title{Data: Wang and Lan (2011).}
\format{Data frame with 155 rows and 5 columns. Definition of inputs (X) and outputs (Y):
\describe{
\item{x1 = Capital}{Total assets (in 1... | /man/EconomyLong.Rd | no_license | RahulVerma-eng/dea | R | false | true | 1,687 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_sets.R
\docType{data}
\name{EconomyLong}
\alias{EconomyLong}
\title{Data: Wang and Lan (2011).}
\format{Data frame with 155 rows and 5 columns. Definition of inputs (X) and outputs (Y):
\describe{
\item{x1 = Capital}{Total assets (in 1... |
#Install Packages
library(plyr)
setwd("/Users/emkarson/Documents/coursera/getting and cleaning data/data/UCI HAR Dataset")
#Import Variable Names
varnames<-read.table("features.txt", quote="\"", comment.char="")
varnames1<-as.character(varnames$V2)
#Import Data for test subjects
y_test <- read.table("test/y_test.txt",... | /run_analysis.R | no_license | user585858x/ProgrammingAssignment3 | R | false | false | 2,548 | r | #Install Packages
library(plyr)
setwd("/Users/emkarson/Documents/coursera/getting and cleaning data/data/UCI HAR Dataset")
#Import Variable Names
varnames<-read.table("features.txt", quote="\"", comment.char="")
varnames1<-as.character(varnames$V2)
#Import Data for test subjects
y_test <- read.table("test/y_test.txt",... |
library(testthat)
library(colleges)
test_check("colleges")
| /tests/testthat.R | no_license | beanumber/colleges | R | false | false | 60 | r | library(testthat)
library(colleges)
test_check("colleges")
|
### Function for spliting engineering dataset by site and subsetting the data by specific rooms --------------------
split_eng = function(dat, roomlist, by){
split.dat = split(x = dat,f = by)
split.dat.new = list()
for(i in 1:length(split.dat)){
sub = split.dat[[i]]$roomName %in% roomlist
... | /split_eng.R | no_license | zlswiecki/dissertation | R | false | false | 446 | r | ### Function for spliting engineering dataset by site and subsetting the data by specific rooms --------------------
split_eng = function(dat, roomlist, by){
split.dat = split(x = dat,f = by)
split.dat.new = list()
for(i in 1:length(split.dat)){
sub = split.dat[[i]]$roomName %in% roomlist
... |
# Page No. 151
p_A<-0.6
p_B_by_A<-5/9
p_A_inter_B<-p_A*p_B_by_A
print(p_A_inter_B) | /An_Introduction_To_Statistical_Methods_And_Data_Analysis_by_R_Lyman_Ott_And_Michael_Longnecker/CH4/EX4.2/Ex4_2.r | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 83 | r | # Page No. 151
p_A<-0.6
p_B_by_A<-5/9
p_A_inter_B<-p_A*p_B_by_A
print(p_A_inter_B) |
# Rfmtool Package v4.0
fm <- function()
{
# This function outputs a list of all functions included in this toolbox.
print("The list of functions in Rfmtool Tool Box:")
print("fm.Init([number of variables])")
print("fm.Banzhaf([general fuzzy measure],[environment])")
print("fm.BanzhafMob([mobius fuzzy... | /R/Rfmtool.r | no_license | cran/Rfmtool | R | false | false | 98,364 | r | # Rfmtool Package v4.0
fm <- function()
{
# This function outputs a list of all functions included in this toolbox.
print("The list of functions in Rfmtool Tool Box:")
print("fm.Init([number of variables])")
print("fm.Banzhaf([general fuzzy measure],[environment])")
print("fm.BanzhafMob([mobius fuzzy... |
\name{exrate}
\alias{exrate}
\docType{data}
\title{
Exrate Data
}
\description{
Obs: 240, monthly (January 1985 - December 2004)
}
\usage{data("exrate")}
\format{
A data frame with 240 observations on the following variable.
\describe{
\item{\code{s}}{changes in the $US/$A exchange rate}
}
}
\details{
%% ~~ ... | /man/exrate.Rd | no_license | Worathan/PoEdata | R | false | false | 593 | rd | \name{exrate}
\alias{exrate}
\docType{data}
\title{
Exrate Data
}
\description{
Obs: 240, monthly (January 1985 - December 2004)
}
\usage{data("exrate")}
\format{
A data frame with 240 observations on the following variable.
\describe{
\item{\code{s}}{changes in the $US/$A exchange rate}
}
}
\details{
%% ~~ ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_and_utility.r
\name{umx_check_model}
\alias{umx_check_model}
\title{Check for required features in an OpenMx.}
\usage{
umx_check_model(obj, type = NULL, hasData = NULL, beenRun = NULL,
hasMeans = NULL, checkSubmodels = FALSE, callingFn... | /man/umx_check_model.Rd | no_license | arinbasu/umx | R | false | true | 2,427 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_and_utility.r
\name{umx_check_model}
\alias{umx_check_model}
\title{Check for required features in an OpenMx.}
\usage{
umx_check_model(obj, type = NULL, hasData = NULL, beenRun = NULL,
hasMeans = NULL, checkSubmodels = FALSE, callingFn... |
getplanet=function(name='mars', JD=2440000){
name=tolower(name)
planID=which(c('mercury','venus','earth','mars','jupiter','saturn','uranus','neptune','pluto')==name)
tmp = helio(JD, planID, radian = TRUE)
rad = tmp$hrad
lon = tmp$hlong
lat = tmp$hlat
tmp = helio(JD, 3, radian = TRUE)
rade = as.numeric(t... | /R/get.R | no_license | asgr/whatsup | R | false | false | 3,547 | r | getplanet=function(name='mars', JD=2440000){
name=tolower(name)
planID=which(c('mercury','venus','earth','mars','jupiter','saturn','uranus','neptune','pluto')==name)
tmp = helio(JD, planID, radian = TRUE)
rad = tmp$hrad
lon = tmp$hlong
lat = tmp$hlat
tmp = helio(JD, 3, radian = TRUE)
rade = as.numeric(t... |
library(magrittr)
# pipe operator %>%
# pipe use the previous result as input
sum(a) %>% sqrt() %>% abs()
abs(sqrt(sum(a)))
a <- 10:1
b <- 1:10
# pipe can be applied to multiple input function
# min(1, 2, 3)
(a + b) %>% sum() %>% min(200, 50)
# make bigger object! Matrix
# cbind, rbind
a
b
myMat1 <- cbind(a, b)
my... | /R_Lecture2.R | no_license | yulsena/test | R | false | false | 1,292 | r | library(magrittr)
# pipe operator %>%
# pipe use the previous result as input
sum(a) %>% sqrt() %>% abs()
abs(sqrt(sum(a)))
a <- 10:1
b <- 1:10
# pipe can be applied to multiple input function
# min(1, 2, 3)
(a + b) %>% sum() %>% min(200, 50)
# make bigger object! Matrix
# cbind, rbind
a
b
myMat1 <- cbind(a, b)
my... |
# This file contain all of the functions needed for the general
# analysis of all Six data sets.
## The Following function returns a summing table of the data for a given cariable
## ( i.e. number of samples, Mean, SD,...)
aggregate.data <- function(variable.name,d1){
variable.mean <- aggregate(d1[,paste(variable.n... | /general_functions.R | no_license | shay-y/replicability_paper | R | false | false | 6,641 | r | # This file contain all of the functions needed for the general
# analysis of all Six data sets.
## The Following function returns a summing table of the data for a given cariable
## ( i.e. number of samples, Mean, SD,...)
aggregate.data <- function(variable.name,d1){
variable.mean <- aggregate(d1[,paste(variable.n... |
# covid19_SimInf_ageGroups06.16.2020.R
# copyright Peter Banwarth Benton County Health Department 2020
# Using package SimInf to model stochastic disease spread
# https://cran.r-project.org/web/packages/SimInf/vignettes/SimInf.pdf
# https://cran.r-project.org/web/packages/SimInf/SimInf.pdf
# https://github.com... | /covid19/scripts/ageGroup/covid19_SimInf_ageGroups06.18.2020.R | no_license | banwarp/benton_epi | R | false | false | 57,655 | r | # covid19_SimInf_ageGroups06.16.2020.R
# copyright Peter Banwarth Benton County Health Department 2020
# Using package SimInf to model stochastic disease spread
# https://cran.r-project.org/web/packages/SimInf/vignettes/SimInf.pdf
# https://cran.r-project.org/web/packages/SimInf/SimInf.pdf
# https://github.com... |
rm(list=ls())
nsim <- 5000
set.seed(6881697)
seed <- sample(10^7,nsim)
N <- 1000
datasets <- matrix(NA, nrow = nsim, ncol = 6) ##columns will be pC, pT, pC1, pC2, pT1, pT2
for (sim in 1:nsim){
set.seed(seed[sim])
datasamp <- data.frame(trt = sample(0:1, size = N, replace = TRUE))
datasamp$y = NA
NT <- sum(d... | /simulations/binary_noHarm_5050/testDatasets/N1000.R | no_license | emhuang1/CI-for-fraction-who-benefit | R | false | false | 1,010 | r | rm(list=ls())
nsim <- 5000
set.seed(6881697)
seed <- sample(10^7,nsim)
N <- 1000
datasets <- matrix(NA, nrow = nsim, ncol = 6) ##columns will be pC, pT, pC1, pC2, pT1, pT2
for (sim in 1:nsim){
set.seed(seed[sim])
datasamp <- data.frame(trt = sample(0:1, size = N, replace = TRUE))
datasamp$y = NA
NT <- sum(d... |
## Jesse Brandon Wheeler
## Exploratory Data Analysis
## 07/22/2020
##
## Question 6
## Compare emissions from motor vehicle sources in Baltimore City with emissions
## from motor vehicle sources in Los Angeles County, California (fips == “06037”).
## Which city has seen greater changes over time in motor vehicle emi... | /plot6.R | no_license | JBrandonWH1960/ExploratoryDataProject2 | R | false | false | 2,108 | r | ## Jesse Brandon Wheeler
## Exploratory Data Analysis
## 07/22/2020
##
## Question 6
## Compare emissions from motor vehicle sources in Baltimore City with emissions
## from motor vehicle sources in Los Angeles County, California (fips == “06037”).
## Which city has seen greater changes over time in motor vehicle emi... |
# bind global variables
utils::globalVariables(c("Freq", "vif"))
# Help-functions
# is factor with char levels?
#' @importFrom sjmisc is_num_fac
is_labelled_factor <- function(x) is.factor(x) && !sjmisc::is_num_fac(x)
# get additional arguments for geoms
get_dot_args <- function(x) {
# ---------------------------... | /R/helpfunctions.R | no_license | vkehayas/sjPlot | R | false | false | 29,456 | r | # bind global variables
utils::globalVariables(c("Freq", "vif"))
# Help-functions
# is factor with char levels?
#' @importFrom sjmisc is_num_fac
is_labelled_factor <- function(x) is.factor(x) && !sjmisc::is_num_fac(x)
# get additional arguments for geoms
get_dot_args <- function(x) {
# ---------------------------... |
library(readxl)
library(data.table)
library(pinyin)
library(geosphere)
# Read info about the mall
redstar_points = read_xlsx("~/data/selfmanaged_business.xlsx",sheet = '商场总名单')
redstar_points = data.table(redstar_points)
redstar_points = redstar_points[商场类型=='自营',]
redstar_location = redstar_points[,c('商场名称','city','lo... | /main.R | no_license | yuanqingye/R_Projects-rent_model_standard-Rfile | R | false | false | 10,790 | r | library(readxl)
library(data.table)
library(pinyin)
library(geosphere)
# Read info about the mall
redstar_points = read_xlsx("~/data/selfmanaged_business.xlsx",sheet = '商场总名单')
redstar_points = data.table(redstar_points)
redstar_points = redstar_points[商场类型=='自营',]
redstar_location = redstar_points[,c('商场名称','city','lo... |
# LDA clustering
clusteringLDA <- function(data, control, NumClusters){
return (LDA(data, control = control, k = NumClusters))
} | /R/models/0 lda.R | no_license | 2sick2speak/Text-mining | R | false | false | 131 | r | # LDA clustering
clusteringLDA <- function(data, control, NumClusters){
return (LDA(data, control = control, k = NumClusters))
} |
\name{r2d2-package}
\alias{r2d2-package}
\alias{r2d2}
\docType{package}
\title{
Bivariate (Two-Dimensional) Confidence Region and Frequency
Distribution
}
\description{
This package provides generic functions to analyze the distribution
of two continuous variables.
}
\details{
\emph{Bivariate calculations:}
... | /man/r2d2-package.Rd | no_license | cran/r2d2 | R | false | false | 1,353 | rd | \name{r2d2-package}
\alias{r2d2-package}
\alias{r2d2}
\docType{package}
\title{
Bivariate (Two-Dimensional) Confidence Region and Frequency
Distribution
}
\description{
This package provides generic functions to analyze the distribution
of two continuous variables.
}
\details{
\emph{Bivariate calculations:}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SingleCellPlots.R
\name{plot_forceDirectedGraph_label_by_qc}
\alias{plot_forceDirectedGraph_label_by_qc}
\title{Plot force-directed graph with the QC information}
\usage{
plot_forceDirectedGraph_label_by_qc(
object,
vertex.size = 0.5,
e... | /man/plot_forceDirectedGraph_label_by_qc.Rd | no_license | supatt-lab/SingCellaR | R | false | true | 728 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SingleCellPlots.R
\name{plot_forceDirectedGraph_label_by_qc}
\alias{plot_forceDirectedGraph_label_by_qc}
\title{Plot force-directed graph with the QC information}
\usage{
plot_forceDirectedGraph_label_by_qc(
object,
vertex.size = 0.5,
e... |
library(rptha)
# INPUTS
all_nc = Sys.glob('event_time_series/*.nc')
reference_point = NULL #c(153.9422, -27.2858)
# END INPUTS
# Get coastline data for plot
if(file.exists("GADM_2.8_AUS_adm1.rds")){
aus_coastline = readRDS('GADM_2.8_AUS_adm1.rds')
}else{
aus_coastline = try(getData('GADM', country='AUS', le... | /ptha_access/example_event_access_scripts/quick_plot_stage_at_reference_point.R | permissive | Carol-Matthews/ptha | R | false | false | 4,344 | r | library(rptha)
# INPUTS
all_nc = Sys.glob('event_time_series/*.nc')
reference_point = NULL #c(153.9422, -27.2858)
# END INPUTS
# Get coastline data for plot
if(file.exists("GADM_2.8_AUS_adm1.rds")){
aus_coastline = readRDS('GADM_2.8_AUS_adm1.rds')
}else{
aus_coastline = try(getData('GADM', country='AUS', le... |
#!/usr/bin/env Rscript
library(argparse)
library(ape)
library(phylotools)
library(stringr)
# input parameters
parser <- ArgumentParser(description='select fasta sequences or headers under an amino acid content cutoff')
parser$add_argument('--fasta', help= 'input fasta file')
parser$add_argument('--min', type="integer",... | /sequence_statistics/select_fasta_or_header_by_aa.R | permissive | olgatsiouri1996/biomisc_R | R | false | false | 1,740 | r | #!/usr/bin/env Rscript
library(argparse)
library(ape)
library(phylotools)
library(stringr)
# input parameters
parser <- ArgumentParser(description='select fasta sequences or headers under an amino acid content cutoff')
parser$add_argument('--fasta', help= 'input fasta file')
parser$add_argument('--min', type="integer",... |
#BASIC MATHS WITH R
2 + 2
100 + 20
5 - 3
1000 - 20
43 / 3
2 ^ 3
4 ^ 4
100 * 2 + 50/2
100 * (2 + 50) /2
5 / 2
5%%2
| /Basics_of_R.R | no_license | SulemanaMasahudu/R_For_Data_Science_Masahudu | R | false | false | 116 | r | #BASIC MATHS WITH R
2 + 2
100 + 20
5 - 3
1000 - 20
43 / 3
2 ^ 3
4 ^ 4
100 * 2 + 50/2
100 * (2 + 50) /2
5 / 2
5%%2
|
#' LeafletJS Map
#'
#' Builds an interactive map of locations for any species
#' @param ee_obj A ecoengine object of type \code{observations} as generated by \code{\link{ee_observations}}
#' @param dest Location where the html file and geojson file should be stored. Default is the temp directory
#' @param title Titl... | /R/ee_map.R | no_license | vsbuffalo/ecoengine | R | false | false | 2,843 | r |
#' LeafletJS Map
#'
#' Builds an interactive map of locations for any species
#' @param ee_obj A ecoengine object of type \code{observations} as generated by \code{\link{ee_observations}}
#' @param dest Location where the html file and geojson file should be stored. Default is the temp directory
#' @param title Titl... |
#' ecospat.boyce
#'
#' Updated ecospat.boyce (ecospat package) function for calculating Boyce index as in Hirzel et al. 2006
#'
#' @param fit A vector or Raster-Layer containing the predicted suitability values
#' @param obs A vector containing the predicted suitability values or xy-coordinates (if fit is a Raster-Laye... | /scripts/nsdm-project/functions/R/ecospat.boyce.R | permissive | N-SDM/N-SDM | R | false | false | 3,484 | r | #' ecospat.boyce
#'
#' Updated ecospat.boyce (ecospat package) function for calculating Boyce index as in Hirzel et al. 2006
#'
#' @param fit A vector or Raster-Layer containing the predicted suitability values
#' @param obs A vector containing the predicted suitability values or xy-coordinates (if fit is a Raster-Laye... |
# COVID-19 Tournament: Forecasting Collaborative
# life-satisfaction forecasting script
# Kasun Bandara, June 2020
# This script takes the past observations as a time series and generate forecasts for the next 12 months
# This approach uses an ensemble of state-of-the-art time series techniques that use to forecast mo... | /explicit-african-bias.R | no_license | kasungayan/ForecastingCollaborativeChallenge | R | false | false | 1,646 | r | # COVID-19 Tournament: Forecasting Collaborative
# life-satisfaction forecasting script
# Kasun Bandara, June 2020
# This script takes the past observations as a time series and generate forecasts for the next 12 months
# This approach uses an ensemble of state-of-the-art time series techniques that use to forecast mo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotSetList-class.R
\docType{class}
\name{PlotSetList-class}
\alias{PlotSetList}
\alias{PlotSetList-class}
\title{PlotSetList Reference Class}
\description{
PlotSetList Reference Class
}
\section{Fields}{
\describe{
\item{\code{data}}{a nest... | /script/mcclintock_analysis_code/seqplots-master/man/PlotSetList-class.Rd | no_license | Intro-Sci-Comp-UIowa/biol-4386-project-pfothergill | R | false | true | 1,143 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotSetList-class.R
\docType{class}
\name{PlotSetList-class}
\alias{PlotSetList}
\alias{PlotSetList-class}
\title{PlotSetList Reference Class}
\description{
PlotSetList Reference Class
}
\section{Fields}{
\describe{
\item{\code{data}}{a nest... |
require(tidyverse)
ms <- msleep %>%
select(name, sleep_total) %>%
filter(sleep_total > 18)
ms <- msleep %>%
select(name, sleep_total) %>%
filter(!sleep_total > 18) # ! stands for not
#conjunction "&"
ms <- msleep %>%
select(name, order, bodywt, sleep_total) %>%
filter(order == "Primates" & bodywt >... | /first/data filtering.R | no_license | weber77/R-programming | R | false | false | 1,249 | r | require(tidyverse)
ms <- msleep %>%
select(name, sleep_total) %>%
filter(sleep_total > 18)
ms <- msleep %>%
select(name, sleep_total) %>%
filter(!sleep_total > 18) # ! stands for not
#conjunction "&"
ms <- msleep %>%
select(name, order, bodywt, sleep_total) %>%
filter(order == "Primates" & bodywt >... |
data <- read.csv('/Users/qidiwang1/Desktop/疫情数据库/聚类分析.csv')
library(smoother)
library(dplyr)
cluster_data <- data.frame()
for (a in levels(data$Country.x)) {
country <- data[data$Country.x==a,]
smooth_cases <- smth(country$New.cases,mehtod = 'gaussian')
smooth_death <- smth(country$New.death,method = 'gaussian')
... | /10月24号为止的r code/聚类分析(平滑版).R | no_license | qidiwang1/Rstudio | R | false | false | 3,432 | r | data <- read.csv('/Users/qidiwang1/Desktop/疫情数据库/聚类分析.csv')
library(smoother)
library(dplyr)
cluster_data <- data.frame()
for (a in levels(data$Country.x)) {
country <- data[data$Country.x==a,]
smooth_cases <- smth(country$New.cases,mehtod = 'gaussian')
smooth_death <- smth(country$New.death,method = 'gaussian')
... |
library(multcomp)
levels(cholesterol$trt)
fit.aov <- aov(response ~ trt, data = cholesterol)
summary(fit.aov)
fit.lm <- lm(response ~ trt, data = cholesterol)
summary(fit.lm) | /R/9-11.R | no_license | datacruiser/DA | R | false | false | 181 | r | library(multcomp)
levels(cholesterol$trt)
fit.aov <- aov(response ~ trt, data = cholesterol)
summary(fit.aov)
fit.lm <- lm(response ~ trt, data = cholesterol)
summary(fit.lm) |
getwd()
#---- 1 Loading Libraries -----
install.packages("tidyverse")
library(tidyverse)
install.packages("corrplot")
library(corrplot)
install.packages("maptools")
install.packages("V8")
install.packages(c("classint", "OpenStreetMap", "RColorBrewer", "Sp", "rgeos", "tmap", "tmaptools", "sf", "downloader", "rgdal", "g... | /geo_mh_model.R | permissive | obinhood/geodem-mental-health | R | false | false | 221,463 | r | getwd()
#---- 1 Loading Libraries -----
install.packages("tidyverse")
library(tidyverse)
install.packages("corrplot")
library(corrplot)
install.packages("maptools")
install.packages("V8")
install.packages(c("classint", "OpenStreetMap", "RColorBrewer", "Sp", "rgeos", "tmap", "tmaptools", "sf", "downloader", "rgdal", "g... |
#
# 2011-TR-bpm.R, 20 May 20
#
# Data from:
# An Empirical Study on Consistency Management of Business and {IT} Process Models
# Mois{\'e}s Castelo Branco and Yingfei Xiong and Krzysztof Czarnecki and Jochen K{\"u}ster and Hagen V{\"o}lzer
#
# Example from:
# Evidence-based Software Engineering: based on the publicly a... | /ecosystems/2011-TR-bpm.R | no_license | shanechin/ESEUR-code-data | R | false | false | 1,031 | r | #
# 2011-TR-bpm.R, 20 May 20
#
# Data from:
# An Empirical Study on Consistency Management of Business and {IT} Process Models
# Mois{\'e}s Castelo Branco and Yingfei Xiong and Krzysztof Czarnecki and Jochen K{\"u}ster and Hagen V{\"o}lzer
#
# Example from:
# Evidence-based Software Engineering: based on the publicly a... |
context("stata")
test_that("stata_pal works", {
p <- stata_pal()
expect_is(p, "function")
expect_is(attr(p, "max_n"), "integer")
n <- 5
vals <- p(n)
expect_hexcolor(vals)
expect_length(vals, n)
expect_warning(stata_pal()(100))
})
test_that("scale_colour_stata works", {
expect_is(scale_colour_stata()... | /packrat/lib/x86_64-pc-linux-gnu/3.5.0/ggthemes/tests/testthat/test-stata.R | no_license | DiklaGelbard/metaview | R | false | false | 1,504 | r | context("stata")
test_that("stata_pal works", {
p <- stata_pal()
expect_is(p, "function")
expect_is(attr(p, "max_n"), "integer")
n <- 5
vals <- p(n)
expect_hexcolor(vals)
expect_length(vals, n)
expect_warning(stata_pal()(100))
})
test_that("scale_colour_stata works", {
expect_is(scale_colour_stata()... |
getwd()
setwd("C:/Users/agray/Documents/Coursera Data Science Course/Course Project 1 Exploratory Data Analysis")
datFile <- read.table("household_power_consumption.txt", header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
dataSubset <- datFile[datFile$Date %in% c('1/2/2007','2/2/2007'), ]
gap <- as.numeric(... | /plot1.R | no_license | AlliG92/ExData_Plotting1 | R | false | false | 497 | r | getwd()
setwd("C:/Users/agray/Documents/Coursera Data Science Course/Course Project 1 Exploratory Data Analysis")
datFile <- read.table("household_power_consumption.txt", header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
dataSubset <- datFile[datFile$Date %in% c('1/2/2007','2/2/2007'), ]
gap <- as.numeric(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/int.break.R
\name{int.break}
\alias{int.break}
\title{breaks obtention}
\usage{
int.break(
XY,
int = NULL,
smin = 0,
smax = NULL,
seqvec = NULL,
nclass = NULL,
size = NULL,
bin = c("FD", "sturges"),
latlon = FALSE
)
}
\argum... | /man/int.break.Rd | no_license | cran/EcoGenetics | R | false | true | 1,425 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/int.break.R
\name{int.break}
\alias{int.break}
\title{breaks obtention}
\usage{
int.break(
XY,
int = NULL,
smin = 0,
smax = NULL,
seqvec = NULL,
nclass = NULL,
size = NULL,
bin = c("FD", "sturges"),
latlon = FALSE
)
}
\argum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/5_networkComparison.R
\name{compute_frobenius_distance}
\alias{compute_frobenius_distance}
\title{Computes frobenius distance in a pairwise manner between two sets of networks}
\usage{
compute_frobenius_distance(
netlist1,
netlist2,
wei... | /man/compute_frobenius_distance.Rd | permissive | epaaso/epoch | R | false | true | 897 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/5_networkComparison.R
\name{compute_frobenius_distance}
\alias{compute_frobenius_distance}
\title{Computes frobenius distance in a pairwise manner between two sets of networks}
\usage{
compute_frobenius_distance(
netlist1,
netlist2,
wei... |
m <-matrix(c(floor(runif(2500, min=0, max=4))), nrow=10, ncol=5, byrow=TRUE)
print(m)
| /Matrix.r | no_license | harisomerhabeeb11/swecha_camp | R | false | false | 86 | r | m <-matrix(c(floor(runif(2500, min=0, max=4))), nrow=10, ncol=5, byrow=TRUE)
print(m)
|
library(dashBootstrapComponents)
badge <- dbcButton(
list(
"Notifications",
dbcBadge("4", color = "light", className = "ml-1")
),
color = "primary",
)
| /docs/components/badge/simple.R | no_license | AnnMarieW/R-dash-bootstrap-components | R | false | false | 167 | r |
library(dashBootstrapComponents)
badge <- dbcButton(
list(
"Notifications",
dbcBadge("4", color = "light", className = "ml-1")
),
color = "primary",
)
|
#' @title Summary statistics from two variables
#'
#' @description Read two columns of data values (say X and Y)
#' and computes summary statistics including N, Mean, SD, Min
#' and Max for X and Y, as well as the correlation between X
#' and Y and the regression of Y on X.
#'
#' @param x A dataframe with two columns (... | /R/bivar_awk.R | no_license | cbiagii/CeTF | R | false | false | 2,289 | r | #' @title Summary statistics from two variables
#'
#' @description Read two columns of data values (say X and Y)
#' and computes summary statistics including N, Mean, SD, Min
#' and Max for X and Y, as well as the correlation between X
#' and Y and the regression of Y on X.
#'
#' @param x A dataframe with two columns (... |
##########################################################
## Run the LANDSCAPE DYNAMIC MODEL for QU?BEC for multiple
## scenarios with customized parameters
##########################################################
# Clean the working space
rm(list = ls())
# Set the working directory
#setwd("C:/Users/Mathieu/Des... | /rscripts/run.scenarios.tests.r | no_license | nuaquilue/QbcLDM | R | false | false | 4,597 | r | ##########################################################
## Run the LANDSCAPE DYNAMIC MODEL for QU?BEC for multiple
## scenarios with customized parameters
##########################################################
# Clean the working space
rm(list = ls())
# Set the working directory
#setwd("C:/Users/Mathieu/Des... |
# Test the law of Large Number
count1SD<- 0L #= 34.1*2
count2SD<- 0L #=
count3SD<- 0L
for (i in 1:100000)
{
rm(sample_number);
sample_number = rnorm(1,0,1);
#Density, distribution function, quantile function and random generation for the normal distribution with mean equal to mean and standard deviatio... | /7.1.TestingTheLawOfLargeNumbers.R | no_license | vaaibhavkumar/Samples | R | false | false | 1,043 | r | # Test the law of Large Number
count1SD<- 0L #= 34.1*2
count2SD<- 0L #=
count3SD<- 0L
for (i in 1:100000)
{
rm(sample_number);
sample_number = rnorm(1,0,1);
#Density, distribution function, quantile function and random generation for the normal distribution with mean equal to mean and standard deviatio... |
### Classification and AOA Testing
# setup set working directory
getwd()
path <-"D:/MSC" # set drive letter for stick
setwd(path)
# load libs
require(raster)
require(caret)
require(CAST)
require(doParallel)
require(rgeos)
# required for visualization
require(viridis)
require(png)
require(latticeExtra)
require(gridE... | /R/FFS1_runscript.R | no_license | SchoenbergA/AOA-Impact | R | false | false | 4,783 | r | ### Classification and AOA Testing
# setup set working directory
getwd()
path <-"D:/MSC" # set drive letter for stick
setwd(path)
# load libs
require(raster)
require(caret)
require(CAST)
require(doParallel)
require(rgeos)
# required for visualization
require(viridis)
require(png)
require(latticeExtra)
require(gridE... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basemap.R
\name{basemap}
\alias{basemap}
\title{Create a ggplot2 basemap for plotting variables}
\source{
\itemize{
\item Svalbard maps originate from the \href{http://geodata.npolar.no/}{Norwegian Polar Institute}. Distributed under the \hre... | /man/basemap.Rd | permissive | aposacka/PlotSvalbard | R | false | true | 9,106 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basemap.R
\name{basemap}
\alias{basemap}
\title{Create a ggplot2 basemap for plotting variables}
\source{
\itemize{
\item Svalbard maps originate from the \href{http://geodata.npolar.no/}{Norwegian Polar Institute}. Distributed under the \hre... |
library(catnet)
### Name: cnFind-method
### Title: Find Network by Complexity
### Aliases: cnFind cnFindKL cnFind,list-method
### cnFind,catNetworkEvaluate-method cnFindKL,list-method
### cnFindKL,catNetworkEvaluate-method
### Keywords: methods graphs
### ** Examples
cnet <- cnRandomCatnet(numnodes=10, maxPar... | /data/genthat_extracted_code/catnet/examples/cnFind.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 530 | r | library(catnet)
### Name: cnFind-method
### Title: Find Network by Complexity
### Aliases: cnFind cnFindKL cnFind,list-method
### cnFind,catNetworkEvaluate-method cnFindKL,list-method
### cnFindKL,catNetworkEvaluate-method
### Keywords: methods graphs
### ** Examples
cnet <- cnRandomCatnet(numnodes=10, maxPar... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/parse_xml.R, R/simplify_xml.R
\name{get_artist_df}
\alias{get_artist_df}
\title{Returns XML parsed into easy to use data.frame}
\usage{
get_artist_df(xml)
get_artist_df(xml)
}
\arguments{
\item{xml}{an XML document with nodes artist_... | /man/get_artist_df.Rd | no_license | kraigrs/musixmatch | R | false | false | 552 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/parse_xml.R, R/simplify_xml.R
\name{get_artist_df}
\alias{get_artist_df}
\title{Returns XML parsed into easy to use data.frame}
\usage{
get_artist_df(xml)
get_artist_df(xml)
}
\arguments{
\item{xml}{an XML document with nodes artist_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genie_functions.R
\name{deletion_analysis}
\alias{deletion_analysis}
\title{Alignment-based GenIE analysis}
\usage{
deletion_analysis(
regions,
replicates,
required_match_left = 10,
required_match_right = 10,
crispr_del_window = 100... | /man/deletion_analysis.Rd | no_license | cran/rgenie | R | false | true | 11,750 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genie_functions.R
\name{deletion_analysis}
\alias{deletion_analysis}
\title{Alignment-based GenIE analysis}
\usage{
deletion_analysis(
regions,
replicates,
required_match_left = 10,
required_match_right = 10,
crispr_del_window = 100... |
\name{mutate}
\alias{mutate}
\title{Mutate a data frame by adding new or replacing existing columns.}
\usage{
mutate(.data, ...)
}
\arguments{
\item{.data}{the data frame to transform}
\item{...}{named parameters giving definitions of new
columns.}
}
\description{
This function is very similar to \code{\link... | /man/mutate.Rd | no_license | talgalili/plyr | R | false | false | 1,181 | rd | \name{mutate}
\alias{mutate}
\title{Mutate a data frame by adding new or replacing existing columns.}
\usage{
mutate(.data, ...)
}
\arguments{
\item{.data}{the data frame to transform}
\item{...}{named parameters giving definitions of new
columns.}
}
\description{
This function is very similar to \code{\link... |
#' bscfish: A package for basic fish life history functions
#'
#' The bscfish package contains an r file with three basic and typical life history
#' functions for fishes.
#'
#' @section bscfish functions:
#' L_age
#' M_age
#' W_age
#'
#' @docType package
#' @name bscfish
NULL
| /R/bscfish.R | no_license | Brett-Stacy/bscfish | R | false | false | 279 | r | #' bscfish: A package for basic fish life history functions
#'
#' The bscfish package contains an r file with three basic and typical life history
#' functions for fishes.
#'
#' @section bscfish functions:
#' L_age
#' M_age
#' W_age
#'
#' @docType package
#' @name bscfish
NULL
|
## These two functions allow matrices to be created that are capable of storing
## values in cache. First the special matrix is created by passing the first
## function a regular matrix, that is assumed to be invertable. To compute the
## inverse of the matrix the function cacheSolve needs to be run with a cache matrix... | /cachematrix.R | no_license | hnwl/ProgrammingAssignment2 | R | false | false | 1,660 | r | ## These two functions allow matrices to be created that are capable of storing
## values in cache. First the special matrix is created by passing the first
## function a regular matrix, that is assumed to be invertable. To compute the
## inverse of the matrix the function cacheSolve needs to be run with a cache matrix... |
library(ggplot2)
library(magrittr)
library(gganimate)
library(reshape2)
stock_oil <- read.csv('OSL_OIL.csv')
stock_oil$Date <- as.Date(as.character(stock_oil$Date), format = "%m/%d/%y")
stock_oil$Brent.Crude.Oil <- round(stock_oil$Brent.Crude.Oil, 1)
stock_oil$Crude.Oil.WTI <- round(stock_oil$Crude.Oil.WTI, 1)
sto... | /analysis_animation.R | no_license | markus-proesch/OSEAXvsOIL | R | false | false | 1,571 | r | library(ggplot2)
library(magrittr)
library(gganimate)
library(reshape2)
stock_oil <- read.csv('OSL_OIL.csv')
stock_oil$Date <- as.Date(as.character(stock_oil$Date), format = "%m/%d/%y")
stock_oil$Brent.Crude.Oil <- round(stock_oil$Brent.Crude.Oil, 1)
stock_oil$Crude.Oil.WTI <- round(stock_oil$Crude.Oil.WTI, 1)
sto... |
\name{interval}
\alias{as.character.interval}
\alias{as.double.interval}
\alias{as.interval}
\alias{as.interval.default}
\alias{as.interval.interval}
\alias{as.interval.list}
\alias{as.interval.NULL}
\alias{as.interval.numeric}
\alias{as.interval.set}
\alias{as.interval.tuple}
\alias{as.list.interval}
\alias{integers}
... | /man/interval.Rd | no_license | cran/sets | R | false | false | 8,283 | rd | \name{interval}
\alias{as.character.interval}
\alias{as.double.interval}
\alias{as.interval}
\alias{as.interval.default}
\alias{as.interval.interval}
\alias{as.interval.list}
\alias{as.interval.NULL}
\alias{as.interval.numeric}
\alias{as.interval.set}
\alias{as.interval.tuple}
\alias{as.list.interval}
\alias{integers}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.