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 |
|---|---|---|---|---|---|---|---|---|---|
setwd("~/git/GTMachineLearning_Assignment_1/rawData")
train = read.csv("train.csv")
test = read.csv("test.csv")
test = test[,2:12]
train = train[,2:12]
#Separate labels from training set
trainlabels = as.factor(train$CLASS)
train = train[,1:10]
testlabels = as.factor(test$CLASS)
test = test[,1:10]
#Split training se... | /rawData/Network.R | no_license | raghurams95/GTMachineLearning_Assignment_1 | R | false | false | 2,675 | r | setwd("~/git/GTMachineLearning_Assignment_1/rawData")
train = read.csv("train.csv")
test = read.csv("test.csv")
test = test[,2:12]
train = train[,2:12]
#Separate labels from training set
trainlabels = as.factor(train$CLASS)
train = train[,1:10]
testlabels = as.factor(test$CLASS)
test = test[,1:10]
#Split training se... |
timepoints <- matrix(NA, nrow = length(unique(df_long$time)), ncol = (length(vars$dv)))
colnames(timepoints) <- vars$dv
rownames(timepoints) <- unique(df_long$time)
# 1) How much % of the participants at baseline took part in wave 4, 5, 6, 7, 8, 9, 10, 11 respectively?
# 2) I need to describe the samples at ... | /n_by_country.R | permissive | cjvanlissa/schumpe | R | false | false | 5,343 | r | timepoints <- matrix(NA, nrow = length(unique(df_long$time)), ncol = (length(vars$dv)))
colnames(timepoints) <- vars$dv
rownames(timepoints) <- unique(df_long$time)
# 1) How much % of the participants at baseline took part in wave 4, 5, 6, 7, 8, 9, 10, 11 respectively?
# 2) I need to describe the samples at ... |
# A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
# a2 + b2 = c2
#
# For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
#
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
c2 <- data.frame()
for (a in 1:1000){
for (b in 1:1000){
... | /Problem9.R | no_license | action781/Euler_Project | R | false | false | 398 | r | # A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
# a2 + b2 = c2
#
# For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
#
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
c2 <- data.frame()
for (a in 1:1000){
for (b in 1:1000){
... |
#get posterior prediction of brms model, and plotting it
###############INPUTS and Outputs#########################
testRun <- FALSE
if (testRun == TRUE) {
parentPath <- "/media/knalli/07eee2b2-1320-41f3-b7bb-336496e48287/home/knalli/Phd/h_vs_p_rnaseq_chromhmm_2020/StateTransitions/transitionEnrichment"
x <- load(f... | /scripts/PPC.R | no_license | keksundso/StateTransitionEnrichment | R | false | false | 3,187 | r | #get posterior prediction of brms model, and plotting it
###############INPUTS and Outputs#########################
testRun <- FALSE
if (testRun == TRUE) {
parentPath <- "/media/knalli/07eee2b2-1320-41f3-b7bb-336496e48287/home/knalli/Phd/h_vs_p_rnaseq_chromhmm_2020/StateTransitions/transitionEnrichment"
x <- load(f... |
testlist <- list(Beta = 0, CVLinf = 3.19900312302095e-83, FM = 2.5032080908206e-308, L50 = 0, L95 = 0, LenBins = c(9.77815660476797e-311, 7.00392213918834e+43, 7.66098570262058e+87, 2.53372279746985e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615830523-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 545 | r | testlist <- list(Beta = 0, CVLinf = 3.19900312302095e-83, FM = 2.5032080908206e-308, L50 = 0, L95 = 0, LenBins = c(9.77815660476797e-311, 7.00392213918834e+43, 7.66098570262058e+87, 2.53372279746985e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK... |
numPerPatch27548 <- c(2519,2481)
| /NatureEE-data-archive/Run203021/JAFSdata/JAFSnumPerPatch27548.R | no_license | flaxmans/NatureEE2017 | R | false | false | 33 | r | numPerPatch27548 <- c(2519,2481)
|
### install.packages("cognizer")
install.packages("devtools")
install.packages("curl")
#Install cognizer package from github in RStudio
devtools::install_github("ColumbusCollaboratory/cognizer")
#So we are done with the installation bit.
#Now, let us invoke the WATSON service from RStudio.
# Step 1: Install Da... | /WatsonR.R | no_license | sharmaCha/IBMWatson | R | false | false | 21,255 | r | ### install.packages("cognizer")
install.packages("devtools")
install.packages("curl")
#Install cognizer package from github in RStudio
devtools::install_github("ColumbusCollaboratory/cognizer")
#So we are done with the installation bit.
#Now, let us invoke the WATSON service from RStudio.
# Step 1: Install Da... |
help_format = function (format) {
structure(list(), class = c(paste0(format, '_help_format'), 'help_format'))
}
compile_help = function (x, rd) UseMethod('compile_help')
patch_topic_name = function(x, file, topic) UseMethod('patch_topic_name')
display_help_file = function (x, file, topic) UseMethod('display_help... | /R/display_help.r | permissive | flying-sheep/modules | R | false | false | 2,240 | r | help_format = function (format) {
structure(list(), class = c(paste0(format, '_help_format'), 'help_format'))
}
compile_help = function (x, rd) UseMethod('compile_help')
patch_topic_name = function(x, file, topic) UseMethod('patch_topic_name')
display_help_file = function (x, file, topic) UseMethod('display_help... |
# Course Project2 - plot6.R
#Load Library
library(ggplot2)
#Set path
setwd("/R Workspace/ExploratoryAnalysis/CourseProject2/data")
#Read rds file
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#Extractin of any Vehicle from EI.Sector values for Baltimore & Los Angeles
SCC.MV<-... | /plot6.R | no_license | manikhanuja/ExploratoryDataAnalysis | R | false | false | 1,206 | r | # Course Project2 - plot6.R
#Load Library
library(ggplot2)
#Set path
setwd("/R Workspace/ExploratoryAnalysis/CourseProject2/data")
#Read rds file
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#Extractin of any Vehicle from EI.Sector values for Baltimore & Los Angeles
SCC.MV<-... |
#' Return listMarketCatalogue data
#'
#' \code{listMarketCatalogue} returns in-depth market data.
#'
#' \code{listMarketCatalogue} returns in-depth market data and can be filtered
#' via the API-NG based on a number of arguments. Using Horse Racing as an
#' example, complete race cards are returned for the specified ma... | /R/listMarketCatalogue.R | no_license | Sandy4321/abettor | R | false | false | 5,680 | r | #' Return listMarketCatalogue data
#'
#' \code{listMarketCatalogue} returns in-depth market data.
#'
#' \code{listMarketCatalogue} returns in-depth market data and can be filtered
#' via the API-NG based on a number of arguments. Using Horse Racing as an
#' example, complete race cards are returned for the specified ma... |
################################
#### Kernel density estimation of circular data with a von Mises kernel
#### Tsagris Michail 2/2015
#### mtsagris@yahoo.gr
#### Tuning the bandwidth
################################
vmkde.tune <- function(u, low = 0.1, up = 1, rads = TRUE) {
## u is the data
n <- length(... | /Directional/R/vmkde.tune.R | no_license | ingted/R-Examples | R | false | false | 837 | r |
################################
#### Kernel density estimation of circular data with a von Mises kernel
#### Tsagris Michail 2/2015
#### mtsagris@yahoo.gr
#### Tuning the bandwidth
################################
vmkde.tune <- function(u, low = 0.1, up = 1, rads = TRUE) {
## u is the data
n <- length(... |
## File Name: mgsem_suffstat_covariance_matrix.R
## File Version: 0.099
mgsem_suffstat_covariance_matrix <- function(suffstat)
{
G <- length(suffstat)
dfr <- NULL
# gg <- 1
for (gg in 1:G){
suffstat_gg <- suffstat[[gg]]
names_gg <- names(suffstat_gg)
mu <- suffstat_gg[[ interse... | /R/mgsem_suffstat_covariance_matrix.R | no_license | alexanderrobitzsch/sirt | R | false | false | 1,861 | r | ## File Name: mgsem_suffstat_covariance_matrix.R
## File Version: 0.099
mgsem_suffstat_covariance_matrix <- function(suffstat)
{
G <- length(suffstat)
dfr <- NULL
# gg <- 1
for (gg in 1:G){
suffstat_gg <- suffstat[[gg]]
names_gg <- names(suffstat_gg)
mu <- suffstat_gg[[ interse... |
data_array = c(4, 5, 4, 0, 1, 4, 3, 4, 0, 6, 3, 3, 4, 0, 2, 6,
3, 3, 5, 4, 5, 3, 1, 4, 4, 1, 5, 5, 3, 4, 2, 5,
2, 2, 3, 4, 2, 1, 3, 2, 2, 1, 1, 1, 1, 3, 0, 0,
1, 0, 1, 1, 0, 0, 3, 1, 0, 3, 2, 2, 0, 1, 1, 1,
0, 1, 0, 1, 0, 0, 0, 2, 1, 0, 0,... | /Module 7/ChangePointGibbs.R | no_license | anhnguyendepocen/MCMC | R | false | false | 2,215 | r |
data_array = c(4, 5, 4, 0, 1, 4, 3, 4, 0, 6, 3, 3, 4, 0, 2, 6,
3, 3, 5, 4, 5, 3, 1, 4, 4, 1, 5, 5, 3, 4, 2, 5,
2, 2, 3, 4, 2, 1, 3, 2, 2, 1, 1, 1, 1, 3, 0, 0,
1, 0, 1, 1, 0, 0, 3, 1, 0, 3, 2, 2, 0, 1, 1, 1,
0, 1, 0, 1, 0, 0, 0, 2, 1, 0, 0,... |
bottleneck <-
function(Diag1, Diag2, dimension){
if (class(Diag1)!="diagram" && class(Diag1)!="matrix" && !is.data.frame(Diag1) )
stop("Diag1 should be a diagram or a matrix")
if (class(Diag2)!="diagram" && class(Diag2)!="matrix" && !is.data.frame(Diag1) )
stop("Diag2 should be a diagram or a matrix")... | /R/bottleneck.R | no_license | miriamperkins/TDA | R | false | false | 958 | r | bottleneck <-
function(Diag1, Diag2, dimension){
if (class(Diag1)!="diagram" && class(Diag1)!="matrix" && !is.data.frame(Diag1) )
stop("Diag1 should be a diagram or a matrix")
if (class(Diag2)!="diagram" && class(Diag2)!="matrix" && !is.data.frame(Diag1) )
stop("Diag2 should be a diagram or a matrix")... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dax_operations.R
\name{dax_decrease_replication_factor}
\alias{dax_decrease_replication_factor}
\title{Removes one or more nodes from a DAX cluster}
\usage{
dax_decrease_replication_factor(ClusterName, NewReplicationFactor,
AvailabilityZone... | /paws/man/dax_decrease_replication_factor.Rd | permissive | johnnytommy/paws | R | false | true | 1,177 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dax_operations.R
\name{dax_decrease_replication_factor}
\alias{dax_decrease_replication_factor}
\title{Removes one or more nodes from a DAX cluster}
\usage{
dax_decrease_replication_factor(ClusterName, NewReplicationFactor,
AvailabilityZone... |
#' Parse a multipart HTTP request body
#'
#' Adds the parsed form fields in the `form` element of the request and
#' the parsed files to the `files` element.
#'
#' @param type Content type to match before parsing. If it does not
#' match, then the request object is not modified.
#' @return Handler function.
... | /R/mw-multipart.R | permissive | cran/presser | R | false | false | 3,896 | r |
#' Parse a multipart HTTP request body
#'
#' Adds the parsed form fields in the `form` element of the request and
#' the parsed files to the `files` element.
#'
#' @param type Content type to match before parsing. If it does not
#' match, then the request object is not modified.
#' @return Handler function.
... |
xmax <- 2
ymax <- 5
dtype <- "fitted"
dname <- "Lognormal SEIR"
pars <- list(
dtime = 11.4,
itime = 5,
dshape = 0.6,
ishape = 0.8
)
## Mean based on quantiles may or may not be better than
## calculating sdmean, but we don't care because they
## are indistinguishable
lat <- expression({
lat <- q... | /lognormal.R | no_license | dushoff/Generation_distributions | R | false | false | 449 | r | xmax <- 2
ymax <- 5
dtype <- "fitted"
dname <- "Lognormal SEIR"
pars <- list(
dtime = 11.4,
itime = 5,
dshape = 0.6,
ishape = 0.8
)
## Mean based on quantiles may or may not be better than
## calculating sdmean, but we don't care because they
## are indistinguishable
lat <- expression({
lat <- q... |
library(testthat)
test_check('LakeEnsemblR')
| /tests/testthat.R | permissive | addelany/LakeEnsemblR | R | false | false | 45 | r | library(testthat)
test_check('LakeEnsemblR')
|
# """
# Written by Manuel Moreno , maamorenova@unal.edu.co, 2020.
#
# Dyads Variable Analysis for Categorical Variables Embedding
# R version 3.6
# """
## Dependencies ###########################################################
require(igraph)
require(magrittr)
require(dplyr... | /main.R | no_license | manumoreno-sl/bip_nets_analysis_binaryclassif | R | false | false | 16,781 | r | # """
# Written by Manuel Moreno , maamorenova@unal.edu.co, 2020.
#
# Dyads Variable Analysis for Categorical Variables Embedding
# R version 3.6
# """
## Dependencies ###########################################################
require(igraph)
require(magrittr)
require(dplyr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metric_timeseries_plot.R
\name{metric_timeseries_plot}
\alias{metric_timeseries_plot}
\title{Timeseries Plot}
\usage{
metric_timeseries_plot(
metric_dat,
var,
filename = NA,
draw.plot = is.na(filename)
)
}
\description{
Timeseries Plo... | /modules/benchmark/man/metric_timeseries_plot.Rd | permissive | PecanProject/pecan | R | false | true | 349 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metric_timeseries_plot.R
\name{metric_timeseries_plot}
\alias{metric_timeseries_plot}
\title{Timeseries Plot}
\usage{
metric_timeseries_plot(
metric_dat,
var,
filename = NA,
draw.plot = is.na(filename)
)
}
\description{
Timeseries Plo... |
library(plyr)
filter_normal_set <- function(data) {
significant <- subset(data, !((NWL == 0 & NEL == 0) & test_status=='PASS'))
return(significant)
}
pass_versus_fail <- function(csv_file) {
data <- read.csv(csv_file,head=TRUE,sep=",")
significant <- filter_normal_set(data)
count(significant, "test_stat... | /osdsn2/resources/functions.r | no_license | wafec/javadocto | R | false | false | 1,158 | r | library(plyr)
filter_normal_set <- function(data) {
significant <- subset(data, !((NWL == 0 & NEL == 0) & test_status=='PASS'))
return(significant)
}
pass_versus_fail <- function(csv_file) {
data <- read.csv(csv_file,head=TRUE,sep=",")
significant <- filter_normal_set(data)
count(significant, "test_stat... |
#Title: rv-11-vector-raster-integration.R
#BCB503 Geospatial Workshop, April 23 and 24th, 2020
#University of Idaho
#Data Carpentry Geospatial Analysis
#Instructors: Erich Seamon, University of Idaho - Travis Seaborn, University of Idaho
library(sf)
library(raster)
library(rgdal)
library(ggplot2)
library(dplyr)
# Le... | /src/rv-11-vector-raster-integration.R | no_license | huan7515/BCB503_geospatial_workshop | R | false | false | 14,882 | r | #Title: rv-11-vector-raster-integration.R
#BCB503 Geospatial Workshop, April 23 and 24th, 2020
#University of Idaho
#Data Carpentry Geospatial Analysis
#Instructors: Erich Seamon, University of Idaho - Travis Seaborn, University of Idaho
library(sf)
library(raster)
library(rgdal)
library(ggplot2)
library(dplyr)
# Le... |
#' SampleEntropy
#'
#' Clase que sobreescribe la clase \code{\link{ComplexityMeasure}} implementando
#' la medida de complejidad Sample Entropy.
#' Based on: http://www.physionet.org/physiotools/sampen/matlab/1.1/sampenc.m
#'
#' Input
#' y input data
#' M maximum template length
#' r matching tolerance
#
#' Output
#' e... | /TimeSeriesAnalysisLibrary/packages/TimeSeriesComplexity/R/class.SampleEntropy.R | permissive | jmorenov/TimeSeriesAnalysis | R | false | false | 3,563 | r | #' SampleEntropy
#'
#' Clase que sobreescribe la clase \code{\link{ComplexityMeasure}} implementando
#' la medida de complejidad Sample Entropy.
#' Based on: http://www.physionet.org/physiotools/sampen/matlab/1.1/sampenc.m
#'
#' Input
#' y input data
#' M maximum template length
#' r matching tolerance
#
#' Output
#' e... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
##comment: this function creates a matric object
##that can cache its inverse
makeCacheMatrix <- function(x = matrix()){
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
... | /cachematrix.R | no_license | AnnaHarrington/ProgrammingAssignment2 | R | false | false | 853 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
##comment: this function creates a matric object
##that can cache its inverse
makeCacheMatrix <- function(x = matrix()){
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
... |
#!/usr/bin/env Rscript
library(optparse)
option_list <- c(make_option('--input', type='character', default='dipp.Rdata'),
make_option('--output', type='character',
default='Rplots.pdf'),
make_option('--width', type='numeric', default=201),
... | /R/bin/sliding-window-smooth | permissive | triplett/dipp-microbiome-study | R | false | false | 7,601 | #!/usr/bin/env Rscript
library(optparse)
option_list <- c(make_option('--input', type='character', default='dipp.Rdata'),
make_option('--output', type='character',
default='Rplots.pdf'),
make_option('--width', type='numeric', default=201),
... | |
/Decision Trees.R | no_license | mahyaseyedan/R-code-for-decision-trees-logistic-regression-and-random-forest | R | false | false | 14,345 | r | ||
library(reshape2)
## read features
features <- read.table("UCI HAR Dataset/features.txt",
header=FALSE,
colClasses=c("integer", "character"))
## read activity labels
activity_labels <- read.table("UCI HAR Dataset/activity_labels.txt",
... | /run_analysis.R | no_license | yaghu/GettingAndCleaningDataCoursera | R | false | false | 2,534 | r | library(reshape2)
## read features
features <- read.table("UCI HAR Dataset/features.txt",
header=FALSE,
colClasses=c("integer", "character"))
## read activity labels
activity_labels <- read.table("UCI HAR Dataset/activity_labels.txt",
... |
\name{plot_density}
\alias{plot_density}
\title{
Visualization of Density of various groups on Principal components
}
\description{
This function displays density of individuals
}
\usage{
plot_density(name, Assay, PC = 1, groups,
groupinfo = NULL, ...)
}
\arguments{
\item{name}{
Name of the "PCA" object containing ... | /man/plot_density.Rd | no_license | subhadeep1024/OMICsPCA | R | false | false | 1,087 | rd | \name{plot_density}
\alias{plot_density}
\title{
Visualization of Density of various groups on Principal components
}
\description{
This function displays density of individuals
}
\usage{
plot_density(name, Assay, PC = 1, groups,
groupinfo = NULL, ...)
}
\arguments{
\item{name}{
Name of the "PCA" object containing ... |
library(pls)
set.seed(2)
#Poisson Regression
rm(list = setdiff(ls(), lsf.str()))
library(pls)
set.seed(2)
library(readxl)
library(leaps)
nba<- read_excel("~/Basketball/bballdata/Code/nbaMaster.xlsx", range="A1:BP1480", col_names = TRUE,na="")
dim(nba)
attach(nba)
summary(nba)
Year=as.factor(Year)
Won=as.factor(Won)
M... | /CODE/poisson.R | no_license | WillMatteson/NBABioData | R | false | false | 1,515 | r | library(pls)
set.seed(2)
#Poisson Regression
rm(list = setdiff(ls(), lsf.str()))
library(pls)
set.seed(2)
library(readxl)
library(leaps)
nba<- read_excel("~/Basketball/bballdata/Code/nbaMaster.xlsx", range="A1:BP1480", col_names = TRUE,na="")
dim(nba)
attach(nba)
summary(nba)
Year=as.factor(Year)
Won=as.factor(Won)
M... |
library(shiny)
library(DT)
library(tidyverse)
library(BasketballAnalyzeR)
###IMPORTANT NOTES
#you need to have the information in the dropdown menus selected BEFORE you click on the graph
#second, make sure you have downloaded the info from the table before closing or clicking the refresh button at the top
###... | /app.R | no_license | benhowell71/Basketball-Plotter | R | false | false | 11,182 | r | library(shiny)
library(DT)
library(tidyverse)
library(BasketballAnalyzeR)
###IMPORTANT NOTES
#you need to have the information in the dropdown menus selected BEFORE you click on the graph
#second, make sure you have downloaded the info from the table before closing or clicking the refresh button at the top
###... |
rm(list=ls())
args <- commandArgs(trailingOnly = TRUE)
print(args)
filename <- args[1]
#metafile <-args[2]
outname <- filename
rm(args)
metafile="../data/freshpad.otherdata"
#filename="../data/kraken_fungi18DB_summary.clean.7.recal.Percent.RShort.xls"
A<-read.table(filename, sep="\t", header=TRUE)
X <- A[,!grepl("Cont... | /get_cor_csv_2files.R | no_license | pinghu/metagenomic | R | false | false | 1,414 | r |
rm(list=ls())
args <- commandArgs(trailingOnly = TRUE)
print(args)
filename <- args[1]
#metafile <-args[2]
outname <- filename
rm(args)
metafile="../data/freshpad.otherdata"
#filename="../data/kraken_fungi18DB_summary.clean.7.recal.Percent.RShort.xls"
A<-read.table(filename, sep="\t", header=TRUE)
X <- A[,!grepl("Cont... |
setwd("~/R/Afstudeerwerk/DataOpdracht1")
source("loadPackages.R")
no_cores <- detectCores()
source("lib/readFiles.r")
ifn <- "tls203_part"; ifp <- "../../../data/mini/"; batches <- 5
saveRDS(summary(benchmark_read(), unit="s"), "docs/readFiles/resources/benchmark_mini.rds")
ifn <- "tls203_part"; ifp <- "../../../da... | /DataOpdracht1/benchMarkScripts/readFiles_benchmark.R | no_license | DylanDriessen/Parallelisations-Methods-R | R | false | false | 756 | r | setwd("~/R/Afstudeerwerk/DataOpdracht1")
source("loadPackages.R")
no_cores <- detectCores()
source("lib/readFiles.r")
ifn <- "tls203_part"; ifp <- "../../../data/mini/"; batches <- 5
saveRDS(summary(benchmark_read(), unit="s"), "docs/readFiles/resources/benchmark_mini.rds")
ifn <- "tls203_part"; ifp <- "../../../da... |
library(GA)
#funkcja oceniajaca
fp <- function(x1, x2)
{
#funkcja Rastrigina
20 + x1^2 + x2^2 - 10*(cos(2*pi*x1) + cos(2*pi*x2))
}
#zmienne x1 i x2
x1 <- x2 <- seq(-5.12, 5.12, by = 0.1)
z <- outer(x1, x2, fp)
GA <- ga(type = "real-valued",
fitness = function(x) -fp(x[1], x[2]),
lower = c(-5.1... | /genetic-algorithm/real_valued.R | no_license | JScislewski/computational-intelligence-course | R | false | false | 428 | r | library(GA)
#funkcja oceniajaca
fp <- function(x1, x2)
{
#funkcja Rastrigina
20 + x1^2 + x2^2 - 10*(cos(2*pi*x1) + cos(2*pi*x2))
}
#zmienne x1 i x2
x1 <- x2 <- seq(-5.12, 5.12, by = 0.1)
z <- outer(x1, x2, fp)
GA <- ga(type = "real-valued",
fitness = function(x) -fp(x[1], x[2]),
lower = c(-5.1... |
# projection
proj4_string <- "+proj=longlat +datum=WGS84 +no_defs"
# non land CDL classes
non_land_cdl_classes <- c(0, 81, 83, 88, 111)
developed_values <- c(82,121,122,123,124)
non_devcrop_class <- c(0,63:65,81,83:92,111,112,131:195)
hydro_variable <- "Normal_Storage"
AF_to_BCM <- 1233.48e-9
Mgallons_to_BCM <- ... | /R/constants.R | permissive | jsta/gamut | R | false | false | 766 | r | # projection
proj4_string <- "+proj=longlat +datum=WGS84 +no_defs"
# non land CDL classes
non_land_cdl_classes <- c(0, 81, 83, 88, 111)
developed_values <- c(82,121,122,123,124)
non_devcrop_class <- c(0,63:65,81,83:92,111,112,131:195)
hydro_variable <- "Normal_Storage"
AF_to_BCM <- 1233.48e-9
Mgallons_to_BCM <- ... |
\name{Sorting of the columns-rows of a matrix}
\alias{colSort}
\alias{rowSort}
\alias{sort_mat}
\title{
Sorting of the columns-rows of a matrix
}
\description{
Fast sorting of the columns-rows of a matrix.
}
\usage{
colSort(x, descending = FALSE, stable = FALSE,parallel=FALSE)
rowSort(x, descending = F... | /man/sort_mat.Rd | no_license | cran/Rfast | R | false | false | 1,466 | rd | \name{Sorting of the columns-rows of a matrix}
\alias{colSort}
\alias{rowSort}
\alias{sort_mat}
\title{
Sorting of the columns-rows of a matrix
}
\description{
Fast sorting of the columns-rows of a matrix.
}
\usage{
colSort(x, descending = FALSE, stable = FALSE,parallel=FALSE)
rowSort(x, descending = F... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.R
\name{print.plcp_multi_sim}
\alias{print.plcp_multi_sim}
\title{Print method for \code{simulate.plcp_multi}-objects}
\usage{
\method{print}{plcp_multi_sim}(x, ...)
}
\arguments{
\item{x}{An object created with \code{\link{simulate.... | /man/print.plcp_multi_sim.Rd | no_license | rpsychologist/powerlmm | R | false | true | 437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.R
\name{print.plcp_multi_sim}
\alias{print.plcp_multi_sim}
\title{Print method for \code{simulate.plcp_multi}-objects}
\usage{
\method{print}{plcp_multi_sim}(x, ...)
}
\arguments{
\item{x}{An object created with \code{\link{simulate.... |
- 👋 Hi, I’m HackersAfghan
- 👀 welcome
<!---
Darman736/Darman736 is a ✨ special ✨ repository because its `README.md` (this file) appears on your GitHub profile.
You can click the Preview link to take a look at your changes.
--->
| /HackersAfghan.rd | no_license | Darman736/Darman736 | R | false | false | 241 | rd | - 👋 Hi, I’m HackersAfghan
- 👀 welcome
<!---
Darman736/Darman736 is a ✨ special ✨ repository because its `README.md` (this file) appears on your GitHub profile.
You can click the Preview link to take a look at your changes.
--->
|
#' A z-score calculates a probability score that compares the observed collocate frequency to its expected value
#'
#' @param doc A character vector or list of character vectors
#' @param keyword A character vector containing a keyword
#' @param window The number of context words to be displayed around the keyword De... | /R/zscore.R | no_license | cokelly/collocateR | R | false | false | 2,209 | r | #' A z-score calculates a probability score that compares the observed collocate frequency to its expected value
#'
#' @param doc A character vector or list of character vectors
#' @param keyword A character vector containing a keyword
#' @param window The number of context words to be displayed around the keyword De... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/openfair.R
\name{sample_vuln}
\alias{sample_vuln}
\title{Calculate the vulnerability}
\usage{
sample_vuln(n, .func = NULL, params = NULL)
}
\arguments{
\item{n}{Number of samples to generate.}
\item{.func}{Function to use to simulate VULN, d... | /man/sample_vuln.Rd | permissive | davidski/evaluator | R | false | true | 892 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/openfair.R
\name{sample_vuln}
\alias{sample_vuln}
\title{Calculate the vulnerability}
\usage{
sample_vuln(n, .func = NULL, params = NULL)
}
\arguments{
\item{n}{Number of samples to generate.}
\item{.func}{Function to use to simulate VULN, d... |
## Put comments here that give an overall description of what your
## functions do
Week 3 Assignment; April 26, 2020; GitHub user: Sidharth092
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## This function creates a special "matrix" object that can cache its inverse
... | /cachematrix.R | no_license | Sidharth092/ProgrammingAssignment2 | R | false | false | 1,625 | r | ## Put comments here that give an overall description of what your
## functions do
Week 3 Assignment; April 26, 2020; GitHub user: Sidharth092
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## This function creates a special "matrix" object that can cache its inverse
... |
library(leaflet)
library(tidyverse)
library(mapview)
setwd("C:/00_Dana/Uni/6. Semester/Bachelorarbeit/Plots/Netatmo")
list_netatmo_col=lapply(list_netatmo_level_D, `[`, 2)
d_netatmo <- data.frame(x = unlist(list_netatmo_col),
site = rep(names(list_netatmo_col),
... | /Netatmo/plot_netatmo_2020.r | no_license | DanaLooschelders/Urban_Heat_Island_Muenster | R | false | false | 4,491 | r | library(leaflet)
library(tidyverse)
library(mapview)
setwd("C:/00_Dana/Uni/6. Semester/Bachelorarbeit/Plots/Netatmo")
list_netatmo_col=lapply(list_netatmo_level_D, `[`, 2)
d_netatmo <- data.frame(x = unlist(list_netatmo_col),
site = rep(names(list_netatmo_col),
... |
# Gabriel Hoffman
# Nov 1, 2021
#' Apply pre-specified sample weights
#'
#' Apply pre-specified sample weights by scaling existing precision weights
#'
#' @param vobj \code{EList} from \code{voom} or \code{voomWithDreamWeights}.
#' @param weights sample level weights
#'
#' @details Apply pre-specified sample-level wei... | /R/applyQualityWeights.R | no_license | GabrielHoffman/variancePartition | R | false | false | 892 | r | # Gabriel Hoffman
# Nov 1, 2021
#' Apply pre-specified sample weights
#'
#' Apply pre-specified sample weights by scaling existing precision weights
#'
#' @param vobj \code{EList} from \code{voom} or \code{voomWithDreamWeights}.
#' @param weights sample level weights
#'
#' @details Apply pre-specified sample-level wei... |
setwd('/mnt/bigdisk/work/northAmericanArabidopsis/americanarabidopsis/environmental_factor_analysis')
envemb <- read.table("umapEmbedding2RegionsOutput_onlyTargetGroupsOutput.txt", header=T)
library(ggplot2)
library(ggthemes)
library(ggrepel)
cols= c("azerbaijanGeorgia"="#00ADEF","cSouthItaly"="#9D248E","italyBalkanPen... | /environmental_factor_analysis/umapEmbeddings_v2_onlyTargets.R | no_license | weigelworld/north_american_arabidopsi | R | false | false | 1,796 | r | setwd('/mnt/bigdisk/work/northAmericanArabidopsis/americanarabidopsis/environmental_factor_analysis')
envemb <- read.table("umapEmbedding2RegionsOutput_onlyTargetGroupsOutput.txt", header=T)
library(ggplot2)
library(ggthemes)
library(ggrepel)
cols= c("azerbaijanGeorgia"="#00ADEF","cSouthItaly"="#9D248E","italyBalkanPen... |
# This script loop over the 6th first panels
# and plot the result of dichotomization exploration
# using cross validation.
for(i in 1:6) {
#set variables
file_name = paste("/home/foulquier/Bureau/SpellCraft/WorkSpace/Github/GUI/data/dichotomization_exploration_panel_",i,".log", sep="")
save_name = paste("... | /dichotomization_visu.R | no_license | Nurtal/GUI | R | false | false | 868 | r |
# This script loop over the 6th first panels
# and plot the result of dichotomization exploration
# using cross validation.
for(i in 1:6) {
#set variables
file_name = paste("/home/foulquier/Bureau/SpellCraft/WorkSpace/Github/GUI/data/dichotomization_exploration_panel_",i,".log", sep="")
save_name = paste("... |
make_thresholded <- function(predicted_raster, thresholds) {
thresh_matrix <- matrix(nrow = 3, ncol = 3)
thresh_matrix[1, ] <- c(0, thresholds[1], 1)
thresh_matrix[2, ] <- c(thresholds[1], thresholds[2], 2)
thresh_matrix[3, ] <- c(thresholds[2], 1, 3)
thresholded_raster <- raster::reclassify(predicted_rast... | /functions/make_thresholded.R | no_license | diazrenata/macaws | R | false | false | 368 | r | make_thresholded <- function(predicted_raster, thresholds) {
thresh_matrix <- matrix(nrow = 3, ncol = 3)
thresh_matrix[1, ] <- c(0, thresholds[1], 1)
thresh_matrix[2, ] <- c(thresholds[1], thresholds[2], 2)
thresh_matrix[3, ] <- c(thresholds[2], 1, 3)
thresholded_raster <- raster::reclassify(predicted_rast... |
#Preparation and reading of Data and install and use packages data.table
featureNames <- read.table("UCI HAR Dataset/features.txt")
activityLabels <- read.table("UCI HAR Dataset/activity_labels.txt", header = FALSE)
subjectTrain <- read.table("UCI HAR Dataset/train/subject_train.txt", header = FALSE)
LabelTrain <- read... | /run_analysis.R | no_license | pglim/Getting-and-Cleaning-Data-Course-Project | R | false | false | 3,040 | r | #Preparation and reading of Data and install and use packages data.table
featureNames <- read.table("UCI HAR Dataset/features.txt")
activityLabels <- read.table("UCI HAR Dataset/activity_labels.txt", header = FALSE)
subjectTrain <- read.table("UCI HAR Dataset/train/subject_train.txt", header = FALSE)
LabelTrain <- read... |
graphics.off()
remove(list = ls())
library(ggplot2)
library(matrixStats)
library(cowplot)
catalase <- data.frame(read.csv("CAT.csv",
sep = ',',
dec = '.',
header = TRUE))
rep1 <- data.frame(catalase[ which(catalase$repBIO... | /old_july_2016/actEnzymatique/Ler/catalaseLer1test.R | no_license | CathyCat88/thesis | R | false | false | 5,876 | r | graphics.off()
remove(list = ls())
library(ggplot2)
library(matrixStats)
library(cowplot)
catalase <- data.frame(read.csv("CAT.csv",
sep = ',',
dec = '.',
header = TRUE))
rep1 <- data.frame(catalase[ which(catalase$repBIO... |
#' Collapse \code{term_count} Tags
#'
#' Collapse (sum) tags/columns of a \code{term_count} object or remove columns
#' without changing termco class.
#'
#' @param x A \code{term_count} object.
#' @param mapping A list of named vectors where the vector names are the collapsed
#' column names and the vectors are the nam... | /R/collapse_tags.R | no_license | trinker/termco | R | false | false | 5,029 | r | #' Collapse \code{term_count} Tags
#'
#' Collapse (sum) tags/columns of a \code{term_count} object or remove columns
#' without changing termco class.
#'
#' @param x A \code{term_count} object.
#' @param mapping A list of named vectors where the vector names are the collapsed
#' column names and the vectors are the nam... |
source("renv/activate.R")
options(
drake_make_menu = FALSE,
Ncpus = 10,
# repos = BiocManager::repositories(),
radian.editing_mode = "vi",
radian.auto_match = TRUE,
radian.auto_indentation = TRUE,
radian.tab_size = 2,
radian.complete_while_typing = TRUE,
scipen = 999,
clustermq.scheduler = "slurm"... | /.Rprofile | permissive | the-Hull/2019-feature-selection | R | false | false | 1,213 | rprofile | source("renv/activate.R")
options(
drake_make_menu = FALSE,
Ncpus = 10,
# repos = BiocManager::repositories(),
radian.editing_mode = "vi",
radian.auto_match = TRUE,
radian.auto_indentation = TRUE,
radian.tab_size = 2,
radian.complete_while_typing = TRUE,
scipen = 999,
clustermq.scheduler = "slurm"... |
#' A function to read in a JSON Table Schema
#'
#' @param content The content to convert. This can either be a String of JSON,
#' a local filename, or a URL. You can provide the schema and data in a
#' single message (with keys named \code{fields} and \code{data}, respectively),
#' or you can use the \code{schema} p... | /R/read-json-table.R | permissive | kivuhub/RODProt | R | false | false | 7,463 | r | #' A function to read in a JSON Table Schema
#'
#' @param content The content to convert. This can either be a String of JSON,
#' a local filename, or a URL. You can provide the schema and data in a
#' single message (with keys named \code{fields} and \code{data}, respectively),
#' or you can use the \code{schema} p... |
########################################################################
## Title: Download all FAOSTAT and countrySTAT data and convert them
## to comparison format
## Date: 2013-10-29
########################################################################
library(plyr)
library(lattice)
library(data.table)
library(F... | /data2comparison.R | no_license | mkao006/faostat_countrystat_comparison | R | false | false | 1,825 | r | ########################################################################
## Title: Download all FAOSTAT and countrySTAT data and convert them
## to comparison format
## Date: 2013-10-29
########################################################################
library(plyr)
library(lattice)
library(data.table)
library(F... |
#' @title A helper function that takes a model and generates the shiny UI elements for the analyze tab
#'
#' @description This function generates numeric shiny UI inputs for a supplied model.
#' This is a helper function called by the shiny app.
#' @param mbmodel a name of a function for which to build inputs
#' @param... | /R/generate_shinyinput.R | no_license | HulyaKocyigit/DSAIRM | R | false | false | 2,771 | r | #' @title A helper function that takes a model and generates the shiny UI elements for the analyze tab
#'
#' @description This function generates numeric shiny UI inputs for a supplied model.
#' This is a helper function called by the shiny app.
#' @param mbmodel a name of a function for which to build inputs
#' @param... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/input.R
\name{read.ess}
\alias{read.ess}
\title{ess.read}
\usage{
read.ess(f, ...)
}
\arguments{
\item{f}{base file name, a character string}
\item{...}{optional arguments passed to as.ESS.object}
}
\value{
object of class ESS
}
\des... | /man/read.ess.Rd | no_license | mingfang618/GUESSFM | R | false | false | 762 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/input.R
\name{read.ess}
\alias{read.ess}
\title{ess.read}
\usage{
read.ess(f, ...)
}
\arguments{
\item{f}{base file name, a character string}
\item{...}{optional arguments passed to as.ESS.object}
}
\value{
object of class ESS
}
\des... |
#!/usr/bin/env Rscript
######
# This script will do a lmm for the DEP samples, with rank as a fixed effect and animal, run, and phase as random effects. Mastermix and date collected are regressed out first.
# usage: ./lmm_DEP_all_taxa_covs_regressed_110414ERD.R
# input: abundance tables
# table of possible confou... | /lmm_DEP_all_taxa_covs_regressed_110414ERD.R | no_license | erdavenport/dep | R | false | false | 3,620 | r | #!/usr/bin/env Rscript
######
# This script will do a lmm for the DEP samples, with rank as a fixed effect and animal, run, and phase as random effects. Mastermix and date collected are regressed out first.
# usage: ./lmm_DEP_all_taxa_covs_regressed_110414ERD.R
# input: abundance tables
# table of possible confou... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | /r/tests/testthat/helper-data.R | permissive | allx/arrow | R | false | false | 1,866 | r | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
library(shinytest2)
test_that("Make sure upload can use two local files", {
app <- AppDriver$new(name = "upload-multi")
app$upload_file(files = c("cars.csv", "cars_2.csv"))
app$expect_values()
expect_error(
app$upload_file(files = "missing_file.csv"),
"Error finding upload file at path", fixed = TRUE... | /tests/testthat/apps/upload-multi/tests/testthat/test-app-upload-multi.R | permissive | rstudio/shinytest2 | R | false | false | 328 | r | library(shinytest2)
test_that("Make sure upload can use two local files", {
app <- AppDriver$new(name = "upload-multi")
app$upload_file(files = c("cars.csv", "cars_2.csv"))
app$expect_values()
expect_error(
app$upload_file(files = "missing_file.csv"),
"Error finding upload file at path", fixed = TRUE... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/abf.R
\name{abf.normal}
\alias{abf.normal}
\title{Calculate approximate Bayes factor (ABF) for normal prior.}
\usage{
abf.normal(beta, se, priorscale, gridrange = 3, griddensity = 20)
}
\arguments{
\item{beta}{Vector of effect size estimates.... | /man/abf.normal.Rd | no_license | tobyjohnson/gtx | R | false | true | 2,105 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/abf.R
\name{abf.normal}
\alias{abf.normal}
\title{Calculate approximate Bayes factor (ABF) for normal prior.}
\usage{
abf.normal(beta, se, priorscale, gridrange = 3, griddensity = 20)
}
\arguments{
\item{beta}{Vector of effect size estimates.... |
## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup--------------------------------------------------------------------
library(textrecipes)
library(tokenizers)
## ---------------------------------------------------... | /inst/doc/Working-with-n-grams.R | no_license | cran/textrecipes | R | false | false | 2,768 | r | ## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup--------------------------------------------------------------------
library(textrecipes)
library(tokenizers)
## ---------------------------------------------------... |
#<crdata_text>Arbitrary Text 00</crdata_text>
x = c(aVector,"dog")
#<crdata_object>x</crdata_object>
#<crdata_text>Arbitrary Text 01</crdata_text>
| /testing/crdatapnt/simpletest/string/stringparam01b.r | permissive | danlovepy/CRData-Processing-Node | R | false | false | 157 | r | #<crdata_text>Arbitrary Text 00</crdata_text>
x = c(aVector,"dog")
#<crdata_object>x</crdata_object>
#<crdata_text>Arbitrary Text 01</crdata_text>
|
/2013/Wizytowki Polskiej Nauki/skrypt2.R | no_license | pbiecek/SmarterPoland_blog | R | false | false | 2,444 | r | ||
##' Create an object summarizing categorical variables for weighted data
##'
##' Create an object summarizing categorical variables optionally stratifying by one or more startifying variables and performing statistical tests. Usually, \code{\link{svyCreateTableOne}} should be used as the universal frontend for both con... | /tableone/R/svyCreateCatTable.R | no_license | ingted/R-Examples | R | false | false | 6,289 | r | ##' Create an object summarizing categorical variables for weighted data
##'
##' Create an object summarizing categorical variables optionally stratifying by one or more startifying variables and performing statistical tests. Usually, \code{\link{svyCreateTableOne}} should be used as the universal frontend for both con... |
#!/usr/bin/env Rscript
# metagenomeVirFinder.R
# William L. Close
# Pat Schloss Lab
# University of Michigan
# Purpose: Use VirFinder to predict viral contigs at given false-discovery and false-positive rates.
# Usage: Rscript metagenomeVirFinder.R CONTIGFASTA MODELFILE FPRTHRESHOLD FDRTHRESHOLD
# Setting environment... | /code/R/metagenomeVirFinder.R | no_license | um-dang/viralMetagenomicsPipeline | R | false | false | 6,924 | r | #!/usr/bin/env Rscript
# metagenomeVirFinder.R
# William L. Close
# Pat Schloss Lab
# University of Michigan
# Purpose: Use VirFinder to predict viral contigs at given false-discovery and false-positive rates.
# Usage: Rscript metagenomeVirFinder.R CONTIGFASTA MODELFILE FPRTHRESHOLD FDRTHRESHOLD
# Setting environment... |
library(RadOnc)
### Name: LQE
### Title: Linear Quadratic Extrapolated (LQE) Dose Conversion
### Aliases: LQE LQE-methods LQE,ANY,missing-method
### LQE,DVH.list,numeric-method LQE,DVH,numeric-method
### LQE,numeric,numeric-method
### Keywords: methods manip
### ** Examples
# 5x 300cGy == 9x 200cGy (1800cGy iso... | /data/genthat_extracted_code/RadOnc/examples/LQE.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 800 | r | library(RadOnc)
### Name: LQE
### Title: Linear Quadratic Extrapolated (LQE) Dose Conversion
### Aliases: LQE LQE-methods LQE,ANY,missing-method
### LQE,DVH.list,numeric-method LQE,DVH,numeric-method
### LQE,numeric,numeric-method
### Keywords: methods manip
### ** Examples
# 5x 300cGy == 9x 200cGy (1800cGy iso... |
build.partition <- function(d) {
partition <- c()
lista <- vector("list", length(d$lower))
print(length(d$lower))
for (i in 1:length(d$lower)) {
lista[[i]] <- labels(d$lower[[i]])
}
for (i in 1:length(lista))
for (j in 1:length(lista[[i]]))
partition[lista[[i]][[j]]] <- i... | /R/Join.R | no_license | amirms/GeLaToLab | R | false | false | 4,207 | r |
build.partition <- function(d) {
partition <- c()
lista <- vector("list", length(d$lower))
print(length(d$lower))
for (i in 1:length(d$lower)) {
lista[[i]] <- labels(d$lower[[i]])
}
for (i in 1:length(lista))
for (j in 1:length(lista[[i]]))
partition[lista[[i]][[j]]] <- i... |
library(shiny)
source("www/scripts/tab1.R", local=TRUE)
# Define UI ----
ui <- navbarPage(theme ="styles.css" ,"Trabalho 4",
tabPanel("Home",
fluidRow(align="center",
column(6,offset = 3,
i... | /app.R | no_license | Mhubris/guiao4 | R | false | false | 2,536 | r | library(shiny)
source("www/scripts/tab1.R", local=TRUE)
# Define UI ----
ui <- navbarPage(theme ="styles.css" ,"Trabalho 4",
tabPanel("Home",
fluidRow(align="center",
column(6,offset = 3,
i... |
#load from plot1.R created dataframe
datesubset<-read.table("datesubset.txt",header=T,sep=";")
datesubset$datetime<-strptime(datesubset$datetime,format="%Y-%m-%d %H:%M:%S")
#Plot2
Sys.setlocale("LC_TIME", "English") #For days to appear in English
png("plot2.png")
plot(datesubset$datetime,datesubset$Global_active_power... | /plot2.R | no_license | j-ros/ExData_Plotting1 | R | false | false | 469 | r | #load from plot1.R created dataframe
datesubset<-read.table("datesubset.txt",header=T,sep=";")
datesubset$datetime<-strptime(datesubset$datetime,format="%Y-%m-%d %H:%M:%S")
#Plot2
Sys.setlocale("LC_TIME", "English") #For days to appear in English
png("plot2.png")
plot(datesubset$datetime,datesubset$Global_active_power... |
source('/home/markbulkeley/r_scripts/homeServerUtils.R')
dt.daily <- dq("select dt, kwh from electricity.usage_daily")
dt.30 <- dq("select interval_beginning, kwh from electricity.usage_30min")[interval_beginning != '0000-00-00 00:00:00']
dt.30[, dt := as.character(as.Date(interval_beginning))]
dt.dates <- data.table(... | /electricity_explore.R | no_license | markbulk/home-data | R | false | false | 4,063 | r | source('/home/markbulkeley/r_scripts/homeServerUtils.R')
dt.daily <- dq("select dt, kwh from electricity.usage_daily")
dt.30 <- dq("select interval_beginning, kwh from electricity.usage_30min")[interval_beginning != '0000-00-00 00:00:00']
dt.30[, dt := as.character(as.Date(interval_beginning))]
dt.dates <- data.table(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/labeling_abnormal_returns.R
\name{labeling_abnormal_returns}
\alias{labeling_abnormal_returns}
\title{Abnormal returns labeling}
\usage{
labeling_abnormal_returns(
events,
firm_returns,
market_returns,
event_horizon = 30,
model_type... | /man/labeling_abnormal_returns.Rd | no_license | but-today-group/afml-mlfinance | R | false | true | 1,120 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/labeling_abnormal_returns.R
\name{labeling_abnormal_returns}
\alias{labeling_abnormal_returns}
\title{Abnormal returns labeling}
\usage{
labeling_abnormal_returns(
events,
firm_returns,
market_returns,
event_horizon = 30,
model_type... |
\name{lights_out}
\alias{lights_out}
\title{Play the ``Lights Out'' game in R}
\usage{
lights_out(width = 5, height = 5, steps = 3, cheat = FALSE, col.off = "black",
col.on = "white", col.frame = "lightblue", seed = NULL)
}
\arguments{
\item{width}{number of lights in x axis}
\item{height}{number of lights in y a... | /man/lights_out.Rd | no_license | piterbaczek/fun | R | false | false | 1,447 | rd | \name{lights_out}
\alias{lights_out}
\title{Play the ``Lights Out'' game in R}
\usage{
lights_out(width = 5, height = 5, steps = 3, cheat = FALSE, col.off = "black",
col.on = "white", col.frame = "lightblue", seed = NULL)
}
\arguments{
\item{width}{number of lights in x axis}
\item{height}{number of lights in y a... |
\name{u_char_basics}
\alias{as.u_char}
\alias{as.u_char_range}
\alias{as.u_char_seq}
\alias{u_char}
\alias{u_char_range}
\alias{u_char_seq}
\title{Unicode Character Objects}
\description{
Data structures and basic methods for Unicode character data.
}
\usage{
as.u_char(x)
as.u_char_range(x)
as.u_char_seq(x, sep = NA_... | /man/u_char_basics.Rd | no_license | cran/Unicode | R | false | false | 3,581 | rd | \name{u_char_basics}
\alias{as.u_char}
\alias{as.u_char_range}
\alias{as.u_char_seq}
\alias{u_char}
\alias{u_char_range}
\alias{u_char_seq}
\title{Unicode Character Objects}
\description{
Data structures and basic methods for Unicode character data.
}
\usage{
as.u_char(x)
as.u_char_range(x)
as.u_char_seq(x, sep = NA_... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/helpers.R
\name{getMetricOfType}
\alias{getMetricOfType}
\title{Get Requested Type of Transforming Metric}
\usage{
getMetricOfType(metric, eigVec, eigVal, total)
}
\arguments{
\item{metric}{The type of metric to be requested}
\item{e... | /man/getMetricOfType.Rd | permissive | mutual-ai/lfda | R | false | false | 622 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/helpers.R
\name{getMetricOfType}
\alias{getMetricOfType}
\title{Get Requested Type of Transforming Metric}
\usage{
getMetricOfType(metric, eigVec, eigVal, total)
}
\arguments{
\item{metric}{The type of metric to be requested}
\item{e... |
permutation <-
function (nperm = 1000, write.output = TRUE)
{
#Loading data
Class<-NULL
load("permubiome.RData")
df_norm <- df_norm
selected_features <- selected_features
#Discardig features with minimal variation between classes
tags.in<-selected_features[,1]
tags.out<-setdiff(colnames(df_norm[3:ncol(df_norm)]),tag... | /R/permutation.R | no_license | cran/permubiome | R | false | false | 3,029 | r | permutation <-
function (nperm = 1000, write.output = TRUE)
{
#Loading data
Class<-NULL
load("permubiome.RData")
df_norm <- df_norm
selected_features <- selected_features
#Discardig features with minimal variation between classes
tags.in<-selected_features[,1]
tags.out<-setdiff(colnames(df_norm[3:ncol(df_norm)]),tag... |
#' Complete list of palettes
#'
#' Use \code{\link{hakai_palette}} to construct palettes of desired length.
#'
#' @export
hakai_palettes <- list(
hakai_web = c("#A42820", "#5F5647", "#9B110E", "#3F5151", "#4E2A1E", "#550307", "#0C1707"),
Zissou1 = c("#3B9AB2", "#78B7C5", "#EBCC2A", "#E1AF00", "#F21A00"),
Darjeeli... | /R/color.R | permissive | HakaiInstitute/hakaisalmon | R | false | false | 2,139 | r | #' Complete list of palettes
#'
#' Use \code{\link{hakai_palette}} to construct palettes of desired length.
#'
#' @export
hakai_palettes <- list(
hakai_web = c("#A42820", "#5F5647", "#9B110E", "#3F5151", "#4E2A1E", "#550307", "#0C1707"),
Zissou1 = c("#3B9AB2", "#78B7C5", "#EBCC2A", "#E1AF00", "#F21A00"),
Darjeeli... |
# Name: Hilda Mendoza-Avila
# Please uncomment the following lines to install all necessary libraries
# install.packages("tigris")
# install.packages("mapview")
# install.packages("tmap")
# link to the assignment specifications: https://www.evl.uic.edu/aej/424/21Sproject3.html
library(shiny)
library(readxl)
library... | /app.R | permissive | HildaMendoza-Avila/CS424-Project-X | R | false | false | 4,587 | r |
# Name: Hilda Mendoza-Avila
# Please uncomment the following lines to install all necessary libraries
# install.packages("tigris")
# install.packages("mapview")
# install.packages("tmap")
# link to the assignment specifications: https://www.evl.uic.edu/aej/424/21Sproject3.html
library(shiny)
library(readxl)
library... |
bootstrap.size <-
function(bootstrap.grow.prune.results, plot.Ga=TRUE, filename=NULL, horizontal=TRUE){
# EXTRACT NEEDED COMPONENTS
boot.prune <- bootstrap.grow.prune.results$boot.prune
tree0 <- bootstrap.grow.prune.results$initial.tree
n <- tree0$size[1]
OUT <- as.list(NULL)
# COMPUTE THE ALPHA... | /MST/R/bootstrap.size.R | no_license | ingted/R-Examples | R | false | false | 2,784 | r | bootstrap.size <-
function(bootstrap.grow.prune.results, plot.Ga=TRUE, filename=NULL, horizontal=TRUE){
# EXTRACT NEEDED COMPONENTS
boot.prune <- bootstrap.grow.prune.results$boot.prune
tree0 <- bootstrap.grow.prune.results$initial.tree
n <- tree0$size[1]
OUT <- as.list(NULL)
# COMPUTE THE ALPHA... |
library(xlsx)
nba=read.xlsx("nba2013.xlsx",sheetIndex=1,header=T)
names(nba) #列名
n=dim(nba);n #481*32
str(nba) #查看数据集内部结构
nba$allstar<-as.factor(nba$allstar)
nba1<-nba[,c(2,3,8,11,14,24,25,26,29,32)] #根据实际挑取某些变量
#names(nba1)
##下面:为分类变量pos(球员司职)创建指示变量并构造新的数据集
m1=rep(1,n[1]) #创建481个1
m0=rep(0,n[1])
table(nba1$pos) ... | /R_NBA.Rd | no_license | JoeZhu123/R_Program | R | false | false | 1,167 | rd | library(xlsx)
nba=read.xlsx("nba2013.xlsx",sheetIndex=1,header=T)
names(nba) #列名
n=dim(nba);n #481*32
str(nba) #查看数据集内部结构
nba$allstar<-as.factor(nba$allstar)
nba1<-nba[,c(2,3,8,11,14,24,25,26,29,32)] #根据实际挑取某些变量
#names(nba1)
##下面:为分类变量pos(球员司职)创建指示变量并构造新的数据集
m1=rep(1,n[1]) #创建481个1
m0=rep(0,n[1])
table(nba1$pos) ... |
output.path<-"./output"
code.path<-"./code"
function.path<-"./code/functions"
textdata.path<-"./textdata"
binarydata.path<-"./binarydata"
#bronsvoort_training_data
bronsvoort_training_data_clean<-bronsvoort_training_data_clean[bronsvoort_training_data_clean$FMD_cELISA!=0,]
bronsvoort_training_data_clean<-bronsv... | /code/fmd-vnt_binary-only.R | no_license | GustafRydevik/hindcasting-fmd | R | false | false | 3,155 | r |
output.path<-"./output"
code.path<-"./code"
function.path<-"./code/functions"
textdata.path<-"./textdata"
binarydata.path<-"./binarydata"
#bronsvoort_training_data
bronsvoort_training_data_clean<-bronsvoort_training_data_clean[bronsvoort_training_data_clean$FMD_cELISA!=0,]
bronsvoort_training_data_clean<-bronsv... |
\name{Compare-methods}
\docType{methods}
\alias{Compare-methods}
\alias{Compare,brob,ANY-method}
\alias{Compare,brob,brob-method}
\alias{Compare,brob,glub-method}
\alias{Compare,ANY,brob-method}
\alias{Compare,ANY,glub-method}
\alias{Compare,glub,glub-method}
\alias{Compare,glub,ANY-method}
\alias{Compare,glub,brob-met... | /man/Compare.Rd | no_license | RobinHankin/Brobdingnag | R | false | false | 1,052 | rd | \name{Compare-methods}
\docType{methods}
\alias{Compare-methods}
\alias{Compare,brob,ANY-method}
\alias{Compare,brob,brob-method}
\alias{Compare,brob,glub-method}
\alias{Compare,ANY,brob-method}
\alias{Compare,ANY,glub-method}
\alias{Compare,glub,glub-method}
\alias{Compare,glub,ANY-method}
\alias{Compare,glub,brob-met... |
library(tools)
source(file_path_as_absolute("ipm/experimenters.R"))
source(file_path_as_absolute("utils/getDados.R"))
source(file_path_as_absolute("baseline/dados.R"))
source(file_path_as_absolute("utils/tokenizer.R"))
source(file_path_as_absolute("utils/getDadosAmazon.R"))
baseResultsFiles <- "ensembles/ensemblev4/r... | /ensembles/ensemblev4/run/xgboost/ds3.R | no_license | MarcosGrzeca/drunktweets | R | false | false | 566 | r | library(tools)
source(file_path_as_absolute("ipm/experimenters.R"))
source(file_path_as_absolute("utils/getDados.R"))
source(file_path_as_absolute("baseline/dados.R"))
source(file_path_as_absolute("utils/tokenizer.R"))
source(file_path_as_absolute("utils/getDadosAmazon.R"))
baseResultsFiles <- "ensembles/ensemblev4/r... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/palette.R
\name{diverging_pal}
\alias{diverging_pal}
\title{Diverging palette}
\usage{
diverging_pal(n)
}
\arguments{
\item{n}{The number of colors in the palette. The maximum is eleven
currently.}
}
\value{
A character vector of RGB ... | /man/diverging_pal.Rd | no_license | davidmaciel/rigraph | R | false | false | 1,368 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/palette.R
\name{diverging_pal}
\alias{diverging_pal}
\title{Diverging palette}
\usage{
diverging_pal(n)
}
\arguments{
\item{n}{The number of colors in the palette. The maximum is eleven
currently.}
}
\value{
A character vector of RGB ... |
#getting plot and site level means of NEON cosmopolitan genera for forecast validation.
#This would be worth throwing on the cluster. Runs in like 20-30 on pecan2.
rm(list=ls())
library(runjags)
library(foreach)
library(doParallel)
source('paths.r')
source('NEFI_functions/hierarch_ddirch_means.r')
source('NEFI_function... | /ITS/data_construction/NEON_ITS/4._sequence_processing_raw_fastq/all_cosmo_phylo_group_cps_means.r | permissive | EcoForecast/NEFI_microbe | R | false | false | 1,617 | r | #getting plot and site level means of NEON cosmopolitan genera for forecast validation.
#This would be worth throwing on the cluster. Runs in like 20-30 on pecan2.
rm(list=ls())
library(runjags)
library(foreach)
library(doParallel)
source('paths.r')
source('NEFI_functions/hierarch_ddirch_means.r')
source('NEFI_function... |
\name{pdfPlot}
\alias{pdfPlot}
\alias{Probability Density}
\alias{Plot Probability Density}
\alias{Plot PDF}
\title{
Plot Probability Density Function
}
\description{
Produce a probability density function (pdf) plot for a user-specified distribution.
}
\usage{
pdfPlot(distribution = "norm", param.lis... | /man/pdfPlot.Rd | no_license | alexkowa/EnvStats | R | false | false | 8,768 | rd | \name{pdfPlot}
\alias{pdfPlot}
\alias{Probability Density}
\alias{Plot Probability Density}
\alias{Plot PDF}
\title{
Plot Probability Density Function
}
\description{
Produce a probability density function (pdf) plot for a user-specified distribution.
}
\usage{
pdfPlot(distribution = "norm", param.lis... |
# Chapter 9 Lab: Support Vector Machines
# Support Vector Classifier
set.seed(1)
x=matrix(rnorm(20*2), ncol=2)
y=c(rep(-1,10), rep(1,10))
x[y==1,]=x[y==1,] + 1
plot(x, col=(3-y))
dat=data.frame(x=x, y=as.factor(y))
library(e1071)
svmfit=svm(y~., data=dat, kernel="linear", cost=10,scale=FALSE)
plot(svmfit,... | /ISLR_code/chapter9.R | no_license | mxahan/Project_r | R | false | false | 3,605 | r | # Chapter 9 Lab: Support Vector Machines
# Support Vector Classifier
set.seed(1)
x=matrix(rnorm(20*2), ncol=2)
y=c(rep(-1,10), rep(1,10))
x[y==1,]=x[y==1,] + 1
plot(x, col=(3-y))
dat=data.frame(x=x, y=as.factor(y))
library(e1071)
svmfit=svm(y~., data=dat, kernel="linear", cost=10,scale=FALSE)
plot(svmfit,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/post_processing.R
\name{dalys}
\alias{dalys}
\title{Estimate DALYs}
\usage{
dalys(x)
}
\arguments{
\item{x}{data}
}
\description{
Estimate DALYs
}
| /man/dalys.Rd | no_license | mrc-ide/rtss_impact_cea_2021 | R | false | true | 225 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/post_processing.R
\name{dalys}
\alias{dalys}
\title{Estimate DALYs}
\usage{
dalys(x)
}
\arguments{
\item{x}{data}
}
\description{
Estimate DALYs
}
|
## functions: makeCacheMatrix and cacheSolve all to create an inverse matrix
## with demo-ing caching results ofpotentially time-consuming computations
## makeCacheMatrix creates an matrix object/list initialising the cache
# cacheSolve returns the inverse matrix using/mutating the cache
#the first... | /cachematrix.R | no_license | jcott/ProgrammingAssignment2 | R | false | false | 1,704 | r |
## functions: makeCacheMatrix and cacheSolve all to create an inverse matrix
## with demo-ing caching results ofpotentially time-consuming computations
## makeCacheMatrix creates an matrix object/list initialising the cache
# cacheSolve returns the inverse matrix using/mutating the cache
#the first... |
context("fit_model")
test_that("happy path", {
f <- function(model, data) "fit"
model <- new_model("y", "x", "z", f, "f")
fitted_model <- fit_model(model, NULL)
expect_equal(fitted_model$fit, "fit")
})
test_that("warnings are shown", {
model <- new_model("y", "x", "z", warning, "f")
expect_war... | /tests/testthat/test-fit_model.R | no_license | cbaumbach/manyregs | R | false | false | 1,514 | r | context("fit_model")
test_that("happy path", {
f <- function(model, data) "fit"
model <- new_model("y", "x", "z", f, "f")
fitted_model <- fit_model(model, NULL)
expect_equal(fitted_model$fit, "fit")
})
test_that("warnings are shown", {
model <- new_model("y", "x", "z", warning, "f")
expect_war... |
## ------------------------------------------------------------------------
library(ggplot2)
library(dplyr)
library(photobiology)
library(photobiologyWavebands)
library(ggspectra)
good_label_repel <- packageVersion('ggrepel') != "0.8.0" #||
# packageVersion('ggplot2') >= "3.1.0"
## ---- include=FALSE, echo... | /data/genthat_extracted_code/ggspectra/vignettes/userguide2-plot-methods.R | no_license | surayaaramli/typeRrh | R | false | false | 7,725 | r | ## ------------------------------------------------------------------------
library(ggplot2)
library(dplyr)
library(photobiology)
library(photobiologyWavebands)
library(ggspectra)
good_label_repel <- packageVersion('ggrepel') != "0.8.0" #||
# packageVersion('ggplot2') >= "3.1.0"
## ---- include=FALSE, echo... |
#'Compute similarity of faces in a lineup; experimental function
#'
#'Function to compute the degree to which each face in a set of faces
#'loads onto a common factor computed from the faces.
#'
#'@details \itemize{
#' \item The faces need to be standardized for inter-pupil distance, and for
#' p... | /R/face_sim.R | no_license | tmnaylor/r4lineups | R | false | false | 1,891 | r | #'Compute similarity of faces in a lineup; experimental function
#'
#'Function to compute the degree to which each face in a set of faces
#'loads onto a common factor computed from the faces.
#'
#'@details \itemize{
#' \item The faces need to be standardized for inter-pupil distance, and for
#' p... |
#' Quick and Easy summarise function
#'
#' @param tbl A vector, a data.frame or a \code{dplyr} \code{tbl}.
#' @param ... Arguments that can be passed to \code{ezsummary_q()} and
#' \code{ezsummary_c()}
#' @param mode A character value that can be either \code{"ez"} or
#' \code{"details"}. \code{"ez"} is the default mod... | /R/ezsummary.r | no_license | cran/ezsummary | R | false | false | 4,893 | r | #' Quick and Easy summarise function
#'
#' @param tbl A vector, a data.frame or a \code{dplyr} \code{tbl}.
#' @param ... Arguments that can be passed to \code{ezsummary_q()} and
#' \code{ezsummary_c()}
#' @param mode A character value that can be either \code{"ez"} or
#' \code{"details"}. \code{"ez"} is the default mod... |
#hypothesis testing
# so while testing any assumption first step is always to check normality test wheather dtaset is normal or not
#for this we can test using andresen darling normality test
install.packages('nortest')
library(nortest)
#collecting dataset
dataset1<-rnorm(100,10,1) #normally distributed
dat... | /normalitytesthypothesis.R | no_license | mansal3/Hypothesis-Testing | R | false | false | 651 | r | #hypothesis testing
# so while testing any assumption first step is always to check normality test wheather dtaset is normal or not
#for this we can test using andresen darling normality test
install.packages('nortest')
library(nortest)
#collecting dataset
dataset1<-rnorm(100,10,1) #normally distributed
dat... |
suppressWarnings(suppressMessages(library(rgdal)))
suppressWarnings(suppressMessages(library(parallel)))
args = commandArgs(trailingOnly = TRUE)
COL_OFFSET=strtoi(args[1])
ROW_OFFSET=strtoi(args[2])
COL_SIZE=strtoi(args[3])
ROW_SIZE=strtoi(args[4])
# Size is 21592, 18660
#COL_OFFSET=3536
#ROW_OFFSET=65... | /slurm_scritps/bfast01/run_bfast_brazil.R | no_license | lapig-ufg/jackknife-scripts | R | false | false | 6,736 | r | suppressWarnings(suppressMessages(library(rgdal)))
suppressWarnings(suppressMessages(library(parallel)))
args = commandArgs(trailingOnly = TRUE)
COL_OFFSET=strtoi(args[1])
ROW_OFFSET=strtoi(args[2])
COL_SIZE=strtoi(args[3])
ROW_SIZE=strtoi(args[4])
# Size is 21592, 18660
#COL_OFFSET=3536
#ROW_OFFSET=65... |
library(sqldf)
library(ISLR)
library(tree)
library(randomForest)
FIFA = read.csv('C:/Users/Omar/Desktop/WorldCupProject/FIFARosters.csv',header = TRUE, na.strings = ".")
SUMMARY = sqldf("SELECT Year, Team, Avg(Age) AS AVGAGE, median(Age) AS MEDAGE, MAX(Age)-MIN(Age) as AGERANGE,
AVG(HeightM) AS AVGHEIGHT... | /Project.R | no_license | ofuentes7/WC_Project_2026 | R | false | false | 2,131 | r | library(sqldf)
library(ISLR)
library(tree)
library(randomForest)
FIFA = read.csv('C:/Users/Omar/Desktop/WorldCupProject/FIFARosters.csv',header = TRUE, na.strings = ".")
SUMMARY = sqldf("SELECT Year, Team, Avg(Age) AS AVGAGE, median(Age) AS MEDAGE, MAX(Age)-MIN(Age) as AGERANGE,
AVG(HeightM) AS AVGHEIGHT... |
setwd("C:/Users/cgt/Documents/carlos/capes_R/export")
dir_export <- getwd()
disc <- read.csv2("../transform/discentes/temp/df_discentes_final.csv")
prog <- read.csv2("../transform/programas/temp/df_prog_final.csv")
inst <- read.csv2("../transform/instituicoes/temp/df_institu_final.csv")
# TRATAMENTO DOS CAMPOS ANTES... | /export/discentes_merged.R | no_license | DevGra/ETL_capes | R | false | false | 2,413 | r |
setwd("C:/Users/cgt/Documents/carlos/capes_R/export")
dir_export <- getwd()
disc <- read.csv2("../transform/discentes/temp/df_discentes_final.csv")
prog <- read.csv2("../transform/programas/temp/df_prog_final.csv")
inst <- read.csv2("../transform/instituicoes/temp/df_institu_final.csv")
# TRATAMENTO DOS CAMPOS ANTES... |
#' Count Yesses in selected columns.
#'
#' This function takes an ag column, breaks and labels,
#' and returns the appropriate age groups
#' age breaks are automatically given 0 and Inf as limits.
#'
#'
#' @param age_vctr the age column
#' @param age_breaks the breaks
#' @param age_labels the labels
#' @keywords EpiSu... | /R/group_ages.R | no_license | bwaite-esr/EpiSurvR | R | false | false | 1,705 | r | #' Count Yesses in selected columns.
#'
#' This function takes an ag column, breaks and labels,
#' and returns the appropriate age groups
#' age breaks are automatically given 0 and Inf as limits.
#'
#'
#' @param age_vctr the age column
#' @param age_breaks the breaks
#' @param age_labels the labels
#' @keywords EpiSu... |
# makeCacheMatrix and cacheSolve provide a means to create an object that wraps a matrix
# and allows its inverse to be cached in order to only have to perform solve(X) once
# in order to avoid high function overheads. In order to retrieve a cached inverse
# cacheSolve(x, ...) should be used.
# In order to retr... | /cachematrix.R | no_license | jjestrel/ProgrammingAssignment2 | R | false | false | 1,502 | r | # makeCacheMatrix and cacheSolve provide a means to create an object that wraps a matrix
# and allows its inverse to be cached in order to only have to perform solve(X) once
# in order to avoid high function overheads. In order to retrieve a cached inverse
# cacheSolve(x, ...) should be used.
# In order to retr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mc_plot_marks.r
\name{mcell_mc_plot_gg}
\alias{mcell_mc_plot_gg}
\title{Utility plot function to compare two genes based on mc_fp}
\usage{
mcell_mc_plot_gg(
mc_id,
g1,
g2,
cex = 2,
text_cex = 0.5,
mc_colors = NULL,
fig_fn = NULL... | /man/mcell_mc_plot_gg.Rd | permissive | lilab-xjy/metacell | R | false | true | 1,416 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mc_plot_marks.r
\name{mcell_mc_plot_gg}
\alias{mcell_mc_plot_gg}
\title{Utility plot function to compare two genes based on mc_fp}
\usage{
mcell_mc_plot_gg(
mc_id,
g1,
g2,
cex = 2,
text_cex = 0.5,
mc_colors = NULL,
fig_fn = NULL... |
# Text extraction radiation report
# Zaixing Shi, 2019-07-27
library(stringr)
################################################################################
# load radiationd sample report
t1 <- read.csv('Q:/HGREENLEE/Data Working/Pathways Heart Study/Radiation data/Rad_tx_notes_type1.csv',
stringsAs... | /0_radiation.R | no_license | zs2192/pathwaysheart | R | false | false | 5,890 | r | # Text extraction radiation report
# Zaixing Shi, 2019-07-27
library(stringr)
################################################################################
# load radiationd sample report
t1 <- read.csv('Q:/HGREENLEE/Data Working/Pathways Heart Study/Radiation data/Rad_tx_notes_type1.csv',
stringsAs... |
# list of variable names in the Duncan data
dimnames = c("RespOccAsp", "RespEduAsp", "RespParAsp", "RespIQ", "RespSES",
"FrndOccAsp", "FrndEduAsp", "FrndParAsp", "FrndIQ", "FrndSES")
# lower-triangle of correlations among these variables
tmp = c(
0.6247,
0.2137, 0.2742,
0.4105, 0.4043, 0.1839,
0.3240, ... | /_posts/duncan example code.R | no_license | tbates/tbates.github.io | R | false | false | 2,845 | r | # list of variable names in the Duncan data
dimnames = c("RespOccAsp", "RespEduAsp", "RespParAsp", "RespIQ", "RespSES",
"FrndOccAsp", "FrndEduAsp", "FrndParAsp", "FrndIQ", "FrndSES")
# lower-triangle of correlations among these variables
tmp = c(
0.6247,
0.2137, 0.2742,
0.4105, 0.4043, 0.1839,
0.3240, ... |
#' Test for etiologic heterogeneity of risk factors according to individual
#' disease markers in a case-control study
#'
#' @author Emily C Zabor \email{zabore@@mskcc.org}
#'
#' @description \code{eh_test_marker} takes a list of individual disease
#' markers,
#' a list of risk factors, a variable name denoting ... | /R/eh_test_marker.R | no_license | Karagul/riskclustr | R | false | false | 10,566 | r | #' Test for etiologic heterogeneity of risk factors according to individual
#' disease markers in a case-control study
#'
#' @author Emily C Zabor \email{zabore@@mskcc.org}
#'
#' @description \code{eh_test_marker} takes a list of individual disease
#' markers,
#' a list of risk factors, a variable name denoting ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/epinow.R
\name{regional_epinow}
\alias{regional_epinow}
\title{Real-time Rt Estimation, Forecasting and Reporting by Region}
\usage{
regional_epinow(
reported_cases,
target_folder,
target_date,
non_zero_points = 2,
summary = TRUE,
... | /man/regional_epinow.Rd | permissive | sethmund/EpiNow2 | R | false | true | 3,204 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/epinow.R
\name{regional_epinow}
\alias{regional_epinow}
\title{Real-time Rt Estimation, Forecasting and Reporting by Region}
\usage{
regional_epinow(
reported_cases,
target_folder,
target_date,
non_zero_points = 2,
summary = TRUE,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.