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 |
|---|---|---|---|---|---|---|---|---|---|
#'Aggregate Maximum Excursion Charts
#'@param Portfolio the portfolio name (string)
#'@param Symbols the symbols for which to plot
#'@param type MAE for Maximum Adverse Excursion or MFE for Maximum Favorable Excursion
#'@param scale scale of P&L (cash, tick, percent)
#'@return plots all the trades among the symbols in ... | /Alpha Modelling/QuantStrat/Packages/IKTrading/R/aggMEcharts.R | no_license | Bakeforfun/Quant | R | false | false | 2,620 | r | #'Aggregate Maximum Excursion Charts
#'@param Portfolio the portfolio name (string)
#'@param Symbols the symbols for which to plot
#'@param type MAE for Maximum Adverse Excursion or MFE for Maximum Favorable Excursion
#'@param scale scale of P&L (cash, tick, percent)
#'@return plots all the trades among the symbols in ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 6082
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 6082
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/t... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/trivial_query06_1344/trivial_query06_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 710 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 6082
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 6082
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/t... |
library(backtest)
### Name: starmine
### Title: StarMine Rankings, 1995
### Aliases: starmine
### Keywords: datasets
### ** Examples
data(starmine)
head(starmine)
| /data/genthat_extracted_code/backtest/examples/starmine.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 170 | r | library(backtest)
### Name: starmine
### Title: StarMine Rankings, 1995
### Aliases: starmine
### Keywords: datasets
### ** Examples
data(starmine)
head(starmine)
|
##################################################
# UI
##################################################
#' @import shiny
#' @import shinydashboard
#' @import leaflet
#' @import shiny
#' @import ggplot2
app_ui <- function(request) {
options(scipen = '999')
options(shiny.sanitize.errors = FALSE)
###########... | /R/app.R | permissive | databrew/covid19 | R | false | false | 16,755 | r |
##################################################
# UI
##################################################
#' @import shiny
#' @import shinydashboard
#' @import leaflet
#' @import shiny
#' @import ggplot2
app_ui <- function(request) {
options(scipen = '999')
options(shiny.sanitize.errors = FALSE)
###########... |
# Gun Casualties by State
cols <- brewer.pal(3, "Dark2")
gun %>% group_by(state) %>%
summarize(n_casualty = sum(n_killed + n_injured)) %>%
ggplot(aes(x = reorder(state, -n_casualty), y = n_casualty)) +
geom_col(fill = cols[1]) +
theme(axis.text.x = element_text(angle=90, vjust=0.5, size =... | /byState.R | no_license | arnagaraja/Gun-Violence | R | false | false | 5,743 | r | # Gun Casualties by State
cols <- brewer.pal(3, "Dark2")
gun %>% group_by(state) %>%
summarize(n_casualty = sum(n_killed + n_injured)) %>%
ggplot(aes(x = reorder(state, -n_casualty), y = n_casualty)) +
geom_col(fill = cols[1]) +
theme(axis.text.x = element_text(angle=90, vjust=0.5, size =... |
\name{substr_r}
\alias{substr_r}
\title{Substring from right}
\usage{
substr_r(x, n)
}
\description{
Substring from right
}
\references{
http://stackoverflow.com/questions/7963898/extracting-the-last-n-characters-from-a-string-in-r
}
| /man/substr_r.Rd | no_license | Kotkot/ss3sim | R | false | false | 241 | rd | \name{substr_r}
\alias{substr_r}
\title{Substring from right}
\usage{
substr_r(x, n)
}
\description{
Substring from right
}
\references{
http://stackoverflow.com/questions/7963898/extracting-the-last-n-characters-from-a-string-in-r
}
|
# LIBRARIES ----
# setwd("C:/Users/steph/Dropbox/Business University Science/Personal Portfolio/Part-5-Draft")
library(flexdashboard)
library(pacman)
library(flexdashboard)
library(shiny)
library(shinyjs)
library(shinyWidgets)
library(shinythemes)
# Core
library(tidyquant)
library(tidyverse)
library(timetk)
library(... | /02_portfolio_analyzer_showntell.R | no_license | StephenLung/Part-5-Draft | R | false | false | 16,559 | r | # LIBRARIES ----
# setwd("C:/Users/steph/Dropbox/Business University Science/Personal Portfolio/Part-5-Draft")
library(flexdashboard)
library(pacman)
library(flexdashboard)
library(shiny)
library(shinyjs)
library(shinyWidgets)
library(shinythemes)
# Core
library(tidyquant)
library(tidyverse)
library(timetk)
library(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RGWAS.multisnp.R
\name{RGWAS.multisnp}
\alias{RGWAS.multisnp}
\title{Testing multiple SNPs simultaneously for GWAS}
\usage{
RGWAS.multisnp(pheno, geno, ZETA = NULL, covariate = NULL,
covariate.factor = NULL, structure.matrix = NULL, n.PC = ... | /man/RGWAS.multisnp.Rd | permissive | quanrd/RAINBOWR | R | false | true | 16,659 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RGWAS.multisnp.R
\name{RGWAS.multisnp}
\alias{RGWAS.multisnp}
\title{Testing multiple SNPs simultaneously for GWAS}
\usage{
RGWAS.multisnp(pheno, geno, ZETA = NULL, covariate = NULL,
covariate.factor = NULL, structure.matrix = NULL, n.PC = ... |
.runThisTest <- Sys.getenv("RunAllggeffectsTests") == "yes"
if (.runThisTest && getRversion() >= "4.0.0") {
if (requiet("testthat") && requiet("ggeffects") && requiet("glmmTMB")) {
data(Owls)
data(Salamanders)
m1 <- glmmTMB(SiblingNegotiation ~ SexParent + ArrivalTime + (1 | Nest), data = Owl... | /tests/testthat/test-glmmTMB.R | no_license | cran/ggeffects | R | false | false | 9,216 | r | .runThisTest <- Sys.getenv("RunAllggeffectsTests") == "yes"
if (.runThisTest && getRversion() >= "4.0.0") {
if (requiet("testthat") && requiet("ggeffects") && requiet("glmmTMB")) {
data(Owls)
data(Salamanders)
m1 <- glmmTMB(SiblingNegotiation ~ SexParent + ArrivalTime + (1 | Nest), data = Owl... |
\name{twins}
\alias{twins}
\docType{data}
\title{Burt's twin data}
\description{
The given data are IQ scores from identical twins; one raised in a foster home, and the other raised by birth parents.
}
\format{This data frame contains the following columns:
\describe{
\item{C}{
Social class, C1=high, C2... | /man/twins.Rd | no_license | nicholaskarlson/alr4 | R | false | false | 756 | rd | \name{twins}
\alias{twins}
\docType{data}
\title{Burt's twin data}
\description{
The given data are IQ scores from identical twins; one raised in a foster home, and the other raised by birth parents.
}
\format{This data frame contains the following columns:
\describe{
\item{C}{
Social class, C1=high, C2... |
inputUI <- function(id, label = "Inputs") {
ns <- NS(id)
tagList(
segment(
div(class = "ui stackable width grid",
div(class = "two column row",
div(
class = "column",
p("Ship Type"),
... | /ShipTracker/R/input_ui.R | no_license | radbasa/shiptracker | R | false | false | 702 | r | inputUI <- function(id, label = "Inputs") {
ns <- NS(id)
tagList(
segment(
div(class = "ui stackable width grid",
div(class = "two column row",
div(
class = "column",
p("Ship Type"),
... |
library("rgdal")
library("sp")
library("R.matlab")
# modify inquired product and years here
ProductName="NOAH_V2"
year=c(1994:2014)
#dir=paste("E:/work/LDAS/GLDAS_data/V1_month/",
# ProductName,"/",sep="")
dir=paste("E:/work/LDAS/GLDAS_data/V2_month/","/",sep="")
GribtabFile=paste("E:/work/LDAS/GLDAS_data/g... | /Rscript/GLDAS2mat_all.R | no_license | fkwai/MatlabScripts | R | false | false | 4,586 | r |
library("rgdal")
library("sp")
library("R.matlab")
# modify inquired product and years here
ProductName="NOAH_V2"
year=c(1994:2014)
#dir=paste("E:/work/LDAS/GLDAS_data/V1_month/",
# ProductName,"/",sep="")
dir=paste("E:/work/LDAS/GLDAS_data/V2_month/","/",sep="")
GribtabFile=paste("E:/work/LDAS/GLDAS_data/g... |
# Przemyslaw Stempor, 2014
##############################################################################
DivStep <- function(sample, control) {
catTime("DivStep: Divideing", e={
commonChr <- intersect(names(sample), names(control))
divstep <- round(sample[commonChr] / (control[commonChr]+1), 3)
})
... | /R/DivStep.R | no_license | hjanime/rbeads | R | false | false | 958 | r | # Przemyslaw Stempor, 2014
##############################################################################
DivStep <- function(sample, control) {
catTime("DivStep: Divideing", e={
commonChr <- intersect(names(sample), names(control))
divstep <- round(sample[commonChr] / (control[commonChr]+1), 3)
})
... |
library(shiny)
options(shiny.autoreload = T,shiny.port = 2020,shinygadgets.showdialog = T)
runApp() | /localjob.R | no_license | GeorgeOduor/amltools | R | false | false | 99 | r | library(shiny)
options(shiny.autoreload = T,shiny.port = 2020,shinygadgets.showdialog = T)
runApp() |
plotPCMat2D(pca2Matr(env$prc,CCCA:::pass),c(1,2),categories,swapFun,swapFunD,swapFunC)
| /examples/pca-plot.r | no_license | alexjgriffith/r-workspace | R | false | false | 87 | r | plotPCMat2D(pca2Matr(env$prc,CCCA:::pass),c(1,2),categories,swapFun,swapFunD,swapFunC)
|
##' function to add default parameters for merge_pairs script
##'
##' @param param_name name of the parameter to look for
##' @param param_frame data.frame with the chosen parameters
##' @return the option in param_frame of the default value for
##' \code{param_name}
##' @export
get_param_merge_pairs <- function(p... | /R/merge_pairs_functions.R | permissive | deborah-chasman/microbiome.onglab | R | false | false | 3,246 | r |
##' function to add default parameters for merge_pairs script
##'
##' @param param_name name of the parameter to look for
##' @param param_frame data.frame with the chosen parameters
##' @return the option in param_frame of the default value for
##' \code{param_name}
##' @export
get_param_merge_pairs <- function(p... |
library("tidyverse")
library("Seurat")
library("SeuratWrappers")
library("SeuratDisk")
##############################
## Export Seurat for scanpy ##
##############################
## scVelo
## ----------
## Load seurat object.
seurat_obj <- readRDS(file.path("results", "r_objects", "seurat_complete.RDS"))
seurat_... | /scripts/prepare_scanpy.R | no_license | rpolicastro/Murach_2021_scRNAseq | R | false | false | 2,010 | r |
library("tidyverse")
library("Seurat")
library("SeuratWrappers")
library("SeuratDisk")
##############################
## Export Seurat for scanpy ##
##############################
## scVelo
## ----------
## Load seurat object.
seurat_obj <- readRDS(file.path("results", "r_objects", "seurat_complete.RDS"))
seurat_... |
# Investigation 5.10
# import the data
Talley5K2013 = read.delim("http://www.rossmanchance.com/iscam2/data/Talley5K2013.txt")
# preliminary plot
plot(Talley5K2013$Time~Talley5K2013$Age)
# Oh yeah, there is an outlier that we should remove
# That point had a time of 79.4 minutes, but all other times were les... | /R_Scripts/Investigation_5_10_regression_inference.R | no_license | gmtanner-cord/MATH205 | R | false | false | 2,214 | r | # Investigation 5.10
# import the data
Talley5K2013 = read.delim("http://www.rossmanchance.com/iscam2/data/Talley5K2013.txt")
# preliminary plot
plot(Talley5K2013$Time~Talley5K2013$Age)
# Oh yeah, there is an outlier that we should remove
# That point had a time of 79.4 minutes, but all other times were les... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/offers.R
\name{updateOfferById}
\alias{updateOfferById}
\title{Update Offer by ID}
\usage{
updateOfferById(offerId, offerName, updatedContent, api.version = "v2")
}
\arguments{
\item{offerId}{}
}
\description{
Updates the content offer refere... | /man/updateOfferById.Rd | no_license | derring-do/adobeTaRget | R | false | true | 519 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/offers.R
\name{updateOfferById}
\alias{updateOfferById}
\title{Update Offer by ID}
\usage{
updateOfferById(offerId, offerName, updatedContent, api.version = "v2")
}
\arguments{
\item{offerId}{}
}
\description{
Updates the content offer refere... |
test_that("output test", {
expect_snapshot(pillar(add_special(c(TRUE, FALSE))))
})
| /tests/testthat/test-format_logical.R | permissive | Tubbz-alt/pillar | R | false | false | 85 | r | test_that("output test", {
expect_snapshot(pillar(add_special(c(TRUE, FALSE))))
})
|
library(lsmeans)
y = c(22, 20, 25, 17,26, 22, 27, 21,16, 20, 14, 18,
20, 25, 26, 21,28, 29, 23, 24,22, 15, 19, 16 )
#Need to designate the Control Treatment first alphabetically.
#Change S1 to A1
A1 = rep("A1",4)
S2 = rep("S2",4)
B1 = rep("B1",4)
B2 = rep("B2",4)
R1 = rep("R1",4)
R2 = rep("R2",4)... | /642 Rcodes/Brand_Dunnett(1).R | no_license | carinabmorgan/tamu | R | false | false | 651 | r | library(lsmeans)
y = c(22, 20, 25, 17,26, 22, 27, 21,16, 20, 14, 18,
20, 25, 26, 21,28, 29, 23, 24,22, 15, 19, 16 )
#Need to designate the Control Treatment first alphabetically.
#Change S1 to A1
A1 = rep("A1",4)
S2 = rep("S2",4)
B1 = rep("B1",4)
B2 = rep("B2",4)
R1 = rep("R1",4)
R2 = rep("R2",4)... |
library(praznik)
### Name: miScores
### Title: Calculate mutual information of all features
### Aliases: miScores
### ** Examples
miScores(iris[,-5],iris$Species)
| /data/genthat_extracted_code/praznik/examples/miScores.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 170 | r | library(praznik)
### Name: miScores
### Title: Calculate mutual information of all features
### Aliases: miScores
### ** Examples
miScores(iris[,-5],iris$Species)
|
ctrl_str <- list(tab_suffix = '',
sim_suffix = 'sim',
tab_names = c('sdtab', 'mutab', 'patab', 'catab', 'cotab', 'mytab', 'extra', 'xptab', 'cwtab'))
ctrl_data <- xpose_data(file = 'run001.lst', dir = 'data', ignore = c('files', 'summary'),
quiet = TRUE)$data$... | /tests/testthat/test-manual_import.R | no_license | cran/xpose | R | false | false | 1,289 | r | ctrl_str <- list(tab_suffix = '',
sim_suffix = 'sim',
tab_names = c('sdtab', 'mutab', 'patab', 'catab', 'cotab', 'mytab', 'extra', 'xptab', 'cwtab'))
ctrl_data <- xpose_data(file = 'run001.lst', dir = 'data', ignore = c('files', 'summary'),
quiet = TRUE)$data$... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_coverage_by_chrom.R
\name{coverage_by_chrom}
\alias{coverage_by_chrom}
\title{Calculate mean allele richness at all sampling levels}
\usage{
coverage_by_chrom(snp_chrom, snp_pos)
}
\arguments{
\item{snp_chrom}{a factor vector inidicating... | /man/coverage_by_chrom.Rd | no_license | DiDeoxy/pgda | R | false | true | 745 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_coverage_by_chrom.R
\name{coverage_by_chrom}
\alias{coverage_by_chrom}
\title{Calculate mean allele richness at all sampling levels}
\usage{
coverage_by_chrom(snp_chrom, snp_pos)
}
\arguments{
\item{snp_chrom}{a factor vector inidicating... |
\name{rodd-package}
\alias{rodd-package}
\alias{rodd}
\docType{package}
\title{Optimal Discriminating Designs}
\description{This package provides several functions suitable for efficient numerical construction of optimal discriminative designs.}
\details{
At the current state this package provides the routine \c... | /man/rodd-package.Rd | no_license | cran/rodd | R | false | false | 2,250 | rd | \name{rodd-package}
\alias{rodd-package}
\alias{rodd}
\docType{package}
\title{Optimal Discriminating Designs}
\description{This package provides several functions suitable for efficient numerical construction of optimal discriminative designs.}
\details{
At the current state this package provides the routine \c... |
# Set locale
Sys.setlocale(locale="C")
library(gam)
library(gtools)
library(lubridate)
library(maps)
library(plyr)
library(RJSONIO)
data(state.fips)
state.fips$abb <- as.character(state.fips$abb)
state.fips <- rbind(state.fips, tail(state.fips, 2))
state.fips[64, ]$fips <- 2
state.fips[64, ]$abb <- "AK"
state.fips[65... | /model/Functions.R | permissive | plpxsk/leo-senate-graphics | R | false | false | 38,044 | r | # Set locale
Sys.setlocale(locale="C")
library(gam)
library(gtools)
library(lubridate)
library(maps)
library(plyr)
library(RJSONIO)
data(state.fips)
state.fips$abb <- as.character(state.fips$abb)
state.fips <- rbind(state.fips, tail(state.fips, 2))
state.fips[64, ]$fips <- 2
state.fips[64, ]$abb <- "AK"
state.fips[65... |
# Author: Jonathan Mah
# Date: 20190709
# Load necessary packages
library(vcfR)
# This method accepts two strings, each containing the path to a given Variant Call Format
# (vcf) file, as well as a vector containing integer(s) representing at least one mutation
# type.
# This method returns a dataframe whose... | /Scripts/create_2d_sfs_from_vcf.R | no_license | jon-mah/lohmueller_lab | R | false | false | 4,962 | r | # Author: Jonathan Mah
# Date: 20190709
# Load necessary packages
library(vcfR)
# This method accepts two strings, each containing the path to a given Variant Call Format
# (vcf) file, as well as a vector containing integer(s) representing at least one mutation
# type.
# This method returns a dataframe whose... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_weights.R
\name{get_weights}
\alias{get_weights}
\title{Get Weights}
\usage{
get_weights(tickers)
}
\arguments{
\item{tickers}{A character vector of instrument tickers.}
}
\value{
Returns a table of weights across the strategies for the t... | /man/get_weights.Rd | no_license | cran/pathlit | R | false | true | 638 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_weights.R
\name{get_weights}
\alias{get_weights}
\title{Get Weights}
\usage{
get_weights(tickers)
}
\arguments{
\item{tickers}{A character vector of instrument tickers.}
}
\value{
Returns a table of weights across the strategies for the t... |
install.packages("spatstat");
library(spatstat);
install.packages("jpeg");
library(jpeg);
img = readJPEG("C:\\Users\\Bhaumik\\Documents\\GitHub\\OpenDataMining\\bhaumik\\FeatureEngineering\\ImageData\\Data\\roofs2.jpg");
# Convert to GrayScale - 0.2989 * R + 0.5870 * G + 0.1140 * B
imgGray = 0.2989 * img[, , 1] + 0.... | /FeatureEngineering/ImageData/Code/EdgeDetection_UsingConvolution.R | no_license | OpenDataMining/bhaumik | R | false | false | 1,143 | r | install.packages("spatstat");
library(spatstat);
install.packages("jpeg");
library(jpeg);
img = readJPEG("C:\\Users\\Bhaumik\\Documents\\GitHub\\OpenDataMining\\bhaumik\\FeatureEngineering\\ImageData\\Data\\roofs2.jpg");
# Convert to GrayScale - 0.2989 * R + 0.5870 * G + 0.1140 * B
imgGray = 0.2989 * img[, , 1] + 0.... |
test_that("migration matrix as a diagonal is only within IBD", {
diagnl <- matrix(0, 5, 5)
diag(diagnl) <- 1
diagnl_sim <- polySimIBD::sim_swf(pos = sort(sample(1.664e6, 1e3)),
migr_mat = diagnl,
N = rep(5, 5),
... | /tests/testthat/test-migrationmatrix.R | permissive | nickbrazeau/polySimIBD | R | false | false | 9,509 | r | test_that("migration matrix as a diagonal is only within IBD", {
diagnl <- matrix(0, 5, 5)
diag(diagnl) <- 1
diagnl_sim <- polySimIBD::sim_swf(pos = sort(sample(1.664e6, 1e3)),
migr_mat = diagnl,
N = rep(5, 5),
... |
library(PCMBase)
library(PCMBaseCpp)
library(PCMFit)
library(data.table)
# extract dataset identifier and possibly other parameters from the command line:
args <- commandArgs(trailingOnly = TRUE)
if(length(args) > 0) {
data_id <- as.integer(args[1])
} else {
data_id <- 1L
}
# A character string used in filenames ... | /vignettes/FitBootstrap_MGPM_A_F_BC2_RR.R | no_license | bkhowell/PCMFit | R | false | false | 2,230 | r | library(PCMBase)
library(PCMBaseCpp)
library(PCMFit)
library(data.table)
# extract dataset identifier and possibly other parameters from the command line:
args <- commandArgs(trailingOnly = TRUE)
if(length(args) > 0) {
data_id <- as.integer(args[1])
} else {
data_id <- 1L
}
# A character string used in filenames ... |
#' Search for taxonomic names using the Global Names Index.
#'
#' Uses the Global Names Index, see \url{http://gni.globalnames.org/} for
#' information.
#'
#' @param search_term Name pattern you want to search for search term may
#' include following options (Note: can, uni, gen, sp, ssp, au, yr work only
#' ... | /R/gni_search.R | permissive | dwinter/taxize | R | false | false | 3,182 | r | #' Search for taxonomic names using the Global Names Index.
#'
#' Uses the Global Names Index, see \url{http://gni.globalnames.org/} for
#' information.
#'
#' @param search_term Name pattern you want to search for search term may
#' include following options (Note: can, uni, gen, sp, ssp, au, yr work only
#' ... |
\name{ggConfidenceCurve}
\alias{ggConfidenceCurve}
\title{
Confidence Curves
}
\description{
Confidence curves are a way to show the confidence in an estimate computed from sample data. They are useful because they show all confidence levels simultaneously, thereby giving a good sense of the accuracy of the estim... | /man/ggConfidenceCurve.Rd | no_license | DBoegner/userfriendlyscience | R | false | false | 5,559 | rd | \name{ggConfidenceCurve}
\alias{ggConfidenceCurve}
\title{
Confidence Curves
}
\description{
Confidence curves are a way to show the confidence in an estimate computed from sample data. They are useful because they show all confidence levels simultaneously, thereby giving a good sense of the accuracy of the estim... |
.onLoad <- function(libname, pkgname) {
gpatterns.set_parallel(parallel::detectCores() / 2)
ggplot2::theme_set(ggplot2::theme_bw(base_size = 15))
ggplot2::theme_update(axis.text.x = element_text(angle = 90, hjust = 1, vjust=0.5))
if (!exists('.gpwm_cache__', envir=globalenv())) {
.gpwm_cache__ <<- ... | /R/zzz.R | no_license | tanaylab/gpatterns | R | false | false | 336 | r | .onLoad <- function(libname, pkgname) {
gpatterns.set_parallel(parallel::detectCores() / 2)
ggplot2::theme_set(ggplot2::theme_bw(base_size = 15))
ggplot2::theme_update(axis.text.x = element_text(angle = 90, hjust = 1, vjust=0.5))
if (!exists('.gpwm_cache__', envir=globalenv())) {
.gpwm_cache__ <<- ... |
library(tseries)
library(lmtest)
wrapper.filter.splines <- function(raw_data, LMMSObject, stationnarity.test = FALSE, homoskedasticity = TRUE, MSE.filter = TRUE,
stationnarity.cutoff = 0.05, homoskedasticity.cutoff = 0.05){
# raw_data :
# ----------
# sample_time in rows X mol... | /Rcode/timeOmics_Rcode/filter.R | no_license | gkong1/longitudinal_metagenomics_analysis | R | false | false | 5,331 | r | library(tseries)
library(lmtest)
wrapper.filter.splines <- function(raw_data, LMMSObject, stationnarity.test = FALSE, homoskedasticity = TRUE, MSE.filter = TRUE,
stationnarity.cutoff = 0.05, homoskedasticity.cutoff = 0.05){
# raw_data :
# ----------
# sample_time in rows X mol... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mu.R
\name{mu_sinusoidal_constant}
\alias{mu_sinusoidal_constant}
\title{Constant and sinusoidal mu function}
\usage{
mu_sinusoidal_constant(time, parameters)
}
\arguments{
\item{time}{Current time}
\item{parameters}{List of Hawkes Process p... | /man/mu_sinusoidal_constant.Rd | permissive | mrc-ide/epihawkes | R | false | true | 643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mu.R
\name{mu_sinusoidal_constant}
\alias{mu_sinusoidal_constant}
\title{Constant and sinusoidal mu function}
\usage{
mu_sinusoidal_constant(time, parameters)
}
\arguments{
\item{time}{Current time}
\item{parameters}{List of Hawkes Process p... |
\name{wavVarPD}
\alias{wavVarPD}
\title{Wavelet variance
}
\description{Wavelet variance of a partial discharge signal.}
\usage{
wavVarPD(x, ...)
}
\arguments{
\item{x}{numeric, the partial discharge signal}
\item{\dots}{additional arguments for \code{\link{wavVar}}}
}
\value{A numeric vector with the relative wa... | /man/wavVarPD.Rd | no_license | oscarperpinan/pdcluster | R | false | false | 427 | rd | \name{wavVarPD}
\alias{wavVarPD}
\title{Wavelet variance
}
\description{Wavelet variance of a partial discharge signal.}
\usage{
wavVarPD(x, ...)
}
\arguments{
\item{x}{numeric, the partial discharge signal}
\item{\dots}{additional arguments for \code{\link{wavVar}}}
}
\value{A numeric vector with the relative wa... |
# Jake Yeung
# Date of Creation: 2021-04-15
# File: ~/projects/scChIX/interactive_scripts/1-save_projection_objs_all_cells.R
#
rm(list=ls())
jsuffix <- ".FewerTopics2"
jprefix.base <- "TopBins_autosomesOnly"
jprefix <- paste0(jprefix.base, jsuffix, "_KeepAllPlates_clstrbytopics")
jprefix.input <- jprefix
jprefix.outp... | /interactive_scripts/1-save_projection_objs_all_cells.R | no_license | jakeyeung/scChIX | R | false | false | 1,179 | r | # Jake Yeung
# Date of Creation: 2021-04-15
# File: ~/projects/scChIX/interactive_scripts/1-save_projection_objs_all_cells.R
#
rm(list=ls())
jsuffix <- ".FewerTopics2"
jprefix.base <- "TopBins_autosomesOnly"
jprefix <- paste0(jprefix.base, jsuffix, "_KeepAllPlates_clstrbytopics")
jprefix.input <- jprefix
jprefix.outp... |
# load the library
library(dplyr)
library(ggplot2)
library(ggpubr)
library(Hmisc)
library(corrplot)
library(dummies)
library(mlbench)
library(caret)
library(ROSE)
library(e1071)
library(randomForest)
library(ROCR)
library(vtable)
library(rpart.plot)
library(rpart)
#Specify file name
file <- 'Telco-Customer-Churn-MANM3... | /Project.R | no_license | dami-os/Telecoms-Churn | R | false | false | 15,310 | r | # load the library
library(dplyr)
library(ggplot2)
library(ggpubr)
library(Hmisc)
library(corrplot)
library(dummies)
library(mlbench)
library(caret)
library(ROSE)
library(e1071)
library(randomForest)
library(ROCR)
library(vtable)
library(rpart.plot)
library(rpart)
#Specify file name
file <- 'Telco-Customer-Churn-MANM3... |
##### adjust for covariates first #####
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(data.table))
## For each tissue, normalized gene expression data was adjusted for covariates such as
# gender,
# sequencing platform,
# pcr,
# the top 3 principal components from geno... | /code/R/.ipynb_checkpoints/adjust_expression_gtex8_parallel-checkpoint.R | no_license | Joker-Jerome/utmost_update | R | false | false | 5,694 | r | ##### adjust for covariates first #####
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(data.table))
## For each tissue, normalized gene expression data was adjusted for covariates such as
# gender,
# sequencing platform,
# pcr,
# the top 3 principal components from geno... |
library(RTOMO)
### Name: GXMA3D
### Title: Read a geotouch image file
### Aliases: GXMA3D GXMA3DV
### Keywords: misc
### ** Examples
## Not run:
##D HELMOD = GXMA3DV("H4vel.xmco")
## End(Not run)
| /data/genthat_extracted_code/RTOMO/examples/GXMA3D.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 205 | r | library(RTOMO)
### Name: GXMA3D
### Title: Read a geotouch image file
### Aliases: GXMA3D GXMA3DV
### Keywords: misc
### ** Examples
## Not run:
##D HELMOD = GXMA3DV("H4vel.xmco")
## End(Not run)
|
library(bookdown)
# setwd("/hdir/0/fmenares/Book/bookdown-master/")
setwd("/hdir/0/andreamg/Year2_2019_2020/Random_demography/random_demography/bookdown-master/")
render_book("index.Rmd","bookdown::gitbook",
clean = TRUE, envir = parent.frame(),
clean_envir = !interactive(), output_dir = NULL,
... | /bookdown-master/run_to_compile_book.R | permissive | andreamirandagz/random_demography | R | false | false | 412 | r | library(bookdown)
# setwd("/hdir/0/fmenares/Book/bookdown-master/")
setwd("/hdir/0/andreamg/Year2_2019_2020/Random_demography/random_demography/bookdown-master/")
render_book("index.Rmd","bookdown::gitbook",
clean = TRUE, envir = parent.frame(),
clean_envir = !interactive(), output_dir = NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/games_objects.R
\name{QuestContribution}
\alias{QuestContribution}
\title{QuestContribution Object}
\usage{
QuestContribution(formattedValue = NULL, value = NULL)
}
\arguments{
\item{formattedValue}{The formatted value of the contribution as ... | /googlegamesv1.auto/man/QuestContribution.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 603 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/games_objects.R
\name{QuestContribution}
\alias{QuestContribution}
\title{QuestContribution Object}
\usage{
QuestContribution(formattedValue = NULL, value = NULL)
}
\arguments{
\item{formattedValue}{The formatted value of the contribution as ... |
## R Script to plot the 3rd graph
## output should be Plot3.png
##load the data if it does not already exist
if(!exists("epcdata")) {
epcdata<-read.table("household_power_consumption.txt",header=TRUE, sep=";",na.strings="?", colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","num... | /Plot3.R | no_license | ramshank/ExData_Plotting1 | R | false | false | 1,165 | r | ## R Script to plot the 3rd graph
## output should be Plot3.png
##load the data if it does not already exist
if(!exists("epcdata")) {
epcdata<-read.table("household_power_consumption.txt",header=TRUE, sep=";",na.strings="?", colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","num... |
#' Calculates LOESS fit between RT of two runs
#'
#' This function selects features from oswFiles which has m-score < maxFdrLoess. It fits LOESS on these feature.
#' Loess mapping is established from reference to experiment run.
#' @author Shubham Gupta, \email{shubh.gupta@mail.utoronto.ca}
#'
#' ORCID: 0000-0003-3500-... | /R/get_global_fit.R | no_license | oliveralka/DIAlignR | R | false | false | 8,154 | r | #' Calculates LOESS fit between RT of two runs
#'
#' This function selects features from oswFiles which has m-score < maxFdrLoess. It fits LOESS on these feature.
#' Loess mapping is established from reference to experiment run.
#' @author Shubham Gupta, \email{shubh.gupta@mail.utoronto.ca}
#'
#' ORCID: 0000-0003-3500-... |
## File Name: smirt_alg_comp.R
## File Version: 1.13
############################################
# probability in compensatory model
calcprob.comp <- function (a,b,Q,thetak,cc,dd){
SMIRT_CALCPROB_COMP( a,b,Q,thetak,cc,dd)
}
###########################################
# estimation of b
.smirt... | /R/smirt_alg_comp.R | no_license | rosefu79/sirt | R | false | false | 7,466 | r | ## File Name: smirt_alg_comp.R
## File Version: 1.13
############################################
# probability in compensatory model
calcprob.comp <- function (a,b,Q,thetak,cc,dd){
SMIRT_CALCPROB_COMP( a,b,Q,thetak,cc,dd)
}
###########################################
# estimation of b
.smirt... |
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test WorkflowMetadataResponse")
model.instance <- WorkflowMetadataResponse$new()
test_that("id", {
# tests for the property `id` (character)
# The identifier of the workflow
# uncomm... | /tests/testthat/test_workflow_metadata_response.R | no_license | vjcitn/terraClientR | R | false | false | 2,171 | r | # Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test WorkflowMetadataResponse")
model.instance <- WorkflowMetadataResponse$new()
test_that("id", {
# tests for the property `id` (character)
# The identifier of the workflow
# uncomm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy_dye_screen.R
\name{label_dye_screen}
\alias{label_dye_screen}
\title{Label and clean dye screen data}
\usage{
label_dye_screen(
.data,
.layout,
.type,
.variable_col = "variable",
.temp_col = "Temperature",
.value_col = "value... | /man/label_dye_screen.Rd | permissive | taiawu/dsfworld_package | R | false | true | 5,418 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tidy_dye_screen.R
\name{label_dye_screen}
\alias{label_dye_screen}
\title{Label and clean dye screen data}
\usage{
label_dye_screen(
.data,
.layout,
.type,
.variable_col = "variable",
.temp_col = "Temperature",
.value_col = "value... |
context("GeographicMap")
library(flipStandardCharts)
library(flipChartBasics)
austria.state.table <- structure(c(0.194518122589216, 0.0159799950197339, 0.639135647797957,
0.102287880377844,
0.0943967222701758, 0.963936795480549), .Names = c("Burgenl... | /tests/testthat/test-geographicmap.R | no_license | neraunzaran/flipStandardCharts | R | false | false | 6,505 | r | context("GeographicMap")
library(flipStandardCharts)
library(flipChartBasics)
austria.state.table <- structure(c(0.194518122589216, 0.0159799950197339, 0.639135647797957,
0.102287880377844,
0.0943967222701758, 0.963936795480549), .Names = c("Burgenl... |
#' buildHTML
#'
#' Converts a folder with markdown files and a corresponding literature library
#' (if available) to HTML files and creates cross-links between them.
#'
#' Pandoc (https://pandoc.org/) together with pandoc-citeproc need to be installed
#' on the system.
#'
#' @param style visualization style to be ... | /R/buildHTML.R | no_license | PrantikaDas/goxygen | R | false | false | 5,819 | r | #' buildHTML
#'
#' Converts a folder with markdown files and a corresponding literature library
#' (if available) to HTML files and creates cross-links between them.
#'
#' Pandoc (https://pandoc.org/) together with pandoc-citeproc need to be installed
#' on the system.
#'
#' @param style visualization style to be ... |
library(dslabs)
library(dplyr)
library(lubridate)
data("reported_heights")
dat <- mutate(reported_heights, date_time = ymd_hms(time_stamp)) %>%
filter(date_time >= make_date(2016, 01, 25) & date_time < make_date(2016, 02, 1)) %>%
mutate(type = ifelse(day(date_time) == 25 & hour(date_time) == 8 & between(minute(da... | /cc02-1.R | no_license | xsh-liu/rmachinelearning | R | false | false | 912 | r | library(dslabs)
library(dplyr)
library(lubridate)
data("reported_heights")
dat <- mutate(reported_heights, date_time = ymd_hms(time_stamp)) %>%
filter(date_time >= make_date(2016, 01, 25) & date_time < make_date(2016, 02, 1)) %>%
mutate(type = ifelse(day(date_time) == 25 & hour(date_time) == 8 & between(minute(da... |
gpa.lm <- lm(gpa~satm+satv+act,gpa)
###hop:3-9
summary(gpa.lm)
| /inst/snippet/gpa1.R | no_license | cran/fastR | R | false | false | 63 | r | gpa.lm <- lm(gpa~satm+satv+act,gpa)
###hop:3-9
summary(gpa.lm)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sir_backward_information_filter_sumbin.R
\name{sir_backward_information_filter_sumbin}
\alias{sir_backward_information_filter_sumbin}
\title{Controlled SMC for SIR model}
\usage{
sir_backward_information_filter_sumbin(y, model_config)
}
\argu... | /man/sir_backward_information_filter_sumbin.Rd | no_license | nianqiaoju/agents | R | false | true | 646 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sir_backward_information_filter_sumbin.R
\name{sir_backward_information_filter_sumbin}
\alias{sir_backward_information_filter_sumbin}
\title{Controlled SMC for SIR model}
\usage{
sir_backward_information_filter_sumbin(y, model_config)
}
\argu... |
events.data <- read.csv("C:/Users/Rob/Desktop/OID 311/GroupProject/FinancialNewsSentiment-master/raweventlist.csv", header=F,
stringsAsFactors = F)
for (i in 1:nrow(events.data)) {
events.data[i, 1] <- reformat.date(events.data[i, 1])
}
vix.data <- read.csv("C:/Users/Rob/Desktop/OID 311/G... | /VixReutersModel.R | no_license | rgormisky/FinancialNewsSentiment | R | false | false | 16,268 | r | events.data <- read.csv("C:/Users/Rob/Desktop/OID 311/GroupProject/FinancialNewsSentiment-master/raweventlist.csv", header=F,
stringsAsFactors = F)
for (i in 1:nrow(events.data)) {
events.data[i, 1] <- reformat.date(events.data[i, 1])
}
vix.data <- read.csv("C:/Users/Rob/Desktop/OID 311/G... |
#'simulate.betareg
#'
#'@author Lionel Hertzog
#'@description Get new response values for beta regression
#' @details The function simulate new response data
#'
#' @export
#' @example inst/examples/simulateBetaregHelp.R
simulate.betareg <- function(object,nsim){
prediction <- predict(object,type="link")
linkinv ... | /simulate/R/simulate.betareg.R | no_license | TheoreticalEcology/simulate | R | false | false | 638 | r | #'simulate.betareg
#'
#'@author Lionel Hertzog
#'@description Get new response values for beta regression
#' @details The function simulate new response data
#'
#' @export
#' @example inst/examples/simulateBetaregHelp.R
simulate.betareg <- function(object,nsim){
prediction <- predict(object,type="link")
linkinv ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{rearrangement_list}
\alias{rearrangement_list}
\alias{rlist}
\title{An example RearrangementList object}
\format{a \code{RearrangementList} object}
\description{
A \code{RearrangementList} object contains genomic i... | /man/rearrangement_list.Rd | no_license | llyzhng/trellis | R | false | true | 495 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{rearrangement_list}
\alias{rearrangement_list}
\alias{rlist}
\title{An example RearrangementList object}
\format{a \code{RearrangementList} object}
\description{
A \code{RearrangementList} object contains genomic i... |
# Exercise 5: dplyr grouped operations
# Install the `"nycflights13"` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
#install.packages("nycflights13") # should be done already
library("nycflights13")
library("dplyr")
# What was the average departure delay in each month?
# Save this as a ... | /chapter-11-exercises/exercise-5/exercise.R | permissive | blackpatton17/book-exercises | R | false | false | 1,628 | r | # Exercise 5: dplyr grouped operations
# Install the `"nycflights13"` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
#install.packages("nycflights13") # should be done already
library("nycflights13")
library("dplyr")
# What was the average departure delay in each month?
# Save this as a ... |
i = 543
library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/")
bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed"
setwd("/lustre/scr/w/e/weisun/TCGA/bam/")
cmd = "ls *_asCounts_hetSNP_EA_hap1.bam"
ffs = system(cmd, intern=TRUE)
length(ffs)
head(ffs)
sams = gsub(... | /data_preparation/R_batch3/_step3/step3_countReads_EA.542.R | no_license | jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples | R | false | false | 651 | r | i = 543
library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/")
bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed"
setwd("/lustre/scr/w/e/weisun/TCGA/bam/")
cmd = "ls *_asCounts_hetSNP_EA_hap1.bam"
ffs = system(cmd, intern=TRUE)
length(ffs)
head(ffs)
sams = gsub(... |
setwd("~/classes/advpopmod/labs/lab8/")
source('lab8_functions.r')
#model <- "prodmodel"
model <- "tuna"
mod1 <- get.pars(model)
# plot the fit of the south atlantic albacore model (Polacheck et al 1993)
plot(0.5:23.5,mod1$bio[,2],type='l',lwd=3,xlab="Year",ylab="Biomass",ylim=c(0,300),
xlim=c(0,24))
CatObs <- ... | /labs/lab8/lab8.r | no_license | thefaylab/advpopmod | R | false | false | 3,897 | r |
setwd("~/classes/advpopmod/labs/lab8/")
source('lab8_functions.r')
#model <- "prodmodel"
model <- "tuna"
mod1 <- get.pars(model)
# plot the fit of the south atlantic albacore model (Polacheck et al 1993)
plot(0.5:23.5,mod1$bio[,2],type='l',lwd=3,xlab="Year",ylab="Biomass",ylim=c(0,300),
xlim=c(0,24))
CatObs <- ... |
\name{plotSample}
\alias{plotSample}
\title{Plot the data and results from segmentation for a single sample}
\description{
Plots the data for a single sample from a copy number array experiment
(aCGH, ROMA etc.) along with the results of segmenting it into regions
of equal copy numbers.
}
\usage{
plotSample(x,... | /man/plotSample.Rd | no_license | genome-vendor/r-bioc-dnacopy | R | false | false | 2,985 | rd | \name{plotSample}
\alias{plotSample}
\title{Plot the data and results from segmentation for a single sample}
\description{
Plots the data for a single sample from a copy number array experiment
(aCGH, ROMA etc.) along with the results of segmenting it into regions
of equal copy numbers.
}
\usage{
plotSample(x,... |
#------------------------------------------------#
# Home Assignment Geoffrey 1
#------------------------------------------------#
rm(list=ls())
graphics.off()
library(tidyr)
library(psych)
library(factoextra)
setwd("~/Documents/Master/Statistics /Exams")
#################### Data Preparation ###############... | /Geofffrey_Assignment_1.R | no_license | boeltzig/PSYP13_Assignments_Marius | R | false | false | 3,434 | r | #------------------------------------------------#
# Home Assignment Geoffrey 1
#------------------------------------------------#
rm(list=ls())
graphics.off()
library(tidyr)
library(psych)
library(factoextra)
setwd("~/Documents/Master/Statistics /Exams")
#################### Data Preparation ###############... |
for (i in 1:3){
print(paste('Generating dataset', i))
C_pop <- genData(60000, C_pop_def)
T_pop <- genData(2000, T_pop_def)
C_pop <- subset.data.frame(C_pop, select = -c(B, POLY, HEAD, APP))
T_pop <- subset.data.frame(T_pop, select = -c(B, POLY, HEAD, APP))
write.csv(C_pop[,2:ncol(C_pop)], file... | /R/TKA population simulation creation.R | no_license | ejbreen/LOCOS | R | false | false | 438 | r |
for (i in 1:3){
print(paste('Generating dataset', i))
C_pop <- genData(60000, C_pop_def)
T_pop <- genData(2000, T_pop_def)
C_pop <- subset.data.frame(C_pop, select = -c(B, POLY, HEAD, APP))
T_pop <- subset.data.frame(T_pop, select = -c(B, POLY, HEAD, APP))
write.csv(C_pop[,2:ncol(C_pop)], file... |
library(kappalab)
### Name: show-methods
### Title: Methods for Function show in Package 'kappalab'
### Aliases: show-methods show,superclass.set.func-method
### show,set.func-method show,Mobius.set.func-method
### show,summary.superclass.set.func-method
### show,summary.superclass.capacity-method
### Keywords:... | /data/genthat_extracted_code/kappalab/examples/show-methods.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 540 | r | library(kappalab)
### Name: show-methods
### Title: Methods for Function show in Package 'kappalab'
### Aliases: show-methods show,superclass.set.func-method
### show,set.func-method show,Mobius.set.func-method
### show,summary.superclass.set.func-method
### show,summary.superclass.capacity-method
### Keywords:... |
/WarmUp.R | no_license | matthbrunner/GrafischeDatenexploration | R | false | false | 2,011 | r | ||
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1108
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1108
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/mult-matrix/mult_bool_matrix_dyn_2_3.sat.qdimacs... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/mult-matrix/mult_bool_matrix_dyn_2_3.sat/mult_bool_matrix_dyn_2_3.sat.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 654 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1108
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1108
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/mult-matrix/mult_bool_matrix_dyn_2_3.sat.qdimacs... |
library(geogrid)
library(sf)
library(tidyverse)
library(tmap)
#wizualizacja na przykładzie województw
# WOJEWODZTWA -------------------------------------------------------------
wojewodztwa = "https://raw.github.com/bananaonthemoon/wybory/master/dane/wojewodztwa.gpkg"
woj = read_sf(wojewodztwa, stringsAsFactors=FALS... | /kod/viz/viz_geogrid.R | no_license | bananaonthemoon/wybory | R | false | false | 2,756 | r | library(geogrid)
library(sf)
library(tidyverse)
library(tmap)
#wizualizacja na przykładzie województw
# WOJEWODZTWA -------------------------------------------------------------
wojewodztwa = "https://raw.github.com/bananaonthemoon/wybory/master/dane/wojewodztwa.gpkg"
woj = read_sf(wojewodztwa, stringsAsFactors=FALS... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis.R
\name{plot.vis}
\alias{plot.vis}
\title{Plot diagnostics for a vis object}
\usage{
\method{plot}{vis}(x, highlight, interactive = FALSE, classic = NULL,
tag = NULL, shiny = FALSE, nbest = "all", which = c("vip", "lvk",
"boot"), widt... | /man/plot.vis.Rd | no_license | guhjy/mplot | R | false | true | 5,920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis.R
\name{plot.vis}
\alias{plot.vis}
\title{Plot diagnostics for a vis object}
\usage{
\method{plot}{vis}(x, highlight, interactive = FALSE, classic = NULL,
tag = NULL, shiny = FALSE, nbest = "all", which = c("vip", "lvk",
"boot"), widt... |
checksudoku = function(sudoku)
{
dimensions_check = dim(sudoku)
ucol = rep(0,9)
urow = rep(0,9)
ublock = rep(0,9)
for(z in 1:dimensions_check[3])
{
for(y in 1:dimensions_check[2])
{
ucol[y] = c(length(unique(sudoku[,y,z])))
}
for (x in 1:dimensions_check[1])
... | /Sudoku_homework.R | no_license | amittbansal/Big_data | R | false | false | 665 | r | checksudoku = function(sudoku)
{
dimensions_check = dim(sudoku)
ucol = rep(0,9)
urow = rep(0,9)
ublock = rep(0,9)
for(z in 1:dimensions_check[3])
{
for(y in 1:dimensions_check[2])
{
ucol[y] = c(length(unique(sudoku[,y,z])))
}
for (x in 1:dimensions_check[1])
... |
data(warpbreaks)
library(glm2)
data(crabs)
#q1
q1m <- lm(warpbreaks$breaks ~ warpbreaks$wool + warpbreaks$tension)
q1anova <- anova(q1m)
summary(q1anova)
q1anova
#q2
log(0.2/0.8)
#q3
attach(crabs)
q3lm <- glm(Satellites ~ Width, family=poisson())
q3lm
#q4
str(crabs)
plot(jitter(as.integer(Width)), Satellites)
exp(-... | /quiz5.R | no_license | rakeshnbabu/DataAnalysis | R | false | false | 449 | r | data(warpbreaks)
library(glm2)
data(crabs)
#q1
q1m <- lm(warpbreaks$breaks ~ warpbreaks$wool + warpbreaks$tension)
q1anova <- anova(q1m)
summary(q1anova)
q1anova
#q2
log(0.2/0.8)
#q3
attach(crabs)
q3lm <- glm(Satellites ~ Width, family=poisson())
q3lm
#q4
str(crabs)
plot(jitter(as.integer(Width)), Satellites)
exp(-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FacebookGroupsCollection-class.R
\docType{class}
\name{FacebookGroupsCollection-class}
\alias{FacebookGroupsCollection-class}
\title{Class for representing a collection of Facebook groups}
\description{
This class is used to collect Fa... | /man/FacebookGroupsCollection-class.Rd | no_license | cran/facebook.S4 | R | false | true | 2,310 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FacebookGroupsCollection-class.R
\docType{class}
\name{FacebookGroupsCollection-class}
\alias{FacebookGroupsCollection-class}
\title{Class for representing a collection of Facebook groups}
\description{
This class is used to collect Fa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lolaUtils.R
\name{lolaBoxPlotPerTarget}
\alias{lolaBoxPlotPerTarget}
\title{lolaBoxPlotPerTarget}
\usage{
lolaBoxPlotPerTarget(
lolaDb,
lolaRes,
scoreCol = "pValueLog",
orderCol = scoreCol,
signifCol = "qValue",
includedCollection... | /man/lolaBoxPlotPerTarget.Rd | no_license | epigen/RnBeads | R | false | true | 2,881 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lolaUtils.R
\name{lolaBoxPlotPerTarget}
\alias{lolaBoxPlotPerTarget}
\title{lolaBoxPlotPerTarget}
\usage{
lolaBoxPlotPerTarget(
lolaDb,
lolaRes,
scoreCol = "pValueLog",
orderCol = scoreCol,
signifCol = "qValue",
includedCollection... |
library(EcoSimR)
### Name: pianka_var
### Title: PiankaVariance Niche Overlap Metric
### Aliases: pianka_var
### ** Examples
obsVar <- pianka_var(m=matrix(rpois(40,0.5),nrow=8))
| /data/genthat_extracted_code/EcoSimR/examples/pianka_var.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 185 | r | library(EcoSimR)
### Name: pianka_var
### Title: PiankaVariance Niche Overlap Metric
### Aliases: pianka_var
### ** Examples
obsVar <- pianka_var(m=matrix(rpois(40,0.5),nrow=8))
|
library(quantmod)
###############################################################################
# GET DATA
###############################################################################
# Produces a list of xts objects corresponding to the training data
# Function is for online use
# @return List of xts objects in... | /data.R | no_license | happy369300/R-project-1 | R | false | false | 2,727 | r | library(quantmod)
###############################################################################
# GET DATA
###############################################################################
# Produces a list of xts objects corresponding to the training data
# Function is for online use
# @return List of xts objects in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_mgcv_smooth_2D.R
\name{plot.mgcv.smooth.2D}
\alias{plot.mgcv.smooth.2D}
\title{Plotting two dimensional smooth effects}
\usage{
\method{plot}{mgcv.smooth.2D}(x, n = 40, maxpo = 10000, too.far = 0.1,
trans = function(.x) { .x }, seW... | /man/plot.mgcv.smooth.2D.Rd | no_license | nemochina2008/mgcViz | R | false | true | 1,058 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_mgcv_smooth_2D.R
\name{plot.mgcv.smooth.2D}
\alias{plot.mgcv.smooth.2D}
\title{Plotting two dimensional smooth effects}
\usage{
\method{plot}{mgcv.smooth.2D}(x, n = 40, maxpo = 10000, too.far = 0.1,
trans = function(.x) { .x }, seW... |
testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252178636e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 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), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::match_rows,testlist)
str(resu... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613122480-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 323 | r | testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252178636e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 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), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::match_rows,testlist)
str(resu... |
/Mining model - binary - generic script.R | no_license | pjerrot/r_stuff | R | false | false | 10,458 | r | ||
rm(list = ls())
setwd("sGES-figures/")
library(ggplot2)
library(magrittr)
library(vegan)
library(tidyverse)
library(ranger)
library(pROC)
library(plyr)
library(dplyr)
library(grid)
library(data.table)
library(Rtsne)
library(plotly)
#### read data
genes = fread("figures/data/gtex/gtex.ranked.genelist.top.gene.250.csv"... | /figures/figure-1/figure-1C_S2.R | permissive | rayeesrahman/sGES-figures | R | false | false | 6,762 | r | rm(list = ls())
setwd("sGES-figures/")
library(ggplot2)
library(magrittr)
library(vegan)
library(tidyverse)
library(ranger)
library(pROC)
library(plyr)
library(dplyr)
library(grid)
library(data.table)
library(Rtsne)
library(plotly)
#### read data
genes = fread("figures/data/gtex/gtex.ranked.genelist.top.gene.250.csv"... |
#' Matched Groups
#'
#' \code{MG} returns the matched groups of the supplied units.
#'
#' The \code{units} argument refers to units with respect to
#' \code{rownames(ame_out$data)}. Typically, this will also correspond to the
#' indexing of the data (i.e. passing \code{units = 3} will return the matched
#' group of the... | /R/post_matching.R | no_license | minghao2016/FLAME | R | false | false | 11,582 | r | #' Matched Groups
#'
#' \code{MG} returns the matched groups of the supplied units.
#'
#' The \code{units} argument refers to units with respect to
#' \code{rownames(ame_out$data)}. Typically, this will also correspond to the
#' indexing of the data (i.e. passing \code{units = 3} will return the matched
#' group of the... |
beta <-c("0.19-0.1","0.28-0.08","0.22-0.02","0.31-0.1" )
listMultiply<- c(1,2,3,4)
networkName <- "Lazega"
statistic <- NULL
networkStatistic <- NULL
for(m in 1:length(listMultiply))
{mnoznik <-listMultiply[m]
for(i in 1:length(beta))
{
zmienna <- paste(paste (beta[i],mnoznik,sep="-"),".dat",sep="")
files <... | /Plots/ALL_scripts_summary - generalized- blocking.R | no_license | niebieska/MasterThesis | R | false | false | 3,181 | r | beta <-c("0.19-0.1","0.28-0.08","0.22-0.02","0.31-0.1" )
listMultiply<- c(1,2,3,4)
networkName <- "Lazega"
statistic <- NULL
networkStatistic <- NULL
for(m in 1:length(listMultiply))
{mnoznik <-listMultiply[m]
for(i in 1:length(beta))
{
zmienna <- paste(paste (beta[i],mnoznik,sep="-"),".dat",sep="")
files <... |
after reading cow data to do cow EBvs, there are duplicated rows
c<-KJCow_EBV[!duplicated(KJCow_EBV$CowID_recode),] # remove duplicated rows
for MY rel in Kenya
c$MYRel <- 1 - (c$V4^2 / (34800.7)) # GV is 34800.7
c$MYRel[ c$MYRel <= 0] <- 0.01 #where min Rel is less than 0.01
Min. 1st Qu. Median Mea... | /R_CODESJersey_New280617.R | no_license | yinkaelsie/R-codes-for-data-curation | R | false | false | 2,804 | r | after reading cow data to do cow EBvs, there are duplicated rows
c<-KJCow_EBV[!duplicated(KJCow_EBV$CowID_recode),] # remove duplicated rows
for MY rel in Kenya
c$MYRel <- 1 - (c$V4^2 / (34800.7)) # GV is 34800.7
c$MYRel[ c$MYRel <= 0] <- 0.01 #where min Rel is less than 0.01
Min. 1st Qu. Median Mea... |
############################################ CoilKWTensile ##############################
loadSource <- function() {
DFSource <<- read_rds("../SourceData/diamonds/diamonds_전처리.rds")
# DFSource <<- diamonds
# DFSource <<- select(DFSource, -sampleCode, -bHOT, -clusterGr)
# DFSource$carb <- as.factor(DFSource$c... | /SmartSolution/sourcing/diamonds/loadSource.R | no_license | hyunmu/SmartSolutionShiny | R | false | false | 4,235 | r | ############################################ CoilKWTensile ##############################
loadSource <- function() {
DFSource <<- read_rds("../SourceData/diamonds/diamonds_전처리.rds")
# DFSource <<- diamonds
# DFSource <<- select(DFSource, -sampleCode, -bHOT, -clusterGr)
# DFSource$carb <- as.factor(DFSource$c... |
library(tm)
library(SnowballC)
library(caret)
library(tokenizers)
library(dplyr)
# ================================= BAG OF WORDS ===========================================
bag.of.words <- function(data, sparse = 0.999, init = FALSE, test = TRUE){
docs <- Corpus(VectorSource(data$SIT))
words.dict <- list()
if ... | /EC_Module/ec_predictor.R | no_license | Zekkenn/C3-Sex | R | false | false | 2,812 | r | library(tm)
library(SnowballC)
library(caret)
library(tokenizers)
library(dplyr)
# ================================= BAG OF WORDS ===========================================
bag.of.words <- function(data, sparse = 0.999, init = FALSE, test = TRUE){
docs <- Corpus(VectorSource(data$SIT))
words.dict <- list()
if ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1372
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1372
c
c Input Parameter (command line, file):
c input filename QBFLIB/Biere/tipdiam/eijk.S298.S-d4.qdimacs
c output filename ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Biere/tipdiam/eijk.S298.S-d4/eijk.S298.S-d4.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 613 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1372
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1372
c
c Input Parameter (command line, file):
c input filename QBFLIB/Biere/tipdiam/eijk.S298.S-d4.qdimacs
c output filename ... |
library(GGally)
### Name: wrap_fn_with_param_arg
### Title: Wrap a function with different parameter values
### Aliases: wrap_fn_with_param_arg wrapp wrap wrap_fn_with_params
### ** Examples
# small function to display plots only if it's interactive
p_ <- GGally::print_if_interactive
# example function that prin... | /data/genthat_extracted_code/GGally/examples/wrap.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,645 | r | library(GGally)
### Name: wrap_fn_with_param_arg
### Title: Wrap a function with different parameter values
### Aliases: wrap_fn_with_param_arg wrapp wrap wrap_fn_with_params
### ** Examples
# small function to display plots only if it's interactive
p_ <- GGally::print_if_interactive
# example function that prin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TargetingModels.R
\name{minNumSeqMutationsTune}
\alias{minNumSeqMutationsTune}
\title{Parameter tuning for minNumSeqMutations}
\usage{
minNumSeqMutationsTune(mutCount, minNumSeqMutationsRange)
}
\arguments{
\item{mutCount}{a \code{vector} of ... | /man/minNumSeqMutationsTune.Rd | no_license | Bhanditz/shazam | R | false | true | 2,863 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TargetingModels.R
\name{minNumSeqMutationsTune}
\alias{minNumSeqMutationsTune}
\title{Parameter tuning for minNumSeqMutations}
\usage{
minNumSeqMutationsTune(mutCount, minNumSeqMutationsRange)
}
\arguments{
\item{mutCount}{a \code{vector} of ... |
### Code accompanying:
## Robinson et al.
## Fishing degrades size structure of coral reef fish communities
## In review at Global Change Biology - May 2016
## Preprint posted on PeerJ - June 2016
## Script to make predictions using candidate model set
## Predictions are weighted by AIC weights, and made across the... | /CREP_models_predictions.R | no_license | baumlab/Robinson_etal_2017_GlobalChangeBiology | R | false | false | 15,449 | r |
### Code accompanying:
## Robinson et al.
## Fishing degrades size structure of coral reef fish communities
## In review at Global Change Biology - May 2016
## Preprint posted on PeerJ - June 2016
## Script to make predictions using candidate model set
## Predictions are weighted by AIC weights, and made across the... |
#' @param api_url (character) The WAStD API URL,
#' default \code{\link{get_wastdr_api_url}}, see \code{\link{wastdr_setup}}
#' @param api_token (character) The WAStD API token,
#' default \code{\link{get_wastdr_api_token}}, see \code{\link{wastdr_setup}}
#' @param api_un (character) A WAStD API username,
#' defa... | /man-roxygen/param-auth.R | no_license | dbca-wa/wastdr | R | false | false | 516 | r | #' @param api_url (character) The WAStD API URL,
#' default \code{\link{get_wastdr_api_url}}, see \code{\link{wastdr_setup}}
#' @param api_token (character) The WAStD API token,
#' default \code{\link{get_wastdr_api_token}}, see \code{\link{wastdr_setup}}
#' @param api_un (character) A WAStD API username,
#' defa... |
settings = c("sine", "exponential")
num_simulations = 500
seq_windowlengths = seq(36,52,by=4)
## BUILD THE DATASET
for (setting in settings) {
for (windowlength in seq_windowlengths) {
print(paste("On setting =", setting, "and window length =", windowlength))
df = rep(0,0)
for (iter in 2:num_simulations)... | /simulations/delta_incorrect/simulation_processing.R | no_license | wdempsey/fda-recurrentevents | R | false | false | 960 | r | settings = c("sine", "exponential")
num_simulations = 500
seq_windowlengths = seq(36,52,by=4)
## BUILD THE DATASET
for (setting in settings) {
for (windowlength in seq_windowlengths) {
print(paste("On setting =", setting, "and window length =", windowlength))
df = rep(0,0)
for (iter in 2:num_simulations)... |
#load up the packages
source(here::here("R/package-loading.R"))
# Briefly glimpse content of dataset
glimpse(NHANES)
#vælg kolonne via dets navn (indtaster først datsættets navn
#og så de kolonner man ønsker at vælge)
select(NHANES, Age)
#select more columns
select(NHANES, Age, Weight, BMI)
# exclude a column
sele... | /R/wrangling-session.R | no_license | LineStattauBisgaard/LearningR | R | false | false | 4,307 | r | #load up the packages
source(here::here("R/package-loading.R"))
# Briefly glimpse content of dataset
glimpse(NHANES)
#vælg kolonne via dets navn (indtaster først datsættets navn
#og så de kolonner man ønsker at vælge)
select(NHANES, Age)
#select more columns
select(NHANES, Age, Weight, BMI)
# exclude a column
sele... |
library(dplyr)
library(ggplot2)
library(gridExtra)
library(grid)
source('read_GLUE_results.R')
#------fall in 95% interval----------
fallIn95Interval <- function(i, observation, quantile){
if(observation[i]>quantile[1,i] & observation[i]<quantile[2,i]){
return(1)
}else{return(0)}
}
percentageFallIn95Interval... | /lib/visualization_uncertainty_bound.R | no_license | co822ee/LUR_optimization | R | false | false | 3,612 | r | library(dplyr)
library(ggplot2)
library(gridExtra)
library(grid)
source('read_GLUE_results.R')
#------fall in 95% interval----------
fallIn95Interval <- function(i, observation, quantile){
if(observation[i]>quantile[1,i] & observation[i]<quantile[2,i]){
return(1)
}else{return(0)}
}
percentageFallIn95Interval... |
library(spatstat)
### Name: as.hyperframe
### Title: Convert Data to Hyperframe
### Aliases: as.hyperframe as.hyperframe.default as.hyperframe.data.frame
### as.hyperframe.hyperframe as.hyperframe.listof as.hyperframe.anylist
### Keywords: spatial manip
### ** Examples
df <- data.frame(x=runif(4),y=letters[1:4... | /data/genthat_extracted_code/spatstat/examples/as.hyperframe.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 476 | r | library(spatstat)
### Name: as.hyperframe
### Title: Convert Data to Hyperframe
### Aliases: as.hyperframe as.hyperframe.default as.hyperframe.data.frame
### as.hyperframe.hyperframe as.hyperframe.listof as.hyperframe.anylist
### Keywords: spatial manip
### ** Examples
df <- data.frame(x=runif(4),y=letters[1:4... |
####
####
# Script to summarize sample sizes of data used for analysis
# Produces txt files that are used to produce tables in the supplement
####
####
# - Libraries ----
library(tidyverse)
library(readxl)
library(knitr)
library(lubridate)
library(tidyxl)
library(readr)
# - Directories ----
dataDirectory <- "data/"
... | /scripts/007_createFiguresDiagramsTables/05_summarizeSampleSizes.R | permissive | gregor-fausto/clarkia-bet-hedging | R | false | false | 13,647 | r | ####
####
# Script to summarize sample sizes of data used for analysis
# Produces txt files that are used to produce tables in the supplement
####
####
# - Libraries ----
library(tidyverse)
library(readxl)
library(knitr)
library(lubridate)
library(tidyxl)
library(readr)
# - Directories ----
dataDirectory <- "data/"
... |
# server.R
library(quantmod)
shinyServer(function(input, output) {
output$plot <- renderPlot({
data <- getSymbols(input$symb, src = "yahoo", from = input$dates[1], to = input$dates[2], auto.assign = FALSE)
chartSeries(data, theme = chartTheme("white"),name=input$symb,
type = input$type, l... | /server.R | no_license | chengjiun/Course9Project_github | R | false | false | 461 | r | # server.R
library(quantmod)
shinyServer(function(input, output) {
output$plot <- renderPlot({
data <- getSymbols(input$symb, src = "yahoo", from = input$dates[1], to = input$dates[2], auto.assign = FALSE)
chartSeries(data, theme = chartTheme("white"),name=input$symb,
type = input$type, l... |
## this script plots the changes in air quality over time
# loading in the relavant packages
library(shiny)
library(tidyverse)
#confirming we are the right directory
getwd()
#loads the air quality data in that we will need
data <- read.csv('data/air_quality.csv')
#this sciprt will be used to define my UI
ui <- ... | /individual scripts:part/final-project-jimmy/ui _jimmy.R | no_license | jimbobye/info-201-final-project | R | false | false | 3,400 | r | ## this script plots the changes in air quality over time
# loading in the relavant packages
library(shiny)
library(tidyverse)
#confirming we are the right directory
getwd()
#loads the air quality data in that we will need
data <- read.csv('data/air_quality.csv')
#this sciprt will be used to define my UI
ui <- ... |
#Cargando los archivos
setwd("/Users/gloriacarolina/Documentos/COUSERA/DATES SCIENCE/datasciencecoursera/MODULO 4")
destino1 <- "/Users/gloriacarolina/Documentos/COUSERA/DATES SCIENCE/datasciencecoursera/MODULO 4/household_power_consumption.txt"
HPC <- read.table("household_power_consumption.txt", header=TRUE, sep = ";... | /PLOT1.R | no_license | glornum2020/ExData_Plotting1 | R | false | false | 1,337 | r | #Cargando los archivos
setwd("/Users/gloriacarolina/Documentos/COUSERA/DATES SCIENCE/datasciencecoursera/MODULO 4")
destino1 <- "/Users/gloriacarolina/Documentos/COUSERA/DATES SCIENCE/datasciencecoursera/MODULO 4/household_power_consumption.txt"
HPC <- read.table("household_power_consumption.txt", header=TRUE, sep = ";... |
testlist <- list(ExpressionSet = structure(c(3.1050351568184e+231, 1.23181983389617e+58, 1.52478221747831e+245, 6.36967296041789e+178, 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), .Dim = c(5L, 7L)), Phylostratum = numeric(0))
result <- do.call(myTAI:::cpp_TAI,testlist... | /myTAI/inst/testfiles/cpp_TAI/AFL_cpp_TAI/cpp_TAI_valgrind_files/1615763131-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 333 | r | testlist <- list(ExpressionSet = structure(c(3.1050351568184e+231, 1.23181983389617e+58, 1.52478221747831e+245, 6.36967296041789e+178, 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), .Dim = c(5L, 7L)), Phylostratum = numeric(0))
result <- do.call(myTAI:::cpp_TAI,testlist... |
logistic_model <- function(x1, x2) {
e <- exp(model_fit$finalModel$coefficients[1] +
model_fit$finalModel$coefficients[2] * x1 +
model_fit$finalModel$coefficients[3] * x2)
return(e / (1 + e))
} | /workshop_final/src/functions.R | no_license | BioData-Club/logregression-workshop | R | false | false | 227 | r | logistic_model <- function(x1, x2) {
e <- exp(model_fit$finalModel$coefficients[1] +
model_fit$finalModel$coefficients[2] * x1 +
model_fit$finalModel$coefficients[3] * x2)
return(e / (1 + e))
} |
#' Correlation Table
#'
#' Correlations printed in a nicely formatted table.
#'
#' @param .data the data frame containing the variables
#' @param ... the unquoted variable names to be included in the correlations
#' @param cor_type the correlation type; default is "pearson", other option is "spearman"
#' @param na.rm... | /R/table_cor.R | no_license | TysonStanley/furniture | R | false | false | 4,349 | r | #' Correlation Table
#'
#' Correlations printed in a nicely formatted table.
#'
#' @param .data the data frame containing the variables
#' @param ... the unquoted variable names to be included in the correlations
#' @param cor_type the correlation type; default is "pearson", other option is "spearman"
#' @param na.rm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fstadv.R
\name{fstadv}
\alias{fstadv}
\title{fstadv}
\usage{
fstadv(contents)
}
\arguments{
\item{contents}{URL of a specific FORECAST/ADVISORY product}
}
\value{
Data frame of values
}
\description{
Extrapolate data from FORECAST/ADVISORY pr... | /man/fstadv.Rd | permissive | ropensci/rrricanes | R | false | true | 455 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fstadv.R
\name{fstadv}
\alias{fstadv}
\title{fstadv}
\usage{
fstadv(contents)
}
\arguments{
\item{contents}{URL of a specific FORECAST/ADVISORY product}
}
\value{
Data frame of values
}
\description{
Extrapolate data from FORECAST/ADVISORY pr... |
Last login: Sat May 13 17:38:18 on ttys000
Debmalyas-MBP-2:RACT debmalyajash$ cd ~/git/RACT
Debmalyas-MBP-2:RACT debmalyajash$ cd src
Debmalyas-MBP-2:src debmalyajash$ ls -lart
total 24
-rw-r--r--@ 1 debmalyajash staff 85 May 10 18:19 Welcome.R
-rw-r--r-- 1 debmalyajash staff 3753 May 13 22:41 tApplyFunctions.R
... | /src/tApplyFunctions.R | permissive | debmalya/RACT | R | false | false | 4,521 | r | Last login: Sat May 13 17:38:18 on ttys000
Debmalyas-MBP-2:RACT debmalyajash$ cd ~/git/RACT
Debmalyas-MBP-2:RACT debmalyajash$ cd src
Debmalyas-MBP-2:src debmalyajash$ ls -lart
total 24
-rw-r--r--@ 1 debmalyajash staff 85 May 10 18:19 Welcome.R
-rw-r--r-- 1 debmalyajash staff 3753 May 13 22:41 tApplyFunctions.R
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.