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 |
|---|---|---|---|---|---|---|---|---|---|
CensReg.SMN <- function(cc, x, y, LS=NULL, nu=3, delta=NULL, cens="left", dist="T", show.envelope="FALSE", error=0.0001,iter.max=300)
{
if(cens=="left"){cens = 1}
if(cens=="right"){cens = 2}
if(cens=="interval"){cens = 3}
type = dist
namesx <- ('x1 ')
if(ncol(as.matrix(x))>1)
{
for(i ... | /R/CensRegSMN.r | no_license | cran/SMNCensReg | R | false | false | 4,480 | r | CensReg.SMN <- function(cc, x, y, LS=NULL, nu=3, delta=NULL, cens="left", dist="T", show.envelope="FALSE", error=0.0001,iter.max=300)
{
if(cens=="left"){cens = 1}
if(cens=="right"){cens = 2}
if(cens=="interval"){cens = 3}
type = dist
namesx <- ('x1 ')
if(ncol(as.matrix(x))>1)
{
for(i ... |
require(shiny)
require(lubridate)
if (!require('openfda') ) {
devtools::install_github("ropenhealth/openfda")
library(openfda)
}
source('sourcedir.R')
simpleCap <- function(x) {
s <- tolower(x)
s <- strsplit(s, " ")[[1]]
first <- paste(toupper(substring(s[1], 1, 1)), substring(s[1], 2),
se... | /devicereports/server.R | no_license | jonathanglevine/openfdashinyapps | R | false | false | 15,612 | r | require(shiny)
require(lubridate)
if (!require('openfda') ) {
devtools::install_github("ropenhealth/openfda")
library(openfda)
}
source('sourcedir.R')
simpleCap <- function(x) {
s <- tolower(x)
s <- strsplit(s, " ")[[1]]
first <- paste(toupper(substring(s[1], 1, 1)), substring(s[1], 2),
se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corrtests.R
\name{test2r.steigerz2}
\alias{test2r.steigerz2}
\title{Test the difference between two dependent correlations with the the
Steiger's z2 method}
\usage{
test2r.steigerz2(rjk, rhm, rjh, rkh, rkm, rjm, n, twotailed = TRUE)
}
\argume... | /man/test2r.steigerz2.Rd | no_license | anhnguyendepocen/bcdstats | R | false | true | 5,061 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corrtests.R
\name{test2r.steigerz2}
\alias{test2r.steigerz2}
\title{Test the difference between two dependent correlations with the the
Steiger's z2 method}
\usage{
test2r.steigerz2(rjk, rhm, rjh, rkh, rkm, rjm, n, twotailed = TRUE)
}
\argume... |
## Analyzing patch variability using vis_model
## written by Zach Quinlan for Ben Scott
## 10/22/2019
# READING -- libraries ------------------------------------------------------
library(tidyverse)
library(pavo)
library(phytools)
library(furrr)
library(future)
# SETTING CORES -- for parrelelizing code -------------... | /pipelines/Birds.R | no_license | Primordial-Haggis/birds_misc_R_Scripts | R | false | false | 2,518 | r | ## Analyzing patch variability using vis_model
## written by Zach Quinlan for Ben Scott
## 10/22/2019
# READING -- libraries ------------------------------------------------------
library(tidyverse)
library(pavo)
library(phytools)
library(furrr)
library(future)
# SETTING CORES -- for parrelelizing code -------------... |
library(rioja)
### Name: inkspot
### Title: Two-way ordered bubble plot of a species by sites data table
### Aliases: inkspot
### Keywords: hplot
### ** Examples
data(SWAP)
mx <- apply(SWAP$spec, 2, max)
spec <- SWAP$spec[, mx > 10]
#basic plot of data with legend
inkspot(spec, cex.axis=0.6)
#order sites by pH
pH ... | /data/genthat_extracted_code/rioja/examples/inkspot.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 781 | r | library(rioja)
### Name: inkspot
### Title: Two-way ordered bubble plot of a species by sites data table
### Aliases: inkspot
### Keywords: hplot
### ** Examples
data(SWAP)
mx <- apply(SWAP$spec, 2, max)
spec <- SWAP$spec[, mx > 10]
#basic plot of data with legend
inkspot(spec, cex.axis=0.6)
#order sites by pH
pH ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parmsurvfit.R
\docType{data}
\name{aggressive}
\alias{aggressive}
\title{Data on time until drivers honked their horn when being blocked from an intersection}
\format{A data frame with 57 rows and 2 variables:
\describe{
\item{seconds}{Numb... | /parmsurvfit/man/aggressive.Rd | no_license | shannonpileggi/SP18--RSurvival | R | false | true | 1,067 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parmsurvfit.R
\docType{data}
\name{aggressive}
\alias{aggressive}
\title{Data on time until drivers honked their horn when being blocked from an intersection}
\format{A data frame with 57 rows and 2 variables:
\describe{
\item{seconds}{Numb... |
# 26- Additional calculations for clustering.R
#
# 26-Total_Exp.R
#
# Copyright © 2018:Arin Shahbazian
# Licence: GPL-3
#
rm(list=ls())
starttime <- proc.time()
cat("\n\n================ Total =====================================\n")
library(yaml)
Settings <- yaml.load_file("Settings.yaml")
library(readxl)
lib... | /R/Archive/Other Codes/62-FEI Poverty line for each province.R | no_license | IPRCIRI/IRHEIS | R | false | false | 10,840 | r | # 26- Additional calculations for clustering.R
#
# 26-Total_Exp.R
#
# Copyright © 2018:Arin Shahbazian
# Licence: GPL-3
#
rm(list=ls())
starttime <- proc.time()
cat("\n\n================ Total =====================================\n")
library(yaml)
Settings <- yaml.load_file("Settings.yaml")
library(readxl)
lib... |
#1
# Print the first rows of the data
comics
# Check levels of align
levels(comics$align)
# Check the levels of gender
levels(comics$gender)
# Create a 2-way contingency table
table(comics$align, comics$gender) | /Exploratory Analysis in R/exploring categorical data/1.R | no_license | Pranav-Polavarapu/Datacamp-Data-Scientist-with-R-Track- | R | false | false | 226 | r | #1
# Print the first rows of the data
comics
# Check levels of align
levels(comics$align)
# Check the levels of gender
levels(comics$gender)
# Create a 2-way contingency table
table(comics$align, comics$gender) |
#' Plot a GGB object
#'
#' Uses image function from the \pkg{Matrix} R package.
#'
#' @param x ggb object as returned by \code{\link{ggb}}
#' @param subset which lambda values to plot, expressed as a subset of indices,
#' between 1 and \code{length(x$Sig)}
#' @param ... additional arguments to pass to \code{Matr... | /R/plot.ggb.R | no_license | jacobbien/ggb | R | false | false | 1,985 | r | #' Plot a GGB object
#'
#' Uses image function from the \pkg{Matrix} R package.
#'
#' @param x ggb object as returned by \code{\link{ggb}}
#' @param subset which lambda values to plot, expressed as a subset of indices,
#' between 1 and \code{length(x$Sig)}
#' @param ... additional arguments to pass to \code{Matr... |
#' Report status of workflowr project
#'
#' \code{wflow_status} reports the analysis files that require user action.
#'
#' \code{wflow_status} reports analysis files with one of the following
#' statuses:
#'
#' \itemize{
#'
#' \item \bold{Mod}: Modified file. Any published file that has been modified
#' since the last ... | /R/wflow_status.R | permissive | workflowr/workflowr | R | false | false | 12,040 | r | #' Report status of workflowr project
#'
#' \code{wflow_status} reports the analysis files that require user action.
#'
#' \code{wflow_status} reports analysis files with one of the following
#' statuses:
#'
#' \itemize{
#'
#' \item \bold{Mod}: Modified file. Any published file that has been modified
#' since the last ... |
#!/usr/bin/env Rscript
suppressPackageStartupMessages(library(dplyr))
# help from:
# https://github.com/LCBC-UiO/ggsegExtra/blob/master/vignettes/customatlas3d.Rmd
# https://github.com/ThomasYeoLab/CBIG
# not in CRAN. need to pull from github
# remotes::install_github('LCBC-UiO/ggsegExtra')
# remotes::install_git... | /mkggseg_Y100N7.R | no_license | LabNeuroCogDevel/mkggseg_atlas | R | false | false | 2,173 | r | #!/usr/bin/env Rscript
suppressPackageStartupMessages(library(dplyr))
# help from:
# https://github.com/LCBC-UiO/ggsegExtra/blob/master/vignettes/customatlas3d.Rmd
# https://github.com/ThomasYeoLab/CBIG
# not in CRAN. need to pull from github
# remotes::install_github('LCBC-UiO/ggsegExtra')
# remotes::install_git... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_use/json/code/r/totEXP__sop__sex__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 1,671 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(1.13196051499162e-72, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615833559-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 270 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(1.13196051499162e-72, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) |
#Install the R package arules
# install.packages("arules");
#load the arules package
library("arules");
#movies <- read.csv("~/programme/data_mining/data/movies.csv", sep=";")
movies<-read.transactions(file="~/programme/data_mining/data/movies.csv", rm.duplicates= FALSE, format="single",sep=";",cols =c(1,2))
inspect... | /r_scripts/Movies/Movies.R | no_license | gjaehrling/gbdmp | R | false | false | 647 | r | #Install the R package arules
# install.packages("arules");
#load the arules package
library("arules");
#movies <- read.csv("~/programme/data_mining/data/movies.csv", sep=";")
movies<-read.transactions(file="~/programme/data_mining/data/movies.csv", rm.duplicates= FALSE, format="single",sep=";",cols =c(1,2))
inspect... |
## ----global_options, include=FALSE--------------------------------------------
library(knitr)
opts_chunk$set(fig.width=6, fig.height=3, fig.path='figures/surv-', warning=FALSE)
## ---- message = FALSE, eval = requireNamespace("survival", quietly = TRUE)----
library(ggfortify)
library(survival)
fit <- survfit(Surv(ti... | /inst/doc/plot_surv.R | no_license | cran/ggfortify | R | false | false | 1,131 | r | ## ----global_options, include=FALSE--------------------------------------------
library(knitr)
opts_chunk$set(fig.width=6, fig.height=3, fig.path='figures/surv-', warning=FALSE)
## ---- message = FALSE, eval = requireNamespace("survival", quietly = TRUE)----
library(ggfortify)
library(survival)
fit <- survfit(Surv(ti... |
library("shiny")
library("ggplot2")
library("dplyr")
function(input, output) {
# getFilteredBirthDt <- function() {
# message("filtered birth dt function has been called with ", input$period)
#
# readRDS("cleaned_birth_data.rds") %>%
# filter(year >= input$period[1] & year <= ... | /Meetup_2017_09_21/eu_births_shiny_app/server.R | no_license | judashgriff/meetup-presentations_budapest | R | false | false | 936 | r | library("shiny")
library("ggplot2")
library("dplyr")
function(input, output) {
# getFilteredBirthDt <- function() {
# message("filtered birth dt function has been called with ", input$period)
#
# readRDS("cleaned_birth_data.rds") %>%
# filter(year >= input$period[1] & year <= ... |
function (probabilities, n)
{
e <- get("data.env", .GlobalEnv)
e[["sample_int_replace"]][[length(e[["sample_int_replace"]]) +
1]] <- list(probabilities = probabilities, n = n)
.Call("_xyz_sample_int_replace", probabilities, n)
}
| /valgrind_test_dir/sample_int_replace-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 251 | r | function (probabilities, n)
{
e <- get("data.env", .GlobalEnv)
e[["sample_int_replace"]][[length(e[["sample_int_replace"]]) +
1]] <- list(probabilities = probabilities, n = n)
.Call("_xyz_sample_int_replace", probabilities, n)
}
|
truncatevector = function(V, left = 0, right = 100) {
W = V[V >= left & V <= right]
return(W)
}
| /R/truncatevector.R | no_license | cran/agrmt | R | false | false | 100 | r | truncatevector = function(V, left = 0, right = 100) {
W = V[V >= left & V <= right]
return(W)
}
|
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.77448001762435e+180, 1.97274569258754e-154, 1.44017975025437e-303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(3L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist)
str(result) | /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/1615840034-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 320 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.77448001762435e+180, 1.97274569258754e-154, 1.44017975025437e-303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(3L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist)
str(result) |
Download_mito <- function(taxon, folder=NULL, minlength=2001, maxlength=80000, custom_query=NULL, setwd=NULL){
if(!is.null(setwd)){logfile <- paste(setwd, "/log.txt", sep="")} else {logfile <- "log.txt"}
cat(paste(Sys.time(), " - Downloading Miochondrial Genomes from GenBank\n\n"), file=logfile, sep="", append=T)
i... | /refLib/scripts/PrimerMiner/Download_mito.R | no_license | maxfarrell/eDNAcamtrap | R | false | false | 2,210 | r | Download_mito <- function(taxon, folder=NULL, minlength=2001, maxlength=80000, custom_query=NULL, setwd=NULL){
if(!is.null(setwd)){logfile <- paste(setwd, "/log.txt", sep="")} else {logfile <- "log.txt"}
cat(paste(Sys.time(), " - Downloading Miochondrial Genomes from GenBank\n\n"), file=logfile, sep="", append=T)
i... |
#******* Group information *******
#Group :
#Please rename this file to Group_.R
#Please write your code in each block.
#******* end of Group information *******
#install.packages("epiDisplay")
library(epiDisplay)
library(data.table)
library(caret)
#******* 1. Download data and do some data management tasks ******... | /2017_02/PracticalBigDataAnalysis/GroupExercise/GroupExercise2/Group_7.R | no_license | tnfsh810124/Courses | R | false | false | 2,196 | r | #******* Group information *******
#Group :
#Please rename this file to Group_.R
#Please write your code in each block.
#******* end of Group information *******
#install.packages("epiDisplay")
library(epiDisplay)
library(data.table)
library(caret)
#******* 1. Download data and do some data management tasks ******... |
library(poker)
### Name: dotHighcardCompare
### Title: dotHighcardCompare
### Aliases: dotHighcardCompare
### ** Examples
dotHighcardCompare(matrix(c(2,4,5,6,7,13,14,2,3,5,6,7,13,14),2,7,byrow=TRUE))
dotHighcardCompare(matrix(c(2,3,5,6,7,13,14,2,3,5,6,7,13,14),2,7,byrow=TRUE))
| /data/genthat_extracted_code/poker/examples/dotHighcardCompare.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 285 | r | library(poker)
### Name: dotHighcardCompare
### Title: dotHighcardCompare
### Aliases: dotHighcardCompare
### ** Examples
dotHighcardCompare(matrix(c(2,4,5,6,7,13,14,2,3,5,6,7,13,14),2,7,byrow=TRUE))
dotHighcardCompare(matrix(c(2,3,5,6,7,13,14,2,3,5,6,7,13,14),2,7,byrow=TRUE))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/facebook.R
\name{fb_ads}
\alias{fb_ads}
\title{Facebook Ads API}
\usage{
fb_ads(
token,
which,
start = Sys.Date() - 31,
end = Sys.Date(),
fields = NA,
api_version = "v8.0",
process = TRUE
)
}
\arguments{
\item{token}{Character. ... | /man/fb_ads.Rd | no_license | alexandereric995/lares | R | false | true | 2,051 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/facebook.R
\name{fb_ads}
\alias{fb_ads}
\title{Facebook Ads API}
\usage{
fb_ads(
token,
which,
start = Sys.Date() - 31,
end = Sys.Date(),
fields = NA,
api_version = "v8.0",
process = TRUE
)
}
\arguments{
\item{token}{Character. ... |
logLikHmm <- function(y,par) {
#
# Function logLikHmm. To calculate the log likelihood of a sequence,
# or collection (list) of sequences, of observations which come
# from a hidden Markov model with discrete non-parametric observation
# distributions. These distributions are specified by a matrix
# Rho = [rho_ij] wh... | /hmm.discnp/R/logLikHmm.R | no_license | ingted/R-Examples | R | false | false | 947 | r | logLikHmm <- function(y,par) {
#
# Function logLikHmm. To calculate the log likelihood of a sequence,
# or collection (list) of sequences, of observations which come
# from a hidden Markov model with discrete non-parametric observation
# distributions. These distributions are specified by a matrix
# Rho = [rho_ij] wh... |
## this creates a special "matrix", which is really a list containing functions to set and get the
## matrix values and set and get the value of the inverse
#
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inv... | /cachematrix.R | no_license | nicholas-azar/ProgrammingAssignment2 | R | false | false | 855 | r | ## this creates a special "matrix", which is really a list containing functions to set and get the
## matrix values and set and get the value of the inverse
#
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inv... |
testlist <- list(data = structure(Inf, .Dim = c(1L, 1L)), q = 1.63155298226155e-319)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610556579-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 154 | r | testlist <- list(data = structure(Inf, .Dim = c(1L, 1L)), q = 1.63155298226155e-319)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
## creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
getinverse <- function() m
list(set = set, get = get,
... | /cachematrix.R | no_license | YuchengXie1/ProgrammingAssignment2 | R | false | false | 905 | r |
## creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
getinverse <- function() m
list(set = set, get = get,
... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 344
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 344
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/que... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query26_trivial_1344/query26_trivial_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 701 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 344
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 344
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/que... |
#' Sina plot
#'
#' The sina plot is a data visualization chart suitable for plotting any single
#' variable in a multiclass dataset. It is an enhanced jitter strip chart,
#' where the width of the jitter is controlled by the density distribution of
#' the data within each class.
#'
#' @details There are two available w... | /R/sina.R | no_license | PingPi357/ggforce | R | false | false | 14,896 | r | #' Sina plot
#'
#' The sina plot is a data visualization chart suitable for plotting any single
#' variable in a multiclass dataset. It is an enhanced jitter strip chart,
#' where the width of the jitter is controlled by the density distribution of
#' the data within each class.
#'
#' @details There are two available w... |
# Install the package!
install.packages("coronavirus")
library(coronavirus)
update_dataset()
covid19_df <- refresh_coronavirus_jhu()
head(covid19_df)
data("coronavirus")
head(coronavirus)
library(tidyr)
library(dplyr)
summary_df <- coronavirus %>%
filter(type == "confirmed") %>%
group_by(country) %>%
... | /Rscripts/COVID19.R | no_license | kahot/MarineEcologyCourse | R | false | false | 2,737 | r | # Install the package!
install.packages("coronavirus")
library(coronavirus)
update_dataset()
covid19_df <- refresh_coronavirus_jhu()
head(covid19_df)
data("coronavirus")
head(coronavirus)
library(tidyr)
library(dplyr)
summary_df <- coronavirus %>%
filter(type == "confirmed") %>%
group_by(country) %>%
... |
#' @description Convert edgeList to flat indices
#' @param edgeList nx2 matrix of edges
#' @param max_n Maximum node ID.
#' @noRd
ij2flat = function(edgeList, max_n, undirected = T){
if(missing(max_n)){ stop("max_n must be provided") }
if(undirected){ edgeList = sort_ij(edgeList) }
i = edgeList[,1]
j = edgeLi... | /R/latChanNet/R/edgeTools.R | no_license | pistacliffcho/LatentChannelNetworks.R | R | false | false | 4,398 | r | #' @description Convert edgeList to flat indices
#' @param edgeList nx2 matrix of edges
#' @param max_n Maximum node ID.
#' @noRd
ij2flat = function(edgeList, max_n, undirected = T){
if(missing(max_n)){ stop("max_n must be provided") }
if(undirected){ edgeList = sort_ij(edgeList) }
i = edgeList[,1]
j = edgeLi... |
library(RunATAC)
library(magrittr)
ins_bw <- "inst/extdata/chrIV.ins.bigwig"
peaks <- read_bed("inst/extdata/chrIV_peaks.narrowPeak")
reb1 <- getMatrixByName(JASPAR2016, name=c("REB1"))
pwm <- reb1@profileMatrix
genome <- Scerevisiae
ips_pks <- "~/polo_iPSC/ATACseq/processed_data/atac_peaks/merged_replicate_peaks/at... | /testing/centipede_footprinting.R | permissive | SamBuckberry/RunATAC | R | false | false | 8,412 | r | library(RunATAC)
library(magrittr)
ins_bw <- "inst/extdata/chrIV.ins.bigwig"
peaks <- read_bed("inst/extdata/chrIV_peaks.narrowPeak")
reb1 <- getMatrixByName(JASPAR2016, name=c("REB1"))
pwm <- reb1@profileMatrix
genome <- Scerevisiae
ips_pks <- "~/polo_iPSC/ATACseq/processed_data/atac_peaks/merged_replicate_peaks/at... |
## R-13일차(2018.1.12)
#[문제155] exam.csv file에는 학생들의 시험점수가 있습니다. 학생들의 SQL 점수를 막대그래프로 출력해주세요.
exam
barplot(exam$grade[exam$subject == "SQL"],
names.arg = exam$name[exam$subject == "SQL"],
main = "SQL 점수",
ylim = c(0, 100),
cex.names = 0.7,
col = topo.colors(NROW(exam$name[exam$sub... | /R_Code/[2018.01.12]R-13일차.R | no_license | Trigger21/R | R | false | false | 13,677 | r | ## R-13일차(2018.1.12)
#[문제155] exam.csv file에는 학생들의 시험점수가 있습니다. 학생들의 SQL 점수를 막대그래프로 출력해주세요.
exam
barplot(exam$grade[exam$subject == "SQL"],
names.arg = exam$name[exam$subject == "SQL"],
main = "SQL 점수",
ylim = c(0, 100),
cex.names = 0.7,
col = topo.colors(NROW(exam$name[exam$sub... |
#' @importFrom stats setNames p.adjust
named_sort = function(x, nm){
sort(setNames(x, nm), decreasing = TRUE)
}
#' Run a GSEA by group
#'
#' @param formula a `formula` of the kind `numeric_score ~ group1 + group2 + ...` identifying the column containing the score vs the grouping variables, which will be interacte... | /R/gsea_methods.R | no_license | amcdavid/AMmisc | R | false | false | 4,654 | r | #' @importFrom stats setNames p.adjust
named_sort = function(x, nm){
sort(setNames(x, nm), decreasing = TRUE)
}
#' Run a GSEA by group
#'
#' @param formula a `formula` of the kind `numeric_score ~ group1 + group2 + ...` identifying the column containing the score vs the grouping variables, which will be interacte... |
source("R/model_user.r")
#' A Class which represents a channel object
#' @export
#'
#' @slot id the id of this channel
#' @slot type the type of channel
#' @slot guild_id the id of the guild
#' @slot position sorting position of the channel
#' @slot permission_overwrites explicit permission overwrites for members and ... | /R/model_channel.r | no_license | TheOnlyArtz/Pirate | R | false | false | 2,310 | r | source("R/model_user.r")
#' A Class which represents a channel object
#' @export
#'
#' @slot id the id of this channel
#' @slot type the type of channel
#' @slot guild_id the id of the guild
#' @slot position sorting position of the channel
#' @slot permission_overwrites explicit permission overwrites for members and ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{obs.no2}
\alias{obs.no2}
\title{Observed NO2 concentrations}
\format{A data frame with 202752 rows and 8 variables:
\describe{
\item{Time}{time (POSIXct format)}
\item{ID}{station code}
\item{Station}{station... | /man/obs.no2.Rd | permissive | jobonaf/dartle | R | false | true | 801 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{obs.no2}
\alias{obs.no2}
\title{Observed NO2 concentrations}
\format{A data frame with 202752 rows and 8 variables:
\describe{
\item{Time}{time (POSIXct format)}
\item{ID}{station code}
\item{Station}{station... |
#' confusion
#'
#' Confusion matrix or (for larger number of levels) confusion table.
#'
#' @param object Optional fit object. confusion() assumes object contains holdout/vaidation data as `y_test` and the forecasts/classifications as `predictions` but alternative variable names can be specified with the input argume... | /R/confusion.R | no_license | rdrr1990/keras | R | false | false | 2,778 | r | #' confusion
#'
#' Confusion matrix or (for larger number of levels) confusion table.
#'
#' @param object Optional fit object. confusion() assumes object contains holdout/vaidation data as `y_test` and the forecasts/classifications as `predictions` but alternative variable names can be specified with the input argume... |
shinyUI(
pageWithSidebar(
headerPanel("Analysis and Investigation of the PropertyPrice Register "),
sidebarPanel("filter"),
mainPanel("Main")
),
mainPanel(plotOutput("Plot_One")
)
)
| /UI_R_APP.R | no_license | MichaelDineen97/Final_Year_Housing_Project | R | false | false | 244 | r |
shinyUI(
pageWithSidebar(
headerPanel("Analysis and Investigation of the PropertyPrice Register "),
sidebarPanel("filter"),
mainPanel("Main")
),
mainPanel(plotOutput("Plot_One")
)
)
|
library(corTools)
### Name: dist
### Title: Distribution Generator
### Aliases: dist
### ** Examples
# Create some sample data, as a dataframe with a numeric column
col1 <- c("L1", "L2", "L4", "E6", "G1")
col2 <- c(1.42, 14.34, 6.43, 32.1, 15.8)
dat <- as.data.frame(cbind(col1, col2))
dat$col2 <- as.numeric(as.char... | /data/genthat_extracted_code/corTools/examples/dist.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 633 | r | library(corTools)
### Name: dist
### Title: Distribution Generator
### Aliases: dist
### ** Examples
# Create some sample data, as a dataframe with a numeric column
col1 <- c("L1", "L2", "L4", "E6", "G1")
col2 <- c(1.42, 14.34, 6.43, 32.1, 15.8)
dat <- as.data.frame(cbind(col1, col2))
dat$col2 <- as.numeric(as.char... |
############ Extracting dataset 2: GSE62646 ############
geo_id = 'GSE62646'
data <- getGEO(geo_id, GSEMatrix=TRUE)
# Extract gene expression data
data.exp <- as.data.frame(exprs(data[[1]]))
# Format to 5 decimals
data.exp=format(as.data.frame(data.exp), digits=5)
#############
# Annotation
#############
# Which a... | /r_scripts/GSE62646.R | permissive | jeyabbalas/Bayesian-Rule-Learning | R | false | false | 3,506 | r |
############ Extracting dataset 2: GSE62646 ############
geo_id = 'GSE62646'
data <- getGEO(geo_id, GSEMatrix=TRUE)
# Extract gene expression data
data.exp <- as.data.frame(exprs(data[[1]]))
# Format to 5 decimals
data.exp=format(as.data.frame(data.exp), digits=5)
#############
# Annotation
#############
# Which a... |
##### libraries ####
library(shiny); library(shinyjs); library(shinyalert); library(dplyr);
library(DT); library(shinyBS); library(data.table); library(markdown);
library(rio);
source('functions.R');
requireNamespace('readxl');
requireNamespace('feather');
requireNamespace('fst');
requireNamespace('rmatio');
requireN... | /app.R | no_license | bokov/AnyFile | R | false | false | 9,620 | r | ##### libraries ####
library(shiny); library(shinyjs); library(shinyalert); library(dplyr);
library(DT); library(shinyBS); library(data.table); library(markdown);
library(rio);
source('functions.R');
requireNamespace('readxl');
requireNamespace('feather');
requireNamespace('fst');
requireNamespace('rmatio');
requireN... |
#server.R
library(dplyr)
library(httr)
library(jsonlite)
library(shiny)
library(leaflet)
library(lubridate)
library(ggplot2)
# Read in data
# setwd("~/Desktop/INFO 201/9-1-1-Incidence-Response-Data")
#source('')
#source('')
endpoint <- "https://data.seattle.gov/resource/pu5n-trf4.json?"
app.token <- "ky71McxIFKv1aP... | /server.R | no_license | alkanjon/9-1-1-Incidence-Response-Data | R | false | false | 4,108 | r | #server.R
library(dplyr)
library(httr)
library(jsonlite)
library(shiny)
library(leaflet)
library(lubridate)
library(ggplot2)
# Read in data
# setwd("~/Desktop/INFO 201/9-1-1-Incidence-Response-Data")
#source('')
#source('')
endpoint <- "https://data.seattle.gov/resource/pu5n-trf4.json?"
app.token <- "ky71McxIFKv1aP... |
context("remote")
test_that("defaults: null", {
path <- test_prepare_orderly_example("minimal")
expect_null(orderly_default_remote_set(NULL, path))
expect_error(orderly_default_remote_get(path, FALSE),
"default remote has not been set yet")
expect_error(get_remote(NULL, path),
"d... | /tests/testthat/test-remote.R | permissive | cran/orderly | R | false | false | 16,083 | r | context("remote")
test_that("defaults: null", {
path <- test_prepare_orderly_example("minimal")
expect_null(orderly_default_remote_set(NULL, path))
expect_error(orderly_default_remote_get(path, FALSE),
"default remote has not been set yet")
expect_error(get_remote(NULL, path),
"d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covarianza.R
\name{covarianza}
\alias{covarianza}
\title{Covarianza}
\usage{
covarianza(x, y)
}
\arguments{
\item{x}{Nombre variable X.}
\item{y}{Nombre variable Y.}
}
\description{
Calcula la covarianza entre dos variables de ... | /man/covarianza.Rd | no_license | ljofreflor/epg3308 | R | false | true | 497 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covarianza.R
\name{covarianza}
\alias{covarianza}
\title{Covarianza}
\usage{
covarianza(x, y)
}
\arguments{
\item{x}{Nombre variable X.}
\item{y}{Nombre variable Y.}
}
\description{
Calcula la covarianza entre dos variables de ... |
library(dplyr)
snake_river_visits <- readRDS("D:/R_programmer/Introduction to Writing Functions in R/snake_river_visits.rds")
# # Look at the gold medals data
# gold_medals
# # Note the arguments to median()
# args(median)
# # Rewrite this function call, following best practices
# median(gold_medals, na.rm = TRUE)
# # ... | /Introduction to Writing Functions in R/write_functions.R | no_license | muhammadali229/R_programmer | R | false | false | 2,036 | r | library(dplyr)
snake_river_visits <- readRDS("D:/R_programmer/Introduction to Writing Functions in R/snake_river_visits.rds")
# # Look at the gold medals data
# gold_medals
# # Note the arguments to median()
# args(median)
# # Rewrite this function call, following best practices
# median(gold_medals, na.rm = TRUE)
# # ... |
source('code/functions/model.R')
# Define world ----
fuel_price = 0.80 # set fuel price
ex1 <- ex2 <- ex3 <- ex4 <- 0.10 # set ex-vessel
x <- tac.state.sx(abc.state)
x <- sim.season.area(x)
x <- f.simulation.sx(x)
write_csv(x, "output/80_10/state_super_exclusive_80_10.csv")
# notes
# no behavior change - prob of fi... | /code/scenarios/80_10/state_llp_super_x.R | no_license | ben-williams/parallel_diverge | R | false | false | 934 | r | source('code/functions/model.R')
# Define world ----
fuel_price = 0.80 # set fuel price
ex1 <- ex2 <- ex3 <- ex4 <- 0.10 # set ex-vessel
x <- tac.state.sx(abc.state)
x <- sim.season.area(x)
x <- f.simulation.sx(x)
write_csv(x, "output/80_10/state_super_exclusive_80_10.csv")
# notes
# no behavior change - prob of fi... |
#' Graphical User Interface for Choosing HCL Color Palettes
#'
#' A graphical user interface (GUI) for viewing, manipulating, and choosing HCL
#' color palettes.
#'
#' Computes palettes based on the HCL (hue-chroma-luminance) color model (as
#' implemented by \code{\link{polarLUV}}). The GUIs interface the palette
#'... | /colorspace/R/choose_palette.R | no_license | docker-oilgains/clauswilke.dataviz.2018 | R | false | false | 36,361 | r | #' Graphical User Interface for Choosing HCL Color Palettes
#'
#' A graphical user interface (GUI) for viewing, manipulating, and choosing HCL
#' color palettes.
#'
#' Computes palettes based on the HCL (hue-chroma-luminance) color model (as
#' implemented by \code{\link{polarLUV}}). The GUIs interface the palette
#'... |
# R Basics with Examples.
## Data Types
# numerics,character and logical
temperature = 27.5 # temperature in Fahrenheit
class(temperature)
RPI <- "Rensselaer Polytechnic Institue"
class(RPI)
Rpi <- 3.14159265359
class(Rpi)
isSnowing <- FALSE
class(isSnowing)
R <- T
class(R)
## Vectors
num_vec <- c(1,3,5,99)
class(n... | /R_Basics_Teaching_Examples .R | no_license | thilankam/DataAnlatics_Lab0-R_Basics_Teaching_Examples | R | false | false | 3,051 | r | # R Basics with Examples.
## Data Types
# numerics,character and logical
temperature = 27.5 # temperature in Fahrenheit
class(temperature)
RPI <- "Rensselaer Polytechnic Institue"
class(RPI)
Rpi <- 3.14159265359
class(Rpi)
isSnowing <- FALSE
class(isSnowing)
R <- T
class(R)
## Vectors
num_vec <- c(1,3,5,99)
class(n... |
library('data.table')
library('tidyverse')
library('caret')
smallratingspath <- 'data/ml-latest-small/ratings.csv'
smallmoviespath <- 'data/ml-latest-small/movies.csv'
largeratingspath <- 'data/ml-latest/ratings.csv'
largemoviespath <- 'data/ml-latest/movies.csv'
##The path can be changed out to use the smal... | /train-validation-split.R | no_license | sbellows1/movielens-predict | R | false | false | 1,749 | r | library('data.table')
library('tidyverse')
library('caret')
smallratingspath <- 'data/ml-latest-small/ratings.csv'
smallmoviespath <- 'data/ml-latest-small/movies.csv'
largeratingspath <- 'data/ml-latest/ratings.csv'
largemoviespath <- 'data/ml-latest/movies.csv'
##The path can be changed out to use the smal... |
# Primeiro script R
# teste de utilização de acentuação
# Configuração da pasta de trabalho
# Não utilizar espaço no nome do diretório
setwd("~/Projetos/Python/git/R/DSA/BigDataAnalytics/Cap02-Fundamentos")
# Nome dos contribuidores
contributors()
# Licença
license()
# Informação sobre a sessão
sessionInfo()
# Impr... | /BigDataAnalytics/Cap02-Fundamentos/01-RStudio.r | no_license | kzenrick/dsa | R | false | false | 1,127 | r | # Primeiro script R
# teste de utilização de acentuação
# Configuração da pasta de trabalho
# Não utilizar espaço no nome do diretório
setwd("~/Projetos/Python/git/R/DSA/BigDataAnalytics/Cap02-Fundamentos")
# Nome dos contribuidores
contributors()
# Licença
license()
# Informação sobre a sessão
sessionInfo()
# Impr... |
K <- 5
M <- 400
M_pred <- 400
p <-
c(0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9,
0.95, 1, 1.05, 1.1, 1.15, 1.2, 1.25, 1.3, 1.35, 1.4, 1.45, 1.5, 1.55, 1.6, 1.65, 1.7, 1.75, 1.8, 1.85, 1.9,
1.95, 2, 2.05, 2.1, 2.15, 2.2, 2.25, 2.3, 2.35, 2.4, 2.45, 2.5, 2.55, 2.6, 2... | /stan/spectral-inference.data.R | permissive | numericalalgorithmsgroup/bayesian-uq | R | false | false | 15,015 | r | K <- 5
M <- 400
M_pred <- 400
p <-
c(0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9,
0.95, 1, 1.05, 1.1, 1.15, 1.2, 1.25, 1.3, 1.35, 1.4, 1.45, 1.5, 1.55, 1.6, 1.65, 1.7, 1.75, 1.8, 1.85, 1.9,
1.95, 2, 2.05, 2.1, 2.15, 2.2, 2.25, 2.3, 2.35, 2.4, 2.45, 2.5, 2.55, 2.6, 2... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_pycnocline.R
\name{calculate_pycnocline}
\alias{calculate_pycnocline}
\title{Calculate pycnocline depth as the maximum rate of increase in density at depths below the pycnocline and below the reference depth}
\usage{
calculate_pycno... | /man/calculate_pycnocline.Rd | no_license | sean-rohan-NOAA/TLUtilities | R | false | true | 551 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_pycnocline.R
\name{calculate_pycnocline}
\alias{calculate_pycnocline}
\title{Calculate pycnocline depth as the maximum rate of increase in density at depths below the pycnocline and below the reference depth}
\usage{
calculate_pycno... |
\name{copulaIVTS-package}
\alias{copulaIVTS-package}
\alias{copulaIVTS}
\docType{package}
\title{
Gaussian copula model for Integer-valued Time series - Maximum Likelihood estimation using the MCEM
}
\description{
The R package copulaIVTS provides all statistical R used to implement a Monte Carlo Expectation Maximisati... | /man/copulaIVTS-package.Rd | no_license | hlennon/copulaIVTS | R | false | false | 1,443 | rd | \name{copulaIVTS-package}
\alias{copulaIVTS-package}
\alias{copulaIVTS}
\docType{package}
\title{
Gaussian copula model for Integer-valued Time series - Maximum Likelihood estimation using the MCEM
}
\description{
The R package copulaIVTS provides all statistical R used to implement a Monte Carlo Expectation Maximisati... |
# Load required library
library(data.table)
library(base)
#setwd("C:\\coursera\\course4\\wk1\\project\\submit")
# download zip file
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
zipName <- file.path(getwd(), "input_data.zip")
download.file(url, zipName)
unzip... | /plot1.R | no_license | dajit/ExData_Plotting1 | R | false | false | 1,142 | r | # Load required library
library(data.table)
library(base)
#setwd("C:\\coursera\\course4\\wk1\\project\\submit")
# download zip file
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
zipName <- file.path(getwd(), "input_data.zip")
download.file(url, zipName)
unzip... |
library(gamlss.data)
### Name: glasses
### Title: Reading Glasses Data
### Aliases: glasses
### Keywords: datasets
### ** Examples
data(glasses)
plot(ageread~sex, data=glasses)
| /data/genthat_extracted_code/gamlss.data/examples/glasses.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 184 | r | library(gamlss.data)
### Name: glasses
### Title: Reading Glasses Data
### Aliases: glasses
### Keywords: datasets
### ** Examples
data(glasses)
plot(ageread~sex, data=glasses)
|
## unit-tests
source("../../r-toolkit/checks.R")
test.generate.outcomes <- function() {
K = rpois(1, lambda=5)
S = 1:K
m = 10
N = sum(S) * m
x = generate.outcomes(N, levels=1:K, distr=S)
i = sample(S, size=1)
print(sprintf("Checking K=%d, N=%d units, i=%d", K, N, i))
print(x)
CHECK_EQ(length(which(x=... | /noncompliance/unit-tests.R | no_license | ptoulis/causal-effects-mechanisms | R | false | false | 334 | r | ## unit-tests
source("../../r-toolkit/checks.R")
test.generate.outcomes <- function() {
K = rpois(1, lambda=5)
S = 1:K
m = 10
N = sum(S) * m
x = generate.outcomes(N, levels=1:K, distr=S)
i = sample(S, size=1)
print(sprintf("Checking K=%d, N=%d units, i=%d", K, N, i))
print(x)
CHECK_EQ(length(which(x=... |
library(FHDI)
### Name: FHDI_CellProb
### Title: Joint cell probabilities for multivariate incomplete categorical
### data
### Aliases: FHDI_CellProb
### Keywords: imputation missing data joint probability cellprob EM
### algorithm
### ** Examples
### Toy Example ###
# y : trivariate variables
# r : indicator ... | /data/genthat_extracted_code/FHDI/examples/FHDI_CellProb.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 839 | r | library(FHDI)
### Name: FHDI_CellProb
### Title: Joint cell probabilities for multivariate incomplete categorical
### data
### Aliases: FHDI_CellProb
### Keywords: imputation missing data joint probability cellprob EM
### algorithm
### ** Examples
### Toy Example ###
# y : trivariate variables
# r : indicator ... |
library(shiny)
library(shinydashboard)
library(memoise)
library(plotly)
library(EpiEstim)
port <- Sys.getenv('PORT')
cache_timeout <- 1800 #half an hour
## Functions to get the data
#Get complete data_frame from server
get_data <- memoise(function(location="https://raw.githubusercontent.com/owid/covid-19-data/master/... | /run.R | permissive | fgomezotero/covid-r-monitor | R | false | false | 1,505 | r | library(shiny)
library(shinydashboard)
library(memoise)
library(plotly)
library(EpiEstim)
port <- Sys.getenv('PORT')
cache_timeout <- 1800 #half an hour
## Functions to get the data
#Get complete data_frame from server
get_data <- memoise(function(location="https://raw.githubusercontent.com/owid/covid-19-data/master/... |
#' Get station list for a particular U.S. county.
#'
#' A wrapper to the \code{isd_stations_search} function
#' in the \code{rnoaa} package, allowing you to search by FIPS code rather than
#' having to know the latitude and longitude of the center of each county. The
#' \code{isd_stations_search} function requires a ra... | /R/hourly_helpers.R | no_license | leighseverson/countyweather | R | false | false | 25,124 | r | #' Get station list for a particular U.S. county.
#'
#' A wrapper to the \code{isd_stations_search} function
#' in the \code{rnoaa} package, allowing you to search by FIPS code rather than
#' having to know the latitude and longitude of the center of each county. The
#' \code{isd_stations_search} function requires a ra... |
# ============================================================================
# Functions for a Negative Binomial to transform (mean,variance)<->(size,prob)
# ============================================================================
dnbinom.size <- function(mean, variance) {
return(mean^2 / (variance - mean))
}
... | /R/dnbinom.R | no_license | ataudt/aneufinder | R | false | false | 1,019 | r |
# ============================================================================
# Functions for a Negative Binomial to transform (mean,variance)<->(size,prob)
# ============================================================================
dnbinom.size <- function(mean, variance) {
return(mean^2 / (variance - mean))
}
... |
##' @title LINKAGES kill function
##' @author Ann Raiho
##'
##' @param max.ind maximum number of individuals
##' @param nspec number of species
##' @param ntrees number of trees of each species
##' @param slta parameter to calculate crown area from diameter
##' @param sltb parameter to calculate crown area from diamete... | /R/kill.R | no_license | sativa/linkages_package | R | false | false | 8,402 | r | ##' @title LINKAGES kill function
##' @author Ann Raiho
##'
##' @param max.ind maximum number of individuals
##' @param nspec number of species
##' @param ntrees number of trees of each species
##' @param slta parameter to calculate crown area from diameter
##' @param sltb parameter to calculate crown area from diamete... |
### Jeroen Roelofs
### January 08 2015
# Value replacement function
cloud2NA <- function(x, y){
x[y != 0] <- NA
return(x)
} | /R/cloud2NA.R | no_license | jdh009/Lesson4exercise4 | R | false | false | 128 | r | ### Jeroen Roelofs
### January 08 2015
# Value replacement function
cloud2NA <- function(x, y){
x[y != 0] <- NA
return(x)
} |
library(jpeg)
lin<-readJPEG("C:/Users/Por/Desktop/R/lin.jpg")
r<-lin[,,1]
g<-lin[,,2]
b<-lin[,,3]
r.svd<-svd(r)
g.svd<-svd(g)
b.svd<-svd(b)
rgb.svds<-list(r.svd,g.svd,b.svd)
for (j in seq.int(100,400,length.out = 4))
{
a<-sapply(rgb.svds,function(i){
lin.compress<-i$u[,1:j]%*%diag(i$d[1:j])%*%t(i$v[,1... | /SC2019Lab-11-石林琳-16081085.R | no_license | anhnguyendepocen/SC2019-assignments | R | false | false | 443 | r | library(jpeg)
lin<-readJPEG("C:/Users/Por/Desktop/R/lin.jpg")
r<-lin[,,1]
g<-lin[,,2]
b<-lin[,,3]
r.svd<-svd(r)
g.svd<-svd(g)
b.svd<-svd(b)
rgb.svds<-list(r.svd,g.svd,b.svd)
for (j in seq.int(100,400,length.out = 4))
{
a<-sapply(rgb.svds,function(i){
lin.compress<-i$u[,1:j]%*%diag(i$d[1:j])%*%t(i$v[,1... |
# Author: Robert J. Hijmans, r.hijmans@gmail.com
# Date : September 2009
# Version 0.9
# Licence GPL v3
if (!isGeneric("distance")) {
setGeneric("distance", function(x, ...)
standardGeneric("distance"))
}
setMethod('distance', signature(x='RasterLayer'),
function(x, filename='', doEdge=TRUE, ...) {
... | /raster/R/distance.R | no_license | radfordneal/R-package-mods | R | false | false | 2,204 | r | # Author: Robert J. Hijmans, r.hijmans@gmail.com
# Date : September 2009
# Version 0.9
# Licence GPL v3
if (!isGeneric("distance")) {
setGeneric("distance", function(x, ...)
standardGeneric("distance"))
}
setMethod('distance', signature(x='RasterLayer'),
function(x, filename='', doEdge=TRUE, ...) {
... |
/plot6.R | no_license | yiptsangkin/Rproject2 | R | false | false | 964 | r | ||
library(shiny)
library(leaflet)
library(RColorBrewer)
options(java.parameters = "-Xmx4g" )
library(readxl)
library(XLConnect)
library(plyr)
library(dplyr)
library(data.table)
library(foreign)
library(ggplot2)
library(psych)
df <- readWorksheetFromFile("data/preciosEESS_es.xls", sheet=1, startRow = 5)
load(file="dat... | /global.R | no_license | jadeagustin/EESS_Pricing | R | false | false | 2,247 | r | library(shiny)
library(leaflet)
library(RColorBrewer)
options(java.parameters = "-Xmx4g" )
library(readxl)
library(XLConnect)
library(plyr)
library(dplyr)
library(data.table)
library(foreign)
library(ggplot2)
library(psych)
df <- readWorksheetFromFile("data/preciosEESS_es.xls", sheet=1, startRow = 5)
load(file="dat... |
#setwd("~/Desktop/PSM/Spring 2019/Multivariate-Stats/Exam 2")
# 1
rm(list=ls())
X <- read.csv("./data/prodimp.csv",header = TRUE) #Get data
library(ggplot2) #Q plots
qplot(X$level,X$productivity, main="qPlot of Productivity Data", xlab="Treatment", ylab="Productivity Improvement")
png("prodq.png")
qplot(X$level,X$... | /Exam 2/Exam 2.R | no_license | justinhood/Multivariate-Stats | R | false | false | 18,166 | r | #setwd("~/Desktop/PSM/Spring 2019/Multivariate-Stats/Exam 2")
# 1
rm(list=ls())
X <- read.csv("./data/prodimp.csv",header = TRUE) #Get data
library(ggplot2) #Q plots
qplot(X$level,X$productivity, main="qPlot of Productivity Data", xlab="Treatment", ylab="Productivity Improvement")
png("prodq.png")
qplot(X$level,X$... |
# Install packages
library(httr)
library(jsonlite)
library(lubridate)
library(magrittr)
library(stringr)
library(tidyverse)
options(stringsAsFactors = FALSE)
### Retrieve data from first event page
print("retrieve data from the 1st page for cocktails events")
# initiate a tracker to log the work activities
tracke... | /eventbrite_data_event_analysis/eventbrite-api-tracker&script/cocktails.R | no_license | eddiecylin/Data-science-projects | R | false | false | 3,652 | r |
# Install packages
library(httr)
library(jsonlite)
library(lubridate)
library(magrittr)
library(stringr)
library(tidyverse)
options(stringsAsFactors = FALSE)
### Retrieve data from first event page
print("retrieve data from the 1st page for cocktails events")
# initiate a tracker to log the work activities
tracke... |
#!/usr/bin/env R
library(dplyr)
library(tibble)
library(Seurat); s_o <- readRDS('s_o.clustered.RDS')
s_o <- RunTSNE(s_o, dims.use = 1:45, max_iter=20000, perplexity=5, check_dupli
cates = FALSE, theta=0.05)
s_o <- FindNeighbors(s_o, dims = 1:45)
s_o <- FindClusters(s_o, resolution = 12)
pdf('tsne.pdf', width=8, hei... | /Computation/Rustbucket Analyses/ekd40_tmp/02_bythebook.R | permissive | edridgedsouza/mphil-thesis | R | false | false | 1,118 | r | #!/usr/bin/env R
library(dplyr)
library(tibble)
library(Seurat); s_o <- readRDS('s_o.clustered.RDS')
s_o <- RunTSNE(s_o, dims.use = 1:45, max_iter=20000, perplexity=5, check_dupli
cates = FALSE, theta=0.05)
s_o <- FindNeighbors(s_o, dims = 1:45)
s_o <- FindClusters(s_o, resolution = 12)
pdf('tsne.pdf', width=8, hei... |
polyvars <- function(X, degr = 2, raw = FALSE)
{
# A function computing polynomials of vectors within a matrix.
# Contrary to function poly() on which it is based, this function
# only computes polynomials separately for each vector of the provided matrix,
# e.g. x, x^2, x^3, and not combinations such as xy, x^2y an... | /Functions/polyvars.R | no_license | 2015qyliang/Numerical_Ecology_with_R-Second | R | false | false | 2,816 | r | polyvars <- function(X, degr = 2, raw = FALSE)
{
# A function computing polynomials of vectors within a matrix.
# Contrary to function poly() on which it is based, this function
# only computes polynomials separately for each vector of the provided matrix,
# e.g. x, x^2, x^3, and not combinations such as xy, x^2y an... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exa.readData.R
\name{exa.readData}
\alias{exa.readData}
\title{Low level method to send a query to EXASOL and retrieve a result set.}
\usage{
exa.readData(con, sql, ...)
}
\arguments{
\item{con}{The host's IP or DNS name to connect to.}
\ite... | /man/exa.readData.Rd | permissive | marcelboldt/r-exasol6 | R | false | true | 1,117 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exa.readData.R
\name{exa.readData}
\alias{exa.readData}
\title{Low level method to send a query to EXASOL and retrieve a result set.}
\usage{
exa.readData(con, sql, ...)
}
\arguments{
\item{con}{The host's IP or DNS name to connect to.}
\ite... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin_cumulative.R
\name{bin_cumulative}
\alias{bin_cumulative}
\title{Binomial Cumulative}
\usage{
bin_cumulative(trials, prob)
}
\arguments{
\item{trials}{Number of trials (numeric)}
\item{prob}{Probability of successs (real)}
}
\value{
Retu... | /binomial/man/bin_cumulative.Rd | no_license | stat133-sp19/hw-stat133-TheGoldenKyle | R | false | true | 993 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin_cumulative.R
\name{bin_cumulative}
\alias{bin_cumulative}
\title{Binomial Cumulative}
\usage{
bin_cumulative(trials, prob)
}
\arguments{
\item{trials}{Number of trials (numeric)}
\item{prob}{Probability of successs (real)}
}
\value{
Retu... |
#' Add/remove foreign keys
#'
#' @description `dm_add_fk()` marks the specified columns as the foreign key of table `table` with
#' respect to the primary key of table `ref_table`.
#' If `check == TRUE`, then it will first check if the values in columns `columns` are a subset
#' of the values of the primary key in tabl... | /R/foreign-keys.R | permissive | pat-s/dm | R | false | false | 15,397 | r | #' Add/remove foreign keys
#'
#' @description `dm_add_fk()` marks the specified columns as the foreign key of table `table` with
#' respect to the primary key of table `ref_table`.
#' If `check == TRUE`, then it will first check if the values in columns `columns` are a subset
#' of the values of the primary key in tabl... |
gen.U <- function(C,P,B=1000,mu,cutoff,pvalue=T,seed=1,phi)
{
lambda = mu[rep(1:P,C)] #uses promoter means
phi = phi[rep(1:P,C)]
size=1/phi
set.seed(seed)
if(sum(phi)>(1e-12)) Z = matrix(rnbinom(n=C*P*B,mu = lambda,size=size),nrow=C*P)
if(sum(phi)<(1e-12)) Z = matrix(rpois(C*P*B,lambda = lambda),nrow=C*P)
S = co... | /R/gen.U.R | no_license | edimont/CAGExploreR | R | false | false | 1,299 | r | gen.U <- function(C,P,B=1000,mu,cutoff,pvalue=T,seed=1,phi)
{
lambda = mu[rep(1:P,C)] #uses promoter means
phi = phi[rep(1:P,C)]
size=1/phi
set.seed(seed)
if(sum(phi)>(1e-12)) Z = matrix(rnbinom(n=C*P*B,mu = lambda,size=size),nrow=C*P)
if(sum(phi)<(1e-12)) Z = matrix(rpois(C*P*B,lambda = lambda),nrow=C*P)
S = co... |
# This file contains code for:
# 1. Reading the data of Individual Household Electric Power Consumption Data Set from "household_power_consumption.txt"
# File URL: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# 2. merge and convert Date and Time columns into one ... | /plot2.R | no_license | 7afiz/ExData_Plotting1 | R | false | false | 1,661 | r | # This file contains code for:
# 1. Reading the data of Individual Household Electric Power Consumption Data Set from "household_power_consumption.txt"
# File URL: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
# 2. merge and convert Date and Time columns into one ... |
eigen.analysis<-function(A, zero=TRUE)
{
ev <- eigen(A)
# R sorts eigenvalues in decreasing order, according to Mod(values)
# ususally dominant eigenvalue is first (ev$values[1]), except for imprimitive matrices with d eigenvalues of equal modulus
# this should work for most cases
lmax <- which.max... | /R/eigen.analysis.R | no_license | kostask84/popbio | R | false | false | 1,464 | r | eigen.analysis<-function(A, zero=TRUE)
{
ev <- eigen(A)
# R sorts eigenvalues in decreasing order, according to Mod(values)
# ususally dominant eigenvalue is first (ev$values[1]), except for imprimitive matrices with d eigenvalues of equal modulus
# this should work for most cases
lmax <- which.max... |
\name{print.character.table}
\alias{print.character.table}
\title{Prints a character.table object}
\usage{
\method{print}{character.table} (x, digits = 2,
percent = NULL, zero.replace = NULL, ...)
}
\arguments{
\item{x}{The character.table object}
\item{digits}{Integer values specifying the number of
digit... | /man/print.character.table.Rd | no_license | abresler/qdap | R | false | false | 814 | rd | \name{print.character.table}
\alias{print.character.table}
\title{Prints a character.table object}
\usage{
\method{print}{character.table} (x, digits = 2,
percent = NULL, zero.replace = NULL, ...)
}
\arguments{
\item{x}{The character.table object}
\item{digits}{Integer values specifying the number of
digit... |
Cargar librerías --------------------------------------------------------
library(tidyverse)
library(extrafont)
# loadfonts()
# Cargar y procesar datos -------------------------------------------------
dat <- read.csv2("Libro2.csv")
View(datos)
dat <- read.csv2("Libro2.csv") %>%
pivot_longer(cols = -c(1:2),
... | /Q2/A.R | no_license | Brandon780/scripts_ | R | false | false | 2,277 | r | Cargar librerías --------------------------------------------------------
library(tidyverse)
library(extrafont)
# loadfonts()
# Cargar y procesar datos -------------------------------------------------
dat <- read.csv2("Libro2.csv")
View(datos)
dat <- read.csv2("Libro2.csv") %>%
pivot_longer(cols = -c(1:2),
... |
getwd()
setwd('C:/Users/cdivy/Desktop/Coursework/DAND/Term_2/EDA_using_R')
# Read stateData into a variable called statesInfo (a dataframe)
statesInfo <- read.csv('stateData.csv')
#Retrieve subset of data for North east states , states like Connecticut with state.region = 1
stateSubset <- subset(statesInfo,state.regi... | /R_Practice_code/State_data_analysis/state_data_analysis.r | no_license | divyachandramouli/Practice_code | R | false | false | 582 | r | getwd()
setwd('C:/Users/cdivy/Desktop/Coursework/DAND/Term_2/EDA_using_R')
# Read stateData into a variable called statesInfo (a dataframe)
statesInfo <- read.csv('stateData.csv')
#Retrieve subset of data for North east states , states like Connecticut with state.region = 1
stateSubset <- subset(statesInfo,state.regi... |
#' Plot the parition of variance in a simulation response for each measure
#'
#' @param RESULTS_FILE_PATH Where the eFAST results were saved to
#' @param PARAMETERS Simulation parameters being explored
#' @param si Vector of Si values calculated in eFAST for all parameters
#' @param sti Vector of STi values calculated ... | /R/efast_plotting.R | no_license | jc1571/spartan | R | false | false | 6,063 | r | #' Plot the parition of variance in a simulation response for each measure
#'
#' @param RESULTS_FILE_PATH Where the eFAST results were saved to
#' @param PARAMETERS Simulation parameters being explored
#' @param si Vector of Si values calculated in eFAST for all parameters
#' @param sti Vector of STi values calculated ... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
library(shinythemes)
library(leaflet)
library(geojsonio)
library(plo... | /app.R | no_license | GuiHAO-GARY/COVID-19-country-level-data | R | false | false | 17,220 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
library(shinythemes)
library(leaflet)
library(geojsonio)
library(plo... |
# DESCRIPTION -------------------------------------------------------------------------------------------------
# Author: Elizabeth Hutchins
# Date: May 14th, 2020
#Purpose: summarize DE results
#Imports:
#
#Exports:
# Figure 3
# load packages ----------------------------------------------------------------------... | /figures/Figure3.R | no_license | zlpsophina/ppmi-rnaseq-wb-paper | R | false | false | 8,654 | r | # DESCRIPTION -------------------------------------------------------------------------------------------------
# Author: Elizabeth Hutchins
# Date: May 14th, 2020
#Purpose: summarize DE results
#Imports:
#
#Exports:
# Figure 3
# load packages ----------------------------------------------------------------------... |
#' @author Adam Wheeler adam.wheeler@thermofisher.com
#' @description \code Tests for logOut
context("Tests for logOut")
test_that(paste("test logOut() on semantic version:", con$coreApi$semVer), {
expect_equivalent(logOut(con$coreApi)$success, "Success")
})
| /tests/testthat/acceptance_tests/test-logOut.R | no_license | AmundsenJunior/pfsrsdk | R | false | false | 263 | r | #' @author Adam Wheeler adam.wheeler@thermofisher.com
#' @description \code Tests for logOut
context("Tests for logOut")
test_that(paste("test logOut() on semantic version:", con$coreApi$semVer), {
expect_equivalent(logOut(con$coreApi)$success, "Success")
})
|
########################## DEV VERSION
# This alignment has ----- exactly at the primer limits. Could be good.
# Probably don't need to use primers at all and don't need to extract subseqs, only seqs, in correct orientation.
# How to extract ref, trim others and keep track of counts for each.
# Also, should align... | /old_mlgt.R | no_license | davetgerrard/mlgt | R | false | false | 11,617 | r |
########################## DEV VERSION
# This alignment has ----- exactly at the primer limits. Could be good.
# Probably don't need to use primers at all and don't need to extract subseqs, only seqs, in correct orientation.
# How to extract ref, trim others and keep track of counts for each.
# Also, should align... |
GAStartupMessage <- function()
{
# Startup message obtained as
# > figlet GA
msg <- c(paste0(
" ____ _
/ ___| / \\ Genetic
| | _ / _ \\ Algorithms
| |_| |/ ___ \\
\\____/_/ \\_\\ version ", packageVersion("GA")),
"\nType 'citation(\"GA\")' for citing this R package in publications.")
ret... | /R/zzz.R | no_license | luca-scr/GA | R | false | false | 655 | r | GAStartupMessage <- function()
{
# Startup message obtained as
# > figlet GA
msg <- c(paste0(
" ____ _
/ ___| / \\ Genetic
| | _ / _ \\ Algorithms
| |_| |/ ___ \\
\\____/_/ \\_\\ version ", packageVersion("GA")),
"\nType 'citation(\"GA\")' for citing this R package in publications.")
ret... |
testlist <- list(x = c(0, 0, 0, 0, 5.09911082268234e+182, 5.77636807742164e-275, NaN, -8.1542028248312e-280, -3.85185988649917e-34, -3.74931033101325e-253, -1.05168902913543e-176, 9.34704639616146e-307, 8.3975159971137e-315, 0, -2.37001899157646e+306, NaN, 1.03211490097508e-296, 5.2181291954879e+279, -2.42208305489... | /blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609956273-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 982 | r | testlist <- list(x = c(0, 0, 0, 0, 5.09911082268234e+182, 5.77636807742164e-275, NaN, -8.1542028248312e-280, -3.85185988649917e-34, -3.74931033101325e-253, -1.05168902913543e-176, 9.34704639616146e-307, 8.3975159971137e-315, 0, -2.37001899157646e+306, NaN, 1.03211490097508e-296, 5.2181291954879e+279, -2.42208305489... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quipu.R
\docType{data}
\name{allele.freqs}
\alias{allele.freqs}
\title{Sample allele frequencies}
\format{
Tabular format. The records represent unique SSR alleles with their assigned frequencies.
Frequencies were derived from the sample dat... | /man/allele.freqs.Rd | permissive | c5sire/quipu | R | false | true | 554 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quipu.R
\docType{data}
\name{allele.freqs}
\alias{allele.freqs}
\title{Sample allele frequencies}
\format{
Tabular format. The records represent unique SSR alleles with their assigned frequencies.
Frequencies were derived from the sample dat... |
## ---------------------------
##
## Script name: `rule add_metadata`
##
## Purpose of script: read in file with given accession and add in the requisite metadata
##
## Author: Will Hannon
##
## Date Created: 2020-06-26
##
## Copyright (c) Will Hannon, 2020
## Email: wwh22@uw.edu
##
## ---------------------------
requ... | /workflow/scripts/add_metadata.R | permissive | jbloomlab/SARS-CoV-2_bottleneck | R | false | false | 5,425 | r | ## ---------------------------
##
## Script name: `rule add_metadata`
##
## Purpose of script: read in file with given accession and add in the requisite metadata
##
## Author: Will Hannon
##
## Date Created: 2020-06-26
##
## Copyright (c) Will Hannon, 2020
## Email: wwh22@uw.edu
##
## ---------------------------
requ... |
library(tidyr)
library(dplyr)
library(ggplot2)
# Plots CIs for the quantile
fullData_ConfidenceLowerBound = read.csv("../../../results/tradeoff/listener-curve-binomial-confidence-bound-quantile-noAssumption-equalOrBigger.tsv", sep="\t") %>% filter(Type != "GROUND")
fullData_ConfidenceLowerBound_05 = read.csv("../../.... | /code/analysis/visualize_neural/NOT_USED/plot_wordsOnly_quantile_onlyREAL_equalOrBigger.R | no_license | m-hahn/memory-surprisal | R | false | false | 2,278 | r | library(tidyr)
library(dplyr)
library(ggplot2)
# Plots CIs for the quantile
fullData_ConfidenceLowerBound = read.csv("../../../results/tradeoff/listener-curve-binomial-confidence-bound-quantile-noAssumption-equalOrBigger.tsv", sep="\t") %>% filter(Type != "GROUND")
fullData_ConfidenceLowerBound_05 = read.csv("../../.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/style_guides.R
\name{create_style_guide}
\alias{create_style_guide}
\title{Create a style guide}
\usage{
create_style_guide(initialize = initialize_attributes, line_break = NULL,
space = NULL, token = NULL, indention = NULL,
use_raw_inden... | /man/create_style_guide.Rd | no_license | applied-statistic-using-r/styler | R | false | true | 1,428 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/style_guides.R
\name{create_style_guide}
\alias{create_style_guide}
\title{Create a style guide}
\usage{
create_style_guide(initialize = initialize_attributes, line_break = NULL,
space = NULL, token = NULL, indention = NULL,
use_raw_inden... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_508}
\alias{movie_508}
\title{A Nightmare on Elm Street}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0... | /man/movie_508.Rd | permissive | schochastics/networkdata | R | false | true | 1,033 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_508}
\alias{movie_508}
\title{A Nightmare on Elm Street}
\format{
igraph object
}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/color.spectro.R
\name{color.spectro}
\alias{color.spectro}
\title{Highlight spectrogram regions}
\usage{
color.spectro(wave, wl = 512, wn = "hanning", ovlp = 70,
dB = "max0", collevels = NULL, selec.col = "red2", col.clm = NULL,
base.col = "... | /man/color.spectro.Rd | no_license | edwbaker/warbleR | R | false | true | 6,952 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/color.spectro.R
\name{color.spectro}
\alias{color.spectro}
\title{Highlight spectrogram regions}
\usage{
color.spectro(wave, wl = 512, wn = "hanning", ovlp = 70,
dB = "max0", collevels = NULL, selec.col = "red2", col.clm = NULL,
base.col = "... |
library(mice)
source("../utils.R")
md.pattern(capacidades)
c <- mice(data = capacidades, m=5, method = "pmm", maxit = 10, seed = 500)
c1 <- complete(c,1)
c2 <- complete(c,2)
c3 <- complete(c,3)
c4 <- complete(c,4)
c5 <- complete(c,5)
c_predictor_matrix <- c$predictorMatrix
c$chainMean
c$chainVar
imp_c1 <- c$im... | /notebooks/pruebas_input_agg.R | no_license | plataformapreventiva/inform-mexico | R | false | false | 1,996 | r | library(mice)
source("../utils.R")
md.pattern(capacidades)
c <- mice(data = capacidades, m=5, method = "pmm", maxit = 10, seed = 500)
c1 <- complete(c,1)
c2 <- complete(c,2)
c3 <- complete(c,3)
c4 <- complete(c,4)
c5 <- complete(c,5)
c_predictor_matrix <- c$predictorMatrix
c$chainMean
c$chainVar
imp_c1 <- c$im... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcgacompare.R
\name{tcgaCompare}
\alias{tcgaCompare}
\title{Compare mutation load against TCGA cohorts}
\usage{
tcgaCompare(
maf,
capture_size = NULL,
tcga_capture_size = 50,
cohortName = NULL,
tcga_cohorts = NULL,
primarySite = F... | /man/tcgaCompare.Rd | permissive | kaigu1990/maftools | R | false | true | 1,781 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcgacompare.R
\name{tcgaCompare}
\alias{tcgaCompare}
\title{Compare mutation load against TCGA cohorts}
\usage{
tcgaCompare(
maf,
capture_size = NULL,
tcga_capture_size = 50,
cohortName = NULL,
tcga_cohorts = NULL,
primarySite = F... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_functions.R
\name{floodlightActivities.delete}
\alias{floodlightActivities.delete}
\title{Deletes an existing floodlight activity.}
\usage{
floodlightActivities.delete(profileId, id)
}
\arguments{
\item{profileId}{User profile ID... | /googledfareportingv24.auto/man/floodlightActivities.delete.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 918 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_functions.R
\name{floodlightActivities.delete}
\alias{floodlightActivities.delete}
\title{Deletes an existing floodlight activity.}
\usage{
floodlightActivities.delete(profileId, id)
}
\arguments{
\item{profileId}{User profile ID... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/breusch_pagan.R
\name{breusch_pagan}
\alias{breusch_pagan}
\title{Breusch-Pagan Test for Heteroskedasticity in a Linear Regression Model}
\usage{
breusch_pagan(mainlm, auxdesign = NA, koenker = TRUE, statonly = FALSE)
}
\arguments{
\item{main... | /man/breusch_pagan.Rd | no_license | tjfarrar/skedastic | R | false | true | 3,757 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/breusch_pagan.R
\name{breusch_pagan}
\alias{breusch_pagan}
\title{Breusch-Pagan Test for Heteroskedasticity in a Linear Regression Model}
\usage{
breusch_pagan(mainlm, auxdesign = NA, koenker = TRUE, statonly = FALSE)
}
\arguments{
\item{main... |
# -----------------------------------------------------
# Homework 08
# 22 Mar 2021
# EKG
# -----------------------------------------------------
#
# Library ----------------------------------
library(ggplot2)
library(tidyr)
# Creating a Fake Data Set ----------------------------------
# based on the idea that whist... | /Homework_08.R | permissive | emmagagne/GagneBio381 | R | false | false | 3,223 | r | # -----------------------------------------------------
# Homework 08
# 22 Mar 2021
# EKG
# -----------------------------------------------------
#
# Library ----------------------------------
library(ggplot2)
library(tidyr)
# Creating a Fake Data Set ----------------------------------
# based on the idea that whist... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{collapseVector}
\alias{collapseVector}
\title{collapse a character vector to SQL multiquery thing}
\usage{
collapseVector(charvec)
}
\arguments{
\item{charvec}{a character vector}
}
\description{
cook a character vector of baz, q... | /man/collapseVector.Rd | permissive | retaj/cb2tools | R | false | true | 529 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{collapseVector}
\alias{collapseVector}
\title{collapse a character vector to SQL multiquery thing}
\usage{
collapseVector(charvec)
}
\arguments{
\item{charvec}{a character vector}
}
\description{
cook a character vector of baz, q... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zzz.R
\docType{data}
\name{RP3_MDB_USRPWD}
\alias{RP3_MDB_USRPWD}
\title{Global variable}
\format{
An object of class \code{NULL} of length 0.
}
\usage{
RP3_MDB_USRPWD
}
\description{
Global variable
}
\author{
mvaniterson
}
\keyword{data}
| /BBMRIomics/man/RP3_MDB_USRPWD.Rd | no_license | bbmri-nl/BBMRIomics | R | false | true | 318 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zzz.R
\docType{data}
\name{RP3_MDB_USRPWD}
\alias{RP3_MDB_USRPWD}
\title{Global variable}
\format{
An object of class \code{NULL} of length 0.
}
\usage{
RP3_MDB_USRPWD
}
\description{
Global variable
}
\author{
mvaniterson
}
\keyword{data}
|
#' Import all test-set TopDom regions into a single data.frame
#'
#' This script will read all available \file{topdomData/*/*.rds}
#' files, extract the TopDom regions for the test samples (but not the
#' reference) and convert to a data.frame with additional columns on parameter
#' settings and RNG seeds appended. Al... | /R/import_topdom_regions.R | no_license | HenrikBengtsson/TopDomStudy | R | false | false | 3,024 | r | #' Import all test-set TopDom regions into a single data.frame
#'
#' This script will read all available \file{topdomData/*/*.rds}
#' files, extract the TopDom regions for the test samples (but not the
#' reference) and convert to a data.frame with additional columns on parameter
#' settings and RNG seeds appended. Al... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.