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/datasets.R
\docType{data}
\name{SSRP}
\alias{SSRP}
\title{Data from the Social Sciences Replication Project}
\format{
A data frame with 21 rows and 18 variables
}
\source{
\url{https://osf.io/abu7k}
}
\usage{
data(SSRP)
}
\description{
Data f... | /man/SSRP.Rd | no_license | florafauna/RStest | R | false | true | 4,060 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{SSRP}
\alias{SSRP}
\title{Data from the Social Sciences Replication Project}
\format{
A data frame with 21 rows and 18 variables
}
\source{
\url{https://osf.io/abu7k}
}
\usage{
data(SSRP)
}
\description{
Data f... |
context("zzz")
test_that("onLoad works", {
iSEE:::.onLoad()
directoryPath <- normalizePath(shiny:::.globals$resources[["iSEE"]][["directoryPath"]])
expectedPath <- normalizePath(system.file("www", package="iSEE"))
# expect_identical(directoryPath, expectedPath)
})
| /tests/testthat/test_zzz.R | permissive | ashley-williams/iSEE | R | false | false | 285 | r | context("zzz")
test_that("onLoad works", {
iSEE:::.onLoad()
directoryPath <- normalizePath(shiny:::.globals$resources[["iSEE"]][["directoryPath"]])
expectedPath <- normalizePath(system.file("www", package="iSEE"))
# expect_identical(directoryPath, expectedPath)
})
|
library(lme4)
d <- subset( # model data
analysis,
select = c(
'infant_mortality', 'spell_id', 'year',
't_lin', 't_squ',
"lag_mad_gdppch",
"lag_wdi_agrvagdp",
"lag_ross_oil_value_2000", "lag_ross_gas_value_2000",
"lp_catho80", "lp_muslim80", "lp_protmg80",
... | /r/analysis/03_infantMortality/07_icc_presentation_models.R | no_license | dagtann/legitdev | R | false | false | 3,164 | r | library(lme4)
d <- subset( # model data
analysis,
select = c(
'infant_mortality', 'spell_id', 'year',
't_lin', 't_squ',
"lag_mad_gdppch",
"lag_wdi_agrvagdp",
"lag_ross_oil_value_2000", "lag_ross_gas_value_2000",
"lp_catho80", "lp_muslim80", "lp_protmg80",
... |
library(bigballR)
library(ncaahoopR)
sec_today <- get_date_games(date=as.character(format(Sys.Date()-7, "%m/%d/%Y")),conference = 'SEC')
library(future)
library(furrr)
library(dplyr)
sec_pbp <- sec_today %>% mutate(
pbp = future_map(GameID,get_play_by_play,.progress = TRUE))
sec_lineups <- sec_pbp %>% mutate(
l... | /bigballR_playground.R | no_license | meysubb/SEC_Twitter | R | false | false | 3,597 | r | library(bigballR)
library(ncaahoopR)
sec_today <- get_date_games(date=as.character(format(Sys.Date()-7, "%m/%d/%Y")),conference = 'SEC')
library(future)
library(furrr)
library(dplyr)
sec_pbp <- sec_today %>% mutate(
pbp = future_map(GameID,get_play_by_play,.progress = TRUE))
sec_lineups <- sec_pbp %>% mutate(
l... |
library(tidyverse)
library(modeldata)
#these are the packages we need to run and have available in order to analyse the datasets
data(ames)
#the dataset is called ames
ames %>%
group_by(Garage_Type) %>%
count(Paved_Drive)
#the dataset is called ames
detchd <- ames %>%
select(Longitude, Latitude, Sale_Price, Ga... | /script1-Kristine.R | no_license | kristinesletta/Newbie | R | false | false | 631 | r | library(tidyverse)
library(modeldata)
#these are the packages we need to run and have available in order to analyse the datasets
data(ames)
#the dataset is called ames
ames %>%
group_by(Garage_Type) %>%
count(Paved_Drive)
#the dataset is called ames
detchd <- ames %>%
select(Longitude, Latitude, Sale_Price, Ga... |
context("physprop")
require(RCurl)
chk_physprop <- function(){
qurl <- 'http://esc.syrres.com/fatepointer/webprop.asp?CAS=50000'
Sys.sleep(0.2)
cont <- try(getURL(qurl, .encoding = 'UTF-8', .opts = list(timeout = 3)),
silent = TRUE)
if (inherits(cont, 'try-error'))
skip("Server is down!")
}
... | /tests/testthat/test-physprop.R | permissive | marcodilger/webchem | R | false | false | 1,207 | r | context("physprop")
require(RCurl)
chk_physprop <- function(){
qurl <- 'http://esc.syrres.com/fatepointer/webprop.asp?CAS=50000'
Sys.sleep(0.2)
cont <- try(getURL(qurl, .encoding = 'UTF-8', .opts = list(timeout = 3)),
silent = TRUE)
if (inherits(cont, 'try-error'))
skip("Server is down!")
}
... |
## need the sf library
library(sf)
## load the complete MISTI panel with village column (panel)
misti <- read.csv("/Users/christianbaehr/Box Sync/demining/inputData/misti/misti_full.csv",stringsAsFactors = F)
## load the empty grid I sent Brad for the extract (panel)
empty_grid_misti <- st_read("/Users/christianbaeh... | /misti merge.R | no_license | cbaehr/demining | R | false | false | 2,944 | r |
## need the sf library
library(sf)
## load the complete MISTI panel with village column (panel)
misti <- read.csv("/Users/christianbaehr/Box Sync/demining/inputData/misti/misti_full.csv",stringsAsFactors = F)
## load the empty grid I sent Brad for the extract (panel)
empty_grid_misti <- st_read("/Users/christianbaeh... |
# Get the delta archive view from VCentral for a given set of books.
#
# options$asOfDate <- Sys.Date()-1
# options$books <- c("NYTRADE", "JBOPT") # leave empty if you want all
# source("H:/user/R/RMG/Utilities/Database/VCENTRAL/get.vcentral.deltas.R")
# res <- get.vcentral.deltas(options)
get.vcentral.deltas <- fun... | /R Extension/RMG/Utilities/Database/VCENTRAL/get.vcentral.deltas.R | no_license | uhasan1/QLExtension-backup | R | false | false | 1,653 | r | # Get the delta archive view from VCentral for a given set of books.
#
# options$asOfDate <- Sys.Date()-1
# options$books <- c("NYTRADE", "JBOPT") # leave empty if you want all
# source("H:/user/R/RMG/Utilities/Database/VCENTRAL/get.vcentral.deltas.R")
# res <- get.vcentral.deltas(options)
get.vcentral.deltas <- fun... |
#' Load the card 16 succession interpretations (eo) data from Oracle database
#'
#'
#' @description This function is to load the sample header data from VGIS Oracle database. And
#' associated them with cluster.
#'
#' @param userName character, Specifies a valid user name in VGIS Oracle database.
#' @param... | /R/loadVGISSuccession.R | permissive | bcgov/FAIBOracle | R | false | false | 12,216 | r | #' Load the card 16 succession interpretations (eo) data from Oracle database
#'
#'
#' @description This function is to load the sample header data from VGIS Oracle database. And
#' associated them with cluster.
#'
#' @param userName character, Specifies a valid user name in VGIS Oracle database.
#' @param... |
baixar_paginas_justificando <- function(diretorio = ".",caderno = "noticias", paginas = 10){
url <- paste0("https://www.justificando.com/categoria/",caderno,"/page/")
purrr::walk(1:paginas,purrr::possibly(purrrogress::with_progress(~{
arquivo <- paste0(stringr::str_replace_all(Sys.time(),"\\D","_"),"_p... | /justificando.R | no_license | Viny369/jornais | R | false | false | 2,841 | r | baixar_paginas_justificando <- function(diretorio = ".",caderno = "noticias", paginas = 10){
url <- paste0("https://www.justificando.com/categoria/",caderno,"/page/")
purrr::walk(1:paginas,purrr::possibly(purrrogress::with_progress(~{
arquivo <- paste0(stringr::str_replace_all(Sys.time(),"\\D","_"),"_p... |
context("Edge presence")
test_that("a specified edge can be queried for presence in a graph", {
# Create a simple graph
nodes <- create_node_df(n = 4)
edges <-
create_edge_df(
from = c(1, 1, 3),
to = c(2, 3, 4))
graph <-
create_graph(
nodes_df = nodes,
edges_df = edges)
# ... | /tests/testthat/test-edge_present.R | no_license | ktargows/DiagrammeR-1 | R | false | false | 1,065 | r | context("Edge presence")
test_that("a specified edge can be queried for presence in a graph", {
# Create a simple graph
nodes <- create_node_df(n = 4)
edges <-
create_edge_df(
from = c(1, 1, 3),
to = c(2, 3, 4))
graph <-
create_graph(
nodes_df = nodes,
edges_df = edges)
# ... |
#### Assignment 7 ####
## Assignment:
#
# Clear memory and console
rm(list=ls())
cat('\014')
# Require Libraries
if(!require(HistData)){install.packages("HistData")}
if(!require(dplyr)){install.packages("dplyr")}
if(!require(ggplot2)){install.packages("ggplot2")}
if(!require(gridExtra)){install.packages("gridExtra"... | /assignments/week7/ds_350_hw7_stepwise_svd_elasticnet_regression.R | no_license | rtimbro185/uw_datasci350_methods_for_data_analysis | R | false | false | 5,548 | r | #### Assignment 7 ####
## Assignment:
#
# Clear memory and console
rm(list=ls())
cat('\014')
# Require Libraries
if(!require(HistData)){install.packages("HistData")}
if(!require(dplyr)){install.packages("dplyr")}
if(!require(ggplot2)){install.packages("ggplot2")}
if(!require(gridExtra)){install.packages("gridExtra"... |
library(rockchalk)
library(ggplot2)
library(tikzDevice)
setwd("~/Documents/sigcse/CS_Course_Data_Analysis/SIGSCE")
df_2017 <- read.csv("cs35_2017.csv")
df_2016 <- read.csv("cs35_2016.csv")
df <- rbind(df_2017, df_2016)
df$Major <- combineLevels(df$Major, c("French", "Spanish", "Studio Art", "Media Studies"),"Art, Lang... | /SIGCSE2/cs35motivations.R | no_license | ScriptingBeyondCS/CS-course-data-analysis | R | false | false | 2,674 | r | library(rockchalk)
library(ggplot2)
library(tikzDevice)
setwd("~/Documents/sigcse/CS_Course_Data_Analysis/SIGSCE")
df_2017 <- read.csv("cs35_2017.csv")
df_2016 <- read.csv("cs35_2016.csv")
df <- rbind(df_2017, df_2016)
df$Major <- combineLevels(df$Major, c("French", "Spanish", "Studio Art", "Media Studies"),"Art, Lang... |
library(shiny)
data(mtcars)
shinyServer(
function(input, output) {
# form = reactive({input$variable})
output$res <- renderTable({
fit <- lm(paste("mpg ~ ", input$variable), data=mtcars)
summary(fit)
})
output$newPlot <- renderPlot({
fit <- lm(paste("mpg ~ ", input$var... | /server.R | no_license | mosm/DevelopingDataProducts | R | false | false | 533 | r | library(shiny)
data(mtcars)
shinyServer(
function(input, output) {
# form = reactive({input$variable})
output$res <- renderTable({
fit <- lm(paste("mpg ~ ", input$variable), data=mtcars)
summary(fit)
})
output$newPlot <- renderPlot({
fit <- lm(paste("mpg ~ ", input$var... |
# Utility functions
INFO_PREFIX <- "INFO - "
WARN_PREFIX <- "WARN - "
ERR_PREFIX <- "ERROR - "
#' Standard formatting for log messages
#'
#' @param msg
#' @param ...
#' @param prefix
#'
#' @return
#'
#' @examples
fmtlog <- function(msg, ..., prefix) {
current_utc_time <- format(Sys.time(), tz="UTC")
sprintf(past... | /R/log.R | no_license | bradgwest/agileoracle | R | false | false | 828 | r | # Utility functions
INFO_PREFIX <- "INFO - "
WARN_PREFIX <- "WARN - "
ERR_PREFIX <- "ERROR - "
#' Standard formatting for log messages
#'
#' @param msg
#' @param ...
#' @param prefix
#'
#' @return
#'
#' @examples
fmtlog <- function(msg, ..., prefix) {
current_utc_time <- format(Sys.time(), tz="UTC")
sprintf(past... |
test_that("separate_longer_delim() creates rows", {
df <- tibble(id = 1:2, x = c("x", "y,z"))
out <- separate_longer_delim(df, x, delim = ",")
expect_equal(out$id, c(1, 2, 2))
expect_equal(out$x, c("x", "y", "z"))
})
test_that("separate_longer_delim() validates its inputs", {
df <- tibble(x = "x")
expect_s... | /tests/testthat/test-separate-longer.R | permissive | tidyverse/tidyr | R | false | false | 1,472 | r | test_that("separate_longer_delim() creates rows", {
df <- tibble(id = 1:2, x = c("x", "y,z"))
out <- separate_longer_delim(df, x, delim = ",")
expect_equal(out$id, c(1, 2, 2))
expect_equal(out$x, c("x", "y", "z"))
})
test_that("separate_longer_delim() validates its inputs", {
df <- tibble(x = "x")
expect_s... |
#' 1D LGCP bin count simulation and comparison with data
#'
#' A common procedure of analyzing the distribution of 1D points is to chose a binning
#' and plot the data's histogram with respect to this binning. This function compares the
#' counts that the histogram calculates to simulations from a 1D log Gaussian Cox ... | /inlabru/R/bru.gof.R | no_license | albrizre/spatstat.revdep | R | false | false | 6,801 | r | #' 1D LGCP bin count simulation and comparison with data
#'
#' A common procedure of analyzing the distribution of 1D points is to chose a binning
#' and plot the data's histogram with respect to this binning. This function compares the
#' counts that the histogram calculates to simulations from a 1D log Gaussian Cox ... |
#' @title Fitting GP models for the BitSeq example
#'
#' @description
#' Function for fitting two GP models and computing Bayes factors, i.e., the ratio of the maximum marginal
#' likelihood estimates of the two GP models, where the models are:
#' \itemize{
#' \item null model: GP with only white noise covariance matri... | /R/bitseq_fitGPs.R | no_license | carolbarata/GPrank | R | false | false | 3,952 | r | #' @title Fitting GP models for the BitSeq example
#'
#' @description
#' Function for fitting two GP models and computing Bayes factors, i.e., the ratio of the maximum marginal
#' likelihood estimates of the two GP models, where the models are:
#' \itemize{
#' \item null model: GP with only white noise covariance matri... |
#' Individual variance of landmarks
#'
#' Calculates individual variance of landmarks
#'
#' @param landmarks landmarks array
#' @export
landmarks.variance <- function(landmarks) {
mean.shape <- geomorph::mshape(landmarks)
n.spec <- dim(landmarks)[3]
n.landmarks <- dim(landmarks)[1]
dist.matrix <- matri... | /R/land_variance.R | no_license | jakubnowicki/GeoMorphoVar | R | false | false | 518 | r | #' Individual variance of landmarks
#'
#' Calculates individual variance of landmarks
#'
#' @param landmarks landmarks array
#' @export
landmarks.variance <- function(landmarks) {
mean.shape <- geomorph::mshape(landmarks)
n.spec <- dim(landmarks)[3]
n.landmarks <- dim(landmarks)[1]
dist.matrix <- matri... |
\name{wrapRpSlider}
\alias{wrapRpSlider}
\title{
Wrapper Function for rp.slider
}
\description{
Wrapper function to provide a variable name of type \code{\link{character}} to \code{\link{rp.slider}}.
}
\usage{
wrapRpSlider(panel, variable, from, to, action, title=NA,
log = FALSE, showvalue = FALSE, resolutio... | /man/wrapRpSlider.Rd | no_license | cran/LinRegInteractive | R | false | false | 690 | rd | \name{wrapRpSlider}
\alias{wrapRpSlider}
\title{
Wrapper Function for rp.slider
}
\description{
Wrapper function to provide a variable name of type \code{\link{character}} to \code{\link{rp.slider}}.
}
\usage{
wrapRpSlider(panel, variable, from, to, action, title=NA,
log = FALSE, showvalue = FALSE, resolutio... |
#### Module 15 Challenge.
### Part One: MPG Regression
## Dependencies
library(tidyverse)
## Read the MechaCar MPG Dataset. A CSV file.
mpg_table <- read.csv(file='MechaCar_mpg.csv',check.names=F,stringsAsFactors = F)
## Check shape and distribution variables
## Vehicle Length Analysis
# Rename var
mpg_table <- ... | /MechaCarChallenge.R | no_license | MauroBarron/MechaCar-performance-and-R | R | false | false | 3,909 | r | #### Module 15 Challenge.
### Part One: MPG Regression
## Dependencies
library(tidyverse)
## Read the MechaCar MPG Dataset. A CSV file.
mpg_table <- read.csv(file='MechaCar_mpg.csv',check.names=F,stringsAsFactors = F)
## Check shape and distribution variables
## Vehicle Length Analysis
# Rename var
mpg_table <- ... |
.libPaths('~/R_libs')
library(bookdown)
bookdown::render_book(input = 'index.Rmd', ## all files that match '.Rmd' as input
# output_format = 'all', ## only gitbook outbook, no pdf or ePub
output_format = c('bookdown::gitbook','bookdown::pdf_book'),
new_... | /Rproject/render_book.R | no_license | aljabadi/MINT_sPLSDA | R | false | false | 1,793 | r | .libPaths('~/R_libs')
library(bookdown)
bookdown::render_book(input = 'index.Rmd', ## all files that match '.Rmd' as input
# output_format = 'all', ## only gitbook outbook, no pdf or ePub
output_format = c('bookdown::gitbook','bookdown::pdf_book'),
new_... |
## =======================================================================================================================================================================================================
## Exploratory Dynamic Integreated Assessment Model
## ==============================================================... | /Ediam_v27_09_2017/ediam_HistoricCalib.r | no_license | emolinaperez/EdiamModel_v2.0 | R | false | false | 12,400 | r | ## =======================================================================================================================================================================================================
## Exploratory Dynamic Integreated Assessment Model
## ==============================================================... |
# Generated with SMOP 0.41-beta
from libsmop import *
# simple.m
x=linspace(- 10,10)
# simple.m:2 | /support/msmop/simple.r | permissive | FanWangEcon/Py4Econ | R | false | false | 108 | r | # Generated with SMOP 0.41-beta
from libsmop import *
# simple.m
x=linspace(- 10,10)
# simple.m:2 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distri2.R
\name{aritmetica}
\alias{aritmetica}
\alias{suma1}
\alias{multi1}
\title{Basic arithmetic}
\usage{
suma1(x)
multi1(y)
}
\arguments{
\item{x, y}{numeric vectors.}
}
\description{
Basic arithmetic
}
\examples{
suma1(5)
multi1(8)
}
| /man/aritmetica.Rd | permissive | fhernanb/prueba | R | false | true | 318 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distri2.R
\name{aritmetica}
\alias{aritmetica}
\alias{suma1}
\alias{multi1}
\title{Basic arithmetic}
\usage{
suma1(x)
multi1(y)
}
\arguments{
\item{x, y}{numeric vectors.}
}
\description{
Basic arithmetic
}
\examples{
suma1(5)
multi1(8)
}
|
/parciales/parcial1-punto2.R | no_license | nikarcia/NicolasGarcia2 | R | false | false | 1,162 | r | ||
library(shiny)
#options(unzip = "internal"); devtools::install_github("rstudio/leaflet")
library(leaflet)
library(DT)
load("R/v1.RData")
source("R/topoJSON_string_style.R")
town_density <- topoJSON_property_extract(
topoJSON_string = town_tj, property_name = "DENSITY"
)
ward_density <- topoJSON_property_extrac... | /examples/app2tj.R | no_license | artilery/shiny_leaflet_choropleth | R | false | false | 21,312 | r | library(shiny)
#options(unzip = "internal"); devtools::install_github("rstudio/leaflet")
library(leaflet)
library(DT)
load("R/v1.RData")
source("R/topoJSON_string_style.R")
town_density <- topoJSON_property_extract(
topoJSON_string = town_tj, property_name = "DENSITY"
)
ward_density <- topoJSON_property_extrac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaX.R
\docType{methods}
\name{hasQC}
\alias{hasQC}
\title{Judge whether the data has QC samples}
\usage{
hasQC(para, ...)
}
\arguments{
\item{para}{An object of data}
\item{...}{Additional parameters}
}
\value{
A logical value
}
\descripti... | /man/hasQC.Rd | no_license | wenbostar/metaX | R | false | true | 710 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaX.R
\docType{methods}
\name{hasQC}
\alias{hasQC}
\title{Judge whether the data has QC samples}
\usage{
hasQC(para, ...)
}
\arguments{
\item{para}{An object of data}
\item{...}{Additional parameters}
}
\value{
A logical value
}
\descripti... |
traceback_enabled <- function() {
# if there is specific option set then respect it
reticulate_traceback_option <- getOption("reticulate.traceback", default = NULL)
if (!is.null(reticulate_traceback_option))
return(isTRUE(reticulate_traceback_option))
# determine whether rstudio python traceback support... | /R/utils.R | permissive | DavisVaughan/reticulate | R | false | false | 2,526 | r |
traceback_enabled <- function() {
# if there is specific option set then respect it
reticulate_traceback_option <- getOption("reticulate.traceback", default = NULL)
if (!is.null(reticulate_traceback_option))
return(isTRUE(reticulate_traceback_option))
# determine whether rstudio python traceback support... |
library(data.table)
library(glue)
# Define an alpha by taking a data table dt.variables
# Subset within the function
accrual_cashflow <- function(dt.variables){
# default val lookback = 60
lookback <- dt.variables$lookback
my_code <- glue("-delta(assets_curr - (liabilities_curr - debt_st), {lookback})")
retur... | /alpha_models.R | no_license | timjaya/alphasquad | R | false | false | 3,464 | r | library(data.table)
library(glue)
# Define an alpha by taking a data table dt.variables
# Subset within the function
accrual_cashflow <- function(dt.variables){
# default val lookback = 60
lookback <- dt.variables$lookback
my_code <- glue("-delta(assets_curr - (liabilities_curr - debt_st), {lookback})")
retur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tracer.R
\name{summary.tracer}
\alias{summary.tracer}
\alias{print.tracer}
\title{Summarize and print trace information}
\usage{
\method{summary}{tracer}(x, ...)
\method{print}{tracer}(x, ...)
}
\arguments{
\item{x}{a tracer object}
\item{.... | /CSwR_package/man/summary.tracer.Rd | no_license | nielsrhansen/CSwR | R | false | true | 632 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tracer.R
\name{summary.tracer}
\alias{summary.tracer}
\alias{print.tracer}
\title{Summarize and print trace information}
\usage{
\method{summary}{tracer}(x, ...)
\method{print}{tracer}(x, ...)
}
\arguments{
\item{x}{a tracer object}
\item{.... |
# Employment and Participation Rate (%) 2011
# Australia vs Ravenswood, Launceston.
# Data source: Australian Bureau of Statistics
# http://govhack.abs.gov.au/Index.aspx
library(ggplot2)
library(dplyr)
source("multiplot.R")
region <- factor(c("Ravenswood","Ravenswood", "Australia", "Australia"))
statistic <-factor(c(... | /employment_partcipation_Ravenswood_2011.R | permissive | Mark487/R_Code_for_Research | R | false | false | 1,505 | r | # Employment and Participation Rate (%) 2011
# Australia vs Ravenswood, Launceston.
# Data source: Australian Bureau of Statistics
# http://govhack.abs.gov.au/Index.aspx
library(ggplot2)
library(dplyr)
source("multiplot.R")
region <- factor(c("Ravenswood","Ravenswood", "Australia", "Australia"))
statistic <-factor(c(... |
library(foreach)
library(dplyr)
library(ggplot2)
library(MASS)
library(rstan)
library(reshape2)
#d <- read.csv('/Users/eczech/data/ptbo2/export/data_modeling_no_gos_interp.csv')
#d <- read.csv('/Users/eczech/data/ptbo2/export/data_modeling_w_gos_interp.csv')
d <- read.csv('/Users/eczech/data/ptbo2/export/data_modeling... | /demonstrative/R/pbto2/pbto2.R | no_license | eric-czech/portfolio | R | false | false | 5,260 | r | library(foreach)
library(dplyr)
library(ggplot2)
library(MASS)
library(rstan)
library(reshape2)
#d <- read.csv('/Users/eczech/data/ptbo2/export/data_modeling_no_gos_interp.csv')
#d <- read.csv('/Users/eczech/data/ptbo2/export/data_modeling_w_gos_interp.csv')
d <- read.csv('/Users/eczech/data/ptbo2/export/data_modeling... |
#' Apply the LargeVis algorithm for visualizing large high-dimensional datasets.
#'
#' @param x A matrix, where the features are rows and the examples are columns.
#' @param dim The number of dimensions in the output
#' @param K The number of nearest-neighbors to use in computing the kNN graph
#' @param n_trees See \co... | /R/largeVis.R | no_license | ktargows/largeVis | R | false | false | 5,568 | r | #' Apply the LargeVis algorithm for visualizing large high-dimensional datasets.
#'
#' @param x A matrix, where the features are rows and the examples are columns.
#' @param dim The number of dimensions in the output
#' @param K The number of nearest-neighbors to use in computing the kNN graph
#' @param n_trees See \co... |
# This script analysis NGS data from targeted resequencing 1000 colonies after Day1, 2 months, 3 months of quiescence
# of PCR products of 9 genes that undergo positive selection during quiescence
#set working directory
#setwd("/Volumes/@Dyngen/Article_Rostyslav/Figures/Figures_4-6/4_cultures")
setwd("/home/rostyslav/... | /scripts/Variants_distribution_4cultures.R | no_license | rmakaren/Genomics-quiescence-mutation-detection | R | false | false | 8,976 | r | # This script analysis NGS data from targeted resequencing 1000 colonies after Day1, 2 months, 3 months of quiescence
# of PCR products of 9 genes that undergo positive selection during quiescence
#set working directory
#setwd("/Volumes/@Dyngen/Article_Rostyslav/Figures/Figures_4-6/4_cultures")
setwd("/home/rostyslav/... |
##' Train a model by word2vec.
##'
##' The word2vec tool takes a text corpus as input and produces the
##' word vectors as output. It first constructs a vocabulary from the
##' training text data and then learns vector representation of words.
##' The resulting word vector file can be used as features in many
##' natur... | /R/uniword2vec.R | no_license | kkdey/uniword2vec | R | false | false | 4,968 | r | ##' Train a model by word2vec.
##'
##' The word2vec tool takes a text corpus as input and produces the
##' word vectors as output. It first constructs a vocabulary from the
##' training text data and then learns vector representation of words.
##' The resulting word vector file can be used as features in many
##' natur... |
## Exploratory Data Analysis
## Week 1 Project
## Plot 2 of 4
## Brent Poliquin
## 1/10/16
## Read Data from Raw File
dat <- read.table(file="./data/household_power_consumption.txt",
header=T,
sep=";",
stringsAsFactors = FALSE)
## Filter the data to date range 20... | /plot2.R | no_license | wilby31/ExData_Plotting1 | R | false | false | 1,077 | r | ## Exploratory Data Analysis
## Week 1 Project
## Plot 2 of 4
## Brent Poliquin
## 1/10/16
## Read Data from Raw File
dat <- read.table(file="./data/household_power_consumption.txt",
header=T,
sep=";",
stringsAsFactors = FALSE)
## Filter the data to date range 20... |
library(wpd)
sql <-
wpd_sql(
"
CREATE INDEX if not exists page_views_%s_page_view_date_idx
ON
page_views_%s (page_view_date);",
wpd_languages, wpd_languages
)
for( i in seq_along(sql)){
cat(as.character(Sys.time()), " - ", i)
wpd_get_query(query = sql[i], node = "pm5")
}
| /scripts/db_create_page_view_date_indices.R | no_license | petermeissner/wikipediadumbs | R | false | false | 303 | r | library(wpd)
sql <-
wpd_sql(
"
CREATE INDEX if not exists page_views_%s_page_view_date_idx
ON
page_views_%s (page_view_date);",
wpd_languages, wpd_languages
)
for( i in seq_along(sql)){
cat(as.character(Sys.time()), " - ", i)
wpd_get_query(query = sql[i], node = "pm5")
}
|
/DEB_vs_data/DEB-arrhenius_test.R | no_license | jfloresvaliente/ichthyop-processing | R | false | false | 4,451 | r | ||
#' Plot a model's time series (either spawning biomass or relaive spawning
#' biomass) and its projections
#'
#' @inheritParams plot_ts_mcmc
#' @family Time series plotting functions
#'
#' @param model An ISCAM model object (class [mdl_cls])
#' @param model_name Name of the input model
#' @param rel Logical. Make plot ... | /R/plot-biomass-proj-mcmc.R | no_license | pbs-assess/gfiscamutils | R | false | false | 7,452 | r | #' Plot a model's time series (either spawning biomass or relaive spawning
#' biomass) and its projections
#'
#' @inheritParams plot_ts_mcmc
#' @family Time series plotting functions
#'
#' @param model An ISCAM model object (class [mdl_cls])
#' @param model_name Name of the input model
#' @param rel Logical. Make plot ... |
library(rgdal)
library(rgeos)
################################################################################################
################################################################################################
# Il faut basculer dans le referentiel local, non fait actuellement pour etre en cartesien... | /Sous_Routine_MOBITC/Rivages_MobiTC.R | no_license | ctrmal/dtermed.MobiTC-1 | R | false | false | 9,097 | r | library(rgdal)
library(rgeos)
################################################################################################
################################################################################################
# Il faut basculer dans le referentiel local, non fait actuellement pour etre en cartesien... |
#' The steps below are needed to regenerate
#' the data objects and documentation files
#' included with the package and then
#' run all tests.
#' install.packages("devtools")
#' devtools::install_github("klutometis/roxygen")
library(devtools)
library(roxygen2)
library(pkgload)
document("meffil")
source("meffil/data... | /regenerate.r | permissive | perishky/meffil | R | false | false | 455 | r | #' The steps below are needed to regenerate
#' the data objects and documentation files
#' included with the package and then
#' run all tests.
#' install.packages("devtools")
#' devtools::install_github("klutometis/roxygen")
library(devtools)
library(roxygen2)
library(pkgload)
document("meffil")
source("meffil/data... |
findMostRecentCommonFounder <-
function(caseFam, famInfo)
{ found <- FALSE
if(nrow(caseFam)==1 & caseFam$dadid[1]!="0")
{ parentsTemp <- c()
}else
{
parentsTemp <- caseFam$id
}
subjLook <- caseFam
while(!found)
{
parentsTemp <- (c(parentsTemp, subjLook$dadid, subjLook$momid... | /R/findMostRecentCommonFounder.R | no_license | cran/GESE | R | false | false | 952 | r | findMostRecentCommonFounder <-
function(caseFam, famInfo)
{ found <- FALSE
if(nrow(caseFam)==1 & caseFam$dadid[1]!="0")
{ parentsTemp <- c()
}else
{
parentsTemp <- caseFam$id
}
subjLook <- caseFam
while(!found)
{
parentsTemp <- (c(parentsTemp, subjLook$dadid, subjLook$momid... |
library(strucchange)
library(bfast)
source("utils/getbreaknumber.r")
MyPlotBfast = function(MyBF, PlotData=TRUE, ...)
{
MyIter = length(MyBF$output)
MyFit = MyBF$output[[MyIter]]$St + MyBF$output[[MyIter]]$Tt
MyTrend = MyBF$output[[MyIter]]$Tt
MyTimes = as.numeric(time(MyBF$output[[MyIter]]$Tt))
My... | /src/utils/visualise_breakpoints.r | no_license | RSIP4SH/cglops-change-detection | R | false | false | 2,706 | r | library(strucchange)
library(bfast)
source("utils/getbreaknumber.r")
MyPlotBfast = function(MyBF, PlotData=TRUE, ...)
{
MyIter = length(MyBF$output)
MyFit = MyBF$output[[MyIter]]$St + MyBF$output[[MyIter]]$Tt
MyTrend = MyBF$output[[MyIter]]$Tt
MyTimes = as.numeric(time(MyBF$output[[MyIter]]$Tt))
My... |
install.packages('doParallel', repos = 'http://cran.mirror.ac.za')
install.packages("tidyverse", repos = 'http://cran.mirror.ac.za')
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager", repos = 'http://cran.mirror.ac.za')
BiocManager::install("GENESIS", version = "3.8", update=TRUE) | /users/gveeden/packages.R | no_license | gveeden/steve | R | false | false | 320 | r | install.packages('doParallel', repos = 'http://cran.mirror.ac.za')
install.packages("tidyverse", repos = 'http://cran.mirror.ac.za')
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager", repos = 'http://cran.mirror.ac.za')
BiocManager::install("GENESIS", version = "3.8", update=TRUE) |
# 표본분포
# 예제 4-1. 표본평균 xbar 의 분포
m10 <- rep(NA, 1000) # NA 로 차있는 1000개의 스팟을 만드는 것
m40 <- rep(NA, 1000)
set.seed(0)
for (i in 1:1000) {
m10[i] <- mean(rnorm(10)) # NA 로 비어있는 스팟에 랜덤한 10개 숫자의 평균을 넣는다
m40[i] <- mean (rnorm(40))
}
options(digits=4)
c(mean(m10), sd(m10)) # ~0.00x , ~0.35x
c(mean(m40), sd(m40)) ... | /Ch. 04/표본분포_코딩.R | no_license | psm9619/R_Statistical_Analysis | R | false | false | 3,300 | r | # 표본분포
# 예제 4-1. 표본평균 xbar 의 분포
m10 <- rep(NA, 1000) # NA 로 차있는 1000개의 스팟을 만드는 것
m40 <- rep(NA, 1000)
set.seed(0)
for (i in 1:1000) {
m10[i] <- mean(rnorm(10)) # NA 로 비어있는 스팟에 랜덤한 10개 숫자의 평균을 넣는다
m40[i] <- mean (rnorm(40))
}
options(digits=4)
c(mean(m10), sd(m10)) # ~0.00x , ~0.35x
c(mean(m40), sd(m40)) ... |
library('OpenMx')
setwd('~/git/sem_python/tests')
data <- read.csv('HolzingerSwineford1939.csv')
visual <- c('x1', 'x2', 'x3')
textual <- c('x4', 'x5', 'x6')
speed <- c('x7', 'x8', 'x9')
manifest <- c(visual, textual, speed)
latent <- c('visual', 'textual', 'speed')
data <- data[manifest]
model <- mxModel(
"Holz... | /tests/cfa_openmx.r | permissive | twoertwein/pySEM | R | false | false | 1,121 | r | library('OpenMx')
setwd('~/git/sem_python/tests')
data <- read.csv('HolzingerSwineford1939.csv')
visual <- c('x1', 'x2', 'x3')
textual <- c('x4', 'x5', 'x6')
speed <- c('x7', 'x8', 'x9')
manifest <- c(visual, textual, speed)
latent <- c('visual', 'textual', 'speed')
data <- data[manifest]
model <- mxModel(
"Holz... |
##' @name InventoryGrowthFusionDiagnostics
##' @title InventoryGrowthFusionDiagnostics
##' @param jags.out output mcmc.list from InventoryGrowthFusion
##' @param combined data output from matchInventoryRings
##' @author Michael Dietze
##' @export
InventoryGrowthFusionDiagnostics <- function(jags.out, combined=NULL) {... | /modules/data.land/R/InventoryGrowthFusionDiagnostics.R | permissive | PecanProject/pecan | R | false | false | 6,121 | r | ##' @name InventoryGrowthFusionDiagnostics
##' @title InventoryGrowthFusionDiagnostics
##' @param jags.out output mcmc.list from InventoryGrowthFusion
##' @param combined data output from matchInventoryRings
##' @author Michael Dietze
##' @export
InventoryGrowthFusionDiagnostics <- function(jags.out, combined=NULL) {... |
\name{local.install.packages}
\alias{local.install.packages}
\title{Installs packages from the local repository.}
\usage{
local.install.packages(pkgs, local.repos, type =
"source")
}
\description{
Installs packages from the local repository.
}
\seealso{
\code{\link{install.packages}} which this function wraps
}... | /man/local.install.packages.Rd | no_license | raffdoc/irutils | R | false | false | 322 | rd | \name{local.install.packages}
\alias{local.install.packages}
\title{Installs packages from the local repository.}
\usage{
local.install.packages(pkgs, local.repos, type =
"source")
}
\description{
Installs packages from the local repository.
}
\seealso{
\code{\link{install.packages}} which this function wraps
}... |
sulfatenum<- numeric()
nitratenum<- numeric()
total<- numeric()
corr<- function(directory, threshold=0){
for (i in 1:332){
allFile <- paste(directory,"/",formatC(i,width=3,flag="0"),".csv",sep="")
eachfile <- read.csv(allFile)
arrangedfile <- eachfile[complete.cases(eachfile),]
if (nrow(arrangedfile)... | /corr.R | no_license | Crumbofthypuss/Data-Science-Course-2 | R | false | false | 492 | r | sulfatenum<- numeric()
nitratenum<- numeric()
total<- numeric()
corr<- function(directory, threshold=0){
for (i in 1:332){
allFile <- paste(directory,"/",formatC(i,width=3,flag="0"),".csv",sep="")
eachfile <- read.csv(allFile)
arrangedfile <- eachfile[complete.cases(eachfile),]
if (nrow(arrangedfile)... |
# Function to receive either a list of SpatialPolygons or a rasterStack and generate a richness raster
# add option to allow species that have ranges smaller than grid size to get enlarged so as to count
# ranges is list of SpatialPolygons or SpatialPolygonsDataFrames, or a rasterstack
# resolution: size of cells
# r... | /rangeBuilder/R/richnessRaster.R | no_license | ingted/R-Examples | R | false | false | 6,217 | r | # Function to receive either a list of SpatialPolygons or a rasterStack and generate a richness raster
# add option to allow species that have ranges smaller than grid size to get enlarged so as to count
# ranges is list of SpatialPolygons or SpatialPolygonsDataFrames, or a rasterstack
# resolution: size of cells
# r... |
library(elementR)
### Name: elementR_data
### Title: Object elementR_data
### Aliases: elementR_data
### ** Examples
## create a new elementR_data object based on the "filePath"
## from a file containing data (accepted format of data: .csv, .ods, .xls, .xlsx)
filePath <- system.file("Example_Session/standards/Sta... | /data/genthat_extracted_code/elementR/examples/elementR_data.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 437 | r | library(elementR)
### Name: elementR_data
### Title: Object elementR_data
### Aliases: elementR_data
### ** Examples
## create a new elementR_data object based on the "filePath"
## from a file containing data (accepted format of data: .csv, .ods, .xls, .xlsx)
filePath <- system.file("Example_Session/standards/Sta... |
#' Extract and Process Data from DHIS 2
#'
#' @param url placeholder
#' @param params Parameters for username and password entered at knitting
#' @param basepath placeholder
#' @param data_elements placeholder
#' @param wrap_length placeholder
#'
#' @return
#' @import data.table ISOweek stringr
#' @export
#'
process_da... | /R/process_data1.R | permissive | prcleary/dhis2bulletin | R | false | false | 1,946 | r | #' Extract and Process Data from DHIS 2
#'
#' @param url placeholder
#' @param params Parameters for username and password entered at knitting
#' @param basepath placeholder
#' @param data_elements placeholder
#' @param wrap_length placeholder
#'
#' @return
#' @import data.table ISOweek stringr
#' @export
#'
process_da... |
library(sandwich)
setwd("~/Dropbox/UW2015-2016/Win2016/571/hw1")
##
##problem 1
##
dat1 <- read.table("rats.csv", header=TRUE, sep=',')
attach(dat1)
m1 <- glm(y~x, family=Gamma(link="log")) #we have a log link log(1/lambda_i) = beta_0 + beta_1x_i
sand <- vcovHC(m1,type="HC0")
beta <- m1$coefficients
n = length(x)
X = c... | /hw1/hw1.R | no_license | aengle1429/571 | R | false | false | 3,781 | r | library(sandwich)
setwd("~/Dropbox/UW2015-2016/Win2016/571/hw1")
##
##problem 1
##
dat1 <- read.table("rats.csv", header=TRUE, sep=',')
attach(dat1)
m1 <- glm(y~x, family=Gamma(link="log")) #we have a log link log(1/lambda_i) = beta_0 + beta_1x_i
sand <- vcovHC(m1,type="HC0")
beta <- m1$coefficients
n = length(x)
X = c... |
#' Calculates the Moreau-Broto Autocorrelation Descriptors using Polarizability
#'
#' Calculates the Moreau-Broto Autocorrelation Descriptors using Polarizability
#'
#' Calculates the ATS autocorrelation descriptor using polarizability.
#'
#' @param molecules Parsed molucule object.
#' @param silent Logical. Whether t... | /R/310-extractDrugAutocorrelationPolarizability.R | no_license | MaythaNaif/Rcpi | R | false | false | 1,395 | r | #' Calculates the Moreau-Broto Autocorrelation Descriptors using Polarizability
#'
#' Calculates the Moreau-Broto Autocorrelation Descriptors using Polarizability
#'
#' Calculates the ATS autocorrelation descriptor using polarizability.
#'
#' @param molecules Parsed molucule object.
#' @param silent Logical. Whether t... |
#Function to return topic indices in order of their importance (measured by words in topics)
topic_order <- function(topicmodel = topic.model, only_indices = T){
#get doc-topic matrix
doc.topics <- mallet.doc.topics(topicmodel, smoothed = F, normalized = F)
#how many terms does a topic have across all documents?... | /functions/topic_order.R | no_license | desmarais-lab/govWebsites | R | false | false | 582 | r | #Function to return topic indices in order of their importance (measured by words in topics)
topic_order <- function(topicmodel = topic.model, only_indices = T){
#get doc-topic matrix
doc.topics <- mallet.doc.topics(topicmodel, smoothed = F, normalized = F)
#how many terms does a topic have across all documents?... |
#' Multi Level K 2 Simulation
#'
#' @param mlk
#' @param bw
#' @param bh
#' @param conf
#' @param tail
#' @param rep
#' @param crs
#'
#' @return
#' @export
#' @import data.table ggplot2 tilit
#'
#' @examples
mlk2sim.f<-function(mlk,bw=1,bh=.002,conf=1/100,tail=2,rep=1000,crs=1){
conf<-1-conf/tail
conf<-qt(conf,rep... | /plagiat/R/mlk2sim.f.R | no_license | brooksambrose/pack-dev | R | false | false | 2,904 | r | #' Multi Level K 2 Simulation
#'
#' @param mlk
#' @param bw
#' @param bh
#' @param conf
#' @param tail
#' @param rep
#' @param crs
#'
#' @return
#' @export
#' @import data.table ggplot2 tilit
#'
#' @examples
mlk2sim.f<-function(mlk,bw=1,bh=.002,conf=1/100,tail=2,rep=1000,crs=1){
conf<-1-conf/tail
conf<-qt(conf,rep... |
predict.bigssg <-
function(object,newdata=NULL,se.lp=FALSE,include=object$tnames,
effect=c("all","0","lin","non"),includeint=FALSE,
design=FALSE,smoothMatrix=FALSE,...) {
###### Predicts for class "bigssg" objects
###### Nathaniel E. Helwig (helwig@umn.edu)
###### Last modified: Marc... | /bigsplines/R/predict.bigssg.R | no_license | ingted/R-Examples | R | false | false | 7,149 | r | predict.bigssg <-
function(object,newdata=NULL,se.lp=FALSE,include=object$tnames,
effect=c("all","0","lin","non"),includeint=FALSE,
design=FALSE,smoothMatrix=FALSE,...) {
###### Predicts for class "bigssg" objects
###### Nathaniel E. Helwig (helwig@umn.edu)
###### Last modified: Marc... |
/old usb backup/recipe.rd | no_license | htbrdd/rdworks-files | R | false | false | 27,474 | rd | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{ed_auth}
\alias{ed_auth}
\title{EIDITH logon credentials}
\description{
Any function that downloads data from EIDITH, such as \code{\link[=ed_db_download]{ed_db_download()}} or
the \link[=ed_get]{raw download functions} requires ... | /man/ed_auth.Rd | permissive | ecohealthalliance/eidith | R | false | true | 1,313 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{ed_auth}
\alias{ed_auth}
\title{EIDITH logon credentials}
\description{
Any function that downloads data from EIDITH, such as \code{\link[=ed_db_download]{ed_db_download()}} or
the \link[=ed_get]{raw download functions} requires ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scimpute.R
\name{scimpute}
\alias{scimpute}
\title{use scImpute to impute dropout values in scRNA-seq data}
\usage{
scimpute(count_path, infile = "csv", outfile = "csv", type = "count",
out_dir, labeled = FALSE, drop_thre = 0.5, Kcluster = ... | /ExpressionRecoveryMaterials/scImpute/man/scimpute.Rd | no_license | dapingtai/SingleCell | R | false | true | 2,635 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scimpute.R
\name{scimpute}
\alias{scimpute}
\title{use scImpute to impute dropout values in scRNA-seq data}
\usage{
scimpute(count_path, infile = "csv", outfile = "csv", type = "count",
out_dir, labeled = FALSE, drop_thre = 0.5, Kcluster = ... |
#
# Checkup_CalculateReturns.R
#
##===============================================================================================================================================================================================================
# Get the data
myHistoPrices_List <- HistoOHLCV(InputCoinSet=c("ETH","E... | /Checkup_CalculateReturns.R | no_license | nrsander/CheckupApp_Alpha | R | false | false | 638 | r |
#
# Checkup_CalculateReturns.R
#
##===============================================================================================================================================================================================================
# Get the data
myHistoPrices_List <- HistoOHLCV(InputCoinSet=c("ETH","E... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/3_ComplexModels.R
\name{M_M_1_INF_H}
\alias{M_M_1_INF_H}
\title{Obtains the main characteristics of a M/M/1/\eqn{\infty}/H queueing model}
\usage{
M_M_1_INF_H(lambda = 1/2, mu = 60/5, h = 5)
}
\arguments{
\item{lambda}{Mean arrival ra... | /man/M_M_1_INF_H.Rd | no_license | vishkey/arqas | R | false | false | 2,229 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/3_ComplexModels.R
\name{M_M_1_INF_H}
\alias{M_M_1_INF_H}
\title{Obtains the main characteristics of a M/M/1/\eqn{\infty}/H queueing model}
\usage{
M_M_1_INF_H(lambda = 1/2, mu = 60/5, h = 5)
}
\arguments{
\item{lambda}{Mean arrival ra... |
library(Devore7)
### Name: ex14.15
### Title: R Data set: ex14.15
### Aliases: ex14.15
### Keywords: datasets
### ** Examples
data(ex14.15)
str(ex14.15)
| /data/genthat_extracted_code/Devore7/examples/ex14.15.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 160 | r | library(Devore7)
### Name: ex14.15
### Title: R Data set: ex14.15
### Aliases: ex14.15
### Keywords: datasets
### ** Examples
data(ex14.15)
str(ex14.15)
|
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
# Define UI for application that draws a histogram
s... | /ui.R | no_license | amshenao/Beta_Distribution | R | false | false | 4,921 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
# Define UI for application that draws a histogram
s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{boundingBox}
\alias{boundingBox}
\title{Bounding Box of a Tracks Object}
\usage{
boundingBox(x)
}
\arguments{
\item{x}{the input \code{tracks} object.}
}
\value{
Returns a matrix with two rows and \eqn{d+1} columns, where \e... | /man/boundingBox.Rd | no_license | cran/MotilityLab | R | false | true | 868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{boundingBox}
\alias{boundingBox}
\title{Bounding Box of a Tracks Object}
\usage{
boundingBox(x)
}
\arguments{
\item{x}{the input \code{tracks} object.}
}
\value{
Returns a matrix with two rows and \eqn{d+1} columns, where \e... |
library(h2o)
### Name: h2o.gainsLift
### Title: Access H2O Gains/Lift Tables
### Aliases: h2o.gainsLift h2o.gainsLift,H2OModel-method
### h2o.gainsLift,H2OModelMetrics-method
### ** Examples
## No test:
library(h2o)
h2o.init()
prostate_path <- system.file("extdata", "prostate.csv", package = "h2o")
prostate <- h... | /data/genthat_extracted_code/h2o/examples/h2o.gainsLift.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 992 | r | library(h2o)
### Name: h2o.gainsLift
### Title: Access H2O Gains/Lift Tables
### Aliases: h2o.gainsLift h2o.gainsLift,H2OModel-method
### h2o.gainsLift,H2OModelMetrics-method
### ** Examples
## No test:
library(h2o)
h2o.init()
prostate_path <- system.file("extdata", "prostate.csv", package = "h2o")
prostate <- h... |
library(asympTest)
### Name: seMean
### Title: se functions
### Aliases: seMean seMean.default seVar seVar.default seDMean
### seDMean.default seDMeanG seDMeanG.default seDVar seDVar.default
### seRMean seRMean.default seRVar seRVar.default
### Keywords: htest univar
### ** Examples
x <- rnorm(70, mean = 1, sd ... | /data/genthat_extracted_code/asympTest/examples/seMean.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 592 | r | library(asympTest)
### Name: seMean
### Title: se functions
### Aliases: seMean seMean.default seVar seVar.default seDMean
### seDMean.default seDMeanG seDMeanG.default seDVar seDVar.default
### seRMean seRMean.default seRVar seRVar.default
### Keywords: htest univar
### ** Examples
x <- rnorm(70, mean = 1, sd ... |
int.div <- function (x, div) {
a <- x %/% div
b <- x %% div
return (data.frame(dividend=x, divisor=div,
quotient=a, remainder=b))
}
a <- runif(10)
a
b <- trunc(a*100)
b
outcome1 <- int.div(b, 5)
outcome2 <- int.div(14, 0:5)
outcome3 <- int.div(10:20, 1:5)
outcome4 <- int.div(... | /Chapter2.R_Programming/debug_example.R | no_license | lxwvictor/DataScienceCoursera | R | false | false | 375 | r | int.div <- function (x, div) {
a <- x %/% div
b <- x %% div
return (data.frame(dividend=x, divisor=div,
quotient=a, remainder=b))
}
a <- runif(10)
a
b <- trunc(a*100)
b
outcome1 <- int.div(b, 5)
outcome2 <- int.div(14, 0:5)
outcome3 <- int.div(10:20, 1:5)
outcome4 <- int.div(... |
# Repo: https://github.com/Oleg-Krivosheev/ExData_Plotting2/
library(data.table)
# if data are preprocessed, load it faster by uncommenting the line
#load("NEI.rda")
#load("SCC.rda")
NEI <- as.data.table( readRDS("summarySCC_PM25.rds") )
SCC <- as.data.table( readRDS("Source_Classification_Code.rds") )
# selecting c... | /plot4.R | permissive | Oleg-Krivosheev/ExData_Plotting2 | R | false | false | 857 | r | # Repo: https://github.com/Oleg-Krivosheev/ExData_Plotting2/
library(data.table)
# if data are preprocessed, load it faster by uncommenting the line
#load("NEI.rda")
#load("SCC.rda")
NEI <- as.data.table( readRDS("summarySCC_PM25.rds") )
SCC <- as.data.table( readRDS("Source_Classification_Code.rds") )
# selecting c... |
jhfolder <- "~/ownCloud/coronavirus/lockdown/data/COVID-19-master/csse_covid_19_data/csse_covid_19_daily_reports/"
# data from John Hopkins
lf <- list.files(jhfolder)
lf <- lf[lf!="README.md"]
dates <- substring(lf, 1, 10)
# rbind all data and slight cleaning:
all_df <- c()
for(ff in lf){
df <- read.csv(paste0(mas... | /clean_John_Hopkins.R | no_license | FrancoisBlanquart/covid_model | R | false | false | 6,620 | r | jhfolder <- "~/ownCloud/coronavirus/lockdown/data/COVID-19-master/csse_covid_19_data/csse_covid_19_daily_reports/"
# data from John Hopkins
lf <- list.files(jhfolder)
lf <- lf[lf!="README.md"]
dates <- substring(lf, 1, 10)
# rbind all data and slight cleaning:
all_df <- c()
for(ff in lf){
df <- read.csv(paste0(mas... |
library(BMS)
### Name: lps.bma
### Title: Log Predictive Score
### Aliases: lps.bma
### Keywords: utilities
### ** Examples
data(datafls)
mm=bms(datafls,user.int=FALSE,nmodel=100)
#LPS for actual values under the used data (static forecast)
lps.bma(mm, realized.y=datafls[,1] , newdata=datafls[,-1])
#the sa... | /data/genthat_extracted_code/BMS/examples/lps.bma.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 560 | r | library(BMS)
### Name: lps.bma
### Title: Log Predictive Score
### Aliases: lps.bma
### Keywords: utilities
### ** Examples
data(datafls)
mm=bms(datafls,user.int=FALSE,nmodel=100)
#LPS for actual values under the used data (static forecast)
lps.bma(mm, realized.y=datafls[,1] , newdata=datafls[,-1])
#the sa... |
## R.profile.d/000.utils/option_error.R
option_error("dump")
| /Rprofile.d/interactive=FALSE/on_error.R | no_license | HenrikBengtsson/dotfiles-for-R | R | false | false | 61 | r | ## R.profile.d/000.utils/option_error.R
option_error("dump")
|
# Jake Yeung
# Date of Creation: 2020-12-18
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/BM_H3K4me1-H3K9me3_reseq/9-check_k9_bins_on_other_marks.R
# Check k9 bins on other marks
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(JFuncs)
lib... | /scripts/rstudioserver_analysis/spikeins/BM_H3K4me1-H3K9me3_reseq/9-check_k9_bins_on_other_marks.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 7,928 | r | # Jake Yeung
# Date of Creation: 2020-12-18
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/BM_H3K4me1-H3K9me3_reseq/9-check_k9_bins_on_other_marks.R
# Check k9 bins on other marks
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(JFuncs)
lib... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redshift_manipulation.R
\name{dwh_upsert_table_from_temp_table}
\alias{dwh_upsert_table_from_temp_table}
\title{Upsert DWH Table from temporary table}
\usage{
dwh_upsert_table_from_temp_table(con, table_name, temp_table, keys, slots = 1)
}
\a... | /man/dwh_upsert_table_from_temp_table.Rd | permissive | isabella232/rauth0 | R | false | true | 812 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redshift_manipulation.R
\name{dwh_upsert_table_from_temp_table}
\alias{dwh_upsert_table_from_temp_table}
\title{Upsert DWH Table from temporary table}
\usage{
dwh_upsert_table_from_temp_table(con, table_name, temp_table, keys, slots = 1)
}
\a... |
# assumes files organized as in "logBoop_cleaned_CH.txt"
# e.g. ...
# [22.9845, 'f']
# [23.0245, 'p']
# [23.0395, 'p']
# ...
########
getData = function(filename, sigFigs=6)
{
dat = read.table(filename, header=F, sep='');
dat = dat[, 1:2];
colnames(dat) = c('timestamp', 'behavior');
dat[,1] = gsub('[', '', d... | /behavior_syntax.R | no_license | FernaldLab/_code | R | false | false | 9,204 | r | # assumes files organized as in "logBoop_cleaned_CH.txt"
# e.g. ...
# [22.9845, 'f']
# [23.0245, 'p']
# [23.0395, 'p']
# ...
########
getData = function(filename, sigFigs=6)
{
dat = read.table(filename, header=F, sep='');
dat = dat[, 1:2];
colnames(dat) = c('timestamp', 'behavior');
dat[,1] = gsub('[', '', d... |
##' The expression of each cell is normalized to account for depth differences.
##'
##' @title Normalize gene expression
##' @param ge_df the input gene expression
##' @param method the normalization method
##' @param nb_cores the number of processors to use.
##' @param rcpp use Rcpp function. Default is FALSE. More me... | /R/norm_ge.R | permissive | jmonlong/scCNAutils | R | false | false | 784 | r | ##' The expression of each cell is normalized to account for depth differences.
##'
##' @title Normalize gene expression
##' @param ge_df the input gene expression
##' @param method the normalization method
##' @param nb_cores the number of processors to use.
##' @param rcpp use Rcpp function. Default is FALSE. More me... |
library(PepSAVIms)
### Name: filterMS
### Title: Filter compounds from mass spectrometry data
### Aliases: filterMS
### ** Examples
# Load mass spectrometry data
data(mass_spec)
# Convert mass_spec from a data.frame to an msDat object
ms <- msDat(mass_spec = mass_spec,
mtoz = "m/z",
charge... | /data/genthat_extracted_code/PepSAVIms/examples/filterMS.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 935 | r | library(PepSAVIms)
### Name: filterMS
### Title: Filter compounds from mass spectrometry data
### Aliases: filterMS
### ** Examples
# Load mass spectrometry data
data(mass_spec)
# Convert mass_spec from a data.frame to an msDat object
ms <- msDat(mass_spec = mass_spec,
mtoz = "m/z",
charge... |
#' Synthetic speaker locations for airtables example.
#'
#' Dataset containing speaker locations and labels.
#'
#' @format A data frame with 8 rows and 6 variables:
#' \describe{
#' \item{affiliation}{institution associated with speaker}
#' \item{cities}{location of institution}
#' \item{lat}{latitude of institut... | /R/speakerLocations.R | no_license | ecohealthalliance/ehastyle | R | false | false | 578 | r | #' Synthetic speaker locations for airtables example.
#'
#' Dataset containing speaker locations and labels.
#'
#' @format A data frame with 8 rows and 6 variables:
#' \describe{
#' \item{affiliation}{institution associated with speaker}
#' \item{cities}{location of institution}
#' \item{lat}{latitude of institut... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnimalShelter.R
\name{AnimalShelter}
\alias{AnimalShelter}
\title{AnimalShelter}
\usage{
AnimalShelter(id = NULL, priceRange = NULL, paymentAccepted = NULL,
openingHours = NULL, currenciesAccepted = NULL, branchOf = NULL,
telephone = NULL... | /man/AnimalShelter.Rd | no_license | cboettig/schemar | R | false | true | 9,709 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnimalShelter.R
\name{AnimalShelter}
\alias{AnimalShelter}
\title{AnimalShelter}
\usage{
AnimalShelter(id = NULL, priceRange = NULL, paymentAccepted = NULL,
openingHours = NULL, currenciesAccepted = NULL, branchOf = NULL,
telephone = NULL... |
## -----------------------------------------------------------------------
## delete db.data.frame objects
## -----------------------------------------------------------------------
setGeneric (
"delete",
def = function (x, ...) {
rst <- standardGeneric("delete")
res <- rst$res
conn.id... | /R/method-delete_.R | no_license | walkingsparrow/PivotalR | R | false | false | 7,719 | r |
## -----------------------------------------------------------------------
## delete db.data.frame objects
## -----------------------------------------------------------------------
setGeneric (
"delete",
def = function (x, ...) {
rst <- standardGeneric("delete")
res <- rst$res
conn.id... |
## Utility function borrowed from icesTAF
unix2dos <- function(file)
{
txt <- readLines(file)
con <- file(file, open="wb")
writeLines(txt, con, sep="\r\n")
close(con)
}
| /R/unix2dos.R | no_license | cran/icesAdvice | R | false | false | 185 | r | ## Utility function borrowed from icesTAF
unix2dos <- function(file)
{
txt <- readLines(file)
con <- file(file, open="wb")
writeLines(txt, con, sep="\r\n")
close(con)
}
|
library(shiny)
library(shinydashboard)
body <- dashboardBody(
fluidRow(
box(title = "Box with a width of 12 columns", width = 12,
status = "primary", "The status of the box is primary"),
box(title = "Box with a width of 6 columns",
status = "success", "Status is success! Something must have gone ri... | /code/3.3-apps/04_layout.R | permissive | TengMCing/SISBID | R | false | false | 975 | r | library(shiny)
library(shinydashboard)
body <- dashboardBody(
fluidRow(
box(title = "Box with a width of 12 columns", width = 12,
status = "primary", "The status of the box is primary"),
box(title = "Box with a width of 6 columns",
status = "success", "Status is success! Something must have gone ri... |
##### Multiple linear regression #################################
coef(lm(y ~ x + x2 + x3 -1 )) # Good to show the intercept and regressors
###
ey <- resid(lm(y ~ x2 + x3 - 1)) # Taking out the residual of regressor x removed from the predictor
ex <- resid(lm(x ~ x2 + x3 - 1)) # Taking out the residual of regr... | /Stats4ANS_Fall2019_prev/lab1_regression/datasets_lab1/Multiple linear regression in R.R | no_license | liulihe954/ANS6905_ANS_Stats_2019 | R | false | false | 537 | r | ##### Multiple linear regression #################################
coef(lm(y ~ x + x2 + x3 -1 )) # Good to show the intercept and regressors
###
ey <- resid(lm(y ~ x2 + x3 - 1)) # Taking out the residual of regressor x removed from the predictor
ex <- resid(lm(x ~ x2 + x3 - 1)) # Taking out the residual of regr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{execute}
\alias{execute}
\title{Execute the validation study}
\usage{
execute(
databaseDetails,
restrictPlpDataSettings = PatientLevelPrediction::createRestrictPlpDataSettings(sampleSize
= NULL),
validationSettings ... | /man/execute.Rd | permissive | OHDSI/SkeletonPredictionValidationStudy | R | false | true | 1,617 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{execute}
\alias{execute}
\title{Execute the validation study}
\usage{
execute(
databaseDetails,
restrictPlpDataSettings = PatientLevelPrediction::createRestrictPlpDataSettings(sampleSize
= NULL),
validationSettings ... |
plotlyCouponDistribution <- function(plotrange, input, distType, probrange) {
}
| /plotlyFunctions/Coupon.R | no_license | SOCR/ProbDistCalc_RShiny | R | false | false | 80 | r | plotlyCouponDistribution <- function(plotrange, input, distType, probrange) {
}
|
get_annotated_regions_from_gff <- function(file_name) {
gff <- rtracklayer::import.gff(file_name)
as(gff, "GRanges")
}
get_annotated_regions_from_bed <- function(file_name){
bed <- rtracklayer::import.bed(file_name)
as(bed, "GRanges")
}
#get counts in windows across whole genome
whole_genome <- c... | /example_code_files/Chapter01/recipe_4.R | no_license | jakesauter/R_Bioinformatics_Cookbook | R | false | false | 1,140 | r |
get_annotated_regions_from_gff <- function(file_name) {
gff <- rtracklayer::import.gff(file_name)
as(gff, "GRanges")
}
get_annotated_regions_from_bed <- function(file_name){
bed <- rtracklayer::import.bed(file_name)
as(bed, "GRanges")
}
#get counts in windows across whole genome
whole_genome <- c... |
library(sentimentr)
library(plyr)
library(magrittr)
df_all = readRDS("C:/Users/oliver/Google Drive/fun/random_hamilton_twitter/dfs/all_df.rds")
df = readRDS("C:/Users/oliver/Google Drive/fun/random_hamilton_twitter/dfs/Hamilton_df.rds")
df = readRDS("C:/Users/oliver/Google Drive/fun/random_hamilton_twitter/dfs/El... | /scripts/sentiment.R | no_license | strategist922/random_hamilton_twitter | R | false | false | 1,175 | r |
library(sentimentr)
library(plyr)
library(magrittr)
df_all = readRDS("C:/Users/oliver/Google Drive/fun/random_hamilton_twitter/dfs/all_df.rds")
df = readRDS("C:/Users/oliver/Google Drive/fun/random_hamilton_twitter/dfs/Hamilton_df.rds")
df = readRDS("C:/Users/oliver/Google Drive/fun/random_hamilton_twitter/dfs/El... |
#===============================================================================
# Title : Summarising NMFI-AMR systematic literature review database
# Data version : Data received from Poojan Shrestha on 15-07-2019
# Manuscript : NMFI-Antimicrobial resistance analysis
# URL : https://www.iddo.org/non-malarial-f... | /9_Klebsiella pneumoniae_Cephalosporin_Cefotaxime.R | no_license | PrabinDahal/IDDO_NMFI_Antimicrobial-Resistance | R | false | false | 7,805 | r | #===============================================================================
# Title : Summarising NMFI-AMR systematic literature review database
# Data version : Data received from Poojan Shrestha on 15-07-2019
# Manuscript : NMFI-Antimicrobial resistance analysis
# URL : https://www.iddo.org/non-malarial-f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/im_syng_tcga.R
\name{im_syng_tcga}
\alias{im_syng_tcga}
\title{Finds combinatorial association of immunotherapy co-targets with tumor intrinsic features as listed in TCGA_immune_features_list. Columns of the outputted data.frame contain syner... | /man/im_syng_tcga.Rd | permissive | snijesh/imogene | R | false | true | 3,397 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/im_syng_tcga.R
\name{im_syng_tcga}
\alias{im_syng_tcga}
\title{Finds combinatorial association of immunotherapy co-targets with tumor intrinsic features as listed in TCGA_immune_features_list. Columns of the outputted data.frame contain syner... |
/run_analysis.r | no_license | rlondono1368/coursera-getting-and-cleaning-data-project | R | false | false | 3,651 | r | ||
library(rstan)
library(ggplot2)
library(dplyr)
library(reshape2)
library(loo)
set.seed(42)
N <- 1000
P <- 10
X <- matrix(rnorm(N*P), N, P)
nu <- 5
sigma <- 5
beta <- rnorm(10)
beta[1] <- abs(beta[1])
compiled_function1 <- stan_model(file = 'model1.stan')
expose_stan_functions(compiled_function1)
compiled_fun... | /compare_models.R | no_license | skeydan/basic_stats_course | R | false | false | 4,531 | r | library(rstan)
library(ggplot2)
library(dplyr)
library(reshape2)
library(loo)
set.seed(42)
N <- 1000
P <- 10
X <- matrix(rnorm(N*P), N, P)
nu <- 5
sigma <- 5
beta <- rnorm(10)
beta[1] <- abs(beta[1])
compiled_function1 <- stan_model(file = 'model1.stan')
expose_stan_functions(compiled_function1)
compiled_fun... |
#' Square Function
#'
#'
#'takes vector and returns a vector of squared components
#' @param x
#'
#' @return a vector of square components in the form of a vector object
#' @export
#'
#' @examples
#' x = 1:30 ; SquareValue(x)
SquareValue = function(x){
x^2
}
| /R/SquareValue.R | no_license | lmtrevisi/MATH4753ouTrev0002 | R | false | false | 287 | r | #' Square Function
#'
#'
#'takes vector and returns a vector of squared components
#' @param x
#'
#' @return a vector of square components in the form of a vector object
#' @export
#'
#' @examples
#' x = 1:30 ; SquareValue(x)
SquareValue = function(x){
x^2
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_story_list.R
\name{get_story_list}
\alias{get_story_list}
\title{Get story list}
\usage{
get_story_list(last_process_stories_id = 0L, rows = 100,
feeds_id = NULL, q = NULL, fq = NULL,
sort = "processed_stories_id", wc = FALSE, show_fe... | /man/get_story_list.Rd | no_license | zhanglipku/mediacloudr | R | false | true | 1,868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_story_list.R
\name{get_story_list}
\alias{get_story_list}
\title{Get story list}
\usage{
get_story_list(last_process_stories_id = 0L, rows = 100,
feeds_id = NULL, q = NULL, fq = NULL,
sort = "processed_stories_id", wc = FALSE, show_fe... |
#Parallel computing
library(snow)
library(doSNOW)
library(parallel)
detectCores()
cl<-makeCluster(20,type="SOCK")
registerDoSNOW(cl)
library(tidyverse)
library(rrBLUP)
Big_SNP_file <- read.table("C:/Users/jmshook/Desktop/BLINK/20110geno42080markers08262018.txt",head=T)
MG3list <- read.csv("C:/Users/jmshook/... | /Kevins_genomic_prediction_march21.R | no_license | xiahui625649/R_Genomic_Prediction_Scripts | R | false | false | 3,126 | r | #Parallel computing
library(snow)
library(doSNOW)
library(parallel)
detectCores()
cl<-makeCluster(20,type="SOCK")
registerDoSNOW(cl)
library(tidyverse)
library(rrBLUP)
Big_SNP_file <- read.table("C:/Users/jmshook/Desktop/BLINK/20110geno42080markers08262018.txt",head=T)
MG3list <- read.csv("C:/Users/jmshook/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comply.R
\name{comply}
\alias{comply}
\title{Apply a Function to All Combinations in One or between a Pair of Vectors}
\usage{
comply(x, y = NULL, FUN = jaccard)
}
\arguments{
\item{x}{a vector or a list of vectors}
\item{y}{a vector or a li... | /man/comply.Rd | permissive | jlaffy/scrabble | R | false | true | 927 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comply.R
\name{comply}
\alias{comply}
\title{Apply a Function to All Combinations in One or between a Pair of Vectors}
\usage{
comply(x, y = NULL, FUN = jaccard)
}
\arguments{
\item{x}{a vector or a list of vectors}
\item{y}{a vector or a li... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{targetPools.list}
\alias{targetPools.list}
\title{Retrieves a list of target pools available to the specified project and region.}
\usage{
targetPools.list(project, region, filter = NULL, maxResults = NULL,
pageTok... | /googlecomputev1.auto/man/targetPools.list.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,402 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{targetPools.list}
\alias{targetPools.list}
\title{Retrieves a list of target pools available to the specified project and region.}
\usage{
targetPools.list(project, region, filter = NULL, maxResults = NULL,
pageTok... |
/Creditrisk_prep_EDA.R | no_license | boongsiravit/data_science_project | R | false | false | 9,942 | r | ||
suppressPackageStartupMessages({
library(CellChat)
library(patchwork)
library(RhpcBLASctl)
library(Matrix)
})
options(stringsAsFactors = FALSE)
RhpcBLASctl::blas_set_num_threads(1) # no multithreading
# ARGS
args <- commandArgs(trailingOnly=TRUE)
data_path = paste0(args[1], "/data/")
output_path = ar... | /balf_samples/timing_src/time_cellchat_bysample.r | no_license | LewisLabUCSD/CCC-Benchmark | R | false | false | 4,923 | r |
suppressPackageStartupMessages({
library(CellChat)
library(patchwork)
library(RhpcBLASctl)
library(Matrix)
})
options(stringsAsFactors = FALSE)
RhpcBLASctl::blas_set_num_threads(1) # no multithreading
# ARGS
args <- commandArgs(trailingOnly=TRUE)
data_path = paste0(args[1], "/data/")
output_path = ar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IGAPI.R
\name{IG_fetch_markets}
\alias{IG_fetch_markets}
\title{IG API Fetch Markets Information}
\usage{
IG_fetch_markets(epic = "IX.D.FTSE.IFM.IP", headers,
url = "https://demo-api.ig.com/gateway/deal/markets", timeo = 5)
}
\arguments{
\i... | /man/IG_fetch_markets.Rd | permissive | ivanliu1989/RQuantAPI | R | false | true | 655 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IGAPI.R
\name{IG_fetch_markets}
\alias{IG_fetch_markets}
\title{IG API Fetch Markets Information}
\usage{
IG_fetch_markets(epic = "IX.D.FTSE.IFM.IP", headers,
url = "https://demo-api.ig.com/gateway/deal/markets", timeo = 5)
}
\arguments{
\i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.