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 |
|---|---|---|---|---|---|---|---|---|---|
## Data Cleaning Functions
clean_got_submission_data <- function(data){
cleaned_data <- data %>%
rename(who_takes_the_throne = `WHO TAKES THE THRONE?`,
full_name = `Full Name`,
dies_first = `WHO DIES FIRST?`,
dies_last = `WHO DIES LAST?`) %>%
mutate_at(c("who_takes_the_thron... | /R/dataCleaning.R | no_license | rangi513/game-of-thrones-odds-shiny | R | false | false | 3,437 | r | ## Data Cleaning Functions
clean_got_submission_data <- function(data){
cleaned_data <- data %>%
rename(who_takes_the_throne = `WHO TAKES THE THRONE?`,
full_name = `Full Name`,
dies_first = `WHO DIES FIRST?`,
dies_last = `WHO DIES LAST?`) %>%
mutate_at(c("who_takes_the_thron... |
/Resources/Chaos/vera.lambda~.r | no_license | sone/LitterPower | R | false | false | 1,442 | r | ||
# - You can do it easily using portfolio.optim in tseries package.
# - Suppose you are considering the global portfolio with passive investment
# strategy, where you want to invest in the ETF of FTSE, DAX, SMI and CAC.
# - Your annualized expected return is 12.5%.
# - Consider annualized risk-free rate of return as 3%.... | /Code/05_portfolio_optimization.R | no_license | duskybomb/quantitative-finance-talk | R | false | false | 1,307 | r | # - You can do it easily using portfolio.optim in tseries package.
# - Suppose you are considering the global portfolio with passive investment
# strategy, where you want to invest in the ETF of FTSE, DAX, SMI and CAC.
# - Your annualized expected return is 12.5%.
# - Consider annualized risk-free rate of return as 3%.... |
#loading libraries
library(shiny)
library(leaflet)
library(dplyr)
library(ggplot2)
df <- subset(midwest, select = -c(PID, county, inmetro, category))
names(df)[1] <- paste("State")
names(df)[2] <- paste("Total_Population")
names(df)[3] <- paste("Population_Density")
names(df)[4] <- paste("White_Population")
names(df)[... | /a7-priyanshir/app_ui.R | permissive | getachew67/Info201-6 | R | false | false | 3,369 | r | #loading libraries
library(shiny)
library(leaflet)
library(dplyr)
library(ggplot2)
df <- subset(midwest, select = -c(PID, county, inmetro, category))
names(df)[1] <- paste("State")
names(df)[2] <- paste("Total_Population")
names(df)[3] <- paste("Population_Density")
names(df)[4] <- paste("White_Population")
names(df)[... |
#### functions ####
emptyCanvas <- function(xlim, ylim, bg="gray20") {
par(mar=rep(1,4), bg=bg)
plot(1,
type="n",
bty="n",
xlab="", ylab="",
xaxt="n", yaxt="n",
xlim=xlim, ylim=ylim)
}
iterate <- function(object, ifun, ...) {
linesList <- vector("list",0)
for(i in 1:nrow(ob... | /introFractal.R | no_license | jevzimite/Projects.compiled | R | false | false | 4,642 | r | #### functions ####
emptyCanvas <- function(xlim, ylim, bg="gray20") {
par(mar=rep(1,4), bg=bg)
plot(1,
type="n",
bty="n",
xlab="", ylab="",
xaxt="n", yaxt="n",
xlim=xlim, ylim=ylim)
}
iterate <- function(object, ifun, ...) {
linesList <- vector("list",0)
for(i in 1:nrow(ob... |
\name{storeEntityObjects-methods}
\docType{methods}
\alias{storeEntityObjects-methods}
\alias{storeEntityObjects,SynapseLocationOwner-method}
\title{ ~~ Methods for Function \code{storeEntityObjects} ~~}
\description{
~~ Methods for function \code{storeEntityObjects} ~~
}
\section{Methods}{
\describe{
\item{\code{s... | /man/storeEntityObjects-methods.Rd | no_license | MattNapsAlot/rSynapseClient | R | false | false | 472 | rd | \name{storeEntityObjects-methods}
\docType{methods}
\alias{storeEntityObjects-methods}
\alias{storeEntityObjects,SynapseLocationOwner-method}
\title{ ~~ Methods for Function \code{storeEntityObjects} ~~}
\description{
~~ Methods for function \code{storeEntityObjects} ~~
}
\section{Methods}{
\describe{
\item{\code{s... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/autonomic_ganglia.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="mse",alpha=0.75,family="gaussian",standardize=TRUE)
sink('./autonomic_ganglia_077.t... | /Model/EN/Lasso/autonomic_ganglia/autonomic_ganglia_077.R | no_license | esbgkannan/QSMART | R | false | false | 366 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/autonomic_ganglia.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="mse",alpha=0.75,family="gaussian",standardize=TRUE)
sink('./autonomic_ganglia_077.t... |
source("packages.R")
quad <- function(dt, x){
dt[, quadratic*x*x + linear*x + constant]
}
getLines <- function(dt){
line.list <- list()
for(piece.i in 1:nrow(dt)){
piece <- dt[piece.i,]
mean.vec <- piece[, seq(min.mean, max.mean, l=100)]
line.list[[piece.i]] <- data.table(
piece.i,
piece,... | /figure-less-more-min.R | no_license | tdhock/PeakSegFPOP-paper | R | false | false | 3,938 | r | source("packages.R")
quad <- function(dt, x){
dt[, quadratic*x*x + linear*x + constant]
}
getLines <- function(dt){
line.list <- list()
for(piece.i in 1:nrow(dt)){
piece <- dt[piece.i,]
mean.vec <- piece[, seq(min.mean, max.mean, l=100)]
line.list[[piece.i]] <- data.table(
piece.i,
piece,... |
# The first 2/3 of the code is described in the book
# XML and Web Technologies for Data Science with R
# Nolan and Temple Lang
uBTS = "http://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236"
library(RHTMLForms)
fm = getHTMLFormDescription(uBTS)
print(fm, showHidden = TRUE)
library(XML)
doc = htmlParse(uBT... | /stat250_hw1/RITA/rita.R | no_license | hitchpy/courses_ucd | R | false | false | 2,751 | r | # The first 2/3 of the code is described in the book
# XML and Web Technologies for Data Science with R
# Nolan and Temple Lang
uBTS = "http://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236"
library(RHTMLForms)
fm = getHTMLFormDescription(uBTS)
print(fm, showHidden = TRUE)
library(XML)
doc = htmlParse(uBT... |
set.seed( 32 )
library(mvtnorm)
library(fields)
library(Rcpp)
library(mclust)
library(kernlab)
library(ConsensusClusterPlus)
simu=function(s){
prob_glcm<-function(c,s=s,mc=30000){
mu<-c(2+c,14-c)
sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2)
elip<-rmvnorm(mc,mu,sigma)
# par(xaxs='i',yaxs='i')
... | /s=10/simu_32.R | no_license | mguindanigroup/Radiomics-Hierarchical-Rounded-Gaussian-Spatial-Dirichlet-Process | R | false | false | 9,293 | r | set.seed( 32 )
library(mvtnorm)
library(fields)
library(Rcpp)
library(mclust)
library(kernlab)
library(ConsensusClusterPlus)
simu=function(s){
prob_glcm<-function(c,s=s,mc=30000){
mu<-c(2+c,14-c)
sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2)
elip<-rmvnorm(mc,mu,sigma)
# par(xaxs='i',yaxs='i')
... |
### Plot 12: IRU comparisons
RPlot12 <- function (data, Seq=NA, panl=1, ...) {
# This only finds 'renderPlot' for a call from the 'display' in shiny.
# For a call from savePDF this will be FALSE.
shinyDisplay <- any(grepl('renderPlot', sys.calls()))
line.types <- c(1, 2, 1, 1)
panel11 <- function(data) ... | /PlotFunctions/RPlot12.R | permissive | WilliamCooper/QAtools | R | false | false | 5,278 | r | ### Plot 12: IRU comparisons
RPlot12 <- function (data, Seq=NA, panl=1, ...) {
# This only finds 'renderPlot' for a call from the 'display' in shiny.
# For a call from savePDF this will be FALSE.
shinyDisplay <- any(grepl('renderPlot', sys.calls()))
line.types <- c(1, 2, 1, 1)
panel11 <- function(data) ... |
\name{wlrcal}
\alias{wlrcal}
\title{A utility function to calculate the weighted log-rank statistics and their varainces given the weights}
\description{A utility function to calculate the weighted log-rank statistics and their varainces given the weights}
\usage{
wlrcal(n=10,te=c(1,2,3),tfix=2.0,dd1=c(1,0,1),dd0=c(0,1... | /man/wlrcal.Rd | no_license | cran/PWEALL | R | false | false | 1,478 | rd | \name{wlrcal}
\alias{wlrcal}
\title{A utility function to calculate the weighted log-rank statistics and their varainces given the weights}
\description{A utility function to calculate the weighted log-rank statistics and their varainces given the weights}
\usage{
wlrcal(n=10,te=c(1,2,3),tfix=2.0,dd1=c(1,0,1),dd0=c(0,1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/species_params.R
\name{get_h_default}
\alias{get_h_default}
\title{Get default value for h}
\usage{
get_h_default(params)
}
\arguments{
\item{params}{A MizerParams object}
}
\value{
A vector with the values of h for all species
}
\description... | /man/get_h_default.Rd | no_license | patricksykes/mizer | R | false | true | 898 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/species_params.R
\name{get_h_default}
\alias{get_h_default}
\title{Get default value for h}
\usage{
get_h_default(params)
}
\arguments{
\item{params}{A MizerParams object}
}
\value{
A vector with the values of h for all species
}
\description... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/afni_3dDespike.R
\name{afni_3dDespike}
\alias{afni_3dDespike}
\alias{despike}
\title{Convert AFNI File to NIFTI Image}
\usage{
afni_3dDespike(file, ignore_vols = 0, curve_order = NULL,
cut_values = c(2.5, 4), mask = TRUE, dilate = 4,
loca... | /man/afni_3dDespike.Rd | no_license | neuroconductor/afnir | R | false | true | 1,648 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/afni_3dDespike.R
\name{afni_3dDespike}
\alias{afni_3dDespike}
\alias{despike}
\title{Convert AFNI File to NIFTI Image}
\usage{
afni_3dDespike(file, ignore_vols = 0, curve_order = NULL,
cut_values = c(2.5, 4), mask = TRUE, dilate = 4,
loca... |
#movielens quiz
#Q1 How many rows and columns are there in the edx dataset?
dim(edx)
#Number of rows:
nrow(edx)
#Number of columns:
ncol(edx)
#q2 How many zeros were given as ratings in the edx dataset?
edx %>% group_by(rating) %>% dplyr::count()
#No movies have a rating of 0. Movies are rated from 0.5 to 5.0 in... | /movielens_quiz.R | no_license | nmarum/harvardx_movielens | R | false | false | 1,723 | r | #movielens quiz
#Q1 How many rows and columns are there in the edx dataset?
dim(edx)
#Number of rows:
nrow(edx)
#Number of columns:
ncol(edx)
#q2 How many zeros were given as ratings in the edx dataset?
edx %>% group_by(rating) %>% dplyr::count()
#No movies have a rating of 0. Movies are rated from 0.5 to 5.0 in... |
#install.packages("pdftools")
#install.packages("stringr")
#install.packages("tm")
library(pdftools)
library(stringr)
library(tm)
readUrl <- function(url, destfile1) {
out <- tryCatch(
{
message("Trying to download.")
download.file(url, destfile=destfile1 , mode="wb")
},
error=function(cond... | /download_RSOS_pdf.R | permissive | annloh/open_peer_review | R | false | false | 2,024 | r | #install.packages("pdftools")
#install.packages("stringr")
#install.packages("tm")
library(pdftools)
library(stringr)
library(tm)
readUrl <- function(url, destfile1) {
out <- tryCatch(
{
message("Trying to download.")
download.file(url, destfile=destfile1 , mode="wb")
},
error=function(cond... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/species_mix_s3-class.R
\name{AIC.species_mix}
\alias{AIC.species_mix}
\title{Return AIC from a species_mix model}
\usage{
\method{AIC}{species_mix}(object, k = NULL, ...)
}
\arguments{
\item{object}{A species mix object}
\item{k}{AIC paramet... | /man/AIC.species_mix.Rd | no_license | skiptoniam/ecomix | R | false | true | 402 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/species_mix_s3-class.R
\name{AIC.species_mix}
\alias{AIC.species_mix}
\title{Return AIC from a species_mix model}
\usage{
\method{AIC}{species_mix}(object, k = NULL, ...)
}
\arguments{
\item{object}{A species mix object}
\item{k}{AIC paramet... |
#' Find attributes
#'
#' find attributes in dataset, in the biomart database given a search string
#'
#' @param x string
#'
#' @return string
#' @export
#'
#' @examples
#' attributes("pfam")
attributes <- function(x){
attributes <- listAttributes(h_sapiens) %>% as_tibble()
result_name <- attributes[str_detect(str... | /R/attributes.R | no_license | ClaudiavdZ/bestpackage | R | false | false | 856 | r | #' Find attributes
#'
#' find attributes in dataset, in the biomart database given a search string
#'
#' @param x string
#'
#' @return string
#' @export
#'
#' @examples
#' attributes("pfam")
attributes <- function(x){
attributes <- listAttributes(h_sapiens) %>% as_tibble()
result_name <- attributes[str_detect(str... |
#'@title variance function of a binomial distribution
#'@description calculate the variance
#'@param trials the number of trials
#'@param prob the probability of success on each trial
#'@return the calcuted variance
#'@examples
#'bin_variance(trials = 10, prob = 0.3)
#'@export
bin_variance <- function(trials, prob){
... | /binomial/R/bin_variance.R | no_license | stat133-sp19/hw-stat133-Zehao1006 | R | false | false | 498 | r | #'@title variance function of a binomial distribution
#'@description calculate the variance
#'@param trials the number of trials
#'@param prob the probability of success on each trial
#'@return the calcuted variance
#'@examples
#'bin_variance(trials = 10, prob = 0.3)
#'@export
bin_variance <- function(trials, prob){
... |
\name{muc.clim}
\docType{data}
\alias{muc.clim}
\title{Monthly Mean Temperature and Total Precipitation for Forstenrieder Park, Munich}
\description{
This dataset gives the monthly mean temperature and total precipitation at Forstenrieder Park, Munich, Bavaria, Germany.
}
\usage{muc.clim}
\format{A \code{data.frame}... | /man/muc.clim.Rd | no_license | cszang/bootRes | R | false | false | 627 | rd | \name{muc.clim}
\docType{data}
\alias{muc.clim}
\title{Monthly Mean Temperature and Total Precipitation for Forstenrieder Park, Munich}
\description{
This dataset gives the monthly mean temperature and total precipitation at Forstenrieder Park, Munich, Bavaria, Germany.
}
\usage{muc.clim}
\format{A \code{data.frame}... |
#' score
#'
#'Function that calculates the score of a multilayer vertex - layer community
#' @param adjacency: a list object whose tth entry is an adjacency matrix representing the tth layer of a multilayer network.
#' @param expected: the expected value of the connectivity in the multilayer network adjacency. This c... | /Archived/score.R | no_license | dennis-hammerschmidt/MultilayerExtraction | R | false | false | 2,114 | r | #' score
#'
#'Function that calculates the score of a multilayer vertex - layer community
#' @param adjacency: a list object whose tth entry is an adjacency matrix representing the tth layer of a multilayer network.
#' @param expected: the expected value of the connectivity in the multilayer network adjacency. This c... |
#hbgdki pallets
tableau10 <- c("#1F77B4","#FF7F0E","#2CA02C","#D62728",
"#9467BD","#8C564B","#E377C2","#7F7F7F","#BCBD22","#17BECF")
tableau11 <- c("Black","#1F77B4","#FF7F0E","#2CA02C","#D62728",
"#9467BD","#8C564B","#E377C2","#7F7F7F","#BCBD22","#17BECF")
rma_summary <- function(fit, ... | /norms_meta_analysis_functions.R | no_license | amertens/norms-meta-analysis | R | false | false | 9,314 | r |
#hbgdki pallets
tableau10 <- c("#1F77B4","#FF7F0E","#2CA02C","#D62728",
"#9467BD","#8C564B","#E377C2","#7F7F7F","#BCBD22","#17BECF")
tableau11 <- c("Black","#1F77B4","#FF7F0E","#2CA02C","#D62728",
"#9467BD","#8C564B","#E377C2","#7F7F7F","#BCBD22","#17BECF")
rma_summary <- function(fit, ... |
# This is a script I wrote to do TFEA between TFregulomeR and DhMR from Mouse Intestine
# Author: Tian
load("./MouseDHMR_PromoterAnnotated.rda")
source("./champ.getTFPeaks.R")
source("./champ.TFEA.R")
# myRandomRegion <- df[df$insideFeature %in% c("inside", "overlapStart", "overlapEnd"),]
message("User all 5hmC peaks... | /5.TFEA/main.R | no_license | YuanTian1991/MeDIP-seq_Pipeline | R | false | false | 1,274 | r | # This is a script I wrote to do TFEA between TFregulomeR and DhMR from Mouse Intestine
# Author: Tian
load("./MouseDHMR_PromoterAnnotated.rda")
source("./champ.getTFPeaks.R")
source("./champ.TFEA.R")
# myRandomRegion <- df[df$insideFeature %in% c("inside", "overlapStart", "overlapEnd"),]
message("User all 5hmC peaks... |
basic.get.exp.trans.density.lines <-
function (trans.x.density.at,
focus.variable,
distribution,
theta.hat,
scale.factor = 1,
transformation.time,
transformation.response,
transformation.x,
FailLevel)
{
d.tau.d.time <- function(t... | /R/basic.get.exp.trans.density.lines.R | no_license | anhnguyendepocen/SMRD | R | false | false | 3,092 | r | basic.get.exp.trans.density.lines <-
function (trans.x.density.at,
focus.variable,
distribution,
theta.hat,
scale.factor = 1,
transformation.time,
transformation.response,
transformation.x,
FailLevel)
{
d.tau.d.time <- function(t... |
#' Locality Sensitive Discriminant Feature
#'
#' Locality Sensitive Discriminant Feature (LSDF) is a semi-supervised feature selection method.
#' It utilizes both labeled and unlabeled data points in that labeled points are used to maximize
#' the margin between data opints from different classes, while labeled ones ar... | /R/linear_LSDF.R | no_license | rcannood/Rdimtools | R | false | false | 5,792 | r | #' Locality Sensitive Discriminant Feature
#'
#' Locality Sensitive Discriminant Feature (LSDF) is a semi-supervised feature selection method.
#' It utilizes both labeled and unlabeled data points in that labeled points are used to maximize
#' the margin between data opints from different classes, while labeled ones ar... |
\name{sr_MI}
\alias{sr_MI}
\docType{data}
\title{
data: low resolution locally weathered Sr isoscape for Michigan
}
\description{
Modeled 87Sr/86Sr value of the local rock weathering flux, obtained from waterisotopes.org and aggregated to 10 km resolution.
}
\usage{
sr_MI
}
\format{
SpatRaster ... | /man/sr_MI.Rd | no_license | cran/assignR | R | false | false | 715 | rd | \name{sr_MI}
\alias{sr_MI}
\docType{data}
\title{
data: low resolution locally weathered Sr isoscape for Michigan
}
\description{
Modeled 87Sr/86Sr value of the local rock weathering flux, obtained from waterisotopes.org and aggregated to 10 km resolution.
}
\usage{
sr_MI
}
\format{
SpatRaster ... |
elements <- c(0, 0.6, 0.32, 0, 0.14, 0.4, 0, 0.68, 0, 0.3, 0.6, 0.35, 0, 0.12, 0, 0, 0, 0 ,0, 0.56, 0, 0.05, 0, 0.88, 0)
P <- matrix(elements, nrow = 5, ncol = 5)
#verif
rowSums(P)
P2 = P%*%P
P2
P3 = P2%*%P
P3
P4 = P3%*%P
P4
P5 = P4%*%P
P5 | /td3.R | no_license | AnandaChanda/Computational-Statistics-Homework | R | false | false | 260 | r | elements <- c(0, 0.6, 0.32, 0, 0.14, 0.4, 0, 0.68, 0, 0.3, 0.6, 0.35, 0, 0.12, 0, 0, 0, 0 ,0, 0.56, 0, 0.05, 0, 0.88, 0)
P <- matrix(elements, nrow = 5, ncol = 5)
#verif
rowSums(P)
P2 = P%*%P
P2
P3 = P2%*%P
P3
P4 = P3%*%P
P4
P5 = P4%*%P
P5 |
image_loop <- function(image, max.tries = 10) {
if (class(image)!='PCArtImage') stop('The image data are not classified as a PCArtImage.')
n_comps <- c(1, 1)
for (i in 3:(max.tries+1)) { n_comps[i] <- n_comps[i-1] + n_comps[i-2]}
n_comps <- n_comps[-1]
for (i in n_comps) {
message(paste('\nPCA... | /R/image_loop.R | no_license | martscht/PCArt | R | false | false | 984 | r | image_loop <- function(image, max.tries = 10) {
if (class(image)!='PCArtImage') stop('The image data are not classified as a PCArtImage.')
n_comps <- c(1, 1)
for (i in 3:(max.tries+1)) { n_comps[i] <- n_comps[i-1] + n_comps[i-2]}
n_comps <- n_comps[-1]
for (i in n_comps) {
message(paste('\nPCA... |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may n... | /R/pkg/R/stats.R | no_license | BigDataTeng/spark-parent_2.11 | R | false | false | 9,955 | r | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may n... |
#!/usr/bin/env Rscript
getwholetable=function(alllessiontable,wgstumors)
{
alllessiontable$Descriptor=gsub(" ","",alllessiontable$Descriptor,fixed=T)
uniq_cytoband=unique(alllessiontable$Descriptor)
cytobandtable=data.frame(matrix(" ",nrow=length(uniq_cytoband),ncol=length(wgstumors)))
rownames(cytobandtable)=... | /generate_copynumberheatmap.R | no_license | xwang234/copynumber | R | false | false | 7,873 | r | #!/usr/bin/env Rscript
getwholetable=function(alllessiontable,wgstumors)
{
alllessiontable$Descriptor=gsub(" ","",alllessiontable$Descriptor,fixed=T)
uniq_cytoband=unique(alllessiontable$Descriptor)
cytobandtable=data.frame(matrix(" ",nrow=length(uniq_cytoband),ncol=length(wgstumors)))
rownames(cytobandtable)=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynamodb_operations.R
\name{dynamodb_describe_backup}
\alias{dynamodb_describe_backup}
\title{Describes an existing backup of a table}
\usage{
dynamodb_describe_backup(BackupArn)
}
\arguments{
\item{BackupArn}{[required] The Amazon Resource N... | /cran/paws.database/man/dynamodb_describe_backup.Rd | permissive | TWarczak/paws | R | false | true | 3,238 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynamodb_operations.R
\name{dynamodb_describe_backup}
\alias{dynamodb_describe_backup}
\title{Describes an existing backup of a table}
\usage{
dynamodb_describe_backup(BackupArn)
}
\arguments{
\item{BackupArn}{[required] The Amazon Resource N... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(1.50082067721782e-120, 4.40509449667624e-280, 0, 0), .Dim = c(2L, 2L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615772681-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 228 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(1.50082067721782e-120, 4.40509449667624e-280, 0, 0), .Dim = c(2L, 2L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(result) |
library(ggplot2)
library(dplyr)
library(tidyr)
options(digits = 3, dplyr.print_min = 6, dplyr.print_max = 6)
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
fig.path = paste0("_figures/", chapter, "/"),
fig.show = "hold",
dpi = 300,
cache = TRUE,
cache.path = paste0("_cache/", chapter, "/")
)
is... | /common.R | no_license | jirkalewandowski/ggplot2-book | R | false | false | 2,773 | r | library(ggplot2)
library(dplyr)
library(tidyr)
options(digits = 3, dplyr.print_min = 6, dplyr.print_max = 6)
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
fig.path = paste0("_figures/", chapter, "/"),
fig.show = "hold",
dpi = 300,
cache = TRUE,
cache.path = paste0("_cache/", chapter, "/")
)
is... |
birthweight_naive_model <-
'
f1 =~ 1*birthweight_oz_1 + 1*birthweight_oz_2
birthweight_oz_1 ~ bage*m_age_at_birth_1
birthweight_oz_2 ~ bage*m_age_at_birth_2
m_age_at_birth_1~~f1
m_age_at_birth_2~~f1
m_age_at_birth_1~~m_age_at_birth_2
birthweight_oz_1~~m_age_at_birth_2
'
birthweight_n... | /inst/scripts/birthweight_analysis_051519.R | permissive | clanfear/birthtiming | R | false | false | 658 | r | birthweight_naive_model <-
'
f1 =~ 1*birthweight_oz_1 + 1*birthweight_oz_2
birthweight_oz_1 ~ bage*m_age_at_birth_1
birthweight_oz_2 ~ bage*m_age_at_birth_2
m_age_at_birth_1~~f1
m_age_at_birth_2~~f1
m_age_at_birth_1~~m_age_at_birth_2
birthweight_oz_1~~m_age_at_birth_2
'
birthweight_n... |
library(cornet)
### Name: print.cornet
### Title: Combined regression
### Aliases: print.cornet
### ** Examples
n <- 100; p <- 200
y <- rnorm(n)
X <- matrix(rnorm(n*p),nrow=n,ncol=p)
net <- cornet(y=y,cutoff=0,X=X)
print(net)
| /data/genthat_extracted_code/cornet/examples/print.cornet.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 234 | r | library(cornet)
### Name: print.cornet
### Title: Combined regression
### Aliases: print.cornet
### ** Examples
n <- 100; p <- 200
y <- rnorm(n)
X <- matrix(rnorm(n*p),nrow=n,ncol=p)
net <- cornet(y=y,cutoff=0,X=X)
print(net)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{my_message}
\alias{my_message}
\title{Custom message log level}
\usage{
my_message(..., level = 2)
}
\arguments{
\item{...}{The message(s)}
\item{level}{The severity}
}
\description{
Custom message log level
}
\details{
0 = eve... | /man/my_message.Rd | no_license | bradgwest/googleSheetsR | R | false | true | 383 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{my_message}
\alias{my_message}
\title{Custom message log level}
\usage{
my_message(..., level = 2)
}
\arguments{
\item{...}{The message(s)}
\item{level}{The severity}
}
\description{
Custom message log level
}
\details{
0 = eve... |
#' SSD = sample size determination
#' @details
#' Finds the optimal sample size to achieve desired level of power.
#' @export
#' @importFrom reshape2 melt
# TODO: Add link to proper function name
#' @param BFDA A BFDA simulation object, resulting from the \code{BFDA.sim} function
#' @param criterion The critical bound... | /package/R/4-SSD.R | no_license | guhjy/BFDA | R | false | false | 6,583 | r | #' SSD = sample size determination
#' @details
#' Finds the optimal sample size to achieve desired level of power.
#' @export
#' @importFrom reshape2 melt
# TODO: Add link to proper function name
#' @param BFDA A BFDA simulation object, resulting from the \code{BFDA.sim} function
#' @param criterion The critical bound... |
########################################
## GENERAL PACKAGE DOCUMENTATION PAGE ##
########################################
#' Plotting download numbers from R Studio CRAN Mirror
#'
#' MyFirstPackage is a test package which includes a function to plot the download numbers from the R Studio CRAN Mirror.
#'
#' @refere... | /R/functions.R | no_license | ewouddt/RDownloads | R | false | false | 2,315 | r |
########################################
## GENERAL PACKAGE DOCUMENTATION PAGE ##
########################################
#' Plotting download numbers from R Studio CRAN Mirror
#'
#' MyFirstPackage is a test package which includes a function to plot the download numbers from the R Studio CRAN Mirror.
#'
#' @refere... |
context("specific issue tests")
test_that("dim064 issue is resolved", {
testthat::skip_if_not(R.Version()$arch != "i386", "certain tests disabled on i386")
load(system.file("extdata/badmat.Rda", package = "largeVis"))
badmat <- badmat
expect_silent(neighbors <- randomProjectionTreeSearch(x = badmat, K = 50, threa... | /tests/testthat/testspecific.R | no_license | alexeyantonov/largeVis | R | false | false | 904 | r | context("specific issue tests")
test_that("dim064 issue is resolved", {
testthat::skip_if_not(R.Version()$arch != "i386", "certain tests disabled on i386")
load(system.file("extdata/badmat.Rda", package = "largeVis"))
badmat <- badmat
expect_silent(neighbors <- randomProjectionTreeSearch(x = badmat, K = 50, threa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DatabaseTSD.R
\docType{data}
\encoding{UTF-8}
\name{DatabaseTSD}
\alias{DatabaseTSD}
\title{Database of TSD information for reptiles}
\format{
A dataframe with raw data.
}
\usage{
DatabaseTSD
}
\description{
Database of TSD information for re... | /man/DatabaseTSD.Rd | no_license | cran/embryogrowth | R | false | true | 3,859 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DatabaseTSD.R
\docType{data}
\encoding{UTF-8}
\name{DatabaseTSD}
\alias{DatabaseTSD}
\title{Database of TSD information for reptiles}
\format{
A dataframe with raw data.
}
\usage{
DatabaseTSD
}
\description{
Database of TSD information for re... |
## This function creates a special "matrix" object that can cache its inverse
## This function computes the inverse of the special "matrix" returned by makeCacheMatrix above.
## If the inverse has already been calculated (and the matrix has not changed),
## then the cachesolve should retrieve the inverse from the cach
... | /cachematrix.R | no_license | Orzhiang/ProgrammingAssignment2 | R | false | false | 868 | r | ## This function creates a special "matrix" object that can cache its inverse
## This function computes the inverse of the special "matrix" returned by makeCacheMatrix above.
## If the inverse has already been calculated (and the matrix has not changed),
## then the cachesolve should retrieve the inverse from the cach
... |
# Model of log(ADS minutes per hour):
# Available predictors:
# agem.c
# chi_gender
# adu_gender_m
# mat_ed_num3
# mother_dob
# number_older_sibs
# Notes:
# In what follows I'll only report model outcomes for models that
# significatly improve upon base/previous models
# I will also avoid putting the known correlated... | /Paper/JournalManuscript/subscripts/x_not-used_or_incomplete/logged/MOD-ADS-logMinPH.R | no_license | marisacasillas/NorthAmericanChildren-ADSvsCDS | R | false | false | 11,859 | r | # Model of log(ADS minutes per hour):
# Available predictors:
# agem.c
# chi_gender
# adu_gender_m
# mat_ed_num3
# mother_dob
# number_older_sibs
# Notes:
# In what follows I'll only report model outcomes for models that
# significatly improve upon base/previous models
# I will also avoid putting the known correlated... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function() x
setmatrix<-function(solve) m<<- solve ## Solve Creates Invers... | /cachematrix.R | no_license | kgvinay/ProgrammingAssignment2 | R | false | false | 832 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function() x
setmatrix<-function(solve) m<<- solve ## Solve Creates Invers... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colitis.R
\docType{data}
\name{colitis}
\alias{colitis}
\title{Ulcerative Colitis.}
\format{A data frame with 4 rows and 3 variables:
\describe{
\item{study}{study}
\item{n}{study size}
\item{r}{number of events}
}}
\usage{
colitis
}
\d... | /fuzzedpackages/RBesT/man/colitis.Rd | no_license | akhikolla/testpackages | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colitis.R
\docType{data}
\name{colitis}
\alias{colitis}
\title{Ulcerative Colitis.}
\format{A data frame with 4 rows and 3 variables:
\describe{
\item{study}{study}
\item{n}{study size}
\item{r}{number of events}
}}
\usage{
colitis
}
\d... |
########## BOOTSTRAPPING MIT BOOT PACKAGE
library(boot)
## Normales Bootstrapping
# zweites Argument muss index für boot funktion sein
boot.mean <- function(data,index){
sub <- data[index]
return(mean(sub))
}
boot.obj <-boot(0:10,boot.mean,1000) # => Mean: 5, std.error = 0.95
boot.obj
hist(boot.obj$t)
quantile(... | /Bootstrapping - Boot.R | no_license | dschradick/R-Toolbox | R | false | false | 734 | r | ########## BOOTSTRAPPING MIT BOOT PACKAGE
library(boot)
## Normales Bootstrapping
# zweites Argument muss index für boot funktion sein
boot.mean <- function(data,index){
sub <- data[index]
return(mean(sub))
}
boot.obj <-boot(0:10,boot.mean,1000) # => Mean: 5, std.error = 0.95
boot.obj
hist(boot.obj$t)
quantile(... |
#!/usr/bin/Rscript
args <- commandArgs(TRUE)
#R_LIBS='/home/utkarsh/R/x86_64-pc-linux-gnu-library/2.15'
#library()
library('igraph')
n=as.numeric(args[2])
#print("boom")
#print(args[1])
#print("boo")
#print(args[2])
G=read.graph(args[1], format="edgelist", n=as.numeric(args[2]), directed=FALSE)
a=label.propagation.com... | /R_thingsv2/stuff/R_scripts/LabelPropogation.r | no_license | utkarshg93/superbatcat | R | false | false | 423 | r | #!/usr/bin/Rscript
args <- commandArgs(TRUE)
#R_LIBS='/home/utkarsh/R/x86_64-pc-linux-gnu-library/2.15'
#library()
library('igraph')
n=as.numeric(args[2])
#print("boom")
#print(args[1])
#print("boo")
#print(args[2])
G=read.graph(args[1], format="edgelist", n=as.numeric(args[2]), directed=FALSE)
a=label.propagation.com... |
#' Phytoplankton_acoustic_data
#'
#' Data obtained by taking laboratory measurements of ultrasonic acoustic signals:
#' a pulse is emitted by a transducer, this pulse interacts with phytoplankton
#' suspended in the water and produces an acoustic dispersion (scattering),
#' which is recorded by an electronic acquis... | /R/phytoplankton_acoustic_data.R | no_license | cran/RMBC | R | false | false | 2,963 | r | #' Phytoplankton_acoustic_data
#'
#' Data obtained by taking laboratory measurements of ultrasonic acoustic signals:
#' a pulse is emitted by a transducer, this pulse interacts with phytoplankton
#' suspended in the water and produces an acoustic dispersion (scattering),
#' which is recorded by an electronic acquis... |
rankhospital <- function(state, outcome, rank = "best"){
## Read outcome data
data <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
fd <- as.data.frame(cbind(data[, 2], # hospital
data[, 7], # state
data[, 11], # heart attack
... | /Week-4/Programming Assignment 3/rankhospital.R | permissive | JohamSMC/R-Programming-Course | R | false | false | 1,817 | r | rankhospital <- function(state, outcome, rank = "best"){
## Read outcome data
data <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
fd <- as.data.frame(cbind(data[, 2], # hospital
data[, 7], # state
data[, 11], # heart attack
... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% NonPairedPSCNData.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{NonPairedPSCNDat... | /man/NonPairedPSCNData.Rd | no_license | HenrikBengtsson/aroma.core | R | false | false | 6,129 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% NonPairedPSCNData.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{NonPairedPSCNDat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nicepairs.R
\name{nicepairs}
\alias{nicepairs}
\title{FUNCTION_TITLE}
\usage{
nicepairs(
x,
punktcol = grDevices::rgb(0, 0, 0, 0.3),
punktform = 4,
punktgroesse = NULL,
cortype = "spearman",
smoothness = 0.95,
...
)
}
\arguments... | /man/nicepairs.Rd | no_license | holgerman/toolboxH | R | false | true | 817 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nicepairs.R
\name{nicepairs}
\alias{nicepairs}
\title{FUNCTION_TITLE}
\usage{
nicepairs(
x,
punktcol = grDevices::rgb(0, 0, 0, 0.3),
punktform = 4,
punktgroesse = NULL,
cortype = "spearman",
smoothness = 0.95,
...
)
}
\arguments... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kmeans_SDP_matrix.R
\name{gforce.kmeans_SDP_matrix}
\alias{gforce.kmeans_SDP_matrix}
\title{K-means SDP Matrices.}
\usage{
gforce.kmeans_SDP_matrix(D, K)
}
\arguments{
\item{D}{\eqn{d \times d} numeric matrix.}
\item{K}{number of clusters.}
... | /man/gforce.kmeans_SDP_matrix.Rd | no_license | cran/GFORCE | R | false | true | 422 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kmeans_SDP_matrix.R
\name{gforce.kmeans_SDP_matrix}
\alias{gforce.kmeans_SDP_matrix}
\title{K-means SDP Matrices.}
\usage{
gforce.kmeans_SDP_matrix(D, K)
}
\arguments{
\item{D}{\eqn{d \times d} numeric matrix.}
\item{K}{number of clusters.}
... |
ui <- basicPage(
plotOutput("plot1", width = 400,
brush = "plot_brush"
),
verbatimTextOutput("info")
)
server <- function(input, output) {
output$plot1 <- renderPlot({
ggplot(mtcars, aes(wt, mpg)) + geom_point()
})
output$info <- renderPrint({
rows <- brushedPoints(mtcars, input$plot_brush)
... | /16-Interactive-graphics/08-brushing.R | permissive | garrettgman/webinars | R | false | false | 392 | r | ui <- basicPage(
plotOutput("plot1", width = 400,
brush = "plot_brush"
),
verbatimTextOutput("info")
)
server <- function(input, output) {
output$plot1 <- renderPlot({
ggplot(mtcars, aes(wt, mpg)) + geom_point()
})
output$info <- renderPrint({
rows <- brushedPoints(mtcars, input$plot_brush)
... |
library(dplyr)
library(ggplot2)
library(nycflights13)
library(tidyverse)
library(mice)
library(reshape2)
library(magrittr)
#missing values
md.pattern(flights)
new_flights <- flights %>%
drop_na(dep_time) %>%
drop_na(arr_time)
new_flights <- new_flights %>%
mutate(
arr_delay = ifelse(is.na(arr_delay), ar... | /data.R | no_license | zhanglei592/shinydashboard | R | false | false | 13,750 | r | library(dplyr)
library(ggplot2)
library(nycflights13)
library(tidyverse)
library(mice)
library(reshape2)
library(magrittr)
#missing values
md.pattern(flights)
new_flights <- flights %>%
drop_na(dep_time) %>%
drop_na(arr_time)
new_flights <- new_flights %>%
mutate(
arr_delay = ifelse(is.na(arr_delay), ar... |
getwd()
location <- getwd()
setwd(location)
library(dslabs)
library(tidyverse)
library(dplyr)
library(ggplot2)
# Add libary for map
library(ggmap)
library(ggalt)
crimesDataset <- read.csv("crime.csv", na.strings = c(""))
head(crimesDataset)
str(crimesDataset)
# Has NA?
crimesDataset[!complete.cases(crimesDataset... | /class-puc/05-exe/exe.R | no_license | erickaugustor/data-mining-study | R | false | false | 5,624 | r | getwd()
location <- getwd()
setwd(location)
library(dslabs)
library(tidyverse)
library(dplyr)
library(ggplot2)
# Add libary for map
library(ggmap)
library(ggalt)
crimesDataset <- read.csv("crime.csv", na.strings = c(""))
head(crimesDataset)
str(crimesDataset)
# Has NA?
crimesDataset[!complete.cases(crimesDataset... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gpdmd.R
\name{gpd.md}
\alias{gpd.md}
\title{Minimizing the distance between the empirical tail and a theoretical Pareto tail with respect to k.}
\usage{
gpd.md(data, ts = 0.15, method = "mad")
}
\arguments{
\item{data}{vector of sample data}
... | /man/gpd.md.Rd | no_license | K-Molloy/tevt | R | false | true | 2,216 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gpdmd.R
\name{gpd.md}
\alias{gpd.md}
\title{Minimizing the distance between the empirical tail and a theoretical Pareto tail with respect to k.}
\usage{
gpd.md(data, ts = 0.15, method = "mad")
}
\arguments{
\item{data}{vector of sample data}
... |
# PaRE3To-Projekt
# 1. Herunterladen der Daten ----------------------------------------------
### Daten 2016
Wirkungsdaten_2015unbereinigt <- read_excel("./ANALYSIS/DATA/CHILDREN Wirkungsdaten_VERTRAULICH_final.xlsx",
sheet = "2016")
# Löschen von Spalten ohne Inhalt
Wirkungsdaten_... | /ANALYSIS/DATA/Data 2015.R | no_license | rafael-schuetz/Pareto | R | false | false | 3,291 | r | # PaRE3To-Projekt
# 1. Herunterladen der Daten ----------------------------------------------
### Daten 2016
Wirkungsdaten_2015unbereinigt <- read_excel("./ANALYSIS/DATA/CHILDREN Wirkungsdaten_VERTRAULICH_final.xlsx",
sheet = "2016")
# Löschen von Spalten ohne Inhalt
Wirkungsdaten_... |
graficar<-function(i){
jpeg(paste("prediccion",i,".jpeg",sep=""))
p <- read.csv(paste('/home/gabina/Facultad/Machine Learning/TP3/Ejercicio 4/Espirales Anidadas/EspiralesAnidadas/espirales',i,'.predic',sep=""))
plot(p[,1], p[,2],col=p[,3]+2)
dev.off()
return ()
}
for(i in 1:16){
graficar(i)
}
jpeg("... | /TP3/Ejercicio 4/Espirales Anidadas/graficar.R | no_license | gabina/Machine-Learning | R | false | false | 960 | r | graficar<-function(i){
jpeg(paste("prediccion",i,".jpeg",sep=""))
p <- read.csv(paste('/home/gabina/Facultad/Machine Learning/TP3/Ejercicio 4/Espirales Anidadas/EspiralesAnidadas/espirales',i,'.predic',sep=""))
plot(p[,1], p[,2],col=p[,3]+2)
dev.off()
return ()
}
for(i in 1:16){
graficar(i)
}
jpeg("... |
#summary Method
setMethod("summary",
signature(object = "MixMAP"),
function (object, ...)
{
#Print the number of genes detected and the total number of genes considered
cat(paste0("\nNumber of Genes Detected: ",object@num.genes.detected[1],"\n"))
cat(paste0("Total N... | /MixMAP/R/summary.MixMAP.R | no_license | ingted/R-Examples | R | false | false | 933 | r | #summary Method
setMethod("summary",
signature(object = "MixMAP"),
function (object, ...)
{
#Print the number of genes detected and the total number of genes considered
cat(paste0("\nNumber of Genes Detected: ",object@num.genes.detected[1],"\n"))
cat(paste0("Total N... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bandDescription.R
\name{bandDescription}
\alias{bandDescription}
\title{bandDescription}
\usage{
bandDescription(sequenceIdentifier = NULL, highWavelength = NULL,
lowWaveLength = NULL, waveLengthUnits = NULL, peakResponse = NULL)
}
\argumen... | /man/bandDescription.Rd | permissive | cboettig/build.eml | R | false | true | 1,169 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bandDescription.R
\name{bandDescription}
\alias{bandDescription}
\title{bandDescription}
\usage{
bandDescription(sequenceIdentifier = NULL, highWavelength = NULL,
lowWaveLength = NULL, waveLengthUnits = NULL, peakResponse = NULL)
}
\argumen... |
library(multiMiR)
library(tidyverse)
rm(list = ls())
setwd("C:/Users/zhuliu/Desktop/miRNA/s5miRNA_TargetPredict/s1_wb_miRNA_targets_multiMiR")
allkme_miR <- read_tsv("wb_allmiRNA_TPM_SignedKME.txt")
mir100 <- allkme_miR %>% column_to_rownames(var="ID")
mir100_target <- rownames(mir100)
# Plug miRNA's into multiM... | /s3_multiMiR_predicted_targets.R | no_license | Zhuang-Bio/miRNAprofiling | R | false | false | 4,040 | r | library(multiMiR)
library(tidyverse)
rm(list = ls())
setwd("C:/Users/zhuliu/Desktop/miRNA/s5miRNA_TargetPredict/s1_wb_miRNA_targets_multiMiR")
allkme_miR <- read_tsv("wb_allmiRNA_TPM_SignedKME.txt")
mir100 <- allkme_miR %>% column_to_rownames(var="ID")
mir100_target <- rownames(mir100)
# Plug miRNA's into multiM... |
if (require("maps")) {
states <- map_data("state")
arrests <- USArrests
names(arrests) <- tolower(names(arrests))
arrests$region <- tolower(rownames(USArrests))
choro <- merge(states, arrests, sort = FALSE, by = "region")
choro <- choro[order(choro$order), ]
qplot(long, lat, data = choro, group = group, fill = assault... | /Part07_maps/choropleth.R | no_license | DublinR/ggplot2workshop | R | false | false | 435 | r | if (require("maps")) {
states <- map_data("state")
arrests <- USArrests
names(arrests) <- tolower(names(arrests))
arrests$region <- tolower(rownames(USArrests))
choro <- merge(states, arrests, sort = FALSE, by = "region")
choro <- choro[order(choro$order), ]
qplot(long, lat, data = choro, group = group, fill = assault... |
################################################################################
# File-Name: topic_modelling.R
# Date: 17 March 2016
# Author: Sara J Kerr
# ORCID:orcid.org/0000-0002-2322-1178
# Purpose:
# Based on: Mimno Mallet and Matthew Jockers
# Data Used:
# Stoplist: none
# Packages Used:
# Input: plain text... | /Code/topic_modelling.R | no_license | WeaselMicu/Pilot_Study | R | false | false | 2,732 | r | ################################################################################
# File-Name: topic_modelling.R
# Date: 17 March 2016
# Author: Sara J Kerr
# ORCID:orcid.org/0000-0002-2322-1178
# Purpose:
# Based on: Mimno Mallet and Matthew Jockers
# Data Used:
# Stoplist: none
# Packages Used:
# Input: plain text... |
##function value for linear regression augmented lagrangian
# fun_lm_AL <- function(wts, gammatr_Xtr_R, Xtr_R, dual_step) {
# -sum(log(wts)) + gammatr_Xtr_R %*% wts + .5 * dual_step * sum((Xtr_R %*% wts)^2)
# }
fun_lm_AL2 <- function(wts, gamma, X, R, dual_step) {
Xtr_R <- t(R * X)
-sum(log(wts)) + as.vector(gamm... | /mirror_descent.R | no_license | huwang3134/CEL | R | false | false | 6,255 | r | ##function value for linear regression augmented lagrangian
# fun_lm_AL <- function(wts, gammatr_Xtr_R, Xtr_R, dual_step) {
# -sum(log(wts)) + gammatr_Xtr_R %*% wts + .5 * dual_step * sum((Xtr_R %*% wts)^2)
# }
fun_lm_AL2 <- function(wts, gamma, X, R, dual_step) {
Xtr_R <- t(R * X)
-sum(log(wts)) + as.vector(gamm... |
# Pakete
library("sp")
library(rgdal)
library(maptools)
library(RColorBrewer)
library(classInt)
library(ggplot2)
library(plyr)
# DATENAUFBEREITUNG
# Laden der Gartenadressen als .csv
adressen <- read.csv(file="Gartenadressen.csv",head=TRUE,sep=",")
# Datensatzbereinigung
ad... | /gartenkarte.r | permissive | gartenkarte/helper-scripts | R | false | false | 1,685 | r | # Pakete
library("sp")
library(rgdal)
library(maptools)
library(RColorBrewer)
library(classInt)
library(ggplot2)
library(plyr)
# DATENAUFBEREITUNG
# Laden der Gartenadressen als .csv
adressen <- read.csv(file="Gartenadressen.csv",head=TRUE,sep=",")
# Datensatzbereinigung
ad... |
library(glmnet)
library(caTools)
library(nnet)
probe <- read.csv("blend.probe.csv")
test <- read.csv("blend.test.csv")
make.X.matrix <- function(inData) {
outData <- data.frame(
inData$bsvd.Pred,
log(inData$AdamicAdar+1),
log(inData$AdamicAdarNeighborsNeighbors... | /SocialNetwork/blend/blend.NN.R | no_license | chrishefele/kaggle-sample-code | R | false | false | 1,702 | r | library(glmnet)
library(caTools)
library(nnet)
probe <- read.csv("blend.probe.csv")
test <- read.csv("blend.test.csv")
make.X.matrix <- function(inData) {
outData <- data.frame(
inData$bsvd.Pred,
log(inData$AdamicAdar+1),
log(inData$AdamicAdarNeighborsNeighbors... |
#' @title Target resources: `future` high-performance computing
#' @export
#' @family resources
#' @description Create the `future` argument of `tar_resources()`
#' to specify optional high-performance computing settings
#' for `tar_make_future()`.
#' This is how to supply the `resources`
#' argument of `future... | /R/tar_resources_future.R | permissive | jmbuhr/targets | R | false | false | 1,327 | r | #' @title Target resources: `future` high-performance computing
#' @export
#' @family resources
#' @description Create the `future` argument of `tar_resources()`
#' to specify optional high-performance computing settings
#' for `tar_make_future()`.
#' This is how to supply the `resources`
#' argument of `future... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | /r/R/duckdb.R | permissive | terencehonles/arrow | R | false | false | 5,889 | r | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
#' @title Input data import function (from an xml file)
#' @usage read.ecopath.model(filename)
#' @description This function loads input data from an xml file created by the user, or exported from the EwE EcoTroph plug-in, or from a web service associated to a database populated with parameters of several EwE models.... | /R/read.ecopath.model.R | no_license | cran/EcoTroph | R | false | false | 2,068 | r | #' @title Input data import function (from an xml file)
#' @usage read.ecopath.model(filename)
#' @description This function loads input data from an xml file created by the user, or exported from the EwE EcoTroph plug-in, or from a web service associated to a database populated with parameters of several EwE models.... |
# Copyright (c) 2021 ISciences, LLC.
# All rights reserved.
#
# WSIM is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicab... | /wsim.lsm/R/adjust_flow_dirs.R | permissive | isciences/wsim | R | false | false | 3,552 | r | # Copyright (c) 2021 ISciences, LLC.
# All rights reserved.
#
# WSIM is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicab... |
## Example R script for Biostats 2018 GitHub Repo
## Create X and Y vectors
x <- seq(1,10, 0.5)
y <- seq(11,20, 0.5)
## Plot these
plot(x, y)
function()
c()
"STUFF"
| /example.r | no_license | lundquistlab/biostats-2018 | R | false | false | 172 | r | ## Example R script for Biostats 2018 GitHub Repo
## Create X and Y vectors
x <- seq(1,10, 0.5)
y <- seq(11,20, 0.5)
## Plot these
plot(x, y)
function()
c()
"STUFF"
|
# Now we have a dataframe md3 which is birthday ordered, discharge date ordered all observation.
# dim(md3) 17438660 48
# We have a unique character list lspidunic length # 246163, 15mb, we want susetting a md5 that don't have the patient ID that is in the list
# According to my manual sampling, about 10% of the ... | /docs/Subsettingdata102816.R | no_license | xiehanding/Heart-Failure-Readmission | R | false | false | 1,063 | r | # Now we have a dataframe md3 which is birthday ordered, discharge date ordered all observation.
# dim(md3) 17438660 48
# We have a unique character list lspidunic length # 246163, 15mb, we want susetting a md5 that don't have the patient ID that is in the list
# According to my manual sampling, about 10% of the ... |
library(tm)
library(topicmodels)
# Ingest corpus
f <- "ngrams_df.csv"
data <- read.csv((f), header = TRUE)
cols <- c("doc_id", "text")
data <- data[cols]
# Convert to document-term matrix
corp <- Corpus(DataframeSource(data))
dtm <- DocumentTermMatrix(corp)
seed <- 10683 # first random seed from random.org
# Train ... | /code/train_topic_models.R | permissive | sheridanstewart/formally_comparing_topics_and_codes | R | false | false | 3,609 | r | library(tm)
library(topicmodels)
# Ingest corpus
f <- "ngrams_df.csv"
data <- read.csv((f), header = TRUE)
cols <- c("doc_id", "text")
data <- data[cols]
# Convert to document-term matrix
corp <- Corpus(DataframeSource(data))
dtm <- DocumentTermMatrix(corp)
seed <- 10683 # first random seed from random.org
# Train ... |
plot(finalData$SetTime, finalData$Global_active_power, type="l", col="black", xlab="", ylab="Global Active Power (kilowatts)")
| /plot2.R | no_license | LunaSeattle/ExData_Plotting1 | R | false | false | 127 | r | plot(finalData$SetTime, finalData$Global_active_power, type="l", col="black", xlab="", ylab="Global Active Power (kilowatts)")
|
####final model
## this R script uses linear models to test against other matrices
x94 ~ 0+x3+x5+x6+x12+x20+x27+x40+x44+x47+x51+x55+x56+x73+x82 #belongs to hypo7
#### try on matrix 5 for reactor A ######################################################
set.seed(100) # setting seed to reproduce results of random sa... | /modelling/testing.R | no_license | magnumhell/analytics_watertreatment | R | false | false | 10,935 | r |
####final model
## this R script uses linear models to test against other matrices
x94 ~ 0+x3+x5+x6+x12+x20+x27+x40+x44+x47+x51+x55+x56+x73+x82 #belongs to hypo7
#### try on matrix 5 for reactor A ######################################################
set.seed(100) # setting seed to reproduce results of random sa... |
kc.grades<-c(0:2,5:8)
kc.schools<-c("KIPP Create Middle School", "KIPP Ascend Middle School", "KIPP Ascend Primary School", "KIPP Network", "National Norm")
MAP.KIPP.Network.1213[,Perc_Growth:=as.numeric(gsub("(\\d+)%", "\\1", Perc_Growth))]
MAP.KIPP.Network.1213[, Col:=School_Display_Name %in% kc.schools]
MAP.KIP... | /School_Leader_Reflections/munge/3.5-Prep_Foundation_data.R | no_license | kippchicago/Data_Analysis | R | false | false | 460 | r | kc.grades<-c(0:2,5:8)
kc.schools<-c("KIPP Create Middle School", "KIPP Ascend Middle School", "KIPP Ascend Primary School", "KIPP Network", "National Norm")
MAP.KIPP.Network.1213[,Perc_Growth:=as.numeric(gsub("(\\d+)%", "\\1", Perc_Growth))]
MAP.KIPP.Network.1213[, Col:=School_Display_Name %in% kc.schools]
MAP.KIP... |
context("tuneMBO")
# FIXME remove if mbo is on cran
if (interactive()) {
test_that("tuneMBO", {
requirePackages("!mlrMBO")
res = makeResampleDesc("Holdout")
ps = makeParamSet(
makeNumericParam("cp", lower = 0, upper = 1),
makeIntegerParam("minsplit", lower = 1, upper = 20)
)
n1 = 10; n2 = 2;
mbo... | /tests/testthat/test_tune_tuneMBO.R | no_license | dickoa/mlr | R | false | false | 1,552 | r | context("tuneMBO")
# FIXME remove if mbo is on cran
if (interactive()) {
test_that("tuneMBO", {
requirePackages("!mlrMBO")
res = makeResampleDesc("Holdout")
ps = makeParamSet(
makeNumericParam("cp", lower = 0, upper = 1),
makeIntegerParam("minsplit", lower = 1, upper = 20)
)
n1 = 10; n2 = 2;
mbo... |
library(tidyverse)
library(readxl)
library(data.table)
Bru_miR <- read_excel("~/King's BRC DTP Work/Rotation 3/data/Bruneck_data_for_timir/bruneck2000/Bruneck 2000 Plasma cel normalisation.xlsx", skip = 10)
Bru_Agilent <- read_excel("~/King's BRC DTP Work/Rotation 3/data/Bruneck_data_for_timir/bruneck2000/Bruneck 2000... | /code/2000_Biomarker_DataCur.R | no_license | tweston10/Rotation3_2019_miRNA_omics | R | false | false | 10,269 | r | library(tidyverse)
library(readxl)
library(data.table)
Bru_miR <- read_excel("~/King's BRC DTP Work/Rotation 3/data/Bruneck_data_for_timir/bruneck2000/Bruneck 2000 Plasma cel normalisation.xlsx", skip = 10)
Bru_Agilent <- read_excel("~/King's BRC DTP Work/Rotation 3/data/Bruneck_data_for_timir/bruneck2000/Bruneck 2000... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/R_class_BOWL.R
\docType{class}
\name{BOWL-class}
\alias{BOWL-class}
\title{Class \code{BOWL}}
\description{
Class \code{BOWL} contains results from a single step of BOWL algorithm.
}
\section{Slots}{
\describe{
\item{\code{step}}{Integer ind... | /man/BOWL-class.Rd | no_license | cran/DynTxRegime | R | false | true | 1,288 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/R_class_BOWL.R
\docType{class}
\name{BOWL-class}
\alias{BOWL-class}
\title{Class \code{BOWL}}
\description{
Class \code{BOWL} contains results from a single step of BOWL algorithm.
}
\section{Slots}{
\describe{
\item{\code{step}}{Integer ind... |
#' Freeqdist Function fit gor a given data
#'
#' @param x vector whose frequency disribution is required
#' @param ci number of class intervals
#'
#' @return none
#' @keywords freqdist
#' @export
#' @examples
#' freqdist()
freqdist<-function(x,ci) {
var <- as.matrix(x)
mn<-min(var)
mx<-max(var)
ll<- plyr::round_any(mn... | /R/bstat.R | no_license | krishnad2/bstat | R | false | false | 2,074 | r | #' Freeqdist Function fit gor a given data
#'
#' @param x vector whose frequency disribution is required
#' @param ci number of class intervals
#'
#' @return none
#' @keywords freqdist
#' @export
#' @examples
#' freqdist()
freqdist<-function(x,ci) {
var <- as.matrix(x)
mn<-min(var)
mx<-max(var)
ll<- plyr::round_any(mn... |
library(hutils)
### Name: haversine_distance
### Title: Distance between two points on the Earth
### Aliases: haversine_distance
### ** Examples
# Distance from YMEL to YSSY
haversine_distance(-37 - 40/60, 144 + 50/60, -33 - 56/60, 151 + 10/60)
| /data/genthat_extracted_code/hutils/examples/haversine_distance.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 254 | r | library(hutils)
### Name: haversine_distance
### Title: Distance between two points on the Earth
### Aliases: haversine_distance
### ** Examples
# Distance from YMEL to YSSY
haversine_distance(-37 - 40/60, 144 + 50/60, -33 - 56/60, 151 + 10/60)
|
library(pGPx)
### Name: grad_kweights
### Title: Gradient of the weights for interpolating simulations
### Aliases: grad_kweights
### ** Examples
######################################################################
### Compute the weights and gradient on a 2d example
if (!requireNamespace("DiceKriging", quietly =... | /data/genthat_extracted_code/pGPx/examples/grad_kweights.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,479 | r | library(pGPx)
### Name: grad_kweights
### Title: Gradient of the weights for interpolating simulations
### Aliases: grad_kweights
### ** Examples
######################################################################
### Compute the weights and gradient on a 2d example
if (!requireNamespace("DiceKriging", quietly =... |
library(readr)
library(dplyr)
library(stringr)
als <- read_delim(
"https://web.stanford.edu/~hastie/CASI_files/DATA/ALS.txt",
delim = " "
)
devtools::use_data(als)
als2 <- als
# How to remove trailing underscores from column names
# practice regex...
names(als2) <- tolower(names(als2)) %>%
str_replace_all("... | /data-raw/als.R | no_license | davechilders/casi | R | false | false | 425 | r | library(readr)
library(dplyr)
library(stringr)
als <- read_delim(
"https://web.stanford.edu/~hastie/CASI_files/DATA/ALS.txt",
delim = " "
)
devtools::use_data(als)
als2 <- als
# How to remove trailing underscores from column names
# practice regex...
names(als2) <- tolower(names(als2)) %>%
str_replace_all("... |
#' Impute missing observations using the maximum deviation method.
#'
#' @author Frankie Cho
#'
#' @description Imputes the missing values of a list of matrices produced by `ahp.mat` using the maximum deviation method. Missing values must be coded as `NA`. A minimum of n-1 comparisons must be made, where n is the numbe... | /R/ahp_missing.R | permissive | frankiecho/ahpsurvey | R | false | false | 4,937 | r | #' Impute missing observations using the maximum deviation method.
#'
#' @author Frankie Cho
#'
#' @description Imputes the missing values of a list of matrices produced by `ahp.mat` using the maximum deviation method. Missing values must be coded as `NA`. A minimum of n-1 comparisons must be made, where n is the numbe... |
rm(list = ls()); # Clear environment.
build.local <- function(name)
{
setwd(paste("./", name, sep = ""));
devtools::document();
setwd("..");
devtools::install(name);
}
# https://github.com/dgJacks0n/envDocument/blob/master/envDocument/R/getScriptPath.R
current_path <- as.character(sys.call(1))[2];
current_... | /src/build.R | permissive | ropufu/aftermath-r | R | false | false | 419 | r |
rm(list = ls()); # Clear environment.
build.local <- function(name)
{
setwd(paste("./", name, sep = ""));
devtools::document();
setwd("..");
devtools::install(name);
}
# https://github.com/dgJacks0n/envDocument/blob/master/envDocument/R/getScriptPath.R
current_path <- as.character(sys.call(1))[2];
current_... |
#' drgplot
#'
#'The function drgplot makes a boxplot for either the average Medicare payments, the average total payment, or the average covered charges by DRG code.
#'
#' @param df a dataframe, use the dataset in the package drgdata2
#' @param a a string name for the payment variable in the datafram. Choose from ... | /R/DataScienceLab2.R | no_license | yoz2009/DataScienceLab2 | R | false | false | 2,459 | r | #' drgplot
#'
#'The function drgplot makes a boxplot for either the average Medicare payments, the average total payment, or the average covered charges by DRG code.
#'
#' @param df a dataframe, use the dataset in the package drgdata2
#' @param a a string name for the payment variable in the datafram. Choose from ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/company_hierarchy.R
\name{mark_ego_graph}
\alias{mark_ego_graph}
\title{Function earmark the companies in the neighbourhood of a company, this neighbourhood is sometimes
called [ego graphs](http://mathworld.wolfram.com/NeighborhoodGraph.html)... | /man/mark_ego_graph.Rd | no_license | mark-me/graydon.package | R | false | true | 1,331 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/company_hierarchy.R
\name{mark_ego_graph}
\alias{mark_ego_graph}
\title{Function earmark the companies in the neighbourhood of a company, this neighbourhood is sometimes
called [ego graphs](http://mathworld.wolfram.com/NeighborhoodGraph.html)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guardduty_operations.R
\name{guardduty_list_findings}
\alias{guardduty_list_findings}
\title{Lists Amazon GuardDuty findings for the specified detector ID}
\usage{
guardduty_list_findings(DetectorId, FindingCriteria, SortCriteria,
MaxResult... | /cran/paws.security.identity/man/guardduty_list_findings.Rd | permissive | peoplecure/paws | R | false | true | 1,875 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guardduty_operations.R
\name{guardduty_list_findings}
\alias{guardduty_list_findings}
\title{Lists Amazon GuardDuty findings for the specified detector ID}
\usage{
guardduty_list_findings(DetectorId, FindingCriteria, SortCriteria,
MaxResult... |
path <- system.file("testScripts/R", package="aroma.affymetrix");
pathname <- file.path(path, "downloadUtils.R");
source(pathname);
verbose && enter(verbose, "Downloading raw data");
##########################################################################
# Data set:
# HapMap,CEU,testset/
# Mapping50K_... | /aroma.affymetrix/inst/testScripts/system/chipTypes/Mapping50K_Hind240,Xba240/01b.downloadRawData.R | no_license | ingted/R-Examples | R | false | false | 1,904 | r | path <- system.file("testScripts/R", package="aroma.affymetrix");
pathname <- file.path(path, "downloadUtils.R");
source(pathname);
verbose && enter(verbose, "Downloading raw data");
##########################################################################
# Data set:
# HapMap,CEU,testset/
# Mapping50K_... |
#' Dispays history of hugo investigation.
#'
#' Each usage of any hugo function adds an entry about it to a hidden variable in hugo environment
#' which contains the whole history of your investigation.
#' hugo_show_history(), displays all the entries with additions of paths to files created by functions hugo_memo... | /R/hugo_show_history.R | no_license | hugo4r/hugo | R | false | false | 4,077 | r | #' Dispays history of hugo investigation.
#'
#' Each usage of any hugo function adds an entry about it to a hidden variable in hugo environment
#' which contains the whole history of your investigation.
#' hugo_show_history(), displays all the entries with additions of paths to files created by functions hugo_memo... |
# A collection of generic, public functions for making calls to the Synapse Rest API
#
# Note: As a convenience, if the 'body' of POST or PUT extends SimplePropertyOwner,
# we convert it to a list before passing it on.
#
# Author: brucehoff
#############################################################################... | /R/SynRest.R | no_license | brian-bot/rSynapseClient | R | false | false | 1,378 | r | # A collection of generic, public functions for making calls to the Synapse Rest API
#
# Note: As a convenience, if the 'body' of POST or PUT extends SimplePropertyOwner,
# we convert it to a list before passing it on.
#
# Author: brucehoff
#############################################################################... |
library(dplyr)
##downloaded file from assignment page "Data for Peer Assessment [29Mb]" to directory below
setwd("C:/Users/jb/Documents/Analytics course/coursera Exploratory Data Analysis/project 2/data")
NEI <- tbl_df(readRDS("summarySCC_PM25.rds"))
SCC <- tbl_df(readRDS("Source_Classification_Code.rds"))
# Have ... | /plot2.r | no_license | jschroeder23/Exploratory-Data-Analysis-proj-2 | R | false | false | 1,012 | r | library(dplyr)
##downloaded file from assignment page "Data for Peer Assessment [29Mb]" to directory below
setwd("C:/Users/jb/Documents/Analytics course/coursera Exploratory Data Analysis/project 2/data")
NEI <- tbl_df(readRDS("summarySCC_PM25.rds"))
SCC <- tbl_df(readRDS("Source_Classification_Code.rds"))
# Have ... |
#' Consolidate model settings to a complete caret model specification
#'
#' Consolidate model (and model training) settings from shared and model specific
#' settings to one complete caret model specification. In case there is an overlap
#' between the two, the model specific settings will apply.
#'
#' @param sha... | /R/consolidate_model.R | no_license | cran/modelgrid | R | false | false | 2,201 | r | #' Consolidate model settings to a complete caret model specification
#'
#' Consolidate model (and model training) settings from shared and model specific
#' settings to one complete caret model specification. In case there is an overlap
#' between the two, the model specific settings will apply.
#'
#' @param sha... |
#' @title Enrich a data.frame by adding frequently used CRF attributes
#' @description The CRF attributes which are implemented in this function
#' are merely the neighbouring information of a certain field.
#' For example the previous word, the next word, the combination of the previous 2 words.
#' This function \... | /R/feature_engineering.R | permissive | ariff118/crfsuite | R | false | false | 6,634 | r |
#' @title Enrich a data.frame by adding frequently used CRF attributes
#' @description The CRF attributes which are implemented in this function
#' are merely the neighbouring information of a certain field.
#' For example the previous word, the next word, the combination of the previous 2 words.
#' This function \... |
#' @title Scores transcripts with position weight matrices
#'
#' @description
#' This function is used to count the binding sites in a set of sequences for
#' all or a
#' subset of RNA-binding protein sequence
#' motifs and returns the result in a data frame, which is subsequently used by
#' \code{\link{calculateMotifE... | /R/matrix-based.R | permissive | haroon123/transite | R | false | false | 28,911 | r | #' @title Scores transcripts with position weight matrices
#'
#' @description
#' This function is used to count the binding sites in a set of sequences for
#' all or a
#' subset of RNA-binding protein sequence
#' motifs and returns the result in a data frame, which is subsequently used by
#' \code{\link{calculateMotifE... |
shinyServer(function(input, output, session) {
#### UI code --------------------------------------------------------------
output$ui <- renderUI({
if (user_input$authenticated == FALSE) {
##### UI code for login page
fluidPage(
fluidRow(
column(width = 2, offset = 5,
br()... | /Web App Login/server.R | no_license | DeepanjanKowar/TS | R | false | false | 26,651 | r | shinyServer(function(input, output, session) {
#### UI code --------------------------------------------------------------
output$ui <- renderUI({
if (user_input$authenticated == FALSE) {
##### UI code for login page
fluidPage(
fluidRow(
column(width = 2, offset = 5,
br()... |
testlist <- list(b = 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), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ... | /metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615768751-test.R | permissive | akhikolla/updatedatatype-list3 | R | false | false | 726 | r | testlist <- list(b = 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), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ... |
# 0_simulate_data_bland.R
# simulate baseline table data; assume two groups per paper
# testing three of Martin Bland's difficult results for the non-uniform p-distribution
# added categorical correlation, e.g., ethnicity
# June 2022
library(MASS) # for mvrnorm
library(dplyr)
library(tidyverse)
source('99_functions_si... | /0_simulate_data_bland.R | permissive | agbarnett/baseline_tables | R | false | false | 8,078 | r | # 0_simulate_data_bland.R
# simulate baseline table data; assume two groups per paper
# testing three of Martin Bland's difficult results for the non-uniform p-distribution
# added categorical correlation, e.g., ethnicity
# June 2022
library(MASS) # for mvrnorm
library(dplyr)
library(tidyverse)
source('99_functions_si... |
#' #-------------------------------------------------------------------------------
# tcplPlot: plot tcpl data
#-------------------------------------------------------------------------------
#' Generic Plotting Function for tcpl
#'
#' @description
#' \code{tcplLoadData} queries the tcpl databases and returns ... | /R/tcplPlot.R | no_license | cran/tcpl | R | false | false | 23,768 | r | #' #-------------------------------------------------------------------------------
# tcplPlot: plot tcpl data
#-------------------------------------------------------------------------------
#' Generic Plotting Function for tcpl
#'
#' @description
#' \code{tcplLoadData} queries the tcpl databases and returns ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp499}
\alias{spp499}
\title{species function}
\usage{
spp499(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... | /man/spp499.Rd | permissive | Djeppschmidt/Model.Microbiome | R | false | true | 456 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp499}
\alias{spp499}
\title{species function}
\usage{
spp499(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#' @include PrestoConnection.R
NULL
#' @param conn A \code{\linkS4class{PrestoConnection}} object
#' @return [... | /R/dbDisconnect.R | permissive | cosinequanon/RPresto | R | false | false | 502 | r | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#' @include PrestoConnection.R
NULL
#' @param conn A \code{\linkS4class{PrestoConnection}} object
#' @return [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.