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 |
|---|---|---|---|---|---|---|---|---|---|
source("0_init.R")
source("updated_simple_pierre.R") # the pierre.unpair.combine methods were updated
print("I run the unpaired analysis of simeplePierre \n")
do.unpaired.comparisons.alchemy <- function(expt.cols=NULL,control.cols=NULL,out.dat=NULL, mean.tbl=NULL, out.tbl=NULL,out.eps=NULL) {
# collect all the data ... | /simplePierre.R | no_license | GloriaTsaiOgopogo/NGS-data-Analysis-Pipeline- | R | false | false | 4,854 | r | source("0_init.R")
source("updated_simple_pierre.R") # the pierre.unpair.combine methods were updated
print("I run the unpaired analysis of simeplePierre \n")
do.unpaired.comparisons.alchemy <- function(expt.cols=NULL,control.cols=NULL,out.dat=NULL, mean.tbl=NULL, out.tbl=NULL,out.eps=NULL) {
# collect all the data ... |
library(fitdistrplus)
nbboot <- 100
# (1) Description of a sample from a normal distribution
# with and without uncertainty on skewness and kurtosis estimated by bootstrap
#
set.seed(1234)
x1 <- rnorm(100)
descdist(x1)
descdist(x1,boot=nbboot)
# (2) Description of a sample from a beta distribution
# with... | /tests/t-descdist.R | no_license | scchess/fitdistrplus | R | false | false | 1,109 | r | library(fitdistrplus)
nbboot <- 100
# (1) Description of a sample from a normal distribution
# with and without uncertainty on skewness and kurtosis estimated by bootstrap
#
set.seed(1234)
x1 <- rnorm(100)
descdist(x1)
descdist(x1,boot=nbboot)
# (2) Description of a sample from a beta distribution
# with... |
\name{SummarizedExperiment-class}
\docType{class}
% Class
\alias{SummarizedExperiment-class}
\alias{SummarizedExperiment}
\alias{Assays-class}
% Constructor-like function:
\alias{SummarizedExperiment}
\alias{SummarizedExperiment,missing-method}
\alias{SummarizedExperiment,matrix-method}
\alias{SummarizedExperiment,li... | /man/SummarizedExperiment-class.Rd | no_license | genome-vendor/r-bioc-genomicranges | R | false | false | 21,453 | rd | \name{SummarizedExperiment-class}
\docType{class}
% Class
\alias{SummarizedExperiment-class}
\alias{SummarizedExperiment}
\alias{Assays-class}
% Constructor-like function:
\alias{SummarizedExperiment}
\alias{SummarizedExperiment,missing-method}
\alias{SummarizedExperiment,matrix-method}
\alias{SummarizedExperiment,li... |
\name{ViewRealizedVol}
\alias{ViewRealizedVol}
\title{Process the relative inequality view on median, as it appears in A. Meucci,
"Fully Flexible Views: Theory and Practice", The Risk Magazine, October 2008,
p 100-106}
\usage{
ViewRealizedVol(X, p)
}
\arguments{
\item{X}{: panel of joint factors realizations}
... | /man/ViewRealizedVol.Rd | no_license | runiaruni/Meucci | R | false | false | 876 | rd | \name{ViewRealizedVol}
\alias{ViewRealizedVol}
\title{Process the relative inequality view on median, as it appears in A. Meucci,
"Fully Flexible Views: Theory and Practice", The Risk Magazine, October 2008,
p 100-106}
\usage{
ViewRealizedVol(X, p)
}
\arguments{
\item{X}{: panel of joint factors realizations}
... |
\name{p_1_proportion_me_n}
\alias{p_1_proportion_me_n}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Confidence Interval for a single proportion
}
\description{
Calculates the sample confidence for a single proportion sample.
}
\usage{
p_1_proportion_me_n(xp,n,x_pct,Xp=xp,xp_null)
}
%- maybe al... | /man/p_1_proportion_me_n.rd | no_license | SophieMYang/statistics | R | false | false | 1,362 | rd | \name{p_1_proportion_me_n}
\alias{p_1_proportion_me_n}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Confidence Interval for a single proportion
}
\description{
Calculates the sample confidence for a single proportion sample.
}
\usage{
p_1_proportion_me_n(xp,n,x_pct,Xp=xp,xp_null)
}
%- maybe al... |
beta_plot <- function(x, y, xQval, yQval, fdrControl = 0.05, showPlot = TRUE){
# checks prior to plot
stopifnot({
!anyNA(
c(x,
y,
xQval,
yQval,
fdrControl)
)
length(x) == length(y)
length(xQval) == length(yQval)
length(x) == length(xQval)
length(y... | /beta_plot.R | no_license | cfbeuchel/imise_functions | R | false | false | 2,994 | r | beta_plot <- function(x, y, xQval, yQval, fdrControl = 0.05, showPlot = TRUE){
# checks prior to plot
stopifnot({
!anyNA(
c(x,
y,
xQval,
yQval,
fdrControl)
)
length(x) == length(y)
length(xQval) == length(yQval)
length(x) == length(xQval)
length(y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/custom_bayesian.R
\docType{methods}
\name{LoadResults,StandardBayesian-method}
\alias{LoadResults,StandardBayesian-method}
\title{Hakee rds-muodossa tallennetun posterioridatan perusteella tietyt usein tarvittavat kuviot ja
oliot yhdeksi lis... | /man/LoadResults-StandardBayesian-method.Rd | no_license | hrmJ/phdBayes | R | false | true | 835 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/custom_bayesian.R
\docType{methods}
\name{LoadResults,StandardBayesian-method}
\alias{LoadResults,StandardBayesian-method}
\title{Hakee rds-muodossa tallennetun posterioridatan perusteella tietyt usein tarvittavat kuviot ja
oliot yhdeksi lis... |
source("compute_full_rank_constraint.R")
#' Compute eigenvectors under affine constraint.
#'
#' \code{computeEigenvectorsAffineConstraint} computes eigenvectors under affine constraint.
#'
#' solves
#' max X ^ T W X / X ^ T X
#' subject to C X = b
#' X^T X = 1
#' C: k*n matrix
#' Ceq = C[1:... | /computeEigenvectorsAffineConstraint.R | no_license | delin1997/graph_matching | R | false | false | 2,176 | r | source("compute_full_rank_constraint.R")
#' Compute eigenvectors under affine constraint.
#'
#' \code{computeEigenvectorsAffineConstraint} computes eigenvectors under affine constraint.
#'
#' solves
#' max X ^ T W X / X ^ T X
#' subject to C X = b
#' X^T X = 1
#' C: k*n matrix
#' Ceq = C[1:... |
library(TauP.R)
### Name: FindPrange
### Title: Ray Parameter Range for Phase
### Aliases: FindPrange
### Keywords: misc
### ** Examples
data(model)
imodel = ImproveModel(model)$newmodel
FindPrange('P', imodel, 100, 10)
| /data/genthat_extracted_code/TauP.R/examples/FindPrange.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 228 | r | library(TauP.R)
### Name: FindPrange
### Title: Ray Parameter Range for Phase
### Aliases: FindPrange
### Keywords: misc
### ** Examples
data(model)
imodel = ImproveModel(model)$newmodel
FindPrange('P', imodel, 100, 10)
|
\name{alldiffs.object}
\alias{alldiffs.object}
\alias{alldiffs-class}
\title{Description of an alldiffs object}
\description{An object of S3-class \code{alldiffs} that that stores the predictions for a model,
along with supplied statistics for all pairwise differences. While
\code{\lin... | /man/alldiffs.object.Rd | no_license | cran/asremlPlus | R | false | false | 12,594 | rd | \name{alldiffs.object}
\alias{alldiffs.object}
\alias{alldiffs-class}
\title{Description of an alldiffs object}
\description{An object of S3-class \code{alldiffs} that that stores the predictions for a model,
along with supplied statistics for all pairwise differences. While
\code{\lin... |
#'@title General Least Squares Detrending
#'
#'@description This function detrends the data by general least squares.
#'
#'@usage glsd(y,p)
#'
#'@param y The dataframe to be detreneded
#'
#'@param p an binary input of 0 or 1 which decides value of penalty chat of either -7
#' or -13.5, respectively
#'
#'@return yt The ... | /PANICr/R/glsd.r | no_license | ingted/R-Examples | R | false | false | 1,009 | r | #'@title General Least Squares Detrending
#'
#'@description This function detrends the data by general least squares.
#'
#'@usage glsd(y,p)
#'
#'@param y The dataframe to be detreneded
#'
#'@param p an binary input of 0 or 1 which decides value of penalty chat of either -7
#' or -13.5, respectively
#'
#'@return yt The ... |
\name{trans.venn}
\alias{trans.venn}
\title{Venn Diagram by Grouping Variable}
\usage{
trans.venn(text.var, grouping.var, stopwords = NULL,
rm.duplicates = TRUE, title = TRUE, title.font = NULL,
title.color = "black", title.cex = NULL,
title.name = NULL, legend = TRUE, legend.cex = 0.8,
legend.locatio... | /man/trans.venn.Rd | no_license | abresler/qdap | R | false | false | 2,842 | rd | \name{trans.venn}
\alias{trans.venn}
\title{Venn Diagram by Grouping Variable}
\usage{
trans.venn(text.var, grouping.var, stopwords = NULL,
rm.duplicates = TRUE, title = TRUE, title.font = NULL,
title.color = "black", title.cex = NULL,
title.name = NULL, legend = TRUE, legend.cex = 0.8,
legend.locatio... |
## Creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) { #set the value of the matrix
x <<- y
m <<- NULL
}
get <- function() x #get the value of the matrix
setinverse <... | /cachematrix.R | no_license | eugene93/ProgrammingAssignment2 | R | false | false | 1,192 | r |
## Creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) { #set the value of the matrix
x <<- y
m <<- NULL
}
get <- function() x #get the value of the matrix
setinverse <... |
# Plot P/ACF pair of differenced data
acf2(diff(x))
# Fit model - check t-table and diagnostics
sarima(xdata = x, p = 1, d = 1, q = 0)
# Forecast the data 20 time periods ahead
sarima.for(x, n.ahead = 20, p = 1, d = 1, q = 0)
lines(y) | /arima.modeling/03 - arma.models/06 - arma.forecasting.R | no_license | aliawaischeema/DataCamp | R | false | false | 237 | r | # Plot P/ACF pair of differenced data
acf2(diff(x))
# Fit model - check t-table and diagnostics
sarima(xdata = x, p = 1, d = 1, q = 0)
# Forecast the data 20 time periods ahead
sarima.for(x, n.ahead = 20, p = 1, d = 1, q = 0)
lines(y) |
library(minisvg)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Define filter with turbulence driving the displacmenet
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
my_filter <- stag$filter(
id = "displacementFilter",
stag$feTurbulence(
type... | /working/test.R | permissive | VB6Hobbyst7/svgfilter | R | false | false | 1,297 | r |
library(minisvg)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Define filter with turbulence driving the displacmenet
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
my_filter <- stag$filter(
id = "displacementFilter",
stag$feTurbulence(
type... |
# Exploratory Data Analysis Project
# This is the R script for "plot1".
#___________________________________________________________________________________________
# Change the current working directory to the directory this script is
thisdir<-getSrcDirectory(function(x) {x}) #Anonymous function to get the source d... | /plot1.R | no_license | nirmalyabhattacharya/ExData_Plotting1 | R | false | false | 1,204 | r | # Exploratory Data Analysis Project
# This is the R script for "plot1".
#___________________________________________________________________________________________
# Change the current working directory to the directory this script is
thisdir<-getSrcDirectory(function(x) {x}) #Anonymous function to get the source d... |
\name{PhaseType}
\alias{PhaseType}
\alias{dphtype}
\alias{pphtype}
\alias{rphtype}
\alias{mphtype}
\alias{mgfphtype}
\title{The Phase-type Distribution}
\description{
Density, distribution function, random generation, raw moments and
moment generating function for the (continuous) Phase-type
distribution with par... | /man/PhaseType.Rd | no_license | cran/actuar | R | false | false | 3,892 | rd | \name{PhaseType}
\alias{PhaseType}
\alias{dphtype}
\alias{pphtype}
\alias{rphtype}
\alias{mphtype}
\alias{mgfphtype}
\title{The Phase-type Distribution}
\description{
Density, distribution function, random generation, raw moments and
moment generating function for the (continuous) Phase-type
distribution with par... |
## @knitr Question_1
library(ggplot2)
data <- fread('~/Interview_Projects/rev_data_for_test.csv')
g <- ggplot(data, aes(Type))
g + geom_bar()
## @knitr Question_2
g2 <- ggplot (data=data, aes(Latitude,Longitude, shape = Type, color = Type))
g2 + geom_point()
## @knitr Cluster_Algo
numClusters <- function(Data, ... | /Cluster.WorkSample.R | no_license | helenristov/WorkSamples | R | false | false | 2,846 | r |
## @knitr Question_1
library(ggplot2)
data <- fread('~/Interview_Projects/rev_data_for_test.csv')
g <- ggplot(data, aes(Type))
g + geom_bar()
## @knitr Question_2
g2 <- ggplot (data=data, aes(Latitude,Longitude, shape = Type, color = Type))
g2 + geom_point()
## @knitr Cluster_Algo
numClusters <- function(Data, ... |
#################
###### PCR ######
set.seed (2)
# Use the pcr() function:
# Setting scale=TRUE has the effect of standardizing each predictor (scale projection)
# Setting validation = 'CV' has the effect to use cross validation to rate M parameter
pcr.fit=pcr(linear.model.all.PCR,data = df ,scale=TRUE, validat... | /Linear-PCR-All.R | no_license | Rabia28/Application-of-statisttical-techniques-of-the-estimation-of-obesity-levels-dataset | R | false | false | 4,046 | r | #################
###### PCR ######
set.seed (2)
# Use the pcr() function:
# Setting scale=TRUE has the effect of standardizing each predictor (scale projection)
# Setting validation = 'CV' has the effect to use cross validation to rate M parameter
pcr.fit=pcr(linear.model.all.PCR,data = df ,scale=TRUE, validat... |
#' @title Neat rounding
#'
#' @description Rounds a given number to given number of digits after the
#' decimal point, returning it as string, with trailing zeros when applicable.
#' @param num Number to be rounded.
#' @param round_to Number of fractional digits (i.e., digits after the decimal
#' point), to round t... | /R/ro.R | permissive | gasparl/neatstats | R | false | false | 2,196 | r | #' @title Neat rounding
#'
#' @description Rounds a given number to given number of digits after the
#' decimal point, returning it as string, with trailing zeros when applicable.
#' @param num Number to be rounded.
#' @param round_to Number of fractional digits (i.e., digits after the decimal
#' point), to round t... |
torPat=function(tempstr,pdb,tors)
{
#tempstr: resno.insertion.chain
tempinds=which(colnames(tors$coords[,1,])==tempstr);
return(tors$tbl[tempinds,]);
}
patAddNaccess=function(tempchres,nacc,acclow=20)
{
#print(pos);
chres=paste(nacc$asa[,1],nacc$asa[,2],sep=""); #ChainResnoResid format
index=which(chres==tempchre... | /Script_dir/torpat.r | no_license | prpanigrahi/iRDP | R | false | false | 7,363 | r | torPat=function(tempstr,pdb,tors)
{
#tempstr: resno.insertion.chain
tempinds=which(colnames(tors$coords[,1,])==tempstr);
return(tors$tbl[tempinds,]);
}
patAddNaccess=function(tempchres,nacc,acclow=20)
{
#print(pos);
chres=paste(nacc$asa[,1],nacc$asa[,2],sep=""); #ChainResnoResid format
index=which(chres==tempchre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monocle.R
\name{convert_seu_to_cds}
\alias{convert_seu_to_cds}
\title{Convert a Seurat Object to a Monocle Cell Data Set}
\usage{
convert_seu_to_cds(seu, resolution = 1, min_expression = 0.05)
}
\arguments{
\item{seu}{}
}
\description{
Conver... | /man/convert_seu_to_cds.Rd | permissive | whtns/seuratTools | R | false | true | 485 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monocle.R
\name{convert_seu_to_cds}
\alias{convert_seu_to_cds}
\title{Convert a Seurat Object to a Monocle Cell Data Set}
\usage{
convert_seu_to_cds(seu, resolution = 1, min_expression = 0.05)
}
\arguments{
\item{seu}{}
}
\description{
Conver... |
rm(list=ls())
library(data.table)
library(zoo)
library(sqldf)
library(plyr)
setwd("C:/Dim/strategic_default/")
source("functions.R")
fn_cox = "temp_cox_strategicdefault_new.csv"
fn_loanmonth = "temp_loanmonth_strategicdefault.csv"
# Source: http://www.zillow.com/research/data/#rental-data -> Median Ren... | /Create Negative Equity Samples Dec5.R | no_license | dimuthu999/strategic_default | R | false | false | 12,510 | r | rm(list=ls())
library(data.table)
library(zoo)
library(sqldf)
library(plyr)
setwd("C:/Dim/strategic_default/")
source("functions.R")
fn_cox = "temp_cox_strategicdefault_new.csv"
fn_loanmonth = "temp_loanmonth_strategicdefault.csv"
# Source: http://www.zillow.com/research/data/#rental-data -> Median Ren... |
#2 - 10
H Gini AUC AUCH KS MER
scores 0.500875 0.7627367 0.8813683 0.8853967 0.6329946 0.1834711
MWL Spec.Sens95 Sens.Spec95 ER Sens Spec
scores 0.1803738 0.5194932 0.413308 0.185124 0.8086185 0.8196881
Precision Recall TPR FPR F Youden TP
s... | /Modelo_Satisfacao/resultado.R | permissive | pykishi/Trabalhos_MBA | R | false | false | 11,179 | r | #2 - 10
H Gini AUC AUCH KS MER
scores 0.500875 0.7627367 0.8813683 0.8853967 0.6329946 0.1834711
MWL Spec.Sens95 Sens.Spec95 ER Sens Spec
scores 0.1803738 0.5194932 0.413308 0.185124 0.8086185 0.8196881
Precision Recall TPR FPR F Youden TP
s... |
/home/isaacsantelli/OSE2019/day1/SparseGridCode/pyipopt_midway/Ipopt-3.12.5/Ipopt/contrib/RInterface/man/print.sparseness.Rd | /day1/SparseGridCode/pyipopt_midway/Ipopt-3.12.5/build/Ipopt/contrib/RInterface/man/print.sparseness.Rd | no_license | isaacsantelli/OSE2019 | R | false | false | 124 | rd | /home/isaacsantelli/OSE2019/day1/SparseGridCode/pyipopt_midway/Ipopt-3.12.5/Ipopt/contrib/RInterface/man/print.sparseness.Rd |
################################################
### Simulation for covariance estimation
### 1. PACE
### 2. Lin & Wang (2020)
### 3. Robust method (Huber loss)
### 4. WRM
### - For all methods, 5-fold CV are performed.
################################################
library(GA) # persp plot
library(mvtnorm... | /Partial_obs/old_code/20211209 이전/R_old/Huber_delta_selection.R | permissive | statKim/FDA-Lab | R | false | false | 9,522 | r | ################################################
### Simulation for covariance estimation
### 1. PACE
### 2. Lin & Wang (2020)
### 3. Robust method (Huber loss)
### 4. WRM
### - For all methods, 5-fold CV are performed.
################################################
library(GA) # persp plot
library(mvtnorm... |
######################################################
# Purpose: Plot histogram of elevation using ForC_db
# Inputs: ForC_db SITES table
# outputs: 1. png file, saved in figures folder as Histogram_of_sites_elevation.png
# Developped by: Valentine Herrmann - HerrmannV@si.edu
# R version 3.3.2 (2016-10-31)
############... | /scripts/Figures/Histogram_of_sites_elevetion.R | permissive | forc-db/ForC | R | false | false | 815 | r | ######################################################
# Purpose: Plot histogram of elevation using ForC_db
# Inputs: ForC_db SITES table
# outputs: 1. png file, saved in figures folder as Histogram_of_sites_elevation.png
# Developped by: Valentine Herrmann - HerrmannV@si.edu
# R version 3.3.2 (2016-10-31)
############... |
# Decision Tree - Classification
path = 'https://raw.githubusercontent.com/thomaspernet/data_csv_r/master/data/titanic_csv.csv'
titanic <-read.csv(path)
head(titanic)
names(titanic)
data = titanic[,c('plcass','survived','sex','age')]
data = titanic[,c(2,3,5,6,7)]
head(data)
#Decision Tree
library(rpart)
library(rpar... | /titanic.R | no_license | neetamc/analytics1 | R | false | false | 444 | r | # Decision Tree - Classification
path = 'https://raw.githubusercontent.com/thomaspernet/data_csv_r/master/data/titanic_csv.csv'
titanic <-read.csv(path)
head(titanic)
names(titanic)
data = titanic[,c('plcass','survived','sex','age')]
data = titanic[,c(2,3,5,6,7)]
head(data)
#Decision Tree
library(rpart)
library(rpar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Util.R
\name{project.zscore}
\alias{project.zscore}
\title{Project z-scores of one LD block to another LD block}
\usage{
project.zscore(ld.svd.tgt, ld.svd.src, z.src)
}
\arguments{
\item{ld.svd.tgt}{SVD result on the target LD block}
\item{l... | /man/project.zscore.Rd | permissive | YPARK/zqtl | R | false | true | 958 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Util.R
\name{project.zscore}
\alias{project.zscore}
\title{Project z-scores of one LD block to another LD block}
\usage{
project.zscore(ld.svd.tgt, ld.svd.src, z.src)
}
\arguments{
\item{ld.svd.tgt}{SVD result on the target LD block}
\item{l... |
# Homework 7
# Hint
setwd('c:/users/zfishe1/Desktop/DS350/HW7/')
##-----Load Libraries-----
library(dplyr)
library(data.table)
library(logging)
logReset()
file_log_handler = getLogger()
setLevel("INFO", file_log_handler)
basicConfig(level="INFO")
addHandler(writeToFile, file = "hw7.log", level = "INF... | /HW7/Homework7_hint.R | no_license | zwfisher/ds350 | R | false | false | 3,293 | r | # Homework 7
# Hint
setwd('c:/users/zfishe1/Desktop/DS350/HW7/')
##-----Load Libraries-----
library(dplyr)
library(data.table)
library(logging)
logReset()
file_log_handler = getLogger()
setLevel("INFO", file_log_handler)
basicConfig(level="INFO")
addHandler(writeToFile, file = "hw7.log", level = "INF... |
# Pacotes ------------------------------------------------------------------
library(ggplot2)
library(skimr)
library(tidymodels)
# Dados -------------------------------------------------------------------
data("diamonds")
# EDA ---------------------------------------------------------------------
glimpse(diamonds)
s... | /exemplos/01-tidymodels.R | no_license | curso-r/202108-intro-ml | R | false | false | 2,149 | r | # Pacotes ------------------------------------------------------------------
library(ggplot2)
library(skimr)
library(tidymodels)
# Dados -------------------------------------------------------------------
data("diamonds")
# EDA ---------------------------------------------------------------------
glimpse(diamonds)
s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/initial_processing.R
\name{process_cells}
\alias{process_cells}
\title{Initially processes cells in seurat object}
\usage{
process_cells(mtec, filter_by = c("nGene", "percent_mito"),
low_thresholds = c(200, -Inf), high_thresholds = c(7500, ... | /man/process_cells.Rd | permissive | kwells4/mtec.10x.pipeline | R | false | true | 1,650 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/initial_processing.R
\name{process_cells}
\alias{process_cells}
\title{Initially processes cells in seurat object}
\usage{
process_cells(mtec, filter_by = c("nGene", "percent_mito"),
low_thresholds = c(200, -Inf), high_thresholds = c(7500, ... |
# # 888888ba d888888P a88888b. 88888888b d888888P .d88888b .d888888
# # 88 `8b 88 d8' `88 88 88 88. "' d8' 88
# # a88aaaa8P' 88 88 a88aaaa 88 `Y88888b. 88aaaaa88a
# # 88 `8b. 88 88888888 88 88 88 `... | /process_moltenprot.R | no_license | mronzetti/rt_cetsa | R | false | false | 6,039 | r | # # 888888ba d888888P a88888b. 88888888b d888888P .d88888b .d888888
# # 88 `8b 88 d8' `88 88 88 88. "' d8' 88
# # a88aaaa8P' 88 88 a88aaaa 88 `Y88888b. 88aaaaa88a
# # 88 `8b. 88 88888888 88 88 88 `... |
paste0(print('AQUASTAT STARTS'), Sys.time())
##' AquastatUpdate module
##' Author: Francy Lisboa
##' Date: 15/04/2019
##' Purpose: Updates the aquastat_legacy data with new data coming from questionnaries and aquastat_questionnaire
# Loading libraries
suppressMessages({
library(faosws)
library(faoswsUtil)
librar... | /faoswsAquastatUpdate/code/main7.R | no_license | SWS-Methodology/faoswsAquastat | R | false | false | 27,780 | r | paste0(print('AQUASTAT STARTS'), Sys.time())
##' AquastatUpdate module
##' Author: Francy Lisboa
##' Date: 15/04/2019
##' Purpose: Updates the aquastat_legacy data with new data coming from questionnaries and aquastat_questionnaire
# Loading libraries
suppressMessages({
library(faosws)
library(faoswsUtil)
librar... |
SOLANUM_DB_L2Rlink1 <- list(tablename="genes", Lcolname="GID", Rcolname="_id")
SOLANUM_DB_AnnDbBimap_seeds <- list(
list(
objName="LYCOCYC",
Class="AnnDbBimap",
L2Rchain=list(
SOLANUM_DB_L2Rlink1,
list(
tablename="lycocyc",
Lcolname="... | /R/objects.R | permissive | kozo2/org.Slycopersicum.eg.db | R | false | false | 3,023 | r |
SOLANUM_DB_L2Rlink1 <- list(tablename="genes", Lcolname="GID", Rcolname="_id")
SOLANUM_DB_AnnDbBimap_seeds <- list(
list(
objName="LYCOCYC",
Class="AnnDbBimap",
L2Rchain=list(
SOLANUM_DB_L2Rlink1,
list(
tablename="lycocyc",
Lcolname="... |
# generate random data from a bayesian network.
rbn = function(x, n = 1, ...) {
UseMethod("rbn")
}#RBN
# generate random data from a network structure (parameters are learned on the fly).
rbn.bn = function(x, n = 1, data, fit = "mle", ..., debug = FALSE) {
# fit the parameters of the bayesian network.
fitted... | /R/frontend-simulation.R | no_license | dkesada/bnlearn_exp | R | false | false | 3,928 | r |
# generate random data from a bayesian network.
rbn = function(x, n = 1, ...) {
UseMethod("rbn")
}#RBN
# generate random data from a network structure (parameters are learned on the fly).
rbn.bn = function(x, n = 1, data, fit = "mle", ..., debug = FALSE) {
# fit the parameters of the bayesian network.
fitted... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_funcs.R
\name{\%==\%}
\alias{\%==\%}
\title{Test if Two Numeric Vectors are (Nearly) Equal Row-by-Row}
\usage{
x \%==\% y
}
\arguments{
\item{x}{A numeric or integer vector. May be of length 1.}
\item{y}{A numeric or integer vector t... | /man/grapes-equals-grapes.Rd | no_license | tomhopper/numbr | R | false | true | 951 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_funcs.R
\name{\%==\%}
\alias{\%==\%}
\title{Test if Two Numeric Vectors are (Nearly) Equal Row-by-Row}
\usage{
x \%==\% y
}
\arguments{
\item{x}{A numeric or integer vector. May be of length 1.}
\item{y}{A numeric or integer vector t... |
#' \code{RemoveParentName}
#'
#' Replaces a list of given names, with any underlying labels, if they exist in the data.
#' @param x A \code{\link{character}}, typically containing a variable name.
#' @return A \code{character}.
#' @details Strips out everything up to and including the last \$. E.g., replaces
#' \code{"... | /R/names.R | no_license | gkalnytskyi/flipFormat | R | false | false | 482 | r | #' \code{RemoveParentName}
#'
#' Replaces a list of given names, with any underlying labels, if they exist in the data.
#' @param x A \code{\link{character}}, typically containing a variable name.
#' @return A \code{character}.
#' @details Strips out everything up to and including the last \$. E.g., replaces
#' \code{"... |
# ###############################################################
# #1 compute waiting time
# ###############################################################
# Wait <- function(a,s) #a,s are interarrival & service time
# {
# m <- length(a)
# d <- rep(0,m)
# for (i in 2:m)
# {
# d[i] <- max(d[i-1]+s[i-1]-a[i... | /M:M:1 and M:G:1 queue/Gen.R | no_license | borisbowang/Mean-Performance-Calibration | R | false | false | 1,931 | r | # ###############################################################
# #1 compute waiting time
# ###############################################################
# Wait <- function(a,s) #a,s are interarrival & service time
# {
# m <- length(a)
# d <- rep(0,m)
# for (i in 2:m)
# {
# d[i] <- max(d[i-1]+s[i-1]-a[i... |
#' Banzhaf index
#'
#' Function for calculating the Banzhaf index.
#' Done by taking all coalitions and adding +1 for decisive coalitions, -1 otherwise
#' @param w Vector of voting weights
#' @param q Threshold for voting success
#' @keywords Banzhaf, Decision Rules
#' @export
#' @examples
#' gt_banzhaf(w = 1:5, q=.5)... | /R/gt_banzhaf.R | no_license | macartan/hop | R | false | false | 1,686 | r | #' Banzhaf index
#'
#' Function for calculating the Banzhaf index.
#' Done by taking all coalitions and adding +1 for decisive coalitions, -1 otherwise
#' @param w Vector of voting weights
#' @param q Threshold for voting success
#' @keywords Banzhaf, Decision Rules
#' @export
#' @examples
#' gt_banzhaf(w = 1:5, q=.5)... |
library(reshape2)
library(lme4)
library(lmerTest)
library(car)
library(dplyr)
library(tidyr)
library(ggplot2)
library(Hmisc)
library(MuMIn)
library(lsmeans)
library(effects)
library(phia)
library(gganimate)
library(piecewiseSEM)
#########################################################################################... | /Stats_SeedlingDiversity.R | no_license | qmsorenson/SeedlingDiversity | R | false | false | 17,177 | r | library(reshape2)
library(lme4)
library(lmerTest)
library(car)
library(dplyr)
library(tidyr)
library(ggplot2)
library(Hmisc)
library(MuMIn)
library(lsmeans)
library(effects)
library(phia)
library(gganimate)
library(piecewiseSEM)
#########################################################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_images.R
\name{download_images}
\alias{download_images}
\title{download_images}
\usage{
download_images(photo_id, saveDir = "downloaded_images",
max_image_height = NULL, max_image_width = NULL, quiet = FALSE)
}
\arguments{
\item{ph... | /man/download_images.Rd | no_license | monicagerber/photosearcher | R | false | true | 1,581 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_images.R
\name{download_images}
\alias{download_images}
\title{download_images}
\usage{
download_images(photo_id, saveDir = "downloaded_images",
max_image_height = NULL, max_image_width = NULL, quiet = FALSE)
}
\arguments{
\item{ph... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/visualization.R
\name{plot_density_distribution_genotype_likelihood}
\alias{plot_density_distribution_genotype_likelihood}
\title{Figure density distribution of genotype likelihood summary statistics}
\usage{
plot_density_distribution... | /man/plot_density_distribution_genotype_likelihood.Rd | no_license | anne-laureferchaud/stackr | R | false | false | 847 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/visualization.R
\name{plot_density_distribution_genotype_likelihood}
\alias{plot_density_distribution_genotype_likelihood}
\title{Figure density distribution of genotype likelihood summary statistics}
\usage{
plot_density_distribution... |
library(readr)
traffic <- read.csv("C:/Users/Camiel/Desktop/Utrecht traffic data/traffic.csv",
header = T, sep = "", nrows = 300)
library(data.table)
TTraffic<- fread("C:/Users/Camiel/Desktop/Utrecht traffic data/traffic.csv", header = T,
nrows = 300, col.names = c("id", ... | /Load code.R | no_license | AgneseG/Traffic-data-SDA | R | false | false | 1,081 | r | library(readr)
traffic <- read.csv("C:/Users/Camiel/Desktop/Utrecht traffic data/traffic.csv",
header = T, sep = "", nrows = 300)
library(data.table)
TTraffic<- fread("C:/Users/Camiel/Desktop/Utrecht traffic data/traffic.csv", header = T,
nrows = 300, col.names = c("id", ... |
\name{predRes}
\alias{predRes}
\docType{data}
\title{
Example output of getPatientRankings, used to call labels for test patients.
}
\description{
List of lists. First level is a list of size 4, with one key entry for each tumour type in example medulloblastoma dataset (WNT,SHH,Group3,Group4). Each list in the second ... | /man/predRes.Rd | permissive | BaderLab/netDx | R | false | false | 519 | rd | \name{predRes}
\alias{predRes}
\docType{data}
\title{
Example output of getPatientRankings, used to call labels for test patients.
}
\description{
List of lists. First level is a list of size 4, with one key entry for each tumour type in example medulloblastoma dataset (WNT,SHH,Group3,Group4). Each list in the second ... |
#PAGE=419
yr=c(1976,1977,1978,1979,1980,1981)
x1=c(91.1,98,96.9,101.1,104,102.9)
x2=c(102.4,96.3,98.7,99.9,100.1,100,101.7,99.9,99.9,99.4,99,100.2)
x3=c(99.9,99.9,98.7,98.8,100.9,100.1,99.9,100.3,100.6,99.9,99.9,99.7)
x4=c(101.6,103,100.7,101.9,99.9,97.6,98.3,99.2,97.5,102.3,100.9,98.6)
x5=c(96.9,103.7,102,99.9,9... | /Schaum'S_Outline_Series_-_Theory_And_Problems_Of_Statistics_by_Murray_R._Spiegel/CH18/EX18.18.19/Ex18_18_19.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 8,318 | r | #PAGE=419
yr=c(1976,1977,1978,1979,1980,1981)
x1=c(91.1,98,96.9,101.1,104,102.9)
x2=c(102.4,96.3,98.7,99.9,100.1,100,101.7,99.9,99.9,99.4,99,100.2)
x3=c(99.9,99.9,98.7,98.8,100.9,100.1,99.9,100.3,100.6,99.9,99.9,99.7)
x4=c(101.6,103,100.7,101.9,99.9,97.6,98.3,99.2,97.5,102.3,100.9,98.6)
x5=c(96.9,103.7,102,99.9,9... |
library(ggmap)
library(ggplot2)
# Histograms HourWise and MonthWise
ggplot(nyc , aes(x = as.numeric(Hour))) + geom_histogram(stat = 'count')
ggplot(nyc , aes(x = as.numeric(MONTH))) + geom_histogram(stat = 'count', bins = 12)
# Plotting injuries by vehicle count
#create new vehicle count variable
nyc$vehicle.cou... | /Data Exploration.R | no_license | agarwalpranay/NYC-vehicle-collisions | R | false | false | 10,176 | r | library(ggmap)
library(ggplot2)
# Histograms HourWise and MonthWise
ggplot(nyc , aes(x = as.numeric(Hour))) + geom_histogram(stat = 'count')
ggplot(nyc , aes(x = as.numeric(MONTH))) + geom_histogram(stat = 'count', bins = 12)
# Plotting injuries by vehicle count
#create new vehicle count variable
nyc$vehicle.cou... |
# Coursera Assignment 1: Plot 2
# Quan Anh Dung
########################
## Load the data
rm(list = ls())
dat <- read.table("household_power_consumption.txt", header = T,
sep = ";", na.strings = "?")
#subset the data
data <- dat[dat$Date %in% c("1/2/2007", "2/2/2007"), ]
# Convert the date varia... | /plot2.R | no_license | QuanAnhDung-96/Exploratory-Data-Analysis-Coursera-Project-1 | R | false | false | 749 | r | # Coursera Assignment 1: Plot 2
# Quan Anh Dung
########################
## Load the data
rm(list = ls())
dat <- read.table("household_power_consumption.txt", header = T,
sep = ";", na.strings = "?")
#subset the data
data <- dat[dat$Date %in% c("1/2/2007", "2/2/2007"), ]
# Convert the date varia... |
setwd("/home/hyuri/Área de Trabalho/Anna")
save.image(file="Grupos_last.RData")
#system.time
library(sqldf)
library(datasets)
library(dplyr)
library(lubridate)
library(ggplot2)
#carrega os dados do csv selecionado apenas as variáveis que seram usadas, com isso reduz o tamanho do data frame a ser carregado
#2012
da... | /Dados educacao superior Brasil/grupos.R | no_license | HyuriMaciel/Analise-de-Dados | R | false | false | 7,330 | r | setwd("/home/hyuri/Área de Trabalho/Anna")
save.image(file="Grupos_last.RData")
#system.time
library(sqldf)
library(datasets)
library(dplyr)
library(lubridate)
library(ggplot2)
#carrega os dados do csv selecionado apenas as variáveis que seram usadas, com isso reduz o tamanho do data frame a ser carregado
#2012
da... |
#' @title p-values on region of interest(ROI) of the brain
#' @description This function takes a 4 dimensional real-valued fMRI data and calculates p-values for the ROIs individually to test whether the ROI is potentially activated.
#' It is the first phase of a ROI 3-phase analysis and usually followed by second pha... | /package/TCIU/TCIU/R/fmri_ROI_phase1.R | no_license | SOCR/TCIU | R | false | false | 4,425 | r | #' @title p-values on region of interest(ROI) of the brain
#' @description This function takes a 4 dimensional real-valued fMRI data and calculates p-values for the ROIs individually to test whether the ROI is potentially activated.
#' It is the first phase of a ROI 3-phase analysis and usually followed by second pha... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/noaaParameters.R
\name{noaa.parameters}
\alias{noaa.parameters}
\title{Reports data available for a NOAA station}
\usage{
noaa.parameters(stn = 8467150)
}
\arguments{
\item{stn}{NOAA station number (note that station names are not
... | /man/noaa.parameters.Rd | no_license | troyhill/VulnToolkit | R | false | true | 1,055 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/noaaParameters.R
\name{noaa.parameters}
\alias{noaa.parameters}
\title{Reports data available for a NOAA station}
\usage{
noaa.parameters(stn = 8467150)
}
\arguments{
\item{stn}{NOAA station number (note that station names are not
... |
###############################################################################################
## Project: MS4217 Stochastic processes Labs and tutorials
## Script purpose: Simulate Reed Frost model
## Date: 30-9-2020
## Author: David JP O'Sullivan
######################################################################... | /Lab_1/MS4217_lab_1_frost_reed_lockdown.R | no_license | DavidJPOS/MS4217_SP_R_Labs | R | false | false | 6,283 | r | ###############################################################################################
## Project: MS4217 Stochastic processes Labs and tutorials
## Script purpose: Simulate Reed Frost model
## Date: 30-9-2020
## Author: David JP O'Sullivan
######################################################################... |
bifurcationsUi <- function(id) {
ns <- NS(id)
introBox(
fluidRow(
bs4InfoBoxOutput(ns("hopf"), width = 6),
bs4InfoBoxOutput(ns("pitchfork"), width = 6)
),
data.step = 5,
data.intro = help_text[5]
)
}
bifurcations <- function(input, output, session, model_params, printInfos) {
#... | /app/bs4Dash_version/bifurcationsModule.R | no_license | DivadNojnarg/Lorenz_Apps | R | false | false | 1,727 | r | bifurcationsUi <- function(id) {
ns <- NS(id)
introBox(
fluidRow(
bs4InfoBoxOutput(ns("hopf"), width = 6),
bs4InfoBoxOutput(ns("pitchfork"), width = 6)
),
data.step = 5,
data.intro = help_text[5]
)
}
bifurcations <- function(input, output, session, model_params, printInfos) {
#... |
#read all data
power_consumption <- read.table(file = "./exdata-data-household_power_consumption/household_power_consumption.txt", sep=";", header = TRUE, dec=".", stringsAsFactors = FALSE)
#using lubridate package to parse date and time
library(lubridate)
power_consumption$Date <- dmy(power_consumption$Date)
... | /plot1.R | no_license | polip/ExData_Plotting1 | R | false | false | 877 | r |
#read all data
power_consumption <- read.table(file = "./exdata-data-household_power_consumption/household_power_consumption.txt", sep=";", header = TRUE, dec=".", stringsAsFactors = FALSE)
#using lubridate package to parse date and time
library(lubridate)
power_consumption$Date <- dmy(power_consumption$Date)
... |
"dwapi-r
Copyright 2018 data.world, Inc.
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 applicable law or agreed to in writing, sof... | /R/linked_dataset_create_or_update_request.R | no_license | cran/dwapi | R | false | false | 1,307 | r | "dwapi-r
Copyright 2018 data.world, Inc.
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 applicable law or agreed to in writing, sof... |
library(readr)
library(dplyr)
library(lubridate)
library(caret)
# Read the training data
setwd("C:/Users/nshanbhag/Desktop/BigDataAnalytics/Machine learning for Marketing/Individual Code")
library(readxl)
data <- read_excel("Telcodata.xlsx")
colnames(data)
#Data Cleaning
unique(data$gender)
data$gen... | /Individual Code/1.Rcode.R | no_license | shanbhagnitesh/ChurnPredictionEndtoEnd | R | false | false | 3,041 | r | library(readr)
library(dplyr)
library(lubridate)
library(caret)
# Read the training data
setwd("C:/Users/nshanbhag/Desktop/BigDataAnalytics/Machine learning for Marketing/Individual Code")
library(readxl)
data <- read_excel("Telcodata.xlsx")
colnames(data)
#Data Cleaning
unique(data$gender)
data$gen... |
library(commandr)
### Name: Pipeline-class
### Title: Pipeline: A Sequence of Protocols
### Aliases: class:Pipeline Pipeline-class Pipeline findProtocols pipeline
### protocol protocol<- [,Pipeline-method [<-,Pipeline-method
### head,Pipeline-method tail,Pipeline-method pipeline,Pipeline-method
### protocol,Pip... | /data/genthat_extracted_code/commandr/examples/Pipeline-class.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 3,669 | r | library(commandr)
### Name: Pipeline-class
### Title: Pipeline: A Sequence of Protocols
### Aliases: class:Pipeline Pipeline-class Pipeline findProtocols pipeline
### protocol protocol<- [,Pipeline-method [<-,Pipeline-method
### head,Pipeline-method tail,Pipeline-method pipeline,Pipeline-method
### protocol,Pip... |
context('corner')
lis <- list(iris, mtcars, matrix(rnorm(1000), ncol = 10))
test_that('corner', {
expect_equal(corner(lis), lapply(lis, function(x) head(x[, seq_len(min(6, ncol(x)))]) ))
})
| /tests/testthat/test_corner.R | no_license | Balharbi/jaffelab | R | false | false | 196 | r | context('corner')
lis <- list(iris, mtcars, matrix(rnorm(1000), ncol = 10))
test_that('corner', {
expect_equal(corner(lis), lapply(lis, function(x) head(x[, seq_len(min(6, ncol(x)))]) ))
})
|
## Load the "Mixture" dataset.
library("ElemStatLearn")
# Extract the components that we want.
x <- mixture.example$x
y <- mixture.example$y
xnew <- mixture.example$xnew
# px1 <- mixture.example$px1
# px2 <- mixture.example$px2
prob <- mixture.example$prob
## Plot training data. First, we need to make a data... | /Mixture Dataset comparison of models.R | permissive | desireechen/Data-science-mini-projects | R | false | false | 9,906 | r | ## Load the "Mixture" dataset.
library("ElemStatLearn")
# Extract the components that we want.
x <- mixture.example$x
y <- mixture.example$y
xnew <- mixture.example$xnew
# px1 <- mixture.example$px1
# px2 <- mixture.example$px2
prob <- mixture.example$prob
## Plot training data. First, we need to make a data... |
# ggplot2 (part 2) - # https://www.coursera.org/learn/exploratory-data-analysis/lecture/qBzHS/ggplot2-part-2
library(ggplot2)
load("maacs.rda")
str(maacs)
## visualize 1D data
# histogram of eNo
qplot(log(eno), data=maacs)
# histogram by group
qplot(log(eno), data=maacs, fill=mopos)
# density smooth
qplot(log(eno),... | /ggplot2-2-maacs.R | no_license | umhan35/exploratory-data-analysis-coursera | R | false | false | 880 | r | # ggplot2 (part 2) - # https://www.coursera.org/learn/exploratory-data-analysis/lecture/qBzHS/ggplot2-part-2
library(ggplot2)
load("maacs.rda")
str(maacs)
## visualize 1D data
# histogram of eNo
qplot(log(eno), data=maacs)
# histogram by group
qplot(log(eno), data=maacs, fill=mopos)
# density smooth
qplot(log(eno),... |
library(methods)
library(dplyr)
library(readr)
library(dembase)
netherlands_health <- read_csv("data-raw/netherlands_health/EBDAG_23112017231455293.csv") %>%
select(age = `Age Group`, sex = Gender, year = Year, value = Value) %>%
filter(age != "Total") %>%
mutate(age = cleanAgeGroup(age),
age =... | /data-raw/netherlands_health/netherlands_health.R | no_license | johnrbryant/bdefdata | R | false | false | 559 | r |
library(methods)
library(dplyr)
library(readr)
library(dembase)
netherlands_health <- read_csv("data-raw/netherlands_health/EBDAG_23112017231455293.csv") %>%
select(age = `Age Group`, sex = Gender, year = Year, value = Value) %>%
filter(age != "Total") %>%
mutate(age = cleanAgeGroup(age),
age =... |
# Import packages
library(data.table)
library(mlogit)
# Load data
setwd("C:/Users/ethan/Documents/Ethan/TMG/Research/PORPOS-TMG/SMTO_2015/Expansion_Factors")
df <- read.csv("Segment_Exp_Input.csv")
# Reformat data
df$Campus = as.factor(df$Campus)
# Prepare output matrix
num_segments = 7L
num_intercepts = 7L
coefs_an... | /SMTO_2015/Location_Choice_Logit/Expansion_Factors/Expansion_Factors.R | no_license | gonzaloMS-2000/PORPOS-TMG | R | false | false | 1,938 | r | # Import packages
library(data.table)
library(mlogit)
# Load data
setwd("C:/Users/ethan/Documents/Ethan/TMG/Research/PORPOS-TMG/SMTO_2015/Expansion_Factors")
df <- read.csv("Segment_Exp_Input.csv")
# Reformat data
df$Campus = as.factor(df$Campus)
# Prepare output matrix
num_segments = 7L
num_intercepts = 7L
coefs_an... |
# Jake Yeung
# Date of Creation: 2020-10-04
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/mouse/H3K27me3_merged/0-save_spikein_info_txt.R
# Needed for glmpca and downstream analysis
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
AnnotateSortFr... | /scripts/rstudioserver_analysis/spikeins/mouse/H3K27me3_merged/0-save_spikein_info_txt.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 3,767 | r | # Jake Yeung
# Date of Creation: 2020-10-04
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/mouse/H3K27me3_merged/0-save_spikein_info_txt.R
# Needed for glmpca and downstream analysis
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
AnnotateSortFr... |
\name{kcalc}
\alias{kcalc}
\title{Estimating specific life tables of fixed child ages}
\usage{
kcalc(coefs, U5, match = NMR)
}
\description{
To fit cause specific under 5 Q, when qxs are predicted directly
To match cause specific neonatal mortality}
\examples{
data(camr)
camr<- camr[order(camr$year, camr$reg, camr$... | /man/kcalc.Rd | no_license | jamieperin/U5ACSM | R | false | false | 1,494 | rd | \name{kcalc}
\alias{kcalc}
\title{Estimating specific life tables of fixed child ages}
\usage{
kcalc(coefs, U5, match = NMR)
}
\description{
To fit cause specific under 5 Q, when qxs are predicted directly
To match cause specific neonatal mortality}
\examples{
data(camr)
camr<- camr[order(camr$year, camr$reg, camr$... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metric_residual_plot.R
\name{metric_residual_plot}
\alias{metric_residual_plot}
\title{Residual Plot}
\usage{
metric_residual_plot(dat, var, filename = NA, draw.plot = FALSE)
}
\arguments{
\item{dat}{}
}
\author{
Betsy Cowdery
}
| /modules/benchmark/man/metric_residual_plot.Rd | permissive | Kah5/pecan | R | false | true | 307 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metric_residual_plot.R
\name{metric_residual_plot}
\alias{metric_residual_plot}
\title{Residual Plot}
\usage{
metric_residual_plot(dat, var, filename = NA, draw.plot = FALSE)
}
\arguments{
\item{dat}{}
}
\author{
Betsy Cowdery
}
|
testlist <- list(type = 0L, z = 3.35964639172048e-322)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609893398-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 108 | r | testlist <- list(type = 0L, z = 3.35964639172048e-322)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
library('snapshot')
pos=snap.read.2('/home/cecere/sshfs/is2/fstasys/MHD_Disc/etacs/snapshot_125','POS ',debug=1,gas=1)
xp = pos$x
yp = pos$y
zp = pos$z
id=snap.read.2('/home/cecere/sshfs/is2/fstasys/MHD_Disc/etacs/snapshot_125','ID ',debug=1,gas=1)
data <- data.frame(id,xp,yp,zp)
# me da el orden del array dond... | /work/cecere/R/lineas/seleccion_de_particulas_todo.R | no_license | marialda27/mhd-disks | R | false | false | 14,728 | r |
library('snapshot')
pos=snap.read.2('/home/cecere/sshfs/is2/fstasys/MHD_Disc/etacs/snapshot_125','POS ',debug=1,gas=1)
xp = pos$x
yp = pos$y
zp = pos$z
id=snap.read.2('/home/cecere/sshfs/is2/fstasys/MHD_Disc/etacs/snapshot_125','ID ',debug=1,gas=1)
data <- data.frame(id,xp,yp,zp)
# me da el orden del array dond... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gpus.R
\name{gce_list_gpus}
\alias{gce_list_gpus}
\title{Retrieves a list GPUs you can attach to an instance}
\usage{
gce_list_gpus(filter = NULL, maxResults = NULL, pageToken = NULL,
project = gce_get_global_project(), zone = gce_get_globa... | /man/gce_list_gpus.Rd | no_license | chlorenz/googleComputeEngineR | R | false | true | 1,287 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gpus.R
\name{gce_list_gpus}
\alias{gce_list_gpus}
\title{Retrieves a list GPUs you can attach to an instance}
\usage{
gce_list_gpus(filter = NULL, maxResults = NULL, pageToken = NULL,
project = gce_get_global_project(), zone = gce_get_globa... |
## helper function that adds an argument to a call
## used to add needed arguments for C versions of {d,p,q}${dist} functions
addArg <- function(code, value, name) {
newArgIndex <- length(code) + 1
code[newArgIndex] <- value
names(code)[newArgIndex] <- name
return(code)
}
ndf_createDetermSimulate <-... | /packages/nimble/R/nimbleFunction_nodeFunction.R | permissive | dochvam/nimble | R | false | false | 20,122 | r |
## helper function that adds an argument to a call
## used to add needed arguments for C versions of {d,p,q}${dist} functions
addArg <- function(code, value, name) {
newArgIndex <- length(code) + 1
code[newArgIndex] <- value
names(code)[newArgIndex] <- name
return(code)
}
ndf_createDetermSimulate <-... |
#'
#' @title Skew-t Information Matrix Computation
#'
#' @description Analytically compute skew-t observed information matrix, and
#' compute skew-t expected information matrix numerically.
#'
#' @param y a vector of skew-t random variables used to compute an observed
#' information matrix. Its default is NULL.
#' @par... | /R/stInfoMat.R | no_license | BearVip/skewtInfo | R | false | false | 17,234 | r | #'
#' @title Skew-t Information Matrix Computation
#'
#' @description Analytically compute skew-t observed information matrix, and
#' compute skew-t expected information matrix numerically.
#'
#' @param y a vector of skew-t random variables used to compute an observed
#' information matrix. Its default is NULL.
#' @par... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615765496-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
#Practise with moneyball dataset
#Getting and setting working directory
getwd()
setwd("E:\\Other Courses\\Analytics Edge\\Chapter - 3 - Linear Regression\\Datasets")
getwd()
#Reading the baseball.csv and storing it to baseball data frame and viewing its structure
baseball=read.csv("baseball.csv")
str(baseball)
#Gett... | /Predictive Analytics/Predicting the success of Oakland A's in playoffs/2_Practise_With_Baseball_Dataset.R | no_license | avaprincythomas/Academic-Projects | R | false | false | 3,254 | r | #Practise with moneyball dataset
#Getting and setting working directory
getwd()
setwd("E:\\Other Courses\\Analytics Edge\\Chapter - 3 - Linear Regression\\Datasets")
getwd()
#Reading the baseball.csv and storing it to baseball data frame and viewing its structure
baseball=read.csv("baseball.csv")
str(baseball)
#Gett... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organizations_operations.R
\name{organizations_describe_organizational_unit}
\alias{organizations_describe_organizational_unit}
\title{Retrieves information about an organizational unit (OU)}
\usage{
organizations_describe_organizational_unit... | /cran/paws.management/man/organizations_describe_organizational_unit.Rd | permissive | paws-r/paws | R | false | true | 1,141 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organizations_operations.R
\name{organizations_describe_organizational_unit}
\alias{organizations_describe_organizational_unit}
\title{Retrieves information about an organizational unit (OU)}
\usage{
organizations_describe_organizational_unit... |
#'
#' Compute the Variance Explained from PCA or Other Reduction Methods
#'
#' @export
#' @noRd
#'
.getVarExplained <- function(so) {
found <- FALSE
# sparse pca via arrayspc objects
if ("pev" %in% names(so)) {
return(so$pev * 100)
}
# prcomp-based objects
if ("sdev" %in% names(so)) {
eigensum <- ... | /R/getVarExplained.R | no_license | Tejasvigupta/ChemoSpecUtils | R | false | false | 556 | r | #'
#' Compute the Variance Explained from PCA or Other Reduction Methods
#'
#' @export
#' @noRd
#'
.getVarExplained <- function(so) {
found <- FALSE
# sparse pca via arrayspc objects
if ("pev" %in% names(so)) {
return(so$pev * 100)
}
# prcomp-based objects
if ("sdev" %in% names(so)) {
eigensum <- ... |
\name{testrwm}
\alias{testrwm}
\title{ Test setup for rwm package }
\description{Tests that the variable \code{.UserDirectory} has a valid setting.}
\usage{testrwm()}
\details{
Returns TRUE if all of the following are true.
First that \code{.UserDirectory} is set and second that it is set
to a valid dir... | /man/testrwm.Rd | no_license | Bhanditz/rwm | R | false | false | 1,665 | rd | \name{testrwm}
\alias{testrwm}
\title{ Test setup for rwm package }
\description{Tests that the variable \code{.UserDirectory} has a valid setting.}
\usage{testrwm()}
\details{
Returns TRUE if all of the following are true.
First that \code{.UserDirectory} is set and second that it is set
to a valid dir... |
#' Profile heat map plot
#'
#' Plots a lake profile heatmap for a single site and parameter.
#' @param data Lake profile data (wide format)
#' @param date Date column name. Must be in 'YYYY-mm-dd' format.
#' @param parameter Column name for parameter to be used as z-values.
#' @param param_units Character. Parameter un... | /R/profileHeatMap.r | permissive | utah-dwq/wqTools | R | false | false | 3,103 | r | #' Profile heat map plot
#'
#' Plots a lake profile heatmap for a single site and parameter.
#' @param data Lake profile data (wide format)
#' @param date Date column name. Must be in 'YYYY-mm-dd' format.
#' @param parameter Column name for parameter to be used as z-values.
#' @param param_units Character. Parameter un... |
#' Activities function
#'
#' This function queries the Activities API:
#' @param lookup.type is the type of entity to use to query campsites
#' @param lookup.args is a vector of arguments used to query campsites
#' @keywords activities
#' @export
activities <- function(lookup.type, lookup.args) {
# If lookup.type is... | /R/activities.R | no_license | jtbradt/ridbAPI | R | false | false | 1,127 | r | #' Activities function
#'
#' This function queries the Activities API:
#' @param lookup.type is the type of entity to use to query campsites
#' @param lookup.args is a vector of arguments used to query campsites
#' @keywords activities
#' @export
activities <- function(lookup.type, lookup.args) {
# If lookup.type is... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pcDirections.R
\name{pcDirections}
\alias{pcDirections}
\title{Acceptable Pathway Commons Directions}
\usage{
pcDirections()
}
\value{
acceptable Pathway Commons directions
}
\description{
A simple function to see valid options
}
\details{
\i... | /man/pcDirections.Rd | no_license | BioPAX/paxtoolsr | R | false | true | 617 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pcDirections.R
\name{pcDirections}
\alias{pcDirections}
\title{Acceptable Pathway Commons Directions}
\usage{
pcDirections()
}
\value{
acceptable Pathway Commons directions
}
\description{
A simple function to see valid options
}
\details{
\i... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{strip}
\alias{strip}
\title{strip string i.e. remove spaces from the beginning and end}
\usage{
strip(s)
}
\arguments{
\item{s}{string or character vector}
}
\value{
stripped string
}
\description{
strip string i.e. remove spaces from the beginning and end
}
\e... | /man/strip.Rd | no_license | Eerotuomenoksa/sorvi | R | false | false | 463 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{strip}
\alias{strip}
\title{strip string i.e. remove spaces from the beginning and end}
\usage{
strip(s)
}
\arguments{
\item{s}{string or character vector}
}
\value{
stripped string
}
\description{
strip string i.e. remove spaces from the beginning and end
}
\e... |
#################################################################################################################
### Script to perform data analysis and obtain figure of Vitali et. al 2020 manuscript #########
### Author: Francesco Vitali ... | /Script_paper_Melanoma.R | permissive | FrancescoVit/Supplementary_Vitali_Melanoma | R | false | false | 78,428 | r | #################################################################################################################
### Script to perform data analysis and obtain figure of Vitali et. al 2020 manuscript #########
### Author: Francesco Vitali ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/adjacency_matrix.R
\name{sg2sym}
\alias{sg2sym}
\title{Symmetrisation of sg adjacency matrix
wrapper for 1way and 2way symmetrisation}
\usage{
sg2sym(x, way = 1)
}
\arguments{
\item{x}{sg object}
\item{way}{1: OR rule, 2: AND rule fo... | /man/sg2sym.Rd | no_license | fdzul/spatgraphs | R | false | false | 436 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/adjacency_matrix.R
\name{sg2sym}
\alias{sg2sym}
\title{Symmetrisation of sg adjacency matrix
wrapper for 1way and 2way symmetrisation}
\usage{
sg2sym(x, way = 1)
}
\arguments{
\item{x}{sg object}
\item{way}{1: OR rule, 2: AND rule fo... |
#' Class transcript_archetypes
#'
#' Class \code{transcript_archetypes} holds lists of empirical transcript archetypes
#' and the matched data. Empirical profiles for flanking regions (width is user defined)
#' are included in the archetypes. Synthetic genome annotations, count data, and
#' transcript abundances c... | /R/transcript_archetypes.R | permissive | CshlSiepelLab/nascentRNASim | R | false | false | 31,004 | r | #' Class transcript_archetypes
#'
#' Class \code{transcript_archetypes} holds lists of empirical transcript archetypes
#' and the matched data. Empirical profiles for flanking regions (width is user defined)
#' are included in the archetypes. Synthetic genome annotations, count data, and
#' transcript abundances c... |
#' Get a node data frame from a graph
#' @description From a graph, obtain a
#' node data frame with all current
#' node attributes.
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @return a node data frame.
#' @examples
#' # Create a graph
#' graph <-
#' create_graph() %>%
#' add_n_nodes(
#' n ... | /R/get_node_df.R | permissive | FeifanXie/DiagrammeR | R | false | false | 1,205 | r | #' Get a node data frame from a graph
#' @description From a graph, obtain a
#' node data frame with all current
#' node attributes.
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @return a node data frame.
#' @examples
#' # Create a graph
#' graph <-
#' create_graph() %>%
#' add_n_nodes(
#' n ... |
#****************************************************************************************************
# constraint evaluation and coefficient functions for ipoptr SPARSE -- same for all ####
#****************************************************************************************************
eval_g <- ... | /include/functions_ipopt.r | no_license | donboyd5/50_state_taxdata | R | false | false | 11,636 | r |
#****************************************************************************************************
# constraint evaluation and coefficient functions for ipoptr SPARSE -- same for all ####
#****************************************************************************************************
eval_g <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/srp_utils.R
\name{ascpR}
\alias{ascpR}
\title{Utility function to run aspera}
\usage{
ascpR(ascp_args, file, destDir = getwd())
}
\arguments{
\item{ascp_args}{Character vector of arguments to \code{ascp}.}
\item{file}{Url to aspera file to d... | /man/ascpR.Rd | permissive | alexvpickering/GEOfastq | R | false | true | 504 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/srp_utils.R
\name{ascpR}
\alias{ascpR}
\title{Utility function to run aspera}
\usage{
ascpR(ascp_args, file, destDir = getwd())
}
\arguments{
\item{ascp_args}{Character vector of arguments to \code{ascp}.}
\item{file}{Url to aspera file to d... |
### converts data in the IDB dataset from FIPS codes to ISO codes.
### The conversion chart is from http://opengeocode.org/download.php#fips2iso
### isocsv takes two arguments, an old filename and a new filesname. The contents
### of the first file are reshaped so each column name is a countrycode and then converts
##... | /Development/WillLeahy/makePopISO.R | permissive | MazamaScience/PopulationDatabrowser_v0 | R | false | false | 2,480 | r | ### converts data in the IDB dataset from FIPS codes to ISO codes.
### The conversion chart is from http://opengeocode.org/download.php#fips2iso
### isocsv takes two arguments, an old filename and a new filesname. The contents
### of the first file are reshaped so each column name is a countrycode and then converts
##... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tensor.R
\name{tensor_from_r}
\alias{tensor_from_r}
\title{Create torch Tensor from R object}
\usage{
tensor_from_r(x)
}
\arguments{
\item{x}{an R vector, matrix or array.}
}
\description{
Create torch Tensor from R object
}
\note{
it uses th... | /man/tensor_from_r.Rd | permissive | duarteguilherme/torch | R | false | true | 497 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tensor.R
\name{tensor_from_r}
\alias{tensor_from_r}
\title{Create torch Tensor from R object}
\usage{
tensor_from_r(x)
}
\arguments{
\item{x}{an R vector, matrix or array.}
}
\description{
Create torch Tensor from R object
}
\note{
it uses th... |
install.packages('qtl') #Main package, for analysis
install.packages('qtlcharts') #accessory, for displaying graphs
install.packages('LinkageMapView') #accessory, for displaying linkage maps
install.packages('rcompanion')# for plotNormalHistogram
library(qtl) #load packages
library(qtlcharts)
library(LinkageMapView)
li... | /QTL_mapping/Analysis summaries by trait/RQTL_Auto.R | no_license | Kovacs-Lab/Aim-3 | R | false | false | 4,239 | r | install.packages('qtl') #Main package, for analysis
install.packages('qtlcharts') #accessory, for displaying graphs
install.packages('LinkageMapView') #accessory, for displaying linkage maps
install.packages('rcompanion')# for plotNormalHistogram
library(qtl) #load packages
library(qtlcharts)
library(LinkageMapView)
li... |
\name{exams2pandoc}
\alias{exams2pandoc}
\title{Generation of Exams via Pandoc}
\description{
Automatic generation of exams via pandoc, by default in docx format.
}
\usage{
exams2pandoc(file, n = 1L, nsamp = NULL, dir = ".",
name = "pandoc", type = "docx", template = "plain.tex",
question = "Question", s... | /man/exams2pandoc.Rd | no_license | JackEdTaylor/exams | R | false | false | 5,837 | rd | \name{exams2pandoc}
\alias{exams2pandoc}
\title{Generation of Exams via Pandoc}
\description{
Automatic generation of exams via pandoc, by default in docx format.
}
\usage{
exams2pandoc(file, n = 1L, nsamp = NULL, dir = ".",
name = "pandoc", type = "docx", template = "plain.tex",
question = "Question", s... |
#' Bernoulli family for mcp
#'
#' @aliases bernoulli
#' @param link Link function.
#' @export
#'
bernoulli = function(link = "logit") {
# Just copy binomial()
family = binomial(link = link)
family$family = "bernoulli"
mcp_family(family)
}
#' Exponential family for mcp
#'
#' @aliases exponential
#' @param link ... | /R/misc.R | no_license | jpzhangvincent/mcp | R | false | false | 7,652 | r | #' Bernoulli family for mcp
#'
#' @aliases bernoulli
#' @param link Link function.
#' @export
#'
bernoulli = function(link = "logit") {
# Just copy binomial()
family = binomial(link = link)
family$family = "bernoulli"
mcp_family(family)
}
#' Exponential family for mcp
#'
#' @aliases exponential
#' @param link ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allGenerics.R, R/allMethods.R
\docType{methods}
\name{chmSetCredentials}
\alias{chmSetCredentials}
\alias{chmSetCredentials,character,character-method}
\alias{chmSetCredentials,ngchmServer,character-method}
\title{Set access credentials.}
\us... | /man/chmSetCredentials-method.Rd | no_license | broadinstitute/NGCHMR | R | false | true | 718 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allGenerics.R, R/allMethods.R
\docType{methods}
\name{chmSetCredentials}
\alias{chmSetCredentials}
\alias{chmSetCredentials,character,character-method}
\alias{chmSetCredentials,ngchmServer,character-method}
\title{Set access credentials.}
\us... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/heddle.R
\name{heddle}
\alias{heddle}
\title{Transform pattern objects into template pieces}
\usage{
heddle(data, pattern, ..., strip.whitespace = FALSE)
}
\arguments{
\item{data}{Input dataframe to pull replacement values from. Accepts eithe... | /man/heddle.Rd | no_license | matthew-law/heddlr | R | false | true | 3,177 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/heddle.R
\name{heddle}
\alias{heddle}
\title{Transform pattern objects into template pieces}
\usage{
heddle(data, pattern, ..., strip.whitespace = FALSE)
}
\arguments{
\item{data}{Input dataframe to pull replacement values from. Accepts eithe... |
/scrapingSmashboards.R | no_license | Clurkastas/SSBU-DataScience-Tierlist | R | false | false | 19,280 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dssSmooth2d.R
\name{dssSmooth2d}
\alias{dssSmooth2d}
\title{Create a combined smooth scatterplot}
\usage{
dssSmooth2d(
x,
y,
npoints = 128,
shades = 8,
draw.image = FALSE,
labels = TRUE,
axes = TRUE,
categories = NULL,
colou... | /man/dssSmooth2d.Rd | no_license | IulianD/dsSwissKnifeClient | R | false | true | 2,142 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dssSmooth2d.R
\name{dssSmooth2d}
\alias{dssSmooth2d}
\title{Create a combined smooth scatterplot}
\usage{
dssSmooth2d(
x,
y,
npoints = 128,
shades = 8,
draw.image = FALSE,
labels = TRUE,
axes = TRUE,
categories = NULL,
colou... |
\name{mvtsplot}
\alias{mvtsplot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{A function for plotting multivariate time series data}
\description{
A function for plotting multivariate time series data
}
\usage{
mvtsplot(x, group = NULL, xtime = NULL, norm = c("internal", "global"),
l... | /man/mvtsplot.Rd | no_license | yangxhcaf/mvtsplot | R | false | false | 2,519 | rd | \name{mvtsplot}
\alias{mvtsplot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{A function for plotting multivariate time series data}
\description{
A function for plotting multivariate time series data
}
\usage{
mvtsplot(x, group = NULL, xtime = NULL, norm = c("internal", "global"),
l... |
# integrative DRW on combined feature data (updated in 2018/06/17)
# concat directed pathway graphs within each profile (GM & GMR & GMR_d & GMP)
# All gene symbols are converted to Entrez gene id
# Reduced PPI network are used
# Extract the protein(node) which is corresponding to RPPA protein and its neighbor node
# ... | /experiment/result10_6.R | no_license | taerimmkim/iDRW-GMP | R | false | false | 5,540 | r | # integrative DRW on combined feature data (updated in 2018/06/17)
# concat directed pathway graphs within each profile (GM & GMR & GMR_d & GMP)
# All gene symbols are converted to Entrez gene id
# Reduced PPI network are used
# Extract the protein(node) which is corresponding to RPPA protein and its neighbor node
# ... |
# function to write required jags model as a text file
modeltext = function(dat.str, randvar.ia, corstr,path){
cont <- as.character(dat.str$iv[dat.str$type == "cont"])
cat <- as.character(dat.str$iv[dat.str$type == "cat"])
if (length(randvar.ia) == 1){
conthcl.pre <- cont[as.logical(dat.str[dat.str$t... | /R/modeltext.R | no_license | cran/BayesRS | R | false | false | 30,307 | r | # function to write required jags model as a text file
modeltext = function(dat.str, randvar.ia, corstr,path){
cont <- as.character(dat.str$iv[dat.str$type == "cont"])
cat <- as.character(dat.str$iv[dat.str$type == "cat"])
if (length(randvar.ia) == 1){
conthcl.pre <- cont[as.logical(dat.str[dat.str$t... |
map_ui = function(id){
ns = NS(id)
tagList(
actionButton(ns('select_group'),icon = icon('save'), label = 'Select Group'),
textInput(ns('group_name'), label = 'Name Group'),
editModUI(ns('map_edit'), height = 600)
)
}
map_server = function(input,output,session, query_table){
... | /modules/map.R | no_license | Frozemint/tara-cyc-hs18 | R | false | false | 5,996 | r | map_ui = function(id){
ns = NS(id)
tagList(
actionButton(ns('select_group'),icon = icon('save'), label = 'Select Group'),
textInput(ns('group_name'), label = 'Name Group'),
editModUI(ns('map_edit'), height = 600)
)
}
map_server = function(input,output,session, query_table){
... |
/scripts/99_script_barbeiros_parana.R | permissive | luize-bg/R-ENM | R | false | false | 4,969 | r | ||
#Reading in the dataset into R
household_power_consumption <- read.csv("~/R/household_power_consumption.txt", sep=";")
#Extracting data for the first 2 days of February only and mutating the date column into POSTIXlt using lubridate
data<- household_power_consumption %>% mutate(Date=dmy(household_power_consumption$Da... | /plot3.R | no_license | Aypak/ExData_Plotting1 | R | false | false | 1,458 | r | #Reading in the dataset into R
household_power_consumption <- read.csv("~/R/household_power_consumption.txt", sep=";")
#Extracting data for the first 2 days of February only and mutating the date column into POSTIXlt using lubridate
data<- household_power_consumption %>% mutate(Date=dmy(household_power_consumption$Da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.