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 |
|---|---|---|---|---|---|---|---|---|---|
library(tm)
hamitup <- function (data, sparse){
porkchops <- DataframeSource(data.frame(as.character(data)))
bacon <- Corpus(porkchops)
bacon <- tm_map(bacon, tolower)
bacon <- tm_map(bacon, removePunctuation)
bacon <- tm_map(bacon, removeNumbers)
bacon <- tm_map(bacon, removeWords, stopwords('english'))
#bacon <- tm... | /Salary Predictor/glmnet.R | no_license | LoganWeir/GA-Data-Science-Projects | R | false | false | 4,530 | r |
library(tm)
hamitup <- function (data, sparse){
porkchops <- DataframeSource(data.frame(as.character(data)))
bacon <- Corpus(porkchops)
bacon <- tm_map(bacon, tolower)
bacon <- tm_map(bacon, removePunctuation)
bacon <- tm_map(bacon, removeNumbers)
bacon <- tm_map(bacon, removeWords, stopwords('english'))
#bacon <- tm... |
local({
# fall back on '/' if baseurl is not specified
baseurl = blogdown:::get_config2('baseurl', '/')
knitr::opts_knit$set(base.url = baseurl)
# fall back on 'kramdown' if markdown engine is not specified
markdown = blogdown:::get_config2('markdown', 'kramdown')
# see if we need to use the Jekyll renderer... | /R/build_one.R | permissive | grantmcdermott/grantmcdermott.github.io | R | false | false | 814 | r | local({
# fall back on '/' if baseurl is not specified
baseurl = blogdown:::get_config2('baseurl', '/')
knitr::opts_knit$set(base.url = baseurl)
# fall back on 'kramdown' if markdown engine is not specified
markdown = blogdown:::get_config2('markdown', 'kramdown')
# see if we need to use the Jekyll renderer... |
# IST 687
#
# Student name: BHAVISH KUMAR
# Homework number: 06
# Date due: 7th OCTOBER 2019
#
# Attribution statement: (choose the statements that are true)
# 1. I did this homework by myself, with help from the book and the professor
# Run these three functions to get a clean test of homework code
dev.off(... | /HW07_BhavishKumar.R | no_license | bhavish2207/Intro-to-Data-Science-Lab | R | false | false | 13,702 | r | # IST 687
#
# Student name: BHAVISH KUMAR
# Homework number: 06
# Date due: 7th OCTOBER 2019
#
# Attribution statement: (choose the statements that are true)
# 1. I did this homework by myself, with help from the book and the professor
# Run these three functions to get a clean test of homework code
dev.off(... |
setwd("C:\\Deeps\\R")
getwd()
#---------------------------------------------------------------------------
# Use Case on Insurance Dataset using K Means Clustering.
#---------------------------------------------------------------------------
library(xlsx)
insuranceData = read.xlsx("Data/M3_Insurance_Data.xlsx... | /Assignments/6 Assignment/Module 6 Assignment.R | no_license | chopradeepanshu/Data-Science | R | false | false | 2,043 | r | setwd("C:\\Deeps\\R")
getwd()
#---------------------------------------------------------------------------
# Use Case on Insurance Dataset using K Means Clustering.
#---------------------------------------------------------------------------
library(xlsx)
insuranceData = read.xlsx("Data/M3_Insurance_Data.xlsx... |
library(plyr)
library(dplyr)
library(parallel)
library(readr)
library(LncFinder)
load("~/part3/new.Mh.test_plot.Rdata")
associate <- Mh.test_plot[,1:3]
names(associate) <- c("virus","symptomatic","natural")
host <- unique(c(associate$symptomatic %>% as.vector(),associate$natural %>% as.vector()))
load("~/codonpaper/rev... | /Fig.4 and Fig.4-related.R | no_license | chenfengokha/CUB | R | false | false | 13,130 | r | library(plyr)
library(dplyr)
library(parallel)
library(readr)
library(LncFinder)
load("~/part3/new.Mh.test_plot.Rdata")
associate <- Mh.test_plot[,1:3]
names(associate) <- c("virus","symptomatic","natural")
host <- unique(c(associate$symptomatic %>% as.vector(),associate$natural %>% as.vector()))
load("~/codonpaper/rev... |
\name{reset.compos}
\alias{reset.compos}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
reset and clear compo definitsions
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
reset.compos()
}
%- maybe also 'usage' for other objects documented here.
\d... | /man/reset.compos.Rd | permissive | sazare/Sibyl | R | false | false | 835 | rd | \name{reset.compos}
\alias{reset.compos}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
reset and clear compo definitsions
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
reset.compos()
}
%- maybe also 'usage' for other objects documented here.
\d... |
args = commandArgs(trailingOnly = T)
i1 = as.numeric(args[[1]])
library(data.table)
library(bc2)
#data <- fread("./data/dataset_montse_20180522.txt")
setwd('/data/zhangh24/breast_cancer_data_analysis/')
data <- fread("./data/Dataset_Montse_20190322.txt")
#data <- fread("./data/Dataset_Montse_2018-10-10.txt")
##rep... | /risk_factor/code/poly_imp.R | no_license | andrewhaoyu/breast_cancer_data_analysis | R | false | false | 7,632 | r | args = commandArgs(trailingOnly = T)
i1 = as.numeric(args[[1]])
library(data.table)
library(bc2)
#data <- fread("./data/dataset_montse_20180522.txt")
setwd('/data/zhangh24/breast_cancer_data_analysis/')
data <- fread("./data/Dataset_Montse_20190322.txt")
#data <- fread("./data/Dataset_Montse_2018-10-10.txt")
##rep... |
KsValue = function(data,n){
# Compute the ks value of a model
#
# Args:
# data: A dataFrame[prediction,label] that the prediction of a model and real label
# n: The group number
#
# Returns:
# A vector that the difference value between the rate cumulative bad sample and the rate of cumulative g... | /testAucKs/KsValue.R | no_license | alg-jmx/ShinyLearn | R | false | false | 1,287 | r | KsValue = function(data,n){
# Compute the ks value of a model
#
# Args:
# data: A dataFrame[prediction,label] that the prediction of a model and real label
# n: The group number
#
# Returns:
# A vector that the difference value between the rate cumulative bad sample and the rate of cumulative g... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_indices.R
\name{computeTemporalAdaptationIndex}
\alias{computeTemporalAdaptationIndex}
\title{Keeping up with Climate Change - Temporal Adaptation Index}
\usage{
computeTemporalAdaptationIndex(sim, cc.params, trim = 1)
}
\arguments{... | /memorymigration/man/computeTemporalAdaptationIndex.Rd | no_license | EliGurarie/memorymigration | R | false | true | 744 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_indices.R
\name{computeTemporalAdaptationIndex}
\alias{computeTemporalAdaptationIndex}
\title{Keeping up with Climate Change - Temporal Adaptation Index}
\usage{
computeTemporalAdaptationIndex(sim, cc.params, trim = 1)
}
\arguments{... |
simseir <- function(M, N, beta, I0, ki, thetai, ke = ki, thetae = thetai, latencydist = "fixed",
latencyperiod = 0, rewire.time){
# First do some input format checking
if (!is.null(M))
{
# M should be an edgelist matrix
if(!is.matrix(M))
stop("Input error: Network M must be a... | /simseir.R | no_license | adbecker/Hagellopolis | R | false | false | 8,188 | r | simseir <- function(M, N, beta, I0, ki, thetai, ke = ki, thetae = thetai, latencydist = "fixed",
latencyperiod = 0, rewire.time){
# First do some input format checking
if (!is.null(M))
{
# M should be an edgelist matrix
if(!is.matrix(M))
stop("Input error: Network M must be a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pwOmics_print.R
\name{print.OmicsData}
\alias{print.OmicsData}
\title{Print an OmicsData object.}
\usage{
\method{print}{OmicsData}(x, ...)
}
\arguments{
\item{x}{an OmicsData object to print.}
\item{...}{further arguments to be passed to pr... | /man/print.OmicsData.Rd | no_license | MarenS2/pwOmics_maren | R | false | true | 422 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pwOmics_print.R
\name{print.OmicsData}
\alias{print.OmicsData}
\title{Print an OmicsData object.}
\usage{
\method{print}{OmicsData}(x, ...)
}
\arguments{
\item{x}{an OmicsData object to print.}
\item{...}{further arguments to be passed to pr... |
# Master Script
# Can migrate to function in future?
library(drake)
library(dplyr)
library(ggplot2)
library(tools)
library(rmarkdown)
library(here)
library(forcats)
library(tibble)
library(tidyr)
library(stringr)
library(ggthemes)
source(here("R/extract_functions.R"))
source(here("R/aggregation_functions.R"))
source... | /_drake.R | permissive | JDOsborne1/dj-Council-Spending-Report | R | false | false | 609 | r | # Master Script
# Can migrate to function in future?
library(drake)
library(dplyr)
library(ggplot2)
library(tools)
library(rmarkdown)
library(here)
library(forcats)
library(tibble)
library(tidyr)
library(stringr)
library(ggthemes)
source(here("R/extract_functions.R"))
source(here("R/aggregation_functions.R"))
source... |
# Natural Language Processing
# Importing the dataset
dataset_original = read.delim('Restaurant_Reviews.tsv', quote = '', stringsAsFactors = FALSE)
# Cleaning the texts
# install.packages('tm')
# install.packages('SnowballC')
library(tm)
library(SnowballC)
corpus = VCorpus(VectorSource(dataset_original$Review))
corpu... | /34_NLPBagOfWords/nlp_bag_of_words.R | no_license | SergioVelmay/A-Z_MachineLearning_R | R | false | false | 1,670 | r | # Natural Language Processing
# Importing the dataset
dataset_original = read.delim('Restaurant_Reviews.tsv', quote = '', stringsAsFactors = FALSE)
# Cleaning the texts
# install.packages('tm')
# install.packages('SnowballC')
library(tm)
library(SnowballC)
corpus = VCorpus(VectorSource(dataset_original$Review))
corpu... |
"epi.ssclus1estc" <- function(b, N, xbar, xsigma, epsilon.r, rho, nfractional = FALSE, conf.level = 0.95){
N. <- 1 - ((1 - conf.level) / 2)
z <- qnorm(N., mean = 0, sd = 1)
# Vsq is the relative variance of the continuous variable to be estimated (i.e. var / mean^2):
Vsq <- xsigma^2 / xbar^2
# Design ef... | /epiR/R/epi.ssclus1estc.R | no_license | albrizre/spatstat.revdep | R | false | false | 1,795 | r | "epi.ssclus1estc" <- function(b, N, xbar, xsigma, epsilon.r, rho, nfractional = FALSE, conf.level = 0.95){
N. <- 1 - ((1 - conf.level) / 2)
z <- qnorm(N., mean = 0, sd = 1)
# Vsq is the relative variance of the continuous variable to be estimated (i.e. var / mean^2):
Vsq <- xsigma^2 / xbar^2
# Design ef... |
\name{hc_rect-HilbertCurve-method}
\alias{hc_rect,HilbertCurve-method}
\title{
Add rectangles on Hilbert curve
}
\description{
Add rectangles on Hilbert curve
}
\usage{
\S4method{hc_rect}{HilbertCurve}(object, ir = NULL, x1 = NULL, x2 = NULL,
gp = gpar(fill = "red"),
mean_mode = c("w0", "absolute", "weighted"))... | /man/hc_rect-HilbertCurve-method.rd | permissive | majinshaoyuindustry/HilbertCurve | R | false | false | 1,635 | rd | \name{hc_rect-HilbertCurve-method}
\alias{hc_rect,HilbertCurve-method}
\title{
Add rectangles on Hilbert curve
}
\description{
Add rectangles on Hilbert curve
}
\usage{
\S4method{hc_rect}{HilbertCurve}(object, ir = NULL, x1 = NULL, x2 = NULL,
gp = gpar(fill = "red"),
mean_mode = c("w0", "absolute", "weighted"))... |
library(RAINBOWR)
#> Loading required package: RAINBOWR
### Load example datasets
load("rainbowr/Rice_Zhao_etal.rda")
Rice_geno_score <- Rice_Zhao_etal$genoScore
Rice_geno_map <- Rice_Zhao_etal$genoMap
Rice_pheno <- Rice_Zhao_etal$pheno
trait.name <- "Flowering.time.at.Arkansas"
y <- Rice_pheno[, trait.name, drop = ... | /scripts/example_rainbowR.R | permissive | SilkeAllmannLab/gwas | R | false | false | 1,200 | r | library(RAINBOWR)
#> Loading required package: RAINBOWR
### Load example datasets
load("rainbowr/Rice_Zhao_etal.rda")
Rice_geno_score <- Rice_Zhao_etal$genoScore
Rice_geno_map <- Rice_Zhao_etal$genoMap
Rice_pheno <- Rice_Zhao_etal$pheno
trait.name <- "Flowering.time.at.Arkansas"
y <- Rice_pheno[, trait.name, drop = ... |
fileList <- list.files('~/Dropbox (MIT)/chitinase_data_shared/datedists/', full.names = T)
saveNodes <- list()
for (b in 1:length(fileList)){ # for each model
MyTrees <- ape::read.tree(fileList[[b]])
n=0
nodeDates = matrix(ncol = length(MyTrees[[1]]$node.label), nrow=1000000) ###arbitrary number of rows, can... | /build_node_table.r | no_license | dgru/phylogenetics-scripts | R | false | false | 1,913 | r |
fileList <- list.files('~/Dropbox (MIT)/chitinase_data_shared/datedists/', full.names = T)
saveNodes <- list()
for (b in 1:length(fileList)){ # for each model
MyTrees <- ape::read.tree(fileList[[b]])
n=0
nodeDates = matrix(ncol = length(MyTrees[[1]]$node.label), nrow=1000000) ###arbitrary number of rows, can... |
library(shiny)
library(UsingR)
soccer.rank <- function(names,G1,G2){
matches <- data.frame(name=c("AB","CD","BC","DA","AC","DB"), g1=G1, g2=G2)
result <- data.frame(Pos=c(1:4), Team=c("A","B","C","D"), Name=names,
Pld=rep(0,4), W=rep(0,4), D=rep(0,4), L=rep(0,4),
GF=r... | /server.R | no_license | linzifan/score | R | false | false | 5,910 | r | library(shiny)
library(UsingR)
soccer.rank <- function(names,G1,G2){
matches <- data.frame(name=c("AB","CD","BC","DA","AC","DB"), g1=G1, g2=G2)
result <- data.frame(Pos=c(1:4), Team=c("A","B","C","D"), Name=names,
Pld=rep(0,4), W=rep(0,4), D=rep(0,4), L=rep(0,4),
GF=r... |
rm(list=ls())
library(reshape)
data <- read.csv('data/amino_acid_usage.csv')
melted <- melt(data,id.var=c('species','acid','weight'))
usage <- cast(
melted,
species ~ acid + variable,
)
species <- usage[,1]
usage <- as.matrix(usage[,2:21])
rownames(usage) <- species
colnames(usage) <- levels(data$acid)
decomp ... | /amino_acid_usage/plot/components.R | no_license | michaelbarton/michael-barton-thesis-figures | R | false | false | 566 | r | rm(list=ls())
library(reshape)
data <- read.csv('data/amino_acid_usage.csv')
melted <- melt(data,id.var=c('species','acid','weight'))
usage <- cast(
melted,
species ~ acid + variable,
)
species <- usage[,1]
usage <- as.matrix(usage[,2:21])
rownames(usage) <- species
colnames(usage) <- levels(data$acid)
decomp ... |
library(testthat)
library(clusterTools)
test_check("clusterTools")
| /tests/testthat.R | permissive | IsaacShaffer/clusteringTools | R | false | false | 68 | r | library(testthat)
library(clusterTools)
test_check("clusterTools")
|
##Dataframes son matrices que pueden albergar diferentes tipos de datos en sus columnas
edad <- c(22, 34, 29, 25, 30, 33, 31, 27, 25, 25)
tiempo <- c(14.21, 10.36, 11.89, 13.81, 12.03, 10.99, 12.48, 13.37, 12.29, 11.92)
sexo <- c("M","H","H","M","M","H","M","M","H","H")
misDatos <- data.frame(edad,tiempo,sexo)
misDatos... | /miDataFrame.R | no_license | davidlechuga/IntroRstudio | R | false | false | 1,625 | r | ##Dataframes son matrices que pueden albergar diferentes tipos de datos en sus columnas
edad <- c(22, 34, 29, 25, 30, 33, 31, 27, 25, 25)
tiempo <- c(14.21, 10.36, 11.89, 13.81, 12.03, 10.99, 12.48, 13.37, 12.29, 11.92)
sexo <- c("M","H","H","M","M","H","M","M","H","H")
misDatos <- data.frame(edad,tiempo,sexo)
misDatos... |
context("multicrit: mspot")
test_that("multicrit mspot works", {
par.set = makeNumericParamSet(len = 2L, lower = -2, upper = 1)
f = makeMultiObjectiveFunction(
fn = function(x) x^2,
par.set = par.set,
n.objectives = 2L
)
f2 = makeMultiObjectiveFunction(
fn = function(x) c(1, -1) * x^2,
par.... | /tests/testthat/test_multicrit_mspot.R | no_license | jakobbossek/mlrMBO | R | false | false | 1,017 | r | context("multicrit: mspot")
test_that("multicrit mspot works", {
par.set = makeNumericParamSet(len = 2L, lower = -2, upper = 1)
f = makeMultiObjectiveFunction(
fn = function(x) x^2,
par.set = par.set,
n.objectives = 2L
)
f2 = makeMultiObjectiveFunction(
fn = function(x) c(1, -1) * x^2,
par.... |
#' A LaCriox color palette generator
#' This function allows you to generate color palettes based on LaCriox water flavors.
#' @keywords color palettes
#' @param n: Number of colors desired If omitted, uses all colours.
#' @param name: Number of colors desired If omitted, uses all colours.
#' @param type: Either "discr... | /R/LaCroixColor.R | no_license | karawoo/LaCroixColoR | R | false | false | 1,523 | r | #' A LaCriox color palette generator
#' This function allows you to generate color palettes based on LaCriox water flavors.
#' @keywords color palettes
#' @param n: Number of colors desired If omitted, uses all colours.
#' @param name: Number of colors desired If omitted, uses all colours.
#' @param type: Either "discr... |
/data/97291_Surveydata_syntax.R | no_license | Matherion/threatening-communication-diffusing-the-evidence | R | false | false | 250,446 | r | ||
###########################################################################
# APPLICATION OF S-GOLAY FILTER
###########################################################################
require(raster);require(rgdal);require(signal);require(zoo);require(ptw);require(foreach); require(INLA); require(plyr)
evi2_lis... | /smoothersAugust05th2015.R | no_license | erickokuto/r_scripts | R | false | false | 10,073 | r |
###########################################################################
# APPLICATION OF S-GOLAY FILTER
###########################################################################
require(raster);require(rgdal);require(signal);require(zoo);require(ptw);require(foreach); require(INLA); require(plyr)
evi2_lis... |
\name{msir.bic}
%- Also NEED an '\alias' for EACH other topic documented here.
\alias{msir.bic}
\alias{bicDimRed}
\title{BIC-type criterion for dimensionality}
\description{BIC-type criterion for selecting the dimensionality of a dimension reduction subspace.}
\usage{
msir.bic(object, type = 1, plot = FALSE)
bicDim... | /man/msir.bic.Rd | no_license | cran/msir | R | false | false | 2,320 | rd | \name{msir.bic}
%- Also NEED an '\alias' for EACH other topic documented here.
\alias{msir.bic}
\alias{bicDimRed}
\title{BIC-type criterion for dimensionality}
\description{BIC-type criterion for selecting the dimensionality of a dimension reduction subspace.}
\usage{
msir.bic(object, type = 1, plot = FALSE)
bicDim... |
##
##
##
## mt.v1, ct.v1, bdt.v1,
## mt.v1.AA, ct.v1.AA, bdt.v1.AA,
## mt.v1.nonAA, ct.v1.nonAA, bdt.v1.nonAA,
load("bd_v1.rda")
load("mm_no_Thermodesulfatator_v3.rda") # mt, ct, pt, selPh2.10
library(rstan)
source("stan_utils.R")
phs <- c("Lactobacillus_iners",
"Lactobacillus_crispatus",
"Lactobaci... | /comparison_sPTB_percentages_within_BD_tertiles.R | no_license | drsisu/M_and_M | R | false | false | 2,048 | r | ##
##
##
## mt.v1, ct.v1, bdt.v1,
## mt.v1.AA, ct.v1.AA, bdt.v1.AA,
## mt.v1.nonAA, ct.v1.nonAA, bdt.v1.nonAA,
load("bd_v1.rda")
load("mm_no_Thermodesulfatator_v3.rda") # mt, ct, pt, selPh2.10
library(rstan)
source("stan_utils.R")
phs <- c("Lactobacillus_iners",
"Lactobacillus_crispatus",
"Lactobaci... |
context("dplyr-hof")
test_requires("dplyr")
sc <- testthat_spark_connection()
test_tbl <- testthat_tbl(
name = "hof_test_data",
data = tibble::tibble(
x = list(c(1, 2, 3, 4, 5), c(6, 7, 8, 9, 10)),
y = list(c(1, 4, 2, 8, 5), c(7, 1, 4, 2, 8)),
z = c(11, 12)
)
)
single_col_tbl <- testthat_tbl(
nam... | /tests/testthat/test-dplyr-hof.R | permissive | tnixon/sparklyr | R | false | false | 13,323 | r | context("dplyr-hof")
test_requires("dplyr")
sc <- testthat_spark_connection()
test_tbl <- testthat_tbl(
name = "hof_test_data",
data = tibble::tibble(
x = list(c(1, 2, 3, 4, 5), c(6, 7, 8, 9, 10)),
y = list(c(1, 4, 2, 8, 5), c(7, 1, 4, 2, 8)),
z = c(11, 12)
)
)
single_col_tbl <- testthat_tbl(
nam... |
#' Backend: PostgreSQL
#'
#' @description
#' See `vignette("translate-function")` and `vignette("translate-verb")` for
#' details of overall translation technology. Key differences for this backend
#' are:
#'
#' * Many stringr functions
#' * lubridate date-time extraction functions
#' * More standard statistical summar... | /R/backend-postgres.R | permissive | djrondon/dbplyr | R | false | false | 8,154 | r | #' Backend: PostgreSQL
#'
#' @description
#' See `vignette("translate-function")` and `vignette("translate-verb")` for
#' details of overall translation technology. Key differences for this backend
#' are:
#'
#' * Many stringr functions
#' * lubridate date-time extraction functions
#' * More standard statistical summar... |
source("R_fred_nber/4-utils.R",encoding = "UTF-8")
library(patchwork)
all_tp <- merge(readRDS("results_nber/compile_tp_norev/troughs_lp.RDS"),
readRDS("results_nber/compile_tp_norev/peaks_lp.RDS"),
by=c("series","kernel", "method")) %>%
select_var()
all_rev_fe <- readRDS("results_nber... | /JMS_2022/R_fred_nber/4-Analyse_results_jms.R | no_license | AQLT/articles | R | false | false | 10,189 | r | source("R_fred_nber/4-utils.R",encoding = "UTF-8")
library(patchwork)
all_tp <- merge(readRDS("results_nber/compile_tp_norev/troughs_lp.RDS"),
readRDS("results_nber/compile_tp_norev/peaks_lp.RDS"),
by=c("series","kernel", "method")) %>%
select_var()
all_rev_fe <- readRDS("results_nber... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' AWS Glue DataBrew
#'
#' @description
#' AWS Glue DataBrew is a visual, cloud-scale data-preparation service.
#' DataBrew simplifies data preparation tasks, targeting data issues that
#... | /paws/R/gluedatabrew_service.R | permissive | TWarczak/paws | R | false | false | 7,661 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' AWS Glue DataBrew
#'
#' @description
#' AWS Glue DataBrew is a visual, cloud-scale data-preparation service.
#' DataBrew simplifies data preparation tasks, targeting data issues that
#... |
# angle of incidence
aoi_d = seq(from=0, to=80, by=1)
# Creating a function which will take Er and angle of incidence as input
# and return tp, rs and ts in a dataframe
getValues = function(er, theta1D){
# degree-radian conversions
theta1R = (pi/180)*theta1D
theta2R = asin((sin(theta1R))/(sqrt(er)))
theta2D =... | /problemC.R | no_license | galibhassan/tanz-rem-sens-hw | R | false | false | 1,431 | r |
# angle of incidence
aoi_d = seq(from=0, to=80, by=1)
# Creating a function which will take Er and angle of incidence as input
# and return tp, rs and ts in a dataframe
getValues = function(er, theta1D){
# degree-radian conversions
theta1R = (pi/180)*theta1D
theta2R = asin((sin(theta1R))/(sqrt(er)))
theta2D =... |
install.packages("devtools")
#installed textanalytics packages
install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz", repos = NULL)
devtools::install_github("ColumbusCollaboratory/cognizer")
install.packages(c("rmsfact", "testthat"))
library("cognizer", lib.loc="~/R/x86_64-redhat-linux-gnu-librar... | /Old/CognizerScriptAlchemy.R | no_license | calebki/FARS-Project | R | false | false | 561 | r | install.packages("devtools")
#installed textanalytics packages
install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz", repos = NULL)
devtools::install_github("ColumbusCollaboratory/cognizer")
install.packages(c("rmsfact", "testthat"))
library("cognizer", lib.loc="~/R/x86_64-redhat-linux-gnu-librar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mice.impute.2l.bin.R
\name{mice.impute.2l.bin}
\alias{mice.impute.2l.bin}
\title{Imputation by a two-level logistic model using \code{glmer}}
\usage{
mice.impute.2l.bin(y, ry, x, type, wy = NULL, intercept = TRUE, ...)
}
\arguments{
\item{y}{... | /man/mice.impute.2l.bin.Rd | no_license | mproeling/mice | R | false | true | 2,643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mice.impute.2l.bin.R
\name{mice.impute.2l.bin}
\alias{mice.impute.2l.bin}
\title{Imputation by a two-level logistic model using \code{glmer}}
\usage{
mice.impute.2l.bin(y, ry, x, type, wy = NULL, intercept = TRUE, ...)
}
\arguments{
\item{y}{... |
suppressPackageStartupMessages({
library("sf")
library("RColorBrewer")
library("mapview")
library("leaflet")
library("leafpop")
library("leafem")
})
#+ setup, echo=FALSE
knitr::opts_chunk$set(fig.width=8.83, warning=FALSE, message=FALSE, eval=FALSE)
#' # Some magic
#'
#' ### 0. mapshot
#'
#' `mapview::map... | /1_day/3_viz_II/magic.R | no_license | giscience-fsu/daad_summerschool | R | false | false | 4,340 | r | suppressPackageStartupMessages({
library("sf")
library("RColorBrewer")
library("mapview")
library("leaflet")
library("leafpop")
library("leafem")
})
#+ setup, echo=FALSE
knitr::opts_chunk$set(fig.width=8.83, warning=FALSE, message=FALSE, eval=FALSE)
#' # Some magic
#'
#' ### 0. mapshot
#'
#' `mapview::map... |
/uway/2014년정시/test.R | no_license | iloveaired/r | R | false | false | 1,542 | r | ||
############################################################################
############################################################################
########### ###########
########### WGBS analysis (adipose) ###########
########### ... | /Scripts/7_WGBS/7_WGBS_analysis_adipose.R | permissive | genid/evCpGs | R | false | false | 18,433 | r | ############################################################################
############################################################################
########### ###########
########### WGBS analysis (adipose) ###########
########### ... |
#' Gene ontology testing for Ilumina methylation array data
#'
#' Tests gene ontology enrichment for significant CpGs from Illumina's Infinium
#' HumanMethylation450 or MethylationEPIC array, taking into account the
#' differing number of probes per gene present on the array.
#'
#' This function takes a character vec... | /R/gometh.R | no_license | pjhop/missMethyl | R | false | false | 20,807 | r | #' Gene ontology testing for Ilumina methylation array data
#'
#' Tests gene ontology enrichment for significant CpGs from Illumina's Infinium
#' HumanMethylation450 or MethylationEPIC array, taking into account the
#' differing number of probes per gene present on the array.
#'
#' This function takes a character vec... |
## To Run:
## source('')
## function()
downloader <- function() {
zipped_file_name = "DataPackage.zip"
unzipped_file_name = "UCI HAR Dataset"
download_url = "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
is_exists_zipped_file = file.exists(z... | /run_analysis.R | no_license | afrobeard/run_analysis.R | R | false | false | 2,466 | r | ## To Run:
## source('')
## function()
downloader <- function() {
zipped_file_name = "DataPackage.zip"
unzipped_file_name = "UCI HAR Dataset"
download_url = "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
is_exists_zipped_file = file.exists(z... |
library( treedater )
library( lubridate )
tr <- read.tree( '../results/tree_raw.nwk' )
md <- read.table( '../data/metadata.tsv', header=TRUE, sep = '\t', stringsAsFactors=FALSE)
md$tx <- decimal_date( ymd( md$date ))
# collect sample time info
sts <- setNames( rep(NA, Ntip(tr)), tr$tip.label )
sts[ tr$tip.label %i... | /ranalyses/a1.R | permissive | emvolz/ncov | R | false | false | 2,129 | r | library( treedater )
library( lubridate )
tr <- read.tree( '../results/tree_raw.nwk' )
md <- read.table( '../data/metadata.tsv', header=TRUE, sep = '\t', stringsAsFactors=FALSE)
md$tx <- decimal_date( ymd( md$date ))
# collect sample time info
sts <- setNames( rep(NA, Ntip(tr)), tr$tip.label )
sts[ tr$tip.label %i... |
## Glossary:
## * f: standard function
## * rv: reactiveVal
## * rvs: reactiveValues
## * rf: reactive (function)
## * rfe: eventReactive
## * ro: observe
## * roe: observeEvent
library(tidyverse)
library(shiny)
print("global start")
global_rv0 <- reactiveVal(NULL)
global_ro_action_button_1 <- observe({
print("g... | /app-start/app-start.R | permissive | mmuurr/shiny-experiments | R | false | false | 2,446 | r | ## Glossary:
## * f: standard function
## * rv: reactiveVal
## * rvs: reactiveValues
## * rf: reactive (function)
## * rfe: eventReactive
## * ro: observe
## * roe: observeEvent
library(tidyverse)
library(shiny)
print("global start")
global_rv0 <- reactiveVal(NULL)
global_ro_action_button_1 <- observe({
print("g... |
#' enst to symbol
#'
#' @format A data frame with 64471 rows and 9 columns
#' \describe{
#' \item{V1}{chr}
#' \item{V2}{start}
#' \item{V3}{end}
#' \item{V4}{symbol}
#' \item{V5}{chain}
#' \item{V6}{enst1}
#' \item{V7}{enst2}
#' \item{V8}{ensg}
#' \item{V9}{ensp}
#' }
#' @source \url{https://raw.githubusercontent.com/S... | /R/db.R | permissive | Shicheng-Guo/rbiotools | R | false | false | 396 | r | #' enst to symbol
#'
#' @format A data frame with 64471 rows and 9 columns
#' \describe{
#' \item{V1}{chr}
#' \item{V2}{start}
#' \item{V3}{end}
#' \item{V4}{symbol}
#' \item{V5}{chain}
#' \item{V6}{enst1}
#' \item{V7}{enst2}
#' \item{V8}{ensg}
#' \item{V9}{ensp}
#' }
#' @source \url{https://raw.githubusercontent.com/S... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rango.R
\docType{methods}
\name{store,RangoObject,RangoPostgresConnection-method}
\alias{store,RangoObject,RangoPostgresConnection-method}
\title{store the object to the data base}
\usage{
\S4method{store}{RangoObject,RangoPostgresConnection}... | /man/store-RangoObject-RangoPostgresConnection-method.Rd | no_license | AndreMikulec/Rango | R | false | true | 569 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rango.R
\docType{methods}
\name{store,RangoObject,RangoPostgresConnection-method}
\alias{store,RangoObject,RangoPostgresConnection-method}
\title{store the object to the data base}
\usage{
\S4method{store}{RangoObject,RangoPostgresConnection}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_trmm_world.R
\name{get_trmm_world}
\alias{get_trmm_world}
\title{List and download trmm data in ftp}
\usage{
get_trmm_world(YEAR, MONTH, DAY)
}
\arguments{
\item{YEAR}{year}
\item{MONTH}{month}
\item{DAY}{and day to be downloaded}
}
\va... | /man/get_trmm_world.Rd | no_license | jmigueldelgado/assimReservoirs | R | false | true | 438 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_trmm_world.R
\name{get_trmm_world}
\alias{get_trmm_world}
\title{List and download trmm data in ftp}
\usage{
get_trmm_world(YEAR, MONTH, DAY)
}
\arguments{
\item{YEAR}{year}
\item{MONTH}{month}
\item{DAY}{and day to be downloaded}
}
\va... |
#install.packages("RODBC")
#install.packages("dbConnect")
#install.packages("DBI")
#install.packages("gWidgets")
#install.packages("RMySQL")
#install.packages("data.table")
library(RODBC)
library(dbConnect)
library(DBI)
library(gWidgets)
library(RMySQL)
library(data.table)
library(dplyr)
HOST = '103.29... | /load_data_from_mysql.r | no_license | hakanaku1234/PTTOpenData | R | false | false | 1,981 | r | #install.packages("RODBC")
#install.packages("dbConnect")
#install.packages("DBI")
#install.packages("gWidgets")
#install.packages("RMySQL")
#install.packages("data.table")
library(RODBC)
library(dbConnect)
library(DBI)
library(gWidgets)
library(RMySQL)
library(data.table)
library(dplyr)
HOST = '103.29... |
error.bar <- function(x, y, upper, lower=upper, length=0.1){
if(length(x) != length(y) | length(y) !=length(lower) | length(lower) != length(upper))
stop("vectors must be same length")
arrows(x,y+upper, x, y-lower, angle=90, code=3, length=length)
}
| /inst/cd/error.bar.R | no_license | SAFE-ICU/customDashboard | R | false | false | 263 | r | error.bar <- function(x, y, upper, lower=upper, length=0.1){
if(length(x) != length(y) | length(y) !=length(lower) | length(lower) != length(upper))
stop("vectors must be same length")
arrows(x,y+upper, x, y-lower, angle=90, code=3, length=length)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datadescriptions.R
\docType{data}
\name{knotgrid.off}
\alias{knotgrid.off}
\title{Knot grid data for offshore example}
\description{
Knot grid data for offshore example
}
| /man/knotgrid.off.Rd | no_license | lindesaysh/MRSea | R | false | true | 249 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datadescriptions.R
\docType{data}
\name{knotgrid.off}
\alias{knotgrid.off}
\title{Knot grid data for offshore example}
\description{
Knot grid data for offshore example
}
|
## PROJECT-1 ##
## PART-1 ##
data1=read.delim("001.dat",header = F,sep=",",skip=9,as.is=T)
data2=read.delim("002.dat",header = F,sep=",",skip=9,as.is=T)
data3=read.delim("003.dat",header = F,sep=",",skip=9,as.is=T)
data4=read.delim("004.dat",header = F,sep=",",skip=9,as.is=T)
data5=read.delim("005.dat",header... | /Project-1.R | no_license | piyush-25/BAWR_Project-1 | R | false | false | 1,799 | r | ## PROJECT-1 ##
## PART-1 ##
data1=read.delim("001.dat",header = F,sep=",",skip=9,as.is=T)
data2=read.delim("002.dat",header = F,sep=",",skip=9,as.is=T)
data3=read.delim("003.dat",header = F,sep=",",skip=9,as.is=T)
data4=read.delim("004.dat",header = F,sep=",",skip=9,as.is=T)
data5=read.delim("005.dat",header... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/packrat.R
\name{restore}
\alias{restore}
\title{Apply the most recent snapshot to the library}
\usage{
restore(project = NULL, overwrite.dirty = FALSE, prompt = interactive(),
dry.run = FALSE, restart = !dry.run)
}
\arguments{
\item{project... | /man/restore.Rd | no_license | mdj-zest/packrat | R | false | true | 3,297 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/packrat.R
\name{restore}
\alias{restore}
\title{Apply the most recent snapshot to the library}
\usage{
restore(project = NULL, overwrite.dirty = FALSE, prompt = interactive(),
dry.run = FALSE, restart = !dry.run)
}
\arguments{
\item{project... |
FctPersMonNonMixGamma <- function(data, a.hat, b.hat, group.name) {
## Calculates the values of some function of the person months
## in the non-mixture model with Gamma type survival, i. e.
## S(t) = c^Gamma^(0)(a, b * t), a > 0, b > 0, 0 < c < 1, t >= 0,
## with Gamma^(0) being the regularized incompl... | /R/FctPersMonNonMixGamma.R | no_license | cran/CP | R | false | false | 1,215 | r | FctPersMonNonMixGamma <- function(data, a.hat, b.hat, group.name) {
## Calculates the values of some function of the person months
## in the non-mixture model with Gamma type survival, i. e.
## S(t) = c^Gamma^(0)(a, b * t), a > 0, b > 0, 0 < c < 1, t >= 0,
## with Gamma^(0) being the regularized incompl... |
#' Table of ProbeLasso Results
#'
#' @description Results returned by the \code{\link{ProcessProbeLassoResults}}
#' function for the ProbeLasso method.
#'
#' @format A data frame containing 17 model fit measurements over 2400 design
#' points. The columns are described in the help documentation of
#' \code{\li... | /R/data_ProbeLasso_results.R | no_license | TransBioInfoLab/DMRcompare | R | false | false | 533 | r | #' Table of ProbeLasso Results
#'
#' @description Results returned by the \code{\link{ProcessProbeLassoResults}}
#' function for the ProbeLasso method.
#'
#' @format A data frame containing 17 model fit measurements over 2400 design
#' points. The columns are described in the help documentation of
#' \code{\li... |
df <- mtcars
?mtcars
str(df)
df$vs <- factor(df$vs, labels = c("V", "S"))
df$am <- factor(df$am, labels = c("Auto", "Manual"))
median(df$mpg)
mean(df$disp)
sd(df$hp)
range(df$cyl)
mean_disp <- mean(df$disp)
mean(df$mpg[df$cyl == 6])
mean(df$mpg[df$cyl == 6 & df$vs == "V"])
sd(df$hp[df$cyl != 3 & d... | /1.5 Aggregate, describeBy, psych.R | no_license | SemionushkinDenis1988/R_scripts | R | false | false | 2,094 | r | df <- mtcars
?mtcars
str(df)
df$vs <- factor(df$vs, labels = c("V", "S"))
df$am <- factor(df$am, labels = c("Auto", "Manual"))
median(df$mpg)
mean(df$disp)
sd(df$hp)
range(df$cyl)
mean_disp <- mean(df$disp)
mean(df$mpg[df$cyl == 6])
mean(df$mpg[df$cyl == 6 & df$vs == "V"])
sd(df$hp[df$cyl != 3 & d... |
pollutantmean <-function( directory = "specdata", pollutant = "sulfate", id=1:332){
TotalData <- NULL;
for(i in id){
filename <- as.character(i);
if(i < 10){
filename <- paste("00",filename,".csv", sep = "");
}
else if(i < 100){
filename <- paste("0", filename,".csv", sep = "");
}
... | /pollutantmean.R | no_license | dt-yee/AirPollution-data | R | false | false | 551 | r | pollutantmean <-function( directory = "specdata", pollutant = "sulfate", id=1:332){
TotalData <- NULL;
for(i in id){
filename <- as.character(i);
if(i < 10){
filename <- paste("00",filename,".csv", sep = "");
}
else if(i < 100){
filename <- paste("0", filename,".csv", sep = "");
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_wildfinder.R
\name{data_mammals}
\alias{data_mammals}
\title{Get mammal species data}
\usage{
data_mammals()
}
\value{
data.frame with infos on species
}
\description{
Get mammal species data
}
| /man/data_mammals.Rd | permissive | alamarins/datatoolboxexos | R | false | true | 277 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_wildfinder.R
\name{data_mammals}
\alias{data_mammals}
\title{Get mammal species data}
\usage{
data_mammals()
}
\value{
data.frame with infos on species
}
\description{
Get mammal species data
}
|
## 04_create_working_df.R ----
##
## This creates a super dataframe with state/age/year deaths combined
## with state population, standard population, division, state centroid, etc.
##
## This one dataframe should be able to generate all the other rates we are
## interested in.
## Imports ----
library(tidyverse)
libr... | /code/04_create_working_df.R | no_license | mkiang/opioid_geographic | R | false | false | 3,584 | r | ## 04_create_working_df.R ----
##
## This creates a super dataframe with state/age/year deaths combined
## with state population, standard population, division, state centroid, etc.
##
## This one dataframe should be able to generate all the other rates we are
## interested in.
## Imports ----
library(tidyverse)
libr... |
#' initialize project
#' @param project.id Project name
#' @param project.path Project home directory
#' @param swap.directory Project branch exchange directory
#' @return logical for success or not
#' @export
plant.tree <- function(project.id,project.path,swap.directory){
project.path <- file.path(project.path,pr... | /R/plant_tree.R | no_license | gelfondjal/IT2 | R | false | false | 1,429 | r | #' initialize project
#' @param project.id Project name
#' @param project.path Project home directory
#' @param swap.directory Project branch exchange directory
#' @return logical for success or not
#' @export
plant.tree <- function(project.id,project.path,swap.directory){
project.path <- file.path(project.path,pr... |
##Running BayesTraits Analysis##
########
#Coded by Kate T. Snyder
#Last Modified 5-2-2019
#Built using RStudio Version 1.1.456
#R Version 3.3.1
#
#ape_4.1 phytools_0.5-38 maps_3.1.0 nlme_3.1-137
#
########
########
########
pglsfunc <- function() {
require(ape)
require(geiger)
require(nlme)
require(phy... | /BayesTraits/Supplement_OCpgls0.2.R | permissive | elifesciences-publications/SongLearningEvolution | R | false | false | 4,222 | r | ##Running BayesTraits Analysis##
########
#Coded by Kate T. Snyder
#Last Modified 5-2-2019
#Built using RStudio Version 1.1.456
#R Version 3.3.1
#
#ape_4.1 phytools_0.5-38 maps_3.1.0 nlme_3.1-137
#
########
########
########
pglsfunc <- function() {
require(ape)
require(geiger)
require(nlme)
require(phy... |
# READ AND SELECT DATA
library(tidyverse) # I used tidyverse for getting and cleaning data
power_cons_full <- read_delim("household_power_consumption.txt",
delim = ";",
col_types = "ccddddddd",
na = "?")
power_cons <- power_con... | /plot2.R | no_license | LuigiBernardi/ExData_Plotting1 | R | false | false | 868 | r | # READ AND SELECT DATA
library(tidyverse) # I used tidyverse for getting and cleaning data
power_cons_full <- read_delim("household_power_consumption.txt",
delim = ";",
col_types = "ccddddddd",
na = "?")
power_cons <- power_con... |
#' Run a complete train and test using the data from the package. Reproduces the paper results
#' @export
reproduce_insect_results<-function(CPU=20){
trees=1000;
CV=10;
repeats=3;
seed<-GeneEssentiality::seed;
models<-lapply(list(GeneEssentiality::drosophila_features,GeneEssentiality::tribolium_features), functio... | /R/reproduce_insect_results.R | no_license | dylansosa/GeneEssentiality | R | false | false | 4,396 | r | #' Run a complete train and test using the data from the package. Reproduces the paper results
#' @export
reproduce_insect_results<-function(CPU=20){
trees=1000;
CV=10;
repeats=3;
seed<-GeneEssentiality::seed;
models<-lapply(list(GeneEssentiality::drosophila_features,GeneEssentiality::tribolium_features), functio... |
#' Creation of an overall "Table 1" of baseline patient characteristics before and after weighting
#'
#' Creation of an overall "Table 1" of baseline patient characteristics in the original unweighted and the inverse probability weighted samples, using only summary-level information shared by data-contributing sites. T... | /R/createTable1.R | no_license | cran/ppmHR | R | false | false | 7,683 | r | #' Creation of an overall "Table 1" of baseline patient characteristics before and after weighting
#'
#' Creation of an overall "Table 1" of baseline patient characteristics in the original unweighted and the inverse probability weighted samples, using only summary-level information shared by data-contributing sites. T... |
#' Kernel R6 class
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @useDynLib GauPro, .registration = TRUE
#' @importFrom Rcpp evalCpp
#' @importFrom stats optim
# @keywords data, kriging, Gaussian process, regression
#' @return Object of \code{\link{R6Class}} with methods for fitting GP model.
#... | /R/kernel_ignoreinds.R | no_license | cran/GauPro | R | false | false | 6,358 | r | #' Kernel R6 class
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @useDynLib GauPro, .registration = TRUE
#' @importFrom Rcpp evalCpp
#' @importFrom stats optim
# @keywords data, kriging, Gaussian process, regression
#' @return Object of \code{\link{R6Class}} with methods for fitting GP model.
#... |
#' Whole blood reference of 188 tsDHS-DMCs and 7 blood cell subtypes
#'
#' This reference is a subset of \code{centDHSbloodDMC.m}. This referencen contains 188
#' DMCs which exhibit similar median DNAm values across epithelial, fibroblast
#' and ICs to ensure that the estimation of IC subtype fractions is not
#' con... | /R/centBloodSub.m.R | no_license | RogerZou0108/EpiDISH | R | false | false | 1,801 | r | #' Whole blood reference of 188 tsDHS-DMCs and 7 blood cell subtypes
#'
#' This reference is a subset of \code{centDHSbloodDMC.m}. This referencen contains 188
#' DMCs which exhibit similar median DNAm values across epithelial, fibroblast
#' and ICs to ensure that the estimation of IC subtype fractions is not
#' con... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sampling.R
\name{sample_copula}
\alias{sample_copula}
\title{Sample conditional variables using the Gaussian copula approach}
\usage{
sample_copula(
index_given,
n_samples,
mu,
cov_mat,
m,
x_test_gaussian,
x_train,
x_test
)
}
... | /man/sample_copula.Rd | permissive | martinju/shapr | R | false | true | 1,394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sampling.R
\name{sample_copula}
\alias{sample_copula}
\title{Sample conditional variables using the Gaussian copula approach}
\usage{
sample_copula(
index_given,
n_samples,
mu,
cov_mat,
m,
x_test_gaussian,
x_train,
x_test
)
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Phae.long1-data.R
\docType{data}
\name{Phae.long1}
\alias{Phae.long1}
\title{Acoustic recording #1 of \emph{Phaethornis longirostris}}
\format{One .wav file: \describe{
\item{Phae.long1}{\emph{Phaethornis longirostris} #1 recording}
... | /man/Phae.long1.Rd | no_license | sildeag/warbleR | R | false | true | 532 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Phae.long1-data.R
\docType{data}
\name{Phae.long1}
\alias{Phae.long1}
\title{Acoustic recording #1 of \emph{Phaethornis longirostris}}
\format{One .wav file: \describe{
\item{Phae.long1}{\emph{Phaethornis longirostris} #1 recording}
... |
library("testthat")
library("CohortMethod")
set.seed(1234)
data(cohortMethodDataSimulationProfile)
sampleSize <- 1
cohortMethodData <- simulateCohortMethodData(cohortMethodDataSimulationProfile, n = sampleSize)
test_that("createStudyPop: washout period", {
cohortMethodData$cohorts$rowId[1] <- 1
cohortMethodData$c... | /tests/testthat/test-studyPopulation.R | permissive | azzashoaibi/CohortMethod | R | false | false | 5,502 | r | library("testthat")
library("CohortMethod")
set.seed(1234)
data(cohortMethodDataSimulationProfile)
sampleSize <- 1
cohortMethodData <- simulateCohortMethodData(cohortMethodDataSimulationProfile, n = sampleSize)
test_that("createStudyPop: washout period", {
cohortMethodData$cohorts$rowId[1] <- 1
cohortMethodData$c... |
data <- read.csv("C:/Users/jdanehower/Desktop/training_filev1.csv", header = TRUE)
cor (data$Females_CEN_2010, data$Females_ACS_06_10)
savehistory(file="myfile")
history(max.show=Inf)
save(x, file= "Census1.RDATA")
data$Percent_Population_in_Urbanized_Area_Census <- data[,11] / data[,14]
data$Percent_Population_i... | /Census 1.R | no_license | danehower/SecondTry | R | false | false | 13,607 | r |
data <- read.csv("C:/Users/jdanehower/Desktop/training_filev1.csv", header = TRUE)
cor (data$Females_CEN_2010, data$Females_ACS_06_10)
savehistory(file="myfile")
history(max.show=Inf)
save(x, file= "Census1.RDATA")
data$Percent_Population_in_Urbanized_Area_Census <- data[,11] / data[,14]
data$Percent_Population_i... |
complete <- function(directory, id = 1:332){
df = data.frame(ids = id, nobs = NA)
# Initialize loop to cycle through each monitor file
for (i in id){
# Create string variable with file name of a given monitor
if (i < 10){
file = paste("00",i,".csv",sep = "")
}else if(i < 100){
f... | /complete.R | no_license | RuiMedon/R-Programming-Assignment1 | R | false | false | 907 | r | complete <- function(directory, id = 1:332){
df = data.frame(ids = id, nobs = NA)
# Initialize loop to cycle through each monitor file
for (i in id){
# Create string variable with file name of a given monitor
if (i < 10){
file = paste("00",i,".csv",sep = "")
}else if(i < 100){
f... |
#' search in "NHANES" database
#'
#' @param ... one or more keywords, use look() function to search.
#' @param cat logical. whether to show results number
#' @return a dataframe
#' @export
#'
#' @examples
#' # x <- nhs_search('diabetes')
nhs_search <- function(...,cat=TRUE,fileds=NULL){
key <- c(...)
vartext <-... | /R/nhs_search.R | no_license | DilyLong/nhanesR | R | false | false | 1,435 | r | #' search in "NHANES" database
#'
#' @param ... one or more keywords, use look() function to search.
#' @param cat logical. whether to show results number
#' @return a dataframe
#' @export
#'
#' @examples
#' # x <- nhs_search('diabetes')
nhs_search <- function(...,cat=TRUE,fileds=NULL){
key <- c(...)
vartext <-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RSiteCatalyst.R
\name{QueueA4TReport}
\alias{QueueA4TReport}
\title{Queue A4T Report}
\usage{
QueueA4TReport(activityId,
reportsuite.id = Sys.getenv("ADOBE_REPORTSUITEID"),
metrics = "uniquevisitors", elements = c("activity", "experience"... | /man/QueueA4TReport.Rd | no_license | derring-do/adobeTaRget | R | false | true | 1,573 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RSiteCatalyst.R
\name{QueueA4TReport}
\alias{QueueA4TReport}
\title{Queue A4T Report}
\usage{
QueueA4TReport(activityId,
reportsuite.id = Sys.getenv("ADOBE_REPORTSUITEID"),
metrics = "uniquevisitors", elements = c("activity", "experience"... |
## rankhospital
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
dataOutcomeOfMeasures <- read.csv("./data/outcome-of-care-measures.csv", header = T,sep = ",")
## Check that state and outcome are valid
states <- unique(dataOutcomeOfMeasures$State)
outcomeSet <- c("heart attack... | /week4/rankhospital.R | no_license | Medicjue/jhu_Rlang_homework | R | false | false | 1,139 | r | ## rankhospital
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
dataOutcomeOfMeasures <- read.csv("./data/outcome-of-care-measures.csv", header = T,sep = ",")
## Check that state and outcome are valid
states <- unique(dataOutcomeOfMeasures$State)
outcomeSet <- c("heart attack... |
#' Produces curve with given values
#'
#' Takes a mean, a sd, and an a value to show a region shaded of the curve
#'
#' @param mu
#' @param sigma
#' @param a
#'
#' @return a graph of the curve
#' @export
#'
#' @examples
myncurve = function(mu, sigma, a){
curve(dnorm(x,mean=mu,sd=sigma), xlim = c(mu-3*sigma, mu + 3*si... | /R/myncurve.R | no_license | nemercer/MATH4753PACK | R | false | false | 726 | r | #' Produces curve with given values
#'
#' Takes a mean, a sd, and an a value to show a region shaded of the curve
#'
#' @param mu
#' @param sigma
#' @param a
#'
#' @return a graph of the curve
#' @export
#'
#' @examples
myncurve = function(mu, sigma, a){
curve(dnorm(x,mean=mu,sd=sigma), xlim = c(mu-3*sigma, mu + 3*si... |
with(a04df8237315d4ff78b38f91f96fc0923, {ROOT <- 'D:/xampp/htdocs/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/School Management__02a1ac40-a208-4774-ad41-b2882fed4529/version/8ea676c5-319a-4f41-bd39-1d9be7e368da';rm(list=ls())}); | /8ea676c5-319a-4f41-bd39-1d9be7e368da/R/Temp/aO25B4H5WLCdX.R | no_license | madhurashah/semoss-school-management | R | false | false | 234 | r | with(a04df8237315d4ff78b38f91f96fc0923, {ROOT <- 'D:/xampp/htdocs/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/School Management__02a1ac40-a208-4774-ad41-b2882fed4529/version/8ea676c5-319a-4f41-bd39-1d9be7e368da';rm(list=ls())}); |
#' @include my_linters.R
linters_to_lint <- list(
assignment_linter = lintr::assignment_linter,
line_length_linter = lintr::line_length_linter(80),
trailing_semicolon_linter = trailing_semicolon_linter,
attach_detach_linter = attach_detach_linter,
setwd_linter = setwd_linter,
sapply_linter = sapply_linter... | /R/prep_lintr.R | permissive | adfi/goodpractice | R | false | false | 746 | r |
#' @include my_linters.R
linters_to_lint <- list(
assignment_linter = lintr::assignment_linter,
line_length_linter = lintr::line_length_linter(80),
trailing_semicolon_linter = trailing_semicolon_linter,
attach_detach_linter = attach_detach_linter,
setwd_linter = setwd_linter,
sapply_linter = sapply_linter... |
library(FPDclustering)
### Name: outliers
### Title: Data set with outliers
### Aliases: outliers
### ** Examples
data(outliers)
plot(outliers[,2:3])
| /data/genthat_extracted_code/FPDclustering/examples/outliers.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 159 | r | library(FPDclustering)
### Name: outliers
### Title: Data set with outliers
### Aliases: outliers
### ** Examples
data(outliers)
plot(outliers[,2:3])
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coefMulti.R
\name{coefMulti}
\alias{coefMulti}
\title{Application d'un coefficient multiplicateur selon la difficulte.}
\usage{
coefMulti(distance)
}
\arguments{
\item{distance}{une difficulte.}
}
\value{
un coefficient en fonctio... | /client/man/coefMulti.Rd | no_license | badnane/RProject | R | false | true | 471 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coefMulti.R
\name{coefMulti}
\alias{coefMulti}
\title{Application d'un coefficient multiplicateur selon la difficulte.}
\usage{
coefMulti(distance)
}
\arguments{
\item{distance}{une difficulte.}
}
\value{
un coefficient en fonctio... |
outlierdetection <- function(data,k='default')
{
#creating a local function
ub <- function(x)
{
x=x[!is.na(x)]
q3=quantile(x,.75)
q1=quantile(x,.25)
res=min(max(x),(q3+1.5*(q3-q1)))
count_ub=0 #to count values above upper boundary
for (i in x)
{
if(i>res) #if the va... | /R/outlierdetection.R | no_license | datamaneuver/outlierdetection | R | false | false | 1,861 | r | outlierdetection <- function(data,k='default')
{
#creating a local function
ub <- function(x)
{
x=x[!is.na(x)]
q3=quantile(x,.75)
q1=quantile(x,.25)
res=min(max(x),(q3+1.5*(q3-q1)))
count_ub=0 #to count values above upper boundary
for (i in x)
{
if(i>res) #if the va... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timer.R
\name{timeSequence}
\alias{timeSequence}
\title{Time each index evaluation for projections in the tour path.}
\usage{
timeSequence(d, t, idx, pmax)
}
\arguments{
\item{d}{Input data in matrix format}
\item{t}{List of projection matri... | /man/timeSequence.Rd | no_license | uschiLaa/spinebil | R | false | true | 873 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timer.R
\name{timeSequence}
\alias{timeSequence}
\title{Time each index evaluation for projections in the tour path.}
\usage{
timeSequence(d, t, idx, pmax)
}
\arguments{
\item{d}{Input data in matrix format}
\item{t}{List of projection matri... |
# Matthew Sudmann-Day
# Barcelona GSE Data Science
# Ridge and Lasso regressions.
# A function to perform a linear regression.
# Returns a vector of estimators for the features in X.
lin.reg <- function(y, X) {
solve(t(X) %*% X, t(X) %*% y)
}
# A function to perform a ridge regression.
# Returns a vector of estimat... | /ridge-lasso.R | no_license | m-sudmann-day/ridge-lasso-R | R | false | false | 2,573 | r | # Matthew Sudmann-Day
# Barcelona GSE Data Science
# Ridge and Lasso regressions.
# A function to perform a linear regression.
# Returns a vector of estimators for the features in X.
lin.reg <- function(y, X) {
solve(t(X) %*% X, t(X) %*% y)
}
# A function to perform a ridge regression.
# Returns a vector of estimat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenomicOverlaps.R
\name{intersect_matrix}
\alias{intersect_matrix}
\title{Returns the intersection matrix from a \linkS4class{GenomicOverlaps} object.}
\usage{
intersect_matrix(x)
}
\arguments{
\item{x}{The \linkS4class{GenomicOverlaps} objec... | /man/intersect_matrix.Rd | no_license | ArnaudDroitLab/GenomicOperations | R | false | true | 742 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenomicOverlaps.R
\name{intersect_matrix}
\alias{intersect_matrix}
\title{Returns the intersection matrix from a \linkS4class{GenomicOverlaps} object.}
\usage{
intersect_matrix(x)
}
\arguments{
\item{x}{The \linkS4class{GenomicOverlaps} objec... |
## The function makeCacheMatrix creates a matrix
## for setting and getting the value of the matrix
## as well as setting and getting its inverse.
## If the inverse has already been calculated,
## result is retrieved from the cache.
makeCacheMatrix <- function(x = matrix()) {
res <- NULL
set <- function(y){
... | /cachematrix.r | no_license | TomaszSzymanski/ProgrammingAssignment2 | R | false | false | 865 | r | ## The function makeCacheMatrix creates a matrix
## for setting and getting the value of the matrix
## as well as setting and getting its inverse.
## If the inverse has already been calculated,
## result is retrieved from the cache.
makeCacheMatrix <- function(x = matrix()) {
res <- NULL
set <- function(y){
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/node_info.R
\name{node_info}
\alias{node_info}
\title{Get detailed information on nodes}
\usage{
node_info(graph)
}
\arguments{
\item{graph}{a graph object of class \code{dgr_graph}.}
}
\value{
a data frame containing information spec... | /man/node_info.Rd | no_license | greenway1/DiagrammeR | R | false | false | 1,977 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/node_info.R
\name{node_info}
\alias{node_info}
\title{Get detailed information on nodes}
\usage{
node_info(graph)
}
\arguments{
\item{graph}{a graph object of class \code{dgr_graph}.}
}
\value{
a data frame containing information spec... |
##
## Code for R wrappers that call C functions to simulate from the double binomial distribution.
##
##
##
##
## evaluates the density of a multiplicative binomial
ddoublebinom <- function(x=NULL, size, p, psi, log=FALSE){
out <- .C("dDoublebinomC", size_R=as.integer(size),
p_R=as.double(p),
... | /R/doublebinom.R | no_license | rich-d-wilkinson/precision | R | false | false | 1,011 | r | ##
## Code for R wrappers that call C functions to simulate from the double binomial distribution.
##
##
##
##
## evaluates the density of a multiplicative binomial
ddoublebinom <- function(x=NULL, size, p, psi, log=FALSE){
out <- .C("dDoublebinomC", size_R=as.integer(size),
p_R=as.double(p),
... |
#' Geoserver REST API Service Setting
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#'
#' @name GSServiceSettings
#' @title A GeoServer service settings resource
#' @description This class models a GeoServer OWS service settings.
#' @keywords geoserver rest api service OGC OWS WMS WFS WCS
#' @ret... | /R/GSServiceSettings.R | no_license | cran/geosapi | R | false | false | 7,809 | r | #' Geoserver REST API Service Setting
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#'
#' @name GSServiceSettings
#' @title A GeoServer service settings resource
#' @description This class models a GeoServer OWS service settings.
#' @keywords geoserver rest api service OGC OWS WMS WFS WCS
#' @ret... |
\name{NISTkgPerCubMeterTOslugPerCubFt}
\alias{NISTkgPerCubMeterTOslugPerCubFt}
\title{Convert kilogram per cubic meter to slug per cubic foot }
\usage{NISTkgPerCubMeterTOslugPerCubFt(kgPerCubMeter)}
\description{\code{NISTkgPerCubMeterTOslugPerCubFt} converts from kilogram per cubic meter (kg/m3) to slug per cubic foo... | /man/NISTkgPerCubMeterTOslugPerCubFt.Rd | no_license | cran/NISTunits | R | false | false | 924 | rd | \name{NISTkgPerCubMeterTOslugPerCubFt}
\alias{NISTkgPerCubMeterTOslugPerCubFt}
\title{Convert kilogram per cubic meter to slug per cubic foot }
\usage{NISTkgPerCubMeterTOslugPerCubFt(kgPerCubMeter)}
\description{\code{NISTkgPerCubMeterTOslugPerCubFt} converts from kilogram per cubic meter (kg/m3) to slug per cubic foo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_quality.R
\name{add_nan}
\alias{add_nan}
\title{add_nan}
\usage{
add_nan(.x)
}
\description{
add_nan
}
| /man/add_nan.Rd | permissive | systats/deeplyr | R | false | true | 186 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_quality.R
\name{add_nan}
\alias{add_nan}
\title{add_nan}
\usage{
add_nan(.x)
}
\description{
add_nan
}
|
#' @title Identify outliers using Z-score cut-off method.
#' @name outliersZ
#'
#' @description outliersZ is used to identify outliers in vectors using Z-score cut-off
#'
#' @param x a vector of numbers
#' @param zCutOff value to use as cutoff (1.96 is a common value)
#' @param replaceOutliersWith if value is an outlie... | /R/outliersZ.R | permissive | hauselin/hausekeep | R | false | false | 2,417 | r | #' @title Identify outliers using Z-score cut-off method.
#' @name outliersZ
#'
#' @description outliersZ is used to identify outliers in vectors using Z-score cut-off
#'
#' @param x a vector of numbers
#' @param zCutOff value to use as cutoff (1.96 is a common value)
#' @param replaceOutliersWith if value is an outlie... |
# Script to process pulse gating data from FACES experiment
# By Sandra Tamm
# Modified by Gustav Nilsonne 2015-12-19
# Adapted for the FACES experiment 2018-08-17
setwd("~/Box Sync/Sleepy Brain/Datafiles")
# Import pulse gating data
PgDataFACES <- read.csv("HR/PgDataFACES.csv", sep=";")
# Import randomisationlist
... | /FACES/Heart_rate_Faces/SessionInfo.R | no_license | AnJK13/SleepyBrain-Analyses | R | false | false | 2,109 | r | # Script to process pulse gating data from FACES experiment
# By Sandra Tamm
# Modified by Gustav Nilsonne 2015-12-19
# Adapted for the FACES experiment 2018-08-17
setwd("~/Box Sync/Sleepy Brain/Datafiles")
# Import pulse gating data
PgDataFACES <- read.csv("HR/PgDataFACES.csv", sep=";")
# Import randomisationlist
... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{layer}
\alias{is.layer}
\alias{layer}
\title{Create a new layer.}
\usage{
layer(..., drop_named = FALSE)
is.layer(x)
}
\arguments{
\item{...}{components: data, \code{\link{props}},
\code{layer}es, or \code{\link{marks}}}
\item{drop_named}{if \code{FALSE... | /man/layer.Rd | no_license | FvD/ggvis | R | false | false | 1,830 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{layer}
\alias{is.layer}
\alias{layer}
\title{Create a new layer.}
\usage{
layer(..., drop_named = FALSE)
is.layer(x)
}
\arguments{
\item{...}{components: data, \code{\link{props}},
\code{layer}es, or \code{\link{marks}}}
\item{drop_named}{if \code{FALSE... |
tabItem_info <-
tabItem(tabName = "info",
navbarPage("Information",
tabPanel("Data Description",
div(includeMarkdown("info/data.md"),
align = "justify")
... | /SOFR/tab/info.R | no_license | Jonas-Liu/R-Studio | R | false | false | 1,525 | r | tabItem_info <-
tabItem(tabName = "info",
navbarPage("Information",
tabPanel("Data Description",
div(includeMarkdown("info/data.md"),
align = "justify")
... |
library(sf)
library(plotly)
nc <- st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
bb <- st_bbox(nc)
# TODO: make this more obvious and automatic
plot_mapbox(
data = group2NA(nc),
x = ~x,
y = ~y,
mode = "lines",
fillcolor = "green",
fill = "toself",
line = list(size = 0.01, color... | /demo/sf-data-scattermapbox.R | permissive | nsm120/plotly | R | false | false | 509 | r | library(sf)
library(plotly)
nc <- st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
bb <- st_bbox(nc)
# TODO: make this more obvious and automatic
plot_mapbox(
data = group2NA(nc),
x = ~x,
y = ~y,
mode = "lines",
fillcolor = "green",
fill = "toself",
line = list(size = 0.01, color... |
#' Helpers for pairlist and language nodes.
#'
#' @description
#'
#' Like any [parse tree](https://en.wikipedia.org/wiki/Parse_tree), R
#' expressions are structured as trees of nodes. Each node has two
#' components: the head and the tail (though technically there is
#' actually a third component for argument names, s... | /R/pairlist.R | no_license | jmpasmoi/rlang | R | false | false | 8,124 | r | #' Helpers for pairlist and language nodes.
#'
#' @description
#'
#' Like any [parse tree](https://en.wikipedia.org/wiki/Parse_tree), R
#' expressions are structured as trees of nodes. Each node has two
#' components: the head and the tail (though technically there is
#' actually a third component for argument names, s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/repFname.R
\name{repFname}
\alias{repFname}
\alias{repFolder}
\alias{scenariosFname}
\title{Replicate File Name}
\usage{
repFname(label, scenario, replicate)
repFolder(label)
scenariosFname(label)
}
\arguments{
\item{label}{label of simulat... | /man/repFname.Rd | no_license | EricArcher/ebvSim | R | false | true | 729 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/repFname.R
\name{repFname}
\alias{repFname}
\alias{repFolder}
\alias{scenariosFname}
\title{Replicate File Name}
\usage{
repFname(label, scenario, replicate)
repFolder(label)
scenariosFname(label)
}
\arguments{
\item{label}{label of simulat... |
library(ROptEstOld)
### Name: optIC
### Title: Generic function for the computation of optimally robust ICs
### Aliases: optIC optIC-methods optIC,L2ParamFamily,asCov-method
### optIC,InfRobModel,asRisk-method optIC,InfRobModel,asUnOvShoot-method
### optIC,FixRobModel,fiUnOvShoot-method
### Keywords: robust
### ... | /data/genthat_extracted_code/ROptEstOld/examples/optIC.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 479 | r | library(ROptEstOld)
### Name: optIC
### Title: Generic function for the computation of optimally robust ICs
### Aliases: optIC optIC-methods optIC,L2ParamFamily,asCov-method
### optIC,InfRobModel,asRisk-method optIC,InfRobModel,asUnOvShoot-method
### optIC,FixRobModel,fiUnOvShoot-method
### Keywords: robust
### ... |
# single decision tree model for bike rentals prediction
#set directory and read csv file
setwd("D:\final\test1")
train <- read.csv("train.csv")
test <- read.csv("test.csv")
# numerical data
#temp, atemp, humidity, windspeed
#factorize categorical data in training set & testing set
#weather, holiday, workingday, se... | /decision_tree.R | no_license | misaki002/bike_share | R | false | false | 2,715 | r | # single decision tree model for bike rentals prediction
#set directory and read csv file
setwd("D:\final\test1")
train <- read.csv("train.csv")
test <- read.csv("test.csv")
# numerical data
#temp, atemp, humidity, windspeed
#factorize categorical data in training set & testing set
#weather, holiday, workingday, se... |
library(dplyr)
#library(survival)
#library(survminer)
Data0<-read.csv('/Users/yu/Documents/Study/Project/Simulation/Work/20190124 Survival Model/Level 1/1.Validation.csv', header=T, stringsAsFactors = FALSE)
Data<-data.frame(Data0$UID, Data0$PrePlace, Data0$CurPlace, Data0$Month, Data0$DateNew, Data0$TimeNew, Data0$S... | /Model/Level 1/2.Combine Time.R | no_license | ycui4/Daily-Activity-Location-Schedule-Model | R | false | false | 3,446 | r | library(dplyr)
#library(survival)
#library(survminer)
Data0<-read.csv('/Users/yu/Documents/Study/Project/Simulation/Work/20190124 Survival Model/Level 1/1.Validation.csv', header=T, stringsAsFactors = FALSE)
Data<-data.frame(Data0$UID, Data0$PrePlace, Data0$CurPlace, Data0$Month, Data0$DateNew, Data0$TimeNew, Data0$S... |
#' @title Compute exact statistical moments
#'
#' @details These functions enable exploring the properties of the
#' null distributions of diffusion scores. They provide
#' the exact statistical moments mentioned in:
#'
#' Sergio Picart-Armada, Wesley K Thompson, Alfonso Buil,
#' Alexandre Perera-Lluna. The effect ... | /R/moments.R | no_license | b2slab/diffuStats | R | false | false | 4,542 | r | #' @title Compute exact statistical moments
#'
#' @details These functions enable exploring the properties of the
#' null distributions of diffusion scores. They provide
#' the exact statistical moments mentioned in:
#'
#' Sergio Picart-Armada, Wesley K Thompson, Alfonso Buil,
#' Alexandre Perera-Lluna. The effect ... |
## Author: Alex Cope
## Script for analyzing CUB with endogenous and exogenous genes treated as separate categories
## Produces \phi values
## Note some function calls in this script may be out of date with the current version of AnaCoDa
library(AnaCoDa)
rm(list=ls())
CHAIN_ID <- Sys.getenv("SGE_TASK_ID")
cat("Chain... | /R_scripts/runRocModel_endo_exo.R | no_license | acope3/Signal_Peptide_Scripts | R | false | false | 11,782 | r | ## Author: Alex Cope
## Script for analyzing CUB with endogenous and exogenous genes treated as separate categories
## Produces \phi values
## Note some function calls in this script may be out of date with the current version of AnaCoDa
library(AnaCoDa)
rm(list=ls())
CHAIN_ID <- Sys.getenv("SGE_TASK_ID")
cat("Chain... |
#' Sort column names by study number, then by arm number
#' @description Creates a rearranged vector of column names to be used to reorder columns for compatibility between Stan and JAGS sampling output
#' @param string A character string of the prefix for the desired column names
#' @param ns The number of studies
#' ... | /R/sortNames.r | no_license | augustinewigle/StanNet | R | false | false | 942 | r | #' Sort column names by study number, then by arm number
#' @description Creates a rearranged vector of column names to be used to reorder columns for compatibility between Stan and JAGS sampling output
#' @param string A character string of the prefix for the desired column names
#' @param ns The number of studies
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stamp.r
\name{stamp}
\alias{stamp}
\alias{stamp_date}
\alias{stamp_time}
\title{Format dates and times based on human-friendly templates.}
\usage{
stamp(x, orders = lubridate_formats, locale = Sys.getlocale("LC_TIME"),
quiet = FALSE)
stamp... | /man/stamp.Rd | no_license | Ankit-Dwivedii/lubridate | R | false | true | 2,832 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stamp.r
\name{stamp}
\alias{stamp}
\alias{stamp_date}
\alias{stamp_time}
\title{Format dates and times based on human-friendly templates.}
\usage{
stamp(x, orders = lubridate_formats, locale = Sys.getlocale("LC_TIME"),
quiet = FALSE)
stamp... |
library('shiny')
library('stringi')
library('dplyr')
library('igraph')
library('sna')
load(file='twomode.rda')
recipe_list=read.csv('list.csv')
recipe_list=recipe_list[,-1]
######################################
## recipe plot
rmrep=rep(F,200)
for(i in 1:200){
if(match(rownames(all_rec_onemode)[i],rownames(all_rec_... | /server.R | no_license | Oracleli/trytrytry | R | false | false | 9,203 | r | library('shiny')
library('stringi')
library('dplyr')
library('igraph')
library('sna')
load(file='twomode.rda')
recipe_list=read.csv('list.csv')
recipe_list=recipe_list[,-1]
######################################
## recipe plot
rmrep=rep(F,200)
for(i in 1:200){
if(match(rownames(all_rec_onemode)[i],rownames(all_rec_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.