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 |
|---|---|---|---|---|---|---|---|---|---|
# Jake Yeung
# Date of Creation: 2020-12-11
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/primetime_plots/3-bone_marrow_celltypes.redo_add_rnaseq.R
#
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(scchicFuncs)
library(topicmodels)
librar... | /scripts/rstudioserver_analysis/spikeins/primetime_plots/3-bone_marrow_celltypes.redo_add_rnaseq.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 14,413 | r | # Jake Yeung
# Date of Creation: 2020-12-11
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/primetime_plots/3-bone_marrow_celltypes.redo_add_rnaseq.R
#
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(scchicFuncs)
library(topicmodels)
librar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpMethods.R
\name{meanfield.lgcpPredict}
\alias{meanfield.lgcpPredict}
\title{meanfield.lgcpPredict function}
\usage{
\method{meanfield}{lgcpPredict}(obj, ...)
}
\arguments{
\item{obj}{an object of class lgcpPredict}
\item{...}{additional ... | /man/meanfield.lgcpPredict.Rd | no_license | jmarshallnz/lgcp | R | false | true | 595 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpMethods.R
\name{meanfield.lgcpPredict}
\alias{meanfield.lgcpPredict}
\title{meanfield.lgcpPredict function}
\usage{
\method{meanfield}{lgcpPredict}(obj, ...)
}
\arguments{
\item{obj}{an object of class lgcpPredict}
\item{...}{additional ... |
#
# Copyright (C) 2013-2018 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program i... | /R/auditClassicalWorkflow.R | no_license | jasp-stats/jaspAudit | R | false | false | 1,006 | r | #
# Copyright (C) 2013-2018 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program i... |
nu<-3
UUU<-function(s){
curr.y1<-y
curr.y1[missing]<-curr.missing[s,]
curr.iR1<-kronecker(icurr.ome[s,,],curr.iT[s,,])
curr.iS1<-kronecker(icurr.sig[s,,],curr.iA[s,,])
EVAL_LIK1<--0.5*sNi*determinant(curr.ome[s,,])$modulus[1]-0.5*kk*curr.detT[s]-0.5*as.vector(matrix(curr.y1-curr.eta[s,],nrow=1)%*%curr.iR1%*... | /UUU_B.R | no_license | amo105/chemicalkinetics | R | false | false | 883 | r | nu<-3
UUU<-function(s){
curr.y1<-y
curr.y1[missing]<-curr.missing[s,]
curr.iR1<-kronecker(icurr.ome[s,,],curr.iT[s,,])
curr.iS1<-kronecker(icurr.sig[s,,],curr.iA[s,,])
EVAL_LIK1<--0.5*sNi*determinant(curr.ome[s,,])$modulus[1]-0.5*kk*curr.detT[s]-0.5*as.vector(matrix(curr.y1-curr.eta[s,],nrow=1)%*%curr.iR1%*... |
pcda <- function(Xr, Yr, Xu, Yu = NULL, ncomp, algo = NULL, da = dalm, ...) {
Xr <- .matrix(Xr)
zdim <- dim(Xr)
n <- zdim[1]
p <- zdim[2]
Xu <- .matrix(Xu)
m <- dim(Xu)[1]
dots <- list(...)
namdot <- names(dots)
if(is.null(algo))
if(n < p)
algo <- ... | /R/pcda.R | no_license | mlesnoff/rnirs | R | false | false | 1,800 | r | pcda <- function(Xr, Yr, Xu, Yu = NULL, ncomp, algo = NULL, da = dalm, ...) {
Xr <- .matrix(Xr)
zdim <- dim(Xr)
n <- zdim[1]
p <- zdim[2]
Xu <- .matrix(Xu)
m <- dim(Xu)[1]
dots <- list(...)
namdot <- names(dots)
if(is.null(algo))
if(n < p)
algo <- ... |
#=======================================
# Prediction of turning points
# Author: Yanwen Zhang
# Date: Apr 2, 2020
# Description: In the paper <Tracking_and_forecasting_milepost_moments_of_the_epidemic_in_the_early_outbreak__framework_and_applications_to_the_COVID_19>, we proposed a method to predict "turning points", ... | /data and code for paper/code_for_prediction.R | permissive | Vicky-Zh/Tracking_and_forecasting_milepost_moments_of_COVID-19 | R | false | false | 11,155 | r | #=======================================
# Prediction of turning points
# Author: Yanwen Zhang
# Date: Apr 2, 2020
# Description: In the paper <Tracking_and_forecasting_milepost_moments_of_the_epidemic_in_the_early_outbreak__framework_and_applications_to_the_COVID_19>, we proposed a method to predict "turning points", ... |
trees <- read.csv("datos/trees.csv")
library(ggplot2)
ggplot(trees, aes(x= dbh, y=height)) + geom_point()
m1 <- lm(height ~ dbh, data = trees)
summary(m1)
hist(residuals(m1))
nuevosdbh <- c(10, 20, 30, 40, 50)
predict(m1, se.fit = TRUE,
newdata = data.frame(dbh = nuevosdbh))
plot(m1)
library(effects)
plot(allEf... | /scripts/arbol.R | no_license | Rstats-courses/MasterUHU | R | false | false | 1,118 | r | trees <- read.csv("datos/trees.csv")
library(ggplot2)
ggplot(trees, aes(x= dbh, y=height)) + geom_point()
m1 <- lm(height ~ dbh, data = trees)
summary(m1)
hist(residuals(m1))
nuevosdbh <- c(10, 20, 30, 40, 50)
predict(m1, se.fit = TRUE,
newdata = data.frame(dbh = nuevosdbh))
plot(m1)
library(effects)
plot(allEf... |
#' @title Legend for Choropleth Maps
#' @description Plot legend for choropleth maps.
#' @name legendChoro
#' @param pos position of the legend, one of "topleft", "top",
#' "topright", "right", "bottomright", "bottom", "bottomleft",
#' "bottomleftextra", "left" or a vector of two coordinates in map units
#' (c(x, y)... | /R/legends.R | no_license | riatelab/cartography | R | false | false | 51,519 | r | #' @title Legend for Choropleth Maps
#' @description Plot legend for choropleth maps.
#' @name legendChoro
#' @param pos position of the legend, one of "topleft", "top",
#' "topright", "right", "bottomright", "bottom", "bottomleft",
#' "bottomleftextra", "left" or a vector of two coordinates in map units
#' (c(x, y)... |
summary(tir_municipio)
#itr_municipio<-
itr_municipio<-
tir_municipio %>%
mutate(media = rowMeans(.[,-1:-2], na.rm = TRUE)) %>%
pivot_longer(!c(1:2,23),names_to = "ano", values_to = "valor" ) %>%
mutate(valor = ifelse(is.na(valor), media,valor )) %>%
separate(UF, sep = "-",into = c("UF", "Sigla_UF"))
i... | /2_manipula_dados/4_trata_dados.R | no_license | fernandobarbalho/curso_enap_dez_2020 | R | false | false | 2,495 | r |
summary(tir_municipio)
#itr_municipio<-
itr_municipio<-
tir_municipio %>%
mutate(media = rowMeans(.[,-1:-2], na.rm = TRUE)) %>%
pivot_longer(!c(1:2,23),names_to = "ano", values_to = "valor" ) %>%
mutate(valor = ifelse(is.na(valor), media,valor )) %>%
separate(UF, sep = "-",into = c("UF", "Sigla_UF"))
i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering.R
\name{degMDS}
\alias{degMDS}
\title{Plot MDS from normalized count data}
\usage{
degMDS(counts, condition = NULL, k = 2, d = "euclidian", xi = 1,
yi = 2)
}
\arguments{
\item{counts}{matrix samples in columns, features in rows}
... | /man/degMDS.Rd | permissive | janosbiro/DEGreport | R | false | true | 1,027 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering.R
\name{degMDS}
\alias{degMDS}
\title{Plot MDS from normalized count data}
\usage{
degMDS(counts, condition = NULL, k = 2, d = "euclidian", xi = 1,
yi = 2)
}
\arguments{
\item{counts}{matrix samples in columns, features in rows}
... |
library(shiny)
library(shinyjs)
library(rdrop2)
outputDir <- "Shiny-vrl-uploads"
saveDrop <- function(data) {
# Create a unique file name
fileName <- sprintf("%s_%s.csv", as.integer(Sys.time()), digest::digest(data))
# Write the data to a temporary file locally
filePath <- file.path(tempdir(), fileName)
wri... | /server.R | no_license | sebdalgarno/pois-upload | R | false | false | 2,129 | r | library(shiny)
library(shinyjs)
library(rdrop2)
outputDir <- "Shiny-vrl-uploads"
saveDrop <- function(data) {
# Create a unique file name
fileName <- sprintf("%s_%s.csv", as.integer(Sys.time()), digest::digest(data))
# Write the data to a temporary file locally
filePath <- file.path(tempdir(), fileName)
wri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{crime_aug_2019}
\alias{crime_aug_2019}
\title{Winnipeg police crime historical crime statistics up to August 2019
pulled on 2019-12-02. Original csv names standardized with the
\code{janitor::clean_names} function... | /man/crime_aug_2019.Rd | permissive | jdallmann/winnipegr | R | false | true | 1,277 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{crime_aug_2019}
\alias{crime_aug_2019}
\title{Winnipeg police crime historical crime statistics up to August 2019
pulled on 2019-12-02. Original csv names standardized with the
\code{janitor::clean_names} function... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scripts.R
\name{prMoveScript}
\alias{prMoveScript}
\alias{prRenameScript}
\alias{prDeleteScript}
\title{Move, rename and delete scripts}
\usage{
prMoveScript(name, newDir, subdir = ".")
prRenameScript(name, newName, subdir = ".")
prDeleteSc... | /man/prMoveScript.Rd | no_license | FrancoisGuillem/tinyProject | R | false | true | 1,022 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scripts.R
\name{prMoveScript}
\alias{prMoveScript}
\alias{prRenameScript}
\alias{prDeleteScript}
\title{Move, rename and delete scripts}
\usage{
prMoveScript(name, newDir, subdir = ".")
prRenameScript(name, newName, subdir = ".")
prDeleteSc... |
library(testthat)
library(flipDimensionReduction)
test_check("flipDimensionReduction")
| /tests/testthat.R | no_license | Displayr/flipDimensionReduction | R | false | false | 88 | r | library(testthat)
library(flipDimensionReduction)
test_check("flipDimensionReduction")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mxnet_generated.R
\name{mx.symbol.take}
\alias{mx.symbol.take}
\title{take:Takes elements from an input array along the given axis.}
\usage{
mx.symbol.take(...)
}
\arguments{
\item{a}{NDArray-or-Symbol
The input array.}
\item{indices}{NDArra... | /Rsite/source/api/man/mx.symbol.take.Rd | no_license | mli/new-docs | R | false | true | 2,358 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mxnet_generated.R
\name{mx.symbol.take}
\alias{mx.symbol.take}
\title{take:Takes elements from an input array along the given axis.}
\usage{
mx.symbol.take(...)
}
\arguments{
\item{a}{NDArray-or-Symbol
The input array.}
\item{indices}{NDArra... |
writeLines('
EXAMPLE 1: Create a function that takes in a name as a string argument, and prints out "Hello name"
')
print.helloName <- function(name){
print(paste("Hello", name))
}
print.helloName('Sam')
writeLines('
EXAMPLE 2: Create a function that takes in a name as a string argument and returns a string of the ... | /_6_BasicProgrammingR/_6_6_functionsExerciseSolution_BasicProgrammingR.R | permissive | Himanshu-rathee/R_DataCamp | R | false | false | 3,380 | r | writeLines('
EXAMPLE 1: Create a function that takes in a name as a string argument, and prints out "Hello name"
')
print.helloName <- function(name){
print(paste("Hello", name))
}
print.helloName('Sam')
writeLines('
EXAMPLE 2: Create a function that takes in a name as a string argument and returns a string of the ... |
\name{select.FPlen}
\alias{select.FPlen}
\title{Display periodicity plots for user selection of admissible footprint lengths.}
\usage{
select.FPlen(list.bam, pathout, XP.names)
}
\arguments{
\item{list.bam}{List of bam files containing aligned reads for
each sample (same order as in XP.n... | /man/select.FPlen.Rd | no_license | carinelegrand/RiboVIEW | R | false | false | 7,308 | rd | \name{select.FPlen}
\alias{select.FPlen}
\title{Display periodicity plots for user selection of admissible footprint lengths.}
\usage{
select.FPlen(list.bam, pathout, XP.names)
}
\arguments{
\item{list.bam}{List of bam files containing aligned reads for
each sample (same order as in XP.n... |
library(OpenMx)
library(MASS)
library(testthat)
context("binary as continuous")
set.seed(1)
AA <- matrix(c(0.000000000, 0.000000000, 0.000000000, -0.093530939,
0.000000000, 0.000000000, 0.000000000, -0.063013490,
0.000000000, 0.000000000, 0.000000000, 0.002058237,
0.000000000, 0.000000000,... | /tests/testthat/test-wls-binary.R | no_license | haitaoge/OpenMx | R | false | false | 1,825 | r | library(OpenMx)
library(MASS)
library(testthat)
context("binary as continuous")
set.seed(1)
AA <- matrix(c(0.000000000, 0.000000000, 0.000000000, -0.093530939,
0.000000000, 0.000000000, 0.000000000, -0.063013490,
0.000000000, 0.000000000, 0.000000000, 0.002058237,
0.000000000, 0.000000000,... |
euclideanDistance <- function(u, v)
{
sqrt(sum((u - v)^2))
}
sortObjectsByDist <- function(xl, z, metricFunction = euclideanDistance)
{
l <- dim(xl)[1]
n <- dim(xl)[2] - 1
distances <- matrix(NA, l, 2)
for (i in 1:l)
{
distances[i, ] <- c(i, metricFunction(xl[i, 1:n], z))
}
orderedXl <- xl... | /kNN.R | no_license | alim-abdurakhmanov/ml | R | false | false | 1,718 | r | euclideanDistance <- function(u, v)
{
sqrt(sum((u - v)^2))
}
sortObjectsByDist <- function(xl, z, metricFunction = euclideanDistance)
{
l <- dim(xl)[1]
n <- dim(xl)[2] - 1
distances <- matrix(NA, l, 2)
for (i in 1:l)
{
distances[i, ] <- c(i, metricFunction(xl[i, 1:n], z))
}
orderedXl <- xl... |
library(ONETr)
### Name: interests
### Title: Pull interest data from job list
### Aliases: interests
### Keywords: ~interests
### ** Examples
data(jobData)
# You need to set your credentials with setCreds() prior to use.
interests(jobData)
| /data/genthat_extracted_code/ONETr/examples/interests.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 260 | r | library(ONETr)
### Name: interests
### Title: Pull interest data from job list
### Aliases: interests
### Keywords: ~interests
### ** Examples
data(jobData)
# You need to set your credentials with setCreds() prior to use.
interests(jobData)
|
library(maps)
quakes <- read.csv("quakes-mod.csv")
quakes$long <- ifelse(quakes$LONG < 0, 360 + quakes$LONG, quakes$LONG)
quakes <- quakes[quakes$LAT < 0 & quakes$long < 190, ]
library(MASS)
qd <- kde2d(quakes$long, quakes$LAT, n=100)
ql <- contourLines(qd$x, qd$y, qd$z, nlevels=10)
n <- length(ql)
outline <- map("nz"... | /nz-contours.R | no_license | pmur002/definitions-report | R | false | false | 1,622 | r |
library(maps)
quakes <- read.csv("quakes-mod.csv")
quakes$long <- ifelse(quakes$LONG < 0, 360 + quakes$LONG, quakes$LONG)
quakes <- quakes[quakes$LAT < 0 & quakes$long < 190, ]
library(MASS)
qd <- kde2d(quakes$long, quakes$LAT, n=100)
ql <- contourLines(qd$x, qd$y, qd$z, nlevels=10)
n <- length(ql)
outline <- map("nz"... |
#' Earth Engine API version
#'
#'
#' @family session management functions
#' @return Character. Earth Engine Python API version used to build rgee.
#' @export
ee_version <- function() {
'0.1.223'
}
| /R/ee_version.R | permissive | dondealban/rgee | R | false | false | 199 | r | #' Earth Engine API version
#'
#'
#' @family session management functions
#' @return Character. Earth Engine Python API version used to build rgee.
#' @export
ee_version <- function() {
'0.1.223'
}
|
#' get_indicator_example_data
#' @description get the example data for the indicator example shiny
#' @return tibble of indicator data
#' @import dplyr
#' @examples
#' \dontrun{
#' get_indicator_example_data()
#' }
#' @keywords Internal
#' @export
get_indicator_example_data<-function(){
library(tidyverse)
Ind_15.6.... | /R/get_indicator_example_data.R | no_license | Aariq/SDGsR | R | false | false | 1,818 | r | #' get_indicator_example_data
#' @description get the example data for the indicator example shiny
#' @return tibble of indicator data
#' @import dplyr
#' @examples
#' \dontrun{
#' get_indicator_example_data()
#' }
#' @keywords Internal
#' @export
get_indicator_example_data<-function(){
library(tidyverse)
Ind_15.6.... |
library(readxl)
plan_ESP2_EspNow_50m_10s_CB <- read_excel("ESP2 EspNow 50m 10s CB.xlsx")
View(plan_ESP2_EspNow_50m_10s_CB)
valor<-plan_ESP2_EspNow_50m_10s_CB$Column9
posicoes<-c(1:length(valor))
corte_1<-min(posicoes[which(valor==3.2)])
corte_2<-min(posicoes[which(valor==2.8)])
valor[which(posicoes==corte_1)]
valor[... | /Cenarios_EspNow/EspNow 50m 10s CB script DP e KM/scriptDesvioPadraoEsp2.R | no_license | rbcostati/dissertacaoIPT | R | false | false | 2,922 | r | library(readxl)
plan_ESP2_EspNow_50m_10s_CB <- read_excel("ESP2 EspNow 50m 10s CB.xlsx")
View(plan_ESP2_EspNow_50m_10s_CB)
valor<-plan_ESP2_EspNow_50m_10s_CB$Column9
posicoes<-c(1:length(valor))
corte_1<-min(posicoes[which(valor==3.2)])
corte_2<-min(posicoes[which(valor==2.8)])
valor[which(posicoes==corte_1)]
valor[... |
# This script expects you to download the data file from:
# https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# and unzip the file into a directory named data in the Project folder
data <- read.csv("./data/household_power_consumption.txt", sep=";", na.strings="?")
data$Date <- as.D... | /plot1.R | no_license | jperkelens/ExData_Plotting1 | R | false | false | 678 | r | # This script expects you to download the data file from:
# https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# and unzip the file into a directory named data in the Project folder
data <- read.csv("./data/household_power_consumption.txt", sep=";", na.strings="?")
data$Date <- as.D... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssooidc_operations.R
\name{ssooidc_start_device_authorization}
\alias{ssooidc_start_device_authorization}
\title{Initiates device authorization by requesting a pair of verification
codes from the authorization service}
\usage{
ssooidc_start_d... | /cran/paws.security.identity/man/ssooidc_start_device_authorization.Rd | permissive | paws-r/paws | R | false | true | 1,340 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssooidc_operations.R
\name{ssooidc_start_device_authorization}
\alias{ssooidc_start_device_authorization}
\title{Initiates device authorization by requesting a pair of verification
codes from the authorization service}
\usage{
ssooidc_start_d... |
rm(list=ls(all=TRUE))
library('nloptr')
load('fakedata_t1_T50_nt100.RData')
fd = xtraj
dimvec = dim(fd)
vec1 = c(1:ceiling(dimvec[2]/2))
fdtrain=fd[,vec1]
fdtest = fd[-1,-vec1]
source('adjoint.R')
objgradfun <- function(theta)
{
out = gradobjfun(c0=theta, h=myh, k=myk, bigm=mybigm, littlet=littletnew,... | /adjoint/NewTests/example1_polynomial/optimtest1.R | no_license | hbhat4000/sdeinference | R | false | false | 884 | r | rm(list=ls(all=TRUE))
library('nloptr')
load('fakedata_t1_T50_nt100.RData')
fd = xtraj
dimvec = dim(fd)
vec1 = c(1:ceiling(dimvec[2]/2))
fdtrain=fd[,vec1]
fdtest = fd[-1,-vec1]
source('adjoint.R')
objgradfun <- function(theta)
{
out = gradobjfun(c0=theta, h=myh, k=myk, bigm=mybigm, littlet=littletnew,... |
## File Name: sirt_parlapply.R
## File Version: 0.02
sirt_parlapply <- function(cl, X, FUN, verbose=FALSE, ...)
{
args <- list(...)
args$cl <- cl
args$X <- X
if (verbose){
what <- pbapply::pblapply
args$FUN <- FUN
} else {
what <- parallel::parLapply
args$fun <- FUN
... | /R/sirt_parlapply.R | no_license | alexanderrobitzsch/sirt | R | false | false | 393 | r | ## File Name: sirt_parlapply.R
## File Version: 0.02
sirt_parlapply <- function(cl, X, FUN, verbose=FALSE, ...)
{
args <- list(...)
args$cl <- cl
args$X <- X
if (verbose){
what <- pbapply::pblapply
args$FUN <- FUN
} else {
what <- parallel::parLapply
args$fun <- FUN
... |
\name{getQualityValue}
\alias{getQualityValue}
\alias{getQualityValue,PacBioCmpH5-method}
\alias{getQualityValue,PacBioPlsH5-method}
\alias{getDeletionQV}
\alias{getDeletionQV,PacBioCmpH5-method}
\alias{getDeletionQV,PacBioBasH5-method}
\alias{getDeletionTag}
\alias{getDeletionTag,PacBioCmpH5-method}
\alias{getDeletion... | /man/getQualityValue.Rd | no_license | genome-vendor/r-cran-pbh5 | R | false | false | 1,473 | rd | \name{getQualityValue}
\alias{getQualityValue}
\alias{getQualityValue,PacBioCmpH5-method}
\alias{getQualityValue,PacBioPlsH5-method}
\alias{getDeletionQV}
\alias{getDeletionQV,PacBioCmpH5-method}
\alias{getDeletionQV,PacBioBasH5-method}
\alias{getDeletionTag}
\alias{getDeletionTag,PacBioCmpH5-method}
\alias{getDeletion... |
get_boxplots <-
function(X=NA,Y=NA,feature_table_file,parentoutput_dir,class_labels_file,
boxplot.col.opt=c("journal", "npg", "nejm", "jco", "lancet", "custom1", "brewer.RdYlBu", "brewer.RdBu", "brewer.PuOr",
"brewer.PRGn", "brewer.PiYG", "brewer.BrBG", "... | /R/get_boxplots.R | no_license | kuppal2/xmsPANDA | R | false | false | 4,021 | r | get_boxplots <-
function(X=NA,Y=NA,feature_table_file,parentoutput_dir,class_labels_file,
boxplot.col.opt=c("journal", "npg", "nejm", "jco", "lancet", "custom1", "brewer.RdYlBu", "brewer.RdBu", "brewer.PuOr",
"brewer.PRGn", "brewer.PiYG", "brewer.BrBG", "... |
tabItem(tabName = "elmeranalysis",
fluidRow(
column(8, bsAlert("elmermessage"),
bsCollapse(id = "collapelmer", open = "Enhancer Linking by Methylation/Expression Relationship (ELMER) ",
bsCollapsePanel("Enhancer Linking by Methylation/Expression Rela... | /inst/app/ui/elmer_analysis.R | no_license | woodhaha/TCGAbiolinksGUI | R | false | false | 11,893 | r | tabItem(tabName = "elmeranalysis",
fluidRow(
column(8, bsAlert("elmermessage"),
bsCollapse(id = "collapelmer", open = "Enhancer Linking by Methylation/Expression Relationship (ELMER) ",
bsCollapsePanel("Enhancer Linking by Methylation/Expression Rela... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/objects_doc.R
\docType{data}
\name{cntype.homloss}
\alias{cntype.homloss}
\title{copy number type "Homozygous loss" (loss of the two copies or only one on sexual chromosomes if the
subject is male).}
\format{character}
\source{
\code{cntype.h... | /man/cntype.homloss.Rd | permissive | 1512474508/oncoscanR | R | false | true | 529 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/objects_doc.R
\docType{data}
\name{cntype.homloss}
\alias{cntype.homloss}
\title{copy number type "Homozygous loss" (loss of the two copies or only one on sexual chromosomes if the
subject is male).}
\format{character}
\source{
\code{cntype.h... |
library(lme4)
library(lmerTest)
library(snow)
library(glmmTMB)
set.seed(1)
## Note:
#The first simulation (Simulation of GLMM with Temperature effect) tests if the effect is significant when there is an effect
#The second simulation (Simulation of GLMM without Temperature effect) tests if the effect is significant, w... | /Mountain_simulation/A_simulation_mountain_glmm_random_intercept_only_unbalanced.R | no_license | JohannesOberpriller/RandomEffect_Groups | R | false | false | 17,047 | r | library(lme4)
library(lmerTest)
library(snow)
library(glmmTMB)
set.seed(1)
## Note:
#The first simulation (Simulation of GLMM with Temperature effect) tests if the effect is significant when there is an effect
#The second simulation (Simulation of GLMM without Temperature effect) tests if the effect is significant, w... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/midpoints.R
\docType{data}
\name{midpoints}
\alias{midpoints}
\title{Formant measurements from 564 vowel midpoints}
\format{
A data frame with 564 rows and 12 variables:
\describe{
\item{vowel_id}{a unique identifier for each vowel token}
\it... | /man/midpoints.Rd | permissive | JoeyStanley/joeysvowels | R | false | true | 1,267 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/midpoints.R
\docType{data}
\name{midpoints}
\alias{midpoints}
\title{Formant measurements from 564 vowel midpoints}
\format{
A data frame with 564 rows and 12 variables:
\describe{
\item{vowel_id}{a unique identifier for each vowel token}
\it... |
## while loop A3
## lengths in feet
## rope elongation a proportion between 0 and 0.4
## ignores many important parameters, not to be used
gear_placement <- function(climb_height, fall_distance){
# error checking to ensure valid variable values
climb_height = ifelse(
climb_height <= 0,
return("Climb ... | /assignments/Assignment 3/R/gear_placement.R | no_license | brirose/esm262-w21-bb | R | false | false | 887 | r | ## while loop A3
## lengths in feet
## rope elongation a proportion between 0 and 0.4
## ignores many important parameters, not to be used
gear_placement <- function(climb_height, fall_distance){
# error checking to ensure valid variable values
climb_height = ifelse(
climb_height <= 0,
return("Climb ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grabMzxmlFunctions.R
\name{grabMzxmlSpectraRt}
\alias{grabMzxmlSpectraRt}
\title{Extract the retention time from the spectra of an mzXML nodeset}
\usage{
grabMzxmlSpectraRt(xml_nodes)
}
\arguments{
\item{xml_nodes}{An xml_nodeset object corre... | /man/grabMzxmlSpectraRt.Rd | permissive | R-Lionheart/RaMS | R | false | true | 598 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grabMzxmlFunctions.R
\name{grabMzxmlSpectraRt}
\alias{grabMzxmlSpectraRt}
\title{Extract the retention time from the spectra of an mzXML nodeset}
\usage{
grabMzxmlSpectraRt(xml_nodes)
}
\arguments{
\item{xml_nodes}{An xml_nodeset object corre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{label_term}
\alias{label_term}
\title{Label a term object}
\usage{
label_term(x)
}
\arguments{
\item{x}{An object of class 'term'}
}
\value{
Character, e.g. "Fall 2018"
}
\description{
Label a term object
}
\examples{
label_term... | /man/label_term.Rd | permissive | ir-sfsu/intermittent | R | false | true | 336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{label_term}
\alias{label_term}
\title{Label a term object}
\usage{
label_term(x)
}
\arguments{
\item{x}{An object of class 'term'}
}
\value{
Character, e.g. "Fall 2018"
}
\description{
Label a term object
}
\examples{
label_term... |
# Plotting Convenience Functions ####
## Multiplot axis generator
## Plot #n in an MxN grid
tile.axes <- function(n, M, N, params = list(x = list(), y = list()),
use.x = TRUE, use.y = TRUE){
#only print x axes on the last row
if ((n > (M - 1) * N | M == 1) && use.x) do.call("axis", c(side = ... | /R/plot_functions.R | no_license | SarenT/funchir | R | false | false | 1,650 | r | # Plotting Convenience Functions ####
## Multiplot axis generator
## Plot #n in an MxN grid
tile.axes <- function(n, M, N, params = list(x = list(), y = list()),
use.x = TRUE, use.y = TRUE){
#only print x axes on the last row
if ((n > (M - 1) * N | M == 1) && use.x) do.call("axis", c(side = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/layer.r
\name{layer}
\alias{layer}
\title{Create a new layer}
\usage{
layer(geom = NULL, stat = NULL, data = NULL, mapping = NULL,
position = NULL, params = list(), inherit.aes = TRUE, subset = NULL,
show.legend = NA)
}
\arguments{
\item{... | /man/layer.Rd | no_license | lixinyao/ggplot2 | R | false | true | 1,812 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/layer.r
\name{layer}
\alias{layer}
\title{Create a new layer}
\usage{
layer(geom = NULL, stat = NULL, data = NULL, mapping = NULL,
position = NULL, params = list(), inherit.aes = TRUE, subset = NULL,
show.legend = NA)
}
\arguments{
\item{... |
#### groupfile<-paste0("mnt/f8_hclof_missense_chr_",num,".RData")
#### gdsfile<-paste0("mnt/freeze.8.chr",num,".pass_and_fail.gtonly.minDP10_test.gds")
#### varfile<-paste0("mnt/TOPMed_Freeze8_variantQC_noLCR_Callrate95p_HWE_nomono_chr",num,"_test.tsv")
#### phenfile<-"mnt/TOPMed_Freeze8_GQ_AFib_pheno_noMESA_QCed.tsv"
... | /GENESIS/del_score/dbNSFP_delscore_hclof_missense_burden.R | permissive | broadinstitute/TOPMed_AFib_pipeline | R | false | false | 1,471 | r | #### groupfile<-paste0("mnt/f8_hclof_missense_chr_",num,".RData")
#### gdsfile<-paste0("mnt/freeze.8.chr",num,".pass_and_fail.gtonly.minDP10_test.gds")
#### varfile<-paste0("mnt/TOPMed_Freeze8_variantQC_noLCR_Callrate95p_HWE_nomono_chr",num,"_test.tsv")
#### phenfile<-"mnt/TOPMed_Freeze8_GQ_AFib_pheno_noMESA_QCed.tsv"
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interval.R
\name{interval}
\alias{interval}
\title{Bootstrap confidence intervals}
\usage{
interval(x, method = "perc", conf.level = 0.95)
}
\arguments{
\item{x}{Double vector. Bootstrap sample.}
\item{method}{Character. See details.}
\item... | /man/interval.Rd | no_license | thoree/inbred | R | false | true | 1,253 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interval.R
\name{interval}
\alias{interval}
\title{Bootstrap confidence intervals}
\usage{
interval(x, method = "perc", conf.level = 0.95)
}
\arguments{
\item{x}{Double vector. Bootstrap sample.}
\item{method}{Character. See details.}
\item... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imputeLFQ.R
\name{imputeLFQ}
\alias{imputeLFQ}
\title{This function does MNAR imputation}
\usage{
imputeLFQ(myQuantDT, id_type, int_type, f_imputeStDev, f_imputePosition)
}
\arguments{
\item{myQuantDT}{quantification data}
\item{id_type}{the... | /man/imputeLFQ.Rd | permissive | MassDynamics/MassExpression | R | false | true | 815 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imputeLFQ.R
\name{imputeLFQ}
\alias{imputeLFQ}
\title{This function does MNAR imputation}
\usage{
imputeLFQ(myQuantDT, id_type, int_type, f_imputeStDev, f_imputePosition)
}
\arguments{
\item{myQuantDT}{quantification data}
\item{id_type}{the... |
library(qrfactor)
#data must be numeric, avoid using categorical and characters
data(UScereal, package="MASS")
variables=c("calories","protein","sodium","carbo","sugars","potassium")
data=UScereal[variables]
#Q-mode Factor Analysis
mod=qrfactor(data)
mod$q.loading
summary(mod)
plot(mod,type="loadings",plot="... | /qrfactor/tests/q-mode.R | no_license | ingted/R-Examples | R | false | false | 361 | r | library(qrfactor)
#data must be numeric, avoid using categorical and characters
data(UScereal, package="MASS")
variables=c("calories","protein","sodium","carbo","sugars","potassium")
data=UScereal[variables]
#Q-mode Factor Analysis
mod=qrfactor(data)
mod$q.loading
summary(mod)
plot(mod,type="loadings",plot="... |
## Douglas Wygaal
## Exploratory Data Analysis
## Week 1, Project 1
## 14 July 2019
## read the file to load the given dataset
givenData = "exdata_data_household_power_consumption/household_power_consumption.txt"
df<-read.table(givenData, header = TRUE, sep = ";", dec = ".", na.strings = "?", stringsAsFactors = FALSE... | /Project1Plot1.R | no_license | dwygal/ExData_Plotting1 | R | false | false | 1,126 | r | ## Douglas Wygaal
## Exploratory Data Analysis
## Week 1, Project 1
## 14 July 2019
## read the file to load the given dataset
givenData = "exdata_data_household_power_consumption/household_power_consumption.txt"
df<-read.table(givenData, header = TRUE, sep = ";", dec = ".", na.strings = "?", stringsAsFactors = FALSE... |
library(randomForest)
library(foreach)
library(doMC)
library(tictoc)
newdata <- read.csv('letter-recognition.data')
registerDoMC(16)
tic()
rf <- foreach(ntree=c(312,313,312,313,312,313,312,313,312,313,312,313,312,313,312,313), .combine = combine, .packages = 'randomForest') %dopar% randomForest(Letter~X1+X2+X3+X4+X5... | /foreach_rf_16.r | no_license | ajaskulkarni/Comparison-of-Random-Forest-and-Ranger-in-R-for-Letter-Recognition-dataset | R | false | false | 428 | r | library(randomForest)
library(foreach)
library(doMC)
library(tictoc)
newdata <- read.csv('letter-recognition.data')
registerDoMC(16)
tic()
rf <- foreach(ntree=c(312,313,312,313,312,313,312,313,312,313,312,313,312,313,312,313), .combine = combine, .packages = 'randomForest') %dopar% randomForest(Letter~X1+X2+X3+X4+X5... |
library(eyetrackingR)
### Name: subset_by_window
### Title: Extract a subset of the dataset within a time-window in each
### trial.
### Aliases: subset_by_window
### ** Examples
data("word_recognition")
data <- make_eyetrackingr_data(word_recognition,
participant_column = "Particip... | /data/genthat_extracted_code/eyetrackingR/examples/subset_by_window.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,461 | r | library(eyetrackingR)
### Name: subset_by_window
### Title: Extract a subset of the dataset within a time-window in each
### trial.
### Aliases: subset_by_window
### ** Examples
data("word_recognition")
data <- make_eyetrackingr_data(word_recognition,
participant_column = "Particip... |
header <-
shinydashboard::dashboardHeader(title = "Cohort Diagnostics")
sidebarMenu <-
shinydashboard::sidebarMenu(
id = "tabs",
if (exists("cohort"))
shinydashboard::menuItem(text = "Cohort Definition", tabName = "cohortDefinition"),
if (exists("cohortCount"))
addInfo(
item = shiny... | /cdSkeletoncohortdiagnosticsstudy2/ui.R | no_license | OHDSI/ShinyDeploy | R | false | false | 49,769 | r | header <-
shinydashboard::dashboardHeader(title = "Cohort Diagnostics")
sidebarMenu <-
shinydashboard::sidebarMenu(
id = "tabs",
if (exists("cohort"))
shinydashboard::menuItem(text = "Cohort Definition", tabName = "cohortDefinition"),
if (exists("cohortCount"))
addInfo(
item = shiny... |
prep.exam<-function(OF, incfile, instructor="", examdate=" ", course="", examname="", instructions="", ncol=2)
{
if(missing(instructor)) instructor=""
if(missing(examdate)) examdate=" "
if(missing(course)) course=""
if(missing(examname)) examname=""
if(missing(instructions)) instructions=""
... | /R/prep.exam.R | no_license | cran/ProfessR | R | false | false | 5,435 | r |
prep.exam<-function(OF, incfile, instructor="", examdate=" ", course="", examname="", instructions="", ncol=2)
{
if(missing(instructor)) instructor=""
if(missing(examdate)) examdate=" "
if(missing(course)) course=""
if(missing(examname)) examname=""
if(missing(instructions)) instructions=""
... |
##for checking max. no of tracks per sec
## for both control and treatment
# Si
s1$A=as.numeric(s1$A)
si.count=ddply(s1,~T,summarise,Si=(max((A))))
#control
c1$A=as.numeric(c1$A)
con.count=ddply(c1,~T,summarise,Con=(max((A))))
#data binding (Si=A, Con=Con)
CB=cbind(si.count, con.count)
ggplot(CB, aes(T)) + geom_l... | /Working scripts/june2014/popbased analysis/max number of tracks per second.R | no_license | kaye11/Some-R-scripts | R | false | false | 475 | r | ##for checking max. no of tracks per sec
## for both control and treatment
# Si
s1$A=as.numeric(s1$A)
si.count=ddply(s1,~T,summarise,Si=(max((A))))
#control
c1$A=as.numeric(c1$A)
con.count=ddply(c1,~T,summarise,Con=(max((A))))
#data binding (Si=A, Con=Con)
CB=cbind(si.count, con.count)
ggplot(CB, aes(T)) + geom_l... |
#5.14 coin
#반복측정 분산 분석
install.packages("agricolae")
library(agricolae)
library(ggplot2)
library(reshape2)
library(dplyr)
CSV = read.csv("반복측정분산분석.csv")
CSV_I<-melt(data,id,vars="id")
colnames(CSV_I)<-c("id","time","value")
CSV_I$id <- factor(CSV_I$id)
CSV_I$time<- factor(CSV_I$time)
head(CSV_I)
... | /5_14_coin.R | no_license | gwcat0506/GounGitHub | R | false | false | 1,119 | r | #5.14 coin
#반복측정 분산 분석
install.packages("agricolae")
library(agricolae)
library(ggplot2)
library(reshape2)
library(dplyr)
CSV = read.csv("반복측정분산분석.csv")
CSV_I<-melt(data,id,vars="id")
colnames(CSV_I)<-c("id","time","value")
CSV_I$id <- factor(CSV_I$id)
CSV_I$time<- factor(CSV_I$time)
head(CSV_I)
... |
test_that("can output durations", {
skip_if_not_installed("lubridate")
expect_snapshot({
pillar(lubridate::as.duration(1:3))
})
})
| /tests/testthat/test-format_lubridate.R | permissive | r-lib/pillar | R | false | false | 141 | r | test_that("can output durations", {
skip_if_not_installed("lubridate")
expect_snapshot({
pillar(lubridate::as.duration(1:3))
})
})
|
##################################
#### Base Transform Functions ####
##################################
#' @title
#' Reads file extension and helps Identify whether file is XML or CSV.
#'
#' @description
#' \code{strEndsWith} searches for a substring ("needle") at the end of a larger string ("haystack").
#' It return... | /R/transform_basefns.R | no_license | jbottesini/DEEPAnalysis | R | false | false | 13,786 | r | ##################################
#### Base Transform Functions ####
##################################
#' @title
#' Reads file extension and helps Identify whether file is XML or CSV.
#'
#' @description
#' \code{strEndsWith} searches for a substring ("needle") at the end of a larger string ("haystack").
#' It return... |
library(ggplot2) #must load the ggplot package first
data(diamonds)
dim(diamonds)
summary(diamonds)
?diamonds
#Scatter plot between price and x
ggplot(aes(x = diamonds$price, y = diamonds$x), data = diamonds) +
geom_point(alpha = 1/20, position = position_jitter(h = 0)) +
ylim(0, 10)
#Correlation between pr... | /DataAnalysisClassNotes/eda-course-materials/lesson4/explore_two_variables.R | no_license | mpetersen000/DataAnalystNanodegreeProjects | R | false | false | 2,904 | r | library(ggplot2) #must load the ggplot package first
data(diamonds)
dim(diamonds)
summary(diamonds)
?diamonds
#Scatter plot between price and x
ggplot(aes(x = diamonds$price, y = diamonds$x), data = diamonds) +
geom_point(alpha = 1/20, position = position_jitter(h = 0)) +
ylim(0, 10)
#Correlation between pr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neural_net_class.R
\name{fit_neural_network_numeric}
\alias{fit_neural_network_numeric}
\title{Fits neural network for numerical dependent variable.}
\usage{
fit_neural_network_numeric(f, data, layers, ...)
}
\description{
Fits neural network... | /man/fit_neural_network_numeric.Rd | permissive | AlexAfanasev/NeuralNetworkVisualization | R | false | true | 376 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neural_net_class.R
\name{fit_neural_network_numeric}
\alias{fit_neural_network_numeric}
\title{Fits neural network for numerical dependent variable.}
\usage{
fit_neural_network_numeric(f, data, layers, ...)
}
\description{
Fits neural network... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rjags_fcts.R
\name{t.plot}
\alias{t.plot}
\title{Diagnostics plots}
\usage{
\method{t}{plot}(out)
}
\arguments{
\item{out}{Output from clustNSD}
}
\description{
This function uses the traceplot to display a plot of iterations vs. sampled valu... | /man/t.plot.Rd | no_license | BastilleRousseau/lsmnsd | R | false | true | 488 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rjags_fcts.R
\name{t.plot}
\alias{t.plot}
\title{Diagnostics plots}
\usage{
\method{t}{plot}(out)
}
\arguments{
\item{out}{Output from clustNSD}
}
\description{
This function uses the traceplot to display a plot of iterations vs. sampled valu... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% AffymetrixCdfFile.computeAffinities.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\na... | /man/computeAffinities.AffymetrixCdfFile.Rd | no_license | HenrikBengtsson/aroma.affymetrix | R | false | false | 1,515 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% AffymetrixCdfFile.computeAffinities.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\na... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/labelGroupsPhase.R
\name{labelGroupsPhase}
\alias{labelGroupsPhase}
\title{Identify and Label Phase Microscopy Groups}
\usage{
labelGroupsPhase(image, artifactMask)
}
\arguments{
\item{image}{an image matrix to search for cell colonie... | /man/labelGroupsPhase.Rd | no_license | procterw/TBCellGrowth | R | false | false | 571 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/labelGroupsPhase.R
\name{labelGroupsPhase}
\alias{labelGroupsPhase}
\title{Identify and Label Phase Microscopy Groups}
\usage{
labelGroupsPhase(image, artifactMask)
}
\arguments{
\item{image}{an image matrix to search for cell colonie... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m4_meta.R
\name{m4_meta_data}
\alias{m4_meta_data}
\title{Encapsulated meta data for MIMIC IV tables}
\usage{
m4_meta_data()
}
\value{
a tibble containing meta data concerning MIMIC IV tables.
}
\description{
The function returns a tibble wit... | /man/m4_meta_data.Rd | permissive | hdshea/MIMIC4db | R | false | true | 712 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m4_meta.R
\name{m4_meta_data}
\alias{m4_meta_data}
\title{Encapsulated meta data for MIMIC IV tables}
\usage{
m4_meta_data()
}
\value{
a tibble containing meta data concerning MIMIC IV tables.
}
\description{
The function returns a tibble wit... |
% Built by roxygen3 0.1
\docType{class}
\name{DirectoryBundle-class}
\alias{DirectoryBundle}
\alias{DirectoryBundle-class}
\title{[DEV] A bundle of files in a directory.}
\usage{
DirectoryBundle(path, behaviour = default_behaviour())
}
\arguments{
\item{path}{location of folder containing R files}
\item{behaviou... | /man/DirectoryBundle.Rd | no_license | kashenfelter/roxygen3 | R | false | false | 998 | rd | % Built by roxygen3 0.1
\docType{class}
\name{DirectoryBundle-class}
\alias{DirectoryBundle}
\alias{DirectoryBundle-class}
\title{[DEV] A bundle of files in a directory.}
\usage{
DirectoryBundle(path, behaviour = default_behaviour())
}
\arguments{
\item{path}{location of folder containing R files}
\item{behaviou... |
#' Metadata for Canadian geographic datasets
#'
#' Filepaths and information of geographic datasets at Statistics Canada.
#'
#'
#' @format A data frame.
#' \describe{
#' \item{filepath}{The name of the file.}
#' \item{size}{Zipped file size.}
#' \item{path}{Url (external) or filepath (internal.)}
#' \item{ref_d... | /R/shapefile_paths.R | permissive | twedl/canmap | R | false | false | 865 | r | #' Metadata for Canadian geographic datasets
#'
#' Filepaths and information of geographic datasets at Statistics Canada.
#'
#'
#' @format A data frame.
#' \describe{
#' \item{filepath}{The name of the file.}
#' \item{size}{Zipped file size.}
#' \item{path}{Url (external) or filepath (internal.)}
#' \item{ref_d... |
# read data
setwd("~/Dropbox/OCR_Project/code")
letter_data <- read.table("letter_data.txt", header = FALSE)
letter_names <- read.table("letter_names.txt", header = FALSE)
colnames(letter_data) <- unlist(letter_names)
labels <- factor(letter_data[,2])
size <- dim(letter_data)[1]
fold <- factor(letter_data[,6])
featu... | /svm.R | no_license | haocabbage/600.475-final-project | R | false | false | 5,170 | r | # read data
setwd("~/Dropbox/OCR_Project/code")
letter_data <- read.table("letter_data.txt", header = FALSE)
letter_names <- read.table("letter_names.txt", header = FALSE)
colnames(letter_data) <- unlist(letter_names)
labels <- factor(letter_data[,2])
size <- dim(letter_data)[1]
fold <- factor(letter_data[,6])
featu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reports.R
\name{run_reports}
\alias{run_reports}
\title{Run all individual dataset reports}
\usage{
run_reports(all_data, run_combined = TRUE)
}
\arguments{
\item{all_data}{A list of \code{cosore} datasets.}
\item{run_combined}{When done, ru... | /man/run_reports.Rd | permissive | jinshijian/cosore | R | false | true | 460 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reports.R
\name{run_reports}
\alias{run_reports}
\title{Run all individual dataset reports}
\usage{
run_reports(all_data, run_combined = TRUE)
}
\arguments{
\item{all_data}{A list of \code{cosore} datasets.}
\item{run_combined}{When done, ru... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getBPI.R
\name{.getBPI_dt}
\alias{.getBPI_dt}
\title{Calculate total ion chromatogram from data.table}
\usage{
.getBPI_dt(mzDt)
}
\arguments{
\item{mzDt}{a data.table imported from mzML/mzXML file.}
}
\value{
returns a data.table.
}
\descript... | /man/dot-getBPI_dt.Rd | no_license | pmbrophy/mzDataTable | R | false | true | 455 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getBPI.R
\name{.getBPI_dt}
\alias{.getBPI_dt}
\title{Calculate total ion chromatogram from data.table}
\usage{
.getBPI_dt(mzDt)
}
\arguments{
\item{mzDt}{a data.table imported from mzML/mzXML file.}
}
\value{
returns a data.table.
}
\descript... |
#var.test(x,y,ratio = 1,alternative = c('two.sided','less','greater'),conf.level = 0.95,...)
#想知道area_code_408與area_code_415白天通話平均通數是否顯著相同
# H0:變異數total_day_calls_408/變異數total_day_calls_415 = 1
# H1:變異數total_day_calls_408/變異數total_day_calls_415 != 1
# 顯著水準 alpha = 0.05
library(C50)
data(churn)
var.test( churnTrain$tot... | /work/Unit3/var_test0727.R | no_license | yuju13488/Data_Mining | R | false | false | 1,531 | r | #var.test(x,y,ratio = 1,alternative = c('two.sided','less','greater'),conf.level = 0.95,...)
#想知道area_code_408與area_code_415白天通話平均通數是否顯著相同
# H0:變異數total_day_calls_408/變異數total_day_calls_415 = 1
# H1:變異數total_day_calls_408/變異數total_day_calls_415 != 1
# 顯著水準 alpha = 0.05
library(C50)
data(churn)
var.test( churnTrain$tot... |
##These functions will accept an argument containing values as input to a matrix,
##create a cache of the inverse of the matrix if matrix values are new,
##or return an existing cache of the inverse of the matrix if matrix matches cache.
makeCacheMatrix <- function(x = matrix()){ ##function that will cache inverse
... | /cachematrix.R | no_license | latonyafloyd/ProgrammingAssignment2 | R | false | false | 2,038 | r | ##These functions will accept an argument containing values as input to a matrix,
##create a cache of the inverse of the matrix if matrix values are new,
##or return an existing cache of the inverse of the matrix if matrix matches cache.
makeCacheMatrix <- function(x = matrix()){ ##function that will cache inverse
... |
#' Predict IUCN Categories from Features
#'
#' Uses a model generated with \code{\link{train_iucnn}}
#' to predict the IUCN status of
#' Not Evaluated or Data Deficient species based on features, generated
#' from species occurrence records with \code{\link{prep_features}}.
#' These features should be of the same type ... | /R/predict_iucnn.R | no_license | yangxhcaf/IUCNN | R | false | false | 6,384 | r | #' Predict IUCN Categories from Features
#'
#' Uses a model generated with \code{\link{train_iucnn}}
#' to predict the IUCN status of
#' Not Evaluated or Data Deficient species based on features, generated
#' from species occurrence records with \code{\link{prep_features}}.
#' These features should be of the same type ... |
\name{qogbook}
\alias{qogbook}
\title{Download Quality of Government codebooks}
\usage{
qogbook(file = FALSE, version = "std", path = "",
replace = FALSE)
}
\arguments{
\item{file}{a filename to save the codebook at. If set to
\code{TRUE}, the name of the codebook on the QOG server
will be used. If set to \... | /man/qogbook.Rd | no_license | qianmingax/qogdata | R | false | false | 1,479 | rd | \name{qogbook}
\alias{qogbook}
\title{Download Quality of Government codebooks}
\usage{
qogbook(file = FALSE, version = "std", path = "",
replace = FALSE)
}
\arguments{
\item{file}{a filename to save the codebook at. If set to
\code{TRUE}, the name of the codebook on the QOG server
will be used. If set to \... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.R
\name{show_images}
\alias{show_images}
\title{Show_images}
\usage{
show_images(
ims,
nrows = 1,
ncols = NULL,
titles = NULL,
figsize = NULL,
imsize = 3,
add_vert = 0
)
}
\arguments{
\item{ims}{ims}
\item{nrows}{number of... | /man/show_images.Rd | permissive | Sandy4321/fastai-1 | R | false | true | 564 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.R
\name{show_images}
\alias{show_images}
\title{Show_images}
\usage{
show_images(
ims,
nrows = 1,
ncols = NULL,
titles = NULL,
figsize = NULL,
imsize = 3,
add_vert = 0
)
}
\arguments{
\item{ims}{ims}
\item{nrows}{number of... |
update_betasR <- function(betas,
prior_mean_betas_HC, prior_Tau_betas_HC,
b_mat, D, X_dot,
ind_FE,
ind_FE_HC,
id_patt,
ind_RE_patt,
ind_FE... | /Development/MCMC/betas/update_betasR.R | no_license | drizopoulos/JMbayes2 | R | false | false | 2,210 | r | update_betasR <- function(betas,
prior_mean_betas_HC, prior_Tau_betas_HC,
b_mat, D, X_dot,
ind_FE,
ind_FE_HC,
id_patt,
ind_RE_patt,
ind_FE... |
#-------------------------------------------------------------------------------
# tcplRegister: Register new assay or chemical information
#-------------------------------------------------------------------------------
#' @rdname rgstr_funcs
#'
#' @import data.table
#' @export
tcplRegister <- function(w... | /R/tcplRegister.R | no_license | cran/tcpl | R | false | false | 1,758 | r | #-------------------------------------------------------------------------------
# tcplRegister: Register new assay or chemical information
#-------------------------------------------------------------------------------
#' @rdname rgstr_funcs
#'
#' @import data.table
#' @export
tcplRegister <- function(w... |
# Sakari, make sure that the default directory is set as the main 'NoAnalogueError' directory,
# and not the R directory.
source('R/data_setup.R')
load('data/total.output.RData')
vals <- seq(0, 1, by=0.01)
# Sakari, I doubt it will, but you need to make sure that 'goring' isn't anywhere in your
# working direct... | /R/shared run/shared_run.R | no_license | SimonGoring/NoAnalogueError | R | false | false | 6,394 | r | # Sakari, make sure that the default directory is set as the main 'NoAnalogueError' directory,
# and not the R directory.
source('R/data_setup.R')
load('data/total.output.RData')
vals <- seq(0, 1, by=0.01)
# Sakari, I doubt it will, but you need to make sure that 'goring' isn't anywhere in your
# working direct... |
\name{write.svm}
\alias{write.svm}
\title{Write SVM Object to File}
\description{
This function exports an SVM object (trained by \code{svm}) to two
specified files. One is in the format that the
function 'svm\_load\_model' of libsvm can read. The other is for
scaling data, containing a data with centers and s... | /man/write.svm.Rd | no_license | dankessler/e1071 | R | false | false | 2,051 | rd | \name{write.svm}
\alias{write.svm}
\title{Write SVM Object to File}
\description{
This function exports an SVM object (trained by \code{svm}) to two
specified files. One is in the format that the
function 'svm\_load\_model' of libsvm can read. The other is for
scaling data, containing a data with centers and s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coalesce.R
\name{coalesce}
\alias{coalesce}
\title{Coalesce - take the first non-missing value}
\usage{
coalesce(...)
}
\arguments{
\item{...}{vectors to coalesce}
}
\description{
Coalesce - take the first non-missing value
}
\author{
Martin ... | /man/coalesce.Rd | no_license | gregorp/gregor | R | false | true | 412 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coalesce.R
\name{coalesce}
\alias{coalesce}
\title{Coalesce - take the first non-missing value}
\usage{
coalesce(...)
}
\arguments{
\item{...}{vectors to coalesce}
}
\description{
Coalesce - take the first non-missing value
}
\author{
Martin ... |
# Copyright (c) 2023 Apex Resource Management Solution Ltd. (ApexRMS). All rights reserved.
# MIT License
#' @include AAAClassDefinitions.R
NULL
setMethod(
f = "initialize", signature = "SsimLibrary",
definition = function(.Object, name = NULL, package = NULL, session = NULL, addon = NULL, template = NULL, forceUp... | /R/ssimLibrary.R | permissive | syncrosim/rsyncrosim | R | false | false | 14,164 | r | # Copyright (c) 2023 Apex Resource Management Solution Ltd. (ApexRMS). All rights reserved.
# MIT License
#' @include AAAClassDefinitions.R
NULL
setMethod(
f = "initialize", signature = "SsimLibrary",
definition = function(.Object, name = NULL, package = NULL, session = NULL, addon = NULL, template = NULL, forceUp... |
#' Find a few approximate largest singular values and corresponding
#' singular vectors of a matrix.
#'
#' The randomized method for truncated SVD by P. G. Martinsson and colleagues
#' finds a few approximate largest singular values and corresponding
#' singular vectors of a sparse or dense matrix. It is a fast and
#' ... | /R/svdr.R | no_license | bwlewis/irlba | R | false | false | 5,247 | r | #' Find a few approximate largest singular values and corresponding
#' singular vectors of a matrix.
#'
#' The randomized method for truncated SVD by P. G. Martinsson and colleagues
#' finds a few approximate largest singular values and corresponding
#' singular vectors of a sparse or dense matrix. It is a fast and
#' ... |
#usage: R --vanilla CMD BATCH "--args path/to/input_file path/to/output_file" outlierDetect.R
library(dplyr)
library(magrittr)
library(AnomalyDetection)
#setwd('~/workspace/metropolis')
args = commandArgs(TRUE)
input_file = args[1]
output_file = args[2]
allData = read.csv(input_file, header=T, stringsAsFactors=F, ... | /R/outlierDetect.R | permissive | trebor/metropolis | R | false | false | 2,182 | r | #usage: R --vanilla CMD BATCH "--args path/to/input_file path/to/output_file" outlierDetect.R
library(dplyr)
library(magrittr)
library(AnomalyDetection)
#setwd('~/workspace/metropolis')
args = commandArgs(TRUE)
input_file = args[1]
output_file = args[2]
allData = read.csv(input_file, header=T, stringsAsFactors=F, ... |
#' Australian estimated resident population by age and date
#' @param date A vector of dates. If \code{NULL}, values for all dates are returned in a table. The dates need not be quarters, provided \code{roll != FALSE},
#' @param age A vector of (integer) ages from 0 to 100 inclusive. If \code{NULL}, all ages are retur... | /R/aus_pop_qtr_age.R | no_license | MattCowgill/grattan | R | false | false | 3,575 | r | #' Australian estimated resident population by age and date
#' @param date A vector of dates. If \code{NULL}, values for all dates are returned in a table. The dates need not be quarters, provided \code{roll != FALSE},
#' @param age A vector of (integer) ages from 0 to 100 inclusive. If \code{NULL}, all ages are retur... |
#' Convert graph to an undirected graph
#' @description Take a graph which is directed and
#' convert it to an undirected graph.
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @return a graph object of class \code{dgr_graph}.
#' @examples
#' # Create a graph with a directed tree
#' graph <-
#' create... | /R/set_graph_undirected.R | no_license | DataXujing/DiagrammeR | R | false | false | 1,580 | r | #' Convert graph to an undirected graph
#' @description Take a graph which is directed and
#' convert it to an undirected graph.
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @return a graph object of class \code{dgr_graph}.
#' @examples
#' # Create a graph with a directed tree
#' graph <-
#' create... |
library(plotly)
library(plyr)
#USPersonalExpenditure <- data.frame("Categorie"=rownames(USPersonalExpenditure), USPersonalExpenditure)
#data <- USPersonalExpenditure[,c('Categorie', 'X1955')]
Sys.setlocale(category = "LC_ALL", locale = "Portuguese_Portugal.1252")
fifa <-read.csv(file="D:/Downloads/shiny_app/Shin... | /exemplos.R | no_license | EduardoZanela/first-shiny-r-app | R | false | false | 3,621 | r | library(plotly)
library(plyr)
#USPersonalExpenditure <- data.frame("Categorie"=rownames(USPersonalExpenditure), USPersonalExpenditure)
#data <- USPersonalExpenditure[,c('Categorie', 'X1955')]
Sys.setlocale(category = "LC_ALL", locale = "Portuguese_Portugal.1252")
fifa <-read.csv(file="D:/Downloads/shiny_app/Shin... |
#Lebanon vaccine
library(here)
source('U:/GitHub/Covid/Automation/00_Functions_automation.R')
library(lubridate)
library(dplyr)
library(tidyverse)
library(readxl)
library(googledrive)
library(purrr)
# assigning Drive credentials in the case the script is verified manually
if (!"email" %in% ls()){
email <- "jessi... | /Automation/00_hydra/Lebanon_vaccine.R | permissive | jessicadonzowa/covid_age | R | false | false | 5,034 | r | #Lebanon vaccine
library(here)
source('U:/GitHub/Covid/Automation/00_Functions_automation.R')
library(lubridate)
library(dplyr)
library(tidyverse)
library(readxl)
library(googledrive)
library(purrr)
# assigning Drive credentials in the case the script is verified manually
if (!"email" %in% ls()){
email <- "jessi... |
### Read counts of each sample
order.sample <- c("H0",'H1',"H4", "H7Sh","H7R", "H14L","H14S","H14R","U0",'U1',"U4", "U7Sh","U7R", "U14L","U14S","U14R")
## Bacteria
df.sample <- bac.clean.ss %>%
psmelt()
head(df.sample)
# we need to group by samples
df.sample.total <- df.sample %>%
group_by(Sample, Group) ... | /Absolute reads.R | no_license | hyunkim90/seed_to_seedling_movement | R | false | false | 3,769 | r | ### Read counts of each sample
order.sample <- c("H0",'H1',"H4", "H7Sh","H7R", "H14L","H14S","H14R","U0",'U1',"U4", "U7Sh","U7R", "U14L","U14S","U14R")
## Bacteria
df.sample <- bac.clean.ss %>%
psmelt()
head(df.sample)
# we need to group by samples
df.sample.total <- df.sample %>%
group_by(Sample, Group) ... |
# Jelinksi-Moranda Model
JM_input <- c("IF")
JM_methods <- c("BM")
JM_params <- c("N0","Phi")
JM_numfailsparm <- c(1)
JM_fullname <- c("Jelinski-Moranda")
JM_plotcolor <- c("red")
JM_type <- c("FR","Exp")
JM_Finite <- TRUE
JM_Results<- data.frame("format"="xlsx","fileName"="model_data") # Sheet name is generated in tes... | /SFRAT/models/JM/Model_specifications.R | permissive | vnagaraju14/SFRAT_Automated-Report-Generation | R | false | false | 436 | r | # Jelinksi-Moranda Model
JM_input <- c("IF")
JM_methods <- c("BM")
JM_params <- c("N0","Phi")
JM_numfailsparm <- c(1)
JM_fullname <- c("Jelinski-Moranda")
JM_plotcolor <- c("red")
JM_type <- c("FR","Exp")
JM_Finite <- TRUE
JM_Results<- data.frame("format"="xlsx","fileName"="model_data") # Sheet name is generated in tes... |
## GETTING AND CLEANING DATA: Course project ##
## Juan Jose Garces Iniesta
## Script to perform the project operations specified in the course project
## instructions :
## https://class.coursera.org/getdata-016/human_grading/view/courses/973758/assessments/3/submissions
## This script needs that the folder "UCI HA... | /run_analysis.R | no_license | datadiver/GettingData-CourseProject | R | false | false | 3,792 | r | ## GETTING AND CLEANING DATA: Course project ##
## Juan Jose Garces Iniesta
## Script to perform the project operations specified in the course project
## instructions :
## https://class.coursera.org/getdata-016/human_grading/view/courses/973758/assessments/3/submissions
## This script needs that the folder "UCI HA... |
write_out <- function(x, ..., out_file = file_connection, sep = "\n") {
cat(paste0(x, ...), file = out_file, append = TRUE, sep = sep)
}
chunk_wrapper <- function(x, ..., out_file = file_connection, options = c("echo = FALSE", "warning = FALSE", "message = FALSE"), label = NULL, quiet = FALSE) {
if (isTRUE(quiet))... | /R/knitr_functions.R | no_license | omair-a-khan/ddictR | R | false | false | 726 | r | write_out <- function(x, ..., out_file = file_connection, sep = "\n") {
cat(paste0(x, ...), file = out_file, append = TRUE, sep = sep)
}
chunk_wrapper <- function(x, ..., out_file = file_connection, options = c("echo = FALSE", "warning = FALSE", "message = FALSE"), label = NULL, quiet = FALSE) {
if (isTRUE(quiet))... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shattered.map.plot.r
\name{shattered.map.plot}
\alias{shattered.map.plot}
\title{Shattered regions genomic map}
\usage{
shattered.map.plot(
chromo.regs.obj,
conf = "hc",
genome.v = "hg19",
chrlist = NULL,
freq.cut = NULL,
add.lege... | /man/shattered.map.plot.Rd | no_license | ccbiolab/svpluscnv | R | false | true | 1,422 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shattered.map.plot.r
\name{shattered.map.plot}
\alias{shattered.map.plot}
\title{Shattered regions genomic map}
\usage{
shattered.map.plot(
chromo.regs.obj,
conf = "hc",
genome.v = "hg19",
chrlist = NULL,
freq.cut = NULL,
add.lege... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cellassign.R
\name{cellassign}
\alias{cellassign}
\title{Assign cells to known cell types}
\usage{
cellassign(exprs_obj, rho, s = NULL, X = NULL, exprs_obj_known = NULL,
s_known = NULL, X_known = NULL, delta_alpha_prior = NULL,
delta_beta... | /man/cellassign.Rd | permissive | kieranrcampbell/old-cellassign | R | false | true | 1,227 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cellassign.R
\name{cellassign}
\alias{cellassign}
\title{Assign cells to known cell types}
\usage{
cellassign(exprs_obj, rho, s = NULL, X = NULL, exprs_obj_known = NULL,
s_known = NULL, X_known = NULL, delta_alpha_prior = NULL,
delta_beta... |
#' Download spatial data of the Brazilian Semiarid region
#'
#' @description
#' This data set covers the whole of Brazilian Semiarid as defined in the resolution
#' in 23/11/2017). The original data comes from the Brazilian Institute of Geography
#' and Statistics (IBGE) and can be found at \url{https://www.ibge.... | /R/read_semiarid.R | no_license | cran/geobr | R | false | false | 1,165 | r | #' Download spatial data of the Brazilian Semiarid region
#'
#' @description
#' This data set covers the whole of Brazilian Semiarid as defined in the resolution
#' in 23/11/2017). The original data comes from the Brazilian Institute of Geography
#' and Statistics (IBGE) and can be found at \url{https://www.ibge.... |
library(rjags)
library(runjags)
library(dplyr)
library(arm) #for invlogit function
library(tidyr)
library(ggplot2)
source("/projectnb/talbot-lab-data/zrwerbin/temporal_forecast/functions/helperFunctions.r")
source("/projectnb/talbot-lab-data/zrwerbin/temporal_forecast/functions/prepModelData.r")
# Read in covariate da... | /analysis/runSpatioTemporalModel.r | no_license | microbesatBU/microbialForecasts | R | false | false | 5,391 | r | library(rjags)
library(runjags)
library(dplyr)
library(arm) #for invlogit function
library(tidyr)
library(ggplot2)
source("/projectnb/talbot-lab-data/zrwerbin/temporal_forecast/functions/helperFunctions.r")
source("/projectnb/talbot-lab-data/zrwerbin/temporal_forecast/functions/prepModelData.r")
# Read in covariate da... |
library(stats)
library(MASS)
library(lattice)
library(mvtnorm)
library(gmm)
library(tmvtnorm)
library(cluster)
library(ForImp)
library(pcaPP)
library(robustbase)
library(rrcov)
library(e1071)
#Loading Image Data and Keypoint Data
data=read.csv("training.csv", stringsAsFactors=F)
data=as.matrix(data)
... | /Project_Script_File.R | permissive | AnthonyRamdeen/MSc.Statistics | R | false | false | 76,121 | r | library(stats)
library(MASS)
library(lattice)
library(mvtnorm)
library(gmm)
library(tmvtnorm)
library(cluster)
library(ForImp)
library(pcaPP)
library(robustbase)
library(rrcov)
library(e1071)
#Loading Image Data and Keypoint Data
data=read.csv("training.csv", stringsAsFactors=F)
data=as.matrix(data)
... |
#' Plot cover output
#'
#' \code{plot.cover} generates R plots of covers
#'
#' @param x A cover
#' @param coloring color values. See \code{\link{cover_coloring}}
#' @param simplify simplification method. See \code{\link{simplify_cover}}
#' @param label how should the nodes be labeled. Set NA for no labels.
#' @param... | /R/plot_method.R | no_license | blasern/dcph | R | false | false | 6,161 | r | #' Plot cover output
#'
#' \code{plot.cover} generates R plots of covers
#'
#' @param x A cover
#' @param coloring color values. See \code{\link{cover_coloring}}
#' @param simplify simplification method. See \code{\link{simplify_cover}}
#' @param label how should the nodes be labeled. Set NA for no labels.
#' @param... |
#' @title QTL_PoissonGamma
#' @param pheno The phenotype data matrix. Needs to be IP read count that has been normalized for expression level.
#' @param vcf_file The vcf file for genotype. The chromosome position must be sorted!!
#' @param peak_bed The peak file in BED12 format that needs to correspond to phenotype dat... | /R/QTL_PoissonGamma.R | no_license | scottzijiezhang/m6Amonster | R | false | false | 7,406 | r | #' @title QTL_PoissonGamma
#' @param pheno The phenotype data matrix. Needs to be IP read count that has been normalized for expression level.
#' @param vcf_file The vcf file for genotype. The chromosome position must be sorted!!
#' @param peak_bed The peak file in BED12 format that needs to correspond to phenotype dat... |
#' \lifecycle{experimental}
#' @title Get Harvest account ID from system environment variables
#' @description Retrieve the harvestR account ID from system environment variables under the default alias HARVEST_ACCOUNT_ID
#'
#' @importFrom assertthat assert_that
#' @export
get_harvest_account <- function() {
account ... | /R/auth.R | permissive | propellerpdx/harvestR | R | false | false | 5,294 | r | #' \lifecycle{experimental}
#' @title Get Harvest account ID from system environment variables
#' @description Retrieve the harvestR account ID from system environment variables under the default alias HARVEST_ACCOUNT_ID
#'
#' @importFrom assertthat assert_that
#' @export
get_harvest_account <- function() {
account ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_sets.R
\docType{data}
\name{arth}
\alias{arth}
\title{Arthropod community abundance data}
\format{A data frame with 547 rows and 3 variables:
\describe{
\item{spp}{species ID}
\item{count}{number of individuals}
\item{mass}{biomass... | /man/arth.Rd | no_license | cmerow/meteR | R | false | true | 687 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_sets.R
\docType{data}
\name{arth}
\alias{arth}
\title{Arthropod community abundance data}
\format{A data frame with 547 rows and 3 variables:
\describe{
\item{spp}{species ID}
\item{count}{number of individuals}
\item{mass}{biomass... |
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814551L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... | /dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615939585-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 826 | r | testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814551L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... |
p <-
ggplot(mtcars, aes(x = mpg)) +
geom_dotplot()
| /ggplot2/Layers/Geoms/geom_dotplot/example1.R | no_license | plotly/ssim_baselines | R | false | false | 58 | r | p <-
ggplot(mtcars, aes(x = mpg)) +
geom_dotplot()
|
#### Use default R = 3.3 for DNAcopy_1.50.1
library("DNAcopy", lib.loc="/mnt/wigclust5/data/safe/kendall/DNAcopy_1.50.1")
lowess.gc <- function(jtkx, jtky) {
jtklow <- lowess(jtkx, log(jtky), f=0.05)
jtkz <- approx(jtklow$x, jtklow$y, jtkx)
return(exp(log(jtky) - jtkz$y))
}
lowess.norm <- func... | /R_scripts/normalize_GC_segment.R | no_license | KrasnitzLab/NormaFlyze | R | false | false | 7,137 | r | #### Use default R = 3.3 for DNAcopy_1.50.1
library("DNAcopy", lib.loc="/mnt/wigclust5/data/safe/kendall/DNAcopy_1.50.1")
lowess.gc <- function(jtkx, jtky) {
jtklow <- lowess(jtkx, log(jtky), f=0.05)
jtkz <- approx(jtklow$x, jtklow$y, jtkx)
return(exp(log(jtky) - jtkz$y))
}
lowess.norm <- func... |
library(pdftools)
### Name: pdf_render_page
### Title: Render / Convert PDF
### Aliases: pdf_render_page render pdf_convert poppler_config
### ** Examples
# Rendering should be supported on all platforms now
if(poppler_config()$can_render){
# convert few pages to png
file.copy(file.path(Sys.getenv("R_DOC_DIR"), "N... | /data/genthat_extracted_code/pdftools/examples/pdf_render_page.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 823 | r | library(pdftools)
### Name: pdf_render_page
### Title: Render / Convert PDF
### Aliases: pdf_render_page render pdf_convert poppler_config
### ** Examples
# Rendering should be supported on all platforms now
if(poppler_config()$can_render){
# convert few pages to png
file.copy(file.path(Sys.getenv("R_DOC_DIR"), "N... |
library(networkD3)
edgelist <- read.csv('edgelist.csv')
nodelist <- read.csv('nodelist.csv')
forceNetwork(Links = edgelist,
Nodes = nodelist,
Source = "SourceID",
Target = "TargetID",
Value = "Weight",
NodeID = "NodeName",
opacity = 0.8,
... | /networkD3.R | permissive | Yimeng-Xu/ANLY503-chocolate_bar_analytics | R | false | false | 623 | r | library(networkD3)
edgelist <- read.csv('edgelist.csv')
nodelist <- read.csv('nodelist.csv')
forceNetwork(Links = edgelist,
Nodes = nodelist,
Source = "SourceID",
Target = "TargetID",
Value = "Weight",
NodeID = "NodeName",
opacity = 0.8,
... |
\name{analyzeAlternativeSplicing}
\alias{analyzeAlternativeSplicing}
\alias{analyzeIntronRetention}
\title{
Analyse alternative splicing (including intron retention(s))
}
\description{
These function utilize the analysis of alternative splicing previously implemented in the now decapitated \code{spliceR} package to det... | /man/analyzeAlternativSplicing.Rd | no_license | afonsoguerra/IsoformSwitchAnalyzeR | R | false | false | 3,633 | rd | \name{analyzeAlternativeSplicing}
\alias{analyzeAlternativeSplicing}
\alias{analyzeIntronRetention}
\title{
Analyse alternative splicing (including intron retention(s))
}
\description{
These function utilize the analysis of alternative splicing previously implemented in the now decapitated \code{spliceR} package to det... |
## Put comments here that give an overall description of what your
## functions do
## Function makeCacheMatreix creates a special "matrix", which is a list containing a functions to
## 1. set the value of the vector
## 2. get the value of the vector
## 3. set the value of the mean
## 4. get the value of the mean
make... | /cachematrix.R | no_license | SarangaRam/ProgrammingAssignment2 | R | false | false | 1,976 | r | ## Put comments here that give an overall description of what your
## functions do
## Function makeCacheMatreix creates a special "matrix", which is a list containing a functions to
## 1. set the value of the vector
## 2. get the value of the vector
## 3. set the value of the mean
## 4. get the value of the mean
make... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.