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/entity_accessors.R
\name{getParameters}
\alias{getParameters}
\title{Get reaction parameters}
\usage{
getParameters(key = NULL, model = getCurrentModel())
}
\arguments{
\item{key}{Optionally, a character vector specifying which reaction param... | /man/getParameters.Rd | permissive | jpahle/CoRC | R | false | true | 1,350 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/entity_accessors.R
\name{getParameters}
\alias{getParameters}
\title{Get reaction parameters}
\usage{
getParameters(key = NULL, model = getCurrentModel())
}
\arguments{
\item{key}{Optionally, a character vector specifying which reaction param... |
load.cleanFlights <- function(d) {
names(d) <- helpers.lowerfy(names(d))
d
}
load.flights2014 <- function() {
load.cleanFlights(read.csv('data/flights_2014_output.csv',
header = TRUE, sep = ',', stringsAsFactors = FALSE))
}
load.flights1213 <- function() {
load.cleanFlights(read.csv('data/flights_2012_201... | /load/flights.R | no_license | vladiim/politicians | R | false | false | 393 | r | load.cleanFlights <- function(d) {
names(d) <- helpers.lowerfy(names(d))
d
}
load.flights2014 <- function() {
load.cleanFlights(read.csv('data/flights_2014_output.csv',
header = TRUE, sep = ',', stringsAsFactors = FALSE))
}
load.flights1213 <- function() {
load.cleanFlights(read.csv('data/flights_2012_201... |
#' Read AmiraMesh data in binary or ascii format
#'
#' @details reading byte data as raw arrays requires 1/4 memory but complicates
#' arithmetic.
#' @param file Name of file (or connection) to read
#' @param sections character vector containing names of sections
#' @param header Whether to include the full unproces... | /R/amiramesh-io.R | no_license | natverse/nat | R | false | false | 25,683 | r | #' Read AmiraMesh data in binary or ascii format
#'
#' @details reading byte data as raw arrays requires 1/4 memory but complicates
#' arithmetic.
#' @param file Name of file (or connection) to read
#' @param sections character vector containing names of sections
#' @param header Whether to include the full unproces... |
r=359.77
https://sandbox.dams.library.ucdavis.edu/fcrepo/rest/collection/sherry-lehmann/catalogs/d7gp4v/media/images/d7gp4v-006/svc:tesseract/full/full/359.77/default.jpg Accept:application/hocr+xml
| /ark_87287/d7gp4v/d7gp4v-006/rotated.r | permissive | ucd-library/wine-price-extraction | R | false | false | 199 | r | r=359.77
https://sandbox.dams.library.ucdavis.edu/fcrepo/rest/collection/sherry-lehmann/catalogs/d7gp4v/media/images/d7gp4v-006/svc:tesseract/full/full/359.77/default.jpg Accept:application/hocr+xml
|
\name{AUDC}
\alias{AUDC}
\title{Augmented Uniform Design Construction}
\usage{
AUDC(X0,n,s,q,init,initX,crit,maxiter,hits_ratio,vis)
}
\description{
This function takes n,s,q; a unchanged initial design and other arguments to output a list(described below).
}
\arguments{
\item{X0}{an integer matrix R obje... | /man/AUDC.Rd | permissive | HAOYU-LI/UniDOE | R | false | false | 1,650 | rd | \name{AUDC}
\alias{AUDC}
\title{Augmented Uniform Design Construction}
\usage{
AUDC(X0,n,s,q,init,initX,crit,maxiter,hits_ratio,vis)
}
\description{
This function takes n,s,q; a unchanged initial design and other arguments to output a list(described below).
}
\arguments{
\item{X0}{an integer matrix R obje... |
library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'wn'
scenario <- 18
param <- 1
anal_type <- "mice"
ss <- ss.bounds%>%
dplyr::filter(method == "wn", scenario.id == scenario)
do_val <- 0.2
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCore... | /sim_pgms/wn/do20/2xcontH0_sc18_do20_mice.R | no_license | yuliasidi/nibinom_apply | R | false | false | 3,318 | r | library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'wn'
scenario <- 18
param <- 1
anal_type <- "mice"
ss <- ss.bounds%>%
dplyr::filter(method == "wn", scenario.id == scenario)
do_val <- 0.2
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCore... |
"ozonemonthly" <-
structure(as.integer(c(313, 311, 370, 359, 334, 296, 288, 274,
NA, NA, NA, 301, 284, 320, 394, 347, 332, 301, 280, 256, NA,
NA, NA, NA, NA, 305, 349, 378, 341, 328, 297, NA, NA, NA, NA,
NA, NA, 302, 303, 340, 322, 298, 295, NA, NA, NA, NA, NA, 287,
292, 345, 375, 318, 303, 304, NA, NA, NA, NA, NA,... | /data/ozonemonthly.R | no_license | jverzani/UsingR | R | false | false | 6,665 | r | "ozonemonthly" <-
structure(as.integer(c(313, 311, 370, 359, 334, 296, 288, 274,
NA, NA, NA, 301, 284, 320, 394, 347, 332, 301, 280, 256, NA,
NA, NA, NA, NA, 305, 349, 378, 341, 328, 297, NA, NA, NA, NA,
NA, NA, 302, 303, 340, 322, 298, 295, NA, NA, NA, NA, NA, 287,
292, 345, 375, 318, 303, 304, NA, NA, NA, NA, NA,... |
#!/usr/bin/env Rscript
options(stringsAsFactors = FALSE)
library(dplyr)
library(tidyr)
library(readr)
library(rtracklayer)
## select coding genes in GTF
gtf.file <- 'gencode.v19.genes.patched_contigs.gtf.gz'
out.file <- 'coding.genes.txt.gz'
out.file.2 <- 'all.genes.txt.gz'
gtf.tab <- readGFF(gtf.file, tags = c('gen... | /make.coding.genes.R | no_license | YPARK/cammel-gwas | R | false | false | 1,118 | r | #!/usr/bin/env Rscript
options(stringsAsFactors = FALSE)
library(dplyr)
library(tidyr)
library(readr)
library(rtracklayer)
## select coding genes in GTF
gtf.file <- 'gencode.v19.genes.patched_contigs.gtf.gz'
out.file <- 'coding.genes.txt.gz'
out.file.2 <- 'all.genes.txt.gz'
gtf.tab <- readGFF(gtf.file, tags = c('gen... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{extractDrugStandardComplete}
\alias{extractDrugStandardComplete}
\title{Calculate the Standard Molecular Fingerprints (in Complete Format)}
\usage{
extractDrugStandardComplete(molecules, depth = 6, size = 1024,
silent = TRUE)
}
\arguments{
\item{molecules}{Pa... | /man/extractDrugStandardComplete.Rd | no_license | MaythaNaif/Rcpi | R | false | false | 1,233 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{extractDrugStandardComplete}
\alias{extractDrugStandardComplete}
\title{Calculate the Standard Molecular Fingerprints (in Complete Format)}
\usage{
extractDrugStandardComplete(molecules, depth = 6, size = 1024,
silent = TRUE)
}
\arguments{
\item{molecules}{Pa... |
{
library(tidyverse)
}
#=======Read files========
path<-'/home/san/halinejad/Desktop/Dashti/somatic2'
pcnt<-paste0(path,'/AGRE_cnv_control.csv')
pcs<-paste0(path,'/AGRE_cnv_case.csv')
input_case<- read.csv(pcs,header = T)
input_control<- read.csv(pcnt,header = T)
t1<-subset(input_case,input_case$CNV.Type=='Dup')
t1<-... | /21u.R | no_license | hameddashti/somatic2 | R | false | false | 3,280 | r | {
library(tidyverse)
}
#=======Read files========
path<-'/home/san/halinejad/Desktop/Dashti/somatic2'
pcnt<-paste0(path,'/AGRE_cnv_control.csv')
pcs<-paste0(path,'/AGRE_cnv_case.csv')
input_case<- read.csv(pcs,header = T)
input_control<- read.csv(pcnt,header = T)
t1<-subset(input_case,input_case$CNV.Type=='Dup')
t1<-... |
####
source("packages.R")
dag <- empty.graph(nodes = c("A", "S", "E", "O", "R", "T"))
dag
dag <- set.arc(dag, from = "A", to = "E")
dag <- set.arc(dag, from = "S", to = "E")
dag <- set.arc(dag, from = "E", to = "R")
dag <- set.arc(dag, from = "E", to = "O")
dag <- set.arc(dag, from = "O", to = "T")
dag <- set.arc(da... | /nettest.R | no_license | konstantingoe/MA-Statistics | R | false | false | 23,266 | r | ####
source("packages.R")
dag <- empty.graph(nodes = c("A", "S", "E", "O", "R", "T"))
dag
dag <- set.arc(dag, from = "A", to = "E")
dag <- set.arc(dag, from = "S", to = "E")
dag <- set.arc(dag, from = "E", to = "R")
dag <- set.arc(dag, from = "E", to = "O")
dag <- set.arc(dag, from = "O", to = "T")
dag <- set.arc(da... |
SKI <- function(x, y, r0, method, num.select, family, ebic, ebic.gamma,cv=FALSE){
result <- screening(x = x, y = y, method = method, num.select=dim(x)[2], family = family, ebic = ebic,ebic.gamma = ebic.gamma)
r1 <- sort(result$screen,decreasing = F,index.return=T)$ix
#current_result <- .alphaEstimation(x = x, y =... | /SKI.r | no_license | stormliucong/SKI | R | false | false | 5,907 | r | SKI <- function(x, y, r0, method, num.select, family, ebic, ebic.gamma,cv=FALSE){
result <- screening(x = x, y = y, method = method, num.select=dim(x)[2], family = family, ebic = ebic,ebic.gamma = ebic.gamma)
r1 <- sort(result$screen,decreasing = F,index.return=T)$ix
#current_result <- .alphaEstimation(x = x, y =... |
mainplot <- function(){
plot(NULL, NULL
, log="xy"
, xlim = c(0.5, 2)
, ylim = c(0.5, 2)
, xaxs = "i"
, yaxs = "i"
, xlab = expression(E[21])
, ylab = expression(E[12])
)
}
mainplot()
bifLines <- function(){
abline(h=1)
abline(v=1)
}
mainplot(); bifLines()
coex <- function(){
text(0.8, 0.8 , "Coe... | /bifurcation.R | no_license | Bio3SS/Competition_models | R | false | false | 885 | r | mainplot <- function(){
plot(NULL, NULL
, log="xy"
, xlim = c(0.5, 2)
, ylim = c(0.5, 2)
, xaxs = "i"
, yaxs = "i"
, xlab = expression(E[21])
, ylab = expression(E[12])
)
}
mainplot()
bifLines <- function(){
abline(h=1)
abline(v=1)
}
mainplot(); bifLines()
coex <- function(){
text(0.8, 0.8 , "Coe... |
library(rjags)
##################################################
### 1.1. OUTCOMES MISSING NOT AT RANDOM
##################################################
## MMSE data
dat <- list(t = c(0, 5, 10, 15, 20),
y = c(28, 26, 27, 25, NA) )
plot(dat$t, dat$y, ylim=c(0, 30)) # quick visualisation
... | /Bayesian Analysis/practical_material/missing-jags.r | no_license | MichaelBelias/My-Complete-Book-In-R | R | false | false | 2,576 | r | library(rjags)
##################################################
### 1.1. OUTCOMES MISSING NOT AT RANDOM
##################################################
## MMSE data
dat <- list(t = c(0, 5, 10, 15, 20),
y = c(28, 26, 27, 25, NA) )
plot(dat$t, dat$y, ylim=c(0, 30)) # quick visualisation
... |
# install.packages("spotifyr")
library(spotifyr)
Sys.setenv(SPOTIFY_CLIENT_ID = "c22575ce003a46ba95e4590c10b3acb1")
Sys.setenv(SPOTIFY_CLIENT_SECRET = "94cc674619fc44168db51564357111ad")
access_token <- get_spotify_access_token()
genres <- c("rap", "folk", "country", "rock", "blues", "jazz", "electronic",
... | /Music_Classification/.Rproj.user/64E635F7/sources/per/t/9ED22BFF-contents | no_license | SmithBradleyC/Programming_Projects | R | false | false | 607 | # install.packages("spotifyr")
library(spotifyr)
Sys.setenv(SPOTIFY_CLIENT_ID = "c22575ce003a46ba95e4590c10b3acb1")
Sys.setenv(SPOTIFY_CLIENT_SECRET = "94cc674619fc44168db51564357111ad")
access_token <- get_spotify_access_token()
genres <- c("rap", "folk", "country", "rock", "blues", "jazz", "electronic",
... | |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isgd_links.R
\name{isgd_LinksExpand}
\alias{isgd_LinksExpand}
\title{Expand a short URL to a longer one}
\usage{
isgd_LinksExpand(shorturl = "", showRequestURL = FALSE)
}
\arguments{
\item{shorturl}{- (optional character) You can specify the ... | /man/isgd_LinksExpand.Rd | permissive | patperu/urlshorteneR | R | false | true | 1,062 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isgd_links.R
\name{isgd_LinksExpand}
\alias{isgd_LinksExpand}
\title{Expand a short URL to a longer one}
\usage{
isgd_LinksExpand(shorturl = "", showRequestURL = FALSE)
}
\arguments{
\item{shorturl}{- (optional character) You can specify the ... |
# Test expontential backoff/retry
#
# Author: brucehoff
###############################################################################
library(RCurl)
# note, I want slightly different set-ups for different tests, so I invoke it myself
# (instead of letting the framework do it), passing a parameter
# example, mySetU... | /inst/unitTests/test_exponentialBackoffForRetriableStatus.R | no_license | woodhaha/rSynapseClient | R | false | false | 7,027 | r | # Test expontential backoff/retry
#
# Author: brucehoff
###############################################################################
library(RCurl)
# note, I want slightly different set-ups for different tests, so I invoke it myself
# (instead of letting the framework do it), passing a parameter
# example, mySetU... |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bin... | /ui.R | no_license | gauravsatav/WebApp | R | false | false | 618 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readOnly.R
\name{readOnly}
\alias{readOnly}
\alias{readOnly,character-method}
\alias{readOnly,SsimLibrary-method}
\alias{readOnly,Project-method}
\alias{readOnly,Scenario-method}
\alias{readOnly,Folder-method}
\alias{readOnly<-}
\alias{readOn... | /man/readOnly.Rd | permissive | syncrosim/rsyncrosim | R | false | true | 2,060 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readOnly.R
\name{readOnly}
\alias{readOnly}
\alias{readOnly,character-method}
\alias{readOnly,SsimLibrary-method}
\alias{readOnly,Project-method}
\alias{readOnly,Scenario-method}
\alias{readOnly,Folder-method}
\alias{readOnly<-}
\alias{readOn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AdvancedTuning.R
\name{RunInteractiveTuning}
\alias{RunInteractiveTuning}
\title{Run an interactive model tuning session.}
\usage{
RunInteractiveTuning(model)
}
\arguments{
\item{model}{dataRobotModel. A DataRobot model object to get tuning p... | /man/RunInteractiveTuning.Rd | no_license | malakz/datarobot | R | false | true | 1,624 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AdvancedTuning.R
\name{RunInteractiveTuning}
\alias{RunInteractiveTuning}
\title{Run an interactive model tuning session.}
\usage{
RunInteractiveTuning(model)
}
\arguments{
\item{model}{dataRobotModel. A DataRobot model object to get tuning p... |
# Homework #2
library(shiny)
library(reshape2)
library(dplyr)
library(shinythemes)
library(stringr)
library(httr)
library(jsonlite)
library(plotly)
library(htmltools)
ckanSQL <- function(url) {
# MAKE REQUEST
r <- RETRY("GET", URLencode(url))
# EXTRACT CONTENT
c <- content(r, "text")
# CREATE DATAFRAME
da... | /app.R | no_license | RforOperations2018/HW2_ASANDOVAL | R | false | false | 12,956 | r | # Homework #2
library(shiny)
library(reshape2)
library(dplyr)
library(shinythemes)
library(stringr)
library(httr)
library(jsonlite)
library(plotly)
library(htmltools)
ckanSQL <- function(url) {
# MAKE REQUEST
r <- RETRY("GET", URLencode(url))
# EXTRACT CONTENT
c <- content(r, "text")
# CREATE DATAFRAME
da... |
require(neuralnet)
require(RMySQL)
require(ff)
require(googleVis)
require(Metrics)
require(ppls)
require(RSNNS)
require(ftsa)
sites.count <- 10
history.length <- 50
data.len <- 52560
data.len.day <<- 144
mat.size <<- 365
window.size <- 10
train.data.percent <- 0.7
file.name <- "neuralnet_shortterm_simple.csv"
file.pat... | /simple/shortterm/neuralnet/neuralnet_days_slidingwindow_forecast.R | no_license | sachinlv/tsaggr | R | false | false | 5,524 | r | require(neuralnet)
require(RMySQL)
require(ff)
require(googleVis)
require(Metrics)
require(ppls)
require(RSNNS)
require(ftsa)
sites.count <- 10
history.length <- 50
data.len <- 52560
data.len.day <<- 144
mat.size <<- 365
window.size <- 10
train.data.percent <- 0.7
file.name <- "neuralnet_shortterm_simple.csv"
file.pat... |
expect_error_free <- function(...) {
expect_error(..., regexp = NA)
}
## set wd to session temp dir, execute testing code, restore previous wd
temporarily <- function(env = parent.frame()) {
withr::local_dir(path_temp(), .local_envir = env)
}
## useful during interactive test development to toggle the
## rlang_in... | /tests/testthat/helper.R | permissive | romainfrancois/reprex | R | false | false | 609 | r | expect_error_free <- function(...) {
expect_error(..., regexp = NA)
}
## set wd to session temp dir, execute testing code, restore previous wd
temporarily <- function(env = parent.frame()) {
withr::local_dir(path_temp(), .local_envir = env)
}
## useful during interactive test development to toggle the
## rlang_in... |
# --------------------------------------------------------------------
# Gait data
# --------------------------------------------------------------------
# --------------------------------------------------------------------
#
# Overview of the analyses
#
# The gait ... | /demo/gait.R | no_license | cran/fda | R | false | false | 12,427 | r | # --------------------------------------------------------------------
# Gait data
# --------------------------------------------------------------------
# --------------------------------------------------------------------
#
# Overview of the analyses
#
# The gait ... |
#' Returns the base url of the nbp api.
nbp_api_base_url <- function() {
"https://api.nbp.pl/api/"
}
| /R/endpoint_common.R | no_license | cran/rnbp | R | false | false | 105 | r | #' Returns the base url of the nbp api.
nbp_api_base_url <- function() {
"https://api.nbp.pl/api/"
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_nrst_haversine.R
\name{match_nrst_haversine}
\alias{match_nrst_haversine}
\title{Match coordinates to nearest coordinates}
\usage{
match_nrst_haversine(
lat,
lon,
addresses_lat,
addresses_lon,
Index = seq_along(addr... | /hutilscpp/man/match_nrst_haversine.Rd | no_license | akhikolla/InformationHouse | R | false | true | 3,168 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_nrst_haversine.R
\name{match_nrst_haversine}
\alias{match_nrst_haversine}
\title{Match coordinates to nearest coordinates}
\usage{
match_nrst_haversine(
lat,
lon,
addresses_lat,
addresses_lon,
Index = seq_along(addr... |
# stationary() finds the stationary distribution for the given markov
# chain (defined through a probability transition matrix or function)
# Input variables:
# pijdef: The transition probabilities, either in matrix form or a function
# type: Type of markov chain, either 'discrete' or 'continuous'
# tol: A... | /R/stationary.R | no_license | SonmezOzan/mc_1.0.3 | R | false | false | 6,994 | r | # stationary() finds the stationary distribution for the given markov
# chain (defined through a probability transition matrix or function)
# Input variables:
# pijdef: The transition probabilities, either in matrix form or a function
# type: Type of markov chain, either 'discrete' or 'continuous'
# tol: A... |
#' @title \code{qkay} The K distribution quantile function
#'
#' @description Quantile function for the K distribution on \code{df} degrees of freedom having non-centrality parameter \code{ncp}.
#'
#' A K distribution is the square root of a chi-square divided by its degrees of freedom. That is, if x is chi-squa... | /qqtest/R/qkay.R | no_license | ingted/R-Examples | R | false | false | 2,865 | r | #' @title \code{qkay} The K distribution quantile function
#'
#' @description Quantile function for the K distribution on \code{df} degrees of freedom having non-centrality parameter \code{ncp}.
#'
#' A K distribution is the square root of a chi-square divided by its degrees of freedom. That is, if x is chi-squa... |
\name{WeatherMap.set.option}
\alias{WeatherMap.set.option}
\title{WeatherMap.option}
\usage{
WeatherMap.set.option(Options = NULL, option = NULL,
value = NULL)
}
\arguments{
\item{Options}{list of options - if NULL, use defaults}
\item{option}{name of option to set}
\item{value}{value to set selected opti... | /GSDF.WeatherMap/man/WeatherMap.set.option.Rd | permissive | jacobvanetten/GSDF | R | false | false | 3,168 | rd | \name{WeatherMap.set.option}
\alias{WeatherMap.set.option}
\title{WeatherMap.option}
\usage{
WeatherMap.set.option(Options = NULL, option = NULL,
value = NULL)
}
\arguments{
\item{Options}{list of options - if NULL, use defaults}
\item{option}{name of option to set}
\item{value}{value to set selected opti... |
### distance_to_TSS.R
### Load variables
source("code/variables_definition.R")
### Set parameters
eqtls.file <- paste0("all_tissues_eqtls_fdr", FDRcis, FDRtrans, "_", window, "MB.Rdata")
disttssfile <- "dist_snp_tss.RData"
pdfeqtlcisfile <- paste0("dist_tss_cis_fdr",FDRcis, FDRtrans, "_", window, "MB.pdf")
pdfeqtltra... | /code/distance_to_TSS.R | no_license | maudf/gtex_condor | R | false | false | 4,418 | r | ### distance_to_TSS.R
### Load variables
source("code/variables_definition.R")
### Set parameters
eqtls.file <- paste0("all_tissues_eqtls_fdr", FDRcis, FDRtrans, "_", window, "MB.Rdata")
disttssfile <- "dist_snp_tss.RData"
pdfeqtlcisfile <- paste0("dist_tss_cis_fdr",FDRcis, FDRtrans, "_", window, "MB.pdf")
pdfeqtltra... |
#Sys.setenv(JAVA_HOME='/usr/local/software/spack/spack-0.11.2/opt/spack/linux-rhel7-x86_64/gcc-5.4.0/jdk-8u141-b15-p4aaoptkqukgdix6dh5ey236kllhluvr/jre') #Ubuntu cluster
Sys.setenv(JAVA_HOME= "/usr/lib/jvm/java-11-openjdk-amd64")
## Load packages
library(nlrx)
library(tidyverse)
library(rcartocolor)
library(ggthemes... | /nlrx_seoul_ubuntu.R | no_license | dataandcrowd/PollutionABM | R | false | false | 5,271 | r | #Sys.setenv(JAVA_HOME='/usr/local/software/spack/spack-0.11.2/opt/spack/linux-rhel7-x86_64/gcc-5.4.0/jdk-8u141-b15-p4aaoptkqukgdix6dh5ey236kllhluvr/jre') #Ubuntu cluster
Sys.setenv(JAVA_HOME= "/usr/lib/jvm/java-11-openjdk-amd64")
## Load packages
library(nlrx)
library(tidyverse)
library(rcartocolor)
library(ggthemes... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | /r/tests/testthat/test-io.R | permissive | 0x0L/arrow | R | false | false | 3,942 | r | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
library(checkmate)
expect_backend = function(b) {
expect_r6(b, cloneable = TRUE, public = c("nrow", "ncol", "colnames", "rownames", "data", "head", "distinct", "missing.values", "types"))
n = b$nrow
p = b$ncol
expect_count(n)
expect_count(p)
expect_atomic_vector(b$rownames, any.missing = FALSE, len = n)
... | /tests/testthat/helper_expects.R | no_license | mlr-archive/mlrng | R | false | false | 6,714 | r | library(checkmate)
expect_backend = function(b) {
expect_r6(b, cloneable = TRUE, public = c("nrow", "ncol", "colnames", "rownames", "data", "head", "distinct", "missing.values", "types"))
n = b$nrow
p = b$ncol
expect_count(n)
expect_count(p)
expect_atomic_vector(b$rownames, any.missing = FALSE, len = n)
... |
#####RED - IUCN Redlisting Tools
#####Version 1.5.0 (2020-05-04)
#####By Pedro Cardoso
#####Maintainer: pedro.cardoso@helsinki.fi
#####Reference: Cardoso, P.(2017) An R package to facilitate species red list assessments according to the IUCN criteria. Biodiversity Data Journal 5: e20530 doi: 10.3897/BDJ.5.e20530
#... | /R/red.R | no_license | cardosopmb/red | R | false | false | 92,725 | r | #####RED - IUCN Redlisting Tools
#####Version 1.5.0 (2020-05-04)
#####By Pedro Cardoso
#####Maintainer: pedro.cardoso@helsinki.fi
#####Reference: Cardoso, P.(2017) An R package to facilitate species red list assessments according to the IUCN criteria. Biodiversity Data Journal 5: e20530 doi: 10.3897/BDJ.5.e20530
#... |
#' @title Data - Ambient Temperature for the City of London for all of 2013
#'
#' @description This is a data frame of Ambient temperature data, extracted from Weather Undergound.
#' Each row has two entries (columns). The Timestamp (YYYY-MM-DD HH:MM:SS) and the Temperature (in degrees F)
#'
#' @author Ram Narasimhan \... | /R/data_description.R | no_license | ozagordi/weatherData | R | false | false | 4,697 | r | #' @title Data - Ambient Temperature for the City of London for all of 2013
#'
#' @description This is a data frame of Ambient temperature data, extracted from Weather Undergound.
#' Each row has two entries (columns). The Timestamp (YYYY-MM-DD HH:MM:SS) and the Temperature (in degrees F)
#'
#' @author Ram Narasimhan \... |
load(system.file("internal_db/oedb.rda", package = "oncoEnrichR"))
test_that("Ligand-receptor interactions - testing ", {
expect_error(
oncoEnrichR:::annotate_ligand_receptor_interactions(
qgenes = c("EGFR", "EGF")
)
)
expect_error(
oncoEnrichR:::annotate_ligand_receptor_interactions(
qg... | /tests/testthat/test_ligandreceptor.R | permissive | sigven/oncoEnrichR | R | false | false | 1,208 | r |
load(system.file("internal_db/oedb.rda", package = "oncoEnrichR"))
test_that("Ligand-receptor interactions - testing ", {
expect_error(
oncoEnrichR:::annotate_ligand_receptor_interactions(
qgenes = c("EGFR", "EGF")
)
)
expect_error(
oncoEnrichR:::annotate_ligand_receptor_interactions(
qg... |
#--------------------------------------------------------------------------------------
#
# explore the specificity based on physchem properties
#
#--------------------------------------------------------------------------------------
dxPhyschemSpecificityZtfiltered <- function(cutoff=0.5) {
printCurrentFunction()
... | /dxPhyschemSpecificityZtfiltered.R | no_license | rsjudson/armin | R | false | false | 2,955 | r | #--------------------------------------------------------------------------------------
#
# explore the specificity based on physchem properties
#
#--------------------------------------------------------------------------------------
dxPhyschemSpecificityZtfiltered <- function(cutoff=0.5) {
printCurrentFunction()
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sym_var.R
\name{sym.var}
\alias{sym.var}
\title{Symbolic Variable}
\usage{
sym.var(sym.data, number.sym.var)
}
\arguments{
\item{sym.data}{The symbolic data table}
\item{number.sym.var}{The number of the column for the variable (feature) tha... | /man/sym.var.Rd | no_license | cran/RSDA | R | false | true | 1,230 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sym_var.R
\name{sym.var}
\alias{sym.var}
\title{Symbolic Variable}
\usage{
sym.var(sym.data, number.sym.var)
}
\arguments{
\item{sym.data}{The symbolic data table}
\item{number.sym.var}{The number of the column for the variable (feature) tha... |
\name{VIR}
\alias{gapVIR}
\alias{gradxgapVIR}
\alias{gradygapVIR}
\alias{fpVIR}
\title{Nikaido Isoda Reformulation}
\description{
functions of the Nikaido Isoda Reformulation of the GNEP
}
\usage{
gapVIR(x, y, dimx, grobj, arggrobj, param=list(), echo=FALSE)
gradxgapVIR(x, y, dimx, grobj, arggrobj, heobj, argheobj,... | /man/util-VIR.Rd | no_license | cran/GNE | R | false | false | 2,402 | rd | \name{VIR}
\alias{gapVIR}
\alias{gradxgapVIR}
\alias{gradygapVIR}
\alias{fpVIR}
\title{Nikaido Isoda Reformulation}
\description{
functions of the Nikaido Isoda Reformulation of the GNEP
}
\usage{
gapVIR(x, y, dimx, grobj, arggrobj, param=list(), echo=FALSE)
gradxgapVIR(x, y, dimx, grobj, arggrobj, heobj, argheobj,... |
################################################################################
# Company : Stevens
# Course : Data Mining
# Purpose : Apply naive bayes to the “breast cancer dataset”
# First Name: Kunj
# Last Name : Desai
# ID : 1044511
# Date : 03/12/2020
#######################################... | /CS 513 KDD/Hw-4/Desai_Kunj_10444511_HW4.R | no_license | KunjDesai96/Stevens | R | false | false | 1,622 | r | ################################################################################
# Company : Stevens
# Course : Data Mining
# Purpose : Apply naive bayes to the “breast cancer dataset”
# First Name: Kunj
# Last Name : Desai
# ID : 1044511
# Date : 03/12/2020
#######################################... |
# Source shared function to retrieve source file and return subset of data.
source("download_subset_data.R")
plot1 <- function() {
# Read in data set.
data <- download_subset_data()
# Open PNG device for plot.
png(filename = "plot1.png", width = 480, height = 480, unit... | /plot1.R | no_license | laurenmc/ExData_Plotting1 | R | false | false | 586 | r | # Source shared function to retrieve source file and return subset of data.
source("download_subset_data.R")
plot1 <- function() {
# Read in data set.
data <- download_subset_data()
# Open PNG device for plot.
png(filename = "plot1.png", width = 480, height = 480, unit... |
library(tidyverse)
library(mgcv)
library(chron)
theme_set(theme_bw())
cb <- c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
# load WGOA data
d2 <- read.csv("data/2018 2019 catch.csv")
# combine with complete 2020 catch data!
d3 <- read.csv("data/all_cpue_2020.csv")
# add a ... | /scripts/cod_pollock_cpue_by_age.R | no_license | mikelitzow/seine-utilities | R | false | false | 3,639 | r | library(tidyverse)
library(mgcv)
library(chron)
theme_set(theme_bw())
cb <- c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
# load WGOA data
d2 <- read.csv("data/2018 2019 catch.csv")
# combine with complete 2020 catch data!
d3 <- read.csv("data/all_cpue_2020.csv")
# add a ... |
##This program creates plot3.png showing trends of PM2.5 over 1999-2008 time period
##Reading in the data
nei<-readRDS("exdata-data-NEI_data/summarySCC_PM25.rds")
scc<-readRDS("exdata-data-NEI_data/Source_Classification_Code.rds")
##Subsetting for Baltimore data
baltimore<-subset(nei, fips == "24510")
##Acquiring to... | /plot3.R | no_license | Nagateja/Exploratory-Data-Analysis | R | false | false | 881 | r | ##This program creates plot3.png showing trends of PM2.5 over 1999-2008 time period
##Reading in the data
nei<-readRDS("exdata-data-NEI_data/summarySCC_PM25.rds")
scc<-readRDS("exdata-data-NEI_data/Source_Classification_Code.rds")
##Subsetting for Baltimore data
baltimore<-subset(nei, fips == "24510")
##Acquiring to... |
library(data.table)
library(tidyverse)
library(glue)
library(bedr)
## Step 4 Convert this vcf to bed file for the masks
vcftools<-"/u/home/j/jessegar/vcftools-vcftools-2543f81/src/cpp/vcftools"
outputDir<-"/u/flashscratch/j/jessegar/FilteringResequenceHighP"
SGETaskID<-parse_integer(Sys.getenv("SGE_TASK_ID"))
vcfAllSit... | /filtering_resequenced_genomes/ResequenceFilterStep4AllSiteParser.R | no_license | JesseGarcia562/quercus_lobata_demographic_history | R | false | false | 1,402 | r | library(data.table)
library(tidyverse)
library(glue)
library(bedr)
## Step 4 Convert this vcf to bed file for the masks
vcftools<-"/u/home/j/jessegar/vcftools-vcftools-2543f81/src/cpp/vcftools"
outputDir<-"/u/flashscratch/j/jessegar/FilteringResequenceHighP"
SGETaskID<-parse_integer(Sys.getenv("SGE_TASK_ID"))
vcfAllSit... |
#Integer
x <- 2L
typeof(x)
#Double
y <- 2.5
typeof(y)
#Complex
z <- 3 + 2i
typeof(z)
#Character
a <- "A"
typeof(a)
#Logical
b <- T
typeof(b)
| /9-TypesOfVariables.R | no_license | JackMcKechnie/Udemy-Course-R-Programming-A-Z | R | false | false | 164 | r | #Integer
x <- 2L
typeof(x)
#Double
y <- 2.5
typeof(y)
#Complex
z <- 3 + 2i
typeof(z)
#Character
a <- "A"
typeof(a)
#Logical
b <- T
typeof(b)
|
category Network
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol)
を扱うライブラリです。
ヘッダなどメールのデータを扱うことはできません。
SMTP の実装は [[RFC:2821]] に基いています。
=== 使用例
==== とにかくメールを送る
SMTP を使ってメールを送るにはまず SMTP.start でセッションを開きます。
第一引数がサーバのアドレスで第二引数がポート番号です。
ブロックを使うと File.open と同じように終端処理を自動的にやってくれる
のでおすすめです。
require 'net/smtp'
Net:... | /refm/api/src/net/smtp.rd | no_license | snoozer05/doctree | R | false | false | 27,882 | rd | category Network
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol)
を扱うライブラリです。
ヘッダなどメールのデータを扱うことはできません。
SMTP の実装は [[RFC:2821]] に基いています。
=== 使用例
==== とにかくメールを送る
SMTP を使ってメールを送るにはまず SMTP.start でセッションを開きます。
第一引数がサーバのアドレスで第二引数がポート番号です。
ブロックを使うと File.open と同じように終端処理を自動的にやってくれる
のでおすすめです。
require 'net/smtp'
Net:... |
#' @name dgp_spsur
#' @rdname dgp_spsur
#'
#' @title Generation of a random dataset with a spatial SUR structure.
#'
#' @description
#' The purpose of the function \code{dgp_spsur} is to generate a random
#' dataset with the dimensions and spatial structure decided by the user.
#' This function may be usef... | /R/dgp_spSUR.R | no_license | rsbivand/spsur | R | false | false | 26,165 | r | #' @name dgp_spsur
#' @rdname dgp_spsur
#'
#' @title Generation of a random dataset with a spatial SUR structure.
#'
#' @description
#' The purpose of the function \code{dgp_spsur} is to generate a random
#' dataset with the dimensions and spatial structure decided by the user.
#' This function may be usef... |
# Simulate data
library(amt)
library(lubridate)
set.seed(123)
trk <- tibble(x = cumsum(rnorm(20)), y = cumsum(rnorm(20)),
ts = ymd_hm("2019-01-01 00:00") + hours(0:19))
t1 <- make_track(trk, x, y, ts)
s1 <- steps(t1)
r1 <- random_points(t1)
h1.1<- hr_mcp(t1)
h1.2 <- hr_kde(t1)
data(deer)
t2 <- deer[1:... | /amt/inst/tinytest/test_crs.R | no_license | akhikolla/InformationHouse | R | false | false | 973 | r | # Simulate data
library(amt)
library(lubridate)
set.seed(123)
trk <- tibble(x = cumsum(rnorm(20)), y = cumsum(rnorm(20)),
ts = ymd_hm("2019-01-01 00:00") + hours(0:19))
t1 <- make_track(trk, x, y, ts)
s1 <- steps(t1)
r1 <- random_points(t1)
h1.1<- hr_mcp(t1)
h1.2 <- hr_kde(t1)
data(deer)
t2 <- deer[1:... |
#' @title Plot a tab object
#' @description Plot a frequency or cumulative frequency table
#' @param x An object of class \code{tab}
#' @param fill Fill color for bars
#' @param size numeric. Size of bar text labels.
#' @param ... Parameters passed to a function
#' @importFrom stats reorder
#' @return a ggplot2 graph
#... | /R/plot.tab.R | permissive | Rkabacoff/qacr | R | false | false | 1,632 | r | #' @title Plot a tab object
#' @description Plot a frequency or cumulative frequency table
#' @param x An object of class \code{tab}
#' @param fill Fill color for bars
#' @param size numeric. Size of bar text labels.
#' @param ... Parameters passed to a function
#' @importFrom stats reorder
#' @return a ggplot2 graph
#... |
#This R code was created by Ed Ryan on 27th August 2020
#It builds three multinomial logistic regression models which will be used as part of a larger
#model that will simulate a simple cricket game. For simplicity we use the same set of values
#for the input covariates (Batting average, Powerplay and SpinBowler) ... | /Rcourse_Session4_ParameterEstimation.R | no_license | edmundryan/Rcourse_session4 | R | false | false | 6,233 | r | #This R code was created by Ed Ryan on 27th August 2020
#It builds three multinomial logistic regression models which will be used as part of a larger
#model that will simulate a simple cricket game. For simplicity we use the same set of values
#for the input covariates (Batting average, Powerplay and SpinBowler) ... |
## per treballar amb factors
xxx$sex <- as.factor(with(xxx, ifelse(sexe_b==1, "Male", "Female")))
xxx$sex <- relevel(xxx$sex, ref= "Male")
intervals(lm(lnimta_CCA ~ C(as.factor(sexe_b),base= 1), data = xxx))
intervals(lm(lnimta_CCA ~ sex, data = xxx))
## per llegir excel
dat <- readWorksheetFromFile( "./dat/Basedad... | /comandos.R | no_license | xxxjvila/rutines | R | false | false | 50,733 | r |
## per treballar amb factors
xxx$sex <- as.factor(with(xxx, ifelse(sexe_b==1, "Male", "Female")))
xxx$sex <- relevel(xxx$sex, ref= "Male")
intervals(lm(lnimta_CCA ~ C(as.factor(sexe_b),base= 1), data = xxx))
intervals(lm(lnimta_CCA ~ sex, data = xxx))
## per llegir excel
dat <- readWorksheetFromFile( "./dat/Basedad... |
## ---------------------------
##
## Purpose of script:
##
## Author: Ari-Pekka Jokinen
##
## Date Created: 2020-10-26
##
## Copyright (c) Ari-Pekka Jokinen, 2020
## Email: ari-pekka.jokinen@helsinki.fi
##
## ---------------------------
##
## Notes:
##
##
## ---------------------------
#
#
#
#
#... | /R/distGrid.R | no_license | aripekkj/protected_areas | R | false | false | 752 | r | ## ---------------------------
##
## Purpose of script:
##
## Author: Ari-Pekka Jokinen
##
## Date Created: 2020-10-26
##
## Copyright (c) Ari-Pekka Jokinen, 2020
## Email: ari-pekka.jokinen@helsinki.fi
##
## ---------------------------
##
## Notes:
##
##
## ---------------------------
#
#
#
#
#... |
# -*- tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
# vi: set ts=2 noet:
#
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing memb... | /inst/scripts/analysis/plots/hbonds/hydroxyl_sites/OHdonor_AHdist_morse_fit.R | no_license | momeara/RosettaFeatures | R | false | false | 6,847 | r | # -*- tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
# vi: set ts=2 noet:
#
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing memb... |
###############################################################################
## R LECTURE 2: Regression and Testing ##
## Quantitative Analysis - 2019 Spring 3/4 ##
###############################################################################
#
#
####... | /HW2/R_Lec-2_20190304.R | no_license | JustinBear99/QA | R | false | false | 6,615 | r | ###############################################################################
## R LECTURE 2: Regression and Testing ##
## Quantitative Analysis - 2019 Spring 3/4 ##
###############################################################################
#
#
####... |
##' QGIS Algorithm provided by GRASS r.in.lidar.info (grass7:r.in.lidar.info)
##'
##' @title QGIS algorithm r.in.lidar.info
##'
##' @param input `file` - LAS input file. Path to a file.
##' @param html `fileDestination` - LAS information. Path for new file.
##' @param GRASS_REGION_PARAMETER `extent` - GRASS GIS 7 regio... | /R/grass7_r_in_lidar_info.R | permissive | VB6Hobbyst7/r_package_qgis | R | false | false | 1,465 | r | ##' QGIS Algorithm provided by GRASS r.in.lidar.info (grass7:r.in.lidar.info)
##'
##' @title QGIS algorithm r.in.lidar.info
##'
##' @param input `file` - LAS input file. Path to a file.
##' @param html `fileDestination` - LAS information. Path for new file.
##' @param GRASS_REGION_PARAMETER `extent` - GRASS GIS 7 regio... |
page_inclusion <- function(...) {
djpr_tab_panel(
title = "Inclusion",
h1("Key groups"),
# tagList(
# "This page contains information about the labour force status of key groups of ",
# "Victorians, such as women, and young people. ",
# htmltools::tags$b("More information will be include... | /R/page_inclusion.R | permissive | monikasarder/djprlabourdash | R | false | false | 1,774 | r | page_inclusion <- function(...) {
djpr_tab_panel(
title = "Inclusion",
h1("Key groups"),
# tagList(
# "This page contains information about the labour force status of key groups of ",
# "Victorians, such as women, and young people. ",
# htmltools::tags$b("More information will be include... |
library(dplyr)
library(reshape2)
library(ggplot2)
library(plotly)
library(tidyr)
library(shiny)
intro <- tabPanel(
"Dashboard Overview",
h3(
id = "headers",
"This is a project that explores how inequality indicies have changed in
the USA from 1930 - 2015. The 'National Inequlity' tab explore... | /introTab.R | no_license | rajc90/Inequality-Analysis | R | false | false | 2,402 | r | library(dplyr)
library(reshape2)
library(ggplot2)
library(plotly)
library(tidyr)
library(shiny)
intro <- tabPanel(
"Dashboard Overview",
h3(
id = "headers",
"This is a project that explores how inequality indicies have changed in
the USA from 1930 - 2015. The 'National Inequlity' tab explore... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_get_default_credit_specification}
\alias{ec2_get_default_credit_specification}
\title{Describes the default credit option for CPU usage of a burstable
performance instance family}
\usage{
ec2_get_default_credit_spec... | /cran/paws.compute/man/ec2_get_default_credit_specification.Rd | permissive | TWarczak/paws | R | false | true | 1,380 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_get_default_credit_specification}
\alias{ec2_get_default_credit_specification}
\title{Describes the default credit option for CPU usage of a burstable
performance instance family}
\usage{
ec2_get_default_credit_spec... |
\name{hypervolume_prune}
\alias{hypervolume_prune}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Removes small hypervolumes from a HypervolumeList
}
\description{
Identifies hypervolumes characterized either by a number of uniformly random points or a volume below a user-specified value and re... | /man/hypervolume_prune.Rd | no_license | bblonder/hypervolume | R | false | false | 2,053 | rd | \name{hypervolume_prune}
\alias{hypervolume_prune}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Removes small hypervolumes from a HypervolumeList
}
\description{
Identifies hypervolumes characterized either by a number of uniformly random points or a volume below a user-specified value and re... |
\name{graph_predictions}
\alias{graph_predictions}
\title{
Scatterplot of observed and predicted batting averages
}
\description{
Scatterplot of observed and predicted batting averages
}
\usage{
graph_predictions(d2)
}
\arguments{
\item{d2}{
output from component_predict() function
}
}
\value{
ggplot2... | /man/graph_predictions.Rd | no_license | karthy257/BApredict | R | false | false | 479 | rd | \name{graph_predictions}
\alias{graph_predictions}
\title{
Scatterplot of observed and predicted batting averages
}
\description{
Scatterplot of observed and predicted batting averages
}
\usage{
graph_predictions(d2)
}
\arguments{
\item{d2}{
output from component_predict() function
}
}
\value{
ggplot2... |
################################################################################################
## Extract the environmental conditions for all grid cells in resolution of 200km;
## and then calculate the the mean of environmental conditions across 3*3 or 5*5 grid cells
################################################... | /Rcode/4_environments.R | no_license | Wubing-Xu/Global_tree_beta-diversity | R | false | false | 7,237 | r | ################################################################################################
## Extract the environmental conditions for all grid cells in resolution of 200km;
## and then calculate the the mean of environmental conditions across 3*3 or 5*5 grid cells
################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slab_functions.R
\name{read_vo1}
\alias{read_vo1}
\title{Title}
\usage{
read_vo1(vfile = "~/Dropbox/data/global/volcanoes/", limsx = c(-180, 180),
limsy = c(-90, 90), ppp = TRUE, to = NA)
}
\arguments{
\item{to}{}
}
\description{
Title
}
| /man/read_vo1.Rd | no_license | msandifo/slab | R | false | true | 318 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slab_functions.R
\name{read_vo1}
\alias{read_vo1}
\title{Title}
\usage{
read_vo1(vfile = "~/Dropbox/data/global/volcanoes/", limsx = c(-180, 180),
limsy = c(-90, 90), ppp = TRUE, to = NA)
}
\arguments{
\item{to}{}
}
\description{
Title
}
|
library(CARBayesST)
library(CARBayesdata)
library(sp)
library(tidyverse)
library(ggplot2)
library(spdep)
library(lubridate)
library(sf)
library(tmap)
library(janitor)
library(here)
library(ggridges)
library(rgdal)
library(broom)
library(car)
library(rmapshaper)
library(ggdist)
#### PRE-PROCESSING PARTY DATA ####
df <... | /methodology.R | no_license | caranvr/GIS-final-public | R | false | false | 41,041 | r | library(CARBayesST)
library(CARBayesdata)
library(sp)
library(tidyverse)
library(ggplot2)
library(spdep)
library(lubridate)
library(sf)
library(tmap)
library(janitor)
library(here)
library(ggridges)
library(rgdal)
library(broom)
library(car)
library(rmapshaper)
library(ggdist)
#### PRE-PROCESSING PARTY DATA ####
df <... |
/pla/inst/R.xtables/fun.R | no_license | ingted/R-Examples | R | false | false | 3,292 | r | ||
#==============================================================================
#Metric Sensitivity
#==============================================================================
#'Metric Sensitivity
#'
#'@param metrics.df = data frame of metric values for each station
#'@param upper.class = The site classification th... | /R/metric_sensitivity.R | no_license | InterstateCommissionPotomacRiverBasin/BIBI | R | false | false | 26,794 | r | #==============================================================================
#Metric Sensitivity
#==============================================================================
#'Metric Sensitivity
#'
#'@param metrics.df = data frame of metric values for each station
#'@param upper.class = The site classification th... |
library(MCMC4Extremes)
### Name: barcelos
### Title: 30-day maxima rainfall at Barcelos Station
### Aliases: barcelos
### Keywords: datasets
### ** Examples
data(barcelos)
hist(barcelos, main=NULL)
| /data/genthat_extracted_code/MCMC4Extremes/examples/barcelos.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 205 | r | library(MCMC4Extremes)
### Name: barcelos
### Title: 30-day maxima rainfall at Barcelos Station
### Aliases: barcelos
### Keywords: datasets
### ** Examples
data(barcelos)
hist(barcelos, main=NULL)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarize_pbp_data.R
\name{compute_turnover_rate}
\alias{compute_turnover_rate}
\title{Compute the turnover rate for a given period of pbp time}
\usage{
compute_turnover_rate(dat)
}
\arguments{
\item{dat}{pbp data}
}
\value{
turnover rate for... | /man/compute_turnover_rate.Rd | no_license | kburnham/tidynbadata | R | false | true | 985 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarize_pbp_data.R
\name{compute_turnover_rate}
\alias{compute_turnover_rate}
\title{Compute the turnover rate for a given period of pbp time}
\usage{
compute_turnover_rate(dat)
}
\arguments{
\item{dat}{pbp data}
}
\value{
turnover rate for... |
library(pheatmap)
library(ggplot)
library(magrittr)
library(dplyr)
library(reshape2)
library(readr)
library(OneR)
library(microbenchmark)
#path_to_pais <- "/Users/maxcummins/Dropbox/Doctorate/Manuscripts/Salmonella_AMR/SG17-135/analysis/abricate/abricate_PAIs.txt"
path_to_pais <- "/Users/maxcummins/Dropbox/Doctorate/M... | /scripts/SPI-analysis.R | no_license | maxlcummins/SG17-135 | R | false | false | 5,999 | r | library(pheatmap)
library(ggplot)
library(magrittr)
library(dplyr)
library(reshape2)
library(readr)
library(OneR)
library(microbenchmark)
#path_to_pais <- "/Users/maxcummins/Dropbox/Doctorate/Manuscripts/Salmonella_AMR/SG17-135/analysis/abricate/abricate_PAIs.txt"
path_to_pais <- "/Users/maxcummins/Dropbox/Doctorate/M... |
require(httr)
require(RCurl)
require(stringr)
aws_key = function() Sys.getenv('AWS_KEY')
aws_secret = function() Sys.getenv('AWS_SECRET_KEY')
# Miscellaneous functions to format time and date
now <- function() format(lubridate::now(), '%Y%m%dT%H%M%SZ')
today <- function() format(lubridate::today(), '%Y%m%d')
request... | /R/create_auth.R | no_license | TotallyBullshit/awsr | R | false | false | 8,567 | r | require(httr)
require(RCurl)
require(stringr)
aws_key = function() Sys.getenv('AWS_KEY')
aws_secret = function() Sys.getenv('AWS_SECRET_KEY')
# Miscellaneous functions to format time and date
now <- function() format(lubridate::now(), '%Y%m%dT%H%M%SZ')
today <- function() format(lubridate::today(), '%Y%m%d')
request... |
#!/usr/bin/env Rscript
####################
### vectors
####################
######## vectorized operations and recycling
nums <- c(10, 20, 30, 40)
mult <- c(10, -10)
print(nums * mult) # 100, -200, 300, 400
## single elements are length-1 vectors:
mult <- 100 # a length-1 vector
print(nums * mult) # 1000, 2000, 3... | /rstuff/crash_course.R | no_license | oneilsh/covid-19-dream | R | false | false | 12,365 | r | #!/usr/bin/env Rscript
####################
### vectors
####################
######## vectorized operations and recycling
nums <- c(10, 20, 30, 40)
mult <- c(10, -10)
print(nums * mult) # 100, -200, 300, 400
## single elements are length-1 vectors:
mult <- 100 # a length-1 vector
print(nums * mult) # 1000, 2000, 3... |
R.oo::setConstructorS3("ModelPoset",
function() { extend(Object(), "Object") },
abstract = T)
#' Topological ordering of models.
#'
#' Returns a topological ordering of models in the collection.
#'
#' @name getTopOrder
#' @export
#'
#' @param this the model poset object.
getTopOrd... | /R/ModelPoset.R | no_license | yuinityk/sBIC | R | false | false | 3,809 | r | R.oo::setConstructorS3("ModelPoset",
function() { extend(Object(), "Object") },
abstract = T)
#' Topological ordering of models.
#'
#' Returns a topological ordering of models in the collection.
#'
#' @name getTopOrder
#' @export
#'
#' @param this the model poset object.
getTopOrd... |
# Plot Files from other under index directory
#
library("dplyr")
library("ggplot2")
if(!exists("book_words")) {
book_words <- read.csv(file = "data/deepNLP.csv",
stringsAsFactors = FALSE)
}
plotWords <- function(lfile, corte = 0) {
doc <- subset(book_words,file... | /plotFiles.R | no_license | TheScientistBr/deep-NLP | R | false | false | 3,115 | r | # Plot Files from other under index directory
#
library("dplyr")
library("ggplot2")
if(!exists("book_words")) {
book_words <- read.csv(file = "data/deepNLP.csv",
stringsAsFactors = FALSE)
}
plotWords <- function(lfile, corte = 0) {
doc <- subset(book_words,file... |
## Download and unzip the data if zip or txt file does not exist
filename <- "electric_power_consumption.zip"
if (!file.exists(filename)){
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, destfile = "electric_power_consumption.zip")
unzip("ele... | /plot4.R | no_license | AmelieRu/ExData_Plotting1 | R | false | false | 1,940 | r | ## Download and unzip the data if zip or txt file does not exist
filename <- "electric_power_consumption.zip"
if (!file.exists(filename)){
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, destfile = "electric_power_consumption.zip")
unzip("ele... |
bivprob = function(rho, lower, upper = -lower, mean = 0) {
nu = 0
low = rep(as.double((lower - mean)), 2)
upp = rep(as.double((upper - mean)), 2)
if (any(lower == upper))
return(0)
infin = c(2, 2)
infin = as.integer(infin)
low = replace(low, low == -Inf, 0)
upp = replace(upp, upp == Inf, 0)
rho = as.double(... | /FADA/R/func.R | no_license | ingted/R-Examples | R | false | false | 10,833 | r | bivprob = function(rho, lower, upper = -lower, mean = 0) {
nu = 0
low = rep(as.double((lower - mean)), 2)
upp = rep(as.double((upper - mean)), 2)
if (any(lower == upper))
return(0)
infin = c(2, 2)
infin = as.integer(infin)
low = replace(low, low == -Inf, 0)
upp = replace(upp, upp == Inf, 0)
rho = as.double(... |
# constructor
# E.Blondel - 2013/06/09
#=======================
SDMX <- function(xmlObj){
schema <- SDMXSchema(xmlObj);
header <- SDMXHeader(xmlObj);
footer <- SDMXFooter(xmlObj);
new("SDMX",
xmlObj = xmlObj,
schema = schema,
header = header,
footer = footer);
}
#generics
if (!isGeneric("as.XML"... | /R/SDMX-methods.R | no_license | h-kipple/rsdmx | R | false | false | 3,069 | r | # constructor
# E.Blondel - 2013/06/09
#=======================
SDMX <- function(xmlObj){
schema <- SDMXSchema(xmlObj);
header <- SDMXHeader(xmlObj);
footer <- SDMXFooter(xmlObj);
new("SDMX",
xmlObj = xmlObj,
schema = schema,
header = header,
footer = footer);
}
#generics
if (!isGeneric("as.XML"... |
gets.log.like <-
function (thetain)
{
logcheck <- function (x) { ifelse(x > 0, logb(x), -1e+21) }
iter.count <- get(envir = .frame0, "iter.count") + 1
assign(envir = .frame0, inherits = !TRUE,"iter.count", iter.count )
model <- get(envir = .frame0, "model")
f.origparam <- model$f.origparam
dis... | /R/gets.log.like.R | no_license | anhnguyendepocen/SMRD | R | false | false | 2,705 | r | gets.log.like <-
function (thetain)
{
logcheck <- function (x) { ifelse(x > 0, logb(x), -1e+21) }
iter.count <- get(envir = .frame0, "iter.count") + 1
assign(envir = .frame0, inherits = !TRUE,"iter.count", iter.count )
model <- get(envir = .frame0, "model")
f.origparam <- model$f.origparam
dis... |
#' @title Compute the maximum diameter of the profile and its location
#'
#' @param image_profile a numeric 2D matrix. The binary matrix with the drawing cropped at its bounding box, as a result of get_vessel.bbox.
#' @param xx a dataframe. Melted profile matrix as a result of get_transforms.
#'
#' @return A list with ... | /R/get_max_diameter.R | permissive | kafetzakid/morphotype | R | false | false | 1,653 | r | #' @title Compute the maximum diameter of the profile and its location
#'
#' @param image_profile a numeric 2D matrix. The binary matrix with the drawing cropped at its bounding box, as a result of get_vessel.bbox.
#' @param xx a dataframe. Melted profile matrix as a result of get_transforms.
#'
#' @return A list with ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ecdfHT.R
\name{ecdfHT.draw}
\alias{ecdfHT.axes}
\alias{ecdfHT.draw}
\alias{ecdfHT.g}
\alias{ecdfHT.h}
\title{Graph and annotate an ecdfHT plot}
\usage{
ecdfHT.draw(transform.info, x, p, show.plot = TRUE, new.plot = FALSE,
show.ci ... | /man/ecdfHT.draw.Rd | no_license | cran/ecdfHT | R | false | true | 3,408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ecdfHT.R
\name{ecdfHT.draw}
\alias{ecdfHT.axes}
\alias{ecdfHT.draw}
\alias{ecdfHT.g}
\alias{ecdfHT.h}
\title{Graph and annotate an ecdfHT plot}
\usage{
ecdfHT.draw(transform.info, x, p, show.plot = TRUE, new.plot = FALSE,
show.ci ... |
\name{OUwie}
\alias{OUwie}
\title{Generalized Hansen models}
\description{Fits generalized Ornstein-Uhlenbeck-based Hansen models of continuous characters evolving under discrete selective regimes.}
\usage{
OUwie(phy, data, model=c("BM1","BMS","OU1","OUM","OUMV","OUMA","OUMVA",
"TrendyM","TrendyMS"), simmap.tree=FALSE,... | /man/OUwie.Rd | no_license | chloerobins/OUwie | R | false | false | 13,307 | rd | \name{OUwie}
\alias{OUwie}
\title{Generalized Hansen models}
\description{Fits generalized Ornstein-Uhlenbeck-based Hansen models of continuous characters evolving under discrete selective regimes.}
\usage{
OUwie(phy, data, model=c("BM1","BMS","OU1","OUM","OUMV","OUMA","OUMVA",
"TrendyM","TrendyMS"), simmap.tree=FALSE,... |
# Script Description --------------------
# This script creates a stacked area graph of multi-temporal land cover data, particularly the land cover maps produced
# using Landsat data at four time-points: 1988, 2000, 2010, and 2015 for Mindoro Island, Philippines. The land cover maps
# consist of 8 categories including:... | /scripts/R_Net-Change-Stacked-Area_Combined.R | no_license | dondealban/mindoro | R | false | false | 11,413 | r | # Script Description --------------------
# This script creates a stacked area graph of multi-temporal land cover data, particularly the land cover maps produced
# using Landsat data at four time-points: 1988, 2000, 2010, and 2015 for Mindoro Island, Philippines. The land cover maps
# consist of 8 categories including:... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_td.R
\name{create_td}
\alias{create_td}
\title{Create Topics Docs JSON}
\usage{
create_td(x, count = 15)
}
\arguments{
\item{x}{A doc topic matrix.}
\item{count}{**optional** Number of documents per document to store, default=15)}
}
\... | /man/create_td.Rd | no_license | ucdavisdatalab/ldaviewer | R | false | true | 664 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_td.R
\name{create_td}
\alias{create_td}
\title{Create Topics Docs JSON}
\usage{
create_td(x, count = 15)
}
\arguments{
\item{x}{A doc topic matrix.}
\item{count}{**optional** Number of documents per document to store, default=15)}
}
\... |
# simulate 100 intervals and plot them.
results <- CIsim(n=20, samples=100, estimand=500,
rdist=rnorm, args=list(mean=500,sd=100),
method=ci, method.args=list(sd=100))
coverPlot <- xYplot(Cbind(estimate,lower,upper) ~ sample, results,
groups=cover, col=c('black','gray40'),cap=0,lwd=2,pch=16)
| /inst/snippet/CI-vis.R | no_license | cran/fastR | R | false | false | 297 | r | # simulate 100 intervals and plot them.
results <- CIsim(n=20, samples=100, estimand=500,
rdist=rnorm, args=list(mean=500,sd=100),
method=ci, method.args=list(sd=100))
coverPlot <- xYplot(Cbind(estimate,lower,upper) ~ sample, results,
groups=cover, col=c('black','gray40'),cap=0,lwd=2,pch=16)
|
template_file = 'run_compute_exceedance_rates_at_epistemic_uncertainty_RUNDIR_PERCENTILE_LOWER_UPPER.sh'
template_script = readLines(template_file)
rundir = 'ptha18-BunburyBusseltonRevised-sealevel60cm'
# Determine the number of domains in the multidomain by counting depth raster files in one case.
testfile = Sys.glo... | /misc/SW_WA_2021_2024/bunbury_busselton/analysis/probabilistic_inundation/make_exceedance_rate_jobs.R | permissive | GeoscienceAustralia/ptha | R | false | false | 1,567 | r | template_file = 'run_compute_exceedance_rates_at_epistemic_uncertainty_RUNDIR_PERCENTILE_LOWER_UPPER.sh'
template_script = readLines(template_file)
rundir = 'ptha18-BunburyBusseltonRevised-sealevel60cm'
# Determine the number of domains in the multidomain by counting depth raster files in one case.
testfile = Sys.glo... |
# Is normality testing 'essentially useless'?
#https://stats.stackexchange.com/questions/2492/is-normality-testing-essentially-useless
#The last line checks which fraction of the simulations for every
#sample size deviate significantly from normality.
#So in 83% of the cases, a sample of 5000 observations deviate... | /Livro de Estatistica Basica/Teste de normalidade.R | no_license | DATAUNIRIO/Modelos_Basicos_e_Testes | R | false | false | 2,440 | r |
# Is normality testing 'essentially useless'?
#https://stats.stackexchange.com/questions/2492/is-normality-testing-essentially-useless
#The last line checks which fraction of the simulations for every
#sample size deviate significantly from normality.
#So in 83% of the cases, a sample of 5000 observations deviate... |
Restore <-
function (break_point, gold_std)
{
if (break_point > 0) {
if (break_point == 1) {
alpha = read.table("alpha.txt")
count = length(alpha[, 1])
k = count
x = 0
while (is.na(x) == FALSE) {
x = sum(alpha[k, ])
... | /src/R/HSROC/R/Restore.R | no_license | bwallace/OpenMeta-analyst- | R | false | false | 9,462 | r | Restore <-
function (break_point, gold_std)
{
if (break_point > 0) {
if (break_point == 1) {
alpha = read.table("alpha.txt")
count = length(alpha[, 1])
k = count
x = 0
while (is.na(x) == FALSE) {
x = sum(alpha[k, ])
... |
#' Create favicons from package logo
#'
#' This function auto-detects the location of your package logo (with the name
#' `logo.svg` (recommended format) or `logo.png`) and runs it through the
#' <https://realfavicongenerator.net> API to build a complete set of favicons
#' with different sizes, as needed for modern web... | /R/build-favicons.R | permissive | isabella232/pkgdown | R | false | false | 3,928 | r | #' Create favicons from package logo
#'
#' This function auto-detects the location of your package logo (with the name
#' `logo.svg` (recommended format) or `logo.png`) and runs it through the
#' <https://realfavicongenerator.net> API to build a complete set of favicons
#' with different sizes, as needed for modern web... |
# functions to manipulate the estimation model.
#' Change dataset from OM into format for EM
#' @param OM_datfile Filename of the datfile produced by the OM within the
#' EM_dir.
#' @param EM_datfile Filename of the datfile from the original EM within the
#' EM_dir.
#' @param EM_dir Absolute or relative path to the ... | /R/manipulate_EM.R | no_license | doering-kat/SSMSE | R | false | false | 12,696 | r | # functions to manipulate the estimation model.
#' Change dataset from OM into format for EM
#' @param OM_datfile Filename of the datfile produced by the OM within the
#' EM_dir.
#' @param EM_datfile Filename of the datfile from the original EM within the
#' EM_dir.
#' @param EM_dir Absolute or relative path to the ... |
test_that("Rescaling x coordinates works", {
dimensions <- list(pitch_opta, pitch_wyscout, pitch_statsbomb, pitch_international)
expect_equal_rescaled_x <- function(dim1, dim2) {
rescaler <- rescale_coordinates(pitch_opta, pitch_international)
x_dimensions <- c("length", "penalty_box_length", "penalty_spo... | /tests/testthat/test-rescale-coordinates.R | permissive | RobWHickman/ggsoccer | R | false | false | 1,265 | r | test_that("Rescaling x coordinates works", {
dimensions <- list(pitch_opta, pitch_wyscout, pitch_statsbomb, pitch_international)
expect_equal_rescaled_x <- function(dim1, dim2) {
rescaler <- rescale_coordinates(pitch_opta, pitch_international)
x_dimensions <- c("length", "penalty_box_length", "penalty_spo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spinBayes-package.R
\docType{package}
\name{spinBayes-package}
\alias{spinBayes-package}
\title{Semi-Parametric Gene-Environment Interaction via Bayesian Variable Selection}
\description{
Within the Bayesian framework, we propose a par... | /fuzzedpackages/spinBayes/man/spinBayes-package.Rd | no_license | akhikolla/testpackages | R | false | true | 3,994 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spinBayes-package.R
\docType{package}
\name{spinBayes-package}
\alias{spinBayes-package}
\title{Semi-Parametric Gene-Environment Interaction via Bayesian Variable Selection}
\description{
Within the Bayesian framework, we propose a par... |
#' Dirichlet multinomial GLM likelihood ratio test for a single cluster
#'
#' @param xFull [samples] x [covariates] matrix for the alternative model
#' @param xNull [samples] x [covariates] matrix for the null model
#' @param y [samples] x [introns] matrix of intron usage counts
#' @param concShape Gamma shape parame... | /other_ideas/dm_glm_heavy_tail.R | no_license | rmagoglia/leafcutter | R | false | false | 3,167 | r |
#' Dirichlet multinomial GLM likelihood ratio test for a single cluster
#'
#' @param xFull [samples] x [covariates] matrix for the alternative model
#' @param xNull [samples] x [covariates] matrix for the null model
#' @param y [samples] x [introns] matrix of intron usage counts
#' @param concShape Gamma shape parame... |
context("Update a dataset")
if (run.integration.tests) {
with_test_authentication({
with(test.dataset(df), {
test_that("Can update numeric variable with values", {
ds$v3 <- 9:28
test <- as.vector(ds$v3) - df$v3
expect_true(all(test == 1))
... | /tests/testthat/test-update.R | no_license | digideskio/rcrunch | R | false | false | 3,770 | r | context("Update a dataset")
if (run.integration.tests) {
with_test_authentication({
with(test.dataset(df), {
test_that("Can update numeric variable with values", {
ds$v3 <- 9:28
test <- as.vector(ds$v3) - df$v3
expect_true(all(test == 1))
... |
#### FIRST LOOK of df_6 ####
str(df_6_camp_event)
summary(df_6_camp_event)
#### START CLEANING df_6 ####
df_6_camp_event_clean <- df_6_camp_event
#### CLEANING DATA TYPES in df_6 ####
## formatting dates and times ##
df_6_camp_event_clean <- df_6_camp_event_clean %>%
mutate(EVENT_DATETIME = as.POSIXct(EVENT_DATE... | /script/C06_preparation_df6.R | no_license | gmuoio/Digital_and_Web_Marketing | R | false | false | 15,191 | r | #### FIRST LOOK of df_6 ####
str(df_6_camp_event)
summary(df_6_camp_event)
#### START CLEANING df_6 ####
df_6_camp_event_clean <- df_6_camp_event
#### CLEANING DATA TYPES in df_6 ####
## formatting dates and times ##
df_6_camp_event_clean <- df_6_camp_event_clean %>%
mutate(EVENT_DATETIME = as.POSIXct(EVENT_DATE... |
#' Get all answer options for a question in a survey
#'
#' (This convenience function is not directly mapped to a remote procedure.)
#'
#' @param questionID ID of the question
# [LimeSurvey API BUG]
#' @param lang Language code for the survey language (\strong{Note:} The API expects
#' one of the survey languages as ... | /R/ls_getAnswerOptions.R | permissive | k127/LimeRick | R | false | false | 1,948 | r | #' Get all answer options for a question in a survey
#'
#' (This convenience function is not directly mapped to a remote procedure.)
#'
#' @param questionID ID of the question
# [LimeSurvey API BUG]
#' @param lang Language code for the survey language (\strong{Note:} The API expects
#' one of the survey languages as ... |
library(splitr)
library(dplyr)
library(RPostgres)
library(DBI)
library(purrr)
library(furrr)
library(future)
devtools::load_all()
# Load elements to database
con <- dbConnect(drv=RPostgres::Postgres(),
user=Sys.getenv('USER'),
password=Sys.getenv('PASSWORD'),
host=Sy... | /examples/distribute_computing_ec2.R | permissive | vrathi0/dirtywind | R | false | false | 5,374 | r | library(splitr)
library(dplyr)
library(RPostgres)
library(DBI)
library(purrr)
library(furrr)
library(future)
devtools::load_all()
# Load elements to database
con <- dbConnect(drv=RPostgres::Postgres(),
user=Sys.getenv('USER'),
password=Sys.getenv('PASSWORD'),
host=Sy... |
### R Skript zu "Data I/O"
### Kurs "Einführung in die moderne Datenanalyse mit R"
### Datum: Februar 2020
### Autor: The R Bootcamp
### Daten von Festplatte lesen ----------------------------
# Finde die Datei Tourismus.csv auf deinem Computer.
# Lese die Datei mittels read.csv() ein. Denke an den Auto-Complete Tr... | /TheRBootcamp/.Rproj.user/F47E2A59/sources/s-147F6DF9/72E3282F-contents | no_license | therbootcamp/EDA_2021Sep | R | false | false | 1,231 | ### R Skript zu "Data I/O"
### Kurs "Einführung in die moderne Datenanalyse mit R"
### Datum: Februar 2020
### Autor: The R Bootcamp
### Daten von Festplatte lesen ----------------------------
# Finde die Datei Tourismus.csv auf deinem Computer.
# Lese die Datei mittels read.csv() ein. Denke an den Auto-Complete Tr... | |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{get_datasets}
\alias{get_datasets}
\title{Get a data frame with information on all available datasets.}
\usage{
get_datasets(...)
}
\arguments{
\item{...}{Additional parameters passed to \code{data.frame} (e.g.
stringsAsFactors =... | /man/get_datasets.Rd | no_license | kevin11h/OECD | R | false | true | 718 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{get_datasets}
\alias{get_datasets}
\title{Get a data frame with information on all available datasets.}
\usage{
get_datasets(...)
}
\arguments{
\item{...}{Additional parameters passed to \code{data.frame} (e.g.
stringsAsFactors =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/globalstd.R
\name{getcorcluster}
\alias{getcorcluster}
\title{Get Pseudo-Spectrum as peaks cluster based on correlation analysis.}
\usage{
getcorcluster(list, corcutoff = 0.9, rtcutoff = 10, accuracy = 4)
}
\arguments{
\item{list}{a list with... | /man/getcorcluster.Rd | no_license | yufree/pmd | R | false | true | 745 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/globalstd.R
\name{getcorcluster}
\alias{getcorcluster}
\title{Get Pseudo-Spectrum as peaks cluster based on correlation analysis.}
\usage{
getcorcluster(list, corcutoff = 0.9, rtcutoff = 10, accuracy = 4)
}
\arguments{
\item{list}{a list with... |
## import required libraries
library("here")
library("SpatialExperiment")
library("scran")
library("scater")
library("dplyr")
library("spatialLIBD")
library("sessioninfo")
library("tidyr")
## Load basic SPE data
spe <- readRDS(
here::here(
"processed-data", "07_spot_qc", "spe_wholegenome_postqc.rds"
)
... | /code/09_pathology_vs_BayesSpace/02_pathology_thresholds.R | no_license | LieberInstitute/Visium_SPG_AD | R | false | false | 3,692 | r | ## import required libraries
library("here")
library("SpatialExperiment")
library("scran")
library("scater")
library("dplyr")
library("spatialLIBD")
library("sessioninfo")
library("tidyr")
## Load basic SPE data
spe <- readRDS(
here::here(
"processed-data", "07_spot_qc", "spe_wholegenome_postqc.rds"
)
... |
normalise <- function(x) {
x / sum(x)
}
| /R/normalise.R | permissive | pmcharrison/seqopt | R | false | false | 42 | r | normalise <- function(x) {
x / sum(x)
}
|
## Dependencies
library(shiny)
library(leaflet)
source('BaseR.R') ## Source of all the photos and such
ui <- fluidPage(
titlePanel('World Tour 2018'), ## title
fluidRow(
column(3,
h4('Trips'), ## Subtitle
selectInput('trips','Choose Trip', ## Dropdown
... | /World Tour/ui.R | no_license | jnt0009/World-Tour | R | false | false | 683 | r |
## Dependencies
library(shiny)
library(leaflet)
source('BaseR.R') ## Source of all the photos and such
ui <- fluidPage(
titlePanel('World Tour 2018'), ## title
fluidRow(
column(3,
h4('Trips'), ## Subtitle
selectInput('trips','Choose Trip', ## Dropdown
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.