content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(tidyverse)
# Column types for the different ECV files
column_types <- list(
d = cols(
.default = 'i',
DB020 = 'c', DB040 = 'c',
DB090 = 'd'),
h = cols(
.default = 'i',
HB020 = 'c', HY020 = 'd', HY022 = 'd', HY023 = 'd',
HY030N = 'd', HY040N = 'd', HY050N = 'd', HY060N = 'd',
HY0... | /data-raw/ecv_data.R | permissive | jcpernias/ec1047 | R | false | false | 3,533 | r | library(tidyverse)
# Column types for the different ECV files
column_types <- list(
d = cols(
.default = 'i',
DB020 = 'c', DB040 = 'c',
DB090 = 'd'),
h = cols(
.default = 'i',
HB020 = 'c', HY020 = 'd', HY022 = 'd', HY023 = 'd',
HY030N = 'd', HY040N = 'd', HY050N = 'd', HY060N = 'd',
HY0... |
# Packages ----------------------------------------------------------------
library(seacarb)
library(lubridate)
library(tidyverse)
library(here)
# Read Tavastaland data provided by Anna Willstrand Wranne (SMHI) ---------
df <- read_tsv(here("Data/2018_Tavastaland", "Tavastland_38055_20171203000046_20180430000049_JM... | /X_Read_Calculate_Plot_Tavastaland_2018.R | no_license | jens-daniel-mueller/INTEGRAL_winter_cruise_ARANDA_2019 | R | false | false | 2,857 | r | # Packages ----------------------------------------------------------------
library(seacarb)
library(lubridate)
library(tidyverse)
library(here)
# Read Tavastaland data provided by Anna Willstrand Wranne (SMHI) ---------
df <- read_tsv(here("Data/2018_Tavastaland", "Tavastland_38055_20171203000046_20180430000049_JM... |
attach(mtcars)
dotchart(mtcars$mpg,labels=row.names(mtcars),cex=.7,
main="Dotchart of Gas Milage for Car Models",
xlab="Miles Per Gallon")
counts <- table(mtcars$vs, mtcars$gear)
barplot(counts, main="Barplot of Car Distribution by Gears and VS",
xlab="Number of Gears", col=c("darkblue","red"),
legend = row... | /attachments/plot.R | no_license | abc-datacamp/abc-intro-2-git-in-rstudio | R | false | false | 828 | r | attach(mtcars)
dotchart(mtcars$mpg,labels=row.names(mtcars),cex=.7,
main="Dotchart of Gas Milage for Car Models",
xlab="Miles Per Gallon")
counts <- table(mtcars$vs, mtcars$gear)
barplot(counts, main="Barplot of Car Distribution by Gears and VS",
xlab="Number of Gears", col=c("darkblue","red"),
legend = row... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PrisonersDilemmaStratTourn.R
\name{Get.Par.PD}
\alias{Get.Par.PD}
\title{Defines model parameters for 'Prisoners Dilemma'}
\usage{
Get.Par.PD(game.object)
}
\arguments{
\item{game.object}{A game object as defined by Get.Game.Object.Simple.Gam... | /man/Get.Par.PD.Rd | no_license | NiklasPaluszkiewicz/RLR | R | false | true | 574 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PrisonersDilemmaStratTourn.R
\name{Get.Par.PD}
\alias{Get.Par.PD}
\title{Defines model parameters for 'Prisoners Dilemma'}
\usage{
Get.Par.PD(game.object)
}
\arguments{
\item{game.object}{A game object as defined by Get.Game.Object.Simple.Gam... |
#
# purpose: generate overview on prelevated cylinder probes
#
# author: M. Zbinden <martin.zbinden@gmail.com>
cylinders <- read.csv("data/a/soil/cylinders/Cylinders_DroughtLegacyExpA.csv",na.strings=c("NA",""))
cylindersreplacement <- read.csv("data/a/soil/cylinders/CylindersReplacement_DroughtLegacyExpA.csv")
cylin... | /src/a/soil/cylinders_summarize.R | no_license | martinzbinden/droughtlegacy_old | R | false | false | 1,852 | r | #
# purpose: generate overview on prelevated cylinder probes
#
# author: M. Zbinden <martin.zbinden@gmail.com>
cylinders <- read.csv("data/a/soil/cylinders/Cylinders_DroughtLegacyExpA.csv",na.strings=c("NA",""))
cylindersreplacement <- read.csv("data/a/soil/cylinders/CylindersReplacement_DroughtLegacyExpA.csv")
cylin... |
library(ggplot2)
library(plotly)
# Setup school scatter plot/bar plot UI elements.
school_sidebar_panel <- sidebarPanel(
radioButtons(
inputId = "school_type",
label = "Select What to Display",
choices = list("All" = "all", "Enter Specific School" = "select")
),
conditionalPanel(
condition = "inp... | /app_ui.R | permissive | ssexton1/Tinder-Usage-Among-College-Students | R | false | false | 7,862 | r | library(ggplot2)
library(plotly)
# Setup school scatter plot/bar plot UI elements.
school_sidebar_panel <- sidebarPanel(
radioButtons(
inputId = "school_type",
label = "Select What to Display",
choices = list("All" = "all", "Enter Specific School" = "select")
),
conditionalPanel(
condition = "inp... |
plot.PCA <- function (x, axes = c(1, 2), choix = c("ind","var","varcor"),
ellipse = NULL, xlim = NULL, ylim = NULL, habillage = "none",
col.hab = NULL, col.ind = "black", col.ind.sup = "blue",
col.quali = "magenta", col.quanti.sup = "blue",
... | /R/plot.PCA.R | no_license | MichaelDarmoutomo/FactoMineR | R | false | false | 56,628 | r | plot.PCA <- function (x, axes = c(1, 2), choix = c("ind","var","varcor"),
ellipse = NULL, xlim = NULL, ylim = NULL, habillage = "none",
col.hab = NULL, col.ind = "black", col.ind.sup = "blue",
col.quali = "magenta", col.quanti.sup = "blue",
... |
#library(rsconnect) => use it to deploy the app
# then do this
#rsconnect::setAccountInfo(name="<ACCOUNT>", token="<TOKEN>", secret="<SECRET>")
# you can find the account , token and secret in your shinyapps.io account
# go in the main directory that contains " app.R " then use "deployApp()"
library(shiny)
library(s... | /data-V1.R | no_license | Gammarhiba/covisualiseurF | R | false | false | 24,283 | r | #library(rsconnect) => use it to deploy the app
# then do this
#rsconnect::setAccountInfo(name="<ACCOUNT>", token="<TOKEN>", secret="<SECRET>")
# you can find the account , token and secret in your shinyapps.io account
# go in the main directory that contains " app.R " then use "deployApp()"
library(shiny)
library(s... |
\name{MetaPopGen-package}
\alias{MetaPopGen-package}
\alias{MetaPopGen}
\docType{package}
\title{
Simulation of metapopulation genetics
}
\description{
Functions and code to simulate metapopulation genetics. Includes genetic drift, mutation, selection and migration. The metapopulation has age-structure. Migrati... | /man/MetaPopGen-package.Rd | no_license | MarcoAndrello/MetaPopGen_0.0.8 | R | false | false | 1,511 | rd | \name{MetaPopGen-package}
\alias{MetaPopGen-package}
\alias{MetaPopGen}
\docType{package}
\title{
Simulation of metapopulation genetics
}
\description{
Functions and code to simulate metapopulation genetics. Includes genetic drift, mutation, selection and migration. The metapopulation has age-structure. Migrati... |
#' @rdname print
#' @examples
#' rbm <- rbm(784, 1000, input="continuous", output="gaussian")
#' print(rbm)
#' @seealso \code{\link{RestrictedBolzmannMachine}}, \code{\link{print}}
#' @export
print.RestrictedBolzmannMachine <- function(x, ...) {
# Assess status
training.state <- "Initialized"
if (x$pretrained)
tr... | /R/rbm.methods.R | no_license | reference-project/DeepLearning-6 | R | false | false | 1,388 | r | #' @rdname print
#' @examples
#' rbm <- rbm(784, 1000, input="continuous", output="gaussian")
#' print(rbm)
#' @seealso \code{\link{RestrictedBolzmannMachine}}, \code{\link{print}}
#' @export
print.RestrictedBolzmannMachine <- function(x, ...) {
# Assess status
training.state <- "Initialized"
if (x$pretrained)
tr... |
# File dwdays.R
# Part of the hydroTSM R package, https://github.com/hzambran/hydroTSM ;
# https://CRAN.R-project.org/package=hydroTSM
# Copyright 2010-2017 Mauricio Zambrano-Bigiarini
# Distributed under GPL 2 or later
##################################################################... | /R/dwdays.R | no_license | cran/hydroTSM | R | false | false | 8,081 | r | # File dwdays.R
# Part of the hydroTSM R package, https://github.com/hzambran/hydroTSM ;
# https://CRAN.R-project.org/package=hydroTSM
# Copyright 2010-2017 Mauricio Zambrano-Bigiarini
# Distributed under GPL 2 or later
##################################################################... |
library(data.tree)
library(ape)
library(phytools)
make_matrix <- function(v, df){
m <- matrix(0,length(v),length(v))
dimnames(m) <- list(v,v)
for (i in 1:ncol(m)){
for (j in 1:nrow(m)){
bool <- df[,v[i]]== df[,v[j]]
m[i,j] = sum(bool == F)
}
}
m
... | /prot/4node_improved.R | no_license | sychen9584/hm_tree | R | false | false | 985 | r | library(data.tree)
library(ape)
library(phytools)
make_matrix <- function(v, df){
m <- matrix(0,length(v),length(v))
dimnames(m) <- list(v,v)
for (i in 1:ncol(m)){
for (j in 1:nrow(m)){
bool <- df[,v[i]]== df[,v[j]]
m[i,j] = sum(bool == F)
}
}
m
... |
#### 3.GGplot_Aneuploidy_score.R
# Genomic and Functional Approaches to Understanding Cancer Aneuploidy
COAD.Aneuploidy.score <- COAD_Aneuploidy_score_dataset$COAD.Aneuploidy.score
### 1)Merge table
Plot.df <- dplyr::left_join(Cluster.df, COAD.Aneuploidy.score, by = "rownames")
colnames(Plot.df)
Plot.df$AneuploidyScore... | /Read_dataset/TCGA_PanCancerAtlas_Publications/1_Paper_collection_summary/3.GGplot_Aneuploidy_score.R | no_license | haojiang9999/HCA_script | R | false | false | 1,697 | r | #### 3.GGplot_Aneuploidy_score.R
# Genomic and Functional Approaches to Understanding Cancer Aneuploidy
COAD.Aneuploidy.score <- COAD_Aneuploidy_score_dataset$COAD.Aneuploidy.score
### 1)Merge table
Plot.df <- dplyr::left_join(Cluster.df, COAD.Aneuploidy.score, by = "rownames")
colnames(Plot.df)
Plot.df$AneuploidyScore... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{FLStock2rbya}
\alias{FLStock2rbya}
\title{Convert FLStock (or FLSAM) object long data.frame}
\usage{
FLStock2rbya(x)
}
\arguments{
\item{x}{FLStock or FLSAM object}
}
\value{
A data.frame containing the fields: year, age,
n (stock in numbers),
f (fishing mortal... | /man/FLStock2rbya.Rd | no_license | einarhjorleifsson/fishvise | R | false | false | 897 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{FLStock2rbya}
\alias{FLStock2rbya}
\title{Convert FLStock (or FLSAM) object long data.frame}
\usage{
FLStock2rbya(x)
}
\arguments{
\item{x}{FLStock or FLSAM object}
}
\value{
A data.frame containing the fields: year, age,
n (stock in numbers),
f (fishing mortal... |
# MYSQL_HOME=C:\UniServerZ\core\mysql\bin
# R_LIBS=C:\Program Files\R\R-3.1.0\library
# Now restart R if you have already opened it and install RMySQL from source:
# install.packages("RMySQL", type = "source")
require(RMySQL)
# UCSC Genome database
# http://genome.ucsc.edu/
# http://genome.ucsc.edu/goldenpath/help/my... | /MySQL-examples.R | no_license | davparker/R_Tutorial | R | false | false | 3,902 | r | # MYSQL_HOME=C:\UniServerZ\core\mysql\bin
# R_LIBS=C:\Program Files\R\R-3.1.0\library
# Now restart R if you have already opened it and install RMySQL from source:
# install.packages("RMySQL", type = "source")
require(RMySQL)
# UCSC Genome database
# http://genome.ucsc.edu/
# http://genome.ucsc.edu/goldenpath/help/my... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dplot3.R
\name{dplot3}
\alias{dplot3}
\title{Dynamic Plots (\code{plotly})}
\usage{
dplot3(x, y = NULL, mode = NULL, group = NULL, point.size = 7,
point.color = NULL, point.alpha = 0.66, point.symbol = "circle",
point.labels = NULL, fit =... | /man/dplot3.Rd | no_license | muschellij2/rtemis | R | false | true | 3,490 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dplot3.R
\name{dplot3}
\alias{dplot3}
\title{Dynamic Plots (\code{plotly})}
\usage{
dplot3(x, y = NULL, mode = NULL, group = NULL, point.size = 7,
point.color = NULL, point.alpha = 0.66, point.symbol = "circle",
point.labels = NULL, fit =... |
#' inverse Kosambi
#'
#' Calculate the mab distance using inverse Kosambi function.
#' NB, x must be in range [0, 0.5]
#'
#' @param x a numeric vector of distance values, all values in range [0, 0.5]
#'
#' @return a numeric vector of inverse Kosambi distances
#'
#' @references \url{http://www.mapmanager.org/MMM/MMMA... | /R/inverse.kosambi.R | no_license | drmjc/mjcstats | R | false | false | 463 | r | #' inverse Kosambi
#'
#' Calculate the mab distance using inverse Kosambi function.
#' NB, x must be in range [0, 0.5]
#'
#' @param x a numeric vector of distance values, all values in range [0, 0.5]
#'
#' @return a numeric vector of inverse Kosambi distances
#'
#' @references \url{http://www.mapmanager.org/MMM/MMMA... |
library(ggvis)
# Discrete colours for fill and a manual scale for opacity
ggvis(mtcars, props(x = ~wt, y = ~mpg, fill = ~factor(cyl), fillOpacity = ~hp),
mark_symbol(),
dscale("opacity", "numeric", range = c(0.2, 1))
)
# Unscaled values in the data
mtc <- mtcars
mtc$color <- c("red", "teal", "#cccccc", "tan")
ggv... | /demo/scales.r | no_license | imclab/ggvis | R | false | false | 482 | r | library(ggvis)
# Discrete colours for fill and a manual scale for opacity
ggvis(mtcars, props(x = ~wt, y = ~mpg, fill = ~factor(cyl), fillOpacity = ~hp),
mark_symbol(),
dscale("opacity", "numeric", range = c(0.2, 1))
)
# Unscaled values in the data
mtc <- mtcars
mtc$color <- c("red", "teal", "#cccccc", "tan")
ggv... |
#' Load the data of corrected files from predefined folders of this plot
#' @param plot_name String with the name of the plot to retrieve the data for
#' @param sheet_names String vector to determine which kind of SubPlot should be loaded from each file
#' @param years Numeric vector of years to load from the plot corr... | /R/loadCorrectedData.R | no_license | Sumpfohreule/S4Level2 | R | false | false | 2,054 | r | #' Load the data of corrected files from predefined folders of this plot
#' @param plot_name String with the name of the plot to retrieve the data for
#' @param sheet_names String vector to determine which kind of SubPlot should be loaded from each file
#' @param years Numeric vector of years to load from the plot corr... |
\name{SPECT.drive}
\alias{SPECT.drive}
\title{Interactive Spectrogram Driver}
\description{
Interactive Spectrogram Driver
}
\usage{
SPECT.drive(Xamp, DT = 0.008, NEW = TRUE, STAMP = NULL ,
freqlim=c(0, 20, 0, 20), winparams=c(4096,256, 204 ))
}
\arguments{
\item{Xamp}{signal trace}
\item{DT}{deltaT sample int... | /man/SPECT.drive.Rd | no_license | cran/RSEIS | R | false | false | 2,115 | rd | \name{SPECT.drive}
\alias{SPECT.drive}
\title{Interactive Spectrogram Driver}
\description{
Interactive Spectrogram Driver
}
\usage{
SPECT.drive(Xamp, DT = 0.008, NEW = TRUE, STAMP = NULL ,
freqlim=c(0, 20, 0, 20), winparams=c(4096,256, 204 ))
}
\arguments{
\item{Xamp}{signal trace}
\item{DT}{deltaT sample int... |
library(abbyyR)
### Name: listTasks
### Title: List Tasks
### Aliases: listTasks
### ** Examples
## Not run:
##D listTasks()
##D listTasks(fromDate = "2015-11-10T00:00:00Z", toDate = "2016-11-10T00:00:00Z")
##D listTasks(fromDate = "2015-11-10T00:00:00Z")
## End(Not run)
| /data/genthat_extracted_code/abbyyR/examples/listTasks.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 280 | r | library(abbyyR)
### Name: listTasks
### Title: List Tasks
### Aliases: listTasks
### ** Examples
## Not run:
##D listTasks()
##D listTasks(fromDate = "2015-11-10T00:00:00Z", toDate = "2016-11-10T00:00:00Z")
##D listTasks(fromDate = "2015-11-10T00:00:00Z")
## End(Not run)
|
library(jsonlite)
library(tidyverse)
# Закачуємо та об'єднуємо дані голосувань та словники змінних
# з Порталу відкритих даних
all_votings <- read_csv("http://data.rada.gov.ua/ogd/zal/ppz/skl8/plenary_result_by_name-skl8.csv")
factions_dict <- fromJSON(readLines("http://data.rada.gov.ua/ogd/zal/ppz/skl8/dict... | /get_all_votings_open.R | no_license | chesnolabs/voting_results | R | false | false | 3,896 | r | library(jsonlite)
library(tidyverse)
# Закачуємо та об'єднуємо дані голосувань та словники змінних
# з Порталу відкритих даних
all_votings <- read_csv("http://data.rada.gov.ua/ogd/zal/ppz/skl8/plenary_result_by_name-skl8.csv")
factions_dict <- fromJSON(readLines("http://data.rada.gov.ua/ogd/zal/ppz/skl8/dict... |
#' Assign color function to a numeric vector
#'
#' Assign color function to a numeric vector
#'
#' This function is called internally by `design2colors()`. It takes
#' a `numeric` vector as input, and applies a color gradient
#' defined by `color` across the range of `numeric` values.
#'
#' When there are negative val... | /R/jam-numeric-to-colorfn.R | no_license | jmw86069/platjam | R | false | false | 11,932 | r |
#' Assign color function to a numeric vector
#'
#' Assign color function to a numeric vector
#'
#' This function is called internally by `design2colors()`. It takes
#' a `numeric` vector as input, and applies a color gradient
#' defined by `color` across the range of `numeric` values.
#'
#' When there are negative val... |
.infoPrint <- function(details, limit=1, ..., prefix='.'){
if(details>=limit){
cat(paste(rep(prefix, limit), collapse=''), "")
cat(...)
}
}
.infoPrint2 <- function(details, limit=1, fmt, ..., prefix='.'){
if (details>=limit)
cat(paste(paste(rep(prefix, limit), collapse=''), sprintf(fmt... | /gRim/R/infoPrint.R | no_license | ingted/R-Examples | R | false | false | 418 | r | .infoPrint <- function(details, limit=1, ..., prefix='.'){
if(details>=limit){
cat(paste(rep(prefix, limit), collapse=''), "")
cat(...)
}
}
.infoPrint2 <- function(details, limit=1, fmt, ..., prefix='.'){
if (details>=limit)
cat(paste(paste(rep(prefix, limit), collapse=''), sprintf(fmt... |
###########################
# Recherche Uebung 10
###########################
?lm
head(mtcars)
y <- mtcars$wt
x <- mtcars$hp
plot(x, y)
# model wt as function der hp
wt.hp.model <- lm (wt~hp, data=mtcars)
wt.hp.model$coefficients
plot(wt.hp.model)
coeffs <- coefficients(wt.hp.model)
coeffs
est.wt <- coeffs[1]+... | /uebungserie-10/uebung10-recherche.R | no_license | spip333/statistik-uebungen | R | false | false | 1,295 | r | ###########################
# Recherche Uebung 10
###########################
?lm
head(mtcars)
y <- mtcars$wt
x <- mtcars$hp
plot(x, y)
# model wt as function der hp
wt.hp.model <- lm (wt~hp, data=mtcars)
wt.hp.model$coefficients
plot(wt.hp.model)
coeffs <- coefficients(wt.hp.model)
coeffs
est.wt <- coeffs[1]+... |
setwd("C:/Users/TheCO/Downloads/Python/pythonProject")
#data = read.csv(file = "./Hoodies_data.csv", header = T, sep = ",")
#repeated_indices = c()
#for (row in 2:dim(data)[1]){
# if(data$title[row] == data$title[row-1]){
# next
# } else{repeated_indices = c(repeated_indices, row)}
#}
#data_f = dat... | /Data Analysis.R | no_license | Felipecorteslegacy/MLWS | R | false | false | 1,299 | r | setwd("C:/Users/TheCO/Downloads/Python/pythonProject")
#data = read.csv(file = "./Hoodies_data.csv", header = T, sep = ",")
#repeated_indices = c()
#for (row in 2:dim(data)[1]){
# if(data$title[row] == data$title[row-1]){
# next
# } else{repeated_indices = c(repeated_indices, row)}
#}
#data_f = dat... |
library(shiny)
library(shinyDirectoryInput)
shinyServer(function(input, output, session) {
observeEvent(
ignoreNULL = TRUE,
eventExpr = {
input$directory
},
handlerExpr = {
if (input$directory > 0) {
# condition prevents handler execution on initial app launch
... | /inst/shiny-scripts/server.R | permissive | ayalaemmylou/KaKsMap | R | false | false | 940 | r | library(shiny)
library(shinyDirectoryInput)
shinyServer(function(input, output, session) {
observeEvent(
ignoreNULL = TRUE,
eventExpr = {
input$directory
},
handlerExpr = {
if (input$directory > 0) {
# condition prevents handler execution on initial app launch
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_surv_prob.R
\name{get_surv_prob}
\alias{get_surv_prob}
\title{Get Survival Probability at Specified Times}
\usage{
get_surv_prob(fit, times)
}
\arguments{
\item{fit}{survival::survfit object.}
\item{times}{Vector of times to lookup survi... | /man/get_surv_prob.Rd | no_license | yishingene/survutils | R | false | true | 1,289 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_surv_prob.R
\name{get_surv_prob}
\alias{get_surv_prob}
\title{Get Survival Probability at Specified Times}
\usage{
get_surv_prob(fit, times)
}
\arguments{
\item{fit}{survival::survfit object.}
\item{times}{Vector of times to lookup survi... |
h2o.gbm <- function(x, y, data, key="",
#AUTOGENERATED params
loss,
ntrees,
max_depth,
min_rows,
learn_rate,
nbins,
group_split,
variable_im... | /h2o-r/h2o-package/R/gbm.R | permissive | ahmed26/h2o-dev | R | false | false | 3,215 | r | h2o.gbm <- function(x, y, data, key="",
#AUTOGENERATED params
loss,
ntrees,
max_depth,
min_rows,
learn_rate,
nbins,
group_split,
variable_im... |
Performance.G.Poisson <-
function(SampleSize,cv,Looks,M=1,RR=2){
LLR <- function(cc,uu) {
if(cc<=uu) x=0
if(cc>uu) x = (uu-cc) + cc*log(cc/uu)
x
}
CV<- cv
T<- SampleSize
L<- T
MinCases<- M
Group<- T/Looks
if(is.numeric(MinCases)==FALSE|MinCases!=round(MinCases)|MinCases<1){stop("M must be a positive... | /Sequential/R/Performance.G.Poisson.R | no_license | ingted/R-Examples | R | false | false | 3,012 | r | Performance.G.Poisson <-
function(SampleSize,cv,Looks,M=1,RR=2){
LLR <- function(cc,uu) {
if(cc<=uu) x=0
if(cc>uu) x = (uu-cc) + cc*log(cc/uu)
x
}
CV<- cv
T<- SampleSize
L<- T
MinCases<- M
Group<- T/Looks
if(is.numeric(MinCases)==FALSE|MinCases!=round(MinCases)|MinCases<1){stop("M must be a positive... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method-as-treedata.R
\name{as.treedata.phylo}
\alias{as.treedata.phylo}
\title{as.treedata}
\usage{
\method{as.treedata}{phylo}(tree, boot = NULL, ...)
}
\arguments{
\item{tree}{input tree, a \code{phylo} object}
\item{boot}{optional, can be... | /man/as.treedata.Rd | no_license | YuLab-SMU/treeio | R | false | true | 519 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method-as-treedata.R
\name{as.treedata.phylo}
\alias{as.treedata.phylo}
\title{as.treedata}
\usage{
\method{as.treedata}{phylo}(tree, boot = NULL, ...)
}
\arguments{
\item{tree}{input tree, a \code{phylo} object}
\item{boot}{optional, can be... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_matomo_config.R
\name{set_matomo_config}
\alias{set_matomo_config}
\title{Set Matomo configuration}
\usage{
set_matomo_config(
url = Sys.getenv("MATOMO_URL"),
api_key = Sys.getenv("MATOMO_APIKEY"),
site_id = Sys.getenv("MATOMO_SITEI... | /man/set_matomo_config.Rd | permissive | KWB-R/kwb.matomo | R | false | true | 938 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_matomo_config.R
\name{set_matomo_config}
\alias{set_matomo_config}
\title{Set Matomo configuration}
\usage{
set_matomo_config(
url = Sys.getenv("MATOMO_URL"),
api_key = Sys.getenv("MATOMO_APIKEY"),
site_id = Sys.getenv("MATOMO_SITEI... |
# Download GADM
# Filepaths --------------------------------------------------------------------
getData('GADM', country='CAN', level=0, path = file.path(data_file_path, "GADM", "FinalData", "blank_files"))
getData('GADM', country='CAN', level=1, path = file.path(data_file_path, "GADM", "FinalData", "blank_files"))
ge... | /01_clean_individual_datasets/01_gadm/01_download_gadm.R | no_license | ramarty/Industry-Nighttime-Lights | R | false | false | 869 | r | # Download GADM
# Filepaths --------------------------------------------------------------------
getData('GADM', country='CAN', level=0, path = file.path(data_file_path, "GADM", "FinalData", "blank_files"))
getData('GADM', country='CAN', level=1, path = file.path(data_file_path, "GADM", "FinalData", "blank_files"))
ge... |
#! /juno/opt/common/bic/R/R-4.0.2
suppressPackageStartupMessages(library(parallel))
suppressPackageStartupMessages(library(rlang))
suppressPackageStartupMessages(library(lattice))
suppressPackageStartupMessages(library(locfit))
suppressPackageStartupMessages(library(DESeq))
suppressPackageStartupMessages(library(dend... | /bicrnaseqR/source_bicrnaseq.R | no_license | soccin/BIC-RNAseq | R | false | false | 1,992 | r | #! /juno/opt/common/bic/R/R-4.0.2
suppressPackageStartupMessages(library(parallel))
suppressPackageStartupMessages(library(rlang))
suppressPackageStartupMessages(library(lattice))
suppressPackageStartupMessages(library(locfit))
suppressPackageStartupMessages(library(DESeq))
suppressPackageStartupMessages(library(dend... |
#Lazy-evaluation exercises
j <- function (){
if(!exists("a")) {
a <- 1
} else {
a <- a + 1
}
a
}
j()
c <- 10
c(c=c)
f <- function(x){
f <- function(x){
f <- function(x){
x ^ 2
}
f(x) + 1
}
f(x) * 2
}
f(10)
| /examples/lazy_eval_example.R | no_license | Shea-Fyffe/GitItSheaGitIt | R | false | false | 253 | r | #Lazy-evaluation exercises
j <- function (){
if(!exists("a")) {
a <- 1
} else {
a <- a + 1
}
a
}
j()
c <- 10
c(c=c)
f <- function(x){
f <- function(x){
f <- function(x){
x ^ 2
}
f(x) + 1
}
f(x) * 2
}
f(10)
|
adult_data
library(shiny)
fluidPage(
titlePanel("Didtribution of Age base on Marital Status"),
sidebarLayout(
sidebarPanel(
selectInput("inms", "Select Marital Status", choices = adult_data2$Maritalstatus)
),
mainPanel(
tableOutput("censusdata")
)
)
)
| /ui.R | no_license | uzotex/Data_analysis | R | false | false | 300 | r |
adult_data
library(shiny)
fluidPage(
titlePanel("Didtribution of Age base on Marital Status"),
sidebarLayout(
sidebarPanel(
selectInput("inms", "Select Marital Status", choices = adult_data2$Maritalstatus)
),
mainPanel(
tableOutput("censusdata")
)
)
)
|
# install packages
install.packages("remotes", dependencies = T)
remotes::install_github("tidyverse/dplyr")
# load the packages
library(dplyr)
# laod the data
employees_data <- read.csv(file="https://github.com/iAnalyticsGeek/Datasets/raw/master/employee_data.csv",
na.strings = c("... | /recipe_1.R | no_license | MMMHASSAN/DataManipulation | R | false | false | 701 | r | # install packages
install.packages("remotes", dependencies = T)
remotes::install_github("tidyverse/dplyr")
# load the packages
library(dplyr)
# laod the data
employees_data <- read.csv(file="https://github.com/iAnalyticsGeek/Datasets/raw/master/employee_data.csv",
na.strings = c("... |
library(FDRreg)
### Name: FDRreg-package
### Title: False discovery rate regression
### Aliases: FDRreg-package
### Keywords: False discovery rates
### ** Examples
library(FDRreg)
# Simulated data
P = 2
N = 10000
betatrue = c(-3.5,rep(1/sqrt(P), P))
X = matrix(rnorm(N*P), N,P)
psi = crossprod(t(cbind(1,X)), betatr... | /data/genthat_extracted_code/FDRreg/examples/FDRreg-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,525 | r | library(FDRreg)
### Name: FDRreg-package
### Title: False discovery rate regression
### Aliases: FDRreg-package
### Keywords: False discovery rates
### ** Examples
library(FDRreg)
# Simulated data
P = 2
N = 10000
betatrue = c(-3.5,rep(1/sqrt(P), P))
X = matrix(rnorm(N*P), N,P)
psi = crossprod(t(cbind(1,X)), betatr... |
# Geocoding Potential Bus Stop Intersections ####
#Loading Dataset
BusStops <- read.csv("Potentail_Bust_Stops.csv")
infileBus <-"Potentail_Bust_Stops.csv"
str(BusStops)
str(infileBus)
# Feature Engineering
BusStops$Intersection <- paste0(BusStops$Street_One,"/",BusStops$Street_Two,", San Francisco, CA, USA")
libra... | /Bus Stop Optimization/BusStops.R | no_license | Bekterra/My_ML_Projects | R | false | false | 3,821 | r |
# Geocoding Potential Bus Stop Intersections ####
#Loading Dataset
BusStops <- read.csv("Potentail_Bust_Stops.csv")
infileBus <-"Potentail_Bust_Stops.csv"
str(BusStops)
str(infileBus)
# Feature Engineering
BusStops$Intersection <- paste0(BusStops$Street_One,"/",BusStops$Street_Two,", San Francisco, CA, USA")
libra... |
#installing required package.
install.packages("dplyr")
library(dplyr)
#Reading the dataset
a<-read.csv("Sphere.csv")
#Printing summary to know mikssing data
summary(a)
#Selecting the desired data set to work on
a <-a %>%
select(Arm,Gender, Smoking.Status, Previous.MI, Cholesterol, HDL, SysBP, D... | /Rma.R | no_license | reenurathi/Statistical-Analysis-Plan---Coronary-Heart-Disease-Score-of-Two-Groups | R | false | false | 940 | r | #installing required package.
install.packages("dplyr")
library(dplyr)
#Reading the dataset
a<-read.csv("Sphere.csv")
#Printing summary to know mikssing data
summary(a)
#Selecting the desired data set to work on
a <-a %>%
select(Arm,Gender, Smoking.Status, Previous.MI, Cholesterol, HDL, SysBP, D... |
/dissimilarity figure.R | no_license | piyuze/17-testis-single-cell-R-github-data | R | false | false | 3,111 | r | ||
library(Rcpp)
library(RcppArmadillo)
sourceCpp(file = 'D:/gpapageorgiou/Github_Repos/JMbayes2/Dev_Local/Cpp_funs/cubeacces.cpp')
res <- matrix(1:40, nrow = 10, ncol = 4)
chk <- foo(res)
chk[, ,1]
| /Development/Dev_Local_GP/Cpp_funs/cubeacces_check.R | no_license | drizopoulos/JMbayes2 | R | false | false | 199 | r | library(Rcpp)
library(RcppArmadillo)
sourceCpp(file = 'D:/gpapageorgiou/Github_Repos/JMbayes2/Dev_Local/Cpp_funs/cubeacces.cpp')
res <- matrix(1:40, nrow = 10, ncol = 4)
chk <- foo(res)
chk[, ,1]
|
# from https://www1.ncdc.noaa.gov/pub/data/cdo/documentation/NORMAL_DLY_documentation.pdf
ncdc_units_normal_dly <- list(
"dly-cldd-base45" = list(name = "dly-cldd-base45", units = "fahrenheit", description = "Long-term averages of daily cooling degree days with base 45F"),
"dly-cldd-base50" = list(name = "dly-cldd-b... | /R/units-normal_dly.R | permissive | ropensci/rnoaa | R | false | false | 10,239 | r | # from https://www1.ncdc.noaa.gov/pub/data/cdo/documentation/NORMAL_DLY_documentation.pdf
ncdc_units_normal_dly <- list(
"dly-cldd-base45" = list(name = "dly-cldd-base45", units = "fahrenheit", description = "Long-term averages of daily cooling degree days with base 45F"),
"dly-cldd-base50" = list(name = "dly-cldd-b... |
#######################################
library(tidyverse)
library(stats)
library(sqldf)
install.packages("data.table")
library(data.table)
SCC <-readRDS("Source_Classification_Code.rds")
names(SCC)
SCC_df<-SCC%>%
select(SCC,Data.Category, EI.Sector, SCC.Level.One, SCC.Level.Two, SCC.Level.Three)
#dplyr::filter(S... | /emissions_plot_6.R | no_license | akiannejad123/submissions_for_Exploratory_data | R | false | false | 1,734 | r | #######################################
library(tidyverse)
library(stats)
library(sqldf)
install.packages("data.table")
library(data.table)
SCC <-readRDS("Source_Classification_Code.rds")
names(SCC)
SCC_df<-SCC%>%
select(SCC,Data.Category, EI.Sector, SCC.Level.One, SCC.Level.Two, SCC.Level.Three)
#dplyr::filter(S... |
#' demoShiny
#'
#' Runs a Shiny app as demo or shows an overview of all Shiny demo apps related to a \code{topic}.
#' If more than one app relates to \code{topic} a list of apps is returned otherwise the app is run.
#' For more details see \code{vignettes('demoShiny')}.
#'
#' @param topic character: the topic which sh... | /R/demoShiny.R | no_license | cran/demoShiny | R | false | false | 2,556 | r | #' demoShiny
#'
#' Runs a Shiny app as demo or shows an overview of all Shiny demo apps related to a \code{topic}.
#' If more than one app relates to \code{topic} a list of apps is returned otherwise the app is run.
#' For more details see \code{vignettes('demoShiny')}.
#'
#' @param topic character: the topic which sh... |
# SET-UP -------------------------------------------------------------------------------------------
# Clear workspace
rm(list = ls())
# Load core packages
pacman::p_load(dplyr, tidyr, stringr, magrittr, here, readr, purrr)
# Load puzzle input
data <- scan(here::here("data/day5_data.txt"), sep = ",")
# BOTH PARTS... | /code/day5.R | no_license | adamMaier/advent2019 | R | false | false | 4,188 | r | # SET-UP -------------------------------------------------------------------------------------------
# Clear workspace
rm(list = ls())
# Load core packages
pacman::p_load(dplyr, tidyr, stringr, magrittr, here, readr, purrr)
# Load puzzle input
data <- scan(here::here("data/day5_data.txt"), sep = ",")
# BOTH PARTS... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_calls.R
\name{place_order}
\alias{place_order}
\title{Function to place a trade.}
\usage{
place_order(
object,
variety,
tradingsymbol,
symboltoken,
transactiontype,
exchange,
triggerprice,
ordertype,
producttype,
durat... | /man/place_order.Rd | no_license | lokeshkumar-cmd/smartapi-r | R | false | true | 1,837 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_calls.R
\name{place_order}
\alias{place_order}
\title{Function to place a trade.}
\usage{
place_order(
object,
variety,
tradingsymbol,
symboltoken,
transactiontype,
exchange,
triggerprice,
ordertype,
producttype,
durat... |
#' `list_of` S3 class for homogenous lists
#'
#' A `list_of` object is a list where each element has the same type.
#' Modifying the list with `$`, `[`, and `[[` preserves the constraint
#' by coercing all input items.
#'
#' Unlike regular lists, setting a list element to `NULL` using `[[`
#' does not remove it.
#'
#' ... | /R/type-list-of.R | no_license | trinker/vctrs | R | false | false | 6,073 | r | #' `list_of` S3 class for homogenous lists
#'
#' A `list_of` object is a list where each element has the same type.
#' Modifying the list with `$`, `[`, and `[[` preserves the constraint
#' by coercing all input items.
#'
#' Unlike regular lists, setting a list element to `NULL` using `[[`
#' does not remove it.
#'
#' ... |
library(ape)
testtree <- read.tree("6384_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="6384_0_unrooted.txt") | /codeml_files/newick_trees_processed/6384_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("6384_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="6384_0_unrooted.txt") |
\name{asypow.power}
\alias{asypow.power}
\concept{Power calculations}
\title{
Asymptotic Power
}
\description{
Calculates the power of a test via likelihood ratio methods.
}
\usage{
asypow.power(asypow.obj, sample.size, significance)
}
\arguments{
\item{asypow.obj}{
The object returned from asypow.noncent... | /man/asypow.power.Rd | permissive | cran/asypow | R | false | false | 1,487 | rd | \name{asypow.power}
\alias{asypow.power}
\concept{Power calculations}
\title{
Asymptotic Power
}
\description{
Calculates the power of a test via likelihood ratio methods.
}
\usage{
asypow.power(asypow.obj, sample.size, significance)
}
\arguments{
\item{asypow.obj}{
The object returned from asypow.noncent... |
library(dwapi)
### Name: upload_file
### Title: Upload a single file to a dataset.
### Aliases: upload_file
### ** Examples
## Not run:
##D dwapi::upload_file(file_name = 'file.csv',
##D path = 'file.csv', dataset = 'user/dataset')
## End(Not run)
| /data/genthat_extracted_code/dwapi/examples/upload_file.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 262 | r | library(dwapi)
### Name: upload_file
### Title: Upload a single file to a dataset.
### Aliases: upload_file
### ** Examples
## Not run:
##D dwapi::upload_file(file_name = 'file.csv',
##D path = 'file.csv', dataset = 'user/dataset')
## End(Not run)
|
testlist <- list(A = structure(c(2.32784507357645e-308, 9.54004582574237e+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_ro... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613105712-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 344 | r | testlist <- list(A = structure(c(2.32784507357645e-308, 9.54004582574237e+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_ro... |
#' @name skeleSim.checks
#' @title Check all simulation parameters
#' @description Check all simulation parameters
#'
#' @param params a \linkS4class{skeleSim.params} object.
#'
#' @export
#'
overall.check <- function(params) {
params@other.checks <- non.scenario.check(params)
#here we call the scenario checks (sim... | /R/skeleSim.checks.R | no_license | christianparobek/skeleSim | R | false | false | 4,401 | r | #' @name skeleSim.checks
#' @title Check all simulation parameters
#' @description Check all simulation parameters
#'
#' @param params a \linkS4class{skeleSim.params} object.
#'
#' @export
#'
overall.check <- function(params) {
params@other.checks <- non.scenario.check(params)
#here we call the scenario checks (sim... |
\name{CuZnAlt}
\alias{CuZnAlt}
\docType{data}
\title{Zinc concentrations of the CuZn data set}
\usage{data(CuZnAlt)}
\source{
Altered from the data of Millard and Deverel, 1988, Water Resources
Research 24, pp. 2087-2098.}
\description{
Zinc concentrations of the CuZn data set; concentrations in the
Alluvial Fan zone ... | /man/CuZnAlt.Rd | no_license | cran/NADA | R | false | false | 770 | rd | \name{CuZnAlt}
\alias{CuZnAlt}
\docType{data}
\title{Zinc concentrations of the CuZn data set}
\usage{data(CuZnAlt)}
\source{
Altered from the data of Millard and Deverel, 1988, Water Resources
Research 24, pp. 2087-2098.}
\description{
Zinc concentrations of the CuZn data set; concentrations in the
Alluvial Fan zone ... |
#title: "Exercise7: Advanced Raster Analysis for the geoScripting course"
#author: 'AD-Scripting: Astrid Bos & David Scholte-Albers'
#date: "Friday, January 16, 2015"
#This script creates a linear model using the Landsat band reflectance values as predictors for tree cover.
#The resulting model is compared with the v... | /main.R | no_license | Davilex/Exercise7 | R | false | false | 4,220 | r | #title: "Exercise7: Advanced Raster Analysis for the geoScripting course"
#author: 'AD-Scripting: Astrid Bos & David Scholte-Albers'
#date: "Friday, January 16, 2015"
#This script creates a linear model using the Landsat band reflectance values as predictors for tree cover.
#The resulting model is compared with the v... |
# Tests with Infer
# Eduardo Q Marques 27-07-2021
library(tidyverse)
library(reshape2)
library(ggplot2)
library(ggridges)
library(scales)
library(infer)
#Data ======================================
setwd("C:/Users/Eduardo Q Marques/Documents/Research/Doutorado/Banco de Dados Tanguro/Dados para analise cap1")
df = r... | /Doutorado/Chapter-1/Analysis/LMs, GLMs, etc/Infer/Testes com Infer.R | no_license | Eduardoqm/Science-Repository | R | false | false | 6,767 | r | # Tests with Infer
# Eduardo Q Marques 27-07-2021
library(tidyverse)
library(reshape2)
library(ggplot2)
library(ggridges)
library(scales)
library(infer)
#Data ======================================
setwd("C:/Users/Eduardo Q Marques/Documents/Research/Doutorado/Banco de Dados Tanguro/Dados para analise cap1")
df = r... |
## Use one of the example files in the mzID package
exampleFile <- system.file("extdata", "55merge_tandem.mzid", package = "mzID")
mzIDexample <- mzID::mzID(exampleFile)
test_that("createPPlotScores() works", {
out <- createPPlotScores(mzIDexample,
scores = c("x\\!tandem:hyperscore", "x\\!tandem:expect"),
... | /tests/testthat/test-Scores.R | no_license | ElkeDebrie/TargetDecoy | R | false | false | 762 | r | ## Use one of the example files in the mzID package
exampleFile <- system.file("extdata", "55merge_tandem.mzid", package = "mzID")
mzIDexample <- mzID::mzID(exampleFile)
test_that("createPPlotScores() works", {
out <- createPPlotScores(mzIDexample,
scores = c("x\\!tandem:hyperscore", "x\\!tandem:expect"),
... |
##creating the makeCacheMatrix
##the function is mearnt to :
#set the value of the inverse
#get the value of the inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i... | /cachematrix.R | no_license | antonymaina12/ProgrammingAssignment2 | R | false | false | 861 | r | ##creating the makeCacheMatrix
##the function is mearnt to :
#set the value of the inverse
#get the value of the inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i... |
diamond<-read.csv("~/Desktop/two_months_salary.csv", header=TRUE,stringsAsFactor=T)
require('caret')
require('nloptr')
require(ggplot2)
#SPLIT INTO TRAIN & TEST SETS
smp_size <- floor(0.70 * nrow(diamond))
set.seed(2013)
train_ind <- sample(seq_len(nrow(diamond)), size = smp_size)
train <- diamond[train_ind, ]
test <... | /travis - assign2.R | no_license | DarrelDent/P412-Assignment-2 | R | false | false | 15,587 | r | diamond<-read.csv("~/Desktop/two_months_salary.csv", header=TRUE,stringsAsFactor=T)
require('caret')
require('nloptr')
require(ggplot2)
#SPLIT INTO TRAIN & TEST SETS
smp_size <- floor(0.70 * nrow(diamond))
set.seed(2013)
train_ind <- sample(seq_len(nrow(diamond)), size = smp_size)
train <- diamond[train_ind, ]
test <... |
library(rstan)
d <- read.csv('input/data-ZIP.txt')
d$Age <- d$Age/10
X <- cbind(1, d[,-ncol(d)])
data <- list(N=nrow(d), D=ncol(X), Y=d$Y, X=X)
fit <- stan(file='model/model11-7.stan', data=data,
pars=c('b', 'q', 'lambda'), seed=1234)
ms <- rstan::extract(fit)
N_mcmc <- length(ms$lp__)
r <- sapply(1:N_mcmc,
funct... | /chap11/run-model11-7.R | no_license | winterwang/RStanBook | R | false | false | 510 | r | library(rstan)
d <- read.csv('input/data-ZIP.txt')
d$Age <- d$Age/10
X <- cbind(1, d[,-ncol(d)])
data <- list(N=nrow(d), D=ncol(X), Y=d$Y, X=X)
fit <- stan(file='model/model11-7.stan', data=data,
pars=c('b', 'q', 'lambda'), seed=1234)
ms <- rstan::extract(fit)
N_mcmc <- length(ms$lp__)
r <- sapply(1:N_mcmc,
funct... |
#!/usr/bin/env Rscript
# detect script being run by snakemake
# if so, make a mock commandArgs function
if ('snakemake' %in% ls()) {
logfile <- snakemake@log[[1]]
con <- file(logfile, 'w')
sink(con, type='output')
sink(con, type='message')
commandArgs <- function(...) unlist(c(
snakemake@o... | /snakemake/scripts/fig6_panel_d.R | no_license | parklab/luquette-glia-analysis | R | false | false | 4,804 | r | #!/usr/bin/env Rscript
# detect script being run by snakemake
# if so, make a mock commandArgs function
if ('snakemake' %in% ls()) {
logfile <- snakemake@log[[1]]
con <- file(logfile, 'w')
sink(con, type='output')
sink(con, type='message')
commandArgs <- function(...) unlist(c(
snakemake@o... |
## this can be run locally or on NYU's HPC. Set option in next step
## option allowed because of how long GenMatch can take
on_nyu <- F
if(on_nyu){
library(Matching)
library(data.table)
library(snow)
library(parallel)
library(scales)
library(kableExtra)
library(tidyverse)
setwd("/scratch/km3815/matc... | /code/02_treated_households/07_matching.R | no_license | ktmorris/florida_am4 | R | false | false | 1,144 | r | ## this can be run locally or on NYU's HPC. Set option in next step
## option allowed because of how long GenMatch can take
on_nyu <- F
if(on_nyu){
library(Matching)
library(data.table)
library(snow)
library(parallel)
library(scales)
library(kableExtra)
library(tidyverse)
setwd("/scratch/km3815/matc... |
library(icamix)
### Name: summary.EMFASTICAALG
### Title: summary.EMFASTICAALG
### Aliases: summary.EMFASTICAALG
### ** Examples
## An Example that runs the NSMM-ICA algorithm on Cohen's tone data
data(tonedata, package="mixtools")
b <- EMFASTICAALG(tonedata, 2, h=0, tol=1e-8)
summary(b)
| /data/genthat_extracted_code/icamix/examples/summary.EMFASTICAALG.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 297 | r | library(icamix)
### Name: summary.EMFASTICAALG
### Title: summary.EMFASTICAALG
### Aliases: summary.EMFASTICAALG
### ** Examples
## An Example that runs the NSMM-ICA algorithm on Cohen's tone data
data(tonedata, package="mixtools")
b <- EMFASTICAALG(tonedata, 2, h=0, tol=1e-8)
summary(b)
|
library(dgo)
library(dplyr)
library(data.table)
library(ggplot2)
library(glue)
DATA_PATH <- "C:\\Users\\thail\\Documents\\FS20\\r-related_data\\The ideological nationalization of partisan subconstituencies in the American States.zip"
econ_fit = readRDS(file.path(DATA_PATH, "dgirt-econ.Rds"))
social_fit = readRDS(f... | /Output/Figure1-Divergence-Public-Scaled.R | no_license | UniLuFS2020-ReplicationSeminar/Selina_Lisa_Replication-Paper | R | false | false | 2,243 | r |
library(dgo)
library(dplyr)
library(data.table)
library(ggplot2)
library(glue)
DATA_PATH <- "C:\\Users\\thail\\Documents\\FS20\\r-related_data\\The ideological nationalization of partisan subconstituencies in the American States.zip"
econ_fit = readRDS(file.path(DATA_PATH, "dgirt-econ.Rds"))
social_fit = readRDS(f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenomicOverlaps.R
\name{pairwise_overlap}
\alias{pairwise_overlap}
\title{Calculate the pairwise overlaps of all factors within a
\linkS4class{GenomicOverlaps} object.}
\usage{
pairwise_overlap(x)
}
\arguments{
\item{x}{A \linkS4class{Genomi... | /man/pairwise_overlap.Rd | no_license | ArnaudDroitLab/GenomicOperations | R | false | true | 620 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GenomicOverlaps.R
\name{pairwise_overlap}
\alias{pairwise_overlap}
\title{Calculate the pairwise overlaps of all factors within a
\linkS4class{GenomicOverlaps} object.}
\usage{
pairwise_overlap(x)
}
\arguments{
\item{x}{A \linkS4class{Genomi... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(3.00225452731163e-241, 1.97274569258757e-154, 5.49464572566663e+109, 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), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta... | /CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615839526-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 363 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(3.00225452731163e-241, 1.97274569258757e-154, 5.49464572566663e+109, 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), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta... |
corr <- function ( directory , threshold = 0){
filelist <- list.files( path = directory , pattern =".csv", full.names = TRUE)
corr_vect <- numeric()
id <-1:332
complete.obs<-numeric()
for ( i in id){
data <- read.csv(filelist[i])
complete.obs <- data[complete.cases(data),]
if (nrow(complete.obs)... | /corr.R | no_license | Saba-Irfan/R-Programming | R | false | false | 484 | r | corr <- function ( directory , threshold = 0){
filelist <- list.files( path = directory , pattern =".csv", full.names = TRUE)
corr_vect <- numeric()
id <-1:332
complete.obs<-numeric()
for ( i in id){
data <- read.csv(filelist[i])
complete.obs <- data[complete.cases(data),]
if (nrow(complete.obs)... |
# Determine whether an expression is of the type that needs a first argument.
#
# @param a non-evaluated expression.
# @return logical - TRUE if expr is of "first-argument" type, FALSE otherwise.
is_first <- function(expr)
{
!any(vapply(expr[-1L], identical, logical(1L), quote(.)))
}
# Prepare a magrittr rhs of "fir... | /R/first_type.R | permissive | rstudio/promises | R | false | false | 552 | r | # Determine whether an expression is of the type that needs a first argument.
#
# @param a non-evaluated expression.
# @return logical - TRUE if expr is of "first-argument" type, FALSE otherwise.
is_first <- function(expr)
{
!any(vapply(expr[-1L], identical, logical(1L), quote(.)))
}
# Prepare a magrittr rhs of "fir... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rowMax.R
\name{rowMax}
\alias{rowMax}
\title{row-wise maximum}
\usage{
rowMax(x, na.rm = TRUE)
}
\arguments{
\item{x}{a \code{matrix} or \code{data.frame}}
\item{na.rm}{logical: remove NA's?}
}
\value{
a vector of maxima, 1 per row in \code{... | /man/rowMax.Rd | no_license | drmjc/mjcbase | R | false | true | 439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rowMax.R
\name{rowMax}
\alias{rowMax}
\title{row-wise maximum}
\usage{
rowMax(x, na.rm = TRUE)
}
\arguments{
\item{x}{a \code{matrix} or \code{data.frame}}
\item{na.rm}{logical: remove NA's?}
}
\value{
a vector of maxima, 1 per row in \code{... |
s <- 1
X <- rnorm(5000, 0, s)
mat <- matrix(X, nrow=10, ncol=500)
COL <- 2
ROW <- 1
s0 <- apply(mat, 2, var)
s1 <- s0 * 9/10
s2 <- s0 * 9/11
var <- var(s0)
RASEO <- sqrt(mean(s0-s)^{2})
RMS <- sqrt(mean(s0-s)^{2})
BSO <- mean(s0)- s
S_data <- data.frame('var_values' = s0)
ggplot(S_data) + geom_histogram(aes(x=var_val... | /laby2.2.R | no_license | marcin119a/r-sad | R | false | false | 574 | r | s <- 1
X <- rnorm(5000, 0, s)
mat <- matrix(X, nrow=10, ncol=500)
COL <- 2
ROW <- 1
s0 <- apply(mat, 2, var)
s1 <- s0 * 9/10
s2 <- s0 * 9/11
var <- var(s0)
RASEO <- sqrt(mean(s0-s)^{2})
RMS <- sqrt(mean(s0-s)^{2})
BSO <- mean(s0)- s
S_data <- data.frame('var_values' = s0)
ggplot(S_data) + geom_histogram(aes(x=var_val... |
library(phyclust)
### Name: .se.model
### Title: Sequencing Error Model
### Aliases: .se.model
### Keywords: datasets
### ** Examples
## Not run:
##D library(phyclust, quiet = TRUE)
##D
##D .se.model
## End(Not run)
| /data/genthat_extracted_code/phyclust/examples/11_d.se.model.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 225 | r | library(phyclust)
### Name: .se.model
### Title: Sequencing Error Model
### Aliases: .se.model
### Keywords: datasets
### ** Examples
## Not run:
##D library(phyclust, quiet = TRUE)
##D
##D .se.model
## End(Not run)
|
#' ---
#' title: "Ngram Functio"
#' author: "SARVESH"
#' date: "`r format(Sys.Date())`"
#' output: github_document
#' ---
#' Load Training Data, created by `04A_Task_Script.R`
bi_words <- readRDS("./app_data/bi_words_fast.rds")
tri_words <- readRDS("./app_data/tri_words_fast.rds")
quad_words <- readRDS("./app_data/q... | /ngram_match/ngram.R | no_license | isarvesh/finalcapstone-project | R | false | false | 2,182 | r | #' ---
#' title: "Ngram Functio"
#' author: "SARVESH"
#' date: "`r format(Sys.Date())`"
#' output: github_document
#' ---
#' Load Training Data, created by `04A_Task_Script.R`
bi_words <- readRDS("./app_data/bi_words_fast.rds")
tri_words <- readRDS("./app_data/tri_words_fast.rds")
quad_words <- readRDS("./app_data/q... |
#' Plots fields eith spatio-temporal or spatial
#' @inheritParams find.fields
#' @export
plot.fields <- function(x = NULL, mesh = NULL, n.t = NULL, sd = FALSE, spatial.polygon = NULL,col = grey.colors(100,0.05,0.95),...){
proj <- inla.mesh.projector(mesh,dims = dims)
fields <- summary(x)$random.names[summary(x)... | /R/plotting.r | no_license | cmjt/lgcpSPDE | R | false | false | 1,518 | r | #' Plots fields eith spatio-temporal or spatial
#' @inheritParams find.fields
#' @export
plot.fields <- function(x = NULL, mesh = NULL, n.t = NULL, sd = FALSE, spatial.polygon = NULL,col = grey.colors(100,0.05,0.95),...){
proj <- inla.mesh.projector(mesh,dims = dims)
fields <- summary(x)$random.names[summary(x)... |
library(psd)
### Name: modulo_floor
### Title: Nearest value below
### Aliases: modulo_floor
### ** Examples
n <- 11
nextn(n) # 12
modulo_floor(n) # 10
# works on vectors too:
# defaults to m=2
modulo_floor(seq_len(n))
#[1] 0 2 2 4 4 6 6 8 8 10 10
# change the floor factor
modulo_floor(seq_len(n), 3)
#[1... | /data/genthat_extracted_code/psd/examples/modulo_floor.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 402 | r | library(psd)
### Name: modulo_floor
### Title: Nearest value below
### Aliases: modulo_floor
### ** Examples
n <- 11
nextn(n) # 12
modulo_floor(n) # 10
# works on vectors too:
# defaults to m=2
modulo_floor(seq_len(n))
#[1] 0 2 2 4 4 6 6 8 8 10 10
# change the floor factor
modulo_floor(seq_len(n), 3)
#[1... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/class.R
\docType{class}
\name{RankInit-class}
\alias{RankInit}
\alias{RankInit-class}
\title{RankInit Class}
\description{
A S4 class to store initialization information of model fitting
The \code{RankInit} class is used to give init... | /man/RankInit-class.Rd | no_license | ZhaozhiQIAN/rankdist | R | false | false | 1,103 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/class.R
\docType{class}
\name{RankInit-class}
\alias{RankInit}
\alias{RankInit-class}
\title{RankInit Class}
\description{
A S4 class to store initialization information of model fitting
The \code{RankInit} class is used to give init... |
# tester for xlsxtracter
infile <- "test1.xlsx"
sheet <- "Sheet1"
rows <- seq(4, 15)
header <- c("col1", "col2","col3")
colrow = list(c("A", "B","C"), c(rows))
# returns a dataframe
d <- xlsxtractor(infile, colrow, header = header,
one_to_many = list(c("one_to_many"),
... | /tests/testthat/test-xlsxtracter_one_to_many.R | permissive | ebenp/xlsxtracter | R | false | false | 340 | r | # tester for xlsxtracter
infile <- "test1.xlsx"
sheet <- "Sheet1"
rows <- seq(4, 15)
header <- c("col1", "col2","col3")
colrow = list(c("A", "B","C"), c(rows))
# returns a dataframe
d <- xlsxtractor(infile, colrow, header = header,
one_to_many = list(c("one_to_many"),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/morrisCI.r
\name{morrisCI}
\alias{morrisCI}
\title{Analytical confidence intervals using the Morris (1988) algorithm}
\usage{
morrisCI(
y,
n,
phat = y/n,
conf = 0.9,
narrower = TRUE,
alternate = wilsonCI,
...
)
}
\arguments{
\it... | /man/morrisCI.Rd | no_license | assaforon/cir | R | false | true | 4,246 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/morrisCI.r
\name{morrisCI}
\alias{morrisCI}
\title{Analytical confidence intervals using the Morris (1988) algorithm}
\usage{
morrisCI(
y,
n,
phat = y/n,
conf = 0.9,
narrower = TRUE,
alternate = wilsonCI,
...
)
}
\arguments{
\it... |
#' Build a Latent Class Model
#'
#' Function \code{build_lcm} is a shortcut for constructing a latent class model
#' as a restricted case of an \code{mhmm} object.
#'
#' @export
#' @param observations An \code{stslist} object (see \code{\link[TraMineR]{seqdef}}) containing
#' the sequences, or a list of suc... | /R/build_lcm.R | no_license | aung2phyowai/seqHMM | R | false | false | 17,901 | r | #' Build a Latent Class Model
#'
#' Function \code{build_lcm} is a shortcut for constructing a latent class model
#' as a restricted case of an \code{mhmm} object.
#'
#' @export
#' @param observations An \code{stslist} object (see \code{\link[TraMineR]{seqdef}}) containing
#' the sequences, or a list of suc... |
\name{scatterHist}
\alias{scatter.hist}
\alias{scatterHist}
\title{Draw a scatter plot with associated X and Y histograms, densities and correlation}
\description{Draw a X Y scatter plot with associated X and Y histograms with estimated densities. Will also draw density plots by groups, as well as distribution ellips... | /man/scatter.hist.Rd | no_license | cran/psych | R | false | false | 6,044 | rd | \name{scatterHist}
\alias{scatter.hist}
\alias{scatterHist}
\title{Draw a scatter plot with associated X and Y histograms, densities and correlation}
\description{Draw a X Y scatter plot with associated X and Y histograms with estimated densities. Will also draw density plots by groups, as well as distribution ellips... |
## create master matrix for Namibia:
# data includes: Origin ID / Origin Name / Origin longitude / Origin latitude / Origin population density /
# Destination ID / Destination Name / Dest. longitude/ Dest. latitude/ Dest population density/
# trip # for each date
# created by Hannah Me... | /NAM_compiling_master_matrix.R | no_license | hrmeredith12/Mobility-Project | R | false | false | 4,799 | r | ## create master matrix for Namibia:
# data includes: Origin ID / Origin Name / Origin longitude / Origin latitude / Origin population density /
# Destination ID / Destination Name / Dest. longitude/ Dest. latitude/ Dest population density/
# trip # for each date
# created by Hannah Me... |
#!/usr/bin/env Rscript
##STEP ONE: CREATING THE RAW HOURLY MICROCLIMATIC VARIABLES, SEPARATED BY PLANTING
setwd("~/Clim_GWAS/Clim_GWAS_2")
load('full_environ_data_list.Robj') #load environmental data
load('Multitrait_NEW.RData') #Load the phenotype data
library(tictoc)
tic("PROCESSING MICROCLIMATIC DATA")
print("Star... | /Scripts/MICROCLIMATE_MINMAX.R | no_license | andhikap2/lmmlasso | R | false | false | 8,660 | r | #!/usr/bin/env Rscript
##STEP ONE: CREATING THE RAW HOURLY MICROCLIMATIC VARIABLES, SEPARATED BY PLANTING
setwd("~/Clim_GWAS/Clim_GWAS_2")
load('full_environ_data_list.Robj') #load environmental data
load('Multitrait_NEW.RData') #Load the phenotype data
library(tictoc)
tic("PROCESSING MICROCLIMATIC DATA")
print("Star... |
#################################################################
#Author: Tomasz Hachaj, 2017
#Email: tomekhachaj@o2.pl
#################################################################
#Generate bigrams graph in gdf format (see https://gephi.org/)
#################################################################
libr... | /bigrams_graph.R | no_license | browarsoftware/bigrams_graph | R | false | false | 3,261 | r | #################################################################
#Author: Tomasz Hachaj, 2017
#Email: tomekhachaj@o2.pl
#################################################################
#Generate bigrams graph in gdf format (see https://gephi.org/)
#################################################################
libr... |
# setwd("D:/finalProjectData/RShiny/NYCTaxiVis")
# Valuable Info.
# travel_time
# passenger_number
# total_fare
# tip_amount
# address_on_map
# --Additional--
# travel_frequency/count
# Faults exists where:
# passenger -> 0
# travel_time -> 0
# distance -> 0
# fare -> 0
# fare_not_equal_total
# library(ggmap)
# lib... | /files/dataPreprocessing.R | no_license | Forrest-Li/nyc-yellow-taxi-vis | R | false | false | 11,335 | r | # setwd("D:/finalProjectData/RShiny/NYCTaxiVis")
# Valuable Info.
# travel_time
# passenger_number
# total_fare
# tip_amount
# address_on_map
# --Additional--
# travel_frequency/count
# Faults exists where:
# passenger -> 0
# travel_time -> 0
# distance -> 0
# fare -> 0
# fare_not_equal_total
# library(ggmap)
# lib... |
pdf("Ping1_hom.pdf")
par(mar=c(5,5,4,2))
library(beeswarm)
mping <- read.table("Ping1_hom.table.txt", header=TRUE)
beeswarm(Heterozygous_mPing ~ Code, data = mping,
pch = 16, col=c("cornflowerblue"),
xlab = "", ylab = "",
labels = c(2,3,4,5,6,7), axes=FALSE, ylim=c(0, 100), xlim=c(0.5, 12... | /Figure2_mPing_NB_Ping/data_20160620/Ping1_hom.R | no_license | JinfengChen/RILs_Preparation | R | false | false | 1,269 | r |
pdf("Ping1_hom.pdf")
par(mar=c(5,5,4,2))
library(beeswarm)
mping <- read.table("Ping1_hom.table.txt", header=TRUE)
beeswarm(Heterozygous_mPing ~ Code, data = mping,
pch = 16, col=c("cornflowerblue"),
xlab = "", ylab = "",
labels = c(2,3,4,5,6,7), axes=FALSE, ylim=c(0, 100), xlim=c(0.5, 12... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_batch_iron_steel_xml.R
\name{module_energy_batch_iron_steel_xml}
\alias{module_energy_batch_iron_steel_xml}
\title{module_energy_batch_iron_steel_xml}
\usage{
module_energy_batch_iron_steel_xml(command, ...)
}
\arguments{
\item{command... | /man/module_energy_batch_iron_steel_xml.Rd | permissive | JGCRI/gcamdata | R | false | true | 762 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_batch_iron_steel_xml.R
\name{module_energy_batch_iron_steel_xml}
\alias{module_energy_batch_iron_steel_xml}
\title{module_energy_batch_iron_steel_xml}
\usage{
module_energy_batch_iron_steel_xml(command, ...)
}
\arguments{
\item{command... |
## Name: Elizabeth Lee
## Date: 9/19/17
## Function: Model 8h v2: county neighbor spatial dependence model, early ILI intensity response variable
## Filenames:
## Data Source: IMS Health
## Notes:
##
## useful commands:
## install.packages("pkg", dependencies=TRUE, lib="/usr/local/lib/R/site-library") # in sudo R
## ... | /programs/inla_model8h_iliEarly_v2.R | no_license | eclee25/flu-SDI-scales | R | false | false | 6,817 | r |
## Name: Elizabeth Lee
## Date: 9/19/17
## Function: Model 8h v2: county neighbor spatial dependence model, early ILI intensity response variable
## Filenames:
## Data Source: IMS Health
## Notes:
##
## useful commands:
## install.packages("pkg", dependencies=TRUE, lib="/usr/local/lib/R/site-library") # in sudo R
## ... |
#setwd("/home/hl/Documents/Uni/DSS/Uebung2/CaseStudy/")
#setwd("D:/Projekte/DSS/DSS/CaseStudy")
setwd("/home/martin/Projects/DSS/Casestudy")
library(corrplot)
library(ggplot2)
library(scales)
library(grid)
library(gridExtra)
library(lattice)
library(caret)
library(xgboost)
#einlesen der csv files
data <- "2007.csv"... | /Casestudy/forecast.R | permissive | B0mM3L6000/DSS | R | false | false | 6,811 | r | #setwd("/home/hl/Documents/Uni/DSS/Uebung2/CaseStudy/")
#setwd("D:/Projekte/DSS/DSS/CaseStudy")
setwd("/home/martin/Projects/DSS/Casestudy")
library(corrplot)
library(ggplot2)
library(scales)
library(grid)
library(gridExtra)
library(lattice)
library(caret)
library(xgboost)
#einlesen der csv files
data <- "2007.csv"... |
library(pROC)
dados <- read.table("averagecluster.txt")
str(dados)
dados$novodiag <- as.factor(dados$novodiag)
str(dados)
#Random training (70%) and test Data (30%)
set.seed(432016) # setting a seed to get the same sequence of random numbers (for replication)
m <- nrow(dados)
imp <- sample(1:m, 0.70*m, prob ... | /Hierarchical/Average Linkage/average_classes_knn.R | no_license | gabrielascm/dataMining2 | R | false | false | 1,043 | r | library(pROC)
dados <- read.table("averagecluster.txt")
str(dados)
dados$novodiag <- as.factor(dados$novodiag)
str(dados)
#Random training (70%) and test Data (30%)
set.seed(432016) # setting a seed to get the same sequence of random numbers (for replication)
m <- nrow(dados)
imp <- sample(1:m, 0.70*m, prob ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_delete_tags}
\alias{ec2_delete_tags}
\title{Deletes the specified set of tags from the specified set of resources}
\usage{
ec2_delete_tags(DryRun, Resources, Tags)
}
\arguments{
\item{DryRun}{Checks whether you have... | /cran/paws.compute/man/ec2_delete_tags.Rd | permissive | ryanb8/paws | R | false | true | 2,025 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_delete_tags}
\alias{ec2_delete_tags}
\title{Deletes the specified set of tags from the specified set of resources}
\usage{
ec2_delete_tags(DryRun, Resources, Tags)
}
\arguments{
\item{DryRun}{Checks whether you have... |
testlist <- list(hi = 0, lo = 4.43176884319598e-320, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610047796-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 126 | r | testlist <- list(hi = 0, lo = 4.43176884319598e-320, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scorecard.R
\name{scorecard_ply}
\alias{scorecard_ply}
\title{Score Transformation}
\usage{
scorecard_ply(dt, card, only_total_score = TRUE, print_step = 0L,
replace_blank_na = TRUE, var_kp = NULL)
}
\arguments{
\item{dt}{A data frame, whic... | /man/scorecard_ply.Rd | permissive | MrQuiet/scorecard | R | false | true | 2,279 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scorecard.R
\name{scorecard_ply}
\alias{scorecard_ply}
\title{Score Transformation}
\usage{
scorecard_ply(dt, card, only_total_score = TRUE, print_step = 0L,
replace_blank_na = TRUE, var_kp = NULL)
}
\arguments{
\item{dt}{A data frame, whic... |
library(EBImage)
library(shiny)
library(shinyFiles)
library(DT)
library(xlsx)
function(input, output, session) {
# perform calculations for use in other reactive objects
dat <- reactive({
inFile <- input$file1
if (is.null(inFile))
return(NULL)
img = readImage(inFile$datapath)
#select ... | /server.R | no_license | rbotts/TumorQuant | R | false | false | 4,379 | r |
library(EBImage)
library(shiny)
library(shinyFiles)
library(DT)
library(xlsx)
function(input, output, session) {
# perform calculations for use in other reactive objects
dat <- reactive({
inFile <- input$file1
if (is.null(inFile))
return(NULL)
img = readImage(inFile$datapath)
#select ... |
library(NetworkToolbox)
### Name: degree
### Title: Degree
### Aliases: degree
### ** Examples
#Undirected network
A <- TMFG(neoOpen)$A
deg <- degree(A)
#Directed network
dep <- depend(neoOpen)
Adep <- TMFG(dep, depend = TRUE)$A
deg <- degree(Adep)
| /data/genthat_extracted_code/NetworkToolbox/examples/degree.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 261 | r | library(NetworkToolbox)
### Name: degree
### Title: Degree
### Aliases: degree
### ** Examples
#Undirected network
A <- TMFG(neoOpen)$A
deg <- degree(A)
#Directed network
dep <- depend(neoOpen)
Adep <- TMFG(dep, depend = TRUE)$A
deg <- degree(Adep)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arithmetics.R
\name{negate}
\alias{negate}
\title{negate number}
\usage{
negate(x)
}
\arguments{
\item{x}{A number}
}
\value{
a number with opposite sign
}
\description{
The function negates number passed as a parameter.
\code{negate(1)} re... | /man/negate.Rd | permissive | EvgenyPetrovsky/hello.rpkg | R | false | true | 372 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arithmetics.R
\name{negate}
\alias{negate}
\title{negate number}
\usage{
negate(x)
}
\arguments{
\item{x}{A number}
}
\value{
a number with opposite sign
}
\description{
The function negates number passed as a parameter.
\code{negate(1)} re... |
'Usage: 1_trs_cleaner.R <transcriptome> <transratestats>' -> doc
## Load packages
library(tools)
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(Biostrings))
cmd_args <- docopt::docopt(doc) # Produce a vector of command line arguments
## Assign command line arguments to variable... | /scripts/1_trs_cleaner.R | no_license | wesleykg/1kp_workflow | R | false | false | 2,382 | r | 'Usage: 1_trs_cleaner.R <transcriptome> <transratestats>' -> doc
## Load packages
library(tools)
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(Biostrings))
cmd_args <- docopt::docopt(doc) # Produce a vector of command line arguments
## Assign command line arguments to variable... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{instanceGroupManagers.abandonInstances}
\alias{instanceGroupManagers.abandonInstances}
\title{Schedules a group action to remove the specified instances from the managed instance group. Abandoning an instance does no... | /googlecomputebeta.auto/man/instanceGroupManagers.abandonInstances.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 2,000 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{instanceGroupManagers.abandonInstances}
\alias{instanceGroupManagers.abandonInstances}
\title{Schedules a group action to remove the specified instances from the managed instance group. Abandoning an instance does no... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LongMemoryTS-package.R
\docType{package}
\name{LongMemoryTS}
\alias{LongMemoryTS}
\alias{LongMemoryTS-package}
\title{LongMemoryTS: Long Memory Time Series}
\description{
The LongMemoryTS package is a collection of functions for estimation,
s... | /man/LongMemoryTS.Rd | no_license | ayotoasset/LongMemoryTS | R | false | true | 7,477 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LongMemoryTS-package.R
\docType{package}
\name{LongMemoryTS}
\alias{LongMemoryTS}
\alias{LongMemoryTS-package}
\title{LongMemoryTS: Long Memory Time Series}
\description{
The LongMemoryTS package is a collection of functions for estimation,
s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/momentum_routines.R
\name{show.velocity.on.embedding.eu}
\alias{show.velocity.on.embedding.eu}
\title{Visualize RNA velocities on an existing embedding using Euclidean-based transition probability matrix within the kNN graph.}
\usage{
show.ve... | /man/show.velocity.on.embedding.eu.Rd | no_license | ilyakorsunsky/velocyto.R | R | false | true | 3,790 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/momentum_routines.R
\name{show.velocity.on.embedding.eu}
\alias{show.velocity.on.embedding.eu}
\title{Visualize RNA velocities on an existing embedding using Euclidean-based transition probability matrix within the kNN graph.}
\usage{
show.ve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calibrate.R
\name{add.dates}
\alias{add.dates}
\title{Add dates to age-depth plots}
\usage{
add.dates(
mn,
sdev,
depth,
cc = 1,
set = get("info"),
above = 1e-06,
postbomb = 0,
normal = TRUE,
delta.R = set$delta.R,
delta.ST... | /man/add.dates.Rd | no_license | Maarten14C/rbacon | R | false | true | 4,702 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calibrate.R
\name{add.dates}
\alias{add.dates}
\title{Add dates to age-depth plots}
\usage{
add.dates(
mn,
sdev,
depth,
cc = 1,
set = get("info"),
above = 1e-06,
postbomb = 0,
normal = TRUE,
delta.R = set$delta.R,
delta.ST... |
testlist <- list(ExpressionSet = structure(c(3.29909916818483e+231, 1.23181983389617e+58, 1.52478221747831e+245, 6.36967296041789e+178, 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)), Phylostratum = numeric(0))
result <- do.call(myTAI:::cpp_TAI,testlis... | /myTAI/inst/testfiles/cpp_TAI/AFL_cpp_TAI/cpp_TAI_valgrind_files/1615764186-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 334 | r | testlist <- list(ExpressionSet = structure(c(3.29909916818483e+231, 1.23181983389617e+58, 1.52478221747831e+245, 6.36967296041789e+178, 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)), Phylostratum = numeric(0))
result <- do.call(myTAI:::cpp_TAI,testlis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.