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 |
|---|---|---|---|---|---|---|---|---|---|
main <- function(args){
#gene <- as.character(args[0])
gene <- "WDR77"
load("~/Google Drive/Lab Files/WDR77-PRMT5/data/ucsc_annot.RData")
tissue <- get_tissue(args[1])
df <- read_delim(args[1], delim='\t', escape_double = F, trim_ws = T, progress = F)
#print(nrow(r))
isocount <- countIsos(df, gene, tissue... | /isoform_batch.R | no_license | ssj1739/MyToolkit | R | false | false | 2,608 | r | main <- function(args){
#gene <- as.character(args[0])
gene <- "WDR77"
load("~/Google Drive/Lab Files/WDR77-PRMT5/data/ucsc_annot.RData")
tissue <- get_tissue(args[1])
df <- read_delim(args[1], delim='\t', escape_double = F, trim_ws = T, progress = F)
#print(nrow(r))
isocount <- countIsos(df, gene, tissue... |
elnormAltSinglyCensored.half.cen.level <-
function (x, censored, N, T1, n.cen, censoring.side, ci, ci.method = "normal.approx",
ci.type, conf.level, ci.sample.size = N - n.cen, pivot.statistic = c("z",
"t"))
{
x[censored] <- T1/2
muhat <- mean(x)
sdhat <- sd(x)
parameters <- c(mea... | /R/elnormAltSinglyCensored.half.cen.level.R | no_license | alexkowa/EnvStats | R | false | false | 877 | r | elnormAltSinglyCensored.half.cen.level <-
function (x, censored, N, T1, n.cen, censoring.side, ci, ci.method = "normal.approx",
ci.type, conf.level, ci.sample.size = N - n.cen, pivot.statistic = c("z",
"t"))
{
x[censored] <- T1/2
muhat <- mean(x)
sdhat <- sd(x)
parameters <- c(mea... |
#Reading data from the downloaded file located in data subdirectory
electricData <- read.table("./data/household_power_consumption.txt",sep=";",header=TRUE,colClasses = c("character", "character", "numeric","numeric","numeric","numeric","numeric","numeric","numeric"),na.strings="?")
# Date format settings
electricData... | /plot3.R | no_license | ashavish/ExData_Plotting1 | R | false | false | 1,250 | r | #Reading data from the downloaded file located in data subdirectory
electricData <- read.table("./data/household_power_consumption.txt",sep=";",header=TRUE,colClasses = c("character", "character", "numeric","numeric","numeric","numeric","numeric","numeric","numeric"),na.strings="?")
# Date format settings
electricData... |
library(rstan)
d <- read.csv(file='…/ch.5/input/data-attendance-3.txt')
d_conv <- data.frame(X=c(1, 2, 3))
rownames(d_conv) <- c('A', 'B', 'C')
data <- list(I=nrow(d), A=d$A, Score=d$Score/200, WID=d_conv[d$Weather, ], Y=d$Y)
fit <- stan(file='…/ch.5/e/ex4.stan', data=data, pars=c('b', 'bw2', 'bw3'), seed=1234)
| /code/ch.5/e/ex4.r | permissive | rhyeu/study_rstan | R | false | false | 319 | r | library(rstan)
d <- read.csv(file='…/ch.5/input/data-attendance-3.txt')
d_conv <- data.frame(X=c(1, 2, 3))
rownames(d_conv) <- c('A', 'B', 'C')
data <- list(I=nrow(d), A=d$A, Score=d$Score/200, WID=d_conv[d$Weather, ], Y=d$Y)
fit <- stan(file='…/ch.5/e/ex4.stan', data=data, pars=c('b', 'bw2', 'bw3'), seed=1234)
|
#' @title Percent spliced-in (PSI) visualization for retained introns (RI)
#'
#' @description
#' \code{PlotPSI.RI} visualizes percent spliced-in (PSI) for each genomic coordinate for retained intron (RI) event across groups of single cells.
#'
#' @details
#' This function visualizes the percent spliced-in (PSI) at each... | /R/Script_VALERIE_PlotPSI_RI_MultiGroups.R | no_license | silvidc/VALERIE | R | false | false | 26,521 | r | #' @title Percent spliced-in (PSI) visualization for retained introns (RI)
#'
#' @description
#' \code{PlotPSI.RI} visualizes percent spliced-in (PSI) for each genomic coordinate for retained intron (RI) event across groups of single cells.
#'
#' @details
#' This function visualizes the percent spliced-in (PSI) at each... |
# This program merges the terminal data onto the clean data file from data_clean.R
# set up_______________
# libraries
library(tidyverse)
#' Merge terminal and sales/purchase data
#'
#' This function is the last step in the cleaning process
#' @param sales_path path of sales/purchasing data (cleaned)
#' @param termi... | /programs/AnalyzeCosts/R/03_merge_terminal.R | no_license | cdelannoy/sourcingboston | R | false | false | 1,721 | r | # This program merges the terminal data onto the clean data file from data_clean.R
# set up_______________
# libraries
library(tidyverse)
#' Merge terminal and sales/purchase data
#'
#' This function is the last step in the cleaning process
#' @param sales_path path of sales/purchasing data (cleaned)
#' @param termi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAnnual(generic).R
\docType{methods}
\name{getAnnual}
\alias{getAnnual}
\alias{getAnnual,data.frame-method}
\alias{getAnnual,list-method}
\title{Get annual rainfall of different rainfall time series}
\usage{
getAnnual(data, output = "series... | /man/getAnnual.Rd | no_license | grazieleruas/hyfo | R | false | true | 2,537 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAnnual(generic).R
\docType{methods}
\name{getAnnual}
\alias{getAnnual}
\alias{getAnnual,data.frame-method}
\alias{getAnnual,list-method}
\title{Get annual rainfall of different rainfall time series}
\usage{
getAnnual(data, output = "series... |
library(magrittr)
setwd("~/github/driver-species/")
# read lopezaraiza data
# files with a correspond to abbundances
# files with b correspond to interactions
# files with exp are experimental plots (uninvaded) and ctl are control (invaded plots)
folder <- "./data/raw/networks_lopezaraiza/"
net_names <- list.files(f... | /code/02-prepare_lopezaraiza_data.R | no_license | a1171404817/driver-species | R | false | false | 1,472 | r | library(magrittr)
setwd("~/github/driver-species/")
# read lopezaraiza data
# files with a correspond to abbundances
# files with b correspond to interactions
# files with exp are experimental plots (uninvaded) and ctl are control (invaded plots)
folder <- "./data/raw/networks_lopezaraiza/"
net_names <- list.files(f... |
#helper.function <- function()
#{
# return(1)
#}
my.rt <- function(x,...)
{
# apply read.table to txt files if data table is not already cached
# x is a character vector
y <- gsub(".txt", ".dt", x, fixed = T)
if (y %in% ls() == FALSE){
rt <- read.table(x, header = F, sep = "", dec = '.')
... | /lib/helpers.R | no_license | gabx/accelerometers | R | false | false | 332 | r | #helper.function <- function()
#{
# return(1)
#}
my.rt <- function(x,...)
{
# apply read.table to txt files if data table is not already cached
# x is a character vector
y <- gsub(".txt", ".dt", x, fixed = T)
if (y %in% ls() == FALSE){
rt <- read.table(x, header = F, sep = "", dec = '.')
... |
var_stitch <- function(x, y) {
library(abind)
# put together filepaths for first set of sims
file1 <- paste('~/Projects/MS-thesis/data/variance_runs/', x, '_biomass.Rda', sep = '')
file2 <- paste('~/Projects/MS-thesis/data/variance_runs/', x, '_yield.Rda', sep = '')
# load them as objects
load(file1)... | /code/variance/var_stitch.R | no_license | vquennessen/MS-thesis | R | false | false | 1,338 | r | var_stitch <- function(x, y) {
library(abind)
# put together filepaths for first set of sims
file1 <- paste('~/Projects/MS-thesis/data/variance_runs/', x, '_biomass.Rda', sep = '')
file2 <- paste('~/Projects/MS-thesis/data/variance_runs/', x, '_yield.Rda', sep = '')
# load them as objects
load(file1)... |
# set up generic for dstan ----------------------------------------------------------
"print.dstan" <- function(x, ...){
cat("data object for spatial fusion modeling with Stan consisting of: \n")
cat(paste("-", x$n_point_var, "geostatistical variable(s), with", x$n_point, "locations \n"))
cat(paste("-", x... | /R/print.R | no_license | cran/spatialfusion | R | false | false | 1,092 | r |
# set up generic for dstan ----------------------------------------------------------
"print.dstan" <- function(x, ...){
cat("data object for spatial fusion modeling with Stan consisting of: \n")
cat(paste("-", x$n_point_var, "geostatistical variable(s), with", x$n_point, "locations \n"))
cat(paste("-", x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.devicefarm_operations.R
\name{delete_vpce_configuration}
\alias{delete_vpce_configuration}
\title{Deletes a configuration for your Amazon Virtual Private Cloud (VPC) endpoint}
\usage{
delete_vpce_configuration(arn)
}
\arguments{
\item{ar... | /service/paws.devicefarm/man/delete_vpce_configuration.Rd | permissive | CR-Mercado/paws | R | false | true | 612 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.devicefarm_operations.R
\name{delete_vpce_configuration}
\alias{delete_vpce_configuration}
\title{Deletes a configuration for your Amazon Virtual Private Cloud (VPC) endpoint}
\usage{
delete_vpce_configuration(arn)
}
\arguments{
\item{ar... |
### UI code for the 'Export Predictions' tab
ui.export <- function() {
tabItem(
tabName = "export",
conditionalPanel("output.export_flag == false", ui.notice.no.pred.original()),
conditionalPanel(
condition = "output.export_flag",
fluidRow(
#########################################... | /shiny/ui_files/ui_6_export.R | no_license | GRSEB9S/eSDM | R | false | false | 6,882 | r | ### UI code for the 'Export Predictions' tab
ui.export <- function() {
tabItem(
tabName = "export",
conditionalPanel("output.export_flag == false", ui.notice.no.pred.original()),
conditionalPanel(
condition = "output.export_flag",
fluidRow(
#########################################... |
##############################################################
## extract Data for Cave Site from surrounding grid boxes ####
##############################################################
extract_gridboxes <- function(lon_cave, lat_cave, d.lon = 3.75, d.lat = 2.5){
result_list <- list()
lon_list <- seq(from = 0, ... | /Functions/extract_gridboxes.R | no_license | ginnyweasleyIUP/202008_PMILPaper | R | false | false | 2,679 | r | ##############################################################
## extract Data for Cave Site from surrounding grid boxes ####
##############################################################
extract_gridboxes <- function(lon_cave, lat_cave, d.lon = 3.75, d.lat = 2.5){
result_list <- list()
lon_list <- seq(from = 0, ... |
library(tidyverse)
library(stringr)
source('code/linear_classifiers.R')
source('code/svm_fun.R')
source('code/help_fun.R')
source('code/toy_distributions_fun.R')
source('code/svm_movies.R')
source('figures/presentation_fun.R')
# setup -------------------------------------------------------------------
# set dat... | /figures/svm_setup_soft.R | no_license | idc9/svm_geometry | R | false | false | 3,142 | r |
library(tidyverse)
library(stringr)
source('code/linear_classifiers.R')
source('code/svm_fun.R')
source('code/help_fun.R')
source('code/toy_distributions_fun.R')
source('code/svm_movies.R')
source('figures/presentation_fun.R')
# setup -------------------------------------------------------------------
# set dat... |
context("resource-schedule")
test_that("a schedule name conflicts with a generator name", {
expect_error(simmer() %>%
add_generator("asdf", create_trajectory() %>% timeout(0), at(0)) %>%
add_resource("asdf", schedule(c(1 ,2), c(1, 1)))
)
})
test_that("a schedule cannot be created if the corresponding reso... | /tests/testthat/test-simmer-resource-schedule.R | no_license | jimhester/simmer | R | false | false | 3,928 | r | context("resource-schedule")
test_that("a schedule name conflicts with a generator name", {
expect_error(simmer() %>%
add_generator("asdf", create_trajectory() %>% timeout(0), at(0)) %>%
add_resource("asdf", schedule(c(1 ,2), c(1, 1)))
)
})
test_that("a schedule cannot be created if the corresponding reso... |
\name{calc.dist}
\alias{calc.dist}
\title{Internal function used to compute the inter-site distance between sites.}
\description{
Calculates the distance between sites of a random variable. This is an internal function called by the avg.variog and the Emp.variog function
when computing the empirical variogram.
}
\usag... | /man/calc.dist.Rd | no_license | cran/ProbForecastGOP | R | false | false | 1,187 | rd | \name{calc.dist}
\alias{calc.dist}
\title{Internal function used to compute the inter-site distance between sites.}
\description{
Calculates the distance between sites of a random variable. This is an internal function called by the avg.variog and the Emp.variog function
when computing the empirical variogram.
}
\usag... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/po.R
\name{po_find}
\alias{po_find}
\title{po_find}
\usage{
po_find(
rwl,
rc,
maxpo = NULL,
min.overlap = 10,
nyrs = NULL,
f = 0.5,
make.plot = TRUE
)
}
\arguments{
\item{rwl}{rwl/data.frame object containing the tree ring serie... | /man/po_find.Rd | no_license | konradmayer/trlboku | R | false | true | 1,816 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/po.R
\name{po_find}
\alias{po_find}
\title{po_find}
\usage{
po_find(
rwl,
rc,
maxpo = NULL,
min.overlap = 10,
nyrs = NULL,
f = 0.5,
make.plot = TRUE
)
}
\arguments{
\item{rwl}{rwl/data.frame object containing the tree ring serie... |
library(GridLMM)
library(data.table)
library(ggplot2)
library(dplyr)
library(tidyr)
library(cowplot)
drought<-read.table('./GWASResiduals/Drought BLUPS-Table 1.csv',sep=",",header=TRUE)
phenotypes<-c(DA='dfm',PlantHeight='altpl',ASI='asi',DryWeight='pseco')
#bare cob weight, grain weight per hectare, weren't measured ... | /DroughtGxeGridLMM.R | no_license | danjgates/AdaptationScripts2 | R | false | false | 5,618 | r | library(GridLMM)
library(data.table)
library(ggplot2)
library(dplyr)
library(tidyr)
library(cowplot)
drought<-read.table('./GWASResiduals/Drought BLUPS-Table 1.csv',sep=",",header=TRUE)
phenotypes<-c(DA='dfm',PlantHeight='altpl',ASI='asi',DryWeight='pseco')
#bare cob weight, grain weight per hectare, weren't measured ... |
install.packages("readr")
install.packages("ggplot2")
install.packages("lmtest")
install.packages("splm")
install.packages('leaflet')
install.packages("naniar")
install.packages("gplots")
install.packages("spdep")
install.packages("maptools")
install.packages('sf')
install.packages("plm")
install.packages("tmap")
insta... | /install.R | permissive | ekontou/ridesourcing-safety | R | false | false | 369 | r | install.packages("readr")
install.packages("ggplot2")
install.packages("lmtest")
install.packages("splm")
install.packages('leaflet')
install.packages("naniar")
install.packages("gplots")
install.packages("spdep")
install.packages("maptools")
install.packages('sf')
install.packages("plm")
install.packages("tmap")
insta... |
\name{removeExperiments}
\alias{removeExperiments}
\title{Remove jobs from registry.}
\usage{
removeExperiments(reg, ids, force = FALSE)
}
\arguments{
\item{reg}{[\code{\link{ExperimentRegistry}}]\cr
Registry.}
\item{ids}{[\code{integer}]\cr Ids of jobs you want to
remove. Default is none.}
\item{force}{[\... | /man/removeExperiments.Rd | no_license | distanceModling/BatchExperiments | R | false | false | 680 | rd | \name{removeExperiments}
\alias{removeExperiments}
\title{Remove jobs from registry.}
\usage{
removeExperiments(reg, ids, force = FALSE)
}
\arguments{
\item{reg}{[\code{\link{ExperimentRegistry}}]\cr
Registry.}
\item{ids}{[\code{integer}]\cr Ids of jobs you want to
remove. Default is none.}
\item{force}{[\... |
rollcall <- function(data,
yea=1,nay=0,
missing=NA,
notInLegis=9,
legis.names=NULL,
vote.names=NULL,
legis.data=NULL,
vote.data=NULL,
desc=NULL,
... | /R/rollcall.r | no_license | cran/pscl | R | false | false | 17,985 | r | rollcall <- function(data,
yea=1,nay=0,
missing=NA,
notInLegis=9,
legis.names=NULL,
vote.names=NULL,
legis.data=NULL,
vote.data=NULL,
desc=NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oulad.R
\docType{data}
\name{student_vle}
\alias{student_vle}
\title{Student Virtual Learning Environment (VLE) interaction data from OULAD dataset}
\format{A data frame with 10655280 rows and 6 variables:
\describe{
\item{code_module}{Cou... | /man/student_vle.Rd | no_license | Joshuahii0521/oulad-1 | R | false | true | 1,021 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oulad.R
\docType{data}
\name{student_vle}
\alias{student_vle}
\title{Student Virtual Learning Environment (VLE) interaction data from OULAD dataset}
\format{A data frame with 10655280 rows and 6 variables:
\describe{
\item{code_module}{Cou... |
# This script was written by Michaël Adriaensen.
# For a master's thesis at Universiteit Antwerpen.
# Department of Computer Science
# Data Science
# 2019 - 2020
# This script was adapted from the source code for Nabi and Shpitzer's experiments in the paper
# 'Fair Inference on Outcomes'. The script was adapted to per... | /Master_Thesis_Code/Fair_inference/constrained_mle.R | no_license | michael5555/Master-Thesis-Code | R | false | false | 6,524 | r | # This script was written by Michaël Adriaensen.
# For a master's thesis at Universiteit Antwerpen.
# Department of Computer Science
# Data Science
# 2019 - 2020
# This script was adapted from the source code for Nabi and Shpitzer's experiments in the paper
# 'Fair Inference on Outcomes'. The script was adapted to per... |
library(rasterVis)
### Name: splom-methods
### Title: Scatter plot matrices of Raster objects.
### Aliases: splom splom,RasterStackBrick,missing-method
### Keywords: methods spatial
### ** Examples
## Not run:
##D ##Solar irradiation data from CMSAF
##D ##Data available from http://www.box.net/shared/rl51y1t9sldxk... | /data/genthat_extracted_code/rasterVis/examples/splom-methods.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 742 | r | library(rasterVis)
### Name: splom-methods
### Title: Scatter plot matrices of Raster objects.
### Aliases: splom splom,RasterStackBrick,missing-method
### Keywords: methods spatial
### ** Examples
## Not run:
##D ##Solar irradiation data from CMSAF
##D ##Data available from http://www.box.net/shared/rl51y1t9sldxk... |
#' Module runtime environment (session based)
#' @export
ExecEnvir <- R6::R6Class(
classname = 'ExecEnvir',
portable = FALSE,
cloneable = TRUE,
private = list(
module_env = NULL,
data_env = NULL,
session = NULL,
cache_env = NULL,
inputs = NULL,
outputs = NULL,
update = NULL,
tabs... | /R/cls_module_env.R | no_license | dipterix/rave | R | false | false | 32,520 | r | #' Module runtime environment (session based)
#' @export
ExecEnvir <- R6::R6Class(
classname = 'ExecEnvir',
portable = FALSE,
cloneable = TRUE,
private = list(
module_env = NULL,
data_env = NULL,
session = NULL,
cache_env = NULL,
inputs = NULL,
outputs = NULL,
update = NULL,
tabs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functionsf1.R
\name{getSprintResults}
\alias{getSprintResults}
\title{Get a data.frame of results for an F1 Sprint Qualifying session}
\usage{
getSprintResults(year, race)
}
\arguments{
\item{year}{a four digit integer}
\item{race}{a 1 or 2 ... | /man/getSprintResults.Rd | no_license | arkraieski/formula1data | R | false | true | 582 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functionsf1.R
\name{getSprintResults}
\alias{getSprintResults}
\title{Get a data.frame of results for an F1 Sprint Qualifying session}
\usage{
getSprintResults(year, race)
}
\arguments{
\item{year}{a four digit integer}
\item{race}{a 1 or 2 ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ctLongtowide.r
\name{ctLongToWide}
\alias{ctLongToWide}
\title{ctLongToWide
Restructures time series / panel data from long format to wide format for ctsem analysis}
\usage{
ctLongToWide(datalong, id, time, manifestNames, TDpredNames = NULL,
... | /man/ctLongToWide.Rd | no_license | davan690/ctsem | R | false | true | 1,874 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ctLongtowide.r
\name{ctLongToWide}
\alias{ctLongToWide}
\title{ctLongToWide
Restructures time series / panel data from long format to wide format for ctsem analysis}
\usage{
ctLongToWide(datalong, id, time, manifestNames, TDpredNames = NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynrModelInternal.R
\name{internalModelPrep}
\alias{internalModelPrep}
\title{Do internal model preparation for dynr}
\usage{
internalModelPrep(num_regime, dim_latent_var, xstart, ub, lb,
options = default.model.options, isContinuous... | /man/internalModelPrep.Rd | no_license | cran/dynr | R | false | true | 1,378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dynrModelInternal.R
\name{internalModelPrep}
\alias{internalModelPrep}
\title{Do internal model preparation for dynr}
\usage{
internalModelPrep(num_regime, dim_latent_var, xstart, ub, lb,
options = default.model.options, isContinuous... |
library(DIME)
### Name: gng.plot.fit
### Title: Plot GNG Goodness of Fit
### Aliases: gng.plot.fit
### Keywords: Graphics aplot
### ** Examples
library(DIME)
# generate simulated datasets with underlying exponential-normal components
N1 <- 1500; N2 <- 500; K <- 4; rmu <- c(-2.25,1.50); rsigma <- c(1,1);
rpi <- c(.... | /data/genthat_extracted_code/DIME/examples/gng.plot.fit.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,240 | r | library(DIME)
### Name: gng.plot.fit
### Title: Plot GNG Goodness of Fit
### Aliases: gng.plot.fit
### Keywords: Graphics aplot
### ** Examples
library(DIME)
# generate simulated datasets with underlying exponential-normal components
N1 <- 1500; N2 <- 500; K <- 4; rmu <- c(-2.25,1.50); rsigma <- c(1,1);
rpi <- c(.... |
library(communication)
wav.fnames = list.files(file.path('test1.wav'),
pattern = 'wav$',
recursive = TRUE,
full.names = TRUE
)
audio <- extractAudioFeatures(wav.fnames = wav.fnames, derivatives = 0) | /extractAudioFeatures_example.R | no_license | tmuhimbisemoses/CRANtings | R | false | false | 294 | r | library(communication)
wav.fnames = list.files(file.path('test1.wav'),
pattern = 'wav$',
recursive = TRUE,
full.names = TRUE
)
audio <- extractAudioFeatures(wav.fnames = wav.fnames, derivatives = 0) |
options(encoding = "UTF-8")
source("living_time_survey.R")
execute_all(in_dirname = "incoming", out_dirname = "outgoing", actions = c("新聞", "テレビ"))
| /living_time_survey/main.R | permissive | zettsu-t/cPlusPlusFriend | R | false | false | 161 | r | options(encoding = "UTF-8")
source("living_time_survey.R")
execute_all(in_dirname = "incoming", out_dirname = "outgoing", actions = c("新聞", "テレビ"))
|
library(aster)
### Name: predict.aster
### Title: Predict Method for Aster Model Fits
### Aliases: predict.aster predict.aster.formula
### Keywords: models regression
### ** Examples
### see package vignette for explanation ###
library(aster)
data(echinacea)
vars <- c("ld02", "ld03", "ld04", "fl02", "fl03", "fl04",... | /data/genthat_extracted_code/aster/examples/predict.aster.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,827 | r | library(aster)
### Name: predict.aster
### Title: Predict Method for Aster Model Fits
### Aliases: predict.aster predict.aster.formula
### Keywords: models regression
### ** Examples
### see package vignette for explanation ###
library(aster)
data(echinacea)
vars <- c("ld02", "ld03", "ld04", "fl02", "fl03", "fl04",... |
library(here)
library(HDF5Array)
library(SingleCellExperiment)
size <- commandArgs(trailingOnly=T)[2]
# load in the data saved in "best" way
tenx <- loadHDF5SummarizedExperiment(here(paste0("main/case_studies/data/subset/TENxBrainData/TENxBrainData_",size), paste0("TENxBrainData_", size, "_preprocessed")))
# save in ... | /ongoing_analysis/ChunkTest/TENxBrainData/Save_in_three_ways.R | no_license | grimbough/benchmark-hdf5-clustering | R | false | false | 1,156 | r | library(here)
library(HDF5Array)
library(SingleCellExperiment)
size <- commandArgs(trailingOnly=T)[2]
# load in the data saved in "best" way
tenx <- loadHDF5SummarizedExperiment(here(paste0("main/case_studies/data/subset/TENxBrainData/TENxBrainData_",size), paste0("TENxBrainData_", size, "_preprocessed")))
# save in ... |
library(MEMSS)
### Name: MathAchieve
### Title: Mathematics achievement scores
### Aliases: MathAchieve
### Keywords: datasets
### ** Examples
str(MathAchieve)
| /data/genthat_extracted_code/MEMSS/examples/MathAchieve.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 167 | r | library(MEMSS)
### Name: MathAchieve
### Title: Mathematics achievement scores
### Aliases: MathAchieve
### Keywords: datasets
### ** Examples
str(MathAchieve)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Preprocess.R
\name{normMat}
\alias{normMat}
\title{Normalize a expression matrix of raw counts to log2 (CPM/10+1) values}
\usage{
normMat(expmat)
}
\arguments{
\item{expmat}{A genes X samples expression matrix of raw (single cell) RNA-seq cou... | /man/normMat.Rd | no_license | plaisier-lab/CONICSmat | R | false | true | 466 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Preprocess.R
\name{normMat}
\alias{normMat}
\title{Normalize a expression matrix of raw counts to log2 (CPM/10+1) values}
\usage{
normMat(expmat)
}
\arguments{
\item{expmat}{A genes X samples expression matrix of raw (single cell) RNA-seq cou... |
### $Id: xy_Obj.R 53 2007-04-20 12:05:00Z bhm $
# %=============== xy_Obj.m ====================
# % xyObj = xy_Obj(xObj,Y,yNames)
# % takes an object created by x_Obj as input and
# % add response values (Y). Further initial computations
# % for prediction and testing is made.
# %
# % Output: XyObj i... | /ffmanova/R/xy_Obj.R | no_license | ingted/R-Examples | R | false | false | 2,530 | r | ### $Id: xy_Obj.R 53 2007-04-20 12:05:00Z bhm $
# %=============== xy_Obj.m ====================
# % xyObj = xy_Obj(xObj,Y,yNames)
# % takes an object created by x_Obj as input and
# % add response values (Y). Further initial computations
# % for prediction and testing is made.
# %
# % Output: XyObj i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/collapse-chains.R
\name{collapse_chains.mcmc.list}
\alias{collapse_chains.mcmc.list}
\title{Collapse Chains}
\usage{
\method{collapse_chains}{mcmc.list}(x, ...)
}
\arguments{
\item{x}{An object.}
\item{...}{Other arguments passed to methods.... | /man/collapse_chains.mcmc.list.Rd | permissive | krlmlr/mcmcr | R | false | true | 756 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/collapse-chains.R
\name{collapse_chains.mcmc.list}
\alias{collapse_chains.mcmc.list}
\title{Collapse Chains}
\usage{
\method{collapse_chains}{mcmc.list}(x, ...)
}
\arguments{
\item{x}{An object.}
\item{...}{Other arguments passed to methods.... |
#from http://www.r-bloggers.com/fitting-mixture-distributions-with-the-r-package-mixtools/
library(mixtools)
wait = faithful$waiting
mixmdl = normalmixEM(wait)
plot(mixmdl,which=2)
#can add multiple lines with this function
lines(density(wait), lty=2, lwd=2)
| /fix_mix.R | no_license | andymckenzie/R-plots | R | false | false | 260 | r | #from http://www.r-bloggers.com/fitting-mixture-distributions-with-the-r-package-mixtools/
library(mixtools)
wait = faithful$waiting
mixmdl = normalmixEM(wait)
plot(mixmdl,which=2)
#can add multiple lines with this function
lines(density(wait), lty=2, lwd=2)
|
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.55008689096005e+117, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615781629-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.55008689096005e+117, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
## Prepare files from a given data set, a given run, and a given chromosome
## Load libraries
## Available from http://cran.r-project.org/web/packages/getopt/index.html
# install.packages("getopt")
library("getopt")
## Available from http://cran.at.r-project.org/web/packages/knitrBootstrap/index.html
# install.packa... | /prep/prep.R | no_license | lcolladotor/756final_code | R | false | false | 2,804 | r | ## Prepare files from a given data set, a given run, and a given chromosome
## Load libraries
## Available from http://cran.r-project.org/web/packages/getopt/index.html
# install.packages("getopt")
library("getopt")
## Available from http://cran.at.r-project.org/web/packages/knitrBootstrap/index.html
# install.packa... |
#Q6 Partner: David Wihl
cur <- read.csv("data/crypto.csv"); head(cur)
length(cur[,1])
index <- which(cur$Symbol=="LTC" | cur$Symbol=="ETH" | cur$Symbol=="ZEC" | cur$Symbol=="DASH" | cur$Symbol=="XRP" | cur$Symbol=="XMR"); index
cur1 <- cur[index,]; head(cur1)
index <- which(cur$Symbol=="LTC")
ltc <- cur[index,]; head... | /hw11q6.r | no_license | wihl/math23c-project | R | false | false | 892 | r |
#Q6 Partner: David Wihl
cur <- read.csv("data/crypto.csv"); head(cur)
length(cur[,1])
index <- which(cur$Symbol=="LTC" | cur$Symbol=="ETH" | cur$Symbol=="ZEC" | cur$Symbol=="DASH" | cur$Symbol=="XRP" | cur$Symbol=="XMR"); index
cur1 <- cur[index,]; head(cur1)
index <- which(cur$Symbol=="LTC")
ltc <- cur[index,]; head... |
library(isdals)
### Name: vitamina
### Title: Food intake for Danish people 1985
### Aliases: vitamina
### Keywords: datasets
### ** Examples
data(vitamina)
| /data/genthat_extracted_code/isdals/examples/vitamina.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 164 | r | library(isdals)
### Name: vitamina
### Title: Food intake for Danish people 1985
### Aliases: vitamina
### Keywords: datasets
### ** Examples
data(vitamina)
|
library(devtools)
devtools::install_github("jpritikin/covr")
Sys.setenv(NOT_CRAN="true")
Sys.setenv(OMP_NUM_THREADS="2")
library(covr)
library(roxygen2)
options(covr.gcov = "gcov")
withr::with_makevars(getOption("covr.flags"), assignment = "+=", {
utils::install.packages(
".", repos = NULL, type = "source",
I... | /tools/covr.R | no_license | jpritikin/OpenMx | R | false | false | 769 | r | library(devtools)
devtools::install_github("jpritikin/covr")
Sys.setenv(NOT_CRAN="true")
Sys.setenv(OMP_NUM_THREADS="2")
library(covr)
library(roxygen2)
options(covr.gcov = "gcov")
withr::with_makevars(getOption("covr.flags"), assignment = "+=", {
utils::install.packages(
".", repos = NULL, type = "source",
I... |
#' recombine documents tokens by groups
#'
#' @param x \link{tokens} object
#' @inheritParams groups
#' @keywords tokens internal
#' @examples
#' # dfm_group examples
#' corp <- corpus(c("a a b", "a b c c", "a c d d", "a c c d"),
#' docvars = data.frame(grp = c("grp1", "grp1", "grp2", "grp2")))
#' ... | /R/tokens_group.R | no_license | leighd2008/quanteda | R | false | false | 1,524 | r | #' recombine documents tokens by groups
#'
#' @param x \link{tokens} object
#' @inheritParams groups
#' @keywords tokens internal
#' @examples
#' # dfm_group examples
#' corp <- corpus(c("a a b", "a b c c", "a c d d", "a c c d"),
#' docvars = data.frame(grp = c("grp1", "grp1", "grp2", "grp2")))
#' ... |
#' Alignment Scores for Evaluating the Degree of Mixing Samples
#'
#' This function evaluates the degree of mixing samples from different batches in the batch corrected data.
#' It is based on the dissimilarity matrix from Principal Component Analysis.
#'
#' @importFrom mixOmics pca
#' @importFrom Rdpack reprompt
#' @p... | /R/alignment_score.R | no_license | miguensblanco/PLSDAbatch | R | false | false | 2,061 | r | #' Alignment Scores for Evaluating the Degree of Mixing Samples
#'
#' This function evaluates the degree of mixing samples from different batches in the batch corrected data.
#' It is based on the dissimilarity matrix from Principal Component Analysis.
#'
#' @importFrom mixOmics pca
#' @importFrom Rdpack reprompt
#' @p... |
#Loading Libraries
library(RDCOMClient)
library(RODBC)
library(dplyr)
library(lubridate)
#Step 1. Connect to AIMIA's SSTP and load credentials for FTP
source(file = 'C:\\Users\\Kazmi\\Desktop\\Aimia\\SilverPop\\ftpCredentials.R')
#Step 2. Checking whether exported files have been converted successfully
#Setting up... | /Air-Miles/IBM-Silverpop/Pipeline/Experiments/FileConversionUpload - experiment.R | no_license | aliarsalankazmi/Aimia-Projects | R | false | false | 2,166 | r | #Loading Libraries
library(RDCOMClient)
library(RODBC)
library(dplyr)
library(lubridate)
#Step 1. Connect to AIMIA's SSTP and load credentials for FTP
source(file = 'C:\\Users\\Kazmi\\Desktop\\Aimia\\SilverPop\\ftpCredentials.R')
#Step 2. Checking whether exported files have been converted successfully
#Setting up... |
/Desarrollo_Lectura02.R | no_license | CursoR4DS/Tarea | R | false | false | 6,221 | r | ||
library(checkmate)
library(testthat)
context("getType")
test_that("getType of a 'geom'", {
output <- getType(x = gtGeoms$polygon)
expect_character(x = output, len = 2)
expect_true(all(output %in% c("vector", "polygon")))
})
test_that("getType of a Spatial* object", {
output <- getType(x = gtSP$SpatialPolygo... | /geometr/tests/testthat/test_getType.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 1,068 | r | library(checkmate)
library(testthat)
context("getType")
test_that("getType of a 'geom'", {
output <- getType(x = gtGeoms$polygon)
expect_character(x = output, len = 2)
expect_true(all(output %in% c("vector", "polygon")))
})
test_that("getType of a Spatial* object", {
output <- getType(x = gtSP$SpatialPolygo... |
# generic packages and graphic settings.
# Katie Palof
# katie.palof@alaska.gov
# 2018-11-26
# load packages -----
library(tidyverse)
library(reshape2)
library(scales)
library(extrafont)
library(grid)
library(gridExtra)
#library(fngr) #update this to fngr
library(scales)
library(cowplot)
library(readxl)
library(strin... | /SMBKC/code/helper.R | no_license | commfish/BSAI_crab_assessments | R | false | false | 583 | r | # generic packages and graphic settings.
# Katie Palof
# katie.palof@alaska.gov
# 2018-11-26
# load packages -----
library(tidyverse)
library(reshape2)
library(scales)
library(extrafont)
library(grid)
library(gridExtra)
#library(fngr) #update this to fngr
library(scales)
library(cowplot)
library(readxl)
library(strin... |
###################################
# file: exceedance_prob_OAT.R
###################################
# Author and copyright: Perry Oddo
# Pennsylvania State University
# poddo@psu.edu
###################################
# Generates survival function curves
# for exceedance probability estimations
# for use in OAT anal... | /Model_Versions/Uncertainty_SLR_GEV/Sensitivity_Analysis/OAT/Scripts/exceedance_prob_OAT.R | no_license | scrim-network/VanDantzig | R | false | false | 1,404 | r | ###################################
# file: exceedance_prob_OAT.R
###################################
# Author and copyright: Perry Oddo
# Pennsylvania State University
# poddo@psu.edu
###################################
# Generates survival function curves
# for exceedance probability estimations
# for use in OAT anal... |
par(mfrow = c(2, 4))
for (i in 1:8){
require(ecodist)
c.t <- comm.dissim.time[[paste(i, "bsim", sep = "")]]
f.t <- fun.dissim.time[[paste(i, "bsim", sep = "")]]
select <- site.info[site.info$Site == i & site.info$seasn == "J", "s.id"]
tf <- labels(c.t) %in% select
comm.dist <- as.dist(full(c.t)[tf, t... | /Old Scripts/Tax vs Fun through time.R | no_license | tbish-pleccy/SaniAntsBetaDiv | R | false | false | 5,824 | r |
par(mfrow = c(2, 4))
for (i in 1:8){
require(ecodist)
c.t <- comm.dissim.time[[paste(i, "bsim", sep = "")]]
f.t <- fun.dissim.time[[paste(i, "bsim", sep = "")]]
select <- site.info[site.info$Site == i & site.info$seasn == "J", "s.id"]
tf <- labels(c.t) %in% select
comm.dist <- as.dist(full(c.t)[tf, t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basic-assert.R
\name{skip_testing}
\alias{skip_testing}
\title{Skip while testing to isolate errors}
\usage{
skip_testing()
}
\description{
Skip while testing to isolate errors
}
\keyword{internal}
| /man/skip_testing.Rd | no_license | bmihaljevic/bnclassify | R | false | true | 276 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basic-assert.R
\name{skip_testing}
\alias{skip_testing}
\title{Skip while testing to isolate errors}
\usage{
skip_testing()
}
\description{
Skip while testing to isolate errors
}
\keyword{internal}
|
## Dockerhub API get query
##
## @keywords internal
##
## @param `character(1)`, query for the api.
## @return reponse of the query to the dockerhub API.
##
#' @importFrom httr GET stop_for_status content
.docker_get_query <-
function(query)
{
stopifnot(.is_scalar_character(query))
response <- GET(query)
... | /R/dockerhub_api.R | no_license | nturaga/BiocDockerManager | R | false | false | 5,110 | r | ## Dockerhub API get query
##
## @keywords internal
##
## @param `character(1)`, query for the api.
## @return reponse of the query to the dockerhub API.
##
#' @importFrom httr GET stop_for_status content
.docker_get_query <-
function(query)
{
stopifnot(.is_scalar_character(query))
response <- GET(query)
... |
source("helpers.R")
source("preprocessing.R")
library(forecast)
library(ggplot2)
library(cowplot)
china <- preprocess("../data/")
names(china)
# [1] "ChengduPM_" "ShenyangPM_" "ShanghaiPM_" "BeijingPM_" "GuangzhouPM_"
beij <- china$BeijingPM_
# make a multiseasonal time series
# in this section we will look at ... | /R/analysis2.R | no_license | josephsdavid/teachR | R | false | false | 3,778 | r | source("helpers.R")
source("preprocessing.R")
library(forecast)
library(ggplot2)
library(cowplot)
china <- preprocess("../data/")
names(china)
# [1] "ChengduPM_" "ShenyangPM_" "ShanghaiPM_" "BeijingPM_" "GuangzhouPM_"
beij <- china$BeijingPM_
# make a multiseasonal time series
# in this section we will look at ... |
context("Test detatch_all_packages")
test_that("detatch_all_packages detaches all packages", {
detach_all_packages()
base_packages <- paste0("package:", sessionInfo()$basePkgs)
all_packages <- search()[ifelse(unlist(gregexpr("package:", search())) == 1, TRUE, FALSE)]
testthat::expect_equal(base_packages, al... | /tests/testthat/test_detatch_all_packages.R | no_license | MaximilianBernkopf/maxxxy | R | false | false | 336 | r | context("Test detatch_all_packages")
test_that("detatch_all_packages detaches all packages", {
detach_all_packages()
base_packages <- paste0("package:", sessionInfo()$basePkgs)
all_packages <- search()[ifelse(unlist(gregexpr("package:", search())) == 1, TRUE, FALSE)]
testthat::expect_equal(base_packages, al... |
# curl "https://openapi.naver.com/v1/search/shop.xml?query=%EB%A7%88%EC%8A%A4%ED%81%AC&display=10&start=1&sort=sim" \
# -H "X-Naver-Client-Id: xxxxxx" \
# -H "X-Naver-Client-Secret: xxxxxx" -v
library(tidyverse)
library(xml2)
library(curl)
# This book was written in bookdown inside RStudio.
# The website is hosted wi... | /R/docs/mask_shopping/naver_shopping_api.R | no_license | emflant/sample | R | false | false | 3,058 | r | # curl "https://openapi.naver.com/v1/search/shop.xml?query=%EB%A7%88%EC%8A%A4%ED%81%AC&display=10&start=1&sort=sim" \
# -H "X-Naver-Client-Id: xxxxxx" \
# -H "X-Naver-Client-Secret: xxxxxx" -v
library(tidyverse)
library(xml2)
library(curl)
# This book was written in bookdown inside RStudio.
# The website is hosted wi... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/epi.R
\name{plot.sir}
\alias{plot.sir}
\title{Plotting the results on multiple SIR model runs}
\usage{
\method{plot}{sir}(x, comp = c("NI", "NS", "NR"), median = TRUE,
quantiles = c(0.1, 0.9), color = NULL, median_color = NULL,
qu... | /man/plot.sir.Rd | no_license | davidmaciel/rigraph | R | false | false | 2,381 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/epi.R
\name{plot.sir}
\alias{plot.sir}
\title{Plotting the results on multiple SIR model runs}
\usage{
\method{plot}{sir}(x, comp = c("NI", "NS", "NR"), median = TRUE,
quantiles = c(0.1, 0.9), color = NULL, median_color = NULL,
qu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/positionUseAndApply.R
\name{findNonExon}
\alias{findNonExon}
\title{Applied to find the non-exon sequences in reads.}
\usage{
findNonExon(readsFile, referencesFile)
}
\arguments{
\item{readsFile}{The file that store the read sequences, a stri... | /man/findNonExon.Rd | permissive | VVVVVan/nonexonmap | R | false | true | 1,086 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/positionUseAndApply.R
\name{findNonExon}
\alias{findNonExon}
\title{Applied to find the non-exon sequences in reads.}
\usage{
findNonExon(readsFile, referencesFile)
}
\arguments{
\item{readsFile}{The file that store the read sequences, a stri... |
# Split the whole content in single sentence
library(stringi)
library(stringr)
library(RWeka)
suppressMessages(library(data.table))
suppressMessages(library(tm))
textToSentences<-function(content){
listOfSentances=unlist(strsplit(content,"[\\.!?]+"))
listOfSentances<-stri_enc_toutf8(listOfSentances)
... | /NextWordPrediction.R | no_license | imishra/Next-Word-Predictor | R | false | false | 5,632 | r | # Split the whole content in single sentence
library(stringi)
library(stringr)
library(RWeka)
suppressMessages(library(data.table))
suppressMessages(library(tm))
textToSentences<-function(content){
listOfSentances=unlist(strsplit(content,"[\\.!?]+"))
listOfSentances<-stri_enc_toutf8(listOfSentances)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/volcanos.R
\name{byfile_plotVolcano}
\alias{byfile_plotVolcano}
\title{Plot volcanos}
\usage{
byfile_plotVolcano(
df = NULL,
df2 = NULL,
id = "gene",
fml_nm = NULL,
filepath = NULL,
filename = NULL,
adjP = FALSE,
show_labels =... | /man/byfile_plotVolcano.Rd | permissive | sailfish009/proteoQ | R | false | true | 4,985 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/volcanos.R
\name{byfile_plotVolcano}
\alias{byfile_plotVolcano}
\title{Plot volcanos}
\usage{
byfile_plotVolcano(
df = NULL,
df2 = NULL,
id = "gene",
fml_nm = NULL,
filepath = NULL,
filename = NULL,
adjP = FALSE,
show_labels =... |
.GlobalEnv$MODULES_TBL <- "inst/tsv/module_config.tsv" %>%
readr::read_tsv(.) %>%
dplyr::mutate(
"label" = dplyr::if_else(.data$label == "none", .data$name, .data$label),
"link" = stringr::str_c("link_to_", .data$name),
"image" = stringr::str_c("images/", .data$name, ".png"),
"server_function_string... | /R/global.R | permissive | CRI-iAtlas/iatlas-app | R | false | false | 875 | r | .GlobalEnv$MODULES_TBL <- "inst/tsv/module_config.tsv" %>%
readr::read_tsv(.) %>%
dplyr::mutate(
"label" = dplyr::if_else(.data$label == "none", .data$name, .data$label),
"link" = stringr::str_c("link_to_", .data$name),
"image" = stringr::str_c("images/", .data$name, ".png"),
"server_function_string... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
}
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse){
i <<- inverse
}
getInverse... | /cachematrix.R | no_license | flora03222/Assigment2 | R | false | false | 631 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
}
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse){
i <<- inverse
}
getInverse... |
library(tidyverse) #load the tidyverse package for formatting and plotting
#Load the covariance matrix
cov = as.matrix(RcppCNPy::npyLoad("/Users/arnejacobs/Dropbox/covmatrix.cov.npy"))
#We will also add a column with population assingments
pop <- c("JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA"... | /data/plot_pca_pcangsd.R | no_license | mayroberts/physalia-lcwgs | R | false | false | 1,339 | r | library(tidyverse) #load the tidyverse package for formatting and plotting
#Load the covariance matrix
cov = as.matrix(RcppCNPy::npyLoad("/Users/arnejacobs/Dropbox/covmatrix.cov.npy"))
#We will also add a column with population assingments
pop <- c("JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA","JIGA"... |
## Use makeCacheMatrix(M) to define an object containing the matrix M
## and allowing to cache its inverse value.
## Use cacheSolve(makeCacheMatrix(M)) to compute the inverse of the matrix M.
## If the inverse has been previously computed then cacheSolve will recover
## its value from the cache, skipping the computati... | /cachematrix.R | no_license | michelelucente/ProgrammingAssignment2 | R | false | false | 1,491 | r | ## Use makeCacheMatrix(M) to define an object containing the matrix M
## and allowing to cache its inverse value.
## Use cacheSolve(makeCacheMatrix(M)) to compute the inverse of the matrix M.
## If the inverse has been previously computed then cacheSolve will recover
## its value from the cache, skipping the computati... |
##' Generate a matrix or non-matrix style heatmap of correlation
##' coefficients.
##'
##' This function takes two arguments, the x variables and the y
##' variables, and generates a heatmap from the variables. A
##' correlation matrix is computed from the data, melted (reshape
##' package), and input into ggplot2 to ... | /R/plotHeatmapCorr.R | permissive | lwjohnst86/rstatsToolkit | R | false | false | 6,435 | r | ##' Generate a matrix or non-matrix style heatmap of correlation
##' coefficients.
##'
##' This function takes two arguments, the x variables and the y
##' variables, and generates a heatmap from the variables. A
##' correlation matrix is computed from the data, melted (reshape
##' package), and input into ggplot2 to ... |
incrementor <- function(prefix = "increment_"){
i <- 0
function(){
i <<- i + 1
paste0(prefix, i)
}
}
increment_parsons <- incrementor("parsons_list_id_")
increment_parsons_group <- incrementor("parsons_group_")
| /R/incrementor.R | permissive | chendaniely/parsons | R | false | false | 227 | r | incrementor <- function(prefix = "increment_"){
i <- 0
function(){
i <<- i + 1
paste0(prefix, i)
}
}
increment_parsons <- incrementor("parsons_list_id_")
increment_parsons_group <- incrementor("parsons_group_")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/complement.R
\name{complement}
\alias{complement}
\title{Determine the Assessment Samples}
\usage{
complement(x, ...)
}
\arguments{
\item{x}{An `rsplit` object}
\item{...}{Not currently used}
}
\value{
A integer vector.
}
\description{
Given... | /man/complement.Rd | no_license | fbchow/rsample | R | false | true | 703 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/complement.R
\name{complement}
\alias{complement}
\title{Determine the Assessment Samples}
\usage{
complement(x, ...)
}
\arguments{
\item{x}{An `rsplit` object}
\item{...}{Not currently used}
}
\value{
A integer vector.
}
\description{
Given... |
## Some Good reads on deseq2: https://hbctraining.github.io/DGE_workshop/lessons/04_DGE_DESeq2_analysis.html
# Others: https://lashlock.github.io/compbio/R_presentation.html
# Others: http://master.bioconductor.org/packages/release/workflows/vignettes/rnaseqGene/inst/doc/rnaseqGene.html
# Harvard training: https://hbct... | /test/DESeq.R | no_license | Rohit-Satyam/RNA-Seq-Data-Analysis | R | false | false | 22,781 | r | ## Some Good reads on deseq2: https://hbctraining.github.io/DGE_workshop/lessons/04_DGE_DESeq2_analysis.html
# Others: https://lashlock.github.io/compbio/R_presentation.html
# Others: http://master.bioconductor.org/packages/release/workflows/vignettes/rnaseqGene/inst/doc/rnaseqGene.html
# Harvard training: https://hbct... |
final_start <- function(file, colname)
{
list <- unique(species_list(file, colname))
# Applies start_time function to list of species (Creates 1 big list of start time indexes)
multi_start_lists <- tapply(list, 1:length(list), start_times, file = file, colname = colname)
start_list <- sort(unique(unlist(multi_... | /done_lists.R | no_license | anniecasey/camCompare | R | false | false | 664 | r |
final_start <- function(file, colname)
{
list <- unique(species_list(file, colname))
# Applies start_time function to list of species (Creates 1 big list of start time indexes)
multi_start_lists <- tapply(list, 1:length(list), start_times, file = file, colname = colname)
start_list <- sort(unique(unlist(multi_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ProductPackageItemService.R
\name{dfp_performProductPackageItemAction}
\alias{dfp_performProductPackageItemAction}
\title{performProductPackageItemAction}
\usage{
dfp_performProductPackageItemAction(request_data, as_df = TRUE,
verbose = FAL... | /man/dfp_performProductPackageItemAction.Rd | no_license | JhuangSiteAnalytics/rdfp | R | false | true | 1,194 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ProductPackageItemService.R
\name{dfp_performProductPackageItemAction}
\alias{dfp_performProductPackageItemAction}
\title{performProductPackageItemAction}
\usage{
dfp_performProductPackageItemAction(request_data, as_df = TRUE,
verbose = FAL... |
#' Terrestrial Ecoregions Of the World (TEOW).
#'
#' A revised map of the TEOW (Dinerstein, 2017).
#'
#' @format A Simple Features Collections with 847 features and 5 fields:
#' \describe{
#' \item{ECO_NAME}{name of the ecoregion}
#' \item{BIOME_NUM}{numeric identifier of the biome}
#' \item{BIOME_NAME}{name of t... | /R/Ecoregions.R | no_license | IanOndo/RGeodata | R | false | false | 504 | r | #' Terrestrial Ecoregions Of the World (TEOW).
#'
#' A revised map of the TEOW (Dinerstein, 2017).
#'
#' @format A Simple Features Collections with 847 features and 5 fields:
#' \describe{
#' \item{ECO_NAME}{name of the ecoregion}
#' \item{BIOME_NUM}{numeric identifier of the biome}
#' \item{BIOME_NAME}{name of t... |
library(tidyverse)
getwd()
list.files()
# read in file
df <- read.table(file = "./household_power_consumption.txt", header = TRUE, sep = ";",
na.strings = "?")
# look at data
head(df)
names(df)
str(df)
head(df[c(1,10)], 30)
# convert date to date format
df$Date.2 <- as.Date(df$Date, "%d/%m/%Y")
s... | /plot1.R | no_license | nclsbarreto/ExData_Plotting1 | R | false | false | 704 | r | library(tidyverse)
getwd()
list.files()
# read in file
df <- read.table(file = "./household_power_consumption.txt", header = TRUE, sep = ";",
na.strings = "?")
# look at data
head(df)
names(df)
str(df)
head(df[c(1,10)], 30)
# convert date to date format
df$Date.2 <- as.Date(df$Date, "%d/%m/%Y")
s... |
cat("tests_contingency.R:\n")
locinfile <- genepopExample('structest.txt')
outfile <- struc(locinfile)
testthat::expect_equal(readLines(outfile)[34],
"P value=0.598782 S.E=0.006606 (243439 switches)")
| /fuzzedpackages/genepop/tests/testthat/tests_contingency.R | no_license | akhikolla/testpackages | R | false | false | 234 | r | cat("tests_contingency.R:\n")
locinfile <- genepopExample('structest.txt')
outfile <- struc(locinfile)
testthat::expect_equal(readLines(outfile)[34],
"P value=0.598782 S.E=0.006606 (243439 switches)")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/partialDependence.R
\name{partialDependence}
\alias{partialDependence}
\title{Generate partial dependence plots}
\usage{
partialDependence(train, trainedModel, sample = 0.1, seed = 1991)
}
\arguments{
\item{train}{[data.frame | Requi... | /man/partialDependence.Rd | permissive | hansvomkreuz/autoML | R | false | true | 1,163 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/partialDependence.R
\name{partialDependence}
\alias{partialDependence}
\title{Generate partial dependence plots}
\usage{
partialDependence(train, trainedModel, sample = 0.1, seed = 1991)
}
\arguments{
\item{train}{[data.frame | Requi... |
rm(list=ls())
library(tidyverse)
library(lubridate)
library(data.table)
library(gtalibrary)
library(ggplot2)
gta_setwd()
source("0 report production/GTA 24/help files/GTA 24 cutoff and definitions.R")
gta_colour_palette()
chapter.number = 0
chapter.title = 'Report opening plots'
output.path = paste(chapter.number,ch... | /code/0 - Report opening plots/Chapter 0 script.R | no_license | global-trade-alert/gta-24 | R | false | false | 4,492 | r | rm(list=ls())
library(tidyverse)
library(lubridate)
library(data.table)
library(gtalibrary)
library(ggplot2)
gta_setwd()
source("0 report production/GTA 24/help files/GTA 24 cutoff and definitions.R")
gta_colour_palette()
chapter.number = 0
chapter.title = 'Report opening plots'
output.path = paste(chapter.number,ch... |
##' .. content for \description{} (no empty lines) ..
##'
##' .. content for \details{} ..
##'
##' @title
##' @param path
##' @return
##' @author dylanmr
##' @export
gen_campbell_ref <- function(path = NULL) {
path = "/projects/dylan/rausch_kapel_2020/data/campbell_all_clust_full.RDS.gz"
x <- readRDS(path)
... | /R/gen_campbell_ref.R | no_license | perslab/brown-rausch-iscience-2021 | R | false | false | 641 | r | ##' .. content for \description{} (no empty lines) ..
##'
##' .. content for \details{} ..
##'
##' @title
##' @param path
##' @return
##' @author dylanmr
##' @export
gen_campbell_ref <- function(path = NULL) {
path = "/projects/dylan/rausch_kapel_2020/data/campbell_all_clust_full.RDS.gz"
x <- readRDS(path)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zlmHooks.R
\name{rstandard.bayesglm}
\alias{rstandard.bayesglm}
\title{rstandard for bayesglm objects.}
\usage{
\method{rstandard}{bayesglm}(model, infl = influence(model, do.coef = FALSE),
type = c("deviance", "pearson"), ...)
}
\arguments... | /man/rstandard.bayesglm.Rd | no_license | QinLab/MAST | R | false | true | 498 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zlmHooks.R
\name{rstandard.bayesglm}
\alias{rstandard.bayesglm}
\title{rstandard for bayesglm objects.}
\usage{
\method{rstandard}{bayesglm}(model, infl = influence(model, do.coef = FALSE),
type = c("deviance", "pearson"), ...)
}
\arguments... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multi_component_RGE.R
\name{repmat}
\alias{repmat}
\title{function to reproduce the behavior of repmat function in matlab to replicate
and tile an matrix}
\usage{
repmat(X, m, n)
}
\arguments{
\item{X}{matrix for tiling and replicate the data... | /man/repmat.Rd | permissive | manzt/arbitree | R | false | true | 549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multi_component_RGE.R
\name{repmat}
\alias{repmat}
\title{function to reproduce the behavior of repmat function in matlab to replicate
and tile an matrix}
\usage{
repmat(X, m, n)
}
\arguments{
\item{X}{matrix for tiling and replicate the data... |
############################################################################################################################
###### How to get the data?
###### Data file here: http://www.oecd.org/pisa/data/2015database/ (I downloaded the SPSS file)
###### Field names and their descriptions are here: http://www.oecd.org... | /Meetup_2017_04_19/transform.R | no_license | rladies/meetup-presentations_budapest | R | false | false | 3,767 | r | ############################################################################################################################
###### How to get the data?
###### Data file here: http://www.oecd.org/pisa/data/2015database/ (I downloaded the SPSS file)
###### Field names and their descriptions are here: http://www.oecd.org... |
#
# 05-num_subset_dectree
#
num_subset_list <-
map(dectree_res, "subset_pop") %>%
lapply(function(x) num_screen_year %o% t(x))
num_subset_list <- map(num_subset_list, round)
num_subset_dectree <-
plyr::ldply(num_subset_list,
data.frame,
.id = "scenario") %>%
cbind(year = 1:5, .)
... | /scripts/05-num_subset_dectree.R | no_license | lnellums/LTBIscreeningproject | R | false | false | 403 | r | #
# 05-num_subset_dectree
#
num_subset_list <-
map(dectree_res, "subset_pop") %>%
lapply(function(x) num_screen_year %o% t(x))
num_subset_list <- map(num_subset_list, round)
num_subset_dectree <-
plyr::ldply(num_subset_list,
data.frame,
.id = "scenario") %>%
cbind(year = 1:5, .)
... |
#' Add results from SqtlSeek splicingQTL algorithm to list
#'
#' \code{addSqtlSeek} returns an 'mgl' list with the fifteenth element as a dataframe containing results from SqtlSeek splicingQTL algorithm from GTEx; see \url{http://www.gtexportal.org}.
#'
#' This gives the SqtlSeek algorithm results for each gene. Dat... | /mglR/R/addSqtlSeek_function.R | no_license | klh64/mglR | R | false | false | 2,260 | r | #' Add results from SqtlSeek splicingQTL algorithm to list
#'
#' \code{addSqtlSeek} returns an 'mgl' list with the fifteenth element as a dataframe containing results from SqtlSeek splicingQTL algorithm from GTEx; see \url{http://www.gtexportal.org}.
#'
#' This gives the SqtlSeek algorithm results for each gene. Dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BayesFunc.R
\name{posterior_pred_ggplot}
\alias{posterior_pred_ggplot}
\title{Predictive Posterior density plots}
\usage{
posterior_pred_ggplot(Data = max_years$df,
Model_out.chain = gibbs.trend$out.chain, from = 1,
until = nrow(max_years... | /man/posterior_pred_ggplot.Rd | no_license | proto4426/PissoortThesis | R | false | true | 449 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BayesFunc.R
\name{posterior_pred_ggplot}
\alias{posterior_pred_ggplot}
\title{Predictive Posterior density plots}
\usage{
posterior_pred_ggplot(Data = max_years$df,
Model_out.chain = gibbs.trend$out.chain, from = 1,
until = nrow(max_years... |
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(-3.3834905770645e+221, -3.38084306397821e+221, -3.38084306397883e+221, -3.38084306397821e+221, 6.32404026676796e-322, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ))
result <- do.c... | /meteor/inst/testfiles/ET0_Makkink/libFuzzer_ET0_Makkink/ET0_Makkink_valgrind_files/1612737774-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 366 | r | testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(-3.3834905770645e+221, -3.38084306397821e+221, -3.38084306397883e+221, -3.38084306397821e+221, 6.32404026676796e-322, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ))
result <- do.c... |
library(e1071)
library(caret)
library(plotly)
library(randomForest)
library(shiny)
library(shinydashboard)
library(tidyverse)
# Define server logic
shinyServer(function(input, output) {
# Read the data file
raw.data <- read.csv("wine.csv", header = FALSE)
colnames(raw.data) <- c("Class", "Alcohol", "M... | /MyApp/server.R | no_license | thawatchai-p/DevDatProd_AssignWk4 | R | false | false | 2,929 | r | library(e1071)
library(caret)
library(plotly)
library(randomForest)
library(shiny)
library(shinydashboard)
library(tidyverse)
# Define server logic
shinyServer(function(input, output) {
# Read the data file
raw.data <- read.csv("wine.csv", header = FALSE)
colnames(raw.data) <- c("Class", "Alcohol", "M... |
setConstructorS3("FileFloatMatrix", function(...) {
extend(FileMatrix(..., bytesPerCell=4, storageMode="double"), "FileFloatMatrix")
})
############################################################################
# HISTORY:
# 2006-02-18
# o Created.
##################################################################... | /R/FileFloatMatrix.R | no_license | HenrikBengtsson/R.huge | R | false | false | 332 | r | setConstructorS3("FileFloatMatrix", function(...) {
extend(FileMatrix(..., bytesPerCell=4, storageMode="double"), "FileFloatMatrix")
})
############################################################################
# HISTORY:
# 2006-02-18
# o Created.
##################################################################... |
\name{conv.check}
\alias{conv.check}
\title{Some convergence diagnostics}
\description{It takes a fitted model object and produces some
diagnostic information about the fitting procedure.
}
\usage{
conv.check(x)
}
\arguments{
\item{x}{\code{SemiParBIVProbit}/\code{copulaReg}/\code{copu... | /man/conv.check.Rd | no_license | cran/SemiParBIVProbit | R | false | false | 715 | rd | \name{conv.check}
\alias{conv.check}
\title{Some convergence diagnostics}
\description{It takes a fitted model object and produces some
diagnostic information about the fitting procedure.
}
\usage{
conv.check(x)
}
\arguments{
\item{x}{\code{SemiParBIVProbit}/\code{copulaReg}/\code{copu... |
<?xml version="1.0" encoding="utf-8"?>
<serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloWorld" generation="1" functional="0" release="0" Id="b366eee5-3ede-48c5-88b1-7c417fc7aa35" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/dsltools... | /Windows Azure Product Team/Windows-Azure-HelloWorld-Sample-2758/[C#] Windows Azure HelloWorld Sample/C#/HelloWorld/bin/Debug/HelloWorld.csx/ServiceDefinition.build.rd | no_license | techbuzzz/Samples-archive-msdn-products | R | false | false | 5,906 | rd | <?xml version="1.0" encoding="utf-8"?>
<serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloWorld" generation="1" functional="0" release="0" Id="b366eee5-3ede-48c5-88b1-7c417fc7aa35" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/dsltools... |
#' Scrapes SARS disease data
#'
#' Scrapes the Kaggle SARS disease data from a public Github repository.
#'
#' @return Output is a raw dataframe in its untidy format, directly from
#' the Github repository
#'
#' @importFrom readr read_csv
#'
#' @examples
#' scrapeSARSData()
#'
#' @export
#'
scrapeSARSData <- fun... | /R/importSARSData.R | no_license | smorsink1/ncov2019 | R | false | false | 3,587 | r | #' Scrapes SARS disease data
#'
#' Scrapes the Kaggle SARS disease data from a public Github repository.
#'
#' @return Output is a raw dataframe in its untidy format, directly from
#' the Github repository
#'
#' @importFrom readr read_csv
#'
#' @examples
#' scrapeSARSData()
#'
#' @export
#'
scrapeSARSData <- fun... |
################################################################################
## treatment_information.R: Manually code the treatment information for all experiments based on meta-data provided by experiment PIs. ((Twenty-times checked for accuracy. Oh boy.))
##
## Author: Kimberly Komatsu, Meghan Avolio
## Date ... | /treatment_information.R | no_license | klapierre/community_difference_synthesis | R | false | false | 84,836 | r | ################################################################################
## treatment_information.R: Manually code the treatment information for all experiments based on meta-data provided by experiment PIs. ((Twenty-times checked for accuracy. Oh boy.))
##
## Author: Kimberly Komatsu, Meghan Avolio
## Date ... |
library(tidyverse)
library(lubridate)
lista_glosowan <- readRDS("lista_glosowan.rds")
glosowania <- readRDS("glosowania_total.RDS")
lista_glosowan2 <- lista_glosowan %>%
mutate(g = str_match_all(link, ".*NrPosiedzenia=(\\d+)&NrGlosowania=(\\d++)")) %>%
unnest_wider(g) %>%
rename(link2 = ...1,
numer_pos... | /preproces_data.R | no_license | prokulski/sejm_viii_kadencji | R | false | false | 908 | r | library(tidyverse)
library(lubridate)
lista_glosowan <- readRDS("lista_glosowan.rds")
glosowania <- readRDS("glosowania_total.RDS")
lista_glosowan2 <- lista_glosowan %>%
mutate(g = str_match_all(link, ".*NrPosiedzenia=(\\d+)&NrGlosowania=(\\d++)")) %>%
unnest_wider(g) %>%
rename(link2 = ...1,
numer_pos... |
library(photobiology)
### Name: formatted_range
### Title: Compute range and format it
### Aliases: formatted_range
### ** Examples
formatted_range(c(1, 3.5, -0.01))
| /data/genthat_extracted_code/photobiology/examples/formatted_range.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 174 | r | library(photobiology)
### Name: formatted_range
### Title: Compute range and format it
### Aliases: formatted_range
### ** Examples
formatted_range(c(1, 3.5, -0.01))
|
aes_subrow_ui <- function(id, row_index) {
ns <- shiny::NS(id)
htmltools::tagList(
htmltools::div(
id = ns("aes_subrow"),
class = "plot-subrow-content",
shiny::uiOutput(
outputId = ns("index"),
class = "grid-center"
),
shiny::uiOutput(
outputId = ns("cont... | /modules/Operations/Plot/Aes/aes_subrow.R | no_license | MackyKavinsky/swat-analytic-intermmediate | R | false | false | 6,830 | r | aes_subrow_ui <- function(id, row_index) {
ns <- shiny::NS(id)
htmltools::tagList(
htmltools::div(
id = ns("aes_subrow"),
class = "plot-subrow-content",
shiny::uiOutput(
outputId = ns("index"),
class = "grid-center"
),
shiny::uiOutput(
outputId = ns("cont... |
x <- 1:100
library(dplyr)
x <- 1:10
test_that("`near_between()` works on a vector", {
expect_equal(near_between(x, from = 0.4, to = 0.6),
c(rep(FALSE, 4), TRUE, TRUE, rep(FALSE, 4)))
expect_equal(near_between(x, from = 0.1, to = 0.3),
c(FALSE, TRUE, TRUE, rep(FALSE, 7)))
})
wages_... | /tests/testthat/test-nearests.R | permissive | kant/brolgar | R | false | false | 5,247 | r | x <- 1:100
library(dplyr)
x <- 1:10
test_that("`near_between()` works on a vector", {
expect_equal(near_between(x, from = 0.4, to = 0.6),
c(rep(FALSE, 4), TRUE, TRUE, rep(FALSE, 4)))
expect_equal(near_between(x, from = 0.1, to = 0.3),
c(FALSE, TRUE, TRUE, rep(FALSE, 7)))
})
wages_... |
#' Breaks out lists of lists by sub-list length
#'
#' XXXXXX
#'
#' @importFrom purrr map
#'
#' @param x a list of lists, with at least some sub-lists having length
#' \code{len}
#' @param len an numeric value for the length of sub-lists that
#' \code{list_breaker} should break out. Must be a whole number.
#' @retu... | /R/list_breaker.R | permissive | gpilgrim2670/SwimmeR | R | false | false | 658 | r | #' Breaks out lists of lists by sub-list length
#'
#' XXXXXX
#'
#' @importFrom purrr map
#'
#' @param x a list of lists, with at least some sub-lists having length
#' \code{len}
#' @param len an numeric value for the length of sub-lists that
#' \code{list_breaker} should break out. Must be a whole number.
#' @retu... |
#' Create a light bootstrap theme shiny apps.
#'
#' @param bg bg
#' @param fg fg
#' @param primary color primary
#' @param secondary color secondary
#' @param success color success
#' @param info color info
#' @param warning color warning
#' @param danger color danger
#' @param font_scale font scale
#' @param enable_gr... | /R/utils.R | permissive | Cervangirard/journuit | R | false | false | 5,855 | r | #' Create a light bootstrap theme shiny apps.
#'
#' @param bg bg
#' @param fg fg
#' @param primary color primary
#' @param secondary color secondary
#' @param success color success
#' @param info color info
#' @param warning color warning
#' @param danger color danger
#' @param font_scale font scale
#' @param enable_gr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/future.R, R/futureAssign.R, R/futureAssign_OP.R, R/futureCall.R
\name{future}
\alias{\%->\%}
\alias{\%<-\%}
\alias{\%<=\%}
\alias{\%=>\%}
\alias{future}
\alias{futureAssign}
\alias{futureCall}
\title{Create a future}
\usage{
future(expr, envi... | /man/future.Rd | no_license | dy-kim/future | R | false | true | 9,780 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/future.R, R/futureAssign.R, R/futureAssign_OP.R, R/futureCall.R
\name{future}
\alias{\%->\%}
\alias{\%<-\%}
\alias{\%<=\%}
\alias{\%=>\%}
\alias{future}
\alias{futureAssign}
\alias{futureCall}
\title{Create a future}
\usage{
future(expr, envi... |
library(umx)
### Name: umx_set_cores
### Title: umx_set_cores
### Aliases: umx_set_cores
### ** Examples
library(umx)
manifests = c("mpg", "disp", "gear")
m1 <- mxModel("ind", type = "RAM",
manifestVars = manifests,
mxPath(from = manifests, arrows = 2),
mxPath(from = "one", to = manifests),
mxData(mtcars[, mani... | /data/genthat_extracted_code/umx/examples/umx_set_cores.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 710 | r | library(umx)
### Name: umx_set_cores
### Title: umx_set_cores
### Aliases: umx_set_cores
### ** Examples
library(umx)
manifests = c("mpg", "disp", "gear")
m1 <- mxModel("ind", type = "RAM",
manifestVars = manifests,
mxPath(from = manifests, arrows = 2),
mxPath(from = "one", to = manifests),
mxData(mtcars[, mani... |
#' @export
r2beta.glmerMod <- function(model, partial=TRUE, method='sgv',
data = NULL){
if(is.null(data)) data = model@frame
fam = model@resp$family
frm = as.list(model@call)[['formula']]
y = all.vars(stats::update(frm, . ~ 1))
# Remove missing values (glm does t... | /R/r2beta_glmerMod_Function.R | no_license | cran/r2glmm | R | false | false | 1,141 | r |
#' @export
r2beta.glmerMod <- function(model, partial=TRUE, method='sgv',
data = NULL){
if(is.null(data)) data = model@frame
fam = model@resp$family
frm = as.list(model@call)[['formula']]
y = all.vars(stats::update(frm, . ~ 1))
# Remove missing values (glm does t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_all_studies_table}
\alias{get_all_studies_table}
\title{Get synapse fileview}
\usage{
get_all_studies_table(fileview_id, syn)
}
\arguments{
\item{fileview_id}{The synId for the full metadata Fileview.}
\item{syn}{Synapse cl... | /man/get_all_studies_table.Rd | permissive | karawoo/dccmonitor | R | false | true | 452 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_all_studies_table}
\alias{get_all_studies_table}
\title{Get synapse fileview}
\usage{
get_all_studies_table(fileview_id, syn)
}
\arguments{
\item{fileview_id}{The synId for the full metadata Fileview.}
\item{syn}{Synapse cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.