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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/util.R
\name{munge_startdate}
\alias{munge_startdate}
\title{munge_startdate}
\usage{
munge_startdate(x)
}
\arguments{
\item{x}{teststartdate field}
}
\description{
helper function to convert a variety of date formats cleanly
}
| /man/munge_startdate.Rd | no_license | rabare/mapvizieR | R | false | false | 315 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/util.R
\name{munge_startdate}
\alias{munge_startdate}
\title{munge_startdate}
\usage{
munge_startdate(x)
}
\arguments{
\item{x}{teststartdate field}
}
\description{
helper function to convert a variety of date formats cleanly
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistics_functions.R
\name{recall}
\alias{recall}
\title{Calculates Recall from a measures dataframe}
\usage{
recall(df)
}
\arguments{
\item{df}{dataframe with measures}
}
\value{
calculated metric
}
\description{
Calculates Recall from a m... | /man/recall.Rd | permissive | rafnunser/ExpHunterSuite | R | false | true | 444 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistics_functions.R
\name{recall}
\alias{recall}
\title{Calculates Recall from a measures dataframe}
\usage{
recall(df)
}
\arguments{
\item{df}{dataframe with measures}
}
\value{
calculated metric
}
\description{
Calculates Recall from a m... |
NEI <- readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
library(ggplot2)
subset_NEI <- NEI[NEI$fips=="24510", ]
Total_Emissions_byYearAndType <- aggregate(Emissions ~ year + type, subset_NEI, sum)
png("plot3.png", width=640, height=480)
g <- ggplot(Total_Emissions_byY... | /Plot3.R | no_license | eurekanitish/Coursera-Exploratory-Course-Assignment-2 | R | false | false | 576 | r | NEI <- readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
library(ggplot2)
subset_NEI <- NEI[NEI$fips=="24510", ]
Total_Emissions_byYearAndType <- aggregate(Emissions ~ year + type, subset_NEI, sum)
png("plot3.png", width=640, height=480)
g <- ggplot(Total_Emissions_byY... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gw_aquifers.R
\docType{data}
\name{gw_aquifers}
\alias{gw_aquifers}
\title{British Columbia's developed ground water aquifers}
\format{An \code{sf} object with polygons delineating mapped, developed ground water aquifers for British Columbia.... | /man/gw_aquifers.Rd | permissive | bcgov/bcmapsdata | R | false | true | 931 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gw_aquifers.R
\docType{data}
\name{gw_aquifers}
\alias{gw_aquifers}
\title{British Columbia's developed ground water aquifers}
\format{An \code{sf} object with polygons delineating mapped, developed ground water aquifers for British Columbia.... |
library(testthat)
library(mlr)
library(ParamHelpers)
test_check("OpenML", filter = "server")
| /tests/run-server.R | permissive | vishalbelsare/openml-r | R | false | false | 93 | r | library(testthat)
library(mlr)
library(ParamHelpers)
test_check("OpenML", filter = "server")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_demographics_male_1991.R
\name{build_demographics_male_1991}
\alias{build_demographics_male_1991}
\title{Builds a synthetic variable for age - 1960}
\usage{
build_demographics_male_1991(CensusData)
}
\description{
Builds a synthetic var... | /man/build_demographics_male_1991.Rd | no_license | antrologos/harmonizeIBGE | R | false | true | 343 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_demographics_male_1991.R
\name{build_demographics_male_1991}
\alias{build_demographics_male_1991}
\title{Builds a synthetic variable for age - 1960}
\usage{
build_demographics_male_1991(CensusData)
}
\description{
Builds a synthetic var... |
library(ape)
testtree <- read.tree("11249_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11249_0_unrooted.txt") | /codeml_files/newick_trees_processed/11249_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("11249_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11249_0_unrooted.txt") |
#########################################
# Compare KPCA with 3, 4, 5, and 6 character kernels and Pre-crisis sample
# Christopher Gandrud
# MIT License
#########################################
# Load packages
library(simpleSetup)
pkgs <- c('repmis', 'rio', 'DataCombine', 'gridExtra', 'ggplot2')
library_install(pkgs... | /summary_paper/analysis/kpca_n_character_kernel_compare.R | permissive | shirzartenwer/EIUCrisesMeasure | R | false | false | 2,292 | r | #########################################
# Compare KPCA with 3, 4, 5, and 6 character kernels and Pre-crisis sample
# Christopher Gandrud
# MIT License
#########################################
# Load packages
library(simpleSetup)
pkgs <- c('repmis', 'rio', 'DataCombine', 'gridExtra', 'ggplot2')
library_install(pkgs... |
#' Clip Polygons to the Antarctic coastline
#'
#' Clip Polygons to the \link{Coast} (removes polygon parts that fall on land) and computes the area of the resulting polygon.
#' Uses an sf object as input which may be user-generated or created via buffered points (see \link{create_Points}),
#' buffered lines (see \l... | /R/Clip2Coast.R | no_license | cran/CCAMLRGIS | R | false | false | 1,377 | r | #' Clip Polygons to the Antarctic coastline
#'
#' Clip Polygons to the \link{Coast} (removes polygon parts that fall on land) and computes the area of the resulting polygon.
#' Uses an sf object as input which may be user-generated or created via buffered points (see \link{create_Points}),
#' buffered lines (see \l... |
# Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad)
#variable, which of these four sources have seen decreases in emissions from 1999
#2008 for Baltimore City? Which have seen increases in emissions from 1999 2008?
# Use the ggplot2 plotting system to make a plot answer this que... | /plot3.R | no_license | sourabhjaiin/Project2-on-EDA | R | false | false | 848 | r | # Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad)
#variable, which of these four sources have seen decreases in emissions from 1999
#2008 for Baltimore City? Which have seen increases in emissions from 1999 2008?
# Use the ggplot2 plotting system to make a plot answer this que... |
#HW12
#The FACTORS data set is described in Exercise 3.68 (7th edition) and Exercise 9.31 (8th edition) and is available here.
#libraries needed
library(faraway)
library(psych)
library(lmtest)
if (FALSE)
{"
a) Find the mean and variance of the dependent variable y= length of stay.
b) Plot LOS versus FACTORS
c) Fit a ... | /regression/Files Loaded after Spring Break/HW12.R | no_license | himesh257/classwork-research | R | false | false | 1,545 | r | #HW12
#The FACTORS data set is described in Exercise 3.68 (7th edition) and Exercise 9.31 (8th edition) and is available here.
#libraries needed
library(faraway)
library(psych)
library(lmtest)
if (FALSE)
{"
a) Find the mean and variance of the dependent variable y= length of stay.
b) Plot LOS versus FACTORS
c) Fit a ... |
# source ("motherinfant.R")
# source ("censusmonthly.source.R")
last.census <- census.monthly %>%
group_by (census.group.code) %>%
summarise (last.group.census = last (census.date),
first.group.census = first (census.date))
last.seen <- census.monthly %>%
group_by (census.group.code, individual.nam... | /scripts/Urs scripts/CheckLastCensus.R | no_license | urskalbitzer/paceR | R | false | false | 1,193 | r | # source ("motherinfant.R")
# source ("censusmonthly.source.R")
last.census <- census.monthly %>%
group_by (census.group.code) %>%
summarise (last.group.census = last (census.date),
first.group.census = first (census.date))
last.seen <- census.monthly %>%
group_by (census.group.code, individual.nam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bp.signalprocessor.R
\name{bp.signalprocessor}
\alias{bp.signalprocessor}
\title{This function identifies chart signals in an [0,100]-Points Bullish Percent Chart}
\usage{
bp.signalprocessor(data)
}
\arguments{
\item{data}{Input data}
}
\desc... | /man/bp.signalprocessor.Rd | no_license | cran/rpnf | R | false | true | 414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bp.signalprocessor.R
\name{bp.signalprocessor}
\alias{bp.signalprocessor}
\title{This function identifies chart signals in an [0,100]-Points Bullish Percent Chart}
\usage{
bp.signalprocessor(data)
}
\arguments{
\item{data}{Input data}
}
\desc... |
###########################################################################################
# File: HC_genes.R
# Description: R module for higher order analysis tools - hierarchical clustering
# Author: Huaitian Liu
# Date: August 2005
####################################################################################... | /R_source/HC_genes.R | permissive | CBIIT/stats-analysis-server | R | false | false | 1,083 | r | ###########################################################################################
# File: HC_genes.R
# Description: R module for higher order analysis tools - hierarchical clustering
# Author: Huaitian Liu
# Date: August 2005
####################################################################################... |
# Pacote quantmod
# http://www.quantmod.com
# Pacotes
install.packages("quantmod")
install.packages("xts")
install.packages("moments")
library(quantmod)
library(xts) # Permite trabalhar com xts (série temporal)
library(moments)
# Seleção do período de análise
startDate = as.Date("2019-03-20")
endDate = as.Date("202... | /Analise_mercado_financeiro_com_R.R | no_license | Daniel-Solano/analise_mercado_financeiro | R | false | false | 976 | r | # Pacote quantmod
# http://www.quantmod.com
# Pacotes
install.packages("quantmod")
install.packages("xts")
install.packages("moments")
library(quantmod)
library(xts) # Permite trabalhar com xts (série temporal)
library(moments)
# Seleção do período de análise
startDate = as.Date("2019-03-20")
endDate = as.Date("202... |
#############################################
##spatial loess fit comparasion after 1950 ##
#############################################
## compare the loess fit without elev with fit without elev
## so compare loess02 with loess04, and loess06
library(maps)
library(lattice)
lattice.theme <- trellis.par.get()
col <- ... | /NCAR/rhcode/a1950/rh.a1950.plot03.R | no_license | XiaosuTong/Spatial | R | false | false | 16,808 | r | #############################################
##spatial loess fit comparasion after 1950 ##
#############################################
## compare the loess fit without elev with fit without elev
## so compare loess02 with loess04, and loess06
library(maps)
library(lattice)
lattice.theme <- trellis.par.get()
col <- ... |
#
# Scrape some hotel review data from Trip Advisor
#
# set working directory
setwd("~/notesofdabbler/blog_notesofdabbler/hotelReview/")
# load libraries
library(RCurl)
library(XML)
library(lubridate)
library(ggplot2)
options(stringsAsFactors=FALSE)
#
# Web page is parsed based on url
# Search for a hotel gives re... | /hotelReview/scrapeTripAdvisor.R | no_license | bford79/blog_notesofdabbler | R | false | false | 5,222 | r |
#
# Scrape some hotel review data from Trip Advisor
#
# set working directory
setwd("~/notesofdabbler/blog_notesofdabbler/hotelReview/")
# load libraries
library(RCurl)
library(XML)
library(lubridate)
library(ggplot2)
options(stringsAsFactors=FALSE)
#
# Web page is parsed based on url
# Search for a hotel gives re... |
### HEADER #####################################################################
##' @title Sslect new explanatory variables for PNE PFG modelling
##'
##' @author Damien G. & Maya G.
##' @contact damien.georges2 at gmail.com
##'
##' @date 25/01/2016
##'
##' @description Here we will conduct a little analysis to selec... | /scripts/PNE/SDMs/0a_Select_expalnatory_variables.R | no_license | emabio/fatehdhub | R | false | false | 6,556 | r | ### HEADER #####################################################################
##' @title Sslect new explanatory variables for PNE PFG modelling
##'
##' @author Damien G. & Maya G.
##' @contact damien.georges2 at gmail.com
##'
##' @date 25/01/2016
##'
##' @description Here we will conduct a little analysis to selec... |
test_that("Bin", {
# Bin
x <- c(c("Apple","Banana", "Banana"), NA)
bins <- new_Bin(x)
attr(bins, "stats")
attr(bins, "categories")
str(bins)
expect_equal(attr(bins,"stats")$category, unique(x))
expect_equal(attr(bins,"stats")$n[2], 2)
expect_equal(attr(bins,"n_categories"), 2)
# TODO add option to... | /tests/testthat/test-Bin.R | permissive | brazadas/homodatum | R | false | false | 1,062 | r | test_that("Bin", {
# Bin
x <- c(c("Apple","Banana", "Banana"), NA)
bins <- new_Bin(x)
attr(bins, "stats")
attr(bins, "categories")
str(bins)
expect_equal(attr(bins,"stats")$category, unique(x))
expect_equal(attr(bins,"stats")$n[2], 2)
expect_equal(attr(bins,"n_categories"), 2)
# TODO add option to... |
#!/usr/bin/R
# Plots F statistic vs gender and sex obtained from a .sexcheck file from PLINK's --check-sex output
# Syntax: Rscript sexcheck.R <filename.sexcheck> [prefix]
# Outputs: (prefix)-sexcheck.pdf and png and a table of mismatches (prefix)-sexcheck.txt
args=(commandArgs(TRUE))
library(data.table)
libr... | /QC_scripts/sexcheck.R | no_license | naim-panjwani/scripts | R | false | false | 2,075 | r | #!/usr/bin/R
# Plots F statistic vs gender and sex obtained from a .sexcheck file from PLINK's --check-sex output
# Syntax: Rscript sexcheck.R <filename.sexcheck> [prefix]
# Outputs: (prefix)-sexcheck.pdf and png and a table of mismatches (prefix)-sexcheck.txt
args=(commandArgs(TRUE))
library(data.table)
libr... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/meta.R
\docType{methods}
\name{c,ListOfmeta-method}
\alias{c,ListOfmeta-method}
\title{Concatenate ListOfmeta elements into a ListOfmeta}
\usage{
\S4method{c}{ListOfmeta}(x, ..., recursive = FALSE)
}
\arguments{
\item{x,...}{meta or L... | /man/c-ListOfmeta-method.Rd | permissive | vanderphylum/RNeXML | R | false | false | 863 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/meta.R
\docType{methods}
\name{c,ListOfmeta-method}
\alias{c,ListOfmeta-method}
\title{Concatenate ListOfmeta elements into a ListOfmeta}
\usage{
\S4method{c}{ListOfmeta}(x, ..., recursive = FALSE)
}
\arguments{
\item{x,...}{meta or L... |
library(ape)
testtree <- read.tree("10633_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10633_0_unrooted.txt") | /codeml_files/newick_trees_processed/10633_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("10633_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10633_0_unrooted.txt") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calcexpected.R
\name{calcexpected}
\alias{calcexpected}
\title{calcexpected}
\usage{
calcexpected(observed, population, periods, ids)
}
\arguments{
\item{observed}{Vector of observed counts.}
\item{population}{Vector of population sizes in e... | /man/calcexpected.Rd | no_license | mkamenet3/clusso | R | false | true | 1,030 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calcexpected.R
\name{calcexpected}
\alias{calcexpected}
\title{calcexpected}
\usage{
calcexpected(observed, population, periods, ids)
}
\arguments{
\item{observed}{Vector of observed counts.}
\item{population}{Vector of population sizes in e... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LauraeEapply.R
\name{LauraeEapply}
\alias{LauraeEapply}
\title{Laurae's Parallel Environment Apply with Load Balancing}
\usage{
LauraeEapply(cl, x, fun, ...)
}
\arguments{
\item{cl}{Type: cluster. It must be created by \code{snow}.}
\item{x}... | /man/LauraeEapply.Rd | no_license | Laurae2/LauraeParallel | R | false | true | 3,715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LauraeEapply.R
\name{LauraeEapply}
\alias{LauraeEapply}
\title{Laurae's Parallel Environment Apply with Load Balancing}
\usage{
LauraeEapply(cl, x, fun, ...)
}
\arguments{
\item{cl}{Type: cluster. It must be created by \code{snow}.}
\item{x}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_map_interactive.R
\name{geom_map_interactive}
\alias{geom_map_interactive}
\title{Create interactive polygons from a reference map}
\usage{
geom_map_interactive(...)
}
\arguments{
\item{...}{arguments passed to base function,
plus any of... | /man/geom_map_interactive.Rd | no_license | davidgohel/ggiraph | R | false | true | 2,068 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_map_interactive.R
\name{geom_map_interactive}
\alias{geom_map_interactive}
\title{Create interactive polygons from a reference map}
\usage{
geom_map_interactive(...)
}
\arguments{
\item{...}{arguments passed to base function,
plus any of... |
rm(list=ls())
dataReceived<-read.table('/Users/geyi/documents/dataReceived_987by_10i_30fps.txt',sep=',')
dataSent<-read.table('/Users/geyi/documents/dataSent_987by_10i_30fps.txt',sep=',')
##Loop through data received
receivedTime<-vector()
idReceived<-vector()
for(i in 1:ncol(dataReceived)){
tempDataReceived<-strsp... | /routerTrafficCalculations/sendAndReceiveCalc.R | no_license | liujohnson118/routerResearch | R | false | false | 1,210 | r | rm(list=ls())
dataReceived<-read.table('/Users/geyi/documents/dataReceived_987by_10i_30fps.txt',sep=',')
dataSent<-read.table('/Users/geyi/documents/dataSent_987by_10i_30fps.txt',sep=',')
##Loop through data received
receivedTime<-vector()
idReceived<-vector()
for(i in 1:ncol(dataReceived)){
tempDataReceived<-strsp... |
###############################################################################
## openCR
## pch0.R
## 2018-02-26 openCR 1.0.0
###############################################################################
##-----------------------------------------------------------
## return JSSA probability animal n detected at le... | /R/PCH1.R | no_license | MurrayEfford/openCR | R | false | false | 5,027 | r | ###############################################################################
## openCR
## pch0.R
## 2018-02-26 openCR 1.0.0
###############################################################################
##-----------------------------------------------------------
## return JSSA probability animal n detected at le... |
####Regulatory regions around EM genes. First get 1Mb regions around the TSS
####of EM genes and then intersect with brain enhancers
names_of_converted_in_order <- epiGenesDF$Gene_name[-c(121, 188)] #converted refers to liftover from hg38 to hg19
strand_of_converted_in_order <- epiGenesDF$Strand[-c(121, 188)]
em_hg19... | /EM_paper_brain_regulatory_elements.R | no_license | hansenlab/em_paper | R | false | false | 3,065 | r | ####Regulatory regions around EM genes. First get 1Mb regions around the TSS
####of EM genes and then intersect with brain enhancers
names_of_converted_in_order <- epiGenesDF$Gene_name[-c(121, 188)] #converted refers to liftover from hg38 to hg19
strand_of_converted_in_order <- epiGenesDF$Strand[-c(121, 188)]
em_hg19... |
dataAll <- read.csv("household_power_consumption.txt", sep=";",
na.strings="?")
data <- dataAll[dataAll$Date %in% c('1/2/2007', '2/2/2007'),]
data$DateTime <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S")
plot(x = data$DateTime, y = data$Sub_metering_1, type="l", xlab="",
ylab=... | /plot3.R | no_license | VictoriaPolyak/ExData_Plotting1 | R | false | false | 653 | r | dataAll <- read.csv("household_power_consumption.txt", sep=";",
na.strings="?")
data <- dataAll[dataAll$Date %in% c('1/2/2007', '2/2/2007'),]
data$DateTime <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S")
plot(x = data$DateTime, y = data$Sub_metering_1, type="l", xlab="",
ylab=... |
# Pair of functions, the first producing a matrix that can cache its inverse
# the second computes the inverse, or if it has already been done and is the same
# returns the value from the cache
# Produce a matrix that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
inv = NULL
set = function(y) {... | /cachematrix.R | no_license | CautiouslyDigital/ProgrammingAssignment2 | R | false | false | 1,080 | r | # Pair of functions, the first producing a matrix that can cache its inverse
# the second computes the inverse, or if it has already been done and is the same
# returns the value from the cache
# Produce a matrix that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
inv = NULL
set = function(y) {... |
#' ComputeDistinctQuantiles
#' @description CountResponseFractions
#' @param data.control data.frame with colnames \code{response}, \code{signal} - used as lower bound
#' @param data.saturation data.frame with colnames \code{response}, \code{signal} - used as upper bound
#' @param bounds.df result of function \code{Com... | /R/ComputeDistinctQuantiles.R | no_license | stork119/SysBioSigHeterogeneity | R | false | false | 3,658 | r | #' ComputeDistinctQuantiles
#' @description CountResponseFractions
#' @param data.control data.frame with colnames \code{response}, \code{signal} - used as lower bound
#' @param data.saturation data.frame with colnames \code{response}, \code{signal} - used as upper bound
#' @param bounds.df result of function \code{Com... |
#'Generate diet composition data from atlantisom
#'
#'#'@description A wrapper function to create survey diet composition data for model input.
#'Takes the output of \code{om_species}. Wrapper can generate replicates. Saves output as .rds
#'Results for more than one survey are generated with multiple survey config file... | /R/om_diet.R | no_license | r4atlantis/atlantisom | R | false | false | 4,079 | r | #'Generate diet composition data from atlantisom
#'
#'#'@description A wrapper function to create survey diet composition data for model input.
#'Takes the output of \code{om_species}. Wrapper can generate replicates. Saves output as .rds
#'Results for more than one survey are generated with multiple survey config file... |
# This script removes the alleles and the chr from hg38 to hg19 for CAU
# Author: Elyse Geoffroy
library(data.table)
library(stringr)
all_files <- list.files('/home/egeoffroy/LD_matrix/1Mb_of_gene_coords', pattern = 'CAU', full.names=T)
print(head(all_files))
for(file in all_files){
file1 <- fread(file, header = F, ... | /convert19_to_38.R | no_license | egeoffroy/LD_matrix_build | R | false | false | 532 | r | # This script removes the alleles and the chr from hg38 to hg19 for CAU
# Author: Elyse Geoffroy
library(data.table)
library(stringr)
all_files <- list.files('/home/egeoffroy/LD_matrix/1Mb_of_gene_coords', pattern = 'CAU', full.names=T)
print(head(all_files))
for(file in all_files){
file1 <- fread(file, header = F, ... |
library(noise)
### Name: simulateSC
### Title: Simulate single-cell expression levels of two reporters
### Aliases: simulateSC
### ** Examples
# simulation #1
# simulate 500 data sets
n.simu <- 500
# true intrinsic and extrinsic noise
int.true <- 0.7
ext.true <- 0.8
# create matrices to hold estimated intrinsic ... | /data/genthat_extracted_code/noise/examples/simulateSC.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,578 | r | library(noise)
### Name: simulateSC
### Title: Simulate single-cell expression levels of two reporters
### Aliases: simulateSC
### ** Examples
# simulation #1
# simulate 500 data sets
n.simu <- 500
# true intrinsic and extrinsic noise
int.true <- 0.7
ext.true <- 0.8
# create matrices to hold estimated intrinsic ... |
library(dplyr)
library(lfe)
#library(ggplot2)
library(MASS)
library(glmnet)
library(stargazer)
library(boot)
library(sandwich)
## ===============================================================================
## no mobility, all observations
## =========================================================================... | /panel-regression/07c_smooth-models_distlags_mortality.R | no_license | openmodels/coronaclimate | R | false | false | 11,365 | r | library(dplyr)
library(lfe)
#library(ggplot2)
library(MASS)
library(glmnet)
library(stargazer)
library(boot)
library(sandwich)
## ===============================================================================
## no mobility, all observations
## =========================================================================... |
context("main_heatmap")
test_that("can add a main heatmap horizontally",{
test_plot <- main_heatmap(a) %>% add_main_heatmap(b)
expect_iheatmap(test_plot, "two_main_heatmap_horizontal")
})
test_that("can add a main heatmap vertically",{
test_plot <- main_heatmap(a, orientation = "vertical") %>%
... | /tests/testthat/test_main_heatmap.R | no_license | naimmahi/iheatmapr | R | false | false | 1,795 | r | context("main_heatmap")
test_that("can add a main heatmap horizontally",{
test_plot <- main_heatmap(a) %>% add_main_heatmap(b)
expect_iheatmap(test_plot, "two_main_heatmap_horizontal")
})
test_that("can add a main heatmap vertically",{
test_plot <- main_heatmap(a, orientation = "vertical") %>%
... |
library(Cairo)
data1<-read.table("D:\\config\\base_a.txt",header=T)
data2<-read.table("D:\\config\\att1_a.txt",header=T)
data3<-read.table("D:\\config\\att2_a.txt",header=T)
data4<-read.table("D:\\config\\att3_a.txt",header=T)
x=t(data1[1])
y1=t(data1[2])
y2=t(data2[1])
y3=t(data3[1])
y4=t(data4[1])
Cairo... | /实验结果/plot_acc.R | no_license | liqiming-whu/text-classification | R | false | false | 780 | r | library(Cairo)
data1<-read.table("D:\\config\\base_a.txt",header=T)
data2<-read.table("D:\\config\\att1_a.txt",header=T)
data3<-read.table("D:\\config\\att2_a.txt",header=T)
data4<-read.table("D:\\config\\att3_a.txt",header=T)
x=t(data1[1])
y1=t(data1[2])
y2=t(data2[1])
y3=t(data3[1])
y4=t(data4[1])
Cairo... |
library(GLMsData)
### Name: polythene
### Title: Cosmetic company use of polythene
### Aliases: polythene
### Keywords: datasets
### ** Examples
data(polythene)
summary(polythene)
| /data/genthat_extracted_code/GLMsData/examples/polythene.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 187 | r | library(GLMsData)
### Name: polythene
### Title: Cosmetic company use of polythene
### Aliases: polythene
### Keywords: datasets
### ** Examples
data(polythene)
summary(polythene)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extend_21_03_03.R
\name{rpms_forest}
\alias{rpms_forest}
\title{rpms_forest}
\usage{
rpms_forest(
rp_equ,
data,
weights = ~1,
strata = ~1,
clusters = ~1,
e_fn = "survLm",
l_fn = NULL,
bin_size = 5,
f_size = 500,
cores = 1
... | /man/rpms_forest.Rd | no_license | cran/rpms | R | false | true | 1,187 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extend_21_03_03.R
\name{rpms_forest}
\alias{rpms_forest}
\title{rpms_forest}
\usage{
rpms_forest(
rp_equ,
data,
weights = ~1,
strata = ~1,
clusters = ~1,
e_fn = "survLm",
l_fn = NULL,
bin_size = 5,
f_size = 500,
cores = 1
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fixedDifferences.R
\name{fixedDifferences}
\alias{fixedDifferences}
\title{Fixed Differences}
\usage{
fixedDifferences(g, count.indels = TRUE, consec.indels.as.one = TRUE,
bases = c("a", "c", "g", "t", "-"))
}
\arguments{
\item{g}{a \linkS4... | /man/fixedDifferences.Rd | no_license | PAMorin/strataG | R | false | true | 1,068 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fixedDifferences.R
\name{fixedDifferences}
\alias{fixedDifferences}
\title{Fixed Differences}
\usage{
fixedDifferences(g, count.indels = TRUE, consec.indels.as.one = TRUE,
bases = c("a", "c", "g", "t", "-"))
}
\arguments{
\item{g}{a \linkS4... |
# this function takes the base population and returns a new population table
# that has the number of contributions each genotype makes to the gamete pool
# with this implementation we actually currently dont do anything with the
# selection fucntion. However, I can imagine exploring how much of a fitness
# must be ... | /fnx1_M.R | no_license | krogers8474/MEDEA | R | false | false | 6,374 | r | # this function takes the base population and returns a new population table
# that has the number of contributions each genotype makes to the gamete pool
# with this implementation we actually currently dont do anything with the
# selection fucntion. However, I can imagine exploring how much of a fitness
# must be ... |
# Update the tailwind palettes now that the colours have changed on the website
new_default_colour_palette <- c(
'black' = "#000000",
'white' = "#FFFFFF",
'gray-50' = "#F9FAFB",
'gray-100' = "#F3F4F6",
'gray-200' = "#E5E7EB",
'gray-300' = "#D1D5DB",
'gray-400' = "#9CA3AF",
'gray-500' = "#6B7280",
'... | /images/tailwind_palettes.R | permissive | willcanniford/r-notes | R | false | false | 4,560 | r | # Update the tailwind palettes now that the colours have changed on the website
new_default_colour_palette <- c(
'black' = "#000000",
'white' = "#FFFFFF",
'gray-50' = "#F9FAFB",
'gray-100' = "#F3F4F6",
'gray-200' = "#E5E7EB",
'gray-300' = "#D1D5DB",
'gray-400' = "#9CA3AF",
'gray-500' = "#6B7280",
'... |
# Model-Building ----------------------------------------------------------
# loading packages
library(tidyverse)
library(tidymodels)
library(janitor)
# set seed
set.seed(3948)
# loading data
tap_dat <- read.csv("data/tap_dat.csv")
# cleaning data
tap_dat <- read_csv("data/tap_dat.csv") %>%
clean_names() %>%
... | /models.R | no_license | nghidali/Tapdance | R | false | false | 2,540 | r |
# Model-Building ----------------------------------------------------------
# loading packages
library(tidyverse)
library(tidymodels)
library(janitor)
# set seed
set.seed(3948)
# loading data
tap_dat <- read.csv("data/tap_dat.csv")
# cleaning data
tap_dat <- read_csv("data/tap_dat.csv") %>%
clean_names() %>%
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/querys.R
\name{mkpnt}
\alias{mkpnt}
\title{Make a point}
\usage{
mkpnt(x = "Wareham, Dorset", y = 0)
}
\arguments{
\item{x}{If x is a string then the Geocoding is used to find the centre}
\item{y}{If x and y are provided as numbers they are ... | /man/mkpnt.Rd | no_license | dgolicher/giscourse | R | false | true | 795 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/querys.R
\name{mkpnt}
\alias{mkpnt}
\title{Make a point}
\usage{
mkpnt(x = "Wareham, Dorset", y = 0)
}
\arguments{
\item{x}{If x is a string then the Geocoding is used to find the centre}
\item{y}{If x and y are provided as numbers they are ... |
#!/usr/bin/env Rscript
### MA-c-noicu-d2.R
### last edited: 15 Nov 2021
### Ephraim Hanks, Nathan Wikle
#################################################################################
### 1. Preliminaries
#################################################################################
### create directory for out... | /Aug2021/inference/mcmc-setup/MA/MA-c-noicu-d2.R | no_license | bonilab/covid19-reopening-RI-MA-PA | R | false | false | 9,174 | r | #!/usr/bin/env Rscript
### MA-c-noicu-d2.R
### last edited: 15 Nov 2021
### Ephraim Hanks, Nathan Wikle
#################################################################################
### 1. Preliminaries
#################################################################################
### create directory for out... |
# Load libraries
library(ggplot2)
library(tidyverse)
library(mice)
library(VIM)
library(lattice)
library(ROSE)
library(knitr)
library(gridExtra)
# Read the data
data <- read.csv("aug_train.csv") %>%
# Delete enroll_id and city variable
select(-c(enrollee_id, city))
# View the summary statistics
summary(data)
#... | /Codes/Cleaning_Code.R | no_license | VDai1999/Job-Change-of-Data-Scientists | R | false | false | 8,376 | r | # Load libraries
library(ggplot2)
library(tidyverse)
library(mice)
library(VIM)
library(lattice)
library(ROSE)
library(knitr)
library(gridExtra)
# Read the data
data <- read.csv("aug_train.csv") %>%
# Delete enroll_id and city variable
select(-c(enrollee_id, city))
# View the summary statistics
summary(data)
#... |
### Exercise 1 ###
# libraries
library(dplyr)
# We'll be using the mtcars dataset -- adding rowname as a column
vehicle <- add_rownames(mtcars, var='car')
View(mtcars)
######## buggy ######### ----------------------------------------------
# Function to debug:
# Given a number of forward gears and a number of cylin... | /exercise-1/exercise.R | permissive | hayleyyounghubby/m10-apis | R | false | false | 642 | r | ### Exercise 1 ###
# libraries
library(dplyr)
# We'll be using the mtcars dataset -- adding rowname as a column
vehicle <- add_rownames(mtcars, var='car')
View(mtcars)
######## buggy ######### ----------------------------------------------
# Function to debug:
# Given a number of forward gears and a number of cylin... |
flights_sml %>%
group_by(year, month, day) %>%
filter(rank(desc(arr_delay)) < 10) | /cap05/filter18.R | permissive | vcwild/r4ds | R | false | false | 91 | r | flights_sml %>%
group_by(year, month, day) %>%
filter(rank(desc(arr_delay)) < 10) |
#StatRx_W3_F9_t-tests in R
#This video will help you get started calculating t-tests in R.
#You will also get access to unlimited exercises for interpreting t tests.
#You will be using the function t.test()
?t.test()
weight <- read.table("clipboard", header=T)
t.test(weight)
t.test(weight$A, weight$B)
t.test(weight$... | /W3_F9_t-tests_in_R.R | no_license | Finn-L/Edx_Explore_Statistics_With_R | R | false | false | 1,255 | r | #StatRx_W3_F9_t-tests in R
#This video will help you get started calculating t-tests in R.
#You will also get access to unlimited exercises for interpreting t tests.
#You will be using the function t.test()
?t.test()
weight <- read.table("clipboard", header=T)
t.test(weight)
t.test(weight$A, weight$B)
t.test(weight$... |
fm1.uncertDPfill <- function(ccc){
msg <- "Calculated by fm1.uncertDPfill()"
a <- abbrevList(ccc)
PFILL <- getSubList(a$cav, "fill")
pfill <- getConstVal(NA,NA,PFILL)
Tfm1 <- getConstVal(a$cav, "fm1")
Troom <- getConstVal(a$cav, "room")
## Drücke die nicht in Bereich fallen,
## haben die ... | /uncert/fm1.uncertDPfill.R | no_license | wactbprot/r4vl | R | false | false | 1,668 | r | fm1.uncertDPfill <- function(ccc){
msg <- "Calculated by fm1.uncertDPfill()"
a <- abbrevList(ccc)
PFILL <- getSubList(a$cav, "fill")
pfill <- getConstVal(NA,NA,PFILL)
Tfm1 <- getConstVal(a$cav, "fm1")
Troom <- getConstVal(a$cav, "room")
## Drücke die nicht in Bereich fallen,
## haben die ... |
/Unclassified/man_fst.r | no_license | zm-git-dev/scripts | R | false | false | 3,854 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deparse.R
\name{as_label}
\alias{as_label}
\title{Create a default name for an R object}
\usage{
as_label(x)
}
\arguments{
\item{x}{An object.}
}
\description{
\code{as_label()} transforms R objects into a short, human-readable
description. Y... | /man/as_label.Rd | permissive | r-lib/rlang | R | false | true | 1,962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deparse.R
\name{as_label}
\alias{as_label}
\title{Create a default name for an R object}
\usage{
as_label(x)
}
\arguments{
\item{x}{An object.}
}
\description{
\code{as_label()} transforms R objects into a short, human-readable
description. Y... |
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_gcamusa_LA120.offshore_wind_reeds_USA
#'
#' Takes in data on country-level offshore wind energy potential and global offshore wind capital cost assumptions and generates tables containing region-level offshore wind data.
#'
#' @param command... | /R/zchunk_LA120.offshore_wind_reeds_USA.R | permissive | JGCRI/gcamdata | R | false | false | 20,339 | r | # Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_gcamusa_LA120.offshore_wind_reeds_USA
#'
#' Takes in data on country-level offshore wind energy potential and global offshore wind capital cost assumptions and generates tables containing region-level offshore wind data.
#'
#' @param command... |
##########################################
## ---- BUILD Five Point Laplacian ---- ##
##########################################
build.lap <- function(xdim,ydim) {
lap <- matrix(0, xdim, ydim)
lap.mid.x <- ceiling(nrow(lap)/2)
lap.mid.y <- ceiling(ncol(lap)/2)
lap[(lap.mid.x - 1):(lap.mid.x + 1), (lap... | /R/build.lap.r | no_license | cran/imagefx | R | false | false | 400 | r | ##########################################
## ---- BUILD Five Point Laplacian ---- ##
##########################################
build.lap <- function(xdim,ydim) {
lap <- matrix(0, xdim, ydim)
lap.mid.x <- ceiling(nrow(lap)/2)
lap.mid.y <- ceiling(ncol(lap)/2)
lap[(lap.mid.x - 1):(lap.mid.x + 1), (lap... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/fields.R
\docType{data}
\name{fields}
\alias{fields}
\title{Master list of field names and types used to define table formats}
\description{
Master list of field names and types used to define table formats
}
\author{
Carson Sievert
}... | /man/fields.Rd | no_license | sidjai/bbscrapeR | R | false | false | 322 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/fields.R
\docType{data}
\name{fields}
\alias{fields}
\title{Master list of field names and types used to define table formats}
\description{
Master list of field names and types used to define table formats
}
\author{
Carson Sievert
}... |
context("one_of")
test_that("simple text is correct", {
re <- rex(one_of(1:9))
expect_equal(re, regex("[123456789]"))
lapply(1:9, function(x) {
expect_true(grepl(re, x, perl = TRUE), info=x)
})
expect_false(grepl(re, "a", perl = TRUE))
vals <- c("a", "b", "c", 0, 3, 5)
re <- rex(one_of(vals))
e... | /tests/testthat/test-character_class.R | no_license | arturochian/rex | R | false | false | 5,075 | r | context("one_of")
test_that("simple text is correct", {
re <- rex(one_of(1:9))
expect_equal(re, regex("[123456789]"))
lapply(1:9, function(x) {
expect_true(grepl(re, x, perl = TRUE), info=x)
})
expect_false(grepl(re, "a", perl = TRUE))
vals <- c("a", "b", "c", 0, 3, 5)
re <- rex(one_of(vals))
e... |
library(gamsel)
### Name: plot.gamsel
### Title: Plotting Routine 'gamsel' Object
### Aliases: plot.gamsel
### Keywords: regression smooth nonparametric
### ** Examples
set.seed(1211)
data=gendata(n=500,p=12,k.lin=3,k.nonlin=3,deg=8,sigma=0.8)
attach(data)
bases=pseudo.bases(X,degree=10,df=6)
# Gaussian gam
gamsel.... | /data/genthat_extracted_code/gamsel/examples/plot.gamsel.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 402 | r | library(gamsel)
### Name: plot.gamsel
### Title: Plotting Routine 'gamsel' Object
### Aliases: plot.gamsel
### Keywords: regression smooth nonparametric
### ** Examples
set.seed(1211)
data=gendata(n=500,p=12,k.lin=3,k.nonlin=3,deg=8,sigma=0.8)
attach(data)
bases=pseudo.bases(X,degree=10,df=6)
# Gaussian gam
gamsel.... |
\name{wsva}
\alias{wsva}
\title{Weighted Surrogate Variable Analysis}
\description{
Calculate surrogate variables from the singular vectors of the linear model residual space.
}
\usage{
wsva(y, design, n.sv = 1L, weight.by.sd = FALSE, plot = FALSE, ...)
}
\arguments{
\item{y}{numeric matrix giving log-e... | /man/wsva.Rd | no_license | hdeberg/limma | R | false | false | 1,766 | rd | \name{wsva}
\alias{wsva}
\title{Weighted Surrogate Variable Analysis}
\description{
Calculate surrogate variables from the singular vectors of the linear model residual space.
}
\usage{
wsva(y, design, n.sv = 1L, weight.by.sd = FALSE, plot = FALSE, ...)
}
\arguments{
\item{y}{numeric matrix giving log-e... |
source("/Users/Jim/Work/code/bugsim/src/R/common/Library Management.r")
library(CircStats)
lib.loadLibrary("/thesis/common/circular/CircStats Extensions.r")
lib.loadLibrary("/common/Collection Manipulation Library.r")
lib.loadLibrary("/common/summarystats/Summary Statistics Library.r")
lib.loadLibrary("/thesis/com... | /src/main/R/thesis/chapter-3/sim-exp3-TrE.r | no_license | jimbarritt/bugsim | R | false | false | 11,575 | r | source("/Users/Jim/Work/code/bugsim/src/R/common/Library Management.r")
library(CircStats)
lib.loadLibrary("/thesis/common/circular/CircStats Extensions.r")
lib.loadLibrary("/common/Collection Manipulation Library.r")
lib.loadLibrary("/common/summarystats/Summary Statistics Library.r")
lib.loadLibrary("/thesis/com... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 203
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 203
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/toy/mvs2n.sat.qdimacs
c output filename /tmp/dcnf... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/toy/mvs2n.sat/mvs2n.sat.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 590 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 203
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 203
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/toy/mvs2n.sat.qdimacs
c output filename /tmp/dcnf... |
#!/usr/bin/Rscript
# Assess the output from MEGAN
args<-commandArgs(TRUE)
setwd(args[1])
current_directory <- getwd()
filelist <- system(paste("find ", current_directory, " -name '*mod.csv'", sep=""), intern = TRUE)
for ( i in 1:length(filelist)){
DATA<-read.csv(filelist[i], header=FALSE)
names(DATA)<-c("Cluster... | /scripts/analysis/megan_plotter.R | no_license | jimmyodonnell/banzai | R | false | false | 984 | r | #!/usr/bin/Rscript
# Assess the output from MEGAN
args<-commandArgs(TRUE)
setwd(args[1])
current_directory <- getwd()
filelist <- system(paste("find ", current_directory, " -name '*mod.csv'", sep=""), intern = TRUE)
for ( i in 1:length(filelist)){
DATA<-read.csv(filelist[i], header=FALSE)
names(DATA)<-c("Cluster... |
> url <- "https://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/processed.cleveland.data"
> data <- read.csv(url, header=FALSE)
> head(data)
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14
1 63 1 1 145 233 1 2 150 0 2.3 3 0.0 6.0 0
2 67 1 4 160 286 0 2 108 1 1.5 2 3.0 3.0 2
3 67 1... | /LogisticRegrecion.R | no_license | Karaylev96/LogisticRegresionHeartDiseaseR | R | false | false | 8,351 | r | > url <- "https://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/processed.cleveland.data"
> data <- read.csv(url, header=FALSE)
> head(data)
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14
1 63 1 1 145 233 1 2 150 0 2.3 3 0.0 6.0 0
2 67 1 4 160 286 0 2 108 1 1.5 2 3.0 3.0 2
3 67 1... |
fjComm::clear_()
TFfiles="~/Nut_zhuData/seqFiles2/FJ4.5CAP2r_PE/allreads/Adpt_Trimmed_Reads/2_Trim_adaptor_kmer/Trulig147*-147c5Free*"
Nufiles="~/Nut_zhuData/seqFiles2/FJ4.5CAP2r_PE/allreads/Adpt_Trimmed_Reads/2_Trim_adaptor_kmer/Trulig147*-147c5Nu*"
outDir="1_FJ4.5_2gap_c5/"
kmerLen=3L #if gapped, kmerLen becomes the... | /figS2_Nu_inhibit_TF/ETV1_Nu_diss/FLI_cyc5_Nu_free_cmp_kmer.R | no_license | aquaflakes/individual_analyses | R | false | false | 1,853 | r | fjComm::clear_()
TFfiles="~/Nut_zhuData/seqFiles2/FJ4.5CAP2r_PE/allreads/Adpt_Trimmed_Reads/2_Trim_adaptor_kmer/Trulig147*-147c5Free*"
Nufiles="~/Nut_zhuData/seqFiles2/FJ4.5CAP2r_PE/allreads/Adpt_Trimmed_Reads/2_Trim_adaptor_kmer/Trulig147*-147c5Nu*"
outDir="1_FJ4.5_2gap_c5/"
kmerLen=3L #if gapped, kmerLen becomes the... |
### R code from vignette source 'polySegratioMM-overview.Rnw'
###################################################
### code chunk number 1: polySegratioMM-overview.Rnw:64-65
###################################################
library(polySegratioMM)
###################################################
### code chunk n... | /data/genthat_extracted_code/polySegratioMM/vignettes/polySegratioMM-overview.R | no_license | surayaaramli/typeRrh | R | false | false | 6,029 | r | ### R code from vignette source 'polySegratioMM-overview.Rnw'
###################################################
### code chunk number 1: polySegratioMM-overview.Rnw:64-65
###################################################
library(polySegratioMM)
###################################################
### code chunk n... |
% Copyright (c) 2012-2016 Russell V. Lenth %
\name{models}
\alias{models}
\title{Models supported in \pkg{lsmeans}}
\description{
Here we document what model objects may be used with \pkg{lsmeans}, and some special features of some of them. We start with those in the \pkg{st... | /man/models.Rd | no_license | jonathon-love/lsmeans | R | false | false | 20,284 | rd | % Copyright (c) 2012-2016 Russell V. Lenth %
\name{models}
\alias{models}
\title{Models supported in \pkg{lsmeans}}
\description{
Here we document what model objects may be used with \pkg{lsmeans}, and some special features of some of them. We start with those in the \pkg{st... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{ggmapplot}
\alias{ggmapplot}
\title{Don't use this function, use ggmap.}
\usage{
ggmapplot(ggmap, fullpage = FALSE, base_layer, maprange = FALSE,
expand = FALSE, ...)
}
\arguments{
\item{ggmap}{an object of class ggmap (from function get_map)}
\item{fullpage... | /man/ggmapplot.Rd | no_license | mattmoehr/ggmap | R | false | false | 937 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{ggmapplot}
\alias{ggmapplot}
\title{Don't use this function, use ggmap.}
\usage{
ggmapplot(ggmap, fullpage = FALSE, base_layer, maprange = FALSE,
expand = FALSE, ...)
}
\arguments{
\item{ggmap}{an object of class ggmap (from function get_map)}
\item{fullpage... |
#' add function call to the overall legend
#'
#' @param object
#' @param fun.name
#' @param legend.name
#' @param \dots
#' @examples
#' gs <- gsplot() %>%
#' points(x=1:5, y=1:5, legend.name = 'points 1') %>%
#' legend()
#' gs
#'
#' gs <- gsplot() %>%
#' points(x=1:2, y=1:2, col = c("r... | /R/modify_legend.R | permissive | aappling-usgs/gsplot | R | false | false | 7,438 | r |
#' add function call to the overall legend
#'
#' @param object
#' @param fun.name
#' @param legend.name
#' @param \dots
#' @examples
#' gs <- gsplot() %>%
#' points(x=1:5, y=1:5, legend.name = 'points 1') %>%
#' legend()
#' gs
#'
#' gs <- gsplot() %>%
#' points(x=1:2, y=1:2, col = c("r... |
#' Make grid plot of 2013 - 2016 settlement
#'
#' Plot showin settlement of H. ostralegus between
#' 2013 and 2016 overlayed on a) fledglin output,
#' b) conspecific density, c) elevation.
#' @param palette Colour-brewer palette to use.
#'
#' @return ggplot object.
#' @export
#' @import rgdal
#' @import raster
#' @impo... | /R/plot_figS7.R | no_license | LiamDBailey/Baileyetal_2019_JAE | R | false | false | 6,353 | r | #' Make grid plot of 2013 - 2016 settlement
#'
#' Plot showin settlement of H. ostralegus between
#' 2013 and 2016 overlayed on a) fledglin output,
#' b) conspecific density, c) elevation.
#' @param palette Colour-brewer palette to use.
#'
#' @return ggplot object.
#' @export
#' @import rgdal
#' @import raster
#' @impo... |
function(User.ID_list, Employer_list){
df <- as_data_frame(list(User.ID=User.ID_list, Employer=Employer_list))
## Parse the employers
df$Employer <- sapply(df$Employer,
source("~/Github/Austin Pets Alive/07 End of Year 2015/R/parseEmployers.R")$value)
## Parse the chamber data
... | /07 End of Year 2015/R/getEmployers.R | no_license | HunterRatliff1/AustinPetsAlive | R | false | false | 1,024 | r | function(User.ID_list, Employer_list){
df <- as_data_frame(list(User.ID=User.ID_list, Employer=Employer_list))
## Parse the employers
df$Employer <- sapply(df$Employer,
source("~/Github/Austin Pets Alive/07 End of Year 2015/R/parseEmployers.R")$value)
## Parse the chamber data
... |
library(plyr) #ddply
library(dplyr)
library(AUC) #install.packages('AUC')
library(caret)
library(class)
db=read.csv('/media/diskD/EPFL/Fall 2016/DELA/DELA_Project/Classification/RawData/TrainAllFeatures.csv', stringsAsFactors = F)
db$IsLastSubm = (ifelse(db$SubmissionsLeft == 0, 1,0))
db$TotalTimeVideo = db$DurationO... | /Classification/SubmissionClassification/R/ClassificationNeuralNetAggregatedFeature.R | no_license | meryemmhamdi1/DELA_Project | R | false | false | 5,043 | r | library(plyr) #ddply
library(dplyr)
library(AUC) #install.packages('AUC')
library(caret)
library(class)
db=read.csv('/media/diskD/EPFL/Fall 2016/DELA/DELA_Project/Classification/RawData/TrainAllFeatures.csv', stringsAsFactors = F)
db$IsLastSubm = (ifelse(db$SubmissionsLeft == 0, 1,0))
db$TotalTimeVideo = db$DurationO... |
CountNA<-function(df, present){
#example input natable=CountNA(df)
require(tidyverse)
require(purrr)
require(dplyr)
#map_df allows for variable wise operations
out=df%>%
map_df(function(x) sum(is.na(x)))%>%
gather(feature,num_nulls)%>%
filter(num_nulls>0)
#write out the names of delete... | /R/CountNA.R | no_license | AVJdataminer/Squeaky | R | false | false | 416 | r | CountNA<-function(df, present){
#example input natable=CountNA(df)
require(tidyverse)
require(purrr)
require(dplyr)
#map_df allows for variable wise operations
out=df%>%
map_df(function(x) sum(is.na(x)))%>%
gather(feature,num_nulls)%>%
filter(num_nulls>0)
#write out the names of delete... |
#' @export
pull_resid <- function(object, ...){
UseMethod("pull_resid", object)
}
#' @export
#' @rdname pull_resid.lmerMod
#' @method pull_resid default
pull_resid.default <- function(object, ...){
stop(paste("there is no pull_resid() method for objects of class",
paste(class(object), collapse=", ")))... | /fuzzedpackages/HLMdiag/R/pull_resid.R | no_license | akhikolla/testpackages | R | false | false | 4,605 | r | #' @export
pull_resid <- function(object, ...){
UseMethod("pull_resid", object)
}
#' @export
#' @rdname pull_resid.lmerMod
#' @method pull_resid default
pull_resid.default <- function(object, ...){
stop(paste("there is no pull_resid() method for objects of class",
paste(class(object), collapse=", ")))... |
#' A selectizeInput customized for data frames with column labels
#'
#' @param inputId passed to \code{\link[shiny]{selectizeInput}}
#' @param label passed to \code{\link[shiny]{selectizeInput}}
#' @param data \code{data.frame} object from which fields should be populated
#' @param choices a \code{list} of values to se... | /R/selectInput_column.R | permissive | dgkf/shinyDataFilter | R | false | false | 3,335 | r | #' A selectizeInput customized for data frames with column labels
#'
#' @param inputId passed to \code{\link[shiny]{selectizeInput}}
#' @param label passed to \code{\link[shiny]{selectizeInput}}
#' @param data \code{data.frame} object from which fields should be populated
#' @param choices a \code{list} of values to se... |
# create temporary file to store downloaded data file
temporaryfile <- tempfile()
# download data file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
temporaryfile, mode = "wb")
# unzip temporary data file and read in csv file
power.c <- read.csv(u... | /plot3.R | no_license | Eric-Henderson-127/ExData_Plotting1 | R | false | false | 1,736 | r | # create temporary file to store downloaded data file
temporaryfile <- tempfile()
# download data file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
temporaryfile, mode = "wb")
# unzip temporary data file and read in csv file
power.c <- read.csv(u... |
library(xlsx)
library(data.table)
library(dplyr)
files=grep("PagSeguro.*utf8", dir("extratos",full.names = TRUE),value = TRUE)
#files=c(files,"ticke.extrato.12.2015.xlsx")
#Sys.setlocale(category = "LC_ALL", locale = "pt_BR.UTF-8")
col=rep("character",28)
#col[7]="integer"
col[c(8,11)]="double"
file=files[1]
pag=read.... | /pagseguro.R | no_license | marceloosg/limpaextrato | R | false | false | 1,070 | r | library(xlsx)
library(data.table)
library(dplyr)
files=grep("PagSeguro.*utf8", dir("extratos",full.names = TRUE),value = TRUE)
#files=c(files,"ticke.extrato.12.2015.xlsx")
#Sys.setlocale(category = "LC_ALL", locale = "pt_BR.UTF-8")
col=rep("character",28)
#col[7]="integer"
col[c(8,11)]="double"
file=files[1]
pag=read.... |
library(nycflights13)
variable <- c(names(flights))
paste("NA_"+i)
is.na(flights$dep_time)
filter(flights, is.na(dep_time) == TRUE)
filter(flights, month == 7, day %in% c(2,3,4))
filter(flights, arr_delay < 120 & dep_delay < 120)
filter(flights, carrier %in% c("UA","AA","DL"))
view(flights)
arrange(flights, desc(is.n... | /Chapter 2.R | no_license | LuWinter/R-for-Data-Science | R | false | false | 1,656 | r | library(nycflights13)
variable <- c(names(flights))
paste("NA_"+i)
is.na(flights$dep_time)
filter(flights, is.na(dep_time) == TRUE)
filter(flights, month == 7, day %in% c(2,3,4))
filter(flights, arr_delay < 120 & dep_delay < 120)
filter(flights, carrier %in% c("UA","AA","DL"))
view(flights)
arrange(flights, desc(is.n... |
#' Plot effects of linear model
effect_plot = function(mod, dat, feature_names=NULL){
X = get_effects(mod, dat)
if(!missing(feature_names)){
rownames(X) = feature_names
}
X = tidyr::gather(X)
require("ggplot2")
ggplot(X) +
geom_hline(yintercept=0, linetype=4) +
geom_boxplot(aes(x=key, y=value,... | /R/effect-plot.R | no_license | juampamuc/interpretable-ml-book | R | false | false | 1,124 | r |
#' Plot effects of linear model
effect_plot = function(mod, dat, feature_names=NULL){
X = get_effects(mod, dat)
if(!missing(feature_names)){
rownames(X) = feature_names
}
X = tidyr::gather(X)
require("ggplot2")
ggplot(X) +
geom_hline(yintercept=0, linetype=4) +
geom_boxplot(aes(x=key, y=value,... |
.fTreeViewPath <-
"/usr/local/lib64/R/library/CLEAN/doc/"
| /R/CLEAN.Hs-internal.R | no_license | uc-bd2k/CLEAN.Hs | R | false | false | 58 | r | .fTreeViewPath <-
"/usr/local/lib64/R/library/CLEAN/doc/"
|
# data import
# check the path
getwd()
# csv
f1 <- read.csv("Datasets/AW test2.csv", stringsAsFactors = FALSE)
str(f1)
# delim with "," as separator
f2 <- read.delim("Datasets/AW test2.csv",
header = TRUE,
sep = ",",
quote = "\"",
dec = ".",
st... | /Chapter1/10_data_import.R | no_license | achamchourinebook/R_and_ecommerce_data | R | false | false | 784 | r | # data import
# check the path
getwd()
# csv
f1 <- read.csv("Datasets/AW test2.csv", stringsAsFactors = FALSE)
str(f1)
# delim with "," as separator
f2 <- read.delim("Datasets/AW test2.csv",
header = TRUE,
sep = ",",
quote = "\"",
dec = ".",
st... |
library(ape)
testtree <- read.tree("9916_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="9916_0_unrooted.txt") | /codeml_files/newick_trees_processed/9916_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("9916_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="9916_0_unrooted.txt") |
## graph site and sample concordance
library(ggplot2)
site.dat <- read.table('../qc_report/consensus/consensus.site.concord.txt')
sample.dat <- read.table('../qc_report/consensus/consensus.sample.concord.txt')
sample.plt <- ggplot(sample.dat, aes(x=as.numeric(V2))) +
geom_histogram(binwidth=0.0035)... | /scripts/concordance.plot.R | no_license | v-a-s-a/pgrn-seq | R | false | false | 891 | r | ## graph site and sample concordance
library(ggplot2)
site.dat <- read.table('../qc_report/consensus/consensus.site.concord.txt')
sample.dat <- read.table('../qc_report/consensus/consensus.sample.concord.txt')
sample.plt <- ggplot(sample.dat, aes(x=as.numeric(V2))) +
geom_histogram(binwidth=0.0035)... |
\alias{GtkSizeGroup}
\alias{gtkSizeGroup}
\alias{GtkSizeGroupMode}
\name{GtkSizeGroup}
\title{GtkSizeGroup}
\description{Grouping widgets so they request the same size}
\section{Methods and Functions}{
\code{\link{gtkSizeGroupNew}(mode = NULL)}\cr
\code{\link{gtkSizeGroupSetMode}(object, mode)}\cr
\code{\link{gtkSizeGr... | /man/GtkSizeGroup.Rd | no_license | cran/RGtk2.10 | R | false | false | 3,963 | rd | \alias{GtkSizeGroup}
\alias{gtkSizeGroup}
\alias{GtkSizeGroupMode}
\name{GtkSizeGroup}
\title{GtkSizeGroup}
\description{Grouping widgets so they request the same size}
\section{Methods and Functions}{
\code{\link{gtkSizeGroupNew}(mode = NULL)}\cr
\code{\link{gtkSizeGroupSetMode}(object, mode)}\cr
\code{\link{gtkSizeGr... |
# Coursera Course Computing for Data Analysis
# Programming assignment 3
# Author Shan Lu
rm(list=ls())
setwd("/Users/oh_baizhima/Desktop/coursera/Coursera-Computing-for-Data-Analysis/week3/ProgAssignment3-data")
# Part 1
# Plot the 30-day mortality rates for heart attack
outcome <- read.csv("outcome-of-care-measur... | /week3/assignment.R | no_license | Aratinga/Coursera-Data-Analysis | R | false | false | 2,828 | r | # Coursera Course Computing for Data Analysis
# Programming assignment 3
# Author Shan Lu
rm(list=ls())
setwd("/Users/oh_baizhima/Desktop/coursera/Coursera-Computing-for-Data-Analysis/week3/ProgAssignment3-data")
# Part 1
# Plot the 30-day mortality rates for heart attack
outcome <- read.csv("outcome-of-care-measur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{[.vcf}
\alias{[.vcf}
\title{Subsetting method for vcf class}
\usage{
\method{[}{vcf}(obj, p, n)
}
\arguments{
\item{obj}{a vcf obect}
\item{p}{numeric to filter SNPs}
\item{n}{numeric to filter Samples}
}
\value{
a subsetted v... | /man/sub-.vcf.Rd | no_license | funkhou9/editTools | R | false | true | 381 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{[.vcf}
\alias{[.vcf}
\title{Subsetting method for vcf class}
\usage{
\method{[}{vcf}(obj, p, n)
}
\arguments{
\item{obj}{a vcf obect}
\item{p}{numeric to filter SNPs}
\item{n}{numeric to filter Samples}
}
\value{
a subsetted v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/f7Card.R
\name{f7SocialCard}
\alias{f7SocialCard}
\title{Create a Framework7 social card}
\usage{
f7SocialCard(..., author_img = NULL, author = NULL, date = NULL,
footer = NULL)
}
\arguments{
\item{...}{Card content.}
\item{author_img}{Aut... | /man/f7SocialCard.Rd | no_license | irudolf16/shinyF7 | R | false | true | 1,120 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/f7Card.R
\name{f7SocialCard}
\alias{f7SocialCard}
\title{Create a Framework7 social card}
\usage{
f7SocialCard(..., author_img = NULL, author = NULL, date = NULL,
footer = NULL)
}
\arguments{
\item{...}{Card content.}
\item{author_img}{Aut... |
#' @title Download balance of account
#'
#' @description Makes a request to the server, and returns an data.table object with information about available balance if successful.
#'
#' @param token token from Tinkoff account
#' @param live live trading - TRUE or sandbox (paper) trading - FALSE (default)
#' @param verbose... | /R/getBalance.R | no_license | cran/tcsinvest | R | false | false | 1,447 | r | #' @title Download balance of account
#'
#' @description Makes a request to the server, and returns an data.table object with information about available balance if successful.
#'
#' @param token token from Tinkoff account
#' @param live live trading - TRUE or sandbox (paper) trading - FALSE (default)
#' @param verbose... |
date = "20200116"
# 데이터의 상위 폴더를 dir에 지정
dir = "~/GoogleDrive/gastric_cancer_samples/Tables/sample_info.20200116."
# 폴더에 존재하는 하위 폴더(=샘플명) 리스트 불러오기
# (하위 폴더가 없으면 생략)
sample_raw <- list.files(dir)
# 샘플 파일 주소 리스트 만들기(file.path = paste(..., sep = '/'))
sampleFiles <- file.path(dir, sample_raw)
# 파일 주소에 해당하는 txt파일 읽어들이기
... | /writing_DEP_size_table_EOGC.20200116.R | no_license | dahae-lee/gastric_cancer_samples | R | false | false | 1,313 | r | date = "20200116"
# 데이터의 상위 폴더를 dir에 지정
dir = "~/GoogleDrive/gastric_cancer_samples/Tables/sample_info.20200116."
# 폴더에 존재하는 하위 폴더(=샘플명) 리스트 불러오기
# (하위 폴더가 없으면 생략)
sample_raw <- list.files(dir)
# 샘플 파일 주소 리스트 만들기(file.path = paste(..., sep = '/'))
sampleFiles <- file.path(dir, sample_raw)
# 파일 주소에 해당하는 txt파일 읽어들이기
... |
#!/usr/bin/env Rscript
log <- file(snakemake@log[[1]], open="wt")
sink(log)
sink(log, type="message")
library(metagenomeSeq)
source("workflow/scripts/common.R")
method <- snakemake@params$method
input <- snakemake@input[[1]]
output <- snakemake@output[[1]]
normalize <- TRUE
# Read the counts
x <- read.delim(input, r... | /workflow/scripts/metagenomeseq.R | permissive | NBISweden/nbis-meta | R | false | false | 2,243 | r | #!/usr/bin/env Rscript
log <- file(snakemake@log[[1]], open="wt")
sink(log)
sink(log, type="message")
library(metagenomeSeq)
source("workflow/scripts/common.R")
method <- snakemake@params$method
input <- snakemake@input[[1]]
output <- snakemake@output[[1]]
normalize <- TRUE
# Read the counts
x <- read.delim(input, r... |
library(tidyverse)
df <- tibble(
a = rnorm(10),
b = rnorm(10),
c = rnorm(10),
d = rnorm(10)
)
median(df$a)
#> [1] -0.2457625
median(df$b)
#> [1] -0.2873072
median(df$c)
#> [1] -0.05669771
median(df$d)
#> [1] 0.1442633
output <- vector("double", ncol(df)) # 1. output
for (i in seq_along(df)) { # 2.... | /21 Iteration.R | no_license | chenbingshun98/bsdzp | R | false | false | 3,215 | r | library(tidyverse)
df <- tibble(
a = rnorm(10),
b = rnorm(10),
c = rnorm(10),
d = rnorm(10)
)
median(df$a)
#> [1] -0.2457625
median(df$b)
#> [1] -0.2873072
median(df$c)
#> [1] -0.05669771
median(df$d)
#> [1] 0.1442633
output <- vector("double", ncol(df)) # 1. output
for (i in seq_along(df)) { # 2.... |
### R code from vignette source 'ecolMod.Rnw'
###################################################
### code chunk number 1: preliminaries
###################################################
library("ecolMod")
options(prompt = "> ")
options(width = 90)
###################################################
###... | /inst/doc/ecolMod.R | no_license | cran/ecolMod | R | false | false | 32,820 | r | ### R code from vignette source 'ecolMod.Rnw'
###################################################
### code chunk number 1: preliminaries
###################################################
library("ecolMod")
options(prompt = "> ")
options(width = 90)
###################################################
###... |
#' Suitable for regression:
#' This function adds bias to coefficients by multiplying the original
#' coefficient with a random value from a random uniform distribution between
#' (-2 and +2)
#' @param df_original # original dataframe
#' @param y # name of dependent variable
#' @param predictors # name of predictors, f... | /R/blindDataRegression_AddBiasToCoefficients.R | no_license | jclaramunt/blindData_Git | R | false | false | 3,287 | r | #' Suitable for regression:
#' This function adds bias to coefficients by multiplying the original
#' coefficient with a random value from a random uniform distribution between
#' (-2 and +2)
#' @param df_original # original dataframe
#' @param y # name of dependent variable
#' @param predictors # name of predictors, f... |
#this will investigate the Decision Tree classifier to optimize it predictor
#library's need for this investigation
library(caret)
library(rattle)
library(rpart.plot)
library(RColorBrewer)
set.seed(12)
#vary cp values by increasing them
mycontrol1 = rpart.control(minsplit=3, minbucket=1, cp=0.001)
mycontrol2 = rpart... | /Decision Trees.R | no_license | telavathil/MachineLearningPokerHands | R | false | false | 3,114 | r | #this will investigate the Decision Tree classifier to optimize it predictor
#library's need for this investigation
library(caret)
library(rattle)
library(rpart.plot)
library(RColorBrewer)
set.seed(12)
#vary cp values by increasing them
mycontrol1 = rpart.control(minsplit=3, minbucket=1, cp=0.001)
mycontrol2 = rpart... |
## 2019-08-28 git training
########
# daa preprocessing
########
test.dd = read.table(choose.files(),sep=" ",header=F,stringsAsFactors=F)
# test.test = read.table(choose.files(),sep=",",header=F,stringsAsFactors=F,skip=1)
cln = read.table(choose.files(),sep="\t",header=T,stringsAsFactors=F)
colnames(test.dd) = colname... | /auto-mpg data preprocess.R | no_license | NeckShen/Test-again | R | false | false | 949 | r | ## 2019-08-28 git training
########
# daa preprocessing
########
test.dd = read.table(choose.files(),sep=" ",header=F,stringsAsFactors=F)
# test.test = read.table(choose.files(),sep=",",header=F,stringsAsFactors=F,skip=1)
cln = read.table(choose.files(),sep="\t",header=T,stringsAsFactors=F)
colnames(test.dd) = colname... |
library(testthat)
library(ashr.rogue)
test_check("ashr.rogue")
| /tests/testthat.R | permissive | ashther/ashr.rogue | R | false | false | 64 | r | library(testthat)
library(ashr.rogue)
test_check("ashr.rogue")
|
if(!file.exists('./Data.zip') & !file.exists('./Source_Classification_Code.rds') & !file.exists('./summarySCC_PM25.rds')) {
download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip', './Data.zip', method = 'curl')
unzip('./Data.zip')
file.remove('./Data.zip')
}
baltimore <- as_tibb... | /02 Exploratory Data Analysis/Final Project/plot2.R | no_license | GRawhideMart/DataScience | R | false | false | 803 | r | if(!file.exists('./Data.zip') & !file.exists('./Source_Classification_Code.rds') & !file.exists('./summarySCC_PM25.rds')) {
download.file('https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip', './Data.zip', method = 'curl')
unzip('./Data.zip')
file.remove('./Data.zip')
}
baltimore <- as_tibb... |
\name{PistarRCL-class}
\Rdversion{1.1}
\docType{class}
\alias{PistarRCL-class}
\alias{PistarRCL}
\title{Class \code{"PistarRCL"}}
\description{
%% ~~ A concise (1-5 lines) description of what the class is. ~~
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{new("PistarRCL", ...)}... | /man/PistarRCL-class.Rd | no_license | jmedzihorsky/pistar | R | false | false | 1,431 | rd | \name{PistarRCL-class}
\Rdversion{1.1}
\docType{class}
\alias{PistarRCL-class}
\alias{PistarRCL}
\title{Class \code{"PistarRCL"}}
\description{
%% ~~ A concise (1-5 lines) description of what the class is. ~~
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{new("PistarRCL", ...)}... |
# A few basic functions for assessment
#' Maximum value for each row in a matrix
#'
#' @param X A matrix of floats.
#' @param mode A string, the mothod for defining scores for filtering cells:
#' best, second and delta. \code{best}: highest value for each row, similarly
#' for the \code{second}. \code{delta} is the ... | /R/assessment.R | permissive | zorrodong/cardelino | R | false | false | 7,024 | r | # A few basic functions for assessment
#' Maximum value for each row in a matrix
#'
#' @param X A matrix of floats.
#' @param mode A string, the mothod for defining scores for filtering cells:
#' best, second and delta. \code{best}: highest value for each row, similarly
#' for the \code{second}. \code{delta} is the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{qqtab}
\alias{qqtab}
\title{Produce row for a dataframe, LaTeX or Rmarkdown table code for quantiles of results.}
\usage{
qqtab(xx, dig = 2, true = NA, quants = c(0.25, 0.75), type = "Rmd")
}
\arguments{
\item{xx}{vector of v... | /man/qqtab.Rd | no_license | andrew-edwards/sizeSpectra | R | false | true | 1,223 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{qqtab}
\alias{qqtab}
\title{Produce row for a dataframe, LaTeX or Rmarkdown table code for quantiles of results.}
\usage{
qqtab(xx, dig = 2, true = NA, quants = c(0.25, 0.75), type = "Rmd")
}
\arguments{
\item{xx}{vector of v... |
library(plyr)
rm(five1999)
rm(five2000)
rm(five2001)
rm(five2002)
rm(five2003)
rm(five2004)
rm(five2005)
rm(five2006)
rm(five2007)
rm(five2008)
rm(five2009)
rm(five2010)
rm(five2011)
rm(five2012)
rm(five2013)
rm(all.means)
ticker <- "DG"
growth_rate <- .05
#factoring if grew larger then growth_rate for that year and... | /ebitdadataproject/compdatascriptquestion.R | no_license | schnetzlerjoe/ebitdaanalysis | R | false | false | 3,949 | r | library(plyr)
rm(five1999)
rm(five2000)
rm(five2001)
rm(five2002)
rm(five2003)
rm(five2004)
rm(five2005)
rm(five2006)
rm(five2007)
rm(five2008)
rm(five2009)
rm(five2010)
rm(five2011)
rm(five2012)
rm(five2013)
rm(all.means)
ticker <- "DG"
growth_rate <- .05
#factoring if grew larger then growth_rate for that year and... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MVRanges.R
\name{MVRanges}
\alias{MVRanges}
\alias{MVRanges-methods}
\alias{locateVariants}
\alias{getAnnotations}
\alias{predictCoding}
\alias{genes}
\alias{snpCall}
\alias{annotation}
\alias{summarizeVariants}
\alias{genomeCoverage,MVRanges... | /man/MVRanges-methods.Rd | no_license | heoly32/MTseeker | R | false | true | 4,317 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MVRanges.R
\name{MVRanges}
\alias{MVRanges}
\alias{MVRanges-methods}
\alias{locateVariants}
\alias{getAnnotations}
\alias{predictCoding}
\alias{genes}
\alias{snpCall}
\alias{annotation}
\alias{summarizeVariants}
\alias{genomeCoverage,MVRanges... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.