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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/UserPageVisits.R
\name{UserPageVisits}
\alias{UserPageVisits}
\title{UserPageVisits}
\usage{
UserPageVisits(id = NULL, workPerformed = NULL, workFeatured = NULL,
typicalAgeRange = NULL, translator = NULL, superEvent = NULL,
subEvents = NU... | /man/UserPageVisits.Rd | no_license | cboettig/schemar | R | false | true | 9,872 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/UserPageVisits.R
\name{UserPageVisits}
\alias{UserPageVisits}
\title{UserPageVisits}
\usage{
UserPageVisits(id = NULL, workPerformed = NULL, workFeatured = NULL,
typicalAgeRange = NULL, translator = NULL, superEvent = NULL,
subEvents = NU... |
# 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/R/compression.R | permissive | mcassels/arrow | R | false | false | 4,623 | 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... |
# Install package 'devtools' to allow us to instal 'rlpi package from Github
install.packages("devtools")
# Load 'devtools' package
library(devtools)
# Install from main ZSL repository online
install_github("Zoological-Society-of-London/rlpi", dependencies=TRUE)
# Load 'rlpi' package
library(rlpi)
# Set the years f... | /Cloud Simulations/SimulationSpace.R | permissive | falko-buschke/LPI | R | false | false | 3,831 | r | # Install package 'devtools' to allow us to instal 'rlpi package from Github
install.packages("devtools")
# Load 'devtools' package
library(devtools)
# Install from main ZSL repository online
install_github("Zoological-Society-of-London/rlpi", dependencies=TRUE)
# Load 'rlpi' package
library(rlpi)
# Set the years f... |
test_that("collapse_chains", {
x <- subset(mcmcr::mcmcr_example, iters = 1:3)
expect_s3_class(collapse_chains(coda::as.mcmc.list(x)), "mcmc.list")
expect_identical(nchains(collapse_chains(as.mcmc.list(mcmcr_example))), 1L)
expect_identical(nchains(collapse_chains(mcmcr_example)), 1L)
expect_identical(nchains(... | /tests/testthat/test-collapse-chains.R | permissive | poissonconsulting/mcmcr | R | false | false | 361 | r | test_that("collapse_chains", {
x <- subset(mcmcr::mcmcr_example, iters = 1:3)
expect_s3_class(collapse_chains(coda::as.mcmc.list(x)), "mcmc.list")
expect_identical(nchains(collapse_chains(as.mcmc.list(mcmcr_example))), 1L)
expect_identical(nchains(collapse_chains(mcmcr_example)), 1L)
expect_identical(nchains(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Item-Fit.R
\name{print.outfit}
\alias{print.outfit}
\title{Print Method for the Output of out_infit}
\usage{
\method{print}{outfit}(x, ...)
}
\arguments{
\item{x}{object of class outfit.}
\item{...}{arguments passed to other functions.}
}
\d... | /man/print.outfit.Rd | no_license | muellermarianne/iarm | R | false | true | 375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Item-Fit.R
\name{print.outfit}
\alias{print.outfit}
\title{Print Method for the Output of out_infit}
\usage{
\method{print}{outfit}(x, ...)
}
\arguments{
\item{x}{object of class outfit.}
\item{...}{arguments passed to other functions.}
}
\d... |
setGeneric("timestamps", function(this) standardGeneric("timestamps"))
setMethod(
"timestamps", ".MoveTrack",
function(this) {
this@timestamps
}
)
setMethod(
"timestamps", ".unUsedRecords",
function(this) {
this@timestampsUnUsedRecords
}
)
setMethod(
"timestamps", ".MoveTrackSingle",
function... | /R/timestamps.R | no_license | cran/move | R | false | false | 827 | r | setGeneric("timestamps", function(this) standardGeneric("timestamps"))
setMethod(
"timestamps", ".MoveTrack",
function(this) {
this@timestamps
}
)
setMethod(
"timestamps", ".unUsedRecords",
function(this) {
this@timestampsUnUsedRecords
}
)
setMethod(
"timestamps", ".MoveTrackSingle",
function... |
# Fit ridge regression
# Using R package "glmnet"
# input: x - predictors of training data
# y - responses of training data
ridge.wrapper = function(input,args){
library(glmnet)
fit = cv.glmnet(input$x,input$y, intercept=FALSE, alpha=0)
betahat = coef(fit, s="lambda.min")[-1]
# return estimate of be... | /methods/ridge.wrapper.R | no_license | mengyin/dscr-example | R | false | false | 356 | r | # Fit ridge regression
# Using R package "glmnet"
# input: x - predictors of training data
# y - responses of training data
ridge.wrapper = function(input,args){
library(glmnet)
fit = cv.glmnet(input$x,input$y, intercept=FALSE, alpha=0)
betahat = coef(fit, s="lambda.min")[-1]
# return estimate of be... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metadata-utilities.R
\name{metadata_utilities}
\alias{metadata_utilities}
\alias{regex_named_captures}
\alias{checkbox_choices}
\title{Manipulate and interpret the metadata of a REDCap project.}
\usage{
regex_named_captures(pattern, text, per... | /man/metadata_utilities.Rd | no_license | firaswehbe/REDCapR | R | false | true | 3,130 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metadata-utilities.R
\name{metadata_utilities}
\alias{metadata_utilities}
\alias{regex_named_captures}
\alias{checkbox_choices}
\title{Manipulate and interpret the metadata of a REDCap project.}
\usage{
regex_named_captures(pattern, text, per... |
## -----------------------------------------------------------------------------------
## Course : Exploratory Data Analysis
## Assignment : Peer-graded Assignment: Course Project 2 - week 4
## Developer : Jon Jagd Christensen (December 2016)
## Code : plot3
## Question : Of the four types of sources indi... | /plot3.R | no_license | JonJagd/ExData_Plotting2 | R | false | false | 3,173 | r | ## -----------------------------------------------------------------------------------
## Course : Exploratory Data Analysis
## Assignment : Peer-graded Assignment: Course Project 2 - week 4
## Developer : Jon Jagd Christensen (December 2016)
## Code : plot3
## Question : Of the four types of sources indi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotPars}
\alias{plotPars}
\title{Plot parameter values for a fitlist}
\usage{
plotPars(x, tol = 1, ...)
}
\arguments{
\item{x}{parameter frame as obtained by as.parframe(mstrust)}
\item{tol}{maximal allowed difference between ... | /man/plotPars.Rd | no_license | marcusrosenblatt/dMod | R | false | true | 472 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotPars}
\alias{plotPars}
\title{Plot parameter values for a fitlist}
\usage{
plotPars(x, tol = 1, ...)
}
\arguments{
\item{x}{parameter frame as obtained by as.parframe(mstrust)}
\item{tol}{maximal allowed difference between ... |
library(tidyverse)
library(LaplacesDemon)
library(doSNOW)
library(lubridate)
library(foreach)
library(gridExtra)
library(xts)
library(ggpubr)
library(ggrepel)
library(dygraphs)
library(rlist)
library(ptw)
library(RhpcBLASctl)
library(ptw)
waves <- function(t, t_start,
intercept, slope,
... | /simulations/code/steps/01 utils.R | permissive | zhulabgroup/song-2023-landsc-ecol | R | false | false | 17,301 | r | library(tidyverse)
library(LaplacesDemon)
library(doSNOW)
library(lubridate)
library(foreach)
library(gridExtra)
library(xts)
library(ggpubr)
library(ggrepel)
library(dygraphs)
library(rlist)
library(ptw)
library(RhpcBLASctl)
library(ptw)
waves <- function(t, t_start,
intercept, slope,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gm_2.R
\name{gm_2}
\alias{gm_2}
\title{optimal gm model with background and response formula}
\usage{
gm_2(y, ntest = NULL, term = 1, buff = NULL, alpha = NA)
}
\arguments{
\item{y}{data sequence.}
\item{buff}{buffer operator used for origin... | /man/gm_2.Rd | no_license | exoplanetX/greyforecasting | R | false | true | 558 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gm_2.R
\name{gm_2}
\alias{gm_2}
\title{optimal gm model with background and response formula}
\usage{
gm_2(y, ntest = NULL, term = 1, buff = NULL, alpha = NA)
}
\arguments{
\item{y}{data sequence.}
\item{buff}{buffer operator used for origin... |
library(shiny)
library(shinythemes)
library(plotly)
library(DT)
library(tidyverse)
library(shinydashboard)
varChoices = list(
"Rounds Played" = "Rounds",
"Wins" = "Wins",
"Number of Top 10 Finishes" = "Top.10",
"Winnings (millions of $)" = "Money",
"Final Official World Golf Ranking" = "Final.OWGR",
"Avera... | /ui.R | no_license | jdelano18/final-project | R | false | false | 3,988 | r | library(shiny)
library(shinythemes)
library(plotly)
library(DT)
library(tidyverse)
library(shinydashboard)
varChoices = list(
"Rounds Played" = "Rounds",
"Wins" = "Wins",
"Number of Top 10 Finishes" = "Top.10",
"Winnings (millions of $)" = "Money",
"Final Official World Golf Ranking" = "Final.OWGR",
"Avera... |
Fold_sim_based_clustering2.default <- function(O,k=20){
sim=cosine(O);
KK=colSums(sim);
twom=sum(KK);
sim_norm=sim-(as.matrix(KK) %*% (t(as.matrix(KK/twom))))
f=matrix(0,dim(sim_norm)[1],dim(sim_norm)[2]);
for (i in (1:dim(sim_norm)[2])) {
f[,i]=order(sim_norm[,i],decreasing = TRUE);
}
prin... | /PackageTryV3/R/Fold_sim_based_clustering2.default.R | no_license | Durenlab/PackageTry | R | false | false | 666 | r | Fold_sim_based_clustering2.default <- function(O,k=20){
sim=cosine(O);
KK=colSums(sim);
twom=sum(KK);
sim_norm=sim-(as.matrix(KK) %*% (t(as.matrix(KK/twom))))
f=matrix(0,dim(sim_norm)[1],dim(sim_norm)[2]);
for (i in (1:dim(sim_norm)[2])) {
f[,i]=order(sim_norm[,i],decreasing = TRUE);
}
prin... |
x_files <- list.files(pattern="*phylo.simple.vcf")
x_names <- sapply(strsplit(x_files, "_"), "[[", 1)
# window size
window_size <- 50000
# minimum content to keep the window (e.g., 0.5 = half the window size)
keep_window <- 0.5
output_directory <- "zosterops_fasta"
dir.create(output_directory)
# order of individuals ... | /06_phylo/01_generate_fasta.r | no_license | jphruska/zosterops_genomes | R | false | false | 3,314 | r | x_files <- list.files(pattern="*phylo.simple.vcf")
x_names <- sapply(strsplit(x_files, "_"), "[[", 1)
# window size
window_size <- 50000
# minimum content to keep the window (e.g., 0.5 = half the window size)
keep_window <- 0.5
output_directory <- "zosterops_fasta"
dir.create(output_directory)
# order of individuals ... |
is.inside.simp.long<-function(point,simple,rho)
{
# point is d-vector
# simple is (d+1)*d matrix of vertices
eps<-rho/100000
d<-2
tulos<-1
i<-1
while ( (i<=(d+1)) && (tulos==1) ){
y1<-point
y2<-simple[i,]
if (y1[1]<y2[1]) y21<-y2[1]-eps else y21<-y2[1]+eps
if (y1[2]<y2[2]) y22<-y2[2]-eps else y... | /R/is.inside.simp.long.R | no_license | cran/denpro | R | false | false | 781 | r | is.inside.simp.long<-function(point,simple,rho)
{
# point is d-vector
# simple is (d+1)*d matrix of vertices
eps<-rho/100000
d<-2
tulos<-1
i<-1
while ( (i<=(d+1)) && (tulos==1) ){
y1<-point
y2<-simple[i,]
if (y1[1]<y2[1]) y21<-y2[1]-eps else y21<-y2[1]+eps
if (y1[2]<y2[2]) y22<-y2[2]-eps else y... |
## Exploratory Data Analysis - Course Project 1 Plot 1 Script
## Read the data into R
hpc <- read.table("household_power_consumption.txt", sep = ";",
header = TRUE, stringsAsFactors = FALSE)
## Transform the Date vector to a POSIXlt class so that is can be
... | /plot1.R | no_license | lachrymethod/ExData_Plotting1 | R | false | false | 842 | r | ## Exploratory Data Analysis - Course Project 1 Plot 1 Script
## Read the data into R
hpc <- read.table("household_power_consumption.txt", sep = ";",
header = TRUE, stringsAsFactors = FALSE)
## Transform the Date vector to a POSIXlt class so that is can be
... |
# want a data.frame with all possible combinations of mined context items
df<-read.csv("data/adult.txt",stringsAsFactors=T,sep=",")
# initial hypothesis
# Atgt: income
# Acmp: occupation, Adm-clerical vs. craft-repair
# Actx: -
# categorical target attribute
atgt<-"income"
acmp<-"occupation"
rows<-union(which(df[,ac... | /adjusting/expand-grid.R | no_license | tohweizhong/redhyte-lab | R | false | false | 1,593 | r | # want a data.frame with all possible combinations of mined context items
df<-read.csv("data/adult.txt",stringsAsFactors=T,sep=",")
# initial hypothesis
# Atgt: income
# Acmp: occupation, Adm-clerical vs. craft-repair
# Actx: -
# categorical target attribute
atgt<-"income"
acmp<-"occupation"
rows<-union(which(df[,ac... |
alt_rfs_ui<-function(){
library(shiny)
shinyUI(fluidPage(shinyjs::useShinyjs(),
title = 'Download a PDF report',
sidebarLayout(
sidebarPanel(
helpText(),
selectInput("PLAT", "Platform",
c("XFe24"="XFe24LotRelease",
"XFe96"="XFe96LotRelease",
... | /R/alt_rfs_ui.R | no_license | JARS3N/LLP | R | false | false | 989 | r | alt_rfs_ui<-function(){
library(shiny)
shinyUI(fluidPage(shinyjs::useShinyjs(),
title = 'Download a PDF report',
sidebarLayout(
sidebarPanel(
helpText(),
selectInput("PLAT", "Platform",
c("XFe24"="XFe24LotRelease",
"XFe96"="XFe96LotRelease",
... |
\name{SC19015-package}
\alias{SC19015-package}
\alias{SC19015}
\docType{package}
\title{
Alternative Empirical likelihood
}
\description{
This package gives two types of generalization and promotions of Empirical Likelihood: Jackknife Empirical likelihood and Sequential linearization of constraints.
}
\details{
Em... | /man/SC19015-package.Rd | no_license | SC19015/SC19015 | R | false | false | 2,488 | rd | \name{SC19015-package}
\alias{SC19015-package}
\alias{SC19015}
\docType{package}
\title{
Alternative Empirical likelihood
}
\description{
This package gives two types of generalization and promotions of Empirical Likelihood: Jackknife Empirical likelihood and Sequential linearization of constraints.
}
\details{
Em... |
\name{buildBowtie2CommandLine}
\alias{buildBowtie2CommandLine}
\title{
Build a Bowtie2 Command Line
}
\description{
Construct one bowtie2 command line from a set of file names, options, and Bowtie
index information.
}
\usage{
buildBowtie2CommandLine(inputFastqFile,
outputAlignFile = sub("fastq$", "al... | /man/buildBowtie2CommandLine.Rd | no_license | robertdouglasmorrison/DuffyNGS | R | false | false | 2,500 | rd | \name{buildBowtie2CommandLine}
\alias{buildBowtie2CommandLine}
\title{
Build a Bowtie2 Command Line
}
\description{
Construct one bowtie2 command line from a set of file names, options, and Bowtie
index information.
}
\usage{
buildBowtie2CommandLine(inputFastqFile,
outputAlignFile = sub("fastq$", "al... |
## version: 1.30
## method: post
## path: /containers/{id}/wait
## code: 200
## response: {"StatusCode": 0}
list(status_code = 0L)
| /tests/testthat/sample_responses/v1.30/container_wait.R | no_license | cran/stevedore | R | false | false | 131 | r | ## version: 1.30
## method: post
## path: /containers/{id}/wait
## code: 200
## response: {"StatusCode": 0}
list(status_code = 0L)
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% Matlab.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{writeCommand.Matlab}
\alias... | /man/writeCommand.Matlab.Rd | no_license | minhpascal/R.matlab | R | false | false | 816 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% Matlab.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{writeCommand.Matlab}
\alias... |
set.seed(23022019)
independent <- runif(999, 0, 30)
dependent <- c()
# creatign data
for (i in independent) {
value = 0.5*i + rnorm(1, mean = 0, sd = 30) - 1
dependent <- c(dependent, value)
}
# adding outlier
independent_extra <- c(independent, 27)
dependent_extra <- c(dependent, -21500)
summary(l... | /Regression and Bootstrapping/CS112 Assignment 2 Q1.R | no_license | viethoangtranduong/Causal-Inference | R | false | false | 1,437 | r | set.seed(23022019)
independent <- runif(999, 0, 30)
dependent <- c()
# creatign data
for (i in independent) {
value = 0.5*i + rnorm(1, mean = 0, sd = 30) - 1
dependent <- c(dependent, value)
}
# adding outlier
independent_extra <- c(independent, 27)
dependent_extra <- c(dependent, -21500)
summary(l... |
## Put comments here that give an overall description of what your
## functions do
##Acknowledgements & Disclosure
#This code heavily replicates code I have seen while finding help for this assignment. Namely from
#stackoverflow.com (http://stackoverflow.com/questions/23796316/returning-the-inverse-matrix-from-a-cache... | /cachematrix.R | no_license | elsplatto/ProgrammingAssignment2 | R | false | false | 2,469 | r | ## Put comments here that give an overall description of what your
## functions do
##Acknowledgements & Disclosure
#This code heavily replicates code I have seen while finding help for this assignment. Namely from
#stackoverflow.com (http://stackoverflow.com/questions/23796316/returning-the-inverse-matrix-from-a-cache... |
\name{nm.pl}
\alias{nm.pl}
\alias{autolog.pl}
\title{Build Commands to Invoke NONMEM}
\description{
Format a set of commandlines, suitable for submission to a command shell, to
operate the executable for an NMQual-mediated NONMEM installation. \code{nm.pl}
is the default for NONMEM 7.1.2 and earlier. \code{autolog... | /man/nm.pl.Rd | no_license | cran/MIfuns | R | false | false | 2,472 | rd | \name{nm.pl}
\alias{nm.pl}
\alias{autolog.pl}
\title{Build Commands to Invoke NONMEM}
\description{
Format a set of commandlines, suitable for submission to a command shell, to
operate the executable for an NMQual-mediated NONMEM installation. \code{nm.pl}
is the default for NONMEM 7.1.2 and earlier. \code{autolog... |
align_to_unip <- function(ens.seq, uni.seq, ensembl_mut_position){
### Checking for argument requirements
if(!is(ens.seq, "AAString")){
print(ens.seq)
stop("Ensembl sequence must be of class AAString")
}
if(!is(uni.seq, "AAString")){
stop("Uniprot sequence must be of class... | /R/align_to_unip.R | no_license | peterblattmann/DominoEffect | R | false | false | 3,849 | r | align_to_unip <- function(ens.seq, uni.seq, ensembl_mut_position){
### Checking for argument requirements
if(!is(ens.seq, "AAString")){
print(ens.seq)
stop("Ensembl sequence must be of class AAString")
}
if(!is(uni.seq, "AAString")){
stop("Uniprot sequence must be of class... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{any_sug}
\alias{any_sug}
\title{any_sug function}
\usage{
any_sug(x)
}
\arguments{
\item{x:}{LogicalVector.}
}
\value{
A boolean.
}
\description{
A wrapper for the sugar function any. It takes a LogicalVector and returns T... | /man/any_sug.Rd | permissive | deponent-verb/popgen.tools | R | false | true | 462 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{any_sug}
\alias{any_sug}
\title{any_sug function}
\usage{
any_sug(x)
}
\arguments{
\item{x:}{LogicalVector.}
}
\value{
A boolean.
}
\description{
A wrapper for the sugar function any. It takes a LogicalVector and returns T... |
#-----------------------------------------
# Process data for wasting traj figures
#-----------------------------------------
rm(list=ls())
source(paste0(here::here(), "/0-config.R"))
source(paste0(here::here(), "/0-project-functions/0_clean_study_data_functions.R"))
require(cowplot)
library(RcppRoll)
rain <- readRD... | /2-descriptive-outcomes/wasting/9_create_wast_seasonality_datasets.R | no_license | child-growth/ki-longitudinal-growth | R | false | false | 9,370 | r |
#-----------------------------------------
# Process data for wasting traj figures
#-----------------------------------------
rm(list=ls())
source(paste0(here::here(), "/0-config.R"))
source(paste0(here::here(), "/0-project-functions/0_clean_study_data_functions.R"))
require(cowplot)
library(RcppRoll)
rain <- readRD... |
#' @title numerical differentiation algorithm to estimate the derivative of a function based on numerical data
#' @references https://en.wikipedia.org/wiki/Numerical_differentiation
numeric_derivative <- function(data, h) {
(data[-c(1,2)] - data[-c(length(data), length(data) - 1)]) / (2 * h)
}
#' @title get covarian... | /R/utils.R | no_license | keepsimpler/StabEco | R | false | false | 3,706 | r | #' @title numerical differentiation algorithm to estimate the derivative of a function based on numerical data
#' @references https://en.wikipedia.org/wiki/Numerical_differentiation
numeric_derivative <- function(data, h) {
(data[-c(1,2)] - data[-c(length(data), length(data) - 1)]) / (2 * h)
}
#' @title get covarian... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eventbridge_operations.R
\name{eventbridge_put_permission}
\alias{eventbridge_put_permission}
\title{Running PutPermission permits the specified AWS account or AWS
organization to put events to the specified event bus}
\usage{
eventbridge_put... | /cran/paws.application.integration/man/eventbridge_put_permission.Rd | permissive | williazo/paws | R | false | true | 4,141 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eventbridge_operations.R
\name{eventbridge_put_permission}
\alias{eventbridge_put_permission}
\title{Running PutPermission permits the specified AWS account or AWS
organization to put events to the specified event bus}
\usage{
eventbridge_put... |
rm(list=ls())
.libPaths("/global/home/users/cbrook/R/x86_64-pc-linux-gnu-library/3.6")
#setwd("/Users/caraebrook/Documents/R/R_repositories/Berkeley-Reopening/Dec-2020/all-runs/Re-Run-12-24/FigS1/")
#no group, no test, no trace
library(data.table)
library(plyr)
library(dplyr)
library(EpiEstim)
library(deSolve)
libra... | /all-model-runs/Fig4-Layered-Interventions/weekly/weekly-2-test-days-trace-1-symp.R | no_license | carabrook/Berkeley-COVID-testing | R | false | false | 85,490 | r | rm(list=ls())
.libPaths("/global/home/users/cbrook/R/x86_64-pc-linux-gnu-library/3.6")
#setwd("/Users/caraebrook/Documents/R/R_repositories/Berkeley-Reopening/Dec-2020/all-runs/Re-Run-12-24/FigS1/")
#no group, no test, no trace
library(data.table)
library(plyr)
library(dplyr)
library(EpiEstim)
library(deSolve)
libra... |
source("downloadData.R")
# Load the NEI & SCC data frames.
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Subset NEI data by Baltimore's fip.
baltimoreNEI <- NEI[NEI$fips=="24510",]
# Aggregate using sum the Baltimore emissions data by year
aggTotalsBaltimore <- aggregate(Em... | /plot2.R | no_license | pealcala/project2-ExploratoryDataAnalysis | R | false | false | 654 | r | source("downloadData.R")
# Load the NEI & SCC data frames.
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Subset NEI data by Baltimore's fip.
baltimoreNEI <- NEI[NEI$fips=="24510",]
# Aggregate using sum the Baltimore emissions data by year
aggTotalsBaltimore <- aggregate(Em... |
# clustered
punkty_4326 <- st_transform(punkty, crs = 4326)
sp_punkty_4326 <- as(punkty_4326, "Spatial")
# coordinates(sp_punkty_4326) <- ~x + y
# proj4string(sp_punkty_4326) <- "+init=epsg:4326"
spTransform(sp_punkty_4326, CRS(proj4string(sp_punkty_4326)))
clustered1 <- spsample(sp_punkty_4326, 298, type = "clustered... | /R/06_pref_test.R | no_license | Nowosad/declustering | R | false | false | 2,108 | r | # clustered
punkty_4326 <- st_transform(punkty, crs = 4326)
sp_punkty_4326 <- as(punkty_4326, "Spatial")
# coordinates(sp_punkty_4326) <- ~x + y
# proj4string(sp_punkty_4326) <- "+init=epsg:4326"
spTransform(sp_punkty_4326, CRS(proj4string(sp_punkty_4326)))
clustered1 <- spsample(sp_punkty_4326, 298, type = "clustered... |
#Settings ----------------
# Packages:
pacman::p_load(rstudioapi, readr, RColorBrewer, dplyr, car, GGally, shiny,
arules, arulesViz, ggplot2, grid, gridExtra, lattice)
# Load data ---------------------------
# Datasets:
current_path <- getActiveDocumentContext()$path
setwd(dirname(dirname(current_path))... | /Script/Associatons.R | no_license | BBombi/Discover-Associations | R | false | false | 11,355 | r | #Settings ----------------
# Packages:
pacman::p_load(rstudioapi, readr, RColorBrewer, dplyr, car, GGally, shiny,
arules, arulesViz, ggplot2, grid, gridExtra, lattice)
# Load data ---------------------------
# Datasets:
current_path <- getActiveDocumentContext()$path
setwd(dirname(dirname(current_path))... |
# Auxiliar methods here
# Not any exported method
# Code from CodeDepends library, with some modifications
#' @importFrom utils find
get_pkgs_and_funs <- function(names) {
# obtain functions that contain namespace "::"
w_nmspace <- grepl("::", names)
funs_w_nmspace <- names[w_nmspace]
names(funs_w_nmspace) <- ... | /R/call-graph.R | no_license | jcrodriguez1989/packageexplorer | R | false | false | 5,162 | r | # Auxiliar methods here
# Not any exported method
# Code from CodeDepends library, with some modifications
#' @importFrom utils find
get_pkgs_and_funs <- function(names) {
# obtain functions that contain namespace "::"
w_nmspace <- grepl("::", names)
funs_w_nmspace <- names[w_nmspace]
names(funs_w_nmspace) <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cls_map.R
\docType{data}
\name{Map}
\alias{Map}
\title{R6 implementation of hashMap (internal use)}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
Map
}
\description{
R6 implementation of hashMap (internal use)
}
\k... | /man/Map.Rd | no_license | dipterix/rave | R | false | true | 337 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cls_map.R
\docType{data}
\name{Map}
\alias{Map}
\title{R6 implementation of hashMap (internal use)}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
Map
}
\description{
R6 implementation of hashMap (internal use)
}
\k... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{golf}
\alias{golf}
\title{golf data}
\format{\Sexpr[results=rd]{bps6data:::doc_bps6_data("golf") }}
\source{
\url{ http://content.bfwpub.com/webroot_pubcontent/Content/BCS_5/BPS6e/Student/DataSets/PC_Text/P... | /man/golf.Rd | no_license | jrnold/bps6data | R | false | false | 591 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{golf}
\alias{golf}
\title{golf data}
\format{\Sexpr[results=rd]{bps6data:::doc_bps6_data("golf") }}
\source{
\url{ http://content.bfwpub.com/webroot_pubcontent/Content/BCS_5/BPS6e/Student/DataSets/PC_Text/P... |
#' ---
#' title: "State space model of accounting manipulation - Stan"
#' output: html_notebook
#' fig_width: 6
#' fig_height: 6
#' ---
#'
## ------------------------------------------------------------------------
#knitr::purl("ssm_Stan0.4.6dev.Rmd", output = "ssm_Stan0.4.6dev.R", documentation = 2)
.libPaths()
.l... | /old/ssm_Stan0.4.6dev.R | permissive | tlyim/learn_Stan | R | false | false | 25,876 | r | #' ---
#' title: "State space model of accounting manipulation - Stan"
#' output: html_notebook
#' fig_width: 6
#' fig_height: 6
#' ---
#'
## ------------------------------------------------------------------------
#knitr::purl("ssm_Stan0.4.6dev.Rmd", output = "ssm_Stan0.4.6dev.R", documentation = 2)
.libPaths()
.l... |
# Program
library("tidyr")
library("dplyr")
library("xlsx")
#-----------------------------------------------------------------------------
# Load data
# Everyones route will be differnet
# setwd("")
# Load the fecal weight
Fecal_Weight = read.table(file = "~/Desktop/Work/qPCR_Analysis/filesToTest/Fecal_Weights_06162... | /qPCR_Analysis/16SqPCR.R | no_license | Yamase31/University_Of_Chicago | R | false | false | 13,542 | r | # Program
library("tidyr")
library("dplyr")
library("xlsx")
#-----------------------------------------------------------------------------
# Load data
# Everyones route will be differnet
# setwd("")
# Load the fecal weight
Fecal_Weight = read.table(file = "~/Desktop/Work/qPCR_Analysis/filesToTest/Fecal_Weights_06162... |
####################
# PARALLEL BACKEND #
####################
#Take in arguments from sbatch.
args <- commandArgs(TRUE)
if (length(args) == 0) {
ncores <- 1
comp <- "singlenode"
} else {
ncores <- as.integer(args[1])
comp <- "gauss"
}
if (comp == "gauss") {
#====Setup for runnin... | /nohc-mad-tuning/boot-vote/03-poc-boot-vote.R | no_license | topherconley/neta-poc | R | false | false | 2,869 | r |
####################
# PARALLEL BACKEND #
####################
#Take in arguments from sbatch.
args <- commandArgs(TRUE)
if (length(args) == 0) {
ncores <- 1
comp <- "singlenode"
} else {
ncores <- as.integer(args[1])
comp <- "gauss"
}
if (comp == "gauss") {
#====Setup for runnin... |
defineG0 <- function(linear2sub, eps)
## This function gives a G0 prior network given voxels'
## linear-to-subscript projection matrix, and epsilon distance.
### linear2sub: Px3 matrix, where P is number of nodes (voxels). Each line is node p's voxel coordinates.
### eps: a distance. Within eps, two voxel (x1, y1, ... | /lasso/defineG0.R | no_license | weiliu620/grad_school_backup | R | false | false | 997 | r | defineG0 <- function(linear2sub, eps)
## This function gives a G0 prior network given voxels'
## linear-to-subscript projection matrix, and epsilon distance.
### linear2sub: Px3 matrix, where P is number of nodes (voxels). Each line is node p's voxel coordinates.
### eps: a distance. Within eps, two voxel (x1, y1, ... |
library(pathview)
library(biomaRt)
setwd("~/rimod/integrative_analysis/immune_system_pathway_analysis/")
ensembl <- useMart("ensembl", dataset="hsapiens_gene_ensembl")
data(paths.hsa)
for (i in 264:length(paths.hsa)) {
print(i)
pw <- gsub("hsa", "", names(paths.hsa)[i])
pname <- paths.hsa[i]
pname <- gsub(" ... | /kevin/rimod-analysis/kegg_pathway_view.R | no_license | dznetubingen/analysis_scripts | R | false | false | 4,580 | r | library(pathview)
library(biomaRt)
setwd("~/rimod/integrative_analysis/immune_system_pathway_analysis/")
ensembl <- useMart("ensembl", dataset="hsapiens_gene_ensembl")
data(paths.hsa)
for (i in 264:length(paths.hsa)) {
print(i)
pw <- gsub("hsa", "", names(paths.hsa)[i])
pname <- paths.hsa[i]
pname <- gsub(" ... |
\name{vanillaOptionEuropean}
\alias{vanillaOptionEuropean}
\alias{vanillaOptionAmerican}
\alias{vanillaOptionImpliedVol}
\title{
Pricing Plain-Vanilla Options (European and American)
}
\description{
Functions to calculate the theoretical prices and (some) Greeks for plain vanilla options.
}
\usage{
vanillaOptionEur... | /man/options.Rd | no_license | mutual-ai/NMOF | R | false | false | 7,458 | rd | \name{vanillaOptionEuropean}
\alias{vanillaOptionEuropean}
\alias{vanillaOptionAmerican}
\alias{vanillaOptionImpliedVol}
\title{
Pricing Plain-Vanilla Options (European and American)
}
\description{
Functions to calculate the theoretical prices and (some) Greeks for plain vanilla options.
}
\usage{
vanillaOptionEur... |
set.seed(1)
E <- matrix(rep(sample(1:4, 500, replace = TRUE)), nrow = 100)
dc <- 0.8
K <- 4
R <- 5
test_that("Check srs works", {
SRS <- srs(E = E, dc = dc, R = 5)
expect_equal(sum(!diag(SRS) == 1), 0)
expect_equal(abs(sum(SRS)), 813.6889, tolerance = 0.1)
})
test_that("Error in srs with wrong inputs", {
expe... | /tests/testthat/test-similarity.R | permissive | AlineTalhouk/diceR | R | false | false | 1,233 | r | set.seed(1)
E <- matrix(rep(sample(1:4, 500, replace = TRUE)), nrow = 100)
dc <- 0.8
K <- 4
R <- 5
test_that("Check srs works", {
SRS <- srs(E = E, dc = dc, R = 5)
expect_equal(sum(!diag(SRS) == 1), 0)
expect_equal(abs(sum(SRS)), 813.6889, tolerance = 0.1)
})
test_that("Error in srs with wrong inputs", {
expe... |
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... | /dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609867360-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 831 | r | testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... |
testlist <- list(A = structure(c(4.50477755188179e+81, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613101086-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 343 | r | testlist <- list(A = structure(c(4.50477755188179e+81, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{ggvis}
\alias{ggvis}
\title{Visualise a data set with a ggvis graphic.}
\usage{
ggvis(data = NULL, ..., env = parent.frame())
}
\arguments{
\item{data}{A data object.}
\item{...}{Property mappings. If not named, the first two mappings are
taken to be \code{x} ... | /man/ggvis.Rd | no_license | saurfang/ggvis | R | false | false | 1,353 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{ggvis}
\alias{ggvis}
\title{Visualise a data set with a ggvis graphic.}
\usage{
ggvis(data = NULL, ..., env = parent.frame())
}
\arguments{
\item{data}{A data object.}
\item{...}{Property mappings. If not named, the first two mappings are
taken to be \code{x} ... |
#' VISCfunctions: VISC STP/SRA functions
#'
#'
#' @docType package
#' @name VISCfunctions
#' @keywords internal
"_PACKAGE"
| /R/VISCfunctions.r | permissive | shannongrant/VISCfunctions | R | false | false | 123 | r | #' VISCfunctions: VISC STP/SRA functions
#'
#'
#' @docType package
#' @name VISCfunctions
#' @keywords internal
"_PACKAGE"
|
# Created by: jdposada
# Created on: 3/27/20
library(jsonlite)
createBQConnectionString <- function(projectId='',
defaultDataset='',
authType = 2,
jsonCredentialsPath = '',
... | /R/bqAuthHelper.R | no_license | jdposada/BQJdbcConnectionStringR | R | false | false | 5,457 | r | # Created by: jdposada
# Created on: 3/27/20
library(jsonlite)
createBQConnectionString <- function(projectId='',
defaultDataset='',
authType = 2,
jsonCredentialsPath = '',
... |
#' dmdScheme: A package containing the framework for Domain specific MetaData Schemes
#'
#' Metadata is essential for the managing and archiving of data. Consequentially, metadata
#' schemes, which standardise the property names used in specifying the metadata, play an essential role in this. Nevertheless (or because o... | /R/pkg.dmdScheme.R | permissive | UZH-PEG/dmdScheme | R | false | false | 2,334 | r | #' dmdScheme: A package containing the framework for Domain specific MetaData Schemes
#'
#' Metadata is essential for the managing and archiving of data. Consequentially, metadata
#' schemes, which standardise the property names used in specifying the metadata, play an essential role in this. Nevertheless (or because o... |
#Empirical drivers of albedo change
plot.new()
source('Compshift_maps.R')
#Month-ize LAI
d.lai.jan<-rowMeans(lai.chg.dat[1:4],na.rm=TRUE)
d.lai.feb<-rowMeans(lai.chg.dat[5:8],na.rm=TRUE)
d.lai.mar<-rowMeans(lai.chg.dat[9:12],na.rm=TRUE)
d.lai.apr<-rowMeans(lai.chg.dat[13:15],na.rm=TRUE)
d.lai.may<-rowMeans(lai.chg.... | /Empirical_albdrivers.R | no_license | bblakely/AlbedoPaper | R | false | false | 4,899 | r | #Empirical drivers of albedo change
plot.new()
source('Compshift_maps.R')
#Month-ize LAI
d.lai.jan<-rowMeans(lai.chg.dat[1:4],na.rm=TRUE)
d.lai.feb<-rowMeans(lai.chg.dat[5:8],na.rm=TRUE)
d.lai.mar<-rowMeans(lai.chg.dat[9:12],na.rm=TRUE)
d.lai.apr<-rowMeans(lai.chg.dat[13:15],na.rm=TRUE)
d.lai.may<-rowMeans(lai.chg.... |
############################################################
#Input:
# 'EventTime' == A sequence of times where the events occur
# 'Censor' == A sequence of dichotomous values indicating
# censored or not (0=censored and 1=not censored)
# 'CutTimes' == A vector of unique, sorted, possible times to
# ... | /RPEXE Version 2.0_yz/R version/RPEXEv1.R | no_license | zhangyuwinnie/SurvivalAnalysis_Matlab2R | R | false | false | 10,188 | r | ############################################################
#Input:
# 'EventTime' == A sequence of times where the events occur
# 'Censor' == A sequence of dichotomous values indicating
# censored or not (0=censored and 1=not censored)
# 'CutTimes' == A vector of unique, sorted, possible times to
# ... |
## Put comments here that give an overall description of what your
## functions do
## The first function, makeCacheMatrix creates a special "matrix"
## which is really a list containing a function to:
## set the value of the matrix
## get the value of the matrix
## set the value of the inverse
## get the value of the... | /cachematrix.R | no_license | mdire94/ProgrammingAssignment2 | R | false | false | 1,213 | r | ## Put comments here that give an overall description of what your
## functions do
## The first function, makeCacheMatrix creates a special "matrix"
## which is really a list containing a function to:
## set the value of the matrix
## get the value of the matrix
## set the value of the inverse
## get the value of the... |
#!/bin/R
library("tidyverse")
library("stats")
library("data.table")
args <- commandArgs(TRUE)
phe_path <- args[1]
options(warn=1)
phe_name <- strsplit(phe_path, "/")[[1]]
phe_name <- strsplit(phe_name[length(phe_name)], "[.]")[[1]][1]
all_ids = as.data.frame(read.table("../hla_genotype_data/haps_above_freq_thresh.t... | /scripts/17_homozygosity.R | permissive | rivas-lab/hla-assoc | R | false | false | 3,141 | r | #!/bin/R
library("tidyverse")
library("stats")
library("data.table")
args <- commandArgs(TRUE)
phe_path <- args[1]
options(warn=1)
phe_name <- strsplit(phe_path, "/")[[1]]
phe_name <- strsplit(phe_name[length(phe_name)], "[.]")[[1]][1]
all_ids = as.data.frame(read.table("../hla_genotype_data/haps_above_freq_thresh.t... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(in... | /cachematrix.R | no_license | saee14/ProgrammingAssignment2 | R | false | false | 771 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(in... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3340
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3174
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3174
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Herbstritt/blackbox-01X-QBF/biu.mv.xl_ao.bb-b003-p020-IPF03-c03.blif-biu.inv.prop.bb-bmc.conf06.01X-QBF.BB1-01X.BB2-Zi.BB3-Zi.with-IOC.unfold-002/biu.mv.xl_ao.bb-b003-p020-IPF03-c03.blif-biu.inv.prop.bb-bmc.conf06.01X-QBF.BB1-01X.BB2-Zi.BB3-Zi.with-IOC.unfol... | no_license | arey0pushpa/dcnf-autarky | R | false | false | 1,526 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3340
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3174
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3174
c
c Input Parameter (command line, fil... |
#===========================================================================================
# 2Dt HIERARCHICAL DISPERSAL MODEL
#===========================================================================================
# Kernel is 2Dt parameterized as (fec, scale, shape), where shape is fixed at a global value.
... | /HBdisp.2Dt.r | no_license | EBL-Marianas/MutualismDisruption_NatureComm | R | false | false | 4,323 | r | #===========================================================================================
# 2Dt HIERARCHICAL DISPERSAL MODEL
#===========================================================================================
# Kernel is 2Dt parameterized as (fec, scale, shape), where shape is fixed at a global value.
... |
# Exponentially Weighted Moving Average Model
library(GARPFRM)
data(crsp_weekly)
# Use the weekly MSFT returns
R <- largecap_weekly[, "MSFT"]
lambda <- 0.94
initialWindow <- 15
volEst <- EWMA(R, lambda, initialWindow, type="volatility")
volEst
vol <- realizedVol(R, n=5)
plot(vol, main="EWMA Volatility Estimate vs.... | /demo/EstimatingVolatilitiesCorrelation.R | no_license | NTLresearch/GARPFRM | R | false | false | 2,967 | r |
# Exponentially Weighted Moving Average Model
library(GARPFRM)
data(crsp_weekly)
# Use the weekly MSFT returns
R <- largecap_weekly[, "MSFT"]
lambda <- 0.94
initialWindow <- 15
volEst <- EWMA(R, lambda, initialWindow, type="volatility")
volEst
vol <- realizedVol(R, n=5)
plot(vol, main="EWMA Volatility Estimate vs.... |
xdmgnd <- xdmgnd[-c(3226,3588),]
for (i in c('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P'))
{
assign(paste("Method",i,sep=""), rep(0, nrow(xdmgnd)))
eval(parse(text=paste("Method",i,"[which(grepl('",i,"', xdmgnd$METHOD) == TRUE)] <- 1",sep="")))
}
xdmgnd.lm10<-lm(ACCDMG~MethodA+Meth... | /Heping/project1-v2.R | no_license | hpzheng/sys6021_codes | R | false | false | 4,135 | r |
xdmgnd <- xdmgnd[-c(3226,3588),]
for (i in c('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P'))
{
assign(paste("Method",i,sep=""), rep(0, nrow(xdmgnd)))
eval(parse(text=paste("Method",i,"[which(grepl('",i,"', xdmgnd$METHOD) == TRUE)] <- 1",sep="")))
}
xdmgnd.lm10<-lm(ACCDMG~MethodA+Meth... |
#loading the bibliometrix library
library(bibliometrix)
#loading the data, note path name should be changed!
scopusdata <- readFiles("C:/Users/Lorik Mucolli/Desktop/bibliometric_analysis/data_english_1998-2008/scopus.bib")
M <- convert2df(scopusdata, dbsource = "scopus", format = "bibtex")
# the function biblioAna... | /data_english_1998_2008/script.R | no_license | beerjamin/bibliographic_analysis | R | false | false | 2,053 | r |
#loading the bibliometrix library
library(bibliometrix)
#loading the data, note path name should be changed!
scopusdata <- readFiles("C:/Users/Lorik Mucolli/Desktop/bibliometric_analysis/data_english_1998-2008/scopus.bib")
M <- convert2df(scopusdata, dbsource = "scopus", format = "bibtex")
# the function biblioAna... |
##
## scale.R - scale estimators
##
## Scale estimation functions...
##
## Authors:
## Prof. Dr. Roland Fried <fried@statistik.uni-dortmund.de>
## Dipl. Stat. Karen Schettlinger <schettlinger@statistik.uni-dortmund.de>
##
## Bugs:
## 20061017 (OME):
## * The correction coefficients need to be re... | /R/scale.r | no_license | cran/robfilter | R | false | false | 1,511 | r | ##
## scale.R - scale estimators
##
## Scale estimation functions...
##
## Authors:
## Prof. Dr. Roland Fried <fried@statistik.uni-dortmund.de>
## Dipl. Stat. Karen Schettlinger <schettlinger@statistik.uni-dortmund.de>
##
## Bugs:
## 20061017 (OME):
## * The correction coefficients need to be re... |
truePrevBinom <-
function(x, n, Se, Sp, prior,
nchains, burnin, update, verbose){
## create model
model <- character()
model[1] <- "model {"
model[2] <- "x ~ dbin(AP, n)"
model[3] <- "AP <- SE * TP + (1 - SP) * (1 - TP)"
model <- c(model, writeSeSp("SE", Se))
model <- ... | /Archive/Archive/E___BasicTrueModel.R | permissive | kpatera/tPRiors | R | false | false | 2,176 | r | truePrevBinom <-
function(x, n, Se, Sp, prior,
nchains, burnin, update, verbose){
## create model
model <- character()
model[1] <- "model {"
model[2] <- "x ~ dbin(AP, n)"
model[3] <- "AP <- SE * TP + (1 - SP) * (1 - TP)"
model <- c(model, writeSeSp("SE", Se))
model <- ... |
#'Identification of Key Contributors
#'
#'Identification of key contributors using Horn's Parallel Analysis, Eigenvalue Decomposition and
#'calculation of the Genetic Contribution Score (GCS) as described in Neuditschko et al. (2016).
#'
#'@param relMatrix Pairwise relationship / similarity matrix between s... | /R/findKeyContributors.R | no_license | esteinig/netview | R | false | false | 2,838 | r | #'Identification of Key Contributors
#'
#'Identification of key contributors using Horn's Parallel Analysis, Eigenvalue Decomposition and
#'calculation of the Genetic Contribution Score (GCS) as described in Neuditschko et al. (2016).
#'
#'@param relMatrix Pairwise relationship / similarity matrix between s... |
# CMEE 2019 HPC excercises R code HPC run code proforma
rm(list=ls()) # good practice
source("mlc19_HPC_2019_main.R")
# it should take a faction of a second to source your file
# if it takes longer you're using the main file to do actual simulations
# it should be used only for defining functions that will be useful ... | /HPC/mlc19_HPC_2019_test.R | no_license | matthewcampos/CMEECourseWork | R | false | false | 1,829 | r | # CMEE 2019 HPC excercises R code HPC run code proforma
rm(list=ls()) # good practice
source("mlc19_HPC_2019_main.R")
# it should take a faction of a second to source your file
# if it takes longer you're using the main file to do actual simulations
# it should be used only for defining functions that will be useful ... |
uniqueProbeList = function(BLData){
secNames = sectionNames(BLData)
uIDs = NULL
##Probably only need to look at one sample?
for(i in 1:length(secNames)){
uIDs = c(uIDs, unique(BLData[[i]][,1]))
}
unique(uIDs)
}
summarize = function(BLData, channelList=list(greenChannel), probeIDs=NULL, useSampleFac = FALS... | /R/beadLevelData_summarize.R | no_license | markdunning/beadarray-devel | R | false | false | 10,005 | r | uniqueProbeList = function(BLData){
secNames = sectionNames(BLData)
uIDs = NULL
##Probably only need to look at one sample?
for(i in 1:length(secNames)){
uIDs = c(uIDs, unique(BLData[[i]][,1]))
}
unique(uIDs)
}
summarize = function(BLData, channelList=list(greenChannel), probeIDs=NULL, useSampleFac = FALS... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AgainStart.R
\docType{data}
\name{SATFRUIT}
\alias{SATFRUIT}
\title{Fruit Trees}
\format{
A data frame with 47 observations on the following 17 variables:
\itemize{
\item \code{quadrat} (number of the sampled segment or quadrat)
\item \code{... | /man/SATFRUIT.Rd | no_license | alanarnholt/PASWR2 | R | false | true | 2,288 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AgainStart.R
\docType{data}
\name{SATFRUIT}
\alias{SATFRUIT}
\title{Fruit Trees}
\format{
A data frame with 47 observations on the following 17 variables:
\itemize{
\item \code{quadrat} (number of the sampled segment or quadrat)
\item \code{... |
## Matrix inversion is usually a costly computation and their may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## These two functions are used to create a special object that stores a numeric
## matrix and cache's its inverse.
## This function creates a special "matrix" obje... | /cachematrix.R | no_license | Sanest/ProgrammingAssignment2 | R | false | false | 1,625 | r | ## Matrix inversion is usually a costly computation and their may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## These two functions are used to create a special object that stores a numeric
## matrix and cache's its inverse.
## This function creates a special "matrix" obje... |
folder <- "scrapped-data"
# get all files
mesas_data_files <- list.files(folder, recursive = T, full.names = T)
# determine duplicates
duplicates <- mesas_data_files %>%
purrr::array_branch() %>%
purrr::map(stringr::str_split, "/") %>%
purrr::map(~ purrr::map(., function(x) x[[5]])) %>%
unlist() %>% {
d1 ... | /clean_scrapped_data.R | no_license | efcaguab/revisaton | R | false | false | 528 | r | folder <- "scrapped-data"
# get all files
mesas_data_files <- list.files(folder, recursive = T, full.names = T)
# determine duplicates
duplicates <- mesas_data_files %>%
purrr::array_branch() %>%
purrr::map(stringr::str_split, "/") %>%
purrr::map(~ purrr::map(., function(x) x[[5]])) %>%
unlist() %>% {
d1 ... |
context("match_maker")
##### Input match_maker sample data to be used in test_that
# Create PC data frame
pcs<- as.data.frame(PCs_1000G[,c(1,5:24)])
# Create eigenvalues vector
eigen_vals<- c(eigenvalues_1000G)$eigen_values
# Create full eigenvalues vector
all_eigen_vals<- c(eigenvalues_all_1000G)$eigen_valu... | /tests/testthat/test-match_maker.R | permissive | machiela-lab/PCAmatchR | R | false | false | 3,895 | r | context("match_maker")
##### Input match_maker sample data to be used in test_that
# Create PC data frame
pcs<- as.data.frame(PCs_1000G[,c(1,5:24)])
# Create eigenvalues vector
eigen_vals<- c(eigenvalues_1000G)$eigen_values
# Create full eigenvalues vector
all_eigen_vals<- c(eigenvalues_all_1000G)$eigen_valu... |
.onLoad <-
function(lib, pkg){
write("Welcome to cesr 1.0.3, use help(cesr) to get started", "")
utils::data(cesnames, package="cesr")
setceslang('Latin')
}
| /R/zzz.R | no_license | btorobrob/cesr | R | false | false | 174 | r | .onLoad <-
function(lib, pkg){
write("Welcome to cesr 1.0.3, use help(cesr) to get started", "")
utils::data(cesnames, package="cesr")
setceslang('Latin')
}
|
overlapBiclustersByRows <- function(Bic,resBicluster) {
x <- rep(0, nrow(resBicluster@RowxNumber))
x <- x + Bic * resBicluster@RowxNumber[, Bic]
x
}
| /R/overlapBiclustersByRows.R | no_license | cran/Anthropometry | R | false | false | 156 | r | overlapBiclustersByRows <- function(Bic,resBicluster) {
x <- rep(0, nrow(resBicluster@RowxNumber))
x <- x + Bic * resBicluster@RowxNumber[, Bic]
x
}
|
## Planet Labs API
## Order API
orderurl <- "https://api.planet.com/compute/ops/orders/v2"
## Search API
searchurl <- "https://api.planet.com/data/v1"
#' Get API Authorization
#'
#' Get Planet API Key Authorization
#'
#' @importFrom httr authenticate
#'
get_auth <- function() {
key <- Sys.getenv("PLANET_AP... | /R/api.R | no_license | albert-am/planetapi | R | false | false | 3,466 | r | ## Planet Labs API
## Order API
orderurl <- "https://api.planet.com/compute/ops/orders/v2"
## Search API
searchurl <- "https://api.planet.com/data/v1"
#' Get API Authorization
#'
#' Get Planet API Key Authorization
#'
#' @importFrom httr authenticate
#'
get_auth <- function() {
key <- Sys.getenv("PLANET_AP... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\docType{data}
\name{api.dict}
\alias{api.dict}
\title{API dictionary}
\usage{
data(api.dict)
}
\description{
This data set contains dictionary (\code{\link{data.table}} object) for \code{\link{market.api.process}} function which perform pre-process API call request,... | /man/api.dict.Rd | permissive | cran/Rbitcoin | R | false | false | 1,217 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\docType{data}
\name{api.dict}
\alias{api.dict}
\title{API dictionary}
\usage{
data(api.dict)
}
\description{
This data set contains dictionary (\code{\link{data.table}} object) for \code{\link{market.api.process}} function which perform pre-process API call request,... |
##handle file matters
fileName <- "household_power_consumption.txt"
if(!file.exists(fileName)) {
zipFile <- "data.zip"
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, destfile=zipFile, method="curl")
unzip(zipFile)
file.remove(zipFile)
}
#... | /plot3.R | no_license | vjkapur/ExData_Plotting1 | R | false | false | 1,073 | r | ##handle file matters
fileName <- "household_power_consumption.txt"
if(!file.exists(fileName)) {
zipFile <- "data.zip"
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, destfile=zipFile, method="curl")
unzip(zipFile)
file.remove(zipFile)
}
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/00_model_settings.R
\docType{data}
\name{r50x.SettingsS3}
\alias{r50x.SettingsS3}
\title{Function to update model results folder}
\format{An object of class \code{list} (inherits from \code{ModelEnvClass}) of length 6.}
\usage{
r50x.SettingsS... | /man/r50x.SettingsS3.Rd | permissive | gappix/rice50xplots | R | false | true | 399 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/00_model_settings.R
\docType{data}
\name{r50x.SettingsS3}
\alias{r50x.SettingsS3}
\title{Function to update model results folder}
\format{An object of class \code{list} (inherits from \code{ModelEnvClass}) of length 6.}
\usage{
r50x.SettingsS... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network.R
\name{vec_all_paths}
\alias{vec_all_paths}
\title{For each Search for all simple paths from source to sink. This is a wrapper around
igraph::all_simple_paths that tidys up the results into a single tibble.}
\usage{
vec_all_paths(Gs)... | /man/vec_all_paths.Rd | permissive | ppintosilva/anprflows | R | false | true | 556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network.R
\name{vec_all_paths}
\alias{vec_all_paths}
\title{For each Search for all simple paths from source to sink. This is a wrapper around
igraph::all_simple_paths that tidys up the results into a single tibble.}
\usage{
vec_all_paths(Gs)... |
#!/usr/bin/env Rscript
################################################################################
##### SET-UP #####
################################################################################
setwd('/home/jelmer/Dropbox/sc_lemurs/radseq/')
library(tidyverse)
library(reshape2)
source('scripts/qc/qc_vcf_bcfs... | /scripts/qc/qc_vcf_bcfstats_msp3.R | no_license | jelmerp/lemurs_msp3 | R | false | false | 13,951 | r | #!/usr/bin/env Rscript
################################################################################
##### SET-UP #####
################################################################################
setwd('/home/jelmer/Dropbox/sc_lemurs/radseq/')
library(tidyverse)
library(reshape2)
source('scripts/qc/qc_vcf_bcfs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{default}
\alias{default}
\title{Non-blocking match.arg with better error reporting.}
\usage{
default(arg, choices, message = NULL)
}
\description{
Performs similar traceback as match.arg for default argument values. Unlike
match... | /man/default.Rd | no_license | jes-n/shiny-searchbar | R | false | true | 516 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{default}
\alias{default}
\title{Non-blocking match.arg with better error reporting.}
\usage{
default(arg, choices, message = NULL)
}
\description{
Performs similar traceback as match.arg for default argument values. Unlike
match... |
install.packages('tidyverse')
library(tidyverse)
glimpse(starwars)
view(starwars)
remove_NA<- starwars %>%
(na.rm= "True") %>%
view(starwars)
##Using the pipe funtion in dplyr to select, fiter and mutate of variables
selected<- starwars %>%
select(name, height, skin_color, birth_year, sex, vehicles) %>%
fi... | /Practice/Practice1(missing values).R | no_license | Umar-Ibrah/Ibrah | R | false | false | 1,528 | r | install.packages('tidyverse')
library(tidyverse)
glimpse(starwars)
view(starwars)
remove_NA<- starwars %>%
(na.rm= "True") %>%
view(starwars)
##Using the pipe funtion in dplyr to select, fiter and mutate of variables
selected<- starwars %>%
select(name, height, skin_color, birth_year, sex, vehicles) %>%
fi... |
.onAttach <- function(...) {
packageStartupMessage("\n\nNew to taxize? Tutorial at http://ropensci.org/tutorials/taxize_tutorial.html \ncitation(package='taxize') for the citation for this package \nAPI key names have changed. Use tropicosApiKey, eolApiKey, ubioApiKey, and pmApiKey in your .Rprofile file. \nUse suppr... | /R/startup.R | permissive | dlebauer/taxize_ | R | false | false | 403 | r | .onAttach <- function(...) {
packageStartupMessage("\n\nNew to taxize? Tutorial at http://ropensci.org/tutorials/taxize_tutorial.html \ncitation(package='taxize') for the citation for this package \nAPI key names have changed. Use tropicosApiKey, eolApiKey, ubioApiKey, and pmApiKey in your .Rprofile file. \nUse suppr... |
library(ggplot2)
smcI<-read.csv("Dropbox/Research/repo/spf-experiments/output/testBinaryTree/estimates-incorrect.csv", header=T)
df1<-data.frame(N=smcI$nParticles, mu=smcI$mu_balanced, std=smcI$sd_balanced, type="A balanced Tree")
df2<-data.frame(N=smcI$nParticles, mu=smcI$mu_unbalanced, std=smcI$sd_unbalanced, type=... | /src/main/resources/R/smc-binary-tree.R | no_license | junseonghwan/spf-experiments | R | false | false | 1,775 | r | library(ggplot2)
smcI<-read.csv("Dropbox/Research/repo/spf-experiments/output/testBinaryTree/estimates-incorrect.csv", header=T)
df1<-data.frame(N=smcI$nParticles, mu=smcI$mu_balanced, std=smcI$sd_balanced, type="A balanced Tree")
df2<-data.frame(N=smcI$nParticles, mu=smcI$mu_unbalanced, std=smcI$sd_unbalanced, type=... |
# MESSAGE: The below tribble is very wide (177 characters).
# TODO: This table can/should be imported right from a CSDR Plan.
# TODO: The DataReport column should likly be turned into a nested list of factors (only a given set of report names can be used and an unknown number of reports can be listed in each column s... | /R/events_table.R | no_license | daniel-r-germony/cerberus_csdr_data | R | false | false | 2,932 | r |
# MESSAGE: The below tribble is very wide (177 characters).
# TODO: This table can/should be imported right from a CSDR Plan.
# TODO: The DataReport column should likly be turned into a nested list of factors (only a given set of report names can be used and an unknown number of reports can be listed in each column s... |
#Load the data
setwd(your_file_path)
Raw_Data <- read.csv('natural36_constrained_forR.csv', row.names = 1)
Sorting_Data <- Raw_Data[-38,]
Design_Data <- Raw_Data[38,]
#Load (and run) DiSTATIS
library(DistatisR)
#... | /rmarkdowns/distatis/Instructions(16).R | permissive | rkmalaiya/Multi-Variate-Analysis | R | false | false | 228 | r |
#Load the data
setwd(your_file_path)
Raw_Data <- read.csv('natural36_constrained_forR.csv', row.names = 1)
Sorting_Data <- Raw_Data[-38,]
Design_Data <- Raw_Data[38,]
#Load (and run) DiSTATIS
library(DistatisR)
#... |
#' Find Common Words Between Groups
#'
#' Find common words between grouping variables (e.g. people).
#'
#' @param word.list A list of names character vectors.
#' @param overlap Minimum/exact amount of overlap.
#' @param equal.or A character vector of c(\code{"equal"}, \code{"greater"},
#' \code{"more"}, \code{"less... | /R/common.R | no_license | trinker/qdap2 | R | false | false | 2,923 | r | #' Find Common Words Between Groups
#'
#' Find common words between grouping variables (e.g. people).
#'
#' @param word.list A list of names character vectors.
#' @param overlap Minimum/exact amount of overlap.
#' @param equal.or A character vector of c(\code{"equal"}, \code{"greater"},
#' \code{"more"}, \code{"less... |
setwd('/Users/Avril/Desktop/all_ch_3_dirs/02_output_tables_all_analyses/')
library(rtracklayer)
library(vcfR)
library(scales)
library(ggrepel)
library(dplyr)
library(ade4)
library(adegenet)
library(VennDiagram)
library(TeachingDemos)
load('combining_LC_and_SE_LH_snps_thru_kNN.RData') ## or run 3_population_analyses.R... | /Fig_03_components_ZBTB18.R | no_license | avril-m-harder/Salmo_salar_population_comparisons | R | false | false | 11,043 | r | setwd('/Users/Avril/Desktop/all_ch_3_dirs/02_output_tables_all_analyses/')
library(rtracklayer)
library(vcfR)
library(scales)
library(ggrepel)
library(dplyr)
library(ade4)
library(adegenet)
library(VennDiagram)
library(TeachingDemos)
load('combining_LC_and_SE_LH_snps_thru_kNN.RData') ## or run 3_population_analyses.R... |
context("test-drawre")
test_that("Whether the number of events in the Rainfall_Characteristics file (dataframe) mataches with the ones included
in the sublist Rainfall_Events", {
Time_series=five_minute_time_series
RC=drawre(Time_series,IETD=3,Thres=0.5)$Rainfall_Characteristics
RE=drawre(Time_s... | /tests/testthat/test-drawre.R | no_license | cran/IETD | R | false | false | 750 | r | context("test-drawre")
test_that("Whether the number of events in the Rainfall_Characteristics file (dataframe) mataches with the ones included
in the sublist Rainfall_Events", {
Time_series=five_minute_time_series
RC=drawre(Time_series,IETD=3,Thres=0.5)$Rainfall_Characteristics
RE=drawre(Time_s... |
library("AOIanalyseR")
context("Charts")
test_that("charts can be printed", {
# createAOISequenceCharts works properly ---------------------------------
expect_error(print(AOIanalyseR::createAOISequenceChart(importedData)), NA)
# createSplitChart works properly ----------------------------------------
expect_... | /tests/testthat/test-charts.R | permissive | ChaosDerivat/AOIanalyseR | R | false | false | 988 | r | library("AOIanalyseR")
context("Charts")
test_that("charts can be printed", {
# createAOISequenceCharts works properly ---------------------------------
expect_error(print(AOIanalyseR::createAOISequenceChart(importedData)), NA)
# createSplitChart works properly ----------------------------------------
expect_... |
#Define colClasses to prevent padding zeros being deleted
col_classes <- c("CV_RGNICVV"="character",
"CV_NSS"="character",
"CV_AVALUO"="character",
"CV_CONVIVENCIA"="character",
"CV_CREDITO"="character",
"CV_MNC"="character",
... | /preprocessing/infonavit_ecuve/preprocess.R | no_license | dssg/infonavit-public | R | false | false | 4,145 | r | #Define colClasses to prevent padding zeros being deleted
col_classes <- c("CV_RGNICVV"="character",
"CV_NSS"="character",
"CV_AVALUO"="character",
"CV_CONVIVENCIA"="character",
"CV_CREDITO"="character",
"CV_MNC"="character",
... |
library(caret)
library(mlbench)
library(data.table)
library(ggplot2)
data(Sonar)
set.seed(107)
inTrain <- createDataPartition(y = Sonar$Class ## the outcome data are needed
,p = .75 ## The percentage of data in the training set
,list = FALSE )## The format ... | /using-caret.R | no_license | PyEatingContest/home_code | R | false | false | 5,530 | r | library(caret)
library(mlbench)
library(data.table)
library(ggplot2)
data(Sonar)
set.seed(107)
inTrain <- createDataPartition(y = Sonar$Class ## the outcome data are needed
,p = .75 ## The percentage of data in the training set
,list = FALSE )## The format ... |
library(psda)
### Name: psmi
### Title: Polygonal internal second moment
### Aliases: psmi
### ** Examples
x <- psim(1, 3) #simulate a polygon of 3 sides
psmi(x[[1]])
| /data/genthat_extracted_code/psda/examples/psmi.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 174 | r | library(psda)
### Name: psmi
### Title: Polygonal internal second moment
### Aliases: psmi
### ** Examples
x <- psim(1, 3) #simulate a polygon of 3 sides
psmi(x[[1]])
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/machinery.R
\name{machineryStart}
\alias{machineryStart}
\title{Start consuming tasks for the given machinery instance.}
\usage{
machineryStart(machinery, pollSecs = DEFAULT_POLL_PERIOD)
}
\arguments{
\item{machinery}{The machinery instance t... | /man/machineryStart.Rd | no_license | nmcapule/rmachinery | R | false | true | 483 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/machinery.R
\name{machineryStart}
\alias{machineryStart}
\title{Start consuming tasks for the given machinery instance.}
\usage{
machineryStart(machinery, pollSecs = DEFAULT_POLL_PERIOD)
}
\arguments{
\item{machinery}{The machinery instance t... |
args <- commandArgs(trailingOnly=TRUE)
biom.fname=args[1]
eqtl.fname=args[2]
type=args[3]
outfolder = args[4]
prefix = args[5]
n_eqtl = args[6]
options(error = quote({dump.frames(to.file=TRUE); q()}))
#source("~/psychgen/resources/COLOC2/COLOC_scripts/scripts/formatColoc.R")
source("~/psychgen/resources/COLOC2/COLOC_s... | /scripts/new_coloc_SMR_paper.R | no_license | clagiamba/coloc_scripts | R | false | false | 1,278 | r | args <- commandArgs(trailingOnly=TRUE)
biom.fname=args[1]
eqtl.fname=args[2]
type=args[3]
outfolder = args[4]
prefix = args[5]
n_eqtl = args[6]
options(error = quote({dump.frames(to.file=TRUE); q()}))
#source("~/psychgen/resources/COLOC2/COLOC_scripts/scripts/formatColoc.R")
source("~/psychgen/resources/COLOC2/COLOC_s... |
# Données d'exemple (peu importe...)
times<-seq(0,3000)
p<- 0.002197451 * exp(- 0.0009076665 *times)
b1<- 7.376812e-08
b2<-0.2652811
b3<- 1986.235
s<-b1*exp(-0.5*(log(times/b3)/b2)^2)
# On ouvre une nouvelle fenêtre plot.new()
# On choisit les paramètres de la fenêtre, voir ?par, ici mar correspond aux marges par(mar=... | /25_04_2017/RESULTATS_TEST_STATS/graph.sample.R | no_license | JoffreyHerard/Stage | R | false | false | 949 | r | # Données d'exemple (peu importe...)
times<-seq(0,3000)
p<- 0.002197451 * exp(- 0.0009076665 *times)
b1<- 7.376812e-08
b2<-0.2652811
b3<- 1986.235
s<-b1*exp(-0.5*(log(times/b3)/b2)^2)
# On ouvre une nouvelle fenêtre plot.new()
# On choisit les paramètres de la fenêtre, voir ?par, ici mar correspond aux marges par(mar=... |
#### Code for carrying out fitting and evaluation of
### laplace priors on cross-loadings
### in SEM
####
library(rstan)
library(dplyr)
library(loo)
# set up for parallel chains
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
#/////////////////////////////////////////////////////////////... | /sim_code/horseshoe+_sim_ic.R | no_license | Ewan-Keith/BSEM-Priors | R | false | false | 2,792 | r | #### Code for carrying out fitting and evaluation of
### laplace priors on cross-loadings
### in SEM
####
library(rstan)
library(dplyr)
library(loo)
# set up for parallel chains
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
#/////////////////////////////////////////////////////////////... |
#'@title empirical Bayes robust smoothing
#'@import ebnm
robust_smooth = function(y,sigma2,
mu_init=NULL,
ebnm_control = list(),
tol=1e-5,maxiter=100){
ebnm_controls = robust_smooth_ebnm_control_default()
ebnm_controls = modifyList(ebnm_con... | /R/robust_smooth.R | no_license | DongyueXie/smashrgen | R | false | false | 1,197 | r | #'@title empirical Bayes robust smoothing
#'@import ebnm
robust_smooth = function(y,sigma2,
mu_init=NULL,
ebnm_control = list(),
tol=1e-5,maxiter=100){
ebnm_controls = robust_smooth_ebnm_control_default()
ebnm_controls = modifyList(ebnm_con... |
library(ggplot2)
library(stats)
source('code/utils.R')
data = read_data()
station_info = read_station_information(data)
locations = get_locations(station_info = station_info)
load('files/result_gamma_temp')
load('files/result_binom_temp')
load('files/result_gp_temp')
load('files/gamma_data')
load('files/loss')
pl... | /code/result_plotting.R | no_license | augustsm/Master-thesis | R | false | false | 11,264 | r | library(ggplot2)
library(stats)
source('code/utils.R')
data = read_data()
station_info = read_station_information(data)
locations = get_locations(station_info = station_info)
load('files/result_gamma_temp')
load('files/result_binom_temp')
load('files/result_gp_temp')
load('files/gamma_data')
load('files/loss')
pl... |
library(reshape2)
library(car)
format <- function(df.full) {
# Not much formatting necessary for now!!
df.full$Milk <- recode(df.full$Market_Price_Last_1,"-1=NA")
df.full$Eggs<- recode(df.full$Market_Price_Last_2,"-1=NA")
df.full$Sugar <- recode(df.full$Market_Price_Last_3,"-1=NA")
assign("df_formatted", ... | /hyperinflation_formatter.R | no_license | twiegp/experiment-parser-reporter | R | false | false | 2,912 | r | library(reshape2)
library(car)
format <- function(df.full) {
# Not much formatting necessary for now!!
df.full$Milk <- recode(df.full$Market_Price_Last_1,"-1=NA")
df.full$Eggs<- recode(df.full$Market_Price_Last_2,"-1=NA")
df.full$Sugar <- recode(df.full$Market_Price_Last_3,"-1=NA")
assign("df_formatted", ... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/trackdata.class.R
\name{frames}
\alias{frames}
\title{frames}
\usage{
frames(trackdata)
}
\arguments{
\item{trackdata}{an object of class trackdata}
}
\value{
Data frames from the input object.
}
\description{
Get frames from trackdat... | /man/frames.Rd | no_license | hywel/emuR | R | false | false | 420 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/trackdata.class.R
\name{frames}
\alias{frames}
\title{frames}
\usage{
frames(trackdata)
}
\arguments{
\item{trackdata}{an object of class trackdata}
}
\value{
Data frames from the input object.
}
\description{
Get frames from trackdat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/link.R
\name{geom_link}
\alias{geom_link}
\alias{stat_link}
\alias{stat_link2}
\alias{geom_link2}
\alias{geom_link0}
\title{Link points with paths}
\usage{
stat_link(
mapping = NULL,
data = NULL,
geom = "path",
position = "identity",
... | /ggforce/man/geom_link.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 6,017 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/link.R
\name{geom_link}
\alias{geom_link}
\alias{stat_link}
\alias{stat_link2}
\alias{geom_link2}
\alias{geom_link0}
\title{Link points with paths}
\usage{
stat_link(
mapping = NULL,
data = NULL,
geom = "path",
position = "identity",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.