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 |
|---|---|---|---|---|---|---|---|---|---|
require("devtools")
install_github("tidymodels/textrecipes")
#We found vacationrentalslbi.com has an extensive list
#of rentals, and doesn’t restrict to the particular
#agency maintaining the listing, so this is the perfect
#place to gather our data. Naturally, we would like to
#be polite, so check that we are all... | /robotstxt.R | no_license | DATAUNIRIO/SER_III_WebScraping | R | false | false | 777 | r | require("devtools")
install_github("tidymodels/textrecipes")
#We found vacationrentalslbi.com has an extensive list
#of rentals, and doesn’t restrict to the particular
#agency maintaining the listing, so this is the perfect
#place to gather our data. Naturally, we would like to
#be polite, so check that we are all... |
\name{stepp.KM}
\alias{stepp.KM}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
The constructor to create the stmodelKM object
}
\description{
This is the constructor function for the stmodelKM object. This object sets up the data with
a stepp model using the Kaplan-Meier method for analy... | /man/stepp.KM.Rd | no_license | cran/stepp | R | false | false | 3,400 | rd | \name{stepp.KM}
\alias{stepp.KM}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
The constructor to create the stmodelKM object
}
\description{
This is the constructor function for the stmodelKM object. This object sets up the data with
a stepp model using the Kaplan-Meier method for analy... |
packages <- c("tidyverse", "here", "rstudioapi", "MASS", "actuar", "lubridate", "readr", "readxl", "haven")
new_packages <- packages[!(packages %in% installed.packages()[,"Package"])]
if(length(new_packages)) install.packages(new_packages)
if(sum(!(packages %in% installed.packages()[, "Package"]))) {
stop(paste('Th... | /scripts/installation-instructions.R | no_license | katrienantonio/werkt-U-al-met-R | R | false | false | 558 | r | packages <- c("tidyverse", "here", "rstudioapi", "MASS", "actuar", "lubridate", "readr", "readxl", "haven")
new_packages <- packages[!(packages %in% installed.packages()[,"Package"])]
if(length(new_packages)) install.packages(new_packages)
if(sum(!(packages %in% installed.packages()[, "Package"]))) {
stop(paste('Th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eff_summary.R
\name{eff_suggest}
\alias{eff_suggest}
\title{Suggest the input \code{eff.structure} of function \code{SimPRMD} with
selected \code{eff.sd_tran}}
\usage{
eff_suggest(eff.M, eff.sd, eff.sd_trans, n.sim = 30000)
}
\arguments{
\ite... | /man/eff_suggest.Rd | no_license | LuZhangstat/phase1PRMD | R | false | true | 2,197 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eff_summary.R
\name{eff_suggest}
\alias{eff_suggest}
\title{Suggest the input \code{eff.structure} of function \code{SimPRMD} with
selected \code{eff.sd_tran}}
\usage{
eff_suggest(eff.M, eff.sd, eff.sd_trans, n.sim = 30000)
}
\arguments{
\ite... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/MFCLclasses.r
\docType{class}
\name{MFCLFrq-class}
\alias{MFCLFrq-class}
\title{An S4 class : Representation of a frq input file for MFCL}
\description{
A class comprising an MFCLFrqStats object and an MFCLLenFrq object
}
| /man/MFCLFrq-class.Rd | no_license | lauratboyer/FLR4MFCL | R | false | false | 309 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/MFCLclasses.r
\docType{class}
\name{MFCLFrq-class}
\alias{MFCLFrq-class}
\title{An S4 class : Representation of a frq input file for MFCL}
\description{
A class comprising an MFCLFrqStats object and an MFCLLenFrq object
}
|
# Sometimes data requires more complex storage than simple vectors
# Data Structures - Apart from Vectors, we have Data Frames, Matrix, List and Array.
# Data Frames(DF) - Most useful features of R & also cited reason for R's ease of use.
# In dataframe, each column is actually a vector, each of which has same lengt... | /4.2- Data Frames- 04-12-2020.R | no_license | meetgarg28/DSA-ASSIGNMENT-MEET-GARG | R | false | false | 2,143 | r | # Sometimes data requires more complex storage than simple vectors
# Data Structures - Apart from Vectors, we have Data Frames, Matrix, List and Array.
# Data Frames(DF) - Most useful features of R & also cited reason for R's ease of use.
# In dataframe, each column is actually a vector, each of which has same lengt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmi_smallfunctions.R
\name{tail.interval}
\alias{tail.interval}
\title{Tail for intervals}
\usage{
\method{tail}{interval}(x, ...)
}
\arguments{
\item{x}{vector, matrix, table, data.frame or interval object}
\item{...}{further arg... | /man/tail.interval.Rd | no_license | cran/hmi | R | false | true | 459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmi_smallfunctions.R
\name{tail.interval}
\alias{tail.interval}
\title{Tail for intervals}
\usage{
\method{tail}{interval}(x, ...)
}
\arguments{
\item{x}{vector, matrix, table, data.frame or interval object}
\item{...}{further arg... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
sapplymakeCacheMatrix <- function(x = matrix()) {
## set the matrix
## get the matrix
## set the inverse
## get the inverse
## this list is used as the input to cacheSol... | /cachematrix.R | no_license | bxjaj/Programming-Assignment-2- | R | false | false | 1,094 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
sapplymakeCacheMatrix <- function(x = matrix()) {
## set the matrix
## get the matrix
## set the inverse
## get the inverse
## this list is used as the input to cacheSol... |
library(psych)
library(Matrix)
args <- commandArgs(trailingOnly = TRUE)
M<-as.matrix(read.table(file=paste(args[2],"",sep=""), header = FALSE, sep = ","))
N<-as.matrix(read.table(file=paste(args[2],"",sep=""), header = FALSE, sep = ","))
path <- paste('results.out', sep='')
times <- double(5)
for (iter in 1:5) {
... | /scripts/LAPipe/R/PART1/P1.13_S-S-RW.R | no_license | hadad-paper/HADAD_SIGMOD2021 | R | false | false | 1,145 | r | library(psych)
library(Matrix)
args <- commandArgs(trailingOnly = TRUE)
M<-as.matrix(read.table(file=paste(args[2],"",sep=""), header = FALSE, sep = ","))
N<-as.matrix(read.table(file=paste(args[2],"",sep=""), header = FALSE, sep = ","))
path <- paste('results.out', sep='')
times <- double(5)
for (iter in 1:5) {
... |
#' List the names of all visual styles
#'
#' @param base.url cyrest base url for communicating with cytoscape
#' @return network viewid
#' @export
#' @import stringr
listStyles <- function(base.url='http://localhost:1234/v1'){
get.styles.url <- paste(base.url,"styles",sep="/")
response <- GET(url=get.styles.ur... | /for-scripters/R/r2cytoscape/R/listStyles.R | permissive | mpg-age-bioinformatics/cytoscape-automation | R | false | false | 418 | r | #' List the names of all visual styles
#'
#' @param base.url cyrest base url for communicating with cytoscape
#' @return network viewid
#' @export
#' @import stringr
listStyles <- function(base.url='http://localhost:1234/v1'){
get.styles.url <- paste(base.url,"styles",sep="/")
response <- GET(url=get.styles.ur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getData.R
\name{search_analytics}
\alias{search_analytics}
\title{Query search traffic keyword data}
\usage{
search_analytics(siteURL, startDate = Sys.Date() - 93,
endDate = Sys.Date() - 3, dimensions = NULL, searchType = c("web",
"video"... | /man/search_analytics.Rd | no_license | cran/searchConsoleR | R | false | true | 6,081 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getData.R
\name{search_analytics}
\alias{search_analytics}
\title{Query search traffic keyword data}
\usage{
search_analytics(siteURL, startDate = Sys.Date() - 93,
endDate = Sys.Date() - 3, dimensions = NULL, searchType = c("web",
"video"... |
rm(list=ls())
###packages################
library(NLP)
library(tm)
library(rJava)
library(Rwordseg)
library(SnowballC)
library(MASS)
library(RColorBrewer)
library(wordcloud)
library(pcaPP)
library(rainbow)
library(Rcpp)
library(cluster)
library(mvtnorm)
library(hdrcde)
library(locfit)
... | /Rcurl/2017.11.19组织行为学小论文练手/组织行为.R | no_license | ZuoRX/Rcurl | R | false | false | 2,986 | r | rm(list=ls())
###packages################
library(NLP)
library(tm)
library(rJava)
library(Rwordseg)
library(SnowballC)
library(MASS)
library(RColorBrewer)
library(wordcloud)
library(pcaPP)
library(rainbow)
library(Rcpp)
library(cluster)
library(mvtnorm)
library(hdrcde)
library(locfit)
... |
require(statisticalModeling)
require(rpart)
# Build the null model with rpart()
Runners$all_the_same <- 1 # null "explanatory" variable
null_model <- rpart(start_position ~ all_the_same, data = Runners)
# Evaluate the null model on training data
null_model_output <- evaluate_model(null_model, data = Runners, type = "c... | /Categorical Responce variable.R | no_license | ironhidee/RCode | R | false | false | 439 | r | require(statisticalModeling)
require(rpart)
# Build the null model with rpart()
Runners$all_the_same <- 1 # null "explanatory" variable
null_model <- rpart(start_position ~ all_the_same, data = Runners)
# Evaluate the null model on training data
null_model_output <- evaluate_model(null_model, data = Runners, type = "c... |
##extract data from https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
##The dataset has 2,075,259 rows and 9 columns.
##First calculate a rough estimate of how much memory the dataset will require in memory before reading into R.
##Make sure your computer has enough memory (most mo... | /Week1 courseProj/Plot1.R | no_license | Robertocalubag/ExData_Plotting1 | R | false | false | 1,312 | r | ##extract data from https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
##The dataset has 2,075,259 rows and 9 columns.
##First calculate a rough estimate of how much memory the dataset will require in memory before reading into R.
##Make sure your computer has enough memory (most mo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-freeman.R
\docType{data}
\name{law_cowork}
\alias{law_cowork}
\title{Law Firm (Co-work)}
\format{igraph object}
\source{
http://moreno.ss.uci.edu/data#lazega
}
\usage{
law_cowork
}
\description{
This data set comes from a network study o... | /man/law_cowork.Rd | permissive | kjhealy/networkdata | R | false | true | 2,351 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-freeman.R
\docType{data}
\name{law_cowork}
\alias{law_cowork}
\title{Law Firm (Co-work)}
\format{igraph object}
\source{
http://moreno.ss.uci.edu/data#lazega
}
\usage{
law_cowork
}
\description{
This data set comes from a network study o... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/usa.R
\docType{data}
\name{USAChoropleth}
\alias{USAChoropleth}
\title{Normal choropleth that draws Alaska and Hawaii as insets.
In addition to a columns named "region" and "value", also requires a column named "state".}
\format{\pref... | /man/USAChoropleth.Rd | no_license | cardiomoon/choroplethr | R | false | false | 644 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/usa.R
\docType{data}
\name{USAChoropleth}
\alias{USAChoropleth}
\title{Normal choropleth that draws Alaska and Hawaii as insets.
In addition to a columns named "region" and "value", also requires a column named "state".}
\format{\pref... |
#' Conditional count by ordinal tests for association.
#'
#' \code{countbot} tests for independence between an ordered categorical
#' variable, \var{X}, and a count variable, \var{Y}, conditional on other variables,
#' \var{Z}. The basic approach involves fitting an ordinal model of \var{X} on
#' \var{Z}, a Poisson or... | /R/countbot.R | no_license | cran/PResiduals | R | false | false | 9,903 | r | #' Conditional count by ordinal tests for association.
#'
#' \code{countbot} tests for independence between an ordered categorical
#' variable, \var{X}, and a count variable, \var{Y}, conditional on other variables,
#' \var{Z}. The basic approach involves fitting an ordinal model of \var{X} on
#' \var{Z}, a Poisson or... |
test_that(paste("make_standata returns correct data names ",
"for fixed and random effects"), {
expect_equal(names(make_standata(rating ~ treat + period + carry
+ (1|subject), data = inhaler)),
c("N", "Y", "K", "X", "Z_1_1",
"J_1", "... | /tests/testthat/tests.make_standata.R | no_license | aforren1/brms | R | false | false | 24,980 | r | test_that(paste("make_standata returns correct data names ",
"for fixed and random effects"), {
expect_equal(names(make_standata(rating ~ treat + period + carry
+ (1|subject), data = inhaler)),
c("N", "Y", "K", "X", "Z_1_1",
"J_1", "... |
##The following commands reads the data directly from website, unzips it and extracts data from the txt file and stores in a data frame "cat".
##sep=";" is used because each element separated by ";" in the txt file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",des... | /plot4.R | no_license | arj27083/ExData_Plotting1 | R | false | false | 1,968 | r | ##The following commands reads the data directly from website, unzips it and extracts data from the txt file and stores in a data frame "cat".
##sep=";" is used because each element separated by ";" in the txt file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",des... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(y = matrix()) {
inversefunc <- NULL
set <- function(J) {
y <<- J
inversefunc <<- NULL
}
get <- function() y
setInverse <- fun... | /cachematrix.R | no_license | JulieHwayek/ProgrammingAssignment2 | R | false | false | 853 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(y = matrix()) {
inversefunc <- NULL
set <- function(J) {
y <<- J
inversefunc <<- NULL
}
get <- function() y
setInverse <- fun... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include pi_service.R
NULL
#' For a specific time period, retrieve the top N dimension keys for a
#' metric
#'
#' @description
#' For a specific time period, retrieve the top ... | /cran/paws.management/R/pi_operations.R | permissive | paws-r/paws | R | false | false | 19,887 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include pi_service.R
NULL
#' For a specific time period, retrieve the top N dimension keys for a
#' metric
#'
#' @description
#' For a specific time period, retrieve the top ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\name{ExperimentColorMap}
\alias{ExperimentColorMap}
\alias{class:ExperimentColorMap}
\alias{ExperimentColorMap-class}
\alias{assayColorMap}
\alias{colDataColorMap}
\alias{rowDataColorMap}
\alias{assayColorMap,ExperimentColorMap,... | /man/ExperimentColorMap.Rd | permissive | slowkow/iSEE | R | false | true | 3,387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\name{ExperimentColorMap}
\alias{ExperimentColorMap}
\alias{class:ExperimentColorMap}
\alias{ExperimentColorMap-class}
\alias{assayColorMap}
\alias{colDataColorMap}
\alias{rowDataColorMap}
\alias{assayColorMap,ExperimentColorMap,... |
# ============ LOAD DATA
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";")
# Convert data
data$Date<- as.Date(as.character(data$Date), "%d/%m/%Y")
data$Global_active_power<- suppressWarnings(as.numeric(as.character(data$Global_active_power)))
# Subselect data
sdata <- subset(data, Date >= a... | /plot2.R | no_license | rarich01/ExData_Plotting1 | R | false | false | 725 | r |
# ============ LOAD DATA
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";")
# Convert data
data$Date<- as.Date(as.character(data$Date), "%d/%m/%Y")
data$Global_active_power<- suppressWarnings(as.numeric(as.character(data$Global_active_power)))
# Subselect data
sdata <- subset(data, Date >= a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grammar_sampler.R
\name{grammar_sampler}
\alias{grammar_sampler}
\title{grammar_sampler}
\usage{
grammar_sampler(
n,
grammar,
max_depth,
no_cores = NULL,
unique = TRUE,
seed = NULL,
save = TRUE,
file_name = NULL
)
}
\arguments... | /man/grammar_sampler.Rd | permissive | MoritzFeigl/FSO | R | false | true | 1,475 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grammar_sampler.R
\name{grammar_sampler}
\alias{grammar_sampler}
\title{grammar_sampler}
\usage{
grammar_sampler(
n,
grammar,
max_depth,
no_cores = NULL,
unique = TRUE,
seed = NULL,
save = TRUE,
file_name = NULL
)
}
\arguments... |
rm(list=ls())
library(readr)
library(data.table)
library(finML)
library(fBasics)
setwd("C:/Users/nicholas.warren/Desktop/Work/Kaggle/Houses/")
train <- data.frame(read_csv(file = "data/train.csv"))
test <- data.frame(read_csv(file = "data/test.csv"))
train$SalePrice<-log(train$SalePrice)
#or define factor names... | /Houses/finML Houses (lm).R | no_license | nerdville/WaddleFish | R | false | false | 6,215 | r | rm(list=ls())
library(readr)
library(data.table)
library(finML)
library(fBasics)
setwd("C:/Users/nicholas.warren/Desktop/Work/Kaggle/Houses/")
train <- data.frame(read_csv(file = "data/train.csv"))
test <- data.frame(read_csv(file = "data/test.csv"))
train$SalePrice<-log(train$SalePrice)
#or define factor names... |
library(ggplot2)
library(plotly)
library(dplyr)
library(openintro)
source("R/format_data.R")
interactiveMap <- function(year) {
data <- eval(parse(text=paste0("data_", year)))
data <- data%>%
filter(state != "National", state != "Puerto Rico")
data$code <- state2abbr(data$state)
data$total_killed... | /Final_Shiny/R/interactive_map.R | no_license | bridhett/info-201-final-project | R | false | false | 974 | r | library(ggplot2)
library(plotly)
library(dplyr)
library(openintro)
source("R/format_data.R")
interactiveMap <- function(year) {
data <- eval(parse(text=paste0("data_", year)))
data <- data%>%
filter(state != "National", state != "Puerto Rico")
data$code <- state2abbr(data$state)
data$total_killed... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_tb.R
\name{get_tb}
\alias{get_tb}
\title{Title}
\usage{
get_tb(data, var = "id", head = FALSE)
}
\arguments{
\item{data}{data.frame need to become a tibble objsct}
\item{var}{the rownames col's names, the default is "id"}
\item{head}{if... | /man/get_tb.Rd | permissive | wangjiaxuan666/xbox | R | false | true | 459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_tb.R
\name{get_tb}
\alias{get_tb}
\title{Title}
\usage{
get_tb(data, var = "id", head = FALSE)
}
\arguments{
\item{data}{data.frame need to become a tibble objsct}
\item{var}{the rownames col's names, the default is "id"}
\item{head}{if... |
#Assignment 3.1 - Session: 3
#Q1 How many vowels are there in the names of USA States?
#Solution 1:
States <- rownames(USArrests)
x <- c('a','e','i','o','u')
x
y <- rep(0,times=5)
y
input <- data.frame(x,y)
input
for(i in 1:50){
test <- States[i]
n <- nchar(test)
test <- strsplit(test,"")
te... | /Assignment_3_1.R | no_license | sheetalnishad/assignment-3.1 | R | false | false | 956 | r | #Assignment 3.1 - Session: 3
#Q1 How many vowels are there in the names of USA States?
#Solution 1:
States <- rownames(USArrests)
x <- c('a','e','i','o','u')
x
y <- rep(0,times=5)
y
input <- data.frame(x,y)
input
for(i in 1:50){
test <- States[i]
n <- nchar(test)
test <- strsplit(test,"")
te... |
#'@title Define chromosomal regions for screening
#'@description Define overlapping loci starting and ending positions for Wavelet screaming analysis
#'@param bp vector of the observed based pair positions in a chromosome
#'@param Loci_size size of the defined loci, limited by thresh size gaps on ends. Slices smaller ... | /R/definition_slice.R | no_license | asju/WaveletScreaming | R | false | false | 3,648 | r | #'@title Define chromosomal regions for screening
#'@description Define overlapping loci starting and ending positions for Wavelet screaming analysis
#'@param bp vector of the observed based pair positions in a chromosome
#'@param Loci_size size of the defined loci, limited by thresh size gaps on ends. Slices smaller ... |
#' Plot confidence intervals (NEEDS DOCUMENTATION)
#'
#' "Forest plot"-style plotting of confidence intervals from a regression model. Basic input is a matrix with columns of estimate/lower/upper, along with an optional 4th column for the p-value. Also works with a variety of models (lm/glm/coxph/etc.)
#'
#' @param o... | /R/CIplot.R | no_license | pbreheny/hdrm | R | false | false | 5,991 | r | #' Plot confidence intervals (NEEDS DOCUMENTATION)
#'
#' "Forest plot"-style plotting of confidence intervals from a regression model. Basic input is a matrix with columns of estimate/lower/upper, along with an optional 4th column for the p-value. Also works with a variety of models (lm/glm/coxph/etc.)
#'
#' @param o... |
source("../data/clean.R")
# |||||||||||| PLOT 4 ||||||||||||||
# ||||||| Save to plot4.png ||||||||
Sys.setlocale(category = "LC_TIME", locale = "en_GB.UTF-8")
par(mfrow = c(2,2))
# TL
with(selected_dates, plot(Time, Global_active_power,
type = "l",
xlab = "", ylab = "Global Active Power",
cex.lab = 0... | /rplots/plot4.R | no_license | ezRAez/ExData_Plotting1 | R | false | false | 1,197 | r | source("../data/clean.R")
# |||||||||||| PLOT 4 ||||||||||||||
# ||||||| Save to plot4.png ||||||||
Sys.setlocale(category = "LC_TIME", locale = "en_GB.UTF-8")
par(mfrow = c(2,2))
# TL
with(selected_dates, plot(Time, Global_active_power,
type = "l",
xlab = "", ylab = "Global Active Power",
cex.lab = 0... |
library("igraph")
library("scales")
library("graphsim")
vo_huong <- make_graph( ~ A-B-C-D-E-A, G-A:B:C:D:E)
plot(vo_huong)
| /CTDLGT_R/BT12_CaiDatDoThiVoHuong.R | no_license | thucuyen127/Giai-thuat | R | false | false | 132 | r |
library("igraph")
library("scales")
library("graphsim")
vo_huong <- make_graph( ~ A-B-C-D-E-A, G-A:B:C:D:E)
plot(vo_huong)
|
#' Convert pharmacokinetic parameters for three compartment model
#'
#' Calculate pharmacokinetic parameters with volume of distributions (Vd and V1),
#' clearance (Cl1) and half-lives (t_alpha, t_beta, and t_gamma)
#'
#' @usage ThreeComp_Volume_Clearance_HalfLife(V1,Vd,Cl1,t_alpha,t_beta,t_gamma,
#' V1.sd=NA,Vd... | /R/ThreeComp_Volume_Clearance_HalfLife.R | no_license | cran/PKconverter | R | false | false | 33,164 | r | #' Convert pharmacokinetic parameters for three compartment model
#'
#' Calculate pharmacokinetic parameters with volume of distributions (Vd and V1),
#' clearance (Cl1) and half-lives (t_alpha, t_beta, and t_gamma)
#'
#' @usage ThreeComp_Volume_Clearance_HalfLife(V1,Vd,Cl1,t_alpha,t_beta,t_gamma,
#' V1.sd=NA,Vd... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Decodificar.R
\name{Decodificaramb}
\alias{Decodificaramb}
\title{Decodifica o arquivo EXPORTA BPA}
\usage{
Decodificaramb()
}
\value{
Dois arquivos: BPAC e BPAI
}
\description{
Decodifica o arquivo EXPORTA BPA
}
| /man/Decodificaramb.Rd | no_license | Glauco1990/DECODIFICACAOAMB | R | false | true | 291 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Decodificar.R
\name{Decodificaramb}
\alias{Decodificaramb}
\title{Decodifica o arquivo EXPORTA BPA}
\usage{
Decodificaramb()
}
\value{
Dois arquivos: BPAC e BPAI
}
\description{
Decodifica o arquivo EXPORTA BPA
}
|
library(dendextend)
### Name: cutree_1h.dendrogram
### Title: cutree for dendrogram (by 1 height only!)
### Aliases: cutree_1h.dendrogram
### ** Examples
hc <- hclust(dist(USArrests[c(1,6,13,20, 23),]), "ave")
dend <- as.dendrogram(hc)
cutree(hc, h=50) # on hclust
cutree_1h.dendrogram(dend, h=50) # on a dendrogram
... | /data/genthat_extracted_code/dendextend/examples/cutree_1h.dendrogram.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 865 | r | library(dendextend)
### Name: cutree_1h.dendrogram
### Title: cutree for dendrogram (by 1 height only!)
### Aliases: cutree_1h.dendrogram
### ** Examples
hc <- hclust(dist(USArrests[c(1,6,13,20, 23),]), "ave")
dend <- as.dendrogram(hc)
cutree(hc, h=50) # on hclust
cutree_1h.dendrogram(dend, h=50) # on a dendrogram
... |
library(ape)
testtree <- read.tree("10415_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10415_1_unrooted.txt") | /codeml_files/newick_trees_processed/10415_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("10415_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10415_1_unrooted.txt") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calibrate.R
\name{lift}
\alias{lift}
\alias{plot.lift}
\title{Gain and lift charts}
\usage{
lift(prob, y, pos.class = NULL, cumulative = TRUE, nbins = 0)
\method{plot}{lift}(x, refline.col = "red", refline.lty = "dashed", refline.lwd = 1, ..... | /man/lift.Rd | no_license | bgreenwell/calibrater | R | false | true | 2,195 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calibrate.R
\name{lift}
\alias{lift}
\alias{plot.lift}
\title{Gain and lift charts}
\usage{
lift(prob, y, pos.class = NULL, cumulative = TRUE, nbins = 0)
\method{plot}{lift}(x, refline.col = "red", refline.lty = "dashed", refline.lwd = 1, ..... |
library(dplyr)
library(stringr)
load(url("http://alizaidi.blob.core.windows.net/training/taxi_df.RData"))
(taxi_df <- tbl_df(taxi_df))
# Include shared lib ------------------------------------------------------
.libPaths(c(.libPaths(),
"/Rlib/x86_64-pc-linux-gnu-library/3.2"))
# Standard Eva... | /class-examples.R | no_license | AAbusnina/R-cadence | R | false | false | 8,573 | r | library(dplyr)
library(stringr)
load(url("http://alizaidi.blob.core.windows.net/training/taxi_df.RData"))
(taxi_df <- tbl_df(taxi_df))
# Include shared lib ------------------------------------------------------
.libPaths(c(.libPaths(),
"/Rlib/x86_64-pc-linux-gnu-library/3.2"))
# Standard Eva... |
#' Understand what's been set inside of a **gt** table object
#'
#' @description
#'
#' It can become increasingly difficult to recall the ID values associated with
#' different labels in a **gt** table. Further to this, there are also
#' situations where **gt** will generate ID values on your behalf (e.g., with
#' [tab... | /R/tab_info.R | permissive | rstudio/gt | R | false | false | 9,919 | r | #' Understand what's been set inside of a **gt** table object
#'
#' @description
#'
#' It can become increasingly difficult to recall the ID values associated with
#' different labels in a **gt** table. Further to this, there are also
#' situations where **gt** will generate ID values on your behalf (e.g., with
#' [tab... |
# use edgeR package to analysis the gene reads and generate MDS plot and sample distance heatmap
# load the counts of each sample
MOCK<-read.table(file = "mock_gene_count.tsv",header = TRUE,row.names = 1)
IN<-read.table(file = "infect_gene_count.tsv",header = TRUE,row.names = 1)
MOCK_IN<-cbind(MOCK,IN)
... | /bulkRNAseq/run_edgeR_analysis.R | no_license | shuibingchen/COVID-19_Hearts | R | false | false | 1,631 | r | # use edgeR package to analysis the gene reads and generate MDS plot and sample distance heatmap
# load the counts of each sample
MOCK<-read.table(file = "mock_gene_count.tsv",header = TRUE,row.names = 1)
IN<-read.table(file = "infect_gene_count.tsv",header = TRUE,row.names = 1)
MOCK_IN<-cbind(MOCK,IN)
... |
library(ggplot2)
library(solitude)
library(profvis)
# source('R/generics.R')
# source('R/iforest.R')
# source('R/itree.R')
# Test based on
# https://www.kaggle.com/norealityshows/outlier-detection-with-isolation-forest-in-r
profile_build_forest = function(data) {
iForest(data)
}
profile_predict_forest = function... | /tests/profiler.R | no_license | pdjely/iforest | R | false | false | 781 | r | library(ggplot2)
library(solitude)
library(profvis)
# source('R/generics.R')
# source('R/iforest.R')
# source('R/itree.R')
# Test based on
# https://www.kaggle.com/norealityshows/outlier-detection-with-isolation-forest-in-r
profile_build_forest = function(data) {
iForest(data)
}
profile_predict_forest = function... |
# -------- calculate waves
waves <- function(x,f=60,nc=2){
# angular frequency (radians/sec)
w=2*pi*f
# period (sec)
T= 1/f
# time sequence for a number n of cycles
t = seq(0,nc*T,0.01*T); nt = length(t)
# number of waves
nw <- length(x)
# matrix with all waves, arrays with amplitude and phase
y <... | /R/ac-functions.R | no_license | cran/renpow | R | false | false | 6,431 | r | # -------- calculate waves
waves <- function(x,f=60,nc=2){
# angular frequency (radians/sec)
w=2*pi*f
# period (sec)
T= 1/f
# time sequence for a number n of cycles
t = seq(0,nc*T,0.01*T); nt = length(t)
# number of waves
nw <- length(x)
# matrix with all waves, arrays with amplitude and phase
y <... |
tic()
results <- rep(NA, nrow(cv_df))
for (i in 1:nrow(cv_df)) {
results[i] <- cv_fun(i)
}
toc() | /04_for_loop_pre_allocations.R | no_license | MJWeldy/R_GLM_speed_test | R | false | false | 103 | r | tic()
results <- rep(NA, nrow(cv_df))
for (i in 1:nrow(cv_df)) {
results[i] <- cv_fun(i)
}
toc() |
\name{InfoSaniR_extract}
\alias{InfoSaniR_extract}
\title{Extraction de tous les fichiers InfoSani annuel}
\description{Extrait automatiquement toutes les donnees brutes du fichier InfoSani dans toutes les structures sanitaires d'une province pour une annnee. Cette fonction neccessite tous les fichiers xlsx InfoSani an... | /man/InfoSaniR_extract.Rd | no_license | RegisOB/GabSaniR | R | false | false | 2,308 | rd | \name{InfoSaniR_extract}
\alias{InfoSaniR_extract}
\title{Extraction de tous les fichiers InfoSani annuel}
\description{Extrait automatiquement toutes les donnees brutes du fichier InfoSani dans toutes les structures sanitaires d'une province pour une annnee. Cette fonction neccessite tous les fichiers xlsx InfoSani an... |
################################################################################
# PLOT.MANYLM, PLOT.MANYGLM: #
# Plot for evaluation of goodness of fit for lm.mvabund objects #
##########################################################################... | /R/default.plot.manyglm.R | no_license | eddelbuettel/mvabund | R | false | false | 28,218 | r | ################################################################################
# PLOT.MANYLM, PLOT.MANYGLM: #
# Plot for evaluation of goodness of fit for lm.mvabund objects #
##########################################################################... |
\name{arimaSSM}
\alias{arimaSSM}
\title{Create a State Space Representation of ARIMA Model}
\usage{
arimaSSM(y, arima, H = NULL, Q = NULL, u = NULL,
distribution = c("Gaussian", "Poisson", "Binomial"),
transform = c("none", "ldl", "augment"),
tolF = .Machine$double.eps^0.5,
tol0 = .Machine$double.eps^... | /man/arimaSSM.Rd | no_license | snowdj/KFAS | R | false | false | 4,480 | rd | \name{arimaSSM}
\alias{arimaSSM}
\title{Create a State Space Representation of ARIMA Model}
\usage{
arimaSSM(y, arima, H = NULL, Q = NULL, u = NULL,
distribution = c("Gaussian", "Poisson", "Binomial"),
transform = c("none", "ldl", "augment"),
tolF = .Machine$double.eps^0.5,
tol0 = .Machine$double.eps^... |
lba.mle.logit <- function(obj ,
A ,
B ,
K ,
cA ,
cB ,
logitA ,
logitB ,
... | /R/lba.mle.logit.R | no_license | ivanalaman/lba | R | false | false | 26,154 | r | lba.mle.logit <- function(obj ,
A ,
B ,
K ,
cA ,
cB ,
logitA ,
logitB ,
... |
#' Multivariate Normal Order-statistics Model.
#'
#' Using MCMC methods to fit the MVNOS model. Please install JAGS 3.X (\url{http://mcmc-jags.sourceforge.net}) and rjags (\url{https://cran.r-project.org/package=rjags}) at first.
#'
#' @param y :an n*k matrix, observed data, each row is an individual's rank of ite... | /R/mvnos.model.R | no_license | cran/StatMethRank | R | false | false | 6,393 | r | #' Multivariate Normal Order-statistics Model.
#'
#' Using MCMC methods to fit the MVNOS model. Please install JAGS 3.X (\url{http://mcmc-jags.sourceforge.net}) and rjags (\url{https://cran.r-project.org/package=rjags}) at first.
#'
#' @param y :an n*k matrix, observed data, each row is an individual's rank of ite... |
#----------------------------------------------------------------------------------------------------
#' @import methods
#' @import TrenaProject
#' @importFrom AnnotationDbi select
#' @import org.Hs.eg.db
#'
#' @title TrenaProjectLymphocyte-class
#'
#' @name TrenaProjectLymphocyte-class
#' @rdname TrenaProjectLymphocyt... | /R/TrenaProjectLymphocyte.R | permissive | PriceLab/TrenaProjectLymphocyte | R | false | false | 2,734 | r | #----------------------------------------------------------------------------------------------------
#' @import methods
#' @import TrenaProject
#' @importFrom AnnotationDbi select
#' @import org.Hs.eg.db
#'
#' @title TrenaProjectLymphocyte-class
#'
#' @name TrenaProjectLymphocyte-class
#' @rdname TrenaProjectLymphocyt... |
#' @export
#' @rdname kernelfun
#'
#' @examples
#' kernel_properties("gaussian")
#'
kernel_properties <-
function(name,
derivative = FALSE)
{
name <- match.arg(tolower(name), .kernelsList())
canonical_bandwidth <- switch(name,
biweight = 5 * sqrt(7)/49,
... | /R/kernel_properties.R | no_license | paulponcet/statip | R | false | false | 5,939 | r |
#' @export
#' @rdname kernelfun
#'
#' @examples
#' kernel_properties("gaussian")
#'
kernel_properties <-
function(name,
derivative = FALSE)
{
name <- match.arg(tolower(name), .kernelsList())
canonical_bandwidth <- switch(name,
biweight = 5 * sqrt(7)/49,
... |
#' @title Backslash to Forward Slash
#'
#' @description This function is primary for windows users. When copying file paths on windows they will contain backslashes, "\", which will throw an error in R because "\" is used for escape characters. Due to how R reads "\", this function reads the filepath directly from the ... | /R/back_to_forward.R | permissive | KoderKow/kowr | R | false | false | 1,923 | r | #' @title Backslash to Forward Slash
#'
#' @description This function is primary for windows users. When copying file paths on windows they will contain backslashes, "\", which will throw an error in R because "\" is used for escape characters. Due to how R reads "\", this function reads the filepath directly from the ... |
library("data.table")
library("ggplot2")
setwd("C:/Users/Home/Desktop/coursera")
path <- getwd()
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
, destfile = paste(path, "dataFiles.zip", sep = "/"))
unzip(zipfile = "dataFiles.zip")
# Load the NEI & SCC d... | /Plot4.R | no_license | Jadson-Correa/Exploratory | R | false | false | 1,122 | r | library("data.table")
library("ggplot2")
setwd("C:/Users/Home/Desktop/coursera")
path <- getwd()
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
, destfile = paste(path, "dataFiles.zip", sep = "/"))
unzip(zipfile = "dataFiles.zip")
# Load the NEI & SCC d... |
library(phytools)
# load treespace and packages for plotting:
library(treespace)
library(phylogram)
library(phangorn)
library(seqinr)
library(adegraphics)
library(adegenet)
library(apTreeshape)
library(ggtree)
library(ape)
library(ggplot2)
library(tidyverse)
# Set seed for reproducibility
set.seed(23... | /scripts/2_Ecoli_SD_phylogenetic_tree_analysis.R | no_license | TheNoyesLab/FMPRE_WGS_project | R | false | false | 12,720 | r |
library(phytools)
# load treespace and packages for plotting:
library(treespace)
library(phylogram)
library(phangorn)
library(seqinr)
library(adegraphics)
library(adegenet)
library(apTreeshape)
library(ggtree)
library(ape)
library(ggplot2)
library(tidyverse)
# Set seed for reproducibility
set.seed(23... |
#Unzip File
unzip("exdata%2Fdata%2Fhousehold_power_consumption.zip")
#Read Household Power Consumption File
myframe<-read.table("household_power_consumption.txt",sep=";",header=TRUE)
#Transform Date column in "date" type
myframe$Date<-as.Date(myframe$Date,"%d/%m/%Y")
#Subsetting file for required dates
... | /plot3.R | no_license | cleversonsch/ExData_Plotting1 | R | false | false | 1,515 | r | #Unzip File
unzip("exdata%2Fdata%2Fhousehold_power_consumption.zip")
#Read Household Power Consumption File
myframe<-read.table("household_power_consumption.txt",sep=";",header=TRUE)
#Transform Date column in "date" type
myframe$Date<-as.Date(myframe$Date,"%d/%m/%Y")
#Subsetting file for required dates
... |
library(eba)
### Name: inclusion.rule
### Title: Inclusion Rule
### Aliases: inclusion.rule
### Keywords: models
### ** Examples
A <- list(c(1, 5), c(2, 5), c(3, 6), c(4, 6)) # tree
inclusion.rule(A)
B <- list(c(1, 5), c(2, 5, 6), c(3, 6), c(4, 6)) # lattice
inclusion.rule(B)
| /data/genthat_extracted_code/eba/examples/inclusion.rule.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 287 | r | library(eba)
### Name: inclusion.rule
### Title: Inclusion Rule
### Aliases: inclusion.rule
### Keywords: models
### ** Examples
A <- list(c(1, 5), c(2, 5), c(3, 6), c(4, 6)) # tree
inclusion.rule(A)
B <- list(c(1, 5), c(2, 5, 6), c(3, 6), c(4, 6)) # lattice
inclusion.rule(B)
|
#Tema: Tabla de frecuencias
#1.- Leer la matriz de datos
data (iris)
#2- Exploramos la matriz de datos
names (iris)
#3 Explorar la dimension de la matriz
dim (iris)
#4 identificar los tipos de variables
str(iris)
#5 detecta si hay valores perdidos
anyNA (iris)
#6 explorar una variable
iris$Species
iris$Sepal.... | /Tablas de frecuencia.R | no_license | Vale9908/Probabilidad-y-estadistica | R | false | false | 1,293 | r |
#Tema: Tabla de frecuencias
#1.- Leer la matriz de datos
data (iris)
#2- Exploramos la matriz de datos
names (iris)
#3 Explorar la dimension de la matriz
dim (iris)
#4 identificar los tipos de variables
str(iris)
#5 detecta si hay valores perdidos
anyNA (iris)
#6 explorar una variable
iris$Species
iris$Sepal.... |
#' Compare the frequency of observed edges of a specific type and the expected frequency of these edges, given the presence of a different edge type
#'
#' @param GO A vector of Strings, equal to the length of all the nodes. The names of the vector should be the names of the nodes. The values should either be the func... | /R/metapafway.R | no_license | cran/PAFway | R | false | false | 3,694 | r | #' Compare the frequency of observed edges of a specific type and the expected frequency of these edges, given the presence of a different edge type
#'
#' @param GO A vector of Strings, equal to the length of all the nodes. The names of the vector should be the names of the nodes. The values should either be the func... |
#' Objects, features
#'
#' The objects are the front end entities, the usual "GIS contract" objects,
#' the features.
#'
#' @seealso `sc_coord` for the coordinates part of the model, `sc_path` for
#' the central part of the model, and `PATH` for the full model.
#' @name sc_object
#' @importFrom tibble as_tibble
#... | /R/sf-object.r | no_license | MilesMcBain/silicate | R | false | false | 788 | r | #' Objects, features
#'
#' The objects are the front end entities, the usual "GIS contract" objects,
#' the features.
#'
#' @seealso `sc_coord` for the coordinates part of the model, `sc_path` for
#' the central part of the model, and `PATH` for the full model.
#' @name sc_object
#' @importFrom tibble as_tibble
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.misc.R
\name{model.laws}
\alias{model.laws}
\title{Laws et al Model}
\usage{
model.laws(NPP, SST, chl = NULL)
}
\description{
Laws et al Model
}
\author{
Thomas Bryce Kelly
}
| /man/model.laws.Rd | no_license | tbrycekelly/TheSource | R | false | true | 259 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.misc.R
\name{model.laws}
\alias{model.laws}
\title{Laws et al Model}
\usage{
model.laws(NPP, SST, chl = NULL)
}
\description{
Laws et al Model
}
\author{
Thomas Bryce Kelly
}
|
#' @author Gregoire Versmee, Laura Versmee
available.result <- function(env, resultID, token, verbose = FALSE) {
count <- 0L
message("\nWaiting for PIC-SURE to return the query")
status <- content.get(paste0(env, "/rest/v1/resultService/resultStatus/", resultID), token)$status
while (status != 'AVAILABLE')... | /R/available.result.R | no_license | gversmee/picsuRe | R | false | false | 685 | r | #' @author Gregoire Versmee, Laura Versmee
available.result <- function(env, resultID, token, verbose = FALSE) {
count <- 0L
message("\nWaiting for PIC-SURE to return the query")
status <- content.get(paste0(env, "/rest/v1/resultService/resultStatus/", resultID), token)$status
while (status != 'AVAILABLE')... |
##remove all R objects from memory
rm(list = ls())
##Simply highlight all and click run
##Jeremy Koelmel - 04/22/2019
########################Other Parameters, can manually change########################
#which inclusion list format are you using?
waters=TRUE #are you using waters (may not be applicable to all instru... | /Inclusion/2019_05_08_IntelligentAcquisition_Inclusion.R | permissive | GarrettLab-UF/IntelligentAcquisition | R | false | false | 22,565 | r | ##remove all R objects from memory
rm(list = ls())
##Simply highlight all and click run
##Jeremy Koelmel - 04/22/2019
########################Other Parameters, can manually change########################
#which inclusion list format are you using?
waters=TRUE #are you using waters (may not be applicable to all instru... |
# Clean up workspace
#rm(list = ls())
# load libs
library(ggplot2)
# read data files
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
bwiLAX <- NEI[NEI$type=="ON-ROAD" & (NEI$fips=="24510" | NEI$fips=="06037"), ]
bwiLAXagg <- aggregate(Emissions ~ year+fips, bwiLAX, sum)
bwiLA... | /plot6.R | no_license | sauceress/exploratory-data-analysis-course-project2 | R | false | false | 1,164 | r | # Clean up workspace
#rm(list = ls())
# load libs
library(ggplot2)
# read data files
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
bwiLAX <- NEI[NEI$type=="ON-ROAD" & (NEI$fips=="24510" | NEI$fips=="06037"), ]
bwiLAXagg <- aggregate(Emissions ~ year+fips, bwiLAX, sum)
bwiLA... |
### R code from vignette source 'simstudy_survival.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: simstudy_survival.Rnw:13-43
###################################################
# Chunk 1
library(CALIBERrfimpute)
library(missForest)
library(survival)
library(xtabl... | /inst/doc/simstudy_survival.R | no_license | cran/CALIBERrfimpute | R | false | false | 19,598 | r | ### R code from vignette source 'simstudy_survival.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: simstudy_survival.Rnw:13-43
###################################################
# Chunk 1
library(CALIBERrfimpute)
library(missForest)
library(survival)
library(xtabl... |
# Loading required packages
library(shiny)
library(XML)
# Reading and cleaning country data with average male and female BMI from Wiki
url<-"http://en.wikipedia.org/wiki/Body_mass_index"
table<-readHTMLTable(url)[[7]]
table<-table[,!grepl("Relative|Ratio|Average",names(table))]
table<-table[1:177,]
names(table)<-c("co... | /ui.R | no_license | ivasche/dataproducts-project | R | false | false | 1,238 | r | # Loading required packages
library(shiny)
library(XML)
# Reading and cleaning country data with average male and female BMI from Wiki
url<-"http://en.wikipedia.org/wiki/Body_mass_index"
table<-readHTMLTable(url)[[7]]
table<-table[,!grepl("Relative|Ratio|Average",names(table))]
table<-table[1:177,]
names(table)<-c("co... |
testlist <- list(A = structure(c(2.08997924505417e-236, 4.1223404161408e-294, 1.41355599731096e-303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(2L, 10L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613108460-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 278 | r | testlist <- list(A = structure(c(2.08997924505417e-236, 4.1223404161408e-294, 1.41355599731096e-303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(2L, 10L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
################################################################################
# Aim: Download full text pdfs, given PMID and url
#
# Contact: Herm Lamberink, h.j.lamberink@umcutrecht.nl
# Date: 2018-03-19
#############################
.libPaths( c(.libPaths(), "/mnt/data/live02/stress/hlamberink/RLibrary"... | /scripts/obtainingPDFS/7_url.to.pdfdownloadRE23.R | permissive | wmotte/frrp | R | false | false | 83,855 | r | ################################################################################
# Aim: Download full text pdfs, given PMID and url
#
# Contact: Herm Lamberink, h.j.lamberink@umcutrecht.nl
# Date: 2018-03-19
#############################
.libPaths( c(.libPaths(), "/mnt/data/live02/stress/hlamberink/RLibrary"... |
#' List .csv files in a directory
#' @param csv.dir character or file.path, target directory
#' @return character, file names
#' @export
get_csv_files <- function(csv.dir){
csv.files <- list.files(file.path(root.dir, csv.dir), pattern = ".csv", full.names = TRUE)
return(csv.files)
}
#' Read .csv files to create a ci... | /R/data_loading.R | permissive | hrvg/wateReview | R | false | false | 8,212 | r | #' List .csv files in a directory
#' @param csv.dir character or file.path, target directory
#' @return character, file names
#' @export
get_csv_files <- function(csv.dir){
csv.files <- list.files(file.path(root.dir, csv.dir), pattern = ".csv", full.names = TRUE)
return(csv.files)
}
#' Read .csv files to create a ci... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset-format.R
\name{FileFormat}
\alias{FileFormat}
\alias{ParquetFileFormat}
\alias{IpcFileFormat}
\alias{CsvFileFormat}
\title{Dataset file formats}
\description{
A \code{FileFormat} holds information about how to read and parse the files... | /r/man/FileFormat.Rd | permissive | Sebastiaan-Alvarez-Rodriguez/arrow | R | false | true | 2,498 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset-format.R
\name{FileFormat}
\alias{FileFormat}
\alias{ParquetFileFormat}
\alias{IpcFileFormat}
\alias{CsvFileFormat}
\title{Dataset file formats}
\description{
A \code{FileFormat} holds information about how to read and parse the files... |
#Auxiliary Functions
#to avoid using deprecated dplyr package, use it's mapvalues function
mapvalues <- function(x, from, to, warn_missing = TRUE) {
if (length(from) != length(to)) {
stop("`from` and `to` vectors are not the same length.")
}
if (!is.atomic(x)) {
stop("`x` must be an atomic vector.")
}
... | /R/auxiliary_functions.R | permissive | Mareasunami/witch-plot | R | false | false | 9,995 | r | #Auxiliary Functions
#to avoid using deprecated dplyr package, use it's mapvalues function
mapvalues <- function(x, from, to, warn_missing = TRUE) {
if (length(from) != length(to)) {
stop("`from` and `to` vectors are not the same length.")
}
if (!is.atomic(x)) {
stop("`x` must be an atomic vector.")
}
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/reverse_ip.R
\name{reverse_ip}
\alias{reverse_ip}
\title{Reverse IP}
\usage{
reverse_ip(ip, limit = NULL)
}
\arguments{
\item{ip}{IP address to perform the reverse IP query}
\item{limit}{Limits the size of the domain list than can ap... | /man/reverse_ip.Rd | no_license | cneskey/domaintools | R | false | false | 887 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/reverse_ip.R
\name{reverse_ip}
\alias{reverse_ip}
\title{Reverse IP}
\usage{
reverse_ip(ip, limit = NULL)
}
\arguments{
\item{ip}{IP address to perform the reverse IP query}
\item{limit}{Limits the size of the domain list than can ap... |
setwd("C:/Users/Cecilia/Google Drive/STAT/STAT research/Urban")
landuse.load = FALSE
## Ceci you probably don't have this?
source("code/plotcode/plotinit.R")
##------------------------------------##
### crime data
## import
crime.pre <- read.csv("data/csv/crimeupdatedcsv.csv",
sep = ",... | /get_data/subsetup/setupcrime_colman.R | no_license | rzgross/Urban-project | R | false | false | 5,923 | r | setwd("C:/Users/Cecilia/Google Drive/STAT/STAT research/Urban")
landuse.load = FALSE
## Ceci you probably don't have this?
source("code/plotcode/plotinit.R")
##------------------------------------##
### crime data
## import
crime.pre <- read.csv("data/csv/crimeupdatedcsv.csv",
sep = ",... |
## Ankurjha17 - Coursera - R Programming - Assignment 2
## Functions and their descriptions:
#-------------------------------------------------------------------
## - makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse
#----------------------------------------------------------... | /cachematrix.R | no_license | ankurjha17/R-_prog_assign | R | false | false | 1,389 | r | ## Ankurjha17 - Coursera - R Programming - Assignment 2
## Functions and their descriptions:
#-------------------------------------------------------------------
## - makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse
#----------------------------------------------------------... |
#' Remove observations with missing values
#'
#' `step_naomit` creates a *specification* of a recipe step that
#' will remove observations (rows of data) if they contain `NA`
#' or `NaN` values.
#'
#' @param recipe A recipe object. The step will be added to the sequence of
#' operations for this recipe.
#' @param... | /R/naomit.R | no_license | p-hunter/recipes | R | false | false | 3,049 | r | #' Remove observations with missing values
#'
#' `step_naomit` creates a *specification* of a recipe step that
#' will remove observations (rows of data) if they contain `NA`
#' or `NaN` values.
#'
#' @param recipe A recipe object. The step will be added to the sequence of
#' operations for this recipe.
#' @param... |
# The aim of this code is to prepare the mortality data
# for use in estimating smoking transition probabilities
# and for use in the simulation model
library(data.table)
library(mort.tools)
library(readxl)
library(ggplot2)
library(magrittr)
# Load the mortality data
# This is stored on the university's X drive
# ... | /src/15_prep_mortality.R | no_license | VictimOfMaths/smoking_intervention_analysis | R | false | false | 3,264 | r |
# The aim of this code is to prepare the mortality data
# for use in estimating smoking transition probabilities
# and for use in the simulation model
library(data.table)
library(mort.tools)
library(readxl)
library(ggplot2)
library(magrittr)
# Load the mortality data
# This is stored on the university's X drive
# ... |
#' @import purrr
#' @import stats
#' @importFrom magrittr %>%
#' @details
#' Linear Regression with Little Bag of Bootstraps
utils::globalVariables(c("."))
#' Bag of Little Boostraps Linear Regression
#' @param formula formula
#' @param data dataset of interest
#' @param m int: number of groups to split data into, used... | /R/blblm.R | permissive | jwebb1197/Bag_of_Little_Bootstraps | R | false | false | 7,270 | r | #' @import purrr
#' @import stats
#' @importFrom magrittr %>%
#' @details
#' Linear Regression with Little Bag of Bootstraps
utils::globalVariables(c("."))
#' Bag of Little Boostraps Linear Regression
#' @param formula formula
#' @param data dataset of interest
#' @param m int: number of groups to split data into, used... |
#Examine LST file
library(tidyverse)
library(HOAL)
library(magrittr)
dir <- "D:/PhD/HOAL/modelling/HGS_model/HOAL_PEST_PP_3zn_run"
lst <- readLines(con = list.files(path = dir, pattern = "(\\.lst)$", full.names = T))
ln_sol <- grep("(SOLUTION FOR TIMESTEP)", x = lst)
ln_wb <- grep("(FLUID BALANCE, TIME:)", x = lst)... | /HGSlst.R | no_license | pavlopavlin/RHGS | R | false | false | 4,928 | r | #Examine LST file
library(tidyverse)
library(HOAL)
library(magrittr)
dir <- "D:/PhD/HOAL/modelling/HGS_model/HOAL_PEST_PP_3zn_run"
lst <- readLines(con = list.files(path = dir, pattern = "(\\.lst)$", full.names = T))
ln_sol <- grep("(SOLUTION FOR TIMESTEP)", x = lst)
ln_wb <- grep("(FLUID BALANCE, TIME:)", x = lst)... |
# Effect of high-wage job growth on housing demand on the San Francisco Bay Area
# Analysis using the Longitudinal Employer-Household Dynamics Origin-Destination
# Employment Statistics (LODES) data 2008-2013 and the American Community Survey
#
# Alex Karner, alex.karner@coa.gatech.edu
# Chris Benner, cbenner@ucsc.edu
... | /04_Analyze flow data.R | no_license | aakarner/job-growth-affordability | R | false | false | 9,006 | r | # Effect of high-wage job growth on housing demand on the San Francisco Bay Area
# Analysis using the Longitudinal Employer-Household Dynamics Origin-Destination
# Employment Statistics (LODES) data 2008-2013 and the American Community Survey
#
# Alex Karner, alex.karner@coa.gatech.edu
# Chris Benner, cbenner@ucsc.edu
... |
#Import Data and subset for the test set:
all.cesd <- fread("cesd_item_level.csv", header = T)
all.cesd<- unique(all.cesd, by='userid')
names(all.cesd)
cesd <- all.cesd[,-(2:7)]
cesd[cesd == -1] <- NA
cesd[cesd == 0] <- NA
cesd.noNA <- na.omit(cesd)
sapply(cesd.noNA[,q1:q20], function(x) table(is.na(x)))
cor(cesd.n... | /cesd.R | no_license | GalBenY/Predictive-Five | R | false | false | 1,333 | r |
#Import Data and subset for the test set:
all.cesd <- fread("cesd_item_level.csv", header = T)
all.cesd<- unique(all.cesd, by='userid')
names(all.cesd)
cesd <- all.cesd[,-(2:7)]
cesd[cesd == -1] <- NA
cesd[cesd == 0] <- NA
cesd.noNA <- na.omit(cesd)
sapply(cesd.noNA[,q1:q20], function(x) table(is.na(x)))
cor(cesd.n... |
test_that("test praise works", {
expect_identical(praise("Jingxu"),
glue::glue("You're the best, Jingxu!"))
expect_identical(praise("Jingxu", ";"),
glue::glue("You're the best, Jingxu;"))
expect_error(praise())
})
| /tests/testthat/test-praise.R | permissive | JingxuJ/praiseme | R | false | false | 258 | r | test_that("test praise works", {
expect_identical(praise("Jingxu"),
glue::glue("You're the best, Jingxu!"))
expect_identical(praise("Jingxu", ";"),
glue::glue("You're the best, Jingxu;"))
expect_error(praise())
})
|
context("Dictionary")
test_that("Dictionary", {
Foo = R6::R6Class("Foo", public = list(x=0, id=NULL, initialize = function(x) self$x = x), cloneable = TRUE)
d = Dictionary$new()
expect_identical(d$keys(), character(0L))
f1 = Foo
f2 = Foo
expect_false(d$has("f1"))
d$add("f1", f1)
expect_identical(d$ke... | /tests/testthat/test_Dictionary.R | permissive | Pinto-P/mlr3 | R | false | false | 2,057 | r | context("Dictionary")
test_that("Dictionary", {
Foo = R6::R6Class("Foo", public = list(x=0, id=NULL, initialize = function(x) self$x = x), cloneable = TRUE)
d = Dictionary$new()
expect_identical(d$keys(), character(0L))
f1 = Foo
f2 = Foo
expect_false(d$has("f1"))
d$add("f1", f1)
expect_identical(d$ke... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/idealised-pathway-cost.R
\name{calcIdealisedTestCosts}
\alias{calcIdealisedTestCosts}
\title{Calculate NICE Idealised Test Costs}
\usage{
calcIdealisedTestCosts(data, BAL = FALSE, Dosanjh3TB = FALSE,
return = "matrix")
}
\arguments{
\item{d... | /man/calcIdealisedTestCosts.Rd | no_license | n8thangreen/IDEAdectree | R | false | true | 1,358 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/idealised-pathway-cost.R
\name{calcIdealisedTestCosts}
\alias{calcIdealisedTestCosts}
\title{Calculate NICE Idealised Test Costs}
\usage{
calcIdealisedTestCosts(data, BAL = FALSE, Dosanjh3TB = FALSE,
return = "matrix")
}
\arguments{
\item{d... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{scale_size_area}
\alias{scale_size_area}
\title{Scale area instead of radius, for size.}
\usage{
scale_size_area(..., max_size = 6)
}
\arguments{
\item{...}{Other arguments passed on to
\code{\link{continuous_scale}} to control name, limits,
breaks, label... | /man/scale_size_area.Rd | no_license | nietzsche1993/ggplot2 | R | false | false | 736 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{scale_size_area}
\alias{scale_size_area}
\title{Scale area instead of radius, for size.}
\usage{
scale_size_area(..., max_size = 6)
}
\arguments{
\item{...}{Other arguments passed on to
\code{\link{continuous_scale}} to control name, limits,
breaks, label... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{get_size_cpp}
\alias{get_size_cpp}
\title{File size}
\usage{
get_size_cpp(filename)
}
\arguments{
\item{filename}{a character string specifying the name of the file to be
processed with \code{pcadapt}.}
}
\value{
The retu... | /man/get_size_cpp.Rd | no_license | keurcien/pcadapt | R | false | true | 492 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{get_size_cpp}
\alias{get_size_cpp}
\title{File size}
\usage{
get_size_cpp(filename)
}
\arguments{
\item{filename}{a character string specifying the name of the file to be
processed with \code{pcadapt}.}
}
\value{
The retu... |
# Description:
# run goseq to identify enriched gene ontology biological processes
library(goseq)
# Repeated for ARPE-19 and MIO-M1 analyses
path = '/analysis/arpe19_miom1/results'
dir.create(file.path(path, 'goseq'), showWarnings = F)
# load gene length info
gene.length = read.csv(file.path(path, 'gene_length.csv')... | /goseq.R | no_license | zshao1/RSG_H2O2 | R | false | false | 3,730 | r | # Description:
# run goseq to identify enriched gene ontology biological processes
library(goseq)
# Repeated for ARPE-19 and MIO-M1 analyses
path = '/analysis/arpe19_miom1/results'
dir.create(file.path(path, 'goseq'), showWarnings = F)
# load gene length info
gene.length = read.csv(file.path(path, 'gene_length.csv')... |
theme_depth <- function(...) {
theme_minimal() +
theme(
text = element_text(family = "Hanalei", color = "#5e644f"),
axis.line = element_blank(),
axis.text.x = element_blank(),
axis.text.y = element_bl... | /R/themes/depth_theme.R | permissive | moldach/mahalo | R | false | false | 1,356 | r | theme_depth <- function(...) {
theme_minimal() +
theme(
text = element_text(family = "Hanalei", color = "#5e644f"),
axis.line = element_blank(),
axis.text.x = element_blank(),
axis.text.y = element_bl... |
#' Check model function
#'
#' Generates a synthetic time series with the given properties and compares its sample statistics with the theoretically expected values.
#'
#' @inheritParams generateTS
#' @param plot logical - plot the result? (if TRUE, saved as an attribute 'plot')
#' @param returnTS logical - return times... | /R/check.R | no_license | SalmaHobbi/CoSMoS | R | false | false | 7,037 | r | #' Check model function
#'
#' Generates a synthetic time series with the given properties and compares its sample statistics with the theoretically expected values.
#'
#' @inheritParams generateTS
#' @param plot logical - plot the result? (if TRUE, saved as an attribute 'plot')
#' @param returnTS logical - return times... |
#
# gene_enhancer_correlation.R -- correlates gene expression with enhancer initiation levels.
#
as <- rbind(read.table("tmp/H.change-U.tsspc.enh"), read.table("tmp/C.change-U.tsspc.enh"), read.table("tmp/M.change-U.tsspc.enh"))
#as <- as[abs(as$V7)>1,]
print(cor.test(as$V5, as$V7))
print(cor.test(as$V5, as$V7, meth... | /gene_enhancer/gene_enhancer_correlation.R | no_license | Danko-Lab/CD4-Cell-Evolution | R | false | false | 2,586 | r | #
# gene_enhancer_correlation.R -- correlates gene expression with enhancer initiation levels.
#
as <- rbind(read.table("tmp/H.change-U.tsspc.enh"), read.table("tmp/C.change-U.tsspc.enh"), read.table("tmp/M.change-U.tsspc.enh"))
#as <- as[abs(as$V7)>1,]
print(cor.test(as$V5, as$V7))
print(cor.test(as$V5, as$V7, meth... |
#library(Rcpp); library(mvtnorm); library(msm); sourceCpp ("../src/cid.cpp"); source("CID-basefunctions.R");
# Latent Vector Model: Reference Class
# Y_ij = q_i'q_j + e_ij
#This version: no multiplicative factor, just yet. Too much bother at this point to get it right.
LVMcid <-
setRefClass(
"LVMcid",
fie... | /R/LVM-reference.R | no_license | bdabbs13/CIDnetworks | R | false | false | 8,008 | r |
#library(Rcpp); library(mvtnorm); library(msm); sourceCpp ("../src/cid.cpp"); source("CID-basefunctions.R");
# Latent Vector Model: Reference Class
# Y_ij = q_i'q_j + e_ij
#This version: no multiplicative factor, just yet. Too much bother at this point to get it right.
LVMcid <-
setRefClass(
"LVMcid",
fie... |
#' run.harmony - dun Harmony alignment on a data.table
#'
#' This function allows you to run the 'Harmony' data alignment algorithm on single cell or cytometry data stored in a data.table
#'
#' @usage run.harmony()
#'
#' @param dat NO DEFAULT. A data.table with all of the data you wish to align
#' @param align.cols N... | /R/run.harmony.R | permissive | denvercal1234GitHub/Spectre | R | false | false | 7,088 | r | #' run.harmony - dun Harmony alignment on a data.table
#'
#' This function allows you to run the 'Harmony' data alignment algorithm on single cell or cytometry data stored in a data.table
#'
#' @usage run.harmony()
#'
#' @param dat NO DEFAULT. A data.table with all of the data you wish to align
#' @param align.cols N... |
#######################################
# Stats course lab assignment -- Part 4
# Pierre Dragicevic, Oct 2014
# Updated Sep 2015
#######################################
# The last part of this assignment consists in finishing analyzing the salesman
# dataset seen during the class. Remember that we were able to ... | /part4-salesmen.R | no_license | wangcan04/Ranalysis-visualize | R | false | false | 4,514 | r | #######################################
# Stats course lab assignment -- Part 4
# Pierre Dragicevic, Oct 2014
# Updated Sep 2015
#######################################
# The last part of this assignment consists in finishing analyzing the salesman
# dataset seen during the class. Remember that we were able to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/G.RESULT-data.R
\docType{data}
\name{G_RESULT}
\alias{G_RESULT}
\title{G_RESULT data set}
\format{An object of class \code{CompressedGRangesList} of length 5397.}
\usage{
data("G.RESULT")
}
\description{
G_RESULT data set
}
\refe... | /man/G_RESULT.Rd | no_license | bioboatr/Zwyx | R | false | true | 390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/G.RESULT-data.R
\docType{data}
\name{G_RESULT}
\alias{G_RESULT}
\title{G_RESULT data set}
\format{An object of class \code{CompressedGRangesList} of length 5397.}
\usage{
data("G.RESULT")
}
\description{
G_RESULT data set
}
\refe... |
###### TCGA Clinical Data Analysis - BRCA #######
# cleaning and exploring dataset
#### Loading Libraries ####
install.packages("tidyverse", dependencies = TRUE)
install.packages("skimr", dependencies = TRUE)
install.packages("finalfit", dependencies = TRUE)
library(tidyverse)
library(skimr)
library(finalfit... | /TCGAClinic_BRCA.R | no_license | raquelpontesm/BRCA-TCGAA | R | false | false | 6,903 | r | ###### TCGA Clinical Data Analysis - BRCA #######
# cleaning and exploring dataset
#### Loading Libraries ####
install.packages("tidyverse", dependencies = TRUE)
install.packages("skimr", dependencies = TRUE)
install.packages("finalfit", dependencies = TRUE)
library(tidyverse)
library(skimr)
library(finalfit... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/supervised-model-deployment.R
\docType{class}
\name{SupervisedModelDeployment}
\alias{SupervisedModelDeployment}
\title{Deploy predictive models, created on your data}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
... | /man/SupervisedModelDeployment.Rd | permissive | jamesjsommer/healthcareai-r | R | false | true | 665 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/supervised-model-deployment.R
\docType{class}
\name{SupervisedModelDeployment}
\alias{SupervisedModelDeployment}
\title{Deploy predictive models, created on your data}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RCy3-deprecated.R
\name{getDefaultNodeReverseSelectionColor}
\alias{getDefaultNodeReverseSelectionColor}
\alias{getDefaultNodeReverseSelectionColordefunct}
\title{DEFUNCT: getDefaultNodeReverseSelectionColor}
\usage{
getDefaultNodeReverseSele... | /man/getDefaultNodeReverseSelectionColor-defunct.Rd | permissive | olbeimarton/RCy3 | R | false | true | 437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RCy3-deprecated.R
\name{getDefaultNodeReverseSelectionColor}
\alias{getDefaultNodeReverseSelectionColor}
\alias{getDefaultNodeReverseSelectionColordefunct}
\title{DEFUNCT: getDefaultNodeReverseSelectionColor}
\usage{
getDefaultNodeReverseSele... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/promillo.R
\name{tell_me_how_drunk}
\alias{tell_me_how_drunk}
\title{Tell me how drunk}
\usage{
tell_me_how_drunk(
age,
sex = c("male", "female"),
height,
weight,
drinking_time,
drinks
)
}
\arguments{
\item{age}{person's in years}... | /promillo/man/tell_me_how_drunk.Rd | permissive | fort-w2021/promillo-ex-muskuloes | R | false | true | 628 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/promillo.R
\name{tell_me_how_drunk}
\alias{tell_me_how_drunk}
\title{Tell me how drunk}
\usage{
tell_me_how_drunk(
age,
sex = c("male", "female"),
height,
weight,
drinking_time,
drinks
)
}
\arguments{
\item{age}{person's in years}... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11590
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11170
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11170
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Seidl/ASP_Program_Inclusion/T-adeu-32/T-adeu-32.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 2,312 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11590
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11170
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11170
c
c Input Parameter (command line, ... |
## -----------------------------------------------------------------
## IGraph R package
## Copyright (C) 2005-2014 Gabor Csardi <csardi.gabor@gmail.com>
## 334 Harvard street, Cambridge, MA 02139 USA
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the ... | /R/games.R | no_license | ktargows/rigraph | R | false | false | 71,075 | r |
## -----------------------------------------------------------------
## IGraph R package
## Copyright (C) 2005-2014 Gabor Csardi <csardi.gabor@gmail.com>
## 334 Harvard street, Cambridge, MA 02139 USA
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/x169.R
\name{x169}
\alias{x169}
\title{x169 graphs
List all possible x169 graphs based on given SIX nodes}
\usage{
x169(x)
}
\arguments{
\item{x}{The vector representing nodes}
}
\value{
A matrix listing edges of x169 graphs
}
\description{
x... | /man/x169.Rd | no_license | placeboo/subgraph | R | false | true | 414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/x169.R
\name{x169}
\alias{x169}
\title{x169 graphs
List all possible x169 graphs based on given SIX nodes}
\usage{
x169(x)
}
\arguments{
\item{x}{The vector representing nodes}
}
\value{
A matrix listing edges of x169 graphs
}
\description{
x... |
\name{text2color}
\alias{text2color}
\title{Map Words to Colors}
\usage{
text2color(words, recode.words, colors)
}
\arguments{
\item{words}{A vector of words.}
\item{recode.words}{A vector of unique words or a list of
unique word vectors that will be matched against
corresponding colors.}
\item{colors}{A ... | /man/text2color.Rd | no_license | abresler/qdap | R | false | false | 1,007 | rd | \name{text2color}
\alias{text2color}
\title{Map Words to Colors}
\usage{
text2color(words, recode.words, colors)
}
\arguments{
\item{words}{A vector of words.}
\item{recode.words}{A vector of unique words or a list of
unique word vectors that will be matched against
corresponding colors.}
\item{colors}{A ... |
# Jake Yeung
# Date of Creation: 2021-02-11
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/correct_batch_effects/1-correct_batch_effects_from_TES_from_LDA.R
#
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(scchicFuncs)
library(topicmodel... | /scripts/rstudioserver_analysis/spikeins/correct_batch_effects/1-correct_batch_effects_from_TES_from_LDA.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 4,814 | r | # Jake Yeung
# Date of Creation: 2021-02-11
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/correct_batch_effects/1-correct_batch_effects_from_TES_from_LDA.R
#
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(scchicFuncs)
library(topicmodel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.