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 |
|---|---|---|---|---|---|---|---|---|---|
context("Add daily volume")
# Data inputs
test_that("dataframe can be provided and using different column names",{
skip_on_cran()
skip_on_ci()
flowdata <- tidyhydat::hy_daily_flows("08NM116") %>%
dplyr::rename(Flows = Value)
flowdata <- add_daily_volume(flowdata, values = Flows)
expect_true(... | /tests/testthat/test-add_daily_volume.R | no_license | cran/fasstr | R | false | false | 1,246 | r | context("Add daily volume")
# Data inputs
test_that("dataframe can be provided and using different column names",{
skip_on_cran()
skip_on_ci()
flowdata <- tidyhydat::hy_daily_flows("08NM116") %>%
dplyr::rename(Flows = Value)
flowdata <- add_daily_volume(flowdata, values = Flows)
expect_true(... |
\name{hist_prices}
\alias{hist_prices}
\title{
Historical Price Series.
}
\description{
Retrieve historical data series and merge them.
}
\usage{
hist_prices(ticker, start, end = Sys.Date() - 1,
adjust.return = NULL, return.class = "zoo")
}
\arguments{
\item{ticker}{
a character vector
}
\item{s... | /man/hist_prices.Rd | no_license | enricoschumann/Rblpapi.utils | R | false | false | 1,546 | rd | \name{hist_prices}
\alias{hist_prices}
\title{
Historical Price Series.
}
\description{
Retrieve historical data series and merge them.
}
\usage{
hist_prices(ticker, start, end = Sys.Date() - 1,
adjust.return = NULL, return.class = "zoo")
}
\arguments{
\item{ticker}{
a character vector
}
\item{s... |
library(ggrepel)
library(ggsci)
library(lmodel2)
library(scales)
library(tidyverse)
# Utility functions ----------------------------------------------------------
# Abbreviate a binomial e.g. Balaenoptera musculus -> B. musculus
abbr_binom = function(binom) {
paste(str_sub(binom, 1, 1),
str_extract(binom, ... | /src/sonar-response.R | no_license | FlukeAndFeather/sonar-response | R | false | false | 32,569 | r | library(ggrepel)
library(ggsci)
library(lmodel2)
library(scales)
library(tidyverse)
# Utility functions ----------------------------------------------------------
# Abbreviate a binomial e.g. Balaenoptera musculus -> B. musculus
abbr_binom = function(binom) {
paste(str_sub(binom, 1, 1),
str_extract(binom, ... |
################################################################################
## Exploratory Data Analysis Course- Project 1
## Author : Ralston Fonseca
## Date : 24 Aug 2018
## Version : 1.0
## Description : This script creates Plot3.png to examine how household energy
## ... | /plot3.R | no_license | RalstonFonseca/ExData_Plotting1 | R | false | false | 2,067 | r | ################################################################################
## Exploratory Data Analysis Course- Project 1
## Author : Ralston Fonseca
## Date : 24 Aug 2018
## Version : 1.0
## Description : This script creates Plot3.png to examine how household energy
## ... |
testlist <- list(iK = -50331648L)
result <- do.call(eDMA:::PowerSet,testlist)
str(result) | /eDMA/inst/testfiles/PowerSet/AFL_PowerSet/PowerSet_valgrind_files/1609870241-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 89 | r | testlist <- list(iK = -50331648L)
result <- do.call(eDMA:::PowerSet,testlist)
str(result) |
library(ape)
testtree <- read.tree("11310_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11310_0_unrooted.txt") | /codeml_files/newick_trees_processed/11310_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("11310_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11310_0_unrooted.txt") |
#' @rdname ggplot2-ggproto
#' @format NULL
#' @usage NULL
#' @export
StatBindot <- ggproto("StatBindot", Stat,
setup_params = function(data, params) {
if (is.null(params$breaks) && is.null(params$binwidth)) {
message("`stat_bindot()` using `bins = 30`. Pick better value with `binwidth`.")
}
params
... | /R/stat-bindot.r | no_license | jinyueyang/ggplot2 | R | false | false | 5,687 | r | #' @rdname ggplot2-ggproto
#' @format NULL
#' @usage NULL
#' @export
StatBindot <- ggproto("StatBindot", Stat,
setup_params = function(data, params) {
if (is.null(params$breaks) && is.null(params$binwidth)) {
message("`stat_bindot()` using `bins = 30`. Pick better value with `binwidth`.")
}
params
... |
## begin with the extraction:
## Assumig you have the unzip file in your WD
PW_C<-read.table("household_power_consumption.txt",header=TRUE, sep=";",
na.strings="?",quote="")
PW_C$Date<-as.Date(PW_C$Date,"%d/%m/%Y") ##this is to convert to time class
## extract only the dates of interest
Date1<-as.Da... | /plot2.R | no_license | mray0n/ExData_Plotting1 | R | false | false | 1,070 | r | ## begin with the extraction:
## Assumig you have the unzip file in your WD
PW_C<-read.table("household_power_consumption.txt",header=TRUE, sep=";",
na.strings="?",quote="")
PW_C$Date<-as.Date(PW_C$Date,"%d/%m/%Y") ##this is to convert to time class
## extract only the dates of interest
Date1<-as.Da... |
#' Creates a square matrix filled with random (normally distributed) data
#' for use in the tests.
#'
#' @param size the number of colums/rows in the created matrix, default = 5.
#' @return a square matrix of the given size with random values.
create.sampleMatrix <- function(size = 5) {
matrix(rnorm(size*size), nc... | /tests/test_cachematrix.R | no_license | jasoma/ProgrammingAssignment2 | R | false | false | 2,067 | r |
#' Creates a square matrix filled with random (normally distributed) data
#' for use in the tests.
#'
#' @param size the number of colums/rows in the created matrix, default = 5.
#' @return a square matrix of the given size with random values.
create.sampleMatrix <- function(size = 5) {
matrix(rnorm(size*size), nc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/applicationautoscaling_operations.R
\name{applicationautoscaling_register_scalable_target}
\alias{applicationautoscaling_register_scalable_target}
\title{Registers or updates a scalable target}
\usage{
applicationautoscaling_register_scalable... | /cran/paws.management/man/applicationautoscaling_register_scalable_target.Rd | permissive | peoplecure/paws | R | false | true | 7,394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/applicationautoscaling_operations.R
\name{applicationautoscaling_register_scalable_target}
\alias{applicationautoscaling_register_scalable_target}
\title{Registers or updates a scalable target}
\usage{
applicationautoscaling_register_scalable... |
test_that("geo_coord_linestring() class works", {
tbl_linestring <- geo_coord_linestring(geo_xy(c(0, 1, 6), c(0, 2, 4)))
expect_output(print(tbl_linestring), "geo_coord_linestring")
expect_output(print(tibble(tbl_linestring)), "tblls")
expect_is(tbl_linestring, "geo_coord_linestring")
expect_true(is_geo_coor... | /tests/testthat/test-geo-coord-linestring.R | no_license | SymbolixAU/geom | R | false | false | 6,263 | r |
test_that("geo_coord_linestring() class works", {
tbl_linestring <- geo_coord_linestring(geo_xy(c(0, 1, 6), c(0, 2, 4)))
expect_output(print(tbl_linestring), "geo_coord_linestring")
expect_output(print(tibble(tbl_linestring)), "tblls")
expect_is(tbl_linestring, "geo_coord_linestring")
expect_true(is_geo_coor... |
# shared functions
## method
fit_model = function(y, X, order, family) {
model = fdapoi::estimate_poi_validated(y, X, order=order, family=family)
return(model)
}
plot_model = function(y, X, model, path) {
p = nrow(X)
t_grid = (seq(1, p) - 1) / (p-1)
png(path)
fdapoi:::PoIMaker(model$k.opt, X, y, plo... | /src/shared.R | no_license | timmens/topics-metrics-2021 | R | false | false | 2,978 | r | # shared functions
## method
fit_model = function(y, X, order, family) {
model = fdapoi::estimate_poi_validated(y, X, order=order, family=family)
return(model)
}
plot_model = function(y, X, model, path) {
p = nrow(X)
t_grid = (seq(1, p) - 1) / (p-1)
png(path)
fdapoi:::PoIMaker(model$k.opt, X, y, plo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FulfillmentService.R
\name{FulfillmentService}
\alias{FulfillmentService}
\alias{getFulfillmentServices}
\alias{createFulfillmentService}
\alias{getFulfillmentService}
\alias{modifyFulfillmentService}
\alias{deleteFulfillmentService}
... | /man/FulfillmentService.Rd | no_license | charliebone/shopifyr | R | false | true | 1,102 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FulfillmentService.R
\name{FulfillmentService}
\alias{FulfillmentService}
\alias{getFulfillmentServices}
\alias{createFulfillmentService}
\alias{getFulfillmentService}
\alias{modifyFulfillmentService}
\alias{deleteFulfillmentService}
... |
library(geozoning)
### Name: loopQ1
### Title: loopQ1
### Aliases: loopQ1
### ** Examples
# not run
| /data/genthat_extracted_code/geozoning/examples/loopQ1.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 107 | r | library(geozoning)
### Name: loopQ1
### Title: loopQ1
### Aliases: loopQ1
### ** Examples
# not run
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nfunctions.R
\name{ndoc}
\alias{ndoc}
\alias{nfeature}
\title{count the number of documents or features}
\usage{
ndoc(x)
nfeature(x)
}
\arguments{
\item{x}{a \pkg{quanteda} object: a \link{corpus}, \link{dfm}, or \link{tokens}
object, or a r... | /man/ndoc.Rd | no_license | plablo09/quanteda | R | false | true | 1,347 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nfunctions.R
\name{ndoc}
\alias{ndoc}
\alias{nfeature}
\title{count the number of documents or features}
\usage{
ndoc(x)
nfeature(x)
}
\arguments{
\item{x}{a \pkg{quanteda} object: a \link{corpus}, \link{dfm}, or \link{tokens}
object, or a r... |
## ======================================
## Examples for the chapter
## 'Describing and visualizing sequences'
## in TraMineR User's Guide
## ======================================
require(grDevices); require(graphics)
oask <- devAskNewPage(dev.interactive(orNone = TRUE))
library(TraMineR)
## Set 'graphd... | /TraMineR/demo/Rendering.R | no_license | ingted/R-Examples | R | false | false | 7,082 | r | ## ======================================
## Examples for the chapter
## 'Describing and visualizing sequences'
## in TraMineR User's Guide
## ======================================
require(grDevices); require(graphics)
oask <- devAskNewPage(dev.interactive(orNone = TRUE))
library(TraMineR)
## Set 'graphd... |
## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
## -----------------------------------------------------------------------------
library(lax)
# Column 4 of ow contains 1 for Oxford and -1 for Worthing
large <- gev_refit(ow$te... | /inst/doc/lax-vignette.R | no_license | cran/lax | R | false | false | 5,456 | r | ## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
## -----------------------------------------------------------------------------
library(lax)
# Column 4 of ow contains 1 for Oxford and -1 for Worthing
large <- gev_refit(ow$te... |
calc_statistic <- function(x) {
return(mean(x))
}
mu_star <- mean(X)
mu_star_star <- replicate(10000, calc_statistic(sample(X, replace = TRUE)))
U <- quantile(mu_star - mu_star_star, 0.975)
L <- quantile(mu_star - mu_star_star, 0.025)
CI <- c(mu_star + L, mu_star + U)
| /Tree Based Methods/bootstrap_ci.R | permissive | shilpakancharla/machine-learning-tutorials | R | false | false | 275 | r | calc_statistic <- function(x) {
return(mean(x))
}
mu_star <- mean(X)
mu_star_star <- replicate(10000, calc_statistic(sample(X, replace = TRUE)))
U <- quantile(mu_star - mu_star_star, 0.975)
L <- quantile(mu_star - mu_star_star, 0.025)
CI <- c(mu_star + L, mu_star + U)
|
#A data sample is called qualitative also known as categorical,
#if its values belong to a collection of known defined non-overlapping classes.
#common ex. include student letter grade(A ,B,C, D, E and F)
#commercial bond rating (AAA,AAB........)and consumer clothing shoe sizes(1,2,3........).
iris
x=5
irisdata... | /learning to deal with data II.R | no_license | Githubarifkhan/cleaning-data-with-R | R | false | false | 1,412 | r | #A data sample is called qualitative also known as categorical,
#if its values belong to a collection of known defined non-overlapping classes.
#common ex. include student letter grade(A ,B,C, D, E and F)
#commercial bond rating (AAA,AAB........)and consumer clothing shoe sizes(1,2,3........).
iris
x=5
irisdata... |
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.82434500994586e-304, -1.657912... | /dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609868004-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 831 | r | testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.82434500994586e-304, -1.657912... |
#' Derive BASETYPE Variable
#'
#' Adds the `BASETYPE` variable to a dataset and duplicates records based upon
#' the provided conditions
#'
#' @param dataset Input dataset
#'
#' The columns specified in the expressions inside `basetypes` are required.
#'
#' @param basetypes A *named* list of expressions created using... | /R/derive_var_basetype.R | no_license | rajkboddu/admiral | R | false | false | 2,377 | r | #' Derive BASETYPE Variable
#'
#' Adds the `BASETYPE` variable to a dataset and duplicates records based upon
#' the provided conditions
#'
#' @param dataset Input dataset
#'
#' The columns specified in the expressions inside `basetypes` are required.
#'
#' @param basetypes A *named* list of expressions created using... |
#' @include AllClasses.R
.parameterizeGammaByMeanSd <- function(mn, sd){
rate <- mn/sd^2
shape <- mn^2/sd^2
setNames(c(shape, rate), c("shape", "rate"))
}
qInverseTau2 <- function(eta.0=1800, m2.0=100, mn, sd){
if(!missing(mn) && !missing(sd)){
params <- .parameterizeGammaByMeanSd(mn, sd)
a <- params... | /R/methods-Hyperparameters.R | no_license | aditharun/CNPBayes | R | false | false | 9,150 | r | #' @include AllClasses.R
.parameterizeGammaByMeanSd <- function(mn, sd){
rate <- mn/sd^2
shape <- mn^2/sd^2
setNames(c(shape, rate), c("shape", "rate"))
}
qInverseTau2 <- function(eta.0=1800, m2.0=100, mn, sd){
if(!missing(mn) && !missing(sd)){
params <- .parameterizeGammaByMeanSd(mn, sd)
a <- params... |
library(ggplot2)
sccPM25 <- readRDS("summarySCC_PM25.rds")
scc <- readRDS("Source_Classification_Code.rds")
baltimore <- sccPM25[sccPM25$fips=="24510",]
losAngeles <- sccPM25[sccPM25$fips=="06037",]
motorVeh <- character()
for(i in 1:length(scc$SCC)) {
if(length(grep("Mobile", as.character(scc$EI.Sector[... | /04 - Exploratory Data Analysis/Week 3/Project/question6.R | permissive | PhillipChaffee/datasciencecoursera | R | false | false | 645 | r | library(ggplot2)
sccPM25 <- readRDS("summarySCC_PM25.rds")
scc <- readRDS("Source_Classification_Code.rds")
baltimore <- sccPM25[sccPM25$fips=="24510",]
losAngeles <- sccPM25[sccPM25$fips=="06037",]
motorVeh <- character()
for(i in 1:length(scc$SCC)) {
if(length(grep("Mobile", as.character(scc$EI.Sector[... |
##########################################R 프로그래밍 기초 ####################################################
############# 1. R 기초
# R 둘러보기 ###
###### 작업 공간 할당하기 ###
getwd()
dir.create("d:/r_class")
setwd("d:/r_class")
getwd()
#### 커맨드 입력하기 ######
1+1
# 불완전한 커맨드 입력
max(4,6,8), max(4,6,
)
# 여러줄을 한꺼번에 실행
... | /강의용+R+Full+code/1. R 프로그램 기초/2. R code/R 프로그래밍_강의자용_190923.R | no_license | Maphnew/R_edu_201909 | R | false | false | 33,964 | r |
##########################################R 프로그래밍 기초 ####################################################
############# 1. R 기초
# R 둘러보기 ###
###### 작업 공간 할당하기 ###
getwd()
dir.create("d:/r_class")
setwd("d:/r_class")
getwd()
#### 커맨드 입력하기 ######
1+1
# 불완전한 커맨드 입력
max(4,6,8), max(4,6,
)
# 여러줄을 한꺼번에 실행
... |
context("memo")
library(magrittr)
library(testthat)
# environment used to mark memo execution
current.test.env <- function () test.env
# memo execution key
key.executed <- "executed"
##
# Helper to insert expression into function to be executed before the current body.
#
insert.before <- function (f... | /tests/testthat/testMemo.R | no_license | cran/memofunc | R | false | false | 5,236 | r |
context("memo")
library(magrittr)
library(testthat)
# environment used to mark memo execution
current.test.env <- function () test.env
# memo execution key
key.executed <- "executed"
##
# Helper to insert expression into function to be executed before the current body.
#
insert.before <- function (f... |
############################################################################################################
#
# File: DLfunctions41.R
# Developer: Tinniam V Ganesh
# Date : 26 Feb 2018
#
##########################################################################################################
# Compute the Relu of a ... | /Chap4-MulticlassDeepLearningNetwork/DLfunctions41.R | no_license | adithirgis/DeepLearningFromFirstPrinciples | R | false | false | 6,775 | r | ############################################################################################################
#
# File: DLfunctions41.R
# Developer: Tinniam V Ganesh
# Date : 26 Feb 2018
#
##########################################################################################################
# Compute the Relu of a ... |
#### Preamble ####
# Purpose: The purpose of this script is to download all of the pages for Queensland politicians.
# Author: Rohan Alexander
# Email: rohan.alexander@utoronto.ca
# Last updated: 12 June 2020
# Prerequisites: Need to have the IDs from 'get_ids.R'
# Misc:
#### Set up workspace ####
library(rvest)
libr... | /scripts/queensland/02-get_politicians_qld.R | no_license | hidayaa/australian_politicians | R | false | false | 2,201 | r | #### Preamble ####
# Purpose: The purpose of this script is to download all of the pages for Queensland politicians.
# Author: Rohan Alexander
# Email: rohan.alexander@utoronto.ca
# Last updated: 12 June 2020
# Prerequisites: Need to have the IDs from 'get_ids.R'
# Misc:
#### Set up workspace ####
library(rvest)
libr... |
setwd("C:/Users/david/datasciencecoursera/Exploratory Data Analysis/Week1/proj1")
filename <- "./household_power_consumption.txt"
subsetfile <- "./hpc-subset.Rd"
plotfilename <- "./plot4.png"
if (file.exists(plotfilename)) {
file.remove(plotfilename)
}
# if the datsubset already exists read it in,
# otherwise r... | /plot4.R | no_license | cyberhiker1965/ExData_Plotting1 | R | false | false | 2,258 | r |
setwd("C:/Users/david/datasciencecoursera/Exploratory Data Analysis/Week1/proj1")
filename <- "./household_power_consumption.txt"
subsetfile <- "./hpc-subset.Rd"
plotfilename <- "./plot4.png"
if (file.exists(plotfilename)) {
file.remove(plotfilename)
}
# if the datsubset already exists read it in,
# otherwise r... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Correlation/thyroid.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.35,family="gaussian",standardize=FALSE)
sink('./thyroid_048.txt',append=TR... | /Model/EN/Correlation/thyroid/thyroid_048.R | no_license | esbgkannan/QSMART | R | false | false | 353 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Correlation/thyroid.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.35,family="gaussian",standardize=FALSE)
sink('./thyroid_048.txt',append=TR... |
# VECTORS
# 1. Create a vector u that has values:
# -10, -9, -8, . . . , 0.
u <- seq(-10,0)
# 2. Create another vector v that has values:
# -0.1, 0.4, 0.9, 1.4, ., and there are 11 terms in v.
v <- seq(-0.1,4.9,by=0.5)
# 3. Calculate the vector of u+v and u*v.
u + v
u * v
# 4. Increase all terms in u by 1, ... | /exercise1.r | no_license | fpersyn/r-python-training | R | false | false | 1,428 | r | # VECTORS
# 1. Create a vector u that has values:
# -10, -9, -8, . . . , 0.
u <- seq(-10,0)
# 2. Create another vector v that has values:
# -0.1, 0.4, 0.9, 1.4, ., and there are 11 terms in v.
v <- seq(-0.1,4.9,by=0.5)
# 3. Calculate the vector of u+v and u*v.
u + v
u * v
# 4. Increase all terms in u by 1, ... |
#' Turn parsed cURL command lines into \code{httr} request functions
#'
#' Takes the output of \code{\link{straighten}()} and turns the parsed cURL command lines
#' into working \code{httr} \code{\link[httr]{VERB}()} functions, optionally \code{cat}'ing the text of each function
#' to the console and/or replacing the s... | /R/make_req.r | no_license | ktargows/curlconverter | R | false | false | 2,028 | r | #' Turn parsed cURL command lines into \code{httr} request functions
#'
#' Takes the output of \code{\link{straighten}()} and turns the parsed cURL command lines
#' into working \code{httr} \code{\link[httr]{VERB}()} functions, optionally \code{cat}'ing the text of each function
#' to the console and/or replacing the s... |
#MBatch Copyright ? 2011, 2012, 2013, 2014, 2015, 2016, 2017 University of Texas MD Anderson Cancer Center
#
#This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at yo... | /package/R/BEA_CorrectionsMP.R | no_license | MD-Anderson-Bioinformatics/MBatch | R | false | false | 2,373 | r | #MBatch Copyright ? 2011, 2012, 2013, 2014, 2015, 2016, 2017 University of Texas MD Anderson Cancer Center
#
#This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at yo... |
#' liondown: A package for creating PSU undergraduate, Masters, and PhD theses
#' using R Markdown
#'
#'
#' @section thesis_gitbook:
#' Creates an R Markdown thesis template as a webpage
#' @section thesis_pdf:
#' Creates an R Markdown thesis template as a PDF
#' @section thesis_word:
#' Creates an R Markdown thesis te... | /R/liondown.R | permissive | arnold-c/liondown | R | false | false | 483 | r | #' liondown: A package for creating PSU undergraduate, Masters, and PhD theses
#' using R Markdown
#'
#'
#' @section thesis_gitbook:
#' Creates an R Markdown thesis template as a webpage
#' @section thesis_pdf:
#' Creates an R Markdown thesis template as a PDF
#' @section thesis_word:
#' Creates an R Markdown thesis te... |
library(randomForest)
ratingtest<-read.csv(file="ratings_firstmillion.csv",header = T)
ratingtest=ratingtest[1:100000,]
names(ratingtest)
ratingtest$rating <- as.factor(ratingtest$rating)
sample.ind <- sample(2,
nrow(ratingtest),
replace = T,
prob = c(0.... | /RandomForest.R | no_license | sagzv7999/MLProjects | R | false | false | 1,453 | r | library(randomForest)
ratingtest<-read.csv(file="ratings_firstmillion.csv",header = T)
ratingtest=ratingtest[1:100000,]
names(ratingtest)
ratingtest$rating <- as.factor(ratingtest$rating)
sample.ind <- sample(2,
nrow(ratingtest),
replace = T,
prob = c(0.... |
#-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... | /models/sipnet/R/get.model.output.SIPNET.R | permissive | Viskari/pecan | R | false | false | 2,568 | r | #-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... |
summary_4 <- combined %>%
drop_na(boro) %>%
group_by(boro) %>%
summarize(mean(avg_sat_score, na.rm = TRUE), mean(frl_percent, na.rm = TRUE), mean(`AP Test Takers`, na.rm = TRUE)) | /Dealing With Missing Data/Understanding Effects of Different Techniques for Handling Missing Data.r | no_license | kcrhino/Data_Quest_R | R | false | false | 193 | r | summary_4 <- combined %>%
drop_na(boro) %>%
group_by(boro) %>%
summarize(mean(avg_sat_score, na.rm = TRUE), mean(frl_percent, na.rm = TRUE), mean(`AP Test Takers`, na.rm = TRUE)) |
#' @include Modstrings.R
#' @include Modstrings-ModStringCodec.R
NULL
# These functions need to be here to access the modified functions of
# - .charToModString
#' @name ModString
#' @aliases ModString,MaskedModString-method ModString,AsIs-method
#' ModString,ModString-method ModString,XString-method
#' ModString,c... | /R/Modstrings-ModString.R | no_license | FelixErnst/Modstrings | R | false | false | 14,174 | r | #' @include Modstrings.R
#' @include Modstrings-ModStringCodec.R
NULL
# These functions need to be here to access the modified functions of
# - .charToModString
#' @name ModString
#' @aliases ModString,MaskedModString-method ModString,AsIs-method
#' ModString,ModString-method ModString,XString-method
#' ModString,c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Lethal}
\alias{Lethal}
\title{Survival time of mice injected with an experimental lethal drug}
\format{A data frame with 30 observations on the following variable.
\describe{
\item{survival}{a numeric vect... | /man/Lethal.Rd | no_license | lelou6666/BSDA | R | false | true | 573 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Lethal}
\alias{Lethal}
\title{Survival time of mice injected with an experimental lethal drug}
\format{A data frame with 30 observations on the following variable.
\describe{
\item{survival}{a numeric vect... |
#1
getNetwrok(badData)
#2
getNetwrok(goodData)
# | /demo.R | no_license | mfey619/HPIHack | R | false | false | 52 | r | #1
getNetwrok(badData)
#2
getNetwrok(goodData)
# |
context("test-vmeasure.R")
# Examples from Figure 2 of
# Rosenberg, Andrew, and Julia Hirschberg. "V-measure:
# A conditional entropy-based external cluster evaluation measure." Proceedings
# of the 2007 joint conference on empirical methods in natural language
# processing and computational natural language learning ... | /tests/testthat/test-vmeasure.R | permissive | Nowosad/sabre | R | false | false | 1,332 | r | context("test-vmeasure.R")
# Examples from Figure 2 of
# Rosenberg, Andrew, and Julia Hirschberg. "V-measure:
# A conditional entropy-based external cluster evaluation measure." Proceedings
# of the 2007 joint conference on empirical methods in natural language
# processing and computational natural language learning ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/propNeeded.R
\name{propNeeded}
\alias{propNeeded}
\alias{propNeeded,ANY-method}
\title{Computes proportion of remaining delegates necessary to secure the nomination}
\usage{
propNeeded(candidate, remaining.delegates)
}
\arguments{
\item{candi... | /MyPackage/man/propNeeded.Rd | no_license | jacobhample/PS6 | R | false | true | 961 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/propNeeded.R
\name{propNeeded}
\alias{propNeeded}
\alias{propNeeded,ANY-method}
\title{Computes proportion of remaining delegates necessary to secure the nomination}
\usage{
propNeeded(candidate, remaining.delegates)
}
\arguments{
\item{candi... |
###############################################################
# 05-30-2017
# clean code for simulations
# 8 base learners:
# random forest, generalized linear regression, quadratic splines regression, CART,
# 10 nearest neighbors, generalized boosting, support vector machine, Bagging Classification
# source in fun... | /R/Application_Code_WDBC.R | no_license | yizhenxu/SL_Thresholding | R | false | false | 6,929 | r | ###############################################################
# 05-30-2017
# clean code for simulations
# 8 base learners:
# random forest, generalized linear regression, quadratic splines regression, CART,
# 10 nearest neighbors, generalized boosting, support vector machine, Bagging Classification
# source in fun... |
# inst/app/ui.R
#
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
suppressMessages(require(shinyjqui))
suppressMessages(require(shiny))
source(paste0(packagePath, "/toolTips.R"), local = TRUE)
supp... | /inst/app/ui.R | no_license | C3BI-pasteur-fr/UTechSCB-SCHNAPPs | R | false | false | 11,807 | r | # inst/app/ui.R
#
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
suppressMessages(require(shinyjqui))
suppressMessages(require(shiny))
source(paste0(packagePath, "/toolTips.R"), local = TRUE)
supp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/n-prop-miss-complete-rows.R
\name{prop_miss_row}
\alias{prop_miss_row}
\title{Return a vector of the proportion of missing values in each row}
\usage{
prop_miss_row(data)
}
\arguments{
\item{data}{a dataframe}
}
\value{
numeric vector of the ... | /man/prop_miss_row.Rd | no_license | halzahrani/naniar | R | false | true | 1,001 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/n-prop-miss-complete-rows.R
\name{prop_miss_row}
\alias{prop_miss_row}
\title{Return a vector of the proportion of missing values in each row}
\usage{
prop_miss_row(data)
}
\arguments{
\item{data}{a dataframe}
}
\value{
numeric vector of the ... |
#' Removes rows from a RelEx experiment that have zero detection counts.
#' Removes rows from a RelEx experiment that have zero detection counts. This
#' will update all tables in the list, as well as the proteins and
#' protein.counts vectors
#'
#' @param x A list of RelEx experiments.
#' @return a list much like \co... | /R/rmNArows.relex.R | no_license | drmjc/relex | R | false | false | 738 | r | #' Removes rows from a RelEx experiment that have zero detection counts.
#' Removes rows from a RelEx experiment that have zero detection counts. This
#' will update all tables in the list, as well as the proteins and
#' protein.counts vectors
#'
#' @param x A list of RelEx experiments.
#' @return a list much like \co... |
library(kernDeepStackNet)
# Check function tune_KDSN (duration is long)
XORdat4Dim <- expand.grid(x1=c(0, 1), x2=c(0, 1), x3=c(0, 1), x4=c(0, 1))
XORdat4Dim <- cbind(y1=as.numeric(xor(xor(xor(XORdat4Dim[, 1], XORdat4Dim[, 2]), XORdat4Dim[, 3]), XORdat4Dim[, 4])), XORdat4Dim)
fittedKDSN <- fitKDSN(y=XORdat4Dim[, 1],... | /tests/KDSNestimation_tests_fit_k_DSN_rft.R | no_license | cran/kernDeepStackNet | R | false | false | 609 | r | library(kernDeepStackNet)
# Check function tune_KDSN (duration is long)
XORdat4Dim <- expand.grid(x1=c(0, 1), x2=c(0, 1), x3=c(0, 1), x4=c(0, 1))
XORdat4Dim <- cbind(y1=as.numeric(xor(xor(xor(XORdat4Dim[, 1], XORdat4Dim[, 2]), XORdat4Dim[, 3]), XORdat4Dim[, 4])), XORdat4Dim)
fittedKDSN <- fitKDSN(y=XORdat4Dim[, 1],... |
library(deSolve)
### Name: ode.2D
### Title: Solver for 2-Dimensional Ordinary Differential Equations
### Aliases: ode.2D
### Keywords: math
### ** Examples
## =======================================================================
## A Lotka-Volterra predator-prey model with predator and prey
## dispersing in 2 di... | /data/genthat_extracted_code/deSolve/examples/ode.2D.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 6,282 | r | library(deSolve)
### Name: ode.2D
### Title: Solver for 2-Dimensional Ordinary Differential Equations
### Aliases: ode.2D
### Keywords: math
### ** Examples
## =======================================================================
## A Lotka-Volterra predator-prey model with predator and prey
## dispersing in 2 di... |
if (!require("pacman")) install.packages("pacman"); library(pacman)
p_load(tidyverse)
read_tsv("all_data.tsv") %>%
mutate(CancerType = str_replace(CancerType, "^TCGA_", "")) %>%
ggplot(aes(x = Algorithm, y = AUROC, fill = Algorithm)) +
geom_boxplot() +
geom_hline(yintercept = 0.5, color = "red", linetype = "da... | /DTA Notes/Archive/make_plot.R | no_license | natemella/Paper | R | false | false | 456 | r | if (!require("pacman")) install.packages("pacman"); library(pacman)
p_load(tidyverse)
read_tsv("all_data.tsv") %>%
mutate(CancerType = str_replace(CancerType, "^TCGA_", "")) %>%
ggplot(aes(x = Algorithm, y = AUROC, fill = Algorithm)) +
geom_boxplot() +
geom_hline(yintercept = 0.5, color = "red", linetype = "da... |
# Exploratory Data Analysis - Week 4 - Q. #4
# Across the United States, how have emissions from coal combustion-related
# sources changed from 1999-2008?
# Load the datasets from local machine (DataLoad.R loaded and unzipped them)
NEI <- readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("./Source_Classifica... | /plot4.R | no_license | ejcrotty/exploratory_data_week_4 | R | false | false | 1,093 | r | # Exploratory Data Analysis - Week 4 - Q. #4
# Across the United States, how have emissions from coal combustion-related
# sources changed from 1999-2008?
# Load the datasets from local machine (DataLoad.R loaded and unzipped them)
NEI <- readRDS("./summarySCC_PM25.rds")
SCC <- readRDS("./Source_Classifica... |
# paquetes
library(tidyverse)
library(plotly)
library(emojifont)
# leemos los datos
movies <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2018/2018-10-23/movie_profit.csv')
library(ggplot2)
movies_horror <- movies %>%
mutate(year = as.numeric(str_sub(release_date, start = -1... | /equipo-1/graficas-equipo-1.r | no_license | tereom/horroR | R | false | false | 1,356 | r | # paquetes
library(tidyverse)
library(plotly)
library(emojifont)
# leemos los datos
movies <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2018/2018-10-23/movie_profit.csv')
library(ggplot2)
movies_horror <- movies %>%
mutate(year = as.numeric(str_sub(release_date, start = -1... |
library(shiny)
library(ggplot2)
library(plyr)
library(reshape2)
source("simulation_functions.R")
ui <- fluidPage(
tags$h1("Selection, mutation and drift at multiple loci"),
column(4,
tabsetPanel(
tabPanel("Multiplicative",
sliderInput(inputId = "log_mu",
... | /app.R | no_license | mrtnj/shiny_polymutation | R | false | false | 2,315 | r | library(shiny)
library(ggplot2)
library(plyr)
library(reshape2)
source("simulation_functions.R")
ui <- fluidPage(
tags$h1("Selection, mutation and drift at multiple loci"),
column(4,
tabsetPanel(
tabPanel("Multiplicative",
sliderInput(inputId = "log_mu",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HeriTools.R
\name{getReadMatrix.CP}
\alias{getReadMatrix.CP}
\title{Simulate a read matrix from compound Poisson mixed effect models (CPMM).}
\usage{
getReadMatrix.CP(vec.num.rep, alphas, sigma2s, ps, phis)
}
\arguments{
\item{vec.num.rep}{A ... | /man/getReadMatrix.CP.Rd | no_license | cran/HeritSeq | R | false | true | 2,133 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HeriTools.R
\name{getReadMatrix.CP}
\alias{getReadMatrix.CP}
\title{Simulate a read matrix from compound Poisson mixed effect models (CPMM).}
\usage{
getReadMatrix.CP(vec.num.rep, alphas, sigma2s, ps, phis)
}
\arguments{
\item{vec.num.rep}{A ... |
#' Plot the results of a survival analysis
#'
#' @param object iwillsurvive. An iwillsurvive object created from iwillsurvive
#' @param cohort dataframe. A one-row-per-patient cohort used in generating fit.
#' @param ggtheme theme. A ggplot2 theme
#' @param palette character. The name of a paleete. See ?ggplot2::scale_... | /R/plot_survival.R | permissive | noxtoby/iwillsurvive | R | false | false | 19,999 | r | #' Plot the results of a survival analysis
#'
#' @param object iwillsurvive. An iwillsurvive object created from iwillsurvive
#' @param cohort dataframe. A one-row-per-patient cohort used in generating fit.
#' @param ggtheme theme. A ggplot2 theme
#' @param palette character. The name of a paleete. See ?ggplot2::scale_... |
\name{org.Hvulgare1.eg.db}
\alias{org.Hvulgare1.eg.db}
\alias{org.Hvulgare1.eg}
\title{Bioconductor annotation data package}
\description{
Welcome to the org.Hvulgare1.eg.db annotation Package. This is an
organism specific package. The purpose is to provide detailed
information about the species abbreviated in ... | /00.annotation/org.Hvulgare1.eg.db/man/org.Hvulgare1.egBASE.Rd | no_license | Han9527/Barley_GO_Annotation | R | false | false | 705 | rd | \name{org.Hvulgare1.eg.db}
\alias{org.Hvulgare1.eg.db}
\alias{org.Hvulgare1.eg}
\title{Bioconductor annotation data package}
\description{
Welcome to the org.Hvulgare1.eg.db annotation Package. This is an
organism specific package. The purpose is to provide detailed
information about the species abbreviated in ... |
\name{nodosIntermedios}
\alias{nodosIntermedios}
\title{
Nodos intermedios para etiquetas del modelo.
}
\description{
Se calcula la mitad del elemento para colocar ahí las etiquetas de número de elemento.
}
\usage{
nodosIntermedios(elementos, nodos)
}
%- maybe also 'usage' for other objects documented here.
\arguments{... | /man/nodosIntermedios.Rd | no_license | IzaelNava/Armaduras | R | false | false | 409 | rd | \name{nodosIntermedios}
\alias{nodosIntermedios}
\title{
Nodos intermedios para etiquetas del modelo.
}
\description{
Se calcula la mitad del elemento para colocar ahí las etiquetas de número de elemento.
}
\usage{
nodosIntermedios(elementos, nodos)
}
%- maybe also 'usage' for other objects documented here.
\arguments{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anyNA.R
\name{anyNA}
\alias{anyNA}
\title{Backport of anyNA for R versions < 3.2.0.}
\usage{
anyNA(x, recursive = FALSE)
}
\description{
See the original description in \code{base::anyNA}.
}
\examples{
# get function from namespace instead of... | /packrat/src/backports/backports/man/anyNA.Rd | no_license | wjhopper/PBS-R-Manual | R | false | true | 477 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anyNA.R
\name{anyNA}
\alias{anyNA}
\title{Backport of anyNA for R versions < 3.2.0.}
\usage{
anyNA(x, recursive = FALSE)
}
\description{
See the original description in \code{base::anyNA}.
}
\examples{
# get function from namespace instead of... |
\name{linkcomm2clustnsee}
\alias{linkcomm2clustnsee}
\title{
Write a Partition File for Clust&See
}
\description{
This function writes out a partition file which can be imported into the Cytoscape plug-in Clust&See.
}
\usage{
linkcomm2clustnsee(x, file = "temp.cns", network.name = NULL)
}
\arguments{
\item{x}{
An o... | /linkcomm_R_package/man/linkcomm2clustnsee.Rd | no_license | jtan189/linkcomm | R | false | false | 2,115 | rd | \name{linkcomm2clustnsee}
\alias{linkcomm2clustnsee}
\title{
Write a Partition File for Clust&See
}
\description{
This function writes out a partition file which can be imported into the Cytoscape plug-in Clust&See.
}
\usage{
linkcomm2clustnsee(x, file = "temp.cns", network.name = NULL)
}
\arguments{
\item{x}{
An o... |
\encoding{UTF-8}
\name{chron.stabilized}
\alias{chron.stabilized}
\title{Build Mean Value Chronology with Stabilized Variance}
\description{
This function builds a variance stabilized mean-value chronology, typically from a
\code{data.frame} of detrended ring widths as produced by
\code{\link{detrend}}.
}
\usage{... | /man/chron.stabilized.Rd | no_license | cran/dplR | R | false | false | 3,647 | rd | \encoding{UTF-8}
\name{chron.stabilized}
\alias{chron.stabilized}
\title{Build Mean Value Chronology with Stabilized Variance}
\description{
This function builds a variance stabilized mean-value chronology, typically from a
\code{data.frame} of detrended ring widths as produced by
\code{\link{detrend}}.
}
\usage{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adsense_objects.R
\name{SavedAdStyles}
\alias{SavedAdStyles}
\title{SavedAdStyles Object}
\usage{
SavedAdStyles(etag = NULL, items = NULL, nextPageToken = NULL)
}
\arguments{
\item{etag}{ETag of this response for caching purposes}
\item{item... | /googleadsensev12.auto/man/SavedAdStyles.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 613 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adsense_objects.R
\name{SavedAdStyles}
\alias{SavedAdStyles}
\title{SavedAdStyles Object}
\usage{
SavedAdStyles(etag = NULL, items = NULL, nextPageToken = NULL)
}
\arguments{
\item{etag}{ETag of this response for caching purposes}
\item{item... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/byGridCell_CalcStats.R
\name{byGridCell_CalcStats}
\alias{byGridCell_CalcStats}
\title{Calculate statistics for results by grid cell}
\usage{
byGridCell_CalcStats(
dfrs,
roms_grid,
quantity,
lci = 0.025,
uci = 0.975,
byStartTime =... | /man/byGridCell_CalcStats.Rd | permissive | wStockhausen/rDisMELS | R | false | true | 915 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/byGridCell_CalcStats.R
\name{byGridCell_CalcStats}
\alias{byGridCell_CalcStats}
\title{Calculate statistics for results by grid cell}
\usage{
byGridCell_CalcStats(
dfrs,
roms_grid,
quantity,
lci = 0.025,
uci = 0.975,
byStartTime =... |
#' Helper function: group fst by pattern
#' @param fst_pattern pattern to search for in fst filename (default: "raw")
#' @param time_pattern optional pattern to filter months to be imported (default: NULL),
#' for using it do e.g. "2017-06|2017-07" or c("2017-06", "2017-07")
#' @param fst_dir directory with fst fil... | /R/merge_and_export_fst.R | permissive | KWB-R/aquanes.report | R | false | false | 4,699 | r | #' Helper function: group fst by pattern
#' @param fst_pattern pattern to search for in fst filename (default: "raw")
#' @param time_pattern optional pattern to filter months to be imported (default: NULL),
#' for using it do e.g. "2017-06|2017-07" or c("2017-06", "2017-07")
#' @param fst_dir directory with fst fil... |
source("./Rcode/gFITC.R")
source("./Rcode/epAGPC_het.R")
set.seed(0)
# i <- commandArgs()[1]
i <- 1
#number of pseudo-inputs is set to 100
for (npi in c(100)) {
print(i)
#Loading the data
load(paste("./data/",i,"data.dat",sep = ""))
Xtrain <- data$x[ data$itrain, ]
Ytrain <- as.vector(c(data$y_train))
Xt... | /simulateGPC_plus2.R | no_license | jt86/r-project | R | false | false | 1,577 | r | source("./Rcode/gFITC.R")
source("./Rcode/epAGPC_het.R")
set.seed(0)
# i <- commandArgs()[1]
i <- 1
#number of pseudo-inputs is set to 100
for (npi in c(100)) {
print(i)
#Loading the data
load(paste("./data/",i,"data.dat",sep = ""))
Xtrain <- data$x[ data$itrain, ]
Ytrain <- as.vector(c(data$y_train))
Xt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{reset_par}
\alias{reset_par}
\title{Reset graphical options in 'par' to factory defaults.}
\usage{
reset_par()
}
\description{
Reset the \code{\link[graphics]{par}} to R's defaults.
}
\details{
Some of \code{par}'s settings are ... | /man/reset_par.Rd | no_license | cran/settings | R | false | true | 1,020 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{reset_par}
\alias{reset_par}
\title{Reset graphical options in 'par' to factory defaults.}
\usage{
reset_par()
}
\description{
Reset the \code{\link[graphics]{par}} to R's defaults.
}
\details{
Some of \code{par}'s settings are ... |
##################################################
## plot counts such as histogram or density
##################################################
library(ggplot2)
argv <- commandArgs(T)
png(paste(argv[1],".png",sep=""),width=960,height=960)
md <- read.table(argv[1],header=T)
md2 <- read.table(argv[1],header=T)
p... | /plot-count-fst.r | no_license | ctan2020/test | R | false | false | 1,323 | r | ##################################################
## plot counts such as histogram or density
##################################################
library(ggplot2)
argv <- commandArgs(T)
png(paste(argv[1],".png",sep=""),width=960,height=960)
md <- read.table(argv[1],header=T)
md2 <- read.table(argv[1],header=T)
p... |
ag = aggregate(total~hr, bikeshare, mean)
ag
data.frame(ag$total)
lineplot = ggplot(ag) + geom_line(aes(x=hr, y=total)) +
labs (x="Hour of the day", y="Average bike rentals", title="Avg bike rentals with respective to every hour")
lineplot
ag1 = aggregate(total~hr+workingday, bikeshare, mean)
ag1
linepl... | /bikeshare.R | no_license | sonali4794/Buildings-certified-green | R | false | false | 866 | r |
ag = aggregate(total~hr, bikeshare, mean)
ag
data.frame(ag$total)
lineplot = ggplot(ag) + geom_line(aes(x=hr, y=total)) +
labs (x="Hour of the day", y="Average bike rentals", title="Avg bike rentals with respective to every hour")
lineplot
ag1 = aggregate(total~hr+workingday, bikeshare, mean)
ag1
linepl... |
# @file Cluster.R
#
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of OhdsiRTools
#
# 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://w... | /R/Cluster.R | permissive | parkdongsu/OhdsiRTools | R | false | false | 8,375 | r | # @file Cluster.R
#
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of OhdsiRTools
#
# 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://w... |
testlist <- list(lims = structure(c(5.22851419824833e+54, 5.22851419824833e+54, 5.22851419824833e+54, 5.22851419824833e+54, 2.02925826463916e+53, 2.14305266688968e-307, 7.06327445644526e-304, 0, 7.28400178326727e-304, 1.2136247081529e+132, 2.21813575529665e+130, 5.43222633946974e-312, 0, 0, 7.57261242874038e-315, 1... | /palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612987931-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 1,067 | r | testlist <- list(lims = structure(c(5.22851419824833e+54, 5.22851419824833e+54, 5.22851419824833e+54, 5.22851419824833e+54, 2.02925826463916e+53, 2.14305266688968e-307, 7.06327445644526e-304, 0, 7.28400178326727e-304, 1.2136247081529e+132, 2.21813575529665e+130, 5.43222633946974e-312, 0, 0, 7.57261242874038e-315, 1... |
library(bsplus)
### Name: bs_set_data
### Title: Sets Bootstrap data- and aria- attributes.
### Aliases: bs_set_data bs_set_aria
### ** Examples
library("htmltools")
library("lubridate")
tags$div() %>%
bs_set_data(
target = "#foobar",
delay = dseconds(1),
placement = c("right", "auto")
) %>%
bs_s... | /data/genthat_extracted_code/bsplus/examples/bs_set_data.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 349 | r | library(bsplus)
### Name: bs_set_data
### Title: Sets Bootstrap data- and aria- attributes.
### Aliases: bs_set_data bs_set_aria
### ** Examples
library("htmltools")
library("lubridate")
tags$div() %>%
bs_set_data(
target = "#foobar",
delay = dseconds(1),
placement = c("right", "auto")
) %>%
bs_s... |
Company_Data <- read.csv("C:/Users/DELL/Desktop/New folder/DATA SCIENCE/ASSIGNMENTS/DECISION TREE st/Company_Data.csv")
View(Company_Data)
install.packages("C50")
install.packages("tree")
install.packages("caret")
install.packages("party")
library(C50)
library(tree)
library(caret)
library(party)
library(gmode... | /R company data decision tree.R | no_license | krithimr/KRITHI-CODE | R | false | false | 1,243 | r | Company_Data <- read.csv("C:/Users/DELL/Desktop/New folder/DATA SCIENCE/ASSIGNMENTS/DECISION TREE st/Company_Data.csv")
View(Company_Data)
install.packages("C50")
install.packages("tree")
install.packages("caret")
install.packages("party")
library(C50)
library(tree)
library(caret)
library(party)
library(gmode... |
## Code to convert complete record table to 10 minute independent records
## Original by LLB, 13/07/2018
## Modified by KG, 30/10/2018
## Get the libraries you need
library(dplyr)
library(data.table) ## tbh I don't know if you actually need this one
library(progress)
setwd("~/Dropbox/projects/GORONGOSA2/Camera Trap G... | /scripts/01-cleaning/05a-recordtable-all-to-10min.R | no_license | kaitlyngaynor/gorongosa-camera-traps | R | false | false | 2,681 | r | ## Code to convert complete record table to 10 minute independent records
## Original by LLB, 13/07/2018
## Modified by KG, 30/10/2018
## Get the libraries you need
library(dplyr)
library(data.table) ## tbh I don't know if you actually need this one
library(progress)
setwd("~/Dropbox/projects/GORONGOSA2/Camera Trap G... |
#!/usr/bin/env Rscript
####################
#
# Parameters:
# 1 - File to scale
# 2 - File containing scale values
# 3 - File containing center values
# 4 - Output file with scaling dataset
#
###################
args <- commandArgs(trailingOnly = TRUE)
validation = read.csv(args[1], check.names=FALSE)
center_values <-... | /powerModelling/prototype/configuration files/INTEL Xeon X5650/scaling_data_validation.r | permissive | bsc-renewit/d2.2 | R | false | false | 1,378 | r | #!/usr/bin/env Rscript
####################
#
# Parameters:
# 1 - File to scale
# 2 - File containing scale values
# 3 - File containing center values
# 4 - Output file with scaling dataset
#
###################
args <- commandArgs(trailingOnly = TRUE)
validation = read.csv(args[1], check.names=FALSE)
center_values <-... |
test_GenotypeDataByChr <- function(){
directory <- file.path(tempdir(), paste(sample(c (letters, LETTERS), 10, replace=T), collapse=""))
dir.create(directory)
prefix <- paste(sample(c(letters, LETTERS), 10, replace=T), collapse="")
simulateImputedGenotypeData(directory, prefix)
bcData <- GenotypeD... | /GWASbyChr/inst/unitTests/GenotypeDataByChr_test.R | no_license | UW-GAC/QCpipeline | R | false | false | 2,334 | r | test_GenotypeDataByChr <- function(){
directory <- file.path(tempdir(), paste(sample(c (letters, LETTERS), 10, replace=T), collapse=""))
dir.create(directory)
prefix <- paste(sample(c(letters, LETTERS), 10, replace=T), collapse="")
simulateImputedGenotypeData(directory, prefix)
bcData <- GenotypeD... |
# STARS - Summer 2021 : Data Visualization With R #############################
rm(list=ls())
# Be sure to adjust the file path to your working directory:
setwd("/Users/mikeseese/Desktop/STARS - Summer 2021/Stars_R_WorkingDirectory")
## Loading Necessary Packages ##################################################
l... | /DataVisualization.R | no_license | mfseese/STARS_Summer2021 | R | false | false | 19,864 | r | # STARS - Summer 2021 : Data Visualization With R #############################
rm(list=ls())
# Be sure to adjust the file path to your working directory:
setwd("/Users/mikeseese/Desktop/STARS - Summer 2021/Stars_R_WorkingDirectory")
## Loading Necessary Packages ##################################################
l... |
#############################################################################
######### MAKE CHECKERBOARD 2 EVALUATION GROUPS #############
#############################################################################
get.checkerboard2 <- function(occ, env, bg.coords, aggregation.factor){
if (length(aggregation.facto... | /R/get.checkerboard2.R | no_license | xavi-rp/ENMeval | R | false | false | 2,290 | r | #############################################################################
######### MAKE CHECKERBOARD 2 EVALUATION GROUPS #############
#############################################################################
get.checkerboard2 <- function(occ, env, bg.coords, aggregation.factor){
if (length(aggregation.facto... |
\name{bayesPop-package}
\alias{bayesPop-package}
\alias{bayesPop}
\docType{package}
\title{
Probabilistic Population Projection
}
\description{
The package allows to generate population projections for all countries of the world using several probabilistic components, such as total fertility rate (TFR) and life expecta... | /man/bayesPop-package.Rd | no_license | raquelrguima/bayesPop | R | false | false | 4,297 | rd | \name{bayesPop-package}
\alias{bayesPop-package}
\alias{bayesPop}
\docType{package}
\title{
Probabilistic Population Projection
}
\description{
The package allows to generate population projections for all countries of the world using several probabilistic components, such as total fertility rate (TFR) and life expecta... |
#-------------------------------------------------------------------------
#------ Advanced plotting in R using ggplot
#------ http://r-statistics.co/Complete-Ggplot2-Tutorial-Part1-With-R-Code.html
#------ http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html
#-------------------------------------------------... | /R/Part 4 - Advanced visualizations.R | permissive | sherrytp/bc_f19_econ | R | false | false | 41,230 | r | #-------------------------------------------------------------------------
#------ Advanced plotting in R using ggplot
#------ http://r-statistics.co/Complete-Ggplot2-Tutorial-Part1-With-R-Code.html
#------ http://tutorials.iq.harvard.edu/R/Rgraphics/Rgraphics.html
#-------------------------------------------------... |
library("adegenet", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("ade4", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("factoextra", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
setwd("/Volumes/Brumfield_Lab_Drive/Rive... | /DAPC/dapc_pca_Saltator_coerulescens.R | permissive | henicorhina/Riverine_islands_code | R | false | false | 4,962 | r | library("adegenet", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("ade4", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
library("factoextra", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
setwd("/Volumes/Brumfield_Lab_Drive/Rive... |
\name{ci.pd}
\alias{ci.pd}
\title{
Compute confidence limits for a difference of two independent proportions.
}
\description{
The usual formula for the c.i. of at difference of proportions is
inaccurate. Newcombe has compared 11 methods and method 10 in his
paper looks like a winner. It is implemented here.
}
\... | /man/ci.pd.Rd | no_license | cran/Epi | R | false | false | 2,547 | rd | \name{ci.pd}
\alias{ci.pd}
\title{
Compute confidence limits for a difference of two independent proportions.
}
\description{
The usual formula for the c.i. of at difference of proportions is
inaccurate. Newcombe has compared 11 methods and method 10 in his
paper looks like a winner. It is implemented here.
}
\... |
## takes an invertible matrix and returns an object which has functions
## for storing its value and inverse in order set,get,setinverse,getinverse
## create an invertible matrix (invertible matrix is a square matrix)
## a <- matrix(1:4,2,2)
## test cacheMtrxVar <- makeCacheMatrix(a)
## test cacheSolveVar <- cacheSolv... | /cachematrix.R | no_license | brijrajsingh/ProgrammingAssignment2 | R | false | false | 1,933 | r | ## takes an invertible matrix and returns an object which has functions
## for storing its value and inverse in order set,get,setinverse,getinverse
## create an invertible matrix (invertible matrix is a square matrix)
## a <- matrix(1:4,2,2)
## test cacheMtrxVar <- makeCacheMatrix(a)
## test cacheSolveVar <- cacheSolv... |
#Visualizations for SciClone outputs
#Number of files in directory
f <- list.files("/mnt/sc/geoMatch_testing/Results",pattern="*.csv")
iterations <- length(f)
for(i in 1:iterations)
{
if(i == 1)
{
record.dataframe <- read.csv(paste("/mnt/sc/geoMatch_testing/Results/",f[i],sep=""))
}
else
{
record.dat... | /Visualization.R | no_license | aiddata/SimTests | R | false | false | 1,476 | r | #Visualizations for SciClone outputs
#Number of files in directory
f <- list.files("/mnt/sc/geoMatch_testing/Results",pattern="*.csv")
iterations <- length(f)
for(i in 1:iterations)
{
if(i == 1)
{
record.dataframe <- read.csv(paste("/mnt/sc/geoMatch_testing/Results/",f[i],sep=""))
}
else
{
record.dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CBPSMain.R
\name{CBPS}
\alias{CBPS}
\title{Covariate Balancing Propensity Score (CBPS) Estimation}
\usage{
CBPS(
formula,
data,
na.action,
ATT = 1,
iterations = 1000,
standardize = TRUE,
method = "over",
twostep ... | /man/CBPS.Rd | no_license | cran/CBPS | R | false | true | 9,085 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CBPSMain.R
\name{CBPS}
\alias{CBPS}
\title{Covariate Balancing Propensity Score (CBPS) Estimation}
\usage{
CBPS(
formula,
data,
na.action,
ATT = 1,
iterations = 1000,
standardize = TRUE,
method = "over",
twostep ... |
#' Report config: generate template
#'
#' @param df a dataframe as retrieved by import_data_haridwar()
#' @param temporal_aggregation Set the following values if data should be
#' summarised to e.g. 10 minutes (600) or hourly (3600), daily ("day")
#' or monthly ("month") median values
#' (default: "raw")
#' @param outp... | /R/report_configuration.R | permissive | KWB-R/kwb.pilot | R | false | false | 4,445 | r | #' Report config: generate template
#'
#' @param df a dataframe as retrieved by import_data_haridwar()
#' @param temporal_aggregation Set the following values if data should be
#' summarised to e.g. 10 minutes (600) or hourly (3600), daily ("day")
#' or monthly ("month") median values
#' (default: "raw")
#' @param outp... |
####################################################################
#' Linear Regression Results Plot
#'
#' This function plots a Linear Regression Result
#'
#' @param tag Vector. Real known label
#' @param score Vector. Predicted value or model's result
#' @param subtitle Character. Subitle to show in plot
#' @para... | /linearPlot.r | no_license | jdelasrivas-lab/advanced_r_plots | R | false | false | 3,803 | r | ####################################################################
#' Linear Regression Results Plot
#'
#' This function plots a Linear Regression Result
#'
#' @param tag Vector. Real known label
#' @param score Vector. Predicted value or model's result
#' @param subtitle Character. Subitle to show in plot
#' @para... |
#PLot3.R
#Coursera
#Exploratory Data Analysis
install.packages("lubridate")
library(lubridate)
install.packages("ggplot2")
library(ggplot2)
setwd("C:/Users/jhuberty/Desktop/Coursera_data_science/4 Exploratory Data Analysis")
Sys.setenv(TZ='GMT')
consumption <- read.table("data/household_power_consumption.txt", sep... | /plot3.R | no_license | johnhuberty/ExData_Plotting1 | R | false | false | 2,128 | r | #PLot3.R
#Coursera
#Exploratory Data Analysis
install.packages("lubridate")
library(lubridate)
install.packages("ggplot2")
library(ggplot2)
setwd("C:/Users/jhuberty/Desktop/Coursera_data_science/4 Exploratory Data Analysis")
Sys.setenv(TZ='GMT')
consumption <- read.table("data/household_power_consumption.txt", sep... |
loadData = function(){
unzip("exdata-data-household_power_consumption.zip")
filename = "household_power_consumption.txt"
df = read.table(filename, sep=";",header = TRUE, na.strings='?')
if(nrow(df) != 2075259 || ncol(df) != 9) {
msg = paste("Wrong number of rows or columns in", filename, sep = " ")
... | /loadData.R | no_license | steppat/ExData_Plotting1 | R | false | false | 727 | r |
loadData = function(){
unzip("exdata-data-household_power_consumption.zip")
filename = "household_power_consumption.txt"
df = read.table(filename, sep=";",header = TRUE, na.strings='?')
if(nrow(df) != 2075259 || ncol(df) != 9) {
msg = paste("Wrong number of rows or columns in", filename, sep = " ")
... |
#BuildGenBankDB.R
BuildGenBankDB <- function(dataDir, ext="*.gbff.gz", range=c(1,Inf), reg.exp=FALSE, ...)
{
#Check arguments
if (length(range)==1) range <- c(1, range)
#Search for GenBank files
cat("Searching for GenBank files ...\n")
if (reg.exp) ext <- glob2rx(ext)
files <- dir(dataDir, ext, recursive=TRUE, fu... | /GenDB/R/BuildGenBankDB.R | no_license | hartag/GenDB | R | false | false | 4,140 | r | #BuildGenBankDB.R
BuildGenBankDB <- function(dataDir, ext="*.gbff.gz", range=c(1,Inf), reg.exp=FALSE, ...)
{
#Check arguments
if (length(range)==1) range <- c(1, range)
#Search for GenBank files
cat("Searching for GenBank files ...\n")
if (reg.exp) ext <- glob2rx(ext)
files <- dir(dataDir, ext, recursive=TRUE, fu... |
library(ggplot2)
library(plyr)
## useful inside reorder(), to invert the resulting factor levels
neglength <- function(x) -1 * length(x)
jWidth <- 5
jHeight <- 4
mlu_teams <- read.delim(file.path("..", "data", "mlu-teams.tsv"),
stringsAsFactors = FALSE)
mlu_cols <- with(mlu_teams, setNames(co... | /scripts/15_plot-goal-conversion-rate-by-possession.r | no_license | jennybc/vanNH | R | false | false | 4,967 | r | library(ggplot2)
library(plyr)
## useful inside reorder(), to invert the resulting factor levels
neglength <- function(x) -1 * length(x)
jWidth <- 5
jHeight <- 4
mlu_teams <- read.delim(file.path("..", "data", "mlu-teams.tsv"),
stringsAsFactors = FALSE)
mlu_cols <- with(mlu_teams, setNames(co... |
library(SurvBoost)
### Name: strata.boosting
### Title: Stratification function
### Aliases: strata.boosting
### Keywords: boosting gradient
### ** Examples
data <- simulate_survival_cox(true_beta=c(1,1,1,1,1,0,0,0,0,0))
strata.boosting(data$strata_idx, data$time)
| /data/genthat_extracted_code/SurvBoost/examples/strata.boosting.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 273 | r | library(SurvBoost)
### Name: strata.boosting
### Title: Stratification function
### Aliases: strata.boosting
### Keywords: boosting gradient
### ** Examples
data <- simulate_survival_cox(true_beta=c(1,1,1,1,1,0,0,0,0,0))
strata.boosting(data$strata_idx, data$time)
|
## VALIDATED by Tarak 2018-04-18
test_that("test renewal -- McShane results", {
print("~~~~~~ renewal regression-- McShane results ~~~~~~~~")
fn <- system.file("extdata", "McShane_paperResults.RDS", package = "Countr")
res <- readRDS(fn)
y <- res$y
data <- res$data
form <-
Y ~ GERMAN +... | /fuzzedpackages/Countr/inst/examples/example-RenewalRegression.R | no_license | akhikolla/testpackages | R | false | false | 4,169 | r | ## VALIDATED by Tarak 2018-04-18
test_that("test renewal -- McShane results", {
print("~~~~~~ renewal regression-- McShane results ~~~~~~~~")
fn <- system.file("extdata", "McShane_paperResults.RDS", package = "Countr")
res <- readRDS(fn)
y <- res$y
data <- res$data
form <-
Y ~ GERMAN +... |
#' Stability selection based on penalized conditional logistic regression
#'
#' Performs stability selection for conditional logistic regression models with
#' L1 and L2 penalty.
#'
#'
#' @inheritParams penalized.clr
#' @inheritParams subsample.clr
#' @param lambda.seq a sequence of non-negative value to be used as tu... | /R/stable.clr.R | no_license | cran/penalizedclr | R | false | false | 4,134 | r | #' Stability selection based on penalized conditional logistic regression
#'
#' Performs stability selection for conditional logistic regression models with
#' L1 and L2 penalty.
#'
#'
#' @inheritParams penalized.clr
#' @inheritParams subsample.clr
#' @param lambda.seq a sequence of non-negative value to be used as tu... |
context("dc_oai_listsets")
test_that("dc_oai_listsets", {
skip_on_cran()
aa <- dc_oai_listsets()
expect_is(aa, "data.frame")
expect_is(aa, "oai_df")
expect_is(aa$setSpec, "character")
expect_is(aa$setName, "character")
})
test_that("dc_oai_listsets - curl options", {
skip_on_cran()
library("httr")
... | /rdatacite/tests/testthat/test-dc_oai_listsets.R | no_license | ingted/R-Examples | R | false | false | 718 | r | context("dc_oai_listsets")
test_that("dc_oai_listsets", {
skip_on_cran()
aa <- dc_oai_listsets()
expect_is(aa, "data.frame")
expect_is(aa, "oai_df")
expect_is(aa$setSpec, "character")
expect_is(aa$setName, "character")
})
test_that("dc_oai_listsets - curl options", {
skip_on_cran()
library("httr")
... |
#' Plot sample count correlations
#' @export
#' @param data a list of SummarizedExperiment objects from atacr::make_counts()
#' @param which the subdivision of the genome to calculate correlations either 'whole_genome', 'bait_windows' or 'non_bait_windows'
#' @param method the correlation method to use. Any supported b... | /R/figures.R | no_license | TeamMacLean/atacr | R | false | false | 16,300 | r | #' Plot sample count correlations
#' @export
#' @param data a list of SummarizedExperiment objects from atacr::make_counts()
#' @param which the subdivision of the genome to calculate correlations either 'whole_genome', 'bait_windows' or 'non_bait_windows'
#' @param method the correlation method to use. Any supported b... |
#' List Accounts
#'
#' Get a list of trading accounts.
#' @export
#' @family accounts
#' @references \url{https://docs.gdax.com/#list-accounts}
get_accounts <- function() {
gdax_get("accounts")
}
#' Get an Account
#'
#' Information for a single account. Use this endpoint when you know the account_id.
#'
#' @param ac... | /R/accounts.r | permissive | jfontestad/gdaxr | R | false | false | 1,605 | r | #' List Accounts
#'
#' Get a list of trading accounts.
#' @export
#' @family accounts
#' @references \url{https://docs.gdax.com/#list-accounts}
get_accounts <- function() {
gdax_get("accounts")
}
#' Get an Account
#'
#' Information for a single account. Use this endpoint when you know the account_id.
#'
#' @param ac... |
################################################
# Spatially-explicit aquatic plant growth #
# Floating plant - submerged plant competition #
# Now compatible with new LIST structure #
# #
# By: Michael J. McCann #
# Major revision: July 20... | /SUMMARY/09-11-2014 - output_for_committee - larger lakes/RUNITALL_for_committee.R | no_license | mccannecology/model | R | false | false | 10,591 | r | ################################################
# Spatially-explicit aquatic plant growth #
# Floating plant - submerged plant competition #
# Now compatible with new LIST structure #
# #
# By: Michael J. McCann #
# Major revision: July 20... |
## Given the properties we can read off from the
## PH diagram in Eavor's patent, basic properties
## of ethane, ammonia, and the 60:40 mixing
## proportion, we want to complete the property list
## for the vertices in the power cycle - e.g.,
## temperature, enthalpy, and others if needed.
## First, we source the af... | /02_complete_vertex_values.R | no_license | kabagg/chbe_401_project | R | false | false | 11,215 | r | ## Given the properties we can read off from the
## PH diagram in Eavor's patent, basic properties
## of ethane, ammonia, and the 60:40 mixing
## proportion, we want to complete the property list
## for the vertices in the power cycle - e.g.,
## temperature, enthalpy, and others if needed.
## First, we source the af... |
library(rhdf5)
library(GenomicAlignments)
library(GenomicFeatures)
library(ggplot2)
#'########################################################################################
# Read functions && Find overlaps ####
#'###################################################... | /read_plot_functions.R | no_license | ltilo/INF219_PolyA-Project | R | false | false | 8,620 | r | library(rhdf5)
library(GenomicAlignments)
library(GenomicFeatures)
library(ggplot2)
#'########################################################################################
# Read functions && Find overlaps ####
#'###################################################... |
# Test case 146
Data_1 <- matrix(c(3, 5, 8, 1, 1, 2,
7, 1, 4, 1, 5, 8,
2, 5, 3, 1, 2, 1),byrow=TRUE, nrow=3);
Input = matrix(c(3, 8, 1,
7, 4, 1,
2, 3, 1), byrow = TRUE, nrow = 3);
Output = matrix(c(5, 1,
1, 5,
... | /2_nsbm_approach/Nsbm.function/tests/Test_case_146.R | no_license | thomaskrupa/thesis | R | false | false | 1,729 | r | # Test case 146
Data_1 <- matrix(c(3, 5, 8, 1, 1, 2,
7, 1, 4, 1, 5, 8,
2, 5, 3, 1, 2, 1),byrow=TRUE, nrow=3);
Input = matrix(c(3, 8, 1,
7, 4, 1,
2, 3, 1), byrow = TRUE, nrow = 3);
Output = matrix(c(5, 1,
1, 5,
... |
#' Plot Morphopace
#'
#' @description
#'
#' Plots a morphospace using the output from ordinate_cladistic_matrix.
#'
#' @param pcoa_input The main input in the format output from \link{ordinate_cladistic_matrix}.
#' @param x_axis Which ordination axis to plot as the x-axis (defaults to 1).
#' @param y_axis Which ordinat... | /R/plot_morphospace.R | no_license | cran/Claddis | R | false | false | 24,390 | r | #' Plot Morphopace
#'
#' @description
#'
#' Plots a morphospace using the output from ordinate_cladistic_matrix.
#'
#' @param pcoa_input The main input in the format output from \link{ordinate_cladistic_matrix}.
#' @param x_axis Which ordination axis to plot as the x-axis (defaults to 1).
#' @param y_axis Which ordinat... |
########################################################################
path="LncEvoDevo/"
pathExpression=paste(path,"results/expression_estimation/", sep="")
pathGeneOverlaps=paste(path,"results/gene_overlaps/",sep="")
set.seed(19)
source("normalization.R")
type="NonOverlappingExonBlocks_StringTie"
s... | /expression_estimation/combine.read.counts.nooverlap.R | no_license | anecsulea/LncEvoDevo | R | false | false | 4,201 | r | ########################################################################
path="LncEvoDevo/"
pathExpression=paste(path,"results/expression_estimation/", sep="")
pathGeneOverlaps=paste(path,"results/gene_overlaps/",sep="")
set.seed(19)
source("normalization.R")
type="NonOverlappingExonBlocks_StringTie"
s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image_processing.R
\name{image_reg_visium}
\alias{image_reg_visium}
\title{Image registration to 10x Visium fiducials}
\usage{
image_reg_visium(img)
}
\arguments{
\item{img}{image pointer}
}
\value{
}
\description{
Image registration to 10x ... | /man/image_reg_visium.Rd | permissive | genesofeve/astRal | R | false | true | 353 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image_processing.R
\name{image_reg_visium}
\alias{image_reg_visium}
\title{Image registration to 10x Visium fiducials}
\usage{
image_reg_visium(img)
}
\arguments{
\item{img}{image pointer}
}
\value{
}
\description{
Image registration to 10x ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.