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 |
|---|---|---|---|---|---|---|---|---|---|
geneStru <- function(chr="chr1", start=29765419, end=29793053){
start <- as.numeric(start)
end <- as.numeric(end)
reg.gr <- IRanges::IRanges(start, end)
if (exists("snp.lst")){
}else{
snp.lst <- read.table("./data/snp.RData.lst", head=T, as.is=T, sep="\t")
}
snp.lst.chr <- snp.lst[snp.lst$chr... | /geneStru.R | no_license | jiangchb/SoybeanGDB | R | false | false | 6,140 | r |
geneStru <- function(chr="chr1", start=29765419, end=29793053){
start <- as.numeric(start)
end <- as.numeric(end)
reg.gr <- IRanges::IRanges(start, end)
if (exists("snp.lst")){
}else{
snp.lst <- read.table("./data/snp.RData.lst", head=T, as.is=T, sep="\t")
}
snp.lst.chr <- snp.lst[snp.lst$chr... |
#' Reload a project from scratch.
#'
#' This function will clear the global environment and reload a project
#' from scratch. This is useful when you've updated your data sets or
#' changed your preprocessing scripts.
#'
#' @return No value is returned; this function is called for its side effects.
#'
#' @export
#'
#' ... | /R/reload.project.R | no_license | diegolopezpozueta/ProjectTemplate | R | false | false | 510 | r | #' Reload a project from scratch.
#'
#' This function will clear the global environment and reload a project
#' from scratch. This is useful when you've updated your data sets or
#' changed your preprocessing scripts.
#'
#' @return No value is returned; this function is called for its side effects.
#'
#' @export
#'
#' ... |
cn_states <- 0:6
startCoordOfNonInterruptedSegment = 1
shiftsOfCoverage <- c()
colours = colors()[c(30, 114, 518, 148, 93, 456, 459, 552, 256, 652, 373, 68, 6, 600, 414,30, 114, 518, 148, 93, 456, 459, 552, 256, 652, 373, 68, 6, 600, 414)]
overallResult <- matrix(0, nrow=0, ncol=7)
folder_name <- paste0(opt$ou... | /trios/germlineTrioSolver.R | permissive | Fohlen/ClinCNV | R | false | false | 12,955 | r |
cn_states <- 0:6
startCoordOfNonInterruptedSegment = 1
shiftsOfCoverage <- c()
colours = colors()[c(30, 114, 518, 148, 93, 456, 459, 552, 256, 652, 373, 68, 6, 600, 414,30, 114, 518, 148, 93, 456, 459, 552, 256, 652, 373, 68, 6, 600, 414)]
overallResult <- matrix(0, nrow=0, ncol=7)
folder_name <- paste0(opt$ou... |
testlist <- list(x = c(4.6676841114907e-62, 0))
result <- do.call(diceR:::connectivity_matrix,testlist)
str(result) | /diceR/inst/testfiles/connectivity_matrix/libFuzzer_connectivity_matrix/connectivity_matrix_valgrind_files/1609958646-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 115 | r | testlist <- list(x = c(4.6676841114907e-62, 0))
result <- do.call(diceR:::connectivity_matrix,testlist)
str(result) |
## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, prompt = TRUE, collapse = TRUE)
## ------------------------------------------------------------------------
getwd()
## ---- eval = F-----------------------------------------------------------
## setwd... | /LinearRegression.R | no_license | Smithsonian/R-Beginner-Tutorial | R | false | false | 3,587 | r | ## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, prompt = TRUE, collapse = TRUE)
## ------------------------------------------------------------------------
getwd()
## ---- eval = F-----------------------------------------------------------
## setwd... |
WCData <- read.csv("//svrin000egl01.asia.corp.anz.com/swamyy1$/Desktop/ML/CASE_STUDY/CASE_STUDY/Linear_Regression/Water_Consumption/WatCon1.csv", header = TRUE)
WCData
summary(WCData)
structure(WCData)
#The first key assumption in linear regression is the existence of a linear relationship between y and x.
#To ... | /LM_Water_Consumption/watcon.R | no_license | ypswamy/LinearRegression | R | false | false | 3,172 | r | WCData <- read.csv("//svrin000egl01.asia.corp.anz.com/swamyy1$/Desktop/ML/CASE_STUDY/CASE_STUDY/Linear_Regression/Water_Consumption/WatCon1.csv", header = TRUE)
WCData
summary(WCData)
structure(WCData)
#The first key assumption in linear regression is the existence of a linear relationship between y and x.
#To ... |
library(imager)
### Name: contours
### Title: Return contours of image/pixset
### Aliases: contours
### ** Examples
boats.gs <- grayscale(boats)
ct <- contours(boats.gs,nlevels=3)
plot(boats.gs)
#Add contour lines
purrr::walk(ct,function(v) lines(v$x,v$y,col="red"))
#Contours of a pixel set
px <- boats.gs > .8
plot... | /data/genthat_extracted_code/imager/examples/contours.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 424 | r | library(imager)
### Name: contours
### Title: Return contours of image/pixset
### Aliases: contours
### ** Examples
boats.gs <- grayscale(boats)
ct <- contours(boats.gs,nlevels=3)
plot(boats.gs)
#Add contour lines
purrr::walk(ct,function(v) lines(v$x,v$y,col="red"))
#Contours of a pixel set
px <- boats.gs > .8
plot... |
library(testthat)
library(LazyMatrix)
test_check("LazyMatrix")
| /tests/testthat.R | no_license | MPCary/LazyMatrix | R | false | false | 64 | r | library(testthat)
library(LazyMatrix)
test_check("LazyMatrix")
|
library(caret)
library(dplyr)
library(data.table)
library(ggplot)
# B - Tokenize ------------------------------------------------------------
get_train_ind <- function(lines, split){
inTrain <- createDataPartition(lines, p=split)[[1]]
return(inTrain)
}
get_all_words <- function(lines){
word... | /scripts/3_tokenization.R | no_license | jtelszasz/jhu-data-sci-capstone-project | R | false | false | 389 | r | library(caret)
library(dplyr)
library(data.table)
library(ggplot)
# B - Tokenize ------------------------------------------------------------
get_train_ind <- function(lines, split){
inTrain <- createDataPartition(lines, p=split)[[1]]
return(inTrain)
}
get_all_words <- function(lines){
word... |
\name{rg99_d00}
\alias{rg99_d00}
\docType{data}
\title{U. S. 2000 or 2010 Census Regional Boundary Definitions}
\description{This dataset contains the boundary data for the 4 U. S. 2000 or 2010 Census Regions for use by
the NCI \var{SeerMapper} package.
}
\usage{data(rg99_d00)}
\format{
This dataset contai... | /man/rg99_d00.Rd | no_license | cran/SeerMapper | R | false | false | 5,144 | rd | \name{rg99_d00}
\alias{rg99_d00}
\docType{data}
\title{U. S. 2000 or 2010 Census Regional Boundary Definitions}
\description{This dataset contains the boundary data for the 4 U. S. 2000 or 2010 Census Regions for use by
the NCI \var{SeerMapper} package.
}
\usage{data(rg99_d00)}
\format{
This dataset contai... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{find_file}
\alias{find_file}
\title{Helper function to find a file for a named template}
\usage{
find_file(template, file)
}
\arguments{
\item{template}{A named template folder}
\item{file}{the name of the file to search for wi... | /man/find_file.Rd | no_license | Auburngrads/DODschools | R | false | true | 423 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{find_file}
\alias{find_file}
\title{Helper function to find a file for a named template}
\usage{
find_file(template, file)
}
\arguments{
\item{template}{A named template folder}
\item{file}{the name of the file to search for wi... |
# Build and Reload Package: 'Ctrl + Shift + B'
# Check Package: 'Ctrl + Shift + E'
# Test Package: 'Ctrl + Shift + T'
## 1.3) Function bin_choose()
#' @title bin_choose
#' @description calculates the number of combinations in which k successes can occur in n trials
#' @pa... | /binomial/R/binomial.R | no_license | stat133-sp19/hw-stat133-D1792 | R | false | false | 7,792 | r | # Build and Reload Package: 'Ctrl + Shift + B'
# Check Package: 'Ctrl + Shift + E'
# Test Package: 'Ctrl + Shift + T'
## 1.3) Function bin_choose()
#' @title bin_choose
#' @description calculates the number of combinations in which k successes can occur in n trials
#' @pa... |
/Outros/Microsoft Power BI + R/R - Estatística - Distribuição Normal/R - Distribuição Normal.R | no_license | Jeann-Camara/Cientista-De-Dados | R | false | false | 2,252 | r | ||
library(plyr)
# read in the data; the SCC data is not even required for this plot
# assumption - the data files are in the same directory as this file
NEI <- readRDS("./summarySCC_PM25.rds")
# open a device for outputting the plot
png("./plot1.png", height=480,width=480)
# get the summarised emissions data for all of t... | /plotexample.R | no_license | adensur/exData2 | R | false | false | 1,058 | r | library(plyr)
# read in the data; the SCC data is not even required for this plot
# assumption - the data files are in the same directory as this file
NEI <- readRDS("./summarySCC_PM25.rds")
# open a device for outputting the plot
png("./plot1.png", height=480,width=480)
# get the summarised emissions data for all of t... |
library(sf)
library(tigris)
library(tidycensus)
library(leaflet)
library(Hmisc)
library(psych)
library(stringr)i
library(viridis)
library(tidyverse)
options(tigris_class = "sf")
options(tigris_use_cache = TRUE)
# get all versions
load("acs_.Rdata")
load("fuckak_.Rdata")
# GRAPHICS ====
# gini ... | /graphics.R | no_license | davidelambert/hdi_turnout | R | false | false | 2,484 | r | library(sf)
library(tigris)
library(tidycensus)
library(leaflet)
library(Hmisc)
library(psych)
library(stringr)i
library(viridis)
library(tidyverse)
options(tigris_class = "sf")
options(tigris_use_cache = TRUE)
# get all versions
load("acs_.Rdata")
load("fuckak_.Rdata")
# GRAPHICS ====
# gini ... |
context("ezcor")
test_that("matches cor", {
#make separate apply calls to ensure no bugs
m.r <- apply(M, 1, function(v){
cor(v, pheno.v)
})
m.p <- apply(M, 1, function(v){
cor.test(v, pheno.v)$p.value
})
res1 <- ezcor(M, pheno.v, method="pearson", reorder.rows = FALSE)
expect_equal(res1[,"cor"], ... | /tests/testthat/test-ezcor.R | permissive | jdreyf/ezlimma | R | false | false | 1,072 | r | context("ezcor")
test_that("matches cor", {
#make separate apply calls to ensure no bugs
m.r <- apply(M, 1, function(v){
cor(v, pheno.v)
})
m.p <- apply(M, 1, function(v){
cor.test(v, pheno.v)$p.value
})
res1 <- ezcor(M, pheno.v, method="pearson", reorder.rows = FALSE)
expect_equal(res1[,"cor"], ... |
library(TED)
load(system.file("extdata", "tcga.gbm.example.rdata", package="TED"))
tcga.ted <- run.Ted (ref.dat = t(ref.norm),
X=t(tcga.tumor.pc.NOchrY),
tum.key="tumor",
input.type="GEP",
n.cores=45,
pdf.name="tcga.tumor")
tcga.ebd.res.k4 <- learn.embedding.Kcls (ted.re... | /TED/inst/extdata/example.R | no_license | smm19900210/TED | R | false | false | 411 | r | library(TED)
load(system.file("extdata", "tcga.gbm.example.rdata", package="TED"))
tcga.ted <- run.Ted (ref.dat = t(ref.norm),
X=t(tcga.tumor.pc.NOchrY),
tum.key="tumor",
input.type="GEP",
n.cores=45,
pdf.name="tcga.tumor")
tcga.ebd.res.k4 <- learn.embedding.Kcls (ted.re... |
mc.kernel.indicator = function(r) +(abs(r) <= 1)
#RECT
mc.kernel.R = function(r) {
0.5 * mc.kernel.indicator(r)
}
#TRIANGLE
mc.kernel.T = function(r) {
(1 - abs(r)) * mc.kernel.indicator(r)
}
#QUARTIC
mc.kernel.Q = function(r) {
(15 / 16) * (1 - r^2)^2 * mc.kernel.indicator(r)
}
#EPANECH
mc.kernel.E = f... | /KiselyovLabs/kernelHelp.R | no_license | Dmitriy-kiselyov/Decision-Theory | R | false | false | 483 | r | mc.kernel.indicator = function(r) +(abs(r) <= 1)
#RECT
mc.kernel.R = function(r) {
0.5 * mc.kernel.indicator(r)
}
#TRIANGLE
mc.kernel.T = function(r) {
(1 - abs(r)) * mc.kernel.indicator(r)
}
#QUARTIC
mc.kernel.Q = function(r) {
(15 / 16) * (1 - r^2)^2 * mc.kernel.indicator(r)
}
#EPANECH
mc.kernel.E = f... |
### This script is the central place for analyzing the FC humpback whale
### mark-recapture photoID data for the paper:
## Monnahan C.C., J. Acevedo, A.N. Hendrix, S. Gende, A. Aguayo-Lobo, and
## F. Martinez (in review). Population trends for humpback whales (Megaptera
## novaeangliae) foraging in the Francisco Coloa... | /run_analysis.R | no_license | colemonnahan/fcwhales | R | false | false | 1,149 | r | ### This script is the central place for analyzing the FC humpback whale
### mark-recapture photoID data for the paper:
## Monnahan C.C., J. Acevedo, A.N. Hendrix, S. Gende, A. Aguayo-Lobo, and
## F. Martinez (in review). Population trends for humpback whales (Megaptera
## novaeangliae) foraging in the Francisco Coloa... |
#' National Assembly Secretariat, Congressman information.
#'
#' nasCongressman2 function import detailed data about congressman.
#' You need to know department code and unique code that can be acheived from nasCongressman1.
#' department code is "code_dept" and unique code is "code_numb" from nasCongressman1 function.... | /R/nasCongressman2.R | permissive | lawine90/datagokR | R | false | false | 3,092 | r | #' National Assembly Secretariat, Congressman information.
#'
#' nasCongressman2 function import detailed data about congressman.
#' You need to know department code and unique code that can be acheived from nasCongressman1.
#' department code is "code_dept" and unique code is "code_numb" from nasCongressman1 function.... |
library(nusser)
setwd(paste0(.libPaths()[1],"/nusser/data"))
set.seed(4)
data_this_iter = list()
data_this_iter[["train"]] <- read.csv(file = "yeast6-5-5tra.dat",header = T,sep = ',')
data_this_iter[["test"]] <- read.csv(file = "yeast6-5-5tst.dat",header = T,sep = ',')
data_this_iter[["position_c... | /sample_nusse.R | no_license | sengzian/nus-se-R | R | false | false | 3,539 | r |
library(nusser)
setwd(paste0(.libPaths()[1],"/nusser/data"))
set.seed(4)
data_this_iter = list()
data_this_iter[["train"]] <- read.csv(file = "yeast6-5-5tra.dat",header = T,sep = ',')
data_this_iter[["test"]] <- read.csv(file = "yeast6-5-5tst.dat",header = T,sep = ',')
data_this_iter[["position_c... |
\name{zelig2mprobit}
\alias{zelig2mprobit}
\title{Interface between the Zelig Model "mprobit" and the Pre-existing Function...}
\usage{zelig2mprobit(formula, choiceX, cXnames, ..., data)}
\description{Interface between the Zelig Model "mprobit" and the Pre-existing Function}
\value{a list specifying '.function'}
\argum... | /man/zelig2mprobit.Rd | no_license | zeligdev/ZeligMultinomial | R | false | false | 595 | rd | \name{zelig2mprobit}
\alias{zelig2mprobit}
\title{Interface between the Zelig Model "mprobit" and the Pre-existing Function...}
\usage{zelig2mprobit(formula, choiceX, cXnames, ..., data)}
\description{Interface between the Zelig Model "mprobit" and the Pre-existing Function}
\value{a list specifying '.function'}
\argum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/skUtils.R
\name{logit.weightfun}
\alias{logit.weightfun}
\title{Downweight outliers}
\usage{
logit.weightfun(
x,
mean = mean(x),
s = sd(x),
sdist = 3,
taper = 10,
scale = c("max", "norm"),
min = 0
)
}
\arguments{
\item{x}{A nume... | /man/logit.weightfun.Rd | permissive | Spiritspeak/skMisc | R | false | true | 993 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/skUtils.R
\name{logit.weightfun}
\alias{logit.weightfun}
\title{Downweight outliers}
\usage{
logit.weightfun(
x,
mean = mean(x),
s = sd(x),
sdist = 3,
taper = 10,
scale = c("max", "norm"),
min = 0
)
}
\arguments{
\item{x}{A nume... |
library(sport)
### Name: bbt_run
### Title: BBT rating algorithm
### Aliases: bbt_run
### ** Examples
# Example from Glickman
data <- data.frame( name = c( "A", "B", "C", "D" ),
rank = c( 3, 4, 1, 2 ))
bbt <- bbt_run( rank ~ name, data )
| /data/genthat_extracted_code/sport/examples/bbt_run.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 266 | r | library(sport)
### Name: bbt_run
### Title: BBT rating algorithm
### Aliases: bbt_run
### ** Examples
# Example from Glickman
data <- data.frame( name = c( "A", "B", "C", "D" ),
rank = c( 3, 4, 1, 2 ))
bbt <- bbt_run( rank ~ name, data )
|
dataFile <- "household_power_consumption.txt"
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
globalActivePower <- as.numeric(subSetData$Global_active_power)
png("plot1.png", width=480, height=480)
hist(globalActivePower, ... | /plot1.R | no_license | SalmanBH/ExData_Plotting1 | R | false | false | 408 | r | dataFile <- "household_power_consumption.txt"
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
globalActivePower <- as.numeric(subSetData$Global_active_power)
png("plot1.png", width=480, height=480)
hist(globalActivePower, ... |
#
"
Created on Aug 2017
@author: Wanjun Lin
"
rm(list=ls())
# Create Line Chart
# import data
library(readxl)
a <- read_excel("/Users/tianrachel/Desktop/FC/FC_figures/DST_FC_figures/2cortisol/DST_FC_cortisol_mean.xlsx")
# View(a)
library(ggplot2)
library(plyr)
library(reshape2)
melted <- melt(a, id.vars=c("sub", "g... | /Figures/2015_Figures/DST_FC_cortisol.R | no_license | QinBrainLab/2011_2015_FearConditioning | R | false | false | 3,985 | r | #
"
Created on Aug 2017
@author: Wanjun Lin
"
rm(list=ls())
# Create Line Chart
# import data
library(readxl)
a <- read_excel("/Users/tianrachel/Desktop/FC/FC_figures/DST_FC_figures/2cortisol/DST_FC_cortisol_mean.xlsx")
# View(a)
library(ggplot2)
library(plyr)
library(reshape2)
melted <- melt(a, id.vars=c("sub", "g... |
#https://flowingdata.com/2015/02/18/loading-data-and-basic-formatting-in-r/
#http://vita.had.co.nz/papers/tidy-data.pdf
#http://courses.had.co.nz.s3-website-us-east-1.amazonaws.com/12-rice-bdsi/slides/07-tidy-data.pdf
setwd("D:/Projetos/udacity/Data Science/R")
reddit <- read.csv('reddit.csv')
#reddit <- read.csv('ht... | /Data Science/R/reddit.R | no_license | mayconrpgm/udacity | R | false | false | 1,017 | r | #https://flowingdata.com/2015/02/18/loading-data-and-basic-formatting-in-r/
#http://vita.had.co.nz/papers/tidy-data.pdf
#http://courses.had.co.nz.s3-website-us-east-1.amazonaws.com/12-rice-bdsi/slides/07-tidy-data.pdf
setwd("D:/Projetos/udacity/Data Science/R")
reddit <- read.csv('reddit.csv')
#reddit <- read.csv('ht... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R, R/gen-namespace.R
\name{torch_view_as_real}
\alias{torch_view_as_real}
\title{View_as_real}
\usage{
torch_view_as_real(self)
}
\arguments{
\item{self}{(Tensor) the input tensor.}
}
\descri... | /man/torch_view_as_real.Rd | permissive | mlverse/torch | R | false | true | 944 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R, R/gen-namespace.R
\name{torch_view_as_real}
\alias{torch_view_as_real}
\title{View_as_real}
\usage{
torch_view_as_real(self)
}
\arguments{
\item{self}{(Tensor) the input tensor.}
}
\descri... |
#' @title read_geneset
#' @description
#' Function to read various geneset file formats and returns a list of vectors containing gene names.
#' @include utilities.R
#' @include generics.R
#'
#' Reads various geneset file formats and returns a list of vectors containing gene names.
#'
#' @name read_geneset
#' @param x... | /R/read_geneset.R | no_license | clatworthylab/bowerbird | R | false | false | 1,192 | r | #' @title read_geneset
#' @description
#' Function to read various geneset file formats and returns a list of vectors containing gene names.
#' @include utilities.R
#' @include generics.R
#'
#' Reads various geneset file formats and returns a list of vectors containing gene names.
#'
#' @name read_geneset
#' @param x... |
library(shiny)
predict.decision <- function(act, gpa, rank) {
admission <- read.csv("data/sample_admission_data.csv", stringsAsFactors=FALSE)
fit <- lm(Admission.Decision ~ . -1, admission)
sample <- data.frame(ACT=c(act), GPA=c(gpa), Class.Rank=c(rank))
prediction <- predict(fit, sample)
print... | /server.R | no_license | walkerkq/Data_Product | R | false | false | 1,014 | r | library(shiny)
predict.decision <- function(act, gpa, rank) {
admission <- read.csv("data/sample_admission_data.csv", stringsAsFactors=FALSE)
fit <- lm(Admission.Decision ~ . -1, admission)
sample <- data.frame(ACT=c(act), GPA=c(gpa), Class.Rank=c(rank))
prediction <- predict(fit, sample)
print... |
\name{boot_mbplsda}
\alias{boot_mbplsda}
\title{
bootstraped simulations for multi-block partial least squares discriminant analysis
}
\description{
Function to perform bootstraped simulations for multi-block partial least squares discriminant analysis, in order to get confidence intervals for regression coef... | /man/boot_mbplsda.Rd | no_license | cran/packMBPLSDA | R | false | false | 3,343 | rd | \name{boot_mbplsda}
\alias{boot_mbplsda}
\title{
bootstraped simulations for multi-block partial least squares discriminant analysis
}
\description{
Function to perform bootstraped simulations for multi-block partial least squares discriminant analysis, in order to get confidence intervals for regression coef... |
##############################################################################
## Problem Set 1: Intro to R
## Author: Amelia Bertozzi-Villa
## Description: Most instructions require you to write code. When I ask a
## direct, question please write a brief response in a comment.
##
## Comment ... | /ps1.r | no_license | qisiyc/LIS572-DATA-SCIENCE | R | false | false | 2,409 | r | ##############################################################################
## Problem Set 1: Intro to R
## Author: Amelia Bertozzi-Villa
## Description: Most instructions require you to write code. When I ask a
## direct, question please write a brief response in a comment.
##
## Comment ... |
library(testthat)
library(farsr)
test_that("correct filename", {
expect_that(make_filename(2012), is_identical_to("accident_2012.csv.bz2"))
expect_that(make_filename(2013), is_identical_to("accident_2013.csv.bz2"))
expect_that(make_filename(2014), is_identical_to("accident_2014.csv.bz2"))
})
| /tests/testthat.R | no_license | slava-kohut/R-Building-R-packages | R | false | false | 300 | r | library(testthat)
library(farsr)
test_that("correct filename", {
expect_that(make_filename(2012), is_identical_to("accident_2012.csv.bz2"))
expect_that(make_filename(2013), is_identical_to("accident_2013.csv.bz2"))
expect_that(make_filename(2014), is_identical_to("accident_2014.csv.bz2"))
})
|
#' @title Pseudo inertia of a cluster
#' @description The pseudo inertia of a cluster is calculated from a dissimilarity matrix
#' and not from a data matrix.
#' @param D an object of class "dist" with the dissimilarities between the n observations.
#' The function \code{\link{as.dist}} can be used to transform an o... | /R/inertdiss.R | no_license | AnsJoyce/ClustGeo | R | false | false | 1,443 | r | #' @title Pseudo inertia of a cluster
#' @description The pseudo inertia of a cluster is calculated from a dissimilarity matrix
#' and not from a data matrix.
#' @param D an object of class "dist" with the dissimilarities between the n observations.
#' The function \code{\link{as.dist}} can be used to transform an o... |
##make a matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(solve) m <<- solve
getinverse <- function() m
list(set = set, get = get,
setinverse = setinverse,
getinverse = getinverse)
}
ca... | /cachematrix.R | no_license | zarmeen92/ProgrammingAssignment2 | R | false | false | 559 | r | ##make a matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(solve) m <<- solve
getinverse <- function() m
list(set = set, get = get,
setinverse = setinverse,
getinverse = getinverse)
}
ca... |
library(data.table)
library(RColorBrewer)
library(wordcloud)
library(tidyr)
library(dplyr)
# Load Data ###############################################################################
dat.gram2.businessid.freq <- readRDS("/Users/yanjin1993/GitHub/Personalize-Yelp-Business/output/gram2_businessid_freq.rds")
# select ... | /lib/tm_visualization.R | no_license | yl3394/Personalize-Yelp-Business | R | false | false | 1,575 | r |
library(data.table)
library(RColorBrewer)
library(wordcloud)
library(tidyr)
library(dplyr)
# Load Data ###############################################################################
dat.gram2.businessid.freq <- readRDS("/Users/yanjin1993/GitHub/Personalize-Yelp-Business/output/gram2_businessid_freq.rds")
# select ... |
### This script runs GAMMs to see if there are main effects and interactions
### for sex and longitudinal diagnostic labels for the social cognition tests.
### (Sanity check for Kosha)
###
### Ellyn Butler
### September 22, 2020
# September 8, 2020: Bart says look into documentation on 'by' in mgcv to
# understand why... | /scripts/cognitive/Old/diagSexModels_noimpute.R | no_license | PennBBL/pncLongitudinalPsychosis | R | false | false | 5,075 | r | ### This script runs GAMMs to see if there are main effects and interactions
### for sex and longitudinal diagnostic labels for the social cognition tests.
### (Sanity check for Kosha)
###
### Ellyn Butler
### September 22, 2020
# September 8, 2020: Bart says look into documentation on 'by' in mgcv to
# understand why... |
#' Add useful extension functions
#'
#' These extension functions are written by Liam Healy and made available
#' through the SQLite website (\url{https://www.sqlite.org/contrib}).
#'
#' @section Available extension functions:
#'
#' \describe{
#' \item{Math functions}{acos, acosh, asin, asinh, atan, atan2, atanh, atn2,... | /fuzzedpackages/RSQLite/R/extensions.R | permissive | akhikolla/testpackages | R | false | false | 1,293 | r | #' Add useful extension functions
#'
#' These extension functions are written by Liam Healy and made available
#' through the SQLite website (\url{https://www.sqlite.org/contrib}).
#'
#' @section Available extension functions:
#'
#' \describe{
#' \item{Math functions}{acos, acosh, asin, asinh, atan, atan2, atanh, atn2,... |
local({
# the requested version of renv
version <- "0.13.2"
# the project directory
project <- getwd()
# allow environment variable to control activation
activate <- Sys.getenv("RENV_ACTIVATE_PROJECT")
if (!nzchar(activate)) {
# don't auto-activate when R CMD INSTALL is running
if (nzchar(Sys... | /4-AnalisisExploratorio/Learnr/renv/activate.R | no_license | EAMI91/CreceRitmoSiglo_XXI | R | false | false | 18,321 | r |
local({
# the requested version of renv
version <- "0.13.2"
# the project directory
project <- getwd()
# allow environment variable to control activation
activate <- Sys.getenv("RENV_ACTIVATE_PROJECT")
if (!nzchar(activate)) {
# don't auto-activate when R CMD INSTALL is running
if (nzchar(Sys... |
#######################################################################################################
# suspicious_coordinates.R
# ========================
# 1. Implements Suspicious Coordinates Heuristics
# 2. Push returned coordinates to DMP Hadoop under Cron Job (running once a day)
#
# Author: Piyush Paliwal... | /rHadoop/suspicious_coordinates.R | no_license | paliwal90/Generic-DataScience-R | R | false | false | 7,366 | r | #######################################################################################################
# suspicious_coordinates.R
# ========================
# 1. Implements Suspicious Coordinates Heuristics
# 2. Push returned coordinates to DMP Hadoop under Cron Job (running once a day)
#
# Author: Piyush Paliwal... |
context("u_net")
test_that("u_net accepts only correct inputs.", {
correct_net_h <- 256
correct_net_w <- 256
correct_grayscale <- FALSE
correct_blocks <- 3
correct_classes <- 5
correct_filters <- 12
correct_dropout <- 0.567
correct_batch_normalization <- TRUE
incorrect_net_h <- 111
incorrect_net_w... | /tests/testthat/test-u_net.R | permissive | GarettHeineck/platypus | R | false | false | 3,279 | r | context("u_net")
test_that("u_net accepts only correct inputs.", {
correct_net_h <- 256
correct_net_w <- 256
correct_grayscale <- FALSE
correct_blocks <- 3
correct_classes <- 5
correct_filters <- 12
correct_dropout <- 0.567
correct_batch_normalization <- TRUE
incorrect_net_h <- 111
incorrect_net_w... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glamlasso_internal.R
\name{glamlasso_internal}
\alias{glamlasso_internal}
\alias{mu}
\alias{gdpg}
\alias{getobj}
\title{Internal glamlasso Functions}
\usage{
mu(x, fam)
}
\description{
Internal glamlasso functions.
}
\details{
These functions... | /man/glamlasso_internal.Rd | no_license | adam-lund/glamlasso | R | false | true | 398 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glamlasso_internal.R
\name{glamlasso_internal}
\alias{glamlasso_internal}
\alias{mu}
\alias{gdpg}
\alias{getobj}
\title{Internal glamlasso Functions}
\usage{
mu(x, fam)
}
\description{
Internal glamlasso functions.
}
\details{
These functions... |
knitr::opts_chunk$set(echo = TRUE)
knitr::opts_chunk$set(fig.align = "center")
knitr::opts_chunk$set(warning = FALSE)
knitr::opts_chunk$set(message = FALSE)
# 프로그램 2-1
# 원그래프 그리기
blType = c("A", "B", "B", "A", "A", "O", "A", "AB", "O", "O",
"O", "A", "A", "B", "AB", "A", "O", "B", "A", "B",
"B", "A",... | /pgm/ch2.r | no_license | DataEconomyLab/data_viz | R | false | false | 6,616 | r | knitr::opts_chunk$set(echo = TRUE)
knitr::opts_chunk$set(fig.align = "center")
knitr::opts_chunk$set(warning = FALSE)
knitr::opts_chunk$set(message = FALSE)
# 프로그램 2-1
# 원그래프 그리기
blType = c("A", "B", "B", "A", "A", "O", "A", "AB", "O", "O",
"O", "A", "A", "B", "AB", "A", "O", "B", "A", "B",
"B", "A",... |
suppressPackageStartupMessages({
library("sf")
library("RColorBrewer")
library("mapview")
library("leaflet")
library("plainview")
library("slideview")
library("cubeview")
})
#+ setup, echo=FALSE
knitr::opts_chunk$set(fig.width=8.83, warning=FALSE, message=FALSE, eval=FALSE)
#' # Some notes on using colo... | /1_day/2_viz_I/appelhans-viz_I.R | no_license | giscience-fsu/daad_summerschool | R | false | false | 8,113 | r | suppressPackageStartupMessages({
library("sf")
library("RColorBrewer")
library("mapview")
library("leaflet")
library("plainview")
library("slideview")
library("cubeview")
})
#+ setup, echo=FALSE
knitr::opts_chunk$set(fig.width=8.83, warning=FALSE, message=FALSE, eval=FALSE)
#' # Some notes on using colo... |
library(arules)
library(dplyr)
#Load
df<-airquality
#Summary and stats
str(df)
summary(df)
#Remove missing values
df$Ozone=ifelse(is.na(df$Ozone),mean(df$Ozone,na.rm = TRUE),df$Ozone)
df$Solar.R=ifelse(is.na(df$Solar.R),mean(df$Solar.R,na.rm = TRUE),df$Solar.R)
head(df)
#Outlier Removal
subset(df,df... | /DM_LAB/DataClean.R | no_license | VaibhavRast/7thSemISE | R | false | false | 637 | r | library(arules)
library(dplyr)
#Load
df<-airquality
#Summary and stats
str(df)
summary(df)
#Remove missing values
df$Ozone=ifelse(is.na(df$Ozone),mean(df$Ozone,na.rm = TRUE),df$Ozone)
df$Solar.R=ifelse(is.na(df$Solar.R),mean(df$Solar.R,na.rm = TRUE),df$Solar.R)
head(df)
#Outlier Removal
subset(df,df... |
# To perform this analysis, we needed to construct several new objects.
# For each team:
# 1. a table containing the offensive and defensive binned data
# 2. a table containing the results of gam models
# Those are created with the script src/faceoffs/table-creator-teams.R
# They are saved under the names
# sr... | /src/faceoffs/obsolete/team-comparison-obs.R | no_license | dot-layer/bigdatacup-2021 | R | false | false | 1,761 | r |
# To perform this analysis, we needed to construct several new objects.
# For each team:
# 1. a table containing the offensive and defensive binned data
# 2. a table containing the results of gam models
# Those are created with the script src/faceoffs/table-creator-teams.R
# They are saved under the names
# sr... |
## Matrix inversion is usually a costly computation and there may
## be some benefit to caching the inverse of a matrix rather than
## compute it repeatedly. The following pair of function will cache
## the inverse of a matrix. If the matrix has not changed, its
## previously computed inverse will be retrieved fro... | /cachematrix.R | no_license | AlexSiow/ProgrammingAssignment2 | R | false | false | 1,579 | r | ## Matrix inversion is usually a costly computation and there may
## be some benefit to caching the inverse of a matrix rather than
## compute it repeatedly. The following pair of function will cache
## the inverse of a matrix. If the matrix has not changed, its
## previously computed inverse will be retrieved fro... |
library(leafletR)
# convert data frame
data(quakes)
toGeoJSON(data=quakes, name="quakes", dest=tempdir(), lat.lon=c(1,2))
# convert data frame - minimal call
# storing output file path in variable
data(quakes)
path <- toGeoJSON(data=quakes)
# preserve existing files from overwriting
toGeoJSON(data=quakes, ... | /geojson.R | permissive | fagnersutel/GeoJson | R | false | false | 1,366 | r | library(leafletR)
# convert data frame
data(quakes)
toGeoJSON(data=quakes, name="quakes", dest=tempdir(), lat.lon=c(1,2))
# convert data frame - minimal call
# storing output file path in variable
data(quakes)
path <- toGeoJSON(data=quakes)
# preserve existing files from overwriting
toGeoJSON(data=quakes, ... |
library(APSIM)
### Name: insertTavAmp
### Title: Inserts Tav and Amp into a met object.
### Aliases: insertTavAmp
### ** Examples
data(met)
insertTavAmp(met)
| /data/genthat_extracted_code/APSIM/examples/insertTavAmp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 165 | r | library(APSIM)
### Name: insertTavAmp
### Title: Inserts Tav and Amp into a met object.
### Aliases: insertTavAmp
### ** Examples
data(met)
insertTavAmp(met)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/debiasing_algorithm.R
\name{coupled_cpm_chains_Tblocking}
\alias{coupled_cpm_chains_Tblocking}
\title{Coupled correlated pseudo-marginal chains with blocking}
\usage{
coupled_cpm_chains_Tblocking(single_kernel, coupled_kernel, coupled_init,
... | /man/coupled_cpm_chains_Tblocking.Rd | no_license | particlemontecarlo/unbiased_intractable_targets | R | false | true | 1,653 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/debiasing_algorithm.R
\name{coupled_cpm_chains_Tblocking}
\alias{coupled_cpm_chains_Tblocking}
\title{Coupled correlated pseudo-marginal chains with blocking}
\usage{
coupled_cpm_chains_Tblocking(single_kernel, coupled_kernel, coupled_init,
... |
\name{formatCheckSiteNumber}
\alias{formatCheckSiteNumber}
\title{formatCheckSiteNumber}
\usage{
formatCheckSiteNumber(siteNumber, interactive = TRUE)
}
\arguments{
\item{siteNumber}{string to check}
\item{interactive}{logical Option for interactive mode.
If true, there is user interaction for error handling a... | /man/formatCheckSiteNumber.Rd | permissive | positivepsycho/dataRetrieval | R | false | false | 631 | rd | \name{formatCheckSiteNumber}
\alias{formatCheckSiteNumber}
\title{formatCheckSiteNumber}
\usage{
formatCheckSiteNumber(siteNumber, interactive = TRUE)
}
\arguments{
\item{siteNumber}{string to check}
\item{interactive}{logical Option for interactive mode.
If true, there is user interaction for error handling a... |
#' Helper function to make a task list for computing the outer super learner
#' @keywords internal
make_outer_sl_task_list <- function(Ynames, V){
all_training <- 1:V
out <- sapply(Ynames, function(y){
list(Yname = y, training_folds = 1:V)
}, simplify = FALSE)
names(out) <- NULL
return(o... | /R/task_lists.R | permissive | bdwilliamson/cvma | R | false | false | 3,377 | r | #' Helper function to make a task list for computing the outer super learner
#' @keywords internal
make_outer_sl_task_list <- function(Ynames, V){
all_training <- 1:V
out <- sapply(Ynames, function(y){
list(Yname = y, training_folds = 1:V)
}, simplify = FALSE)
names(out) <- NULL
return(o... |
# -------------------------------------------------------------------------
# Begin Template #
# -------------------------------------------------------------------------
library(shiny)
# -------------------------------------------------------------------------
ui <- fluidPage()
# -------------... | /dashboards/shiny_template.R | no_license | ttedla/data_analysis | R | false | false | 608 | r |
# -------------------------------------------------------------------------
# Begin Template #
# -------------------------------------------------------------------------
library(shiny)
# -------------------------------------------------------------------------
ui <- fluidPage()
# -------------... |
#' create gct file and cls files
#'
#' create gct file and cls file for GSEA according the expression matrix and group information
#'
#' @param prefix The prefix for gct file and cls files.
#' @param exprSet a expression matrix, which columns are sample,rows are HUGO gene symbols, or probeset ID .
#' @param group_list ... | /R/createGSEAinput.R | no_license | xianxiongma/tpkg | R | false | false | 1,421 | r | #' create gct file and cls files
#'
#' create gct file and cls file for GSEA according the expression matrix and group information
#'
#' @param prefix The prefix for gct file and cls files.
#' @param exprSet a expression matrix, which columns are sample,rows are HUGO gene symbols, or probeset ID .
#' @param group_list ... |
# Copyright 2011 Revolution Analytics
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | /pkg/R/streaming.R | no_license | rzilla/rmr2 | R | false | false | 15,564 | r | # Copyright 2011 Revolution Analytics
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... |
# Create figure for the percentile ranks of children according
# percentile rank of the parents
# depict selected rows from the percentile transition matrix
# input the chosen percentile and choose the appropriate
# row from the percentile transition matrix
par(mar=c(1,1,1,1))
par(mfrow=c(2,1),las=1)
# graph child p... | /Analysis/Text-Figure-Percentile-Transitions-Bottom-Top.R | no_license | amanojas/The-Canadian-Geography-of-Intergenerational-Income-Mobility | R | false | false | 2,267 | r | # Create figure for the percentile ranks of children according
# percentile rank of the parents
# depict selected rows from the percentile transition matrix
# input the chosen percentile and choose the appropriate
# row from the percentile transition matrix
par(mar=c(1,1,1,1))
par(mfrow=c(2,1),las=1)
# graph child p... |
#' Get standard paper and image sizes
#'
#' `r lifecycle::badge('superseded')`
#'
#' Use the "paper" parameter (matching name from [paper_sizes]), standard
#' (optionally including series and size) parameter, or width, height and units.
#' May return multiple paper sizes depending on parameters.
#'
#' If margin is prov... | /R/get_paper.R | permissive | elipousson/sfext | R | false | false | 8,102 | r | #' Get standard paper and image sizes
#'
#' `r lifecycle::badge('superseded')`
#'
#' Use the "paper" parameter (matching name from [paper_sizes]), standard
#' (optionally including series and size) parameter, or width, height and units.
#' May return multiple paper sizes depending on parameters.
#'
#' If margin is prov... |
# Gib Hemani
# Create .fam file for epiGPU
residfile <- commandArgs(T)[1]
residdat <- read.table(residfile, header=F)
phen <- residdat[, 6]
# normalise phenotype
# rank transform:
library(GenABEL)
phen <- rntransform(phen)
write.table(phen, file=paste(residfile, "phen", sep="."), row=F, col=F, qu=F)
| /obsolete/v2/setup_epigpu.R | no_license | explodecomputer/eQTL-2D | R | false | false | 308 | r | # Gib Hemani
# Create .fam file for epiGPU
residfile <- commandArgs(T)[1]
residdat <- read.table(residfile, header=F)
phen <- residdat[, 6]
# normalise phenotype
# rank transform:
library(GenABEL)
phen <- rntransform(phen)
write.table(phen, file=paste(residfile, "phen", sep="."), row=F, col=F, qu=F)
|
/run_analysis.R | no_license | bergojr/getcleandata | R | false | false | 4,236 | r | ||
#Gets Team Codes
library(rvest)
# Gets raw HTML file from site
url <- html("http://www.big12sports.com/SportSelect.dbml?SPSID=106580&SPID=13139&DB_OEM_ID=10410&Q_SEASON=2014")
# Pulling the PBP data out
selector_name <- "#schedule-table .media a:nth-child(5)"
Codes <- html_nodes(url, selector_name) %>%
html_attr("h... | /PBP_URLget.R | no_license | nugget1224/webscraper | R | false | false | 563 | r | #Gets Team Codes
library(rvest)
# Gets raw HTML file from site
url <- html("http://www.big12sports.com/SportSelect.dbml?SPSID=106580&SPID=13139&DB_OEM_ID=10410&Q_SEASON=2014")
# Pulling the PBP data out
selector_name <- "#schedule-table .media a:nth-child(5)"
Codes <- html_nodes(url, selector_name) %>%
html_attr("h... |
makeCacheMatrix <- function(x = matrix()) {
## @x: a square invertible matrix
## return: a list containing functions to
## 1. set the matrix
## 2. get the matrix
## 3. set the inverse
## 4. get the inverse
## ... | /cachematrix.R | no_license | sanmiguel-javiere/ProgrammingAssignment2 | R | false | false | 1,560 | r | makeCacheMatrix <- function(x = matrix()) {
## @x: a square invertible matrix
## return: a list containing functions to
## 1. set the matrix
## 2. get the matrix
## 3. set the inverse
## 4. get the inverse
## ... |
#' Placebo test: leave one out.
#'
#' This function executes a leave one out falsification exercise on the effect of x on y.
#' Specifically, observations can be seen as groups by `out`. The total sample will be removed one group
#' at a time, and then the main analysis is re-examined.
#' This exercise tests if the mai... | /gssquery.Rcheck/00_pkg_src/gssquery/R/PlaceboLOU.R | no_license | Jiao-Lai/R-Package---Two-Way-Fixed-Effect-Model | R | false | false | 1,876 | r | #' Placebo test: leave one out.
#'
#' This function executes a leave one out falsification exercise on the effect of x on y.
#' Specifically, observations can be seen as groups by `out`. The total sample will be removed one group
#' at a time, and then the main analysis is re-examined.
#' This exercise tests if the mai... |
\name{pRP}
\alias{pRP}
\title{Parallel Rank Product}
\description{
Parallel rank product function helps identifying differentially
regulated genes in replicated microarray experiments.
}
\usage{
pRP(data, cl, num.perm, logged = TRUE, na.rm = FALSE, gene.names = NULL,
plot = FALSE, rand = NULL, sum = FALS... | /man/pRP.Rd | no_license | cran/sprint | R | false | false | 2,092 | rd | \name{pRP}
\alias{pRP}
\title{Parallel Rank Product}
\description{
Parallel rank product function helps identifying differentially
regulated genes in replicated microarray experiments.
}
\usage{
pRP(data, cl, num.perm, logged = TRUE, na.rm = FALSE, gene.names = NULL,
plot = FALSE, rand = NULL, sum = FALS... |
.peak.calling.module <- function(READS_COUNT,SAMPLE_ID,PARAMETERS){
# check points comparison
if (length(SAMPLE_ID$ip)>1) {IP=rowSums(READS_COUNT[,SAMPLE_ID$ip])} else {IP=READS_COUNT[,SAMPLE_ID$ip]}
if (length(SAMPLE_ID$input)>1) {INPUT=rowSums(READS_COUNT[,SAMPLE_ID$input])} else {INPUT=READS_COUNT[,SAMPLE_ID$input]... | /R/peak.calling.module.R | no_license | ZW-xjtlu/exomePeak | R | false | false | 1,463 | r | .peak.calling.module <- function(READS_COUNT,SAMPLE_ID,PARAMETERS){
# check points comparison
if (length(SAMPLE_ID$ip)>1) {IP=rowSums(READS_COUNT[,SAMPLE_ID$ip])} else {IP=READS_COUNT[,SAMPLE_ID$ip]}
if (length(SAMPLE_ID$input)>1) {INPUT=rowSums(READS_COUNT[,SAMPLE_ID$input])} else {INPUT=READS_COUNT[,SAMPLE_ID$input]... |
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
if(!file.exists("emissions.zip")) {
download.file(url, "emissions.zip")
}
if(!file.exists("summarySCC_PM25.rds")) {
unzip("emissions.zip")
}
library(plyr)
library(ggplot2)
## This first line will likely take a few seconds. B... | /plot5.R | no_license | frankminjarez/ExploratoryDataAnalysisProject2 | R | false | false | 1,058 | r | url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
if(!file.exists("emissions.zip")) {
download.file(url, "emissions.zip")
}
if(!file.exists("summarySCC_PM25.rds")) {
unzip("emissions.zip")
}
library(plyr)
library(ggplot2)
## This first line will likely take a few seconds. B... |
# read and clean data
myData <- read.csv("dataScience.csv")
myData$num <- as.character(myData$num)
myData$num <- as.numeric(gsub(',','',myData$num))
# get geographical coordinates from zipcode
library(zipcode)
data(zipcode)
myData = merge(myData, zipcode, by.x='state', by.y='state')
myData = myData[!duplicated(myData$... | /Independent Project/myPlot_map.R | no_license | yhalcyon/theDataIncubator | R | false | false | 784 | r | # read and clean data
myData <- read.csv("dataScience.csv")
myData$num <- as.character(myData$num)
myData$num <- as.numeric(gsub(',','',myData$num))
# get geographical coordinates from zipcode
library(zipcode)
data(zipcode)
myData = merge(myData, zipcode, by.x='state', by.y='state')
myData = myData[!duplicated(myData$... |
#' Function joins two character vectors of words
#'
#' @param outer_df The outer data frame of words
#' @param inner_df The inner data frame of words
#' @param key_name The column name to use as the common key between
#' \code{outer_v} and \code{inner_v}
#'
#' @importFrom data.table as.data.table
#' @importFrom data.t... | /R/join_words.R | permissive | deandevl/RtextminerPkg | R | false | false | 791 | r | #' Function joins two character vectors of words
#'
#' @param outer_df The outer data frame of words
#' @param inner_df The inner data frame of words
#' @param key_name The column name to use as the common key between
#' \code{outer_v} and \code{inner_v}
#'
#' @importFrom data.table as.data.table
#' @importFrom data.t... |
plot4 <- function()
{
## Assume the data file "household_power_consumption.txt" is under the
## current working directory
dataFile <- "./household_power_consumption.txt"
data <- read.table(dataFile, sep=";", header=TRUE)
## Get data only with the dates 2007-02-01 and 2007-02-02.
data <- data... | /plot4.R | no_license | leidingDS/ExData_Plotting1 | R | false | false | 2,218 | r | plot4 <- function()
{
## Assume the data file "household_power_consumption.txt" is under the
## current working directory
dataFile <- "./household_power_consumption.txt"
data <- read.table(dataFile, sep=";", header=TRUE)
## Get data only with the dates 2007-02-01 and 2007-02-02.
data <- data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attributeCategoryApi.r
\name{attributeCategory$createSecurityEntry}
\alias{attributeCategory$createSecurityEntry}
\title{Create a security entry owned by the attribute category.}
\arguments{
\item{webId}{The ID of the attribute category where... | /man/attributeCategory-cash-createSecurityEntry.Rd | permissive | frbl/PI-Web-API-Client-R | R | false | true | 1,088 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attributeCategoryApi.r
\name{attributeCategory$createSecurityEntry}
\alias{attributeCategory$createSecurityEntry}
\title{Create a security entry owned by the attribute category.}
\arguments{
\item{webId}{The ID of the attribute category where... |
##The function that creates a matrix consists of functions that
##sets values to the cache matrix
##gets values of the cache matrix
##sets the inverse matrix
##gets the inverse matrix
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function()x
setmatrix<-f... | /cachematrix.R | no_license | Nielsmans/ProgrammingAssignment2 | R | false | false | 747 | r | ##The function that creates a matrix consists of functions that
##sets values to the cache matrix
##gets values of the cache matrix
##sets the inverse matrix
##gets the inverse matrix
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function()x
setmatrix<-f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AbandonedCheckout.R
\name{AbandonedCheckout}
\alias{AbandonedCheckout}
\alias{getAbandonedCheckouts}
\alias{getAbandonedCheckoutsCount}
\title{AbandonedCheckout Functions}
\usage{
getAbandonedCheckouts(...)
getAbandonedCheckoutsCount(...)
}
... | /man/AbandonedCheckout.Rd | no_license | charliebone/shopifyr | R | false | true | 639 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AbandonedCheckout.R
\name{AbandonedCheckout}
\alias{AbandonedCheckout}
\alias{getAbandonedCheckouts}
\alias{getAbandonedCheckoutsCount}
\title{AbandonedCheckout Functions}
\usage{
getAbandonedCheckouts(...)
getAbandonedCheckoutsCount(...)
}
... |
aggregatr <- function(df) {
nudf <- df %>%
group_by(origin_area, dest_area) %>%
summarise(n = sum(n1)) %>%
arrange(desc(n))
}
county_pdx_inflow_0809 <- read_csv("Raw Data/migration_data/county_pdx_inflow_0809.csv")
county_pdx_inflow_0910 <- read_csv("Raw Data/migration_data/county_pdx_inflow_0910... | /Data/Migration_pdx_county_cleaning.R | no_license | ds-civic-data/sd-pdx-sea | R | false | false | 2,737 | r |
aggregatr <- function(df) {
nudf <- df %>%
group_by(origin_area, dest_area) %>%
summarise(n = sum(n1)) %>%
arrange(desc(n))
}
county_pdx_inflow_0809 <- read_csv("Raw Data/migration_data/county_pdx_inflow_0809.csv")
county_pdx_inflow_0910 <- read_csv("Raw Data/migration_data/county_pdx_inflow_0910... |
f_ui_assay = function(input){
verticalLayout(
p("Q12. What's the individual sample mass (g)?"),
numericInput(inputId = "m_sp_vs", label = NULL, value = 25, min = 0),
p("Q13. Which detection method would you use?"),
radioButtons(inputId = "method_det_vs",
label = NULL,
... | /R/Sampling_shiny_assay.R | no_license | gareyes3/ILSI_remote_repo | R | false | false | 469 | r | f_ui_assay = function(input){
verticalLayout(
p("Q12. What's the individual sample mass (g)?"),
numericInput(inputId = "m_sp_vs", label = NULL, value = 25, min = 0),
p("Q13. Which detection method would you use?"),
radioButtons(inputId = "method_det_vs",
label = NULL,
... |
##############################################################
### Copyright (c) Richard Creamer 2019 - All Rights Reserved
### Inquiries: email 2to32minus1@gmail.com
##############################################################
### Globals
fontScale = 1.2 # Global font size variable
lf = 1.2 # Enlarge f... | /PlotsAndAssocCode/Plot51/Plot51.R | no_license | 2to32minus1/LeastSquaresIntroToML | R | false | false | 12,795 | r | ##############################################################
### Copyright (c) Richard Creamer 2019 - All Rights Reserved
### Inquiries: email 2to32minus1@gmail.com
##############################################################
### Globals
fontScale = 1.2 # Global font size variable
lf = 1.2 # Enlarge f... |
### -----------------------------------------------------------------------------------------------###
## Created on: 10-08-17
## Created by: Lindsay Hahn
## Last saved: 10-08-17
## Saved by: Lindsay Hahn
## Description: Using R for Regression
### ---------------------------------------------------------------------... | /Regression/Regression_byLindsay.R | no_license | AccidentalNinja/MSU_R-Group | R | false | false | 8,478 | r |
### -----------------------------------------------------------------------------------------------###
## Created on: 10-08-17
## Created by: Lindsay Hahn
## Last saved: 10-08-17
## Saved by: Lindsay Hahn
## Description: Using R for Regression
### ---------------------------------------------------------------------... |
### Sim output summaries
rm(list=ls())
library(scales)
library(lme4)
source("helpers.R")
source("gmse_apply_helpers.R")
### nullModel-YTB2
###
### This sim set varies the YTB value (yield value) from 0.2 to 0.8, with manager_budget set as 1000 (constant).
outdir = "sims/nullModel-YTB20/out/"
outfolders = list.files(... | /results/summarise_output.R | no_license | jejoenje/gmse_vary | R | false | false | 3,529 | r | ### Sim output summaries
rm(list=ls())
library(scales)
library(lme4)
source("helpers.R")
source("gmse_apply_helpers.R")
### nullModel-YTB2
###
### This sim set varies the YTB value (yield value) from 0.2 to 0.8, with manager_budget set as 1000 (constant).
outdir = "sims/nullModel-YTB20/out/"
outfolders = list.files(... |
#' Reference and Example Data Sets
#'
#' @name data
#'
#' @description These are the reference and example data used in the \code{gulf.data} package.
#'
#' Survey fishing vessel table:
#' \describe{
#' \item{name}{Survey vessel name.}
#' \item{vessel.length}{Survey vessel length.}
#' \item{vessel.weight}{Vesse... | /R/data.R | no_license | TobieSurette/gulf.data | R | false | false | 2,791 | r | #' Reference and Example Data Sets
#'
#' @name data
#'
#' @description These are the reference and example data used in the \code{gulf.data} package.
#'
#' Survey fishing vessel table:
#' \describe{
#' \item{name}{Survey vessel name.}
#' \item{vessel.length}{Survey vessel length.}
#' \item{vessel.weight}{Vesse... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cognitoidentityprovider_operations.R
\name{associate_software_token}
\alias{associate_software_token}
\title{Returns a unique generated shared secret key code for the user account}
\usage{
associate_software_token(AccessToken = NULL, Ses... | /service/paws.cognitoidentityprovider/man/associate_software_token.Rd | permissive | CR-Mercado/paws | R | false | true | 848 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cognitoidentityprovider_operations.R
\name{associate_software_token}
\alias{associate_software_token}
\title{Returns a unique generated shared secret key code for the user account}
\usage{
associate_software_token(AccessToken = NULL, Ses... |
notbest <- function(state, outcome) {
source("extracthospital.R")
myRate.df <- get('Rate.df',envir=.GlobalEnv)
if (is.null(myRate.df))
myRate.df <- extracthospital(state, outcome)
MyMin <- max(myRate.df[,1],na.rm=TRUE)
myRate.df[match(MyMin,myRate.df[,1]),2]
... | /notbest.R | no_license | simboonhwa/ProgrammingAssignment3 | R | false | false | 324 | r | notbest <- function(state, outcome) {
source("extracthospital.R")
myRate.df <- get('Rate.df',envir=.GlobalEnv)
if (is.null(myRate.df))
myRate.df <- extracthospital(state, outcome)
MyMin <- max(myRate.df[,1],na.rm=TRUE)
myRate.df[match(MyMin,myRate.df[,1]),2]
... |
waters <- read.table("./Eaux2018 FM.txt", header=TRUE, sep="\t")
data = na.omit(waters[sapply(waters, is.numeric)])
library(ade4)
set.seed(3)
classi = kmeans(data, 5)
values = sapply(2:10, function(k){
curr = kmeans(data, k)
curr$tot.withinss/curr$totss*100
})
plot(2:10,values, type="b", xlab="Nombre de cluster... | /kmeans.R | no_license | SolCat/Water-Analysis | R | false | false | 1,040 | r | waters <- read.table("./Eaux2018 FM.txt", header=TRUE, sep="\t")
data = na.omit(waters[sapply(waters, is.numeric)])
library(ade4)
set.seed(3)
classi = kmeans(data, 5)
values = sapply(2:10, function(k){
curr = kmeans(data, k)
curr$tot.withinss/curr$totss*100
})
plot(2:10,values, type="b", xlab="Nombre de cluster... |
# This is the same as plot1.R
smallData <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", nrows=100)
colClasses <- sapply(smallData, class)
data <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", colClasses=colClasses)
# This is the same as plot1.R
data <- data[data$Date == "... | /plot2.R | no_license | XCMer/ExData_Plotting1 | R | false | false | 1,131 | r | # This is the same as plot1.R
smallData <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", nrows=100)
colClasses <- sapply(smallData, class)
data <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", colClasses=colClasses)
# This is the same as plot1.R
data <- data[data$Date == "... |
### Create PNG File for Plot 3
## Read data
x <- read.table("household_power_consumption.txt",header = TRUE,sep=";",na.strings = "?",colClasses=c("factor","factor",rep("numeric",7)))
## Merge Date and Time Column to Timestamp
x$Timestamp <- strptime(paste(x$Date,x$Time), "%d/%m/%Y %H:%M:%S")
## Subset Data to 200... | /plot4.R | no_license | supaMUC/ExData_Plotting1 | R | false | false | 1,282 | r | ### Create PNG File for Plot 3
## Read data
x <- read.table("household_power_consumption.txt",header = TRUE,sep=";",na.strings = "?",colClasses=c("factor","factor",rep("numeric",7)))
## Merge Date and Time Column to Timestamp
x$Timestamp <- strptime(paste(x$Date,x$Time), "%d/%m/%Y %H:%M:%S")
## Subset Data to 200... |
############################################
## ##
## Investing by numbers ##
## a quantitative trading strategy by ##
## Mathieu Bouville, PhD ##
## <mathieu.bouville@gmail.com> ##
## ##
## ... | /plotting.r | no_license | m-bouville/investing-by-numbers | R | false | false | 89,879 | r |
############################################
## ##
## Investing by numbers ##
## a quantitative trading strategy by ##
## Mathieu Bouville, PhD ##
## <mathieu.bouville@gmail.com> ##
## ##
## ... |
library('irr')
dq1 <- read.csv("/Users/sarahwagner/Documents/RoboticsLab/data_analysis/short_answer/DQ1.csv")
dq2 <- read.csv("/Users/sarahwagner/Documents/RoboticsLab/data_analysis/short_answer/DQ2.csv")
dq3 <- read.csv("/Users/sarahwagner/Documents/RoboticsLab/data_analysis/short_answer/DQ3.csv")
dq4 <- read.csv("/U... | /r_scripts/anthro_analysis.R | no_license | scyasuda/cursing | R | false | false | 3,064 | r | library('irr')
dq1 <- read.csv("/Users/sarahwagner/Documents/RoboticsLab/data_analysis/short_answer/DQ1.csv")
dq2 <- read.csv("/Users/sarahwagner/Documents/RoboticsLab/data_analysis/short_answer/DQ2.csv")
dq3 <- read.csv("/Users/sarahwagner/Documents/RoboticsLab/data_analysis/short_answer/DQ3.csv")
dq4 <- read.csv("/U... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408072355e-241, 1.97274569258757e-154, 5.49464572566663e+109, 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(CNull:::communities_individual_based_sampling_beta... | /CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615838023-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 363 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408072355e-241, 1.97274569258757e-154, 5.49464572566663e+109, 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(CNull:::communities_individual_based_sampling_beta... |
# Simple interface for training an xgboost model.
# Its documentation is combined with xgb.train.
#
#' @rdname xgb.train
#' @export
xgboost <- function(data = NULL, label = NULL, missing = NA, weight = NULL,
params = list(), nrounds,
verbose = 1, print_every_n = 1L,
... | /R-package/R/xgboost.R | permissive | zoucuomiao/xgboost | R | false | false | 3,429 | r | # Simple interface for training an xgboost model.
# Its documentation is combined with xgb.train.
#
#' @rdname xgb.train
#' @export
xgboost <- function(data = NULL, label = NULL, missing = NA, weight = NULL,
params = list(), nrounds,
verbose = 1, print_every_n = 1L,
... |
Data$price = Data$InvoiceRevenue/Data$InvoiceQuantity
summary(Data)
#Transport
library('lfe')
library('data.table')
library('tidyverse')
Data_transport$size = 0
Data_transport = Data_transport[,-21]
transport = aggregate(Data_transport$InvoiceRevenue, by = list(Data_transport$CustomerAccountName), FUN = sum)
... | /Pricing Case Competition Code.R | no_license | Huiwen-ge/Pricing | R | false | false | 6,691 | r | Data$price = Data$InvoiceRevenue/Data$InvoiceQuantity
summary(Data)
#Transport
library('lfe')
library('data.table')
library('tidyverse')
Data_transport$size = 0
Data_transport = Data_transport[,-21]
transport = aggregate(Data_transport$InvoiceRevenue, by = list(Data_transport$CustomerAccountName), FUN = sum)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.r
\name{read_gwas}
\alias{read_gwas}
\title{Read a GWAS results file into a data frame.}
\usage{
read_gwas(input, missing = c("NA", "N/A", "null", "."),
chromosome_style = "ucsc", preprocess = NULL, verbose = TRUE)
}
\arguments{
\item{... | /man/read_gwas.Rd | no_license | quanrd/gwasio | R | false | true | 2,689 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.r
\name{read_gwas}
\alias{read_gwas}
\title{Read a GWAS results file into a data frame.}
\usage{
read_gwas(input, missing = c("NA", "N/A", "null", "."),
chromosome_style = "ucsc", preprocess = NULL, verbose = TRUE)
}
\arguments{
\item{... |
\name{rHealthDataGov-package}
\alias{rHealthDataGov-package}
\alias{rHealthDataGov}
\docType{package}
\title{
Retrieve data sets from the HealthData.gov data API
}
\description{
An R interface for the HealthData.gov data API. For each data resource, you can filter results (server-side) to select subsets of data.
}
\de... | /man/rHealthDataGov-package.Rd | no_license | daktari44/rHealthDataGov | R | false | false | 1,218 | rd | \name{rHealthDataGov-package}
\alias{rHealthDataGov-package}
\alias{rHealthDataGov}
\docType{package}
\title{
Retrieve data sets from the HealthData.gov data API
}
\description{
An R interface for the HealthData.gov data API. For each data resource, you can filter results (server-side) to select subsets of data.
}
\de... |
## Load Packages ----
library(shiny)
library(simrel)
## Some Functions ----
evl <- function(x) {
out <- lapply(strsplit(unlist(strsplit(x, ";")), ","), as.numeric)
if (length(out) == 1) out <- out[[1]]
return(out)
}
## Sidebar ----
sidebar <- sidebarPanel(
fluidRow(
column(12, actionButton('simulate', lab... | /R/TestSimrel/app.R | no_license | guhjy/simrel | R | false | false | 4,342 | r | ## Load Packages ----
library(shiny)
library(simrel)
## Some Functions ----
evl <- function(x) {
out <- lapply(strsplit(unlist(strsplit(x, ";")), ","), as.numeric)
if (length(out) == 1) out <- out[[1]]
return(out)
}
## Sidebar ----
sidebar <- sidebarPanel(
fluidRow(
column(12, actionButton('simulate', lab... |
#-------------------------------------------------------------------------------
# tcplPlotFits: Plot fits based on mc4/5 and mc4_agg
#-------------------------------------------------------------------------------
#' @title Plot summary fits based on fit and dose-response data
#'
#' @description
#' \code{tcpl... | /tcpl/R/tcplPlotFits.R | no_license | ingted/R-Examples | R | false | false | 4,504 | r | #-------------------------------------------------------------------------------
# tcplPlotFits: Plot fits based on mc4/5 and mc4_agg
#-------------------------------------------------------------------------------
#' @title Plot summary fits based on fit and dose-response data
#'
#' @description
#' \code{tcpl... |
library(vines)
### Name: vineFit
### Title: Vine Inference
### Aliases: vineFit
### ** Examples
data <- matrix(runif(5 * 100), ncol = 5, nrow = 100)
colnames(data) <- c("A", "B", "C", "D", "E")
selectCopula <- function (vine, j, i, x, y) {
data <- cbind(x, y)
fit <- fitCopula(normalCopula(), data, method =... | /data/genthat_extracted_code/vines/examples/vineFit.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 499 | r | library(vines)
### Name: vineFit
### Title: Vine Inference
### Aliases: vineFit
### ** Examples
data <- matrix(runif(5 * 100), ncol = 5, nrow = 100)
colnames(data) <- c("A", "B", "C", "D", "E")
selectCopula <- function (vine, j, i, x, y) {
data <- cbind(x, y)
fit <- fitCopula(normalCopula(), data, method =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TSP_dist.R
\name{TSP.dist}
\alias{TSP.dist}
\title{TSP instance generator (for testing/examples)}
\usage{
TSP.dist(x, mydist)
}
\arguments{
\item{x}{a valid closed route for the TSP instance}
\item{mydist}{object of class \emph{dist} definin... | /man/TSP.dist.Rd | no_license | fcampelo/CAISEr | R | false | true | 437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TSP_dist.R
\name{TSP.dist}
\alias{TSP.dist}
\title{TSP instance generator (for testing/examples)}
\usage{
TSP.dist(x, mydist)
}
\arguments{
\item{x}{a valid closed route for the TSP instance}
\item{mydist}{object of class \emph{dist} definin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ca_plot.R
\name{caPlot}
\alias{caPlot}
\title{Intepretation-oriented Correspondence Analysis scatterplots, with informative
and flexible (non-overlapping) labels.}
\usage{
caPlot(
data,
x = 1,
y = 2,
adv.labls = TRUE,
cntr = "column... | /man/caPlot.Rd | no_license | cran/CAinterprTools | R | false | true | 5,359 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ca_plot.R
\name{caPlot}
\alias{caPlot}
\title{Intepretation-oriented Correspondence Analysis scatterplots, with informative
and flexible (non-overlapping) labels.}
\usage{
caPlot(
data,
x = 1,
y = 2,
adv.labls = TRUE,
cntr = "column... |
# 10. Homework Supplement (6?)
# The following codes demonstrates the central limit theorem
# for chi squared with a sample size of M. We take repeat
# the sample N times. The density of N(1,sqrt(2/M)) is
# plotted on top of the histogram
N = 100 # replications
M = 100 # sample size
sig2 = 3
X = matrix(data=rnor... | /homework3.r | no_license | kjoyce/stat422_mathematical_statistics | R | false | false | 667 | r | # 10. Homework Supplement (6?)
# The following codes demonstrates the central limit theorem
# for chi squared with a sample size of M. We take repeat
# the sample N times. The density of N(1,sqrt(2/M)) is
# plotted on top of the histogram
N = 100 # replications
M = 100 # sample size
sig2 = 3
X = matrix(data=rnor... |
#Rolling Correlation Code
ibrary(zoo)
library(ggplot2)
library(tseries)
spy <- get.hist.quote(instrument="SPY", start="2003-01-01",
end=Sys.Date(), quote="AdjClose",
provider="yahoo", origin="1970-01-01",
compression="d", retclass="zoo")
ief <- get.hist... | /R Scripts/Rolling Correlation Script.R | no_license | arkagogoldey/Finance_R_Files | R | false | false | 6,120 | r | #Rolling Correlation Code
ibrary(zoo)
library(ggplot2)
library(tseries)
spy <- get.hist.quote(instrument="SPY", start="2003-01-01",
end=Sys.Date(), quote="AdjClose",
provider="yahoo", origin="1970-01-01",
compression="d", retclass="zoo")
ief <- get.hist... |
library(lorentz)
### Name: print.3vel
### Title: Print methods for three-velocities and four-velocities
### Aliases: print.3vel print.4vel
### ** Examples
r3vel(10)
| /data/genthat_extracted_code/lorentz/examples/print.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 172 | r | library(lorentz)
### Name: print.3vel
### Title: Print methods for three-velocities and four-velocities
### Aliases: print.3vel print.4vel
### ** Examples
r3vel(10)
|
\name{Boxplot_AllSamplesRLE_Structures}
\alias{Boxplot_AllSamplesRLE_Structures}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Boxplot_AllSamplesRLE_Structures}
\description{
A function to perform Box Plot RLE all data analysis from data in files.
}
\usage{
Boxplot_AllSamplesRLE_Structures(theDa... | /package/man/Boxplot_AllSamplesRLE_Structures.Rd | no_license | MD-Anderson-Bioinformatics/MBatch | R | false | false | 3,513 | rd | \name{Boxplot_AllSamplesRLE_Structures}
\alias{Boxplot_AllSamplesRLE_Structures}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Boxplot_AllSamplesRLE_Structures}
\description{
A function to perform Box Plot RLE all data analysis from data in files.
}
\usage{
Boxplot_AllSamplesRLE_Structures(theDa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmmpick_cost_state.R
\name{hmmpick_cost_states}
\alias{hmmpick_cost_states}
\title{Helper to calculate the cost of the different states
(used for development)}
\usage{
hmmpick_cost_states(emissions_probs, scale = 1, returntotal = TRUE)
}
\arg... | /man/hmmpick_cost_states.Rd | permissive | csiu/hmmpickr | R | false | true | 920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmmpick_cost_state.R
\name{hmmpick_cost_states}
\alias{hmmpick_cost_states}
\title{Helper to calculate the cost of the different states
(used for development)}
\usage{
hmmpick_cost_states(emissions_probs, scale = 1, returntotal = TRUE)
}
\arg... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PolygonMap.R
\name{PolygonMap}
\alias{PolygonMap}
\title{Polygon Map Plotting Utility}
\usage{
PolygonMap(map, id, variable = NULL, data = NULL, verbose = F,
map_colors = wpal("earth"), map_NAcolor = "grey", map_transparency = 1,
... | /man/PolygonMap.Rd | no_license | RebeccaStubbs/MapSuite | R | false | true | 9,902 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PolygonMap.R
\name{PolygonMap}
\alias{PolygonMap}
\title{Polygon Map Plotting Utility}
\usage{
PolygonMap(map, id, variable = NULL, data = NULL, verbose = F,
map_colors = wpal("earth"), map_NAcolor = "grey", map_transparency = 1,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.