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 |
|---|---|---|---|---|---|---|---|---|---|
#### SET-UP --------------------------------------------------------------------
library(here)
source(here('scripts/genomics/admixtools/admixtools_plot_fun.R'))
source(here('scripts/genomics/gphocs/gphocs_plot_fun.R'))
source(here('scripts/gphocs/gphocs_plot_fun_msp3.R'))
## Output file:
figfile <- here('figs/ms/SuppF... | /scripts/figs_ms/SuppFig_geneflow-clade1.R | no_license | jelmerp/lemurs_msp3 | R | false | false | 3,423 | r | #### SET-UP --------------------------------------------------------------------
library(here)
source(here('scripts/genomics/admixtools/admixtools_plot_fun.R'))
source(here('scripts/genomics/gphocs/gphocs_plot_fun.R'))
source(here('scripts/gphocs/gphocs_plot_fun_msp3.R'))
## Output file:
figfile <- here('figs/ms/SuppF... |
library(gridExtra)
library(vcd)
test_pairwise_assoc <- function (df, include=NULL, exclude=NULL, sig.level=NULL, include.group=NULL, exclude.group=NULL) {
tests <- data.frame(a = character(0), b = character(0), type = character(0), p = numeric(0), R = numeric(0), stringsAsFactors=F)
for (i in 1:(ncol(df)-1)) {
... | /associations.R | no_license | Gig77/ccri-fiona | R | false | false | 6,617 | r | library(gridExtra)
library(vcd)
test_pairwise_assoc <- function (df, include=NULL, exclude=NULL, sig.level=NULL, include.group=NULL, exclude.group=NULL) {
tests <- data.frame(a = character(0), b = character(0), type = character(0), p = numeric(0), R = numeric(0), stringsAsFactors=F)
for (i in 1:(ncol(df)-1)) {
... |
# IGVsnapshots.R
# Generate an IGV batch file to look at all regions with peaks (just do one snapshot if they overlap)
# Randy Johnson
# CCR Collaborative Bioinformatics Resource at Frederick National Laboratory
# Leidos Biomedical Research, Inc
vars <- commandArgs(TRUE)
tmp <- strsplit(vars, '=')
vars <- as.list(s... | /Projects/ccbr577/Scripts/IGVsnapshots.R | no_license | CCBR/CCBR-Commons | R | false | false | 3,755 | r | # IGVsnapshots.R
# Generate an IGV batch file to look at all regions with peaks (just do one snapshot if they overlap)
# Randy Johnson
# CCR Collaborative Bioinformatics Resource at Frederick National Laboratory
# Leidos Biomedical Research, Inc
vars <- commandArgs(TRUE)
tmp <- strsplit(vars, '=')
vars <- as.list(s... |
\alias{gtkTextIterCanInsert}
\name{gtkTextIterCanInsert}
\title{gtkTextIterCanInsert}
\description{Considering the default editability of the buffer, and tags that
affect editability, determines whether text inserted at \code{iter} would
be editable. If text inserted at \code{iter} would be editable then the
user shoul... | /man/gtkTextIterCanInsert.Rd | no_license | cran/RGtk2.10 | R | false | false | 860 | rd | \alias{gtkTextIterCanInsert}
\name{gtkTextIterCanInsert}
\title{gtkTextIterCanInsert}
\description{Considering the default editability of the buffer, and tags that
affect editability, determines whether text inserted at \code{iter} would
be editable. If text inserted at \code{iter} would be editable then the
user shoul... |
dadosCrimes = read.csv("USArrests.csv")
par(mfrow=c(1,1))
vetorSomaCrimes = c()
for(i in 1:length(dadosCrimes[,1]))
{
pop = as.numeric(dadosCrimes[i,][4])
soma = sum(dadosCrimes[i,][2],dadosCrimes[i,][3],dadosCrimes[i,][5])
vetorSomaCrimes[i] = soma/pop
}
bpEstadosMaisCrimes = barplot(vetorSomaCrim... | /companias/crimesEUA.r | no_license | bernardomsvieira/Rproject | R | false | false | 918 | r | dadosCrimes = read.csv("USArrests.csv")
par(mfrow=c(1,1))
vetorSomaCrimes = c()
for(i in 1:length(dadosCrimes[,1]))
{
pop = as.numeric(dadosCrimes[i,][4])
soma = sum(dadosCrimes[i,][2],dadosCrimes[i,][3],dadosCrimes[i,][5])
vetorSomaCrimes[i] = soma/pop
}
bpEstadosMaisCrimes = barplot(vetorSomaCrim... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blblm.R
\name{sigma.blblm}
\alias{sigma.blblm}
\title{obtain sigma}
\usage{
\method{sigma}{blblm}(object, confidence = FALSE, level = 0.95, ...)
}
\arguments{
\item{object}{blblm class}
\item{confidence}{need confidence interval or not}
\it... | /man/sigma.blblm.Rd | permissive | shihanjing/sta141c-project | R | false | true | 416 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blblm.R
\name{sigma.blblm}
\alias{sigma.blblm}
\title{obtain sigma}
\usage{
\method{sigma}{blblm}(object, confidence = FALSE, level = 0.95, ...)
}
\arguments{
\item{object}{blblm class}
\item{confidence}{need confidence interval or not}
\it... |
blockstats <- function(m1, m0, coefname = "GENOTYPE") {
stopifnot(all.equal(class(m1), class(m0)))
## should handle special case where class(m0)=="coxph.null"
UseMethod("blockstats", m1)
}
blockstats.lm <- function(m1, m0, coefname = "GENOTYPE") {
beta <- unname(coef(m1)[coefname])
se <- unname(sqrt(vcov(m1)... | /R/blockassoc.R | no_license | tengfei/gtx | R | false | false | 5,733 | r | blockstats <- function(m1, m0, coefname = "GENOTYPE") {
stopifnot(all.equal(class(m1), class(m0)))
## should handle special case where class(m0)=="coxph.null"
UseMethod("blockstats", m1)
}
blockstats.lm <- function(m1, m0, coefname = "GENOTYPE") {
beta <- unname(coef(m1)[coefname])
se <- unname(sqrt(vcov(m1)... |
#' Make a magrader submission object
#'
#' A magrader submission object contains six parts:
#' 1. `answer` - The student's original answer (stored as a string)
#' 2. `focus` - An optional portion of the student's code parsed as an expression tree
#' 3. `status` - The current status (pass, fail, warn)
#' 4. `warnings` -... | /R/make_submission.R | no_license | garrettgman/magrader | R | false | false | 1,728 | r | #' Make a magrader submission object
#'
#' A magrader submission object contains six parts:
#' 1. `answer` - The student's original answer (stored as a string)
#' 2. `focus` - An optional portion of the student's code parsed as an expression tree
#' 3. `status` - The current status (pass, fail, warn)
#' 4. `warnings` -... |
# Let d(n) be defined as the sum of proper divisors of n
# (numbers less than n which divide evenly into n).
# If d(a) <- b and d(b) <- a, where a ≠ b, then a and b are an
# amicable pair and each of a and b are called amicable numbers.
# For example, the proper divisors of 220 are
# 1, 2, 4, 5, 10, 11, 20, 22, 44, 55... | /021_amicable_numbers.R | no_license | broepke/ProjectEuler | R | false | false | 1,024 | r | # Let d(n) be defined as the sum of proper divisors of n
# (numbers less than n which divide evenly into n).
# If d(a) <- b and d(b) <- a, where a ≠ b, then a and b are an
# amicable pair and each of a and b are called amicable numbers.
# For example, the proper divisors of 220 are
# 1, 2, 4, 5, 10, 11, 20, 22, 44, 55... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## The function makes a special matrix on which we can perform 4 different functions as shown Below
makeCacheMatrix <- function(x = matrix()) {
i<-NULL
set<-function(y){
x<<-y
... | /cachematrix.R | no_license | vivek3101/ProgrammingAssignment2 | R | false | false | 873 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## The function makes a special matrix on which we can perform 4 different functions as shown Below
makeCacheMatrix <- function(x = matrix()) {
i<-NULL
set<-function(y){
x<<-y
... |
#'
#'
#'Samineh Bagheri
#'11.03.2016
#'Cologne University of Applied Sciences
#'
#'
#call all the necessary functions and libraries
#If you recieve by executing the following command
#Please consider installing the missing Packages
source("sourceSOCR.R")
nrun=1
KS<-c(40,30,20,10,5,4,3,2,1)
for(k in KS){
... | /callSOCRAng.R | no_license | saminehbagheri/SOCU | R | false | false | 2,006 | r | #'
#'
#'Samineh Bagheri
#'11.03.2016
#'Cologne University of Applied Sciences
#'
#'
#call all the necessary functions and libraries
#If you recieve by executing the following command
#Please consider installing the missing Packages
source("sourceSOCR.R")
nrun=1
KS<-c(40,30,20,10,5,4,3,2,1)
for(k in KS){
... |
#
datasetInputPar <- reactive({
switch(input$datasetParam,
"Species" = df_products_upload(),
"Environmental" = df_env())
})
observe({
if(input$datasetParam == "Species"){
var_suggest <- rownames(df_products_upload())
updateSelectInput(session, "SetsVarsTests",
choic... | /inst/shinyApp/asset/serv/fun_parametric.R | no_license | Lucel2448/rstructBio | R | false | false | 3,198 | r |
#
datasetInputPar <- reactive({
switch(input$datasetParam,
"Species" = df_products_upload(),
"Environmental" = df_env())
})
observe({
if(input$datasetParam == "Species"){
var_suggest <- rownames(df_products_upload())
updateSelectInput(session, "SetsVarsTests",
choic... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yupana_analysis.R
\name{yupana_analysis}
\alias{yupana_analysis}
\title{Fieldbook analysis report}
\usage{
yupana_analysis(
data,
response,
model_factors,
comparison,
test_comp = "SNK",
sig_level = 0.05,
plot_dist = "boxplot",
... | /man/yupana_analysis.Rd | no_license | PoquisAngie/inti | R | false | true | 1,421 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yupana_analysis.R
\name{yupana_analysis}
\alias{yupana_analysis}
\title{Fieldbook analysis report}
\usage{
yupana_analysis(
data,
response,
model_factors,
comparison,
test_comp = "SNK",
sig_level = 0.05,
plot_dist = "boxplot",
... |
library(tensorflow)
# define output folder
model_dir <- tempfile()
# define simple string-based tensor operations
sess <- tf$Session()
input1 <- tf$placeholder(tf$string)
input2 <- tf$placeholder(tf$string)
output1 <- tf$string_join(inputs = c("Input1: ", input1, "!"))
output2 <- tf$string_join(inputs = c("Input2: ",... | /tests/testthat/models/tensorflow-multiples.R | no_license | zamorarr/tfdeploy | R | false | false | 525 | r | library(tensorflow)
# define output folder
model_dir <- tempfile()
# define simple string-based tensor operations
sess <- tf$Session()
input1 <- tf$placeholder(tf$string)
input2 <- tf$placeholder(tf$string)
output1 <- tf$string_join(inputs = c("Input1: ", input1, "!"))
output2 <- tf$string_join(inputs = c("Input2: ",... |
setwd("C:/Users/Ben/Documents/Pred_Obs/Bayesian")
sink("SingleSlope.jags")
cat("model{
for(i in 1:length(y)){
y[i] ~ dbern(p[i])
logit(p[i]) <- alpha[Species[i]] + beta * dist[i] + gamma * pow(dist[i],2)
}
for (j in 1:s){
alpha[j] ~ dnorm(intercept,tauIntercept)
}
beta ~ dno... | /Bayesian/SingleSlope.R | no_license | bw4sz/Pred_Obs | R | false | false | 511 | r | setwd("C:/Users/Ben/Documents/Pred_Obs/Bayesian")
sink("SingleSlope.jags")
cat("model{
for(i in 1:length(y)){
y[i] ~ dbern(p[i])
logit(p[i]) <- alpha[Species[i]] + beta * dist[i] + gamma * pow(dist[i],2)
}
for (j in 1:s){
alpha[j] ~ dnorm(intercept,tauIntercept)
}
beta ~ dno... |
##############################################################################/
##############################################################################/
#Basic code for plotting map of France
##############################################################################/
#########################################... | /botrymap.R | no_license | bbarres/VentuPlan | R | false | false | 16,589 | r | ##############################################################################/
##############################################################################/
#Basic code for plotting map of France
##############################################################################/
#########################################... |
library(HIBPwned)
### Name: HIBP_headers
### Title: Construct headers for a HIBP request. [Optional] Change the
### agent to make the request bespoke to you.
### Aliases: HIBP_headers
### ** Examples
HIBP_headers()
| /data/genthat_extracted_code/HIBPwned/examples/HIBP_headers.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 224 | r | library(HIBPwned)
### Name: HIBP_headers
### Title: Construct headers for a HIBP request. [Optional] Change the
### agent to make the request bespoke to you.
### Aliases: HIBP_headers
### ** Examples
HIBP_headers()
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/constructor.R
\name{ballgown-constructor}
\alias{ballgown-constructor}
\alias{ballgown}
\title{constructor function for ballgown objects}
\usage{
ballgown(
samples = NULL,
dataDir = NULL,
samplePattern = NULL,
bamfiles = NULL,
pData... | /man/ballgown-constructor.Rd | no_license | alyssafrazee/ballgown | R | false | true | 3,059 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/constructor.R
\name{ballgown-constructor}
\alias{ballgown-constructor}
\alias{ballgown}
\title{constructor function for ballgown objects}
\usage{
ballgown(
samples = NULL,
dataDir = NULL,
samplePattern = NULL,
bamfiles = NULL,
pData... |
## Programmer: Jacques du Plessis
## Date: 24 September 2017
## Course: Exploratory Data Analysis - Week 1
## Assignment Notes:
## 1. We will only be using data from the dates 2007-02-01 and 2007-02-02.
## 2. Read the data from just those dates rather than reading in the entire dataset
## 3. Convert the Date and Time... | /plot2.R | no_license | J-DP/ExData_Plotting1 | R | false | false | 2,034 | r |
## Programmer: Jacques du Plessis
## Date: 24 September 2017
## Course: Exploratory Data Analysis - Week 1
## Assignment Notes:
## 1. We will only be using data from the dates 2007-02-01 and 2007-02-02.
## 2. Read the data from just those dates rather than reading in the entire dataset
## 3. Convert the Date and Time... |
library(tidyverse)
library(ggplot2)
library(formattable)
library(sf)
library(readxl)
library(readr)
## getting the yield difference and GM difference between GSP and Approx
all_strips2019 <- st_read("W:/value_soil_testing_prj/Yield_data/finished/GIS_Results/All_Strips_2019_wgs84.shp")
all_strips2019 <- all_strips201... | /scrap_notes4_2019.R | no_license | JackieOuzman/soil_testing_final_report | R | false | false | 14,913 | r |
library(tidyverse)
library(ggplot2)
library(formattable)
library(sf)
library(readxl)
library(readr)
## getting the yield difference and GM difference between GSP and Approx
all_strips2019 <- st_read("W:/value_soil_testing_prj/Yield_data/finished/GIS_Results/All_Strips_2019_wgs84.shp")
all_strips2019 <- all_strips201... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/find_sets.R
\name{find_sets_biggest}
\alias{find_sets_biggest}
\title{Find the biggest sets within a sample_selection object}
\usage{
find_sets_biggest(sample_selection_object)
}
\arguments{
\item{sample_selection_object}{A list of ad... | /man/find_sets_biggest.Rd | no_license | jaspercooper/sampleselector | R | false | false | 532 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/find_sets.R
\name{find_sets_biggest}
\alias{find_sets_biggest}
\title{Find the biggest sets within a sample_selection object}
\usage{
find_sets_biggest(sample_selection_object)
}
\arguments{
\item{sample_selection_object}{A list of ad... |
156770957ab2f5f43aca2c877f5af191 query33_query57_1344n.qdimacs 1157 2673 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query33_query57_1344n/query33_query57_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 72 | r | 156770957ab2f5f43aca2c877f5af191 query33_query57_1344n.qdimacs 1157 2673 |
\encoding{UTF-8}
\name{roc.test}
\alias{roc.test}
\alias{roc.test.default}
\alias{roc.test.roc}
\alias{roc.test.formula}
\alias{roc.test.auc}
\alias{roc.test.smooth.roc}
\title{
Compare the AUC of two ROC curves
}
\description{
This function compares the AUC or partial AUC of two correlated (or
paired) or uncorr... | /man/roc.test.Rd | no_license | dcd2/pROC | R | false | false | 20,413 | rd | \encoding{UTF-8}
\name{roc.test}
\alias{roc.test}
\alias{roc.test.default}
\alias{roc.test.roc}
\alias{roc.test.formula}
\alias{roc.test.auc}
\alias{roc.test.smooth.roc}
\title{
Compare the AUC of two ROC curves
}
\description{
This function compares the AUC or partial AUC of two correlated (or
paired) or uncorr... |
########################
library(vmstools)
library(plyr)
library (lubridate)
library(rgdal)
library(raster)
library(rgeos)
library(ggplot2)
library("gridExtra")
library(scales)
library(rlang)
year <- 2017
##### -- set directories and load data -- #####
############################... | /WP5/scriptsDanishCaseStudy/2_Clean tacsat_JE.R | no_license | ices-tools-dev/FishPi2 | R | false | false | 13,337 | r | ########################
library(vmstools)
library(plyr)
library (lubridate)
library(rgdal)
library(raster)
library(rgeos)
library(ggplot2)
library("gridExtra")
library(scales)
library(rlang)
year <- 2017
##### -- set directories and load data -- #####
############################... |
library(ape)
testtree <- read.tree("12335_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12335_0_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/12335_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("12335_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12335_0_unrooted.txt") |
##read in the data from the "household_power_consumption.txt" file
power = read.table("household_power_consumption.txt", header = TRUE, sep = ";")
##subset out the required dates ie 1st and 2nd February 2007
power2 = subset(power, Date == "1/2/2007" | Date == "2/2/2007")
##convert factor variables to numeric
power2$G... | /plot4.R | no_license | vijay7979/ExData_Plotting1 | R | false | false | 2,016 | r | ##read in the data from the "household_power_consumption.txt" file
power = read.table("household_power_consumption.txt", header = TRUE, sep = ";")
##subset out the required dates ie 1st and 2nd February 2007
power2 = subset(power, Date == "1/2/2007" | Date == "2/2/2007")
##convert factor variables to numeric
power2$G... |
otus<-read.table("human_pathway.tsv",sep = "\t",header = T,row.names = 1)
map<-read.table("mappingfile_all.txt",sep = "\t",header=T,row.names=1)
tax<-read.table(file= "annotation_fish.tsv",header = T,row.names = 1,sep = "\t",quote = "")
otus_m<-as.matrix(otus)
tax_m<-as.matrix(tax)
otus_p = otu_table(otus_m, taxa_... | /Supp_Figures/FIG_S4G.r | no_license | Dayueban/Host-dependent-co-evolution-of-supplemented-probiotic | R | false | false | 2,606 | r | otus<-read.table("human_pathway.tsv",sep = "\t",header = T,row.names = 1)
map<-read.table("mappingfile_all.txt",sep = "\t",header=T,row.names=1)
tax<-read.table(file= "annotation_fish.tsv",header = T,row.names = 1,sep = "\t",quote = "")
otus_m<-as.matrix(otus)
tax_m<-as.matrix(tax)
otus_p = otu_table(otus_m, taxa_... |
# R script to map interaction eQTL for eGenes using adjusted expression data
# /apps/well/R/3.3.0/bin/Rscript --vanilla R.eQTL.r "Disease"
mod <- "Disease"
# mod <- "SCORE.1.Emirati.0.Non"
# load R packages
# suppressMessages(library(lme4))
# load necessary data
load("/well/jknight/AbuDhabiRNA/eQTL/eQTL.25PCs.RData")... | /eQTL/Interaction_QTL.R | no_license | jknightlab/Abu-Dhabi | R | false | false | 4,823 | r | # R script to map interaction eQTL for eGenes using adjusted expression data
# /apps/well/R/3.3.0/bin/Rscript --vanilla R.eQTL.r "Disease"
mod <- "Disease"
# mod <- "SCORE.1.Emirati.0.Non"
# load R packages
# suppressMessages(library(lme4))
# load necessary data
load("/well/jknight/AbuDhabiRNA/eQTL/eQTL.25PCs.RData")... |
\name{findStartEnd}
\alias{findStartEnd}
\title{Detects the first January and the last december in a time series
}
\description{Clipping or windowing time series data often requires
detecting which year is the first full year in a dataset and which
year is the last full year. Some datasources "pad" out ... | /man/findStartEnd.Rd | no_license | cran/RghcnV3 | R | false | false | 1,318 | rd | \name{findStartEnd}
\alias{findStartEnd}
\title{Detects the first January and the last december in a time series
}
\description{Clipping or windowing time series data often requires
detecting which year is the first full year in a dataset and which
year is the last full year. Some datasources "pad" out ... |
#' @title MODIStsp main function
#' @description Main function for the MODIS Time Series Processing Tool
#' (MODIStsp)
#' @details The function is used to:
#' - initialize the processing (folder names, packages, etc.);
#' - launch the GUI ([MODIStsp_GUI()]) on interactive
#' execution, or load an options f... | /R/MODIStsp.R | no_license | cran/MODIStsp | R | false | false | 26,579 | r | #' @title MODIStsp main function
#' @description Main function for the MODIS Time Series Processing Tool
#' (MODIStsp)
#' @details The function is used to:
#' - initialize the processing (folder names, packages, etc.);
#' - launch the GUI ([MODIStsp_GUI()]) on interactive
#' execution, or load an options f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbscan.R
\name{optics}
\alias{optics}
\title{OPTICS}
\usage{
optics(data = NULL, neighbors = NULL, edges = NULL, eps,
minPts = nrow(data) + 1, eps_cl, xi, verbose = getOption("verbose", TRUE))
}
\arguments{
\item{data}{Input data, where exa... | /man/optics.Rd | no_license | Laurae2/largeVis | R | false | true | 1,566 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbscan.R
\name{optics}
\alias{optics}
\title{OPTICS}
\usage{
optics(data = NULL, neighbors = NULL, edges = NULL, eps,
minPts = nrow(data) + 1, eps_cl, xi, verbose = getOption("verbose", TRUE))
}
\arguments{
\item{data}{Input data, where exa... |
##' .. content ..
##'
##' .. content ..
##' @param rawinput the raw input
##' @param sep the separator
##' @return
##' @keywords internal
##' @author
check_input = function(rawinput,sep = ','){
df = try({read.csv(text = rawinput,sep = sep)},silent = TRUE)
if (class(df) == 'try-error'){return('cannot read input')}
... | /R/app.R | no_license | ab604/search-all-assess-subset | R | false | false | 22,950 | r | ##' .. content ..
##'
##' .. content ..
##' @param rawinput the raw input
##' @param sep the separator
##' @return
##' @keywords internal
##' @author
check_input = function(rawinput,sep = ','){
df = try({read.csv(text = rawinput,sep = sep)},silent = TRUE)
if (class(df) == 'try-error'){return('cannot read input')}
... |
library(ggplot2)
file_names<-list.files(path = "clean_data/")
sds_data<-file_names[grep("sds", file_names)]
p1_mean=c()
p2_mean=c()
for (ind in 1:length(sds_data)) {
sds<-read.csv(paste("clean_data/", sds_data[ind], sep = ""))
sub_area<-sds[sds$lat <= 42.720 & sds$lat >= 42.694 & sds$lon <= 23.304 & sds$lon >= 23.... | /code/data_shown.R | no_license | y220/Stat_605_Group_Project | R | false | false | 2,580 | r | library(ggplot2)
file_names<-list.files(path = "clean_data/")
sds_data<-file_names[grep("sds", file_names)]
p1_mean=c()
p2_mean=c()
for (ind in 1:length(sds_data)) {
sds<-read.csv(paste("clean_data/", sds_data[ind], sep = ""))
sub_area<-sds[sds$lat <= 42.720 & sds$lat >= 42.694 & sds$lon <= 23.304 & sds$lon >= 23.... |
%% File Name: mi_dstat.Rd
%% File Version: 0.08
\name{mi_dstat}
\alias{mi_dstat}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Cohen's d Effect Size for Missingness Indicators
}
\description{
Computes Cohen's d effect size indicating whether missingness
on a variable is related to o... | /man/mi_dstat.Rd | no_license | cran/miceadds | R | false | false | 1,423 | rd | %% File Name: mi_dstat.Rd
%% File Version: 0.08
\name{mi_dstat}
\alias{mi_dstat}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Cohen's d Effect Size for Missingness Indicators
}
\description{
Computes Cohen's d effect size indicating whether missingness
on a variable is related to o... |
x <- 1
while (x <= 5) {
print(x)
x <- x + 1
} | /ProgramWhileLoop.R | no_license | pvanderhoeven/Rtutorial | R | false | false | 49 | r | x <- 1
while (x <= 5) {
print(x)
x <- x + 1
} |
# For each point along a time series apply random perturbations, evolve each perturbed point
# according to model equations and save results
# cleaning wd, loading functions and packages ------------------------------
rm(list = ls(all = TRUE))
source("code/functions/lotka_volterra.R")
source("code/functions/predator_... | /code/scripts/perturbation_analyses_synthetic_time_series.R | permissive | lucaspdmedeiros/ranking-species-sensitivity | R | false | false | 6,563 | r | # For each point along a time series apply random perturbations, evolve each perturbed point
# according to model equations and save results
# cleaning wd, loading functions and packages ------------------------------
rm(list = ls(all = TRUE))
source("code/functions/lotka_volterra.R")
source("code/functions/predator_... |
#' @title runCapR
#'
#' @description Runs CapR
#'
#' @param in_file An .fa file like from ExtractTranscriptomeSequence that is a
#' list of fasta sequences to be folded. Required
#' @param out_file Name of the CapR output file of nucleotide folding
#' probabilities. Default is in_file prefix.out
#' @param max_dist Inte... | /R/runCapR.R | no_license | vbusa1/nearBynding | R | false | false | 1,180 | r | #' @title runCapR
#'
#' @description Runs CapR
#'
#' @param in_file An .fa file like from ExtractTranscriptomeSequence that is a
#' list of fasta sequences to be folded. Required
#' @param out_file Name of the CapR output file of nucleotide folding
#' probabilities. Default is in_file prefix.out
#' @param max_dist Inte... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/samples.R
\name{tidy_sample_avail}
\alias{tidy_sample_avail}
\title{Tidy PBS samples data for \code{\link[=plot_sample_avail]{plot_sample_avail()}}}
\usage{
tidy_sample_avail(dat, year_range = NULL, ageing_method_codes = NULL)
}
\arguments{
\... | /man/tidy_sample_avail.Rd | no_license | chuanboguo/gfplot | R | false | true | 1,009 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/samples.R
\name{tidy_sample_avail}
\alias{tidy_sample_avail}
\title{Tidy PBS samples data for \code{\link[=plot_sample_avail]{plot_sample_avail()}}}
\usage{
tidy_sample_avail(dat, year_range = NULL, ageing_method_codes = NULL)
}
\arguments{
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/resilience_functions.R
\docType{data}
\name{oxygen}
\alias{oxygen}
\title{Simulated Dissolved Oxygen in River Spree}
\format{A data frame with 23425 rows and 5 variables}
\usage{
data(oxygen)
}
\description{
Data series "oxygen" are included ... | /man/oxygen.Rd | permissive | KWB-R/kwb.resilience | R | false | true | 1,247 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/resilience_functions.R
\docType{data}
\name{oxygen}
\alias{oxygen}
\title{Simulated Dissolved Oxygen in River Spree}
\format{A data frame with 23425 rows and 5 variables}
\usage{
data(oxygen)
}
\description{
Data series "oxygen" are included ... |
######################################################################
## Demonstrate APE with EpiEstim package
######################################################################
# Assumptions and modifications
# - compute EpiEstim for influenza and SARS data
# - get APE-regularised estimates for comparison
# Cle... | /APE_R/exampleData.R | no_license | kpzoo/model-selection-for-epidemic-renewal-models | R | false | false | 5,129 | r | ######################################################################
## Demonstrate APE with EpiEstim package
######################################################################
# Assumptions and modifications
# - compute EpiEstim for influenza and SARS data
# - get APE-regularised estimates for comparison
# Cle... |
#Data pull of Mass inshore survey
#-------------------------------------------------------------------------------
#User parameters
windows <- F
if(windows == T){
data.dir <- "L:\\EcoAP\\Data\\survey\\"
out.dir <- "L:\\EcoAP\\Data\\survey\\"
memory.limit(4000)
}
if(windows == F){
data.dir <- "slucey/EcoAP/Dat... | /Mass_survey.R | no_license | slucey/RSurvey | R | false | false | 3,324 | r | #Data pull of Mass inshore survey
#-------------------------------------------------------------------------------
#User parameters
windows <- F
if(windows == T){
data.dir <- "L:\\EcoAP\\Data\\survey\\"
out.dir <- "L:\\EcoAP\\Data\\survey\\"
memory.limit(4000)
}
if(windows == F){
data.dir <- "slucey/EcoAP/Dat... |
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
data <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
## Check that state and outcome are valid
sdata <- data[data$State == state, ]
if(length(sdata[, 1]) == 0) {
... | /rankhospital.R | no_license | kuoyliu/R-ProgAssignment3 | R | false | false | 1,516 | r | rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
data <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
## Check that state and outcome are valid
sdata <- data[data$State == state, ]
if(length(sdata[, 1]) == 0) {
... |
0163403bc313def49cc9452828b6570c dungeon_i25-m12-u5-v0.pddl_planlen=146.qdimacs 109835 995677 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i25-m12-u5-v0.pddl_planlen=146/dungeon_i25-m12-u5-v0.pddl_planlen=146.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 93 | r | 0163403bc313def49cc9452828b6570c dungeon_i25-m12-u5-v0.pddl_planlen=146.qdimacs 109835 995677 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bamlss.R
\name{BAMLSS}
\alias{BAMLSS}
\alias{family.BAMLSS}
\alias{mean.BAMLSS}
\alias{variance.BAMLSS}
\alias{skewness.BAMLSS}
\alias{kurtosis.BAMLSS}
\alias{random.BAMLSS}
\alias{pdf.BAMLSS}
\alias{log_pdf.BAMLSS}
\alias{cdf.BAMLSS}
\alias{... | /man/topmodels.Rd | no_license | cran/bamlss | R | false | true | 4,760 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bamlss.R
\name{BAMLSS}
\alias{BAMLSS}
\alias{family.BAMLSS}
\alias{mean.BAMLSS}
\alias{variance.BAMLSS}
\alias{skewness.BAMLSS}
\alias{kurtosis.BAMLSS}
\alias{random.BAMLSS}
\alias{pdf.BAMLSS}
\alias{log_pdf.BAMLSS}
\alias{cdf.BAMLSS}
\alias{... |
\name{ClusterTest-class}
\alias{ClusterTest}
\alias{ClusterTest-class}
\alias{hist,ClusterTest-method}
\alias{image,ClusterTest-method}
\alias{summary,ClusterTest-method}
\docType{class}
\title{Class "ClusterTest"}
\description{
This is a base class for tests that attempt to determine whether the groups
f... | /man/cd03-0-ClusterTest-class.Rd | no_license | cran/ClassDiscovery | R | false | false | 4,000 | rd | \name{ClusterTest-class}
\alias{ClusterTest}
\alias{ClusterTest-class}
\alias{hist,ClusterTest-method}
\alias{image,ClusterTest-method}
\alias{summary,ClusterTest-method}
\docType{class}
\title{Class "ClusterTest"}
\description{
This is a base class for tests that attempt to determine whether the groups
f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/DataFrame.R
\name{unionByName}
\alias{unionByName}
\alias{unionByName,SparkDataFrame,SparkDataFrame-method}
\title{Return a new SparkDataFrame containing the union of rows, matched by column names}
\usage{
unionByName(x, y, ...)... | /man/unionByName.Rd | no_license | cran/SparkR | R | false | true | 4,000 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/DataFrame.R
\name{unionByName}
\alias{unionByName}
\alias{unionByName,SparkDataFrame,SparkDataFrame-method}
\title{Return a new SparkDataFrame containing the union of rows, matched by column names}
\usage{
unionByName(x, y, ...)... |
library(c060)
### Name: Plot.coef.glmnet
### Title: function to highlight the path of a pre-specified set of
### variables within the coefficient path
### Aliases: Plot.coef.glmnet
### Keywords: coefficient path
### ** Examples
## Not run:
##D set.seed(1010)
##D n=1000;p=100
##D nzc=trunc(p/10)
##D x=matrix(rnor... | /data/genthat_extracted_code/c060/examples/Plot.coef.glmnet.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 601 | r | library(c060)
### Name: Plot.coef.glmnet
### Title: function to highlight the path of a pre-specified set of
### variables within the coefficient path
### Aliases: Plot.coef.glmnet
### Keywords: coefficient path
### ** Examples
## Not run:
##D set.seed(1010)
##D n=1000;p=100
##D nzc=trunc(p/10)
##D x=matrix(rnor... |
rm(list=ls())
# Load libraries
suppressPackageStartupMessages(library(sva))
suppressPackageStartupMessages(library(limma))
suppressPackageStartupMessages(library(DESeq2))
suppressPackageStartupMessages(library(scales))
suppressPackageStartupMessages(library(RColorBrewer))
suppressPackageStartupMessages(library(ggplot2)... | /DGE/CROSS-VALIDATIONS/DOWNSAMPLE/Dge_NeuN_DownSampled.R | no_license | BioV/Primates_CellType | R | false | false | 11,677 | r | rm(list=ls())
# Load libraries
suppressPackageStartupMessages(library(sva))
suppressPackageStartupMessages(library(limma))
suppressPackageStartupMessages(library(DESeq2))
suppressPackageStartupMessages(library(scales))
suppressPackageStartupMessages(library(RColorBrewer))
suppressPackageStartupMessages(library(ggplot2)... |
# K-means clustering
library(dplyr)
library(purrr)
library(ggplot2)
library(gridExtra)
library(purrr)
library(RColorBrewer)
library(viridis)
library(ggrepel)
library(stringr)
# set wd to folder where RDS results are stored
#set working directory to that folder
setwd("Data/BRT_results")
# read in data
unscaled_... | /R/BRT_K_means_clustering.R | no_license | Ochotona-princeps/Citizen-Science-reveals-meteorological-determinants-of-frog-calling-at-a-continental-scale | R | false | false | 10,740 | r | # K-means clustering
library(dplyr)
library(purrr)
library(ggplot2)
library(gridExtra)
library(purrr)
library(RColorBrewer)
library(viridis)
library(ggrepel)
library(stringr)
# set wd to folder where RDS results are stored
#set working directory to that folder
setwd("Data/BRT_results")
# read in data
unscaled_... |
# get_month.R
require( tidyverse )
source('D:/R-Projects/Tornadoes/functions/specify_columns.R')
get_month <- function( file_path ){
file_path
read_csv( fp )
}
fp <- file.path( getwd(),
"data",
"months",
"2000-01.csv")
tornadoes <-
get_month( fp )
... | /functions/get_month.R | no_license | gitHubSlinkman/Tornadoes | R | false | false | 384 | r | # get_month.R
require( tidyverse )
source('D:/R-Projects/Tornadoes/functions/specify_columns.R')
get_month <- function( file_path ){
file_path
read_csv( fp )
}
fp <- file.path( getwd(),
"data",
"months",
"2000-01.csv")
tornadoes <-
get_month( fp )
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ranges_espace.R
\name{ranges_espace}
\alias{ranges_espace}
\title{Comparison of species ranges in environmental space}
\usage{
ranges_espace(ranges, add_occurrences = TRUE, variables,
max_background = 25000, ranges_representation = "clouds"... | /man/ranges_espace.Rd | no_license | ynzhangrong/rangemap | R | false | true | 5,908 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ranges_espace.R
\name{ranges_espace}
\alias{ranges_espace}
\title{Comparison of species ranges in environmental space}
\usage{
ranges_espace(ranges, add_occurrences = TRUE, variables,
max_background = 25000, ranges_representation = "clouds"... |
# I want to create a sample script for one community scenario in which we go all through the process of
# generating the community, fitting the model, checking for convergence and visualizing the variation partitioning
# Libraries ---------------------------------------------------------------
# Load the libraries
lib... | /old/testingHMSCv2/runScripts/20190402-ex_converg.R | no_license | javirudolph/testingHMSC | R | false | false | 4,140 | r | # I want to create a sample script for one community scenario in which we go all through the process of
# generating the community, fitting the model, checking for convergence and visualizing the variation partitioning
# Libraries ---------------------------------------------------------------
# Load the libraries
lib... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53812015169372e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615775920-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53812015169372e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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_... |
library(GenomicAlignments)
library(plyranges)
library(dplyr)
library(ggplot2)
library(data.table)
source("/Volumes/Elements/MYCNAmplicon/Code/CustomThemes.R")
# ------------------------------------------------------------------------------
# Plot IMR-5/75 de novo assembly
# --------------------------------------------... | /Code/PlotAssemblyMapping.R | no_license | wisekh6/MYCNAmplicon | R | false | false | 9,657 | r | library(GenomicAlignments)
library(plyranges)
library(dplyr)
library(ggplot2)
library(data.table)
source("/Volumes/Elements/MYCNAmplicon/Code/CustomThemes.R")
# ------------------------------------------------------------------------------
# Plot IMR-5/75 de novo assembly
# --------------------------------------------... |
#' Piper Diagram
#'
#' Produces a Piper diagram.
#'
#' @details The \code{what} component of the \code{Plot} argument must be either
#' "points" or "none."
#'
#' The units for \code{xCat}, \code{yCat}, \code{zCat}, \code{xAn},
#'\code{yAn}, and \code{zAn} should be in milli-equivalents.
#'
#' @param xCat data for ... | /R/piperPlot.R | permissive | ldecicco-USGS/smwrGraphs | R | false | false | 9,676 | r | #' Piper Diagram
#'
#' Produces a Piper diagram.
#'
#' @details The \code{what} component of the \code{Plot} argument must be either
#' "points" or "none."
#'
#' The units for \code{xCat}, \code{yCat}, \code{zCat}, \code{xAn},
#'\code{yAn}, and \code{zAn} should be in milli-equivalents.
#'
#' @param xCat data for ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_results.R
\name{write_results}
\alias{write_results}
\title{Write a data frame as a .xlsx, .xls, or .csv file}
\usage{
write_results(data, file_name, digits)
}
\arguments{
\item{data}{Data frame to be written to a directory.}
\item{fil... | /man/write_results.Rd | permissive | gravitytrope/fasstr | R | false | true | 1,189 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_results.R
\name{write_results}
\alias{write_results}
\title{Write a data frame as a .xlsx, .xls, or .csv file}
\usage{
write_results(data, file_name, digits)
}
\arguments{
\item{data}{Data frame to be written to a directory.}
\item{fil... |
library(SpatialExtremes)
### Name: USHCNTemp
### Title: Summer/Winter annual maxima/minima temperature in continental
### US.
### Aliases: USHCNTemp
### Keywords: datasets
### ** Examples
data(USHCNTemp)
require(maps)
maps::map("usa")
points(metadata[,2:3], pch = 15)
| /data/genthat_extracted_code/SpatialExtremes/examples/USHCNTemp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 277 | r | library(SpatialExtremes)
### Name: USHCNTemp
### Title: Summer/Winter annual maxima/minima temperature in continental
### US.
### Aliases: USHCNTemp
### Keywords: datasets
### ** Examples
data(USHCNTemp)
require(maps)
maps::map("usa")
points(metadata[,2:3], pch = 15)
|
root.dir <- "~/Documents/U/ubb/sccc/math146"
data.dir <- paste(root.dir, "data/bps/PC-Text", sep = "/")
hw3.data.dir <- paste(data.dir, "ch03", sep = "/")
hw.dir <- paste(root.dir, "week03/hw", sep = "/")
figures.dir <- paste(hw.dir, "figures", sep = "/")
setwd(hw3.data.dir)
# exercise 25
ex25.range <- function(mea... | /sccc/math146/week03/hw/hw03.R | no_license | etellman/ubb | R | false | false | 1,913 | r | root.dir <- "~/Documents/U/ubb/sccc/math146"
data.dir <- paste(root.dir, "data/bps/PC-Text", sep = "/")
hw3.data.dir <- paste(data.dir, "ch03", sep = "/")
hw.dir <- paste(root.dir, "week03/hw", sep = "/")
figures.dir <- paste(hw.dir, "figures", sep = "/")
setwd(hw3.data.dir)
# exercise 25
ex25.range <- function(mea... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_effectsize_name.R
\name{is_effectsize_name}
\alias{is_effectsize_name}
\alias{get_effectsize_name}
\alias{get_effectsize_label}
\title{Checks for a Valid Effect Size Name}
\usage{
is_effectsize_name(x, ignore_case = TRUE)
get_ef... | /man/is_effectsize_name.Rd | no_license | cran/effectsize | R | false | true | 801 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_effectsize_name.R
\name{is_effectsize_name}
\alias{is_effectsize_name}
\alias{get_effectsize_name}
\alias{get_effectsize_label}
\title{Checks for a Valid Effect Size Name}
\usage{
is_effectsize_name(x, ignore_case = TRUE)
get_ef... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OMEROServer.R
\name{getProjects}
\alias{getProjects}
\title{Get all projects of the logged in user}
\usage{
getProjects(server)
}
\arguments{
\item{server}{The server}
}
\value{
The projects @seealso \linkS4class{Project}
}
\description{
Get ... | /man/getProjects.Rd | no_license | manics/rOMERO-gateway | R | false | true | 357 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OMEROServer.R
\name{getProjects}
\alias{getProjects}
\title{Get all projects of the logged in user}
\usage{
getProjects(server)
}
\arguments{
\item{server}{The server}
}
\value{
The projects @seealso \linkS4class{Project}
}
\description{
Get ... |
#------------------------------------------------
#' @title Draw from Dirichlet distribution
#'
#' @description Draw from Dirichlet distribution given a vector of shape
#' parameters.
#'
#' @param shape vector of shape parameters.
#'
#' @importFrom stats rgamma
#' @export
rdirichlet <- function(shape = rep(1,3)) {
... | /R/probability_v2.R | permissive | bobverity/bobfunctions2 | R | false | false | 972 | r |
#------------------------------------------------
#' @title Draw from Dirichlet distribution
#'
#' @description Draw from Dirichlet distribution given a vector of shape
#' parameters.
#'
#' @param shape vector of shape parameters.
#'
#' @importFrom stats rgamma
#' @export
rdirichlet <- function(shape = rep(1,3)) {
... |
# 01-05-2020
# Week 3
#Peer-graded assigment: R Markdown Presentation & Plotly
#Read car and truck values from tab-delimited autos.dat
autos_data <- read.table("C:/R/autos.dat", header=T, sep="\t")
# Compute the largest y value used in the data (or we could
# just use range again)
max_y <- max(autos_data)
# Defin... | /markdown presentation plotly.r | no_license | SiddhikaArun/R-Markdown-Presentation-Plotly | R | false | false | 1,858 | r | # 01-05-2020
# Week 3
#Peer-graded assigment: R Markdown Presentation & Plotly
#Read car and truck values from tab-delimited autos.dat
autos_data <- read.table("C:/R/autos.dat", header=T, sep="\t")
# Compute the largest y value used in the data (or we could
# just use range again)
max_y <- max(autos_data)
# Defin... |
library(igraph)
source("code/vars.R")
myOutPath = paste0(outPath, 'networks/');
netPath = paste0(dataPath, 'networks/')
cacheFile = paste(myOutPath, "graphs.RData", sep="")
if(file.exists(cacheFile)) {
load(cacheFile)
} else {
## Read network
files = listFiles(netPath, "gml")
graphs = lapply(files, read.gra... | /code/loadNetworks.R | permissive | thomaskelder/ADT-liver-network | R | false | false | 1,060 | r | library(igraph)
source("code/vars.R")
myOutPath = paste0(outPath, 'networks/');
netPath = paste0(dataPath, 'networks/')
cacheFile = paste(myOutPath, "graphs.RData", sep="")
if(file.exists(cacheFile)) {
load(cacheFile)
} else {
## Read network
files = listFiles(netPath, "gml")
graphs = lapply(files, read.gra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yingtools2.R
\name{pretty_scientific}
\alias{pretty_scientific}
\title{Fancy Scientific Notation}
\usage{
pretty_scientific(l, parse = TRUE)
}
\arguments{
\item{l}{number vector to be formatted.}
}
\value{
Expression for l, in scientific nota... | /man/pretty_scientific.Rd | no_license | ying14/yingtools2 | R | false | true | 556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yingtools2.R
\name{pretty_scientific}
\alias{pretty_scientific}
\title{Fancy Scientific Notation}
\usage{
pretty_scientific(l, parse = TRUE)
}
\arguments{
\item{l}{number vector to be formatted.}
}
\value{
Expression for l, in scientific nota... |
#' Convert rows of a matrix to images
#'
#' Unmasks rows of a matrix and writes as images.
#'
#'
#' @param dataMatrix A matrix such as that created by \code{imagesToMatrix}.
#' @param mask An \code{antsImage} containing a binary mask.
#' Rows of the matrix
#' are unmasked and written as images. The mask defines the out... | /R/matrixToImages.R | no_license | bkandel/ANTsRCheck | R | false | false | 1,354 | r | #' Convert rows of a matrix to images
#'
#' Unmasks rows of a matrix and writes as images.
#'
#'
#' @param dataMatrix A matrix such as that created by \code{imagesToMatrix}.
#' @param mask An \code{antsImage} containing a binary mask.
#' Rows of the matrix
#' are unmasked and written as images. The mask defines the out... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_node_df.R
\name{add_node_df}
\alias{add_node_df}
\title{Add nodes from a node data frame to an existing graph object}
\usage{
add_node_df(graph, node_df)
}
\arguments{
\item{graph}{a graph object of class \code{dgr_graph}.}
\item{node_df... | /man/add_node_df.Rd | permissive | lionel-/DiagrammeR | R | false | true | 1,208 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_node_df.R
\name{add_node_df}
\alias{add_node_df}
\title{Add nodes from a node data frame to an existing graph object}
\usage{
add_node_df(graph, node_df)
}
\arguments{
\item{graph}{a graph object of class \code{dgr_graph}.}
\item{node_df... |
context("tbl_df/grouped_df")
test_that("grouped_df returns tbl_df if no groups", {
df <- grouped_df(mtcars, list())
expect_equal(class(df), c("tbl_df", "tbl", "data.frame"))
})
test_that("[ never drops", {
mtcars2 <- tbl_df(mtcars)
expect_is(mtcars2[, 1], "data.frame")
expect_is(mtcars2[, 1], "tbl_df")
ex... | /tests/testthat/test-tbl-df.r | no_license | mattwg/dplyr | R | false | false | 904 | r | context("tbl_df/grouped_df")
test_that("grouped_df returns tbl_df if no groups", {
df <- grouped_df(mtcars, list())
expect_equal(class(df), c("tbl_df", "tbl", "data.frame"))
})
test_that("[ never drops", {
mtcars2 <- tbl_df(mtcars)
expect_is(mtcars2[, 1], "data.frame")
expect_is(mtcars2[, 1], "tbl_df")
ex... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
QRADM <- function(xr, yr, ta, rhor, lambdar, iter, intercept, M, penalty, a) {
.Call('_QRADMM_QRADM', PACKAGE = 'QRADMM', xr, yr, ta, rhor, lambdar, iter, intercept, M, penalty, a)
}
QRADM... | /R/RcppExports.R | no_license | DawnGnius/QRADMM | R | false | false | 535 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
QRADM <- function(xr, yr, ta, rhor, lambdar, iter, intercept, M, penalty, a) {
.Call('_QRADMM_QRADM', PACKAGE = 'QRADMM', xr, yr, ta, rhor, lambdar, iter, intercept, M, penalty, a)
}
QRADM... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mirror.R
\name{mirror}
\alias{mirror}
\alias{mirror.coords}
\alias{mirror.pdb}
\title{Reflexion of Atomic Coordinates}
\usage{
mirror(...)
\method{mirror}{coords}(x, p1, p2 = NULL, p3 = NULL, mask = TRUE,
cryst1 = NULL, ...)
\method{mirro... | /man/mirror.Rd | no_license | cran/Rpdb | R | false | true | 2,720 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mirror.R
\name{mirror}
\alias{mirror}
\alias{mirror.coords}
\alias{mirror.pdb}
\title{Reflexion of Atomic Coordinates}
\usage{
mirror(...)
\method{mirror}{coords}(x, p1, p2 = NULL, p3 = NULL, mask = TRUE,
cryst1 = NULL, ...)
\method{mirro... |
library(data.table)
Dataset<-fread("household_power_consumption.txt")
subSetData <- Dataset[Dataset$Date %in% c("1/2/2007","2/2/2007") ,]
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalReactivePower <- as.numeric(subSetData$Global_reactive_power)
globalActivePower <- a... | /plot4.R | no_license | Akshay-1024/ExData_Plotting1 | R | false | false | 1,202 | r | library(data.table)
Dataset<-fread("household_power_consumption.txt")
subSetData <- Dataset[Dataset$Date %in% c("1/2/2007","2/2/2007") ,]
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalReactivePower <- as.numeric(subSetData$Global_reactive_power)
globalActivePower <- a... |
.io = import('ebits/io')
.files = list(
MASTER_LIST = "20140320_MASTER_LIST.ro",
ANALYSIS_SET = "",
BASAL_EXPRESSION = "BASAL_EXPRESSION_12062013v2.ro",
DRUG_PROPS = "DRUG_ANALYSIS_SET_20150123.rdata",
DRUG_IC50 = "v17a_IC50s.Rdata",
DRUG_AUC = "v17a_AUCs.Rdata",
INTOGEN_DRIVERS = "cancer_d... | /gdsc/file.r | no_license | ipstone/data | R | false | false | 505 | r | .io = import('ebits/io')
.files = list(
MASTER_LIST = "20140320_MASTER_LIST.ro",
ANALYSIS_SET = "",
BASAL_EXPRESSION = "BASAL_EXPRESSION_12062013v2.ro",
DRUG_PROPS = "DRUG_ANALYSIS_SET_20150123.rdata",
DRUG_IC50 = "v17a_IC50s.Rdata",
DRUG_AUC = "v17a_AUCs.Rdata",
INTOGEN_DRIVERS = "cancer_d... |
##########################################################################
# This script reads in:
# 1. Madison Work Area Characteristic (WAC) Data
# 2. Selects the tract ID and total jobs columns
# 3. Madison Residence Area Characteristic (RAC) Data
# 4. Selects the tract ID and total jobs columns
# 5. Joins them.
#
#... | /~code/Madison/MD - 03 - LODE data (Close).R | no_license | Louisville-Scooters/Practicum | R | false | false | 1,501 | r | ##########################################################################
# This script reads in:
# 1. Madison Work Area Characteristic (WAC) Data
# 2. Selects the tract ID and total jobs columns
# 3. Madison Residence Area Characteristic (RAC) Data
# 4. Selects the tract ID and total jobs columns
# 5. Joins them.
#
#... |
# xlsx包中的函数read.xlsx()可以读取Excel文件
# 安装引用xlsx需要安装Java放在百度云软件/Java
# 算了这里也放一份吧 JavaJRE\jre-8u91-windows-x64.exe
#install.packages("xlsx")
#library(xlsx)
# 使用read.xlsx()加载工作表时,既可以通过序数参数sheetIndex来指定,
# 也可以用工作表名参数sheetName来指定
# read.xlsx("test.xlsx", sheetIndex=2) read.xlsx("test.xlsx", sheetName="test")
#data <- read.xls... | /DemoTwo/DemoTwo.r | no_license | UglyMelon007/RTestDemo | R | false | false | 773 | r | # xlsx包中的函数read.xlsx()可以读取Excel文件
# 安装引用xlsx需要安装Java放在百度云软件/Java
# 算了这里也放一份吧 JavaJRE\jre-8u91-windows-x64.exe
#install.packages("xlsx")
#library(xlsx)
# 使用read.xlsx()加载工作表时,既可以通过序数参数sheetIndex来指定,
# 也可以用工作表名参数sheetName来指定
# read.xlsx("test.xlsx", sheetIndex=2) read.xlsx("test.xlsx", sheetName="test")
#data <- read.xls... |
\name{O3prep}
\alias{O3prep}
\title{
Identify outliers for different combinations of variables
}
\description{
Check the dataset and parameters prior to analysis. Identify outliers for the variable combinations and methods/tolerance levels specified. Prepare input for the two plotting functions \code{O3plotT} and \c... | /man/O3prep.Rd | no_license | pridiltal/OutliersO3 | R | false | false | 5,547 | rd | \name{O3prep}
\alias{O3prep}
\title{
Identify outliers for different combinations of variables
}
\description{
Check the dataset and parameters prior to analysis. Identify outliers for the variable combinations and methods/tolerance levels specified. Prepare input for the two plotting functions \code{O3plotT} and \c... |
library(gridExtra)
library(tidyverse)
library(knitr)
library(ggfortify)
library(lindia)
library(leaps)
library(car)
library(GGally)
library(caret)
library(dplyr)
border <- read.csv("Border_Crossing_Entry_Data.csv")
head(border)
border <- border %>%
mutate(Year = format(as.Date(border$Date, format="%d/%m/%Y"),"%Y"),... | /us-border-entry.R | no_license | varunvasudeva1/usborderentry | R | false | false | 2,036 | r | library(gridExtra)
library(tidyverse)
library(knitr)
library(ggfortify)
library(lindia)
library(leaps)
library(car)
library(GGally)
library(caret)
library(dplyr)
border <- read.csv("Border_Crossing_Entry_Data.csv")
head(border)
border <- border %>%
mutate(Year = format(as.Date(border$Date, format="%d/%m/%Y"),"%Y"),... |
library(tidyr)
library(dplyr)
library(tidycensus)
library(sf)
library(ggplot2)
grafton <- get_acs(year=2018, geography = "tract", state="NH", county="Grafton", geometry = TRUE,
variables = c(median.household.income = "B19013_001"))
other.vars <- get_acs(year=2018, geography = "tract", stat... | /Data_cleaning.R | no_license | kwheelan/GraftonVoting2020 | R | false | false | 5,162 | r | library(tidyr)
library(dplyr)
library(tidycensus)
library(sf)
library(ggplot2)
grafton <- get_acs(year=2018, geography = "tract", state="NH", county="Grafton", geometry = TRUE,
variables = c(median.household.income = "B19013_001"))
other.vars <- get_acs(year=2018, geography = "tract", stat... |
\name{ellipseCA}
\alias{ellipseCA}
\title{Draw confidence ellipses in CA}
\description{
Draw confidence ellipses in CA around rows and/or columns.
}
\usage{
ellipseCA (x, ellipse=c("col","row"), method="multinomial", nbsample=100,
axes=c(1,2), xlim=NULL, ylim=NULL, col.row="red", col.col="blue",
col.row.ell=co... | /man/ellipseCA.Rd | no_license | Rpython1/FactoMineR | R | false | false | 2,754 | rd | \name{ellipseCA}
\alias{ellipseCA}
\title{Draw confidence ellipses in CA}
\description{
Draw confidence ellipses in CA around rows and/or columns.
}
\usage{
ellipseCA (x, ellipse=c("col","row"), method="multinomial", nbsample=100,
axes=c(1,2), xlim=NULL, ylim=NULL, col.row="red", col.col="blue",
col.row.ell=co... |
#' Symmetric AES encryption
#'
#' Low-level symmetric encryption/decryption using the AES block cipher in CBC mode.
#' The key is a raw vector, for example a hash of some secret. When no shared
#' secret is available, a random key can be used which is exchanged via an
#' asymettric protocol such as RSA. See \code{\link... | /openssl/R/aes.R | no_license | ingted/R-Examples | R | false | false | 1,826 | r | #' Symmetric AES encryption
#'
#' Low-level symmetric encryption/decryption using the AES block cipher in CBC mode.
#' The key is a raw vector, for example a hash of some secret. When no shared
#' secret is available, a random key can be used which is exchanged via an
#' asymettric protocol such as RSA. See \code{\link... |
getwd()
setwd('~/Documents/Github/morphological-processing-project/')
# load libraries
library('WpmWithLdl')
library('readr')
library('dplyr')
library('MASS')
# load data ('/data')
# file1: chars_pic.csv ----------------------character-bitmap filename mapping created by match_char_pic.py
# file2: dict.csv------------... | /script.R | no_license | MegamindHenry/morphological-processing-project | R | false | false | 4,523 | r | getwd()
setwd('~/Documents/Github/morphological-processing-project/')
# load libraries
library('WpmWithLdl')
library('readr')
library('dplyr')
library('MASS')
# load data ('/data')
# file1: chars_pic.csv ----------------------character-bitmap filename mapping created by match_char_pic.py
# file2: dict.csv------------... |
power <- read.table(file.choose(), sep=";", header=TRUE, stringsAsFactors=FALSE, na.strings="?")
power$Date<-as.Date(power$Date, format="%d/%m/%Y")
df<-subset(power, Date=="2007-02-01" | Date=="2007-02-02")
df$Global_active_power<-as.numeric(df$Global_active_power)
df<-transform(df, timestamp=as.POSIXct(paste(Date, Tim... | /plot4.R | no_license | Mahsa-Kiani/ExData_Plotting1 | R | false | false | 1,238 | r | power <- read.table(file.choose(), sep=";", header=TRUE, stringsAsFactors=FALSE, na.strings="?")
power$Date<-as.Date(power$Date, format="%d/%m/%Y")
df<-subset(power, Date=="2007-02-01" | Date=="2007-02-02")
df$Global_active_power<-as.numeric(df$Global_active_power)
df<-transform(df, timestamp=as.POSIXct(paste(Date, Tim... |
\name{ciTableMean}
\alias{ciTableMean}
\title{
Table of Confidence Intervals for Mean or Difference Between Two Means
}
\description{
Create a table of confidence intervals for the mean of a normal distribution
or the difference between two means following Bacchetti (2010), by varying
the estimated st... | /man/ciTableMean.Rd | no_license | alexkowa/EnvStats | R | false | false | 16,885 | rd | \name{ciTableMean}
\alias{ciTableMean}
\title{
Table of Confidence Intervals for Mean or Difference Between Two Means
}
\description{
Create a table of confidence intervals for the mean of a normal distribution
or the difference between two means following Bacchetti (2010), by varying
the estimated st... |
library("MASS", lib.loc="/usr/lib/R/library")
library("amen", lib.loc="/usr/lib/R/library")
sim <- 10
n <- 100
maxRank <- 100
Sigma_ab <- matrix(c(1,0.5,0.5,1),2,2)
Sigma_eps <- matrix(c(1,0.9,0.9,1),2,2)
sample_ab <- mvrnorm(n = n, rep(0, 2), Sigma_ab)
sample_eps <- mvrnorm(n = n*(n-1)/(2), rep(0, 2), Sigma_eps)
beta ... | /Rfiles/SimulationNoCov.R | no_license | mfouda/Dissertation_Scripts | R | false | false | 1,001 | r | library("MASS", lib.loc="/usr/lib/R/library")
library("amen", lib.loc="/usr/lib/R/library")
sim <- 10
n <- 100
maxRank <- 100
Sigma_ab <- matrix(c(1,0.5,0.5,1),2,2)
Sigma_eps <- matrix(c(1,0.9,0.9,1),2,2)
sample_ab <- mvrnorm(n = n, rep(0, 2), Sigma_ab)
sample_eps <- mvrnorm(n = n*(n-1)/(2), rep(0, 2), Sigma_eps)
beta ... |
#' get_mentionees
#'
#' This function takes a tibble of tweets and records which users were mentioned,
#' and how many times. Mentions include replies and retweets, but not quotes.
#' @return a tibble with two columns noting the user ID and how many times they were mentioned
#' @examples get_mentionees(tweets)
#' @exp... | /R/get_mentionees.R | no_license | llsigerson/twittnet | R | false | false | 1,509 | r | #' get_mentionees
#'
#' This function takes a tibble of tweets and records which users were mentioned,
#' and how many times. Mentions include replies and retweets, but not quotes.
#' @return a tibble with two columns noting the user ID and how many times they were mentioned
#' @examples get_mentionees(tweets)
#' @exp... |
library(raster)
library(rgdal)
library(foreign)
args <- commandArgs(trailingOnly = TRUE)
Pts <- read.dbf(file="Samples_Bands.dbf")
Lin.grid <- raster("boundary2.img")
# Lin.grid
# coordinates(Lin.grid)[!is.na(values(Lin.grid)),]
Lin.grid <- SpatialPixels(SpatialPoints(coordinates(Lin.grid)[!is.na(values(Lin.g... | /rscripts/Ana2.R | no_license | the-fool/fastGIS | R | false | false | 2,122 | r | library(raster)
library(rgdal)
library(foreign)
args <- commandArgs(trailingOnly = TRUE)
Pts <- read.dbf(file="Samples_Bands.dbf")
Lin.grid <- raster("boundary2.img")
# Lin.grid
# coordinates(Lin.grid)[!is.na(values(Lin.grid)),]
Lin.grid <- SpatialPixels(SpatialPoints(coordinates(Lin.grid)[!is.na(values(Lin.g... |
\name{interaction_investigator}
\alias{interaction_investigator}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Explore Pairwise Interactions in BART Model
}
\description{
Explore the pairwise interaction counts for a BART model to learn about interactions fit by the model. This function include... | /dartMachine/man/interaction_investigator.Rd | permissive | theodds/dartMachine | R | false | false | 3,775 | rd | \name{interaction_investigator}
\alias{interaction_investigator}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Explore Pairwise Interactions in BART Model
}
\description{
Explore the pairwise interaction counts for a BART model to learn about interactions fit by the model. This function include... |
# With Timestamps
factorSummary <- function(dt) {
require(data.table)
#Check NA function for metadata tables
countNA <- function(a) {
return(sum(is.na(a)))
}
#Count levels in factor
levelCount <- function(v) {
ifelse(class(v)=="factor",length(levels(v)),0)
}
# Collect in Table
summ... | /factorSummary.R | no_license | ajphilpotts/DataVisualisationR | R | false | false | 1,318 | r | # With Timestamps
factorSummary <- function(dt) {
require(data.table)
#Check NA function for metadata tables
countNA <- function(a) {
return(sum(is.na(a)))
}
#Count levels in factor
levelCount <- function(v) {
ifelse(class(v)=="factor",length(levels(v)),0)
}
# Collect in Table
summ... |
#######################################################################
# stream - Infrastructure for Data Stream Mining
# Copyright (C) 2013 Michael Hahsler, Matthew Bolanos, John Forrest
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as... | /R/DSD.R | no_license | shuxiangzhang/stream | R | false | false | 3,905 | r | #######################################################################
# stream - Infrastructure for Data Stream Mining
# Copyright (C) 2013 Michael Hahsler, Matthew Bolanos, John Forrest
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as... |
library(shiny)
shinyUI(fluidPage(
tags$body(
background="s10.jpg"
),
#tags$link(rel = "stylesheet", type = "text/css", href = "bootstrap.css"),
#tags$head(tags$script("alert('Hello!');")),
tags$head(tags$style("body{ color: black; }")),
tags$style(HTML("
@import url('//fonts.g... | /ui.R | no_license | LeelaAmbati/Data-science | R | false | false | 8,407 | r | library(shiny)
shinyUI(fluidPage(
tags$body(
background="s10.jpg"
),
#tags$link(rel = "stylesheet", type = "text/css", href = "bootstrap.css"),
#tags$head(tags$script("alert('Hello!');")),
tags$head(tags$style("body{ color: black; }")),
tags$style(HTML("
@import url('//fonts.g... |
library(rstan)
library(ggplot2)
util = new.env()
source("stan_utility.R", local = util)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
#############
## Scope out your problem
#############
df = read.csv("data.csv")
head(df)
#############
## Model!
#############
## 1. Create a new Stan fi... | /workflow.R | permissive | dougmet/intro-bayesian-workflow | R | false | false | 3,112 | r | library(rstan)
library(ggplot2)
util = new.env()
source("stan_utility.R", local = util)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
#############
## Scope out your problem
#############
df = read.csv("data.csv")
head(df)
#############
## Model!
#############
## 1. Create a new Stan fi... |
# This function takes data as input and produced a network. It is used inside bootnet:
estimateNetwork <- function(
data,
prepFun, # Fun to produce the correlation or covariance matrix
prepArgs = list(), # list with arguments for the correlation function
estFun, # function that results in a network
estArgs # ... | /bootnet/R/estimateNetwork.R | no_license | ingted/R-Examples | R | false | false | 605 | r | # This function takes data as input and produced a network. It is used inside bootnet:
estimateNetwork <- function(
data,
prepFun, # Fun to produce the correlation or covariance matrix
prepArgs = list(), # list with arguments for the correlation function
estFun, # function that results in a network
estArgs # ... |
# Packages installer
options(repos = c("https://pbil.univ-lyon1.fr/CRAN/"))
cran_packages <- c('tidyverse', 'shiny', 'shinyWidgets', 'DT', 'ggpubr', 'reshape2', 'cowplot', 'shinydashboard', 'shinybusy')
new_cran_packages <- cran_packages[!(cran_packages %in% installed.packages()[,"Package"])]
if(length(new_cran_packa... | /Source/install_packages.R | no_license | WANGDI0212/retinoblastoma-retina-markers | R | false | false | 363 | r | # Packages installer
options(repos = c("https://pbil.univ-lyon1.fr/CRAN/"))
cran_packages <- c('tidyverse', 'shiny', 'shinyWidgets', 'DT', 'ggpubr', 'reshape2', 'cowplot', 'shinydashboard', 'shinybusy')
new_cran_packages <- cran_packages[!(cran_packages %in% installed.packages()[,"Package"])]
if(length(new_cran_packa... |
# Script to generate a normalized coverage vs. position along transcript plot.
#
# @author Tim Fennell
# Parse the arguments
args <- commandArgs(trailing = TRUE)
metricsFile <- args[1]
outputFile <- args[2]
bamName <- args[3]
subtitle <- ifelse(length(args) < 4, "", args[4])
# Figure out where the metrics and the... | /src/main/resources/picard/analysis/rnaSeqCoverage.R | permissive | broadinstitute/picard | R | false | false | 2,603 | r | # Script to generate a normalized coverage vs. position along transcript plot.
#
# @author Tim Fennell
# Parse the arguments
args <- commandArgs(trailing = TRUE)
metricsFile <- args[1]
outputFile <- args[2]
bamName <- args[3]
subtitle <- ifelse(length(args) < 4, "", args[4])
# Figure out where the metrics and the... |
prep.rstar.us <- function(){
#------------------------------------------------------------------------------#
# File: prepare.rstar.data.us.R
#
# Description: This file (1) compiles and (2) prepares the data used in
# HLW for the US.
#--------------------------------------------------------------... | /Code/prepare.rstar.data.us.R | no_license | acemacdonald/FinMetricsProject | R | false | false | 3,015 | r | prep.rstar.us <- function(){
#------------------------------------------------------------------------------#
# File: prepare.rstar.data.us.R
#
# Description: This file (1) compiles and (2) prepares the data used in
# HLW for the US.
#--------------------------------------------------------------... |
is.installed <- function(mypkg){
is.element(mypkg, installed.packages()[,1])
}
library(rkafka1.0)
producer1=rkafka.startProducer("127.0.0.1:9092")
condition=rJava::.jinstanceof(producer1,"com/musigma/producer/MuProducer")
RUnit::checkTrue(condition,"check1")
simpleConsumer1=rkafka.createSimpleConsumer("127.0.0.1... | /src/tests/unitTests.R | no_license | zamaterian/rkafka | R | false | false | 478 | r | is.installed <- function(mypkg){
is.element(mypkg, installed.packages()[,1])
}
library(rkafka1.0)
producer1=rkafka.startProducer("127.0.0.1:9092")
condition=rJava::.jinstanceof(producer1,"com/musigma/producer/MuProducer")
RUnit::checkTrue(condition,"check1")
simpleConsumer1=rkafka.createSimpleConsumer("127.0.0.1... |
testlist <- list(x = c(1277774848L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), y = integer(0))
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str(result) | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609962876-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 309 | r | testlist <- list(x = c(1277774848L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), y = integer(0))
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str(result) |
## Cachematrix and its helper function make CacheMatrix calculate the inverse of a given
## matrix, either retrieving an already calculated results from cache, or making the
## calculation for the first time and saving the result to cache
## makeCacheMatrix takes a matrix as an input and returns a list of 4 functions... | /cachematrix.R | no_license | rrrafi/ProgrammingAssignment2 | R | false | false | 1,333 | r | ## Cachematrix and its helper function make CacheMatrix calculate the inverse of a given
## matrix, either retrieving an already calculated results from cache, or making the
## calculation for the first time and saving the result to cache
## makeCacheMatrix takes a matrix as an input and returns a list of 4 functions... |
library(datarobot)
### Name: GetModelRecommendation
### Title: Retrieve a model recommendedation from DataRobot for your
### project.
### Aliases: GetModelRecommendation
### ** Examples
## Not run:
##D projectId <- "5984b4d7100d2b31c1166529"
##D GetModelRecommendation(projectId)
## End(Not run)
| /data/genthat_extracted_code/datarobot/examples/GetModelRecommendation.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 310 | r | library(datarobot)
### Name: GetModelRecommendation
### Title: Retrieve a model recommendedation from DataRobot for your
### project.
### Aliases: GetModelRecommendation
### ** Examples
## Not run:
##D projectId <- "5984b4d7100d2b31c1166529"
##D GetModelRecommendation(projectId)
## End(Not run)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeScatterPlots.R
\name{qualityScatter}
\alias{qualityScatter}
\title{plots a scatter of the VAF between two samples}
\usage{
qualityScatter(q1, q2, ps = NA, covScale = 100, maxCex = 1.5,
minCov = 10, main = "", xlab = "variant frequency: ... | /man/qualityScatter.Rd | permissive | shulp2211/superFreq | R | false | true | 4,471 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeScatterPlots.R
\name{qualityScatter}
\alias{qualityScatter}
\title{plots a scatter of the VAF between two samples}
\usage{
qualityScatter(q1, q2, ps = NA, covScale = 100, maxCex = 1.5,
minCov = 10, main = "", xlab = "variant frequency: ... |
library("org.Gg.eg.db")
library("org.Hs.eg.db")
degenes.gg.table<-read.table('gallus/gimme/line7u_vs_i.cuffref.tophits.nucl.txt',
stringsAsFactors=F, sep="\t", header=T)
ggannots<-select(org.Gg.eg.db,
keys=degenes.table$geneID,
columns=c("SYMBOL","ENTREZID", "PAT... | /combine_kegg_annots.R | no_license | likit/RNASeq-methods-comparison | R | false | false | 1,417 | r | library("org.Gg.eg.db")
library("org.Hs.eg.db")
degenes.gg.table<-read.table('gallus/gimme/line7u_vs_i.cuffref.tophits.nucl.txt',
stringsAsFactors=F, sep="\t", header=T)
ggannots<-select(org.Gg.eg.db,
keys=degenes.table$geneID,
columns=c("SYMBOL","ENTREZID", "PAT... |
#' Table 7_12
#'
#' Real Consumption Expenditure, Real Income, Real Wealth, and Real Interest Rates for the U.S., 1947 to 2000
#' Sources: C, Yd, and quarterly and annual chain-type price indexes (1996 = 100): Bureau of Economic Analysis, U.S. Department of Commerce (http://www.bea.doc.gov/bea/dn1.htm). Nominal annual ... | /R/table7_12.R | no_license | brunoruas2/gujarati | R | false | false | 1,077 | r | #' Table 7_12
#'
#' Real Consumption Expenditure, Real Income, Real Wealth, and Real Interest Rates for the U.S., 1947 to 2000
#' Sources: C, Yd, and quarterly and annual chain-type price indexes (1996 = 100): Bureau of Economic Analysis, U.S. Department of Commerce (http://www.bea.doc.gov/bea/dn1.htm). Nominal annual ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.