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 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{zip.map}
\alias{zip.map}
\title{Map of US Zip Code Tabulated Areas (ZCTAs)}
\usage{
data(zip.map)
}
\description{
The map
was modified using QGIS in order to remove Puerto Rico, islands off of Alaska that
c... | /man/zip.map.Rd | no_license | fototo/choroplethrZip | R | false | false | 645 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{zip.map}
\alias{zip.map}
\title{Map of US Zip Code Tabulated Areas (ZCTAs)}
\usage{
data(zip.map)
}
\description{
The map
was modified using QGIS in order to remove Puerto Rico, islands off of Alaska that
c... |
Temps <- c(1.2,3.4,2.1,5.5) #vecteur de temps
Masse <- c(2.5,4.2,5.6,3.4)
Sexe <- c("male","femelle","male", "femelle")
jeu <- data.frame(Temps,Masse,Sexe)
jeu
autos <- data.frame(Vitesse = c(25,40,70,100),
Type = c("auto","camion","auto","camion"))
autos
str(jeu)
summary (jeu)
boxplot(jeu)
librar... | /Machine Learning - R/Module1_Machine_Learning_2.R | no_license | alexserf/School-Rep | R | false | false | 721 | r | Temps <- c(1.2,3.4,2.1,5.5) #vecteur de temps
Masse <- c(2.5,4.2,5.6,3.4)
Sexe <- c("male","femelle","male", "femelle")
jeu <- data.frame(Temps,Masse,Sexe)
jeu
autos <- data.frame(Vitesse = c(25,40,70,100),
Type = c("auto","camion","auto","camion"))
autos
str(jeu)
summary (jeu)
boxplot(jeu)
librar... |
library(MASS)
library(coda)
library(Matrix)
library(metafor)
library(hbmem)
library(truncnorm)
wd = '/home/ZijunKe/Research/MetaR/Simulation5/'
#wd <- "E:/MetaR/Simulation3/"
openbugs.d = NULL
source(paste(wd,'RCode/RFuncs_Sim.R',sep=''))
nsim = 500
n.iter = 10000
Nstudy.all = c(28,60,100)
mu.N.all = c(150,350)
L.Al... | /Simulations/RCode/MetaRR59.R | no_license | zijunke/CAM | R | false | false | 3,833 | r | library(MASS)
library(coda)
library(Matrix)
library(metafor)
library(hbmem)
library(truncnorm)
wd = '/home/ZijunKe/Research/MetaR/Simulation5/'
#wd <- "E:/MetaR/Simulation3/"
openbugs.d = NULL
source(paste(wd,'RCode/RFuncs_Sim.R',sep=''))
nsim = 500
n.iter = 10000
Nstudy.all = c(28,60,100)
mu.N.all = c(150,350)
L.Al... |
#=====================================================================================================#
library(picante)
library(viridis)
library(colorspace)
library(tidyverse)
library(rgdal)
library(ape)
#=====================================================================================================#
#=======... | /scripts/Lychnophorinae/pd-lych.R | no_license | souzayagob/no_one-size-fits-all | R | false | false | 7,100 | r | #=====================================================================================================#
library(picante)
library(viridis)
library(colorspace)
library(tidyverse)
library(rgdal)
library(ape)
#=====================================================================================================#
#=======... |
shinyServer(function(input, output) {
# source base functions
source('metis.R', local = TRUE)
# source enabled analysis tools
flist <- sourceDirectory('modules', recursive = TRUE)
# print(flist)
# the 'grand' analysis ui-element caller
output$ui_analysis <- renderUI({
if(input$tool == "dataview") return()
... | /server.R | no_license | marcionicolau/metis-web | R | false | false | 636 | r | shinyServer(function(input, output) {
# source base functions
source('metis.R', local = TRUE)
# source enabled analysis tools
flist <- sourceDirectory('modules', recursive = TRUE)
# print(flist)
# the 'grand' analysis ui-element caller
output$ui_analysis <- renderUI({
if(input$tool == "dataview") return()
... |
#' Collapse a `tbl_time` object so that all observations in a period share the
#' same date
#'
#' When `time_collapse` is used, the index of a `tbl_time` object is altered
#' so that all dates that fall in a period share a common date. This can be
#' useful for further groupwise calculations.
#'
#' @inheritParams time_... | /R/time_collapse.R | no_license | deann88/tibbletime | R | false | false | 3,404 | r | #' Collapse a `tbl_time` object so that all observations in a period share the
#' same date
#'
#' When `time_collapse` is used, the index of a `tbl_time` object is altered
#' so that all dates that fall in a period share a common date. This can be
#' useful for further groupwise calculations.
#'
#' @inheritParams time_... |
\name{selection_coverage}
\alias{selection_coverage}
\title{Intersection of two coverages.}
\usage{
selection_coverage(x, y, thresholds)
}
\arguments{
\item{x}{Numeric matrix.}
\item{y}{Numeric matrix.}
\item{thresholds}{Numeric vector of thresholds used.}
}
\value{
A list with 2 items: \item{thresholds}{Correl... | /man/selection_coverage.Rd | no_license | ascelin/zonator | R | false | false | 677 | rd | \name{selection_coverage}
\alias{selection_coverage}
\title{Intersection of two coverages.}
\usage{
selection_coverage(x, y, thresholds)
}
\arguments{
\item{x}{Numeric matrix.}
\item{y}{Numeric matrix.}
\item{thresholds}{Numeric vector of thresholds used.}
}
\value{
A list with 2 items: \item{thresholds}{Correl... |
#' Create a symbol or list of symbols
#'
#' @description
#'
#' Symbols are a kind of [defused expression][topic-defuse] that
#' represent objects in environments.
#'
#' * `sym()` and `syms()` take strings as input and turn them into
#' symbols.
#'
#' * `data_sym()` and `data_syms()` create calls of the form
#' `.da... | /R/sym.R | permissive | seankross/rlang | R | false | false | 4,664 | r | #' Create a symbol or list of symbols
#'
#' @description
#'
#' Symbols are a kind of [defused expression][topic-defuse] that
#' represent objects in environments.
#'
#' * `sym()` and `syms()` take strings as input and turn them into
#' symbols.
#'
#' * `data_sym()` and `data_syms()` create calls of the form
#' `.da... |
sayHello <- function(name="there") {
greeting <- paste("Hello ", name)
#print(greeting)
return(greeting)
}
g <- sayHello("Jana")
print(g)
sayHello()
multiply <- function(n1, n2) {
return(n1 * n2)
}
multiply(3, 4)
checkAvailability <- function(integerE, vectorE) {
for(e in vectorE) {
if(e == in... | /bootcamp/053FunctionsTraining.R | no_license | rathanDev/r | R | false | false | 1,051 | r | sayHello <- function(name="there") {
greeting <- paste("Hello ", name)
#print(greeting)
return(greeting)
}
g <- sayHello("Jana")
print(g)
sayHello()
multiply <- function(n1, n2) {
return(n1 * n2)
}
multiply(3, 4)
checkAvailability <- function(integerE, vectorE) {
for(e in vectorE) {
if(e == in... |
CHILD <- setClass("CHILD",
representation(
summary = "character",
inputs = "character",
timesteps = "numeric",
pts = "matrix",
upliftmap = "list",
layers = "list",
nodes = "list",
edges = "list",
tri = "list",
ra... | /R/CHILD-class.R | no_license | coffeemuggler/RCHILD | R | false | false | 959 | r | CHILD <- setClass("CHILD",
representation(
summary = "character",
inputs = "character",
timesteps = "numeric",
pts = "matrix",
upliftmap = "list",
layers = "list",
nodes = "list",
edges = "list",
tri = "list",
ra... |
gower.dist<- function(data.x, data.y = data.x, rngs = NULL, KR.corr = TRUE,
cat.cont=TRUE, var.weights = NULL, kern="kde0"){
#########################
# core function: Gower with vectors
gower.fcn <- function(x, y, rng = NULL, KR.corr = TRUE, catc=TRUE, krn="kde0") {
nx <... | /Forthcoming/R/gower.dist.kern.R | no_license | marcellodo/StatMatch | R | false | false | 5,844 | r | gower.dist<- function(data.x, data.y = data.x, rngs = NULL, KR.corr = TRUE,
cat.cont=TRUE, var.weights = NULL, kern="kde0"){
#########################
# core function: Gower with vectors
gower.fcn <- function(x, y, rng = NULL, KR.corr = TRUE, catc=TRUE, krn="kde0") {
nx <... |
## Keio University, Spring 2016
## Interactive Data Visualizations
## Session 12, Sample Code (GoogleVis)
##
## Name: Yusaku Horiuchi
## Date: July 19, 2016
## Ref: http://github.com/mages/googleVis.
## Ref: http://mages.github.io/googleVis_Tokyo_April_2014
## Hans Rosling's 200 Countries, 200 Years, 4 Minutes - The... | /Session12/Session12_GoogleVis.R | no_license | gensasaki/R-data-visualization | R | false | false | 1,335 | r | ## Keio University, Spring 2016
## Interactive Data Visualizations
## Session 12, Sample Code (GoogleVis)
##
## Name: Yusaku Horiuchi
## Date: July 19, 2016
## Ref: http://github.com/mages/googleVis.
## Ref: http://mages.github.io/googleVis_Tokyo_April_2014
## Hans Rosling's 200 Countries, 200 Years, 4 Minutes - The... |
gradient_descent<-function(f, x_0, tol,
tol_backtracking, x_ast, p_ast, maxiter=30,
gf_symbolic=NULL){
'
Method of gradient descent to numerically approximate solution of min f.
Args:
f (fun): definition of function f.
x_0 (double): vect... | /temas/IV.optimizacion_convexa_y_machine_learning/algoritmos/R/algorithms_for_uco.R | permissive | dapivei/analisis-numerico-computo-cientifico | R | false | false | 12,492 | r | gradient_descent<-function(f, x_0, tol,
tol_backtracking, x_ast, p_ast, maxiter=30,
gf_symbolic=NULL){
'
Method of gradient descent to numerically approximate solution of min f.
Args:
f (fun): definition of function f.
x_0 (double): vect... |
############################################################
##
## Course EDA
##
## Peer Assignment 1 - Plot 1
##
###########################################################
# clean-up, if needed
# rm(list = ls())
########################################################
#
# Read in data
#
# data set: househ... | /plot1.R | no_license | mkellasdicks/ExData_Plotting1 | R | false | false | 1,937 | r | ############################################################
##
## Course EDA
##
## Peer Assignment 1 - Plot 1
##
###########################################################
# clean-up, if needed
# rm(list = ls())
########################################################
#
# Read in data
#
# data set: househ... |
#H2o setup
# The following two commands remove any previously installed H2O packages for R.
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
# Next, we download packages that H2O depends on.
pkgs <- c("methods","stat... | /H2O.R | no_license | SouravBhowmikDE/R-code | R | false | false | 824 | r | #H2o setup
# The following two commands remove any previously installed H2O packages for R.
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
# Next, we download packages that H2O depends on.
pkgs <- c("methods","stat... |
testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252181099e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::match_rows,testlist)
str(resu... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613123538-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 323 | r | testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252181099e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::match_rows,testlist)
str(resu... |
#
# 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(shinyBS)
library(MCMCpack)
library(msm)
library(ggplot2)
library(GGally)
library(SizeEstima... | /packages/size_estimation/app.R | no_license | fellstat/epiapps | R | false | false | 28,794 | 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(shinyBS)
library(MCMCpack)
library(msm)
library(ggplot2)
library(GGally)
library(SizeEstima... |
###This script generates Day Patterns from DaySim run outputs
print("Tour Destination Summary...Started")
prep_perdata <- function(perdata,hhdata)
{
hhdata[,hhcounty:=countycorr$DISTRICT[match(hhtaz,countycorr$TAZ)]]
perdata <- merge(perdata,hhdata,by="hhno",all.x=T)
return(perdata)
}
merge_skims <- function(t... | /daysim_summaries/bkrcast_outbkr/tourdestination.R | no_license | bellevuewa/BKRCast | R | false | false | 3,785 | r | ###This script generates Day Patterns from DaySim run outputs
print("Tour Destination Summary...Started")
prep_perdata <- function(perdata,hhdata)
{
hhdata[,hhcounty:=countycorr$DISTRICT[match(hhtaz,countycorr$TAZ)]]
perdata <- merge(perdata,hhdata,by="hhno",all.x=T)
return(perdata)
}
merge_skims <- function(t... |
QNAMES <- sprintf('doSMP%d', 1:8)
startWorkers <- function(workerCount=getOption('cores'), FORCE=FALSE,
tmpdir=tempdir(), verbose=FALSE) {
# get number of workers to start
if (is.null(workerCount))
workerCount <- 3
workerCount <- as.integer(workerCount)
# get path to R and the wor... | /R/workers.R | no_license | cran/doSMP | R | false | false | 6,078 | r | QNAMES <- sprintf('doSMP%d', 1:8)
startWorkers <- function(workerCount=getOption('cores'), FORCE=FALSE,
tmpdir=tempdir(), verbose=FALSE) {
# get number of workers to start
if (is.null(workerCount))
workerCount <- 3
workerCount <- as.integer(workerCount)
# get path to R and the wor... |
#
# Copyright 2007-2017 The OpenMx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | /inst/models/passing/RAM-FIML-defvars.R | no_license | ktargows/OpenMx | R | false | false | 1,623 | r | #
# Copyright 2007-2017 The OpenMx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
# -- Designate locations and load packages---------------------------------------------------------
whichDat <- "real"
STATE <- "California"
myDrive <- "E:"
myPlace <- paste0(myDrive,"/0.CBD/myCBD")
upPlace <- paste0(myDrive,"/0.CBD/myUpstream")
library(tidyverse)
library(epitools)
library(sqldf)
library(... | /myUpstream/popExplore.R | no_license | aculich/CACommunityBurden | R | false | false | 28,264 | r |
# -- Designate locations and load packages---------------------------------------------------------
whichDat <- "real"
STATE <- "California"
myDrive <- "E:"
myPlace <- paste0(myDrive,"/0.CBD/myCBD")
upPlace <- paste0(myDrive,"/0.CBD/myUpstream")
library(tidyverse)
library(epitools)
library(sqldf)
library(... |
#' The Good-Turing estimate of species richness
#'
#'
#' @param input_data An input type that can be processed by \code{convert()} or a \code{phyloseq} object
#'
#' @return An object of class \code{alpha_estimate}, or \code{alpha_estimates} for \code{phyloseq} objects
#' @export
good_turing <- function(input_data) ... | /R/richness_good_turing.R | no_license | pooranis/breakaway | R | false | false | 1,464 | r | #' The Good-Turing estimate of species richness
#'
#'
#' @param input_data An input type that can be processed by \code{convert()} or a \code{phyloseq} object
#'
#' @return An object of class \code{alpha_estimate}, or \code{alpha_estimates} for \code{phyloseq} objects
#' @export
good_turing <- function(input_data) ... |
### The purpose of this script is to extract Short Microwave Radiaiton Sea-Ice data from
# the NSCID Cilmate Recrod Data Set and prepare the data for inclusion in the phenology models
# Jakob Assmann (j.assmann@ed.ac.uk) August 2017
# load (some of the) dependencies
library(chron)
library(lattice)
library(ncdf4)
libra... | /data/sea_ice_data/alexfiord/sea_ice_extraction_alexfiord_old.R | permissive | jakobjassmann/coastalphenology | R | false | false | 13,773 | r | ### The purpose of this script is to extract Short Microwave Radiaiton Sea-Ice data from
# the NSCID Cilmate Recrod Data Set and prepare the data for inclusion in the phenology models
# Jakob Assmann (j.assmann@ed.ac.uk) August 2017
# load (some of the) dependencies
library(chron)
library(lattice)
library(ncdf4)
libra... |
options(digits=3)
x<-runif(20)*100
x
summary(x)
| /chap1.R | no_license | Shubham-Pujan/Practicing_R | R | false | false | 49 | r |
options(digits=3)
x<-runif(20)*100
x
summary(x)
|
A = matrix(c(1, 1, 2, 0), 2, 2, byrow=TRUE)
A
x0 = rnorm(2)
x0
#x0=matrix(c(1,1),nrow=2,ncol=1)
thresh = 1e-22
eigen(A)
# simple power method which is based on number of iterations as input
# we can give starting x0, and if not given, it will generate automatically
power_method_simple=function(A,n_re... | /PowerMethod.r | no_license | shryapjain/Graph-Theory-and-Matrices | R | false | false | 2,703 | r | A = matrix(c(1, 1, 2, 0), 2, 2, byrow=TRUE)
A
x0 = rnorm(2)
x0
#x0=matrix(c(1,1),nrow=2,ncol=1)
thresh = 1e-22
eigen(A)
# simple power method which is based on number of iterations as input
# we can give starting x0, and if not given, it will generate automatically
power_method_simple=function(A,n_re... |
#load data
load("approved.RData")
load("rejected.RData")
#select variables(amount,score,dti,employment)
rej <- rejected[,c("amount","score","dti","employment")]
app <- approved[,c("amount","score","dti","employment")]
#remove NA and score==0
rej <- na.omit(rej)
rej <- subset(rej, score!=0)
app <- na.omit(a... | /prediction.R | no_license | xiwhuang/LendingClub | R | false | false | 1,993 | r | #load data
load("approved.RData")
load("rejected.RData")
#select variables(amount,score,dti,employment)
rej <- rejected[,c("amount","score","dti","employment")]
app <- approved[,c("amount","score","dti","employment")]
#remove NA and score==0
rej <- na.omit(rej)
rej <- subset(rej, score!=0)
app <- na.omit(a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_496}
\alias{movie_496}
\title{Music of the Heart}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0166943
}
... | /man/movie_496.Rd | permissive | physthoth/networkdata | R | false | true | 663 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-movie.R
\docType{data}
\name{movie_496}
\alias{movie_496}
\title{Music of the Heart}
\format{igraph object}
\source{
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/T4HBA3
https://www.imdb.com/title/tt0166943
}
... |
## Load required libraries
require(dplyr)
require(ggplot2)
require(ggthemes)
## Loading and preprocessing the data
fURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
zipFileName <- "./data.zip"
summaryFileName <- "./summarySCC_PM25.rds"
codeFileName <- "./Source_Classification_Code.rds"
## ... | /plot5.R | no_license | jrebane/expdata_assignment2 | R | false | false | 3,120 | r | ## Load required libraries
require(dplyr)
require(ggplot2)
require(ggthemes)
## Loading and preprocessing the data
fURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
zipFileName <- "./data.zip"
summaryFileName <- "./summarySCC_PM25.rds"
codeFileName <- "./Source_Classification_Code.rds"
## ... |
# Code for Fig S4: estimate leading Lyapunov vector for each point along
# a time series and compute its alignment with the leading eigenvector
# cleaning wd, loading functions and packages ------------------------------
rm(list = ls(all = TRUE))
source("code/functions/lotka_volterra.R")
source("code/functions/preda... | /code/scripts/figS4.R | permissive | lucaspdmedeiros/ranking-species-sensitivity | R | false | false | 8,781 | r | # Code for Fig S4: estimate leading Lyapunov vector for each point along
# a time series and compute its alignment with the leading eigenvector
# cleaning wd, loading functions and packages ------------------------------
rm(list = ls(all = TRUE))
source("code/functions/lotka_volterra.R")
source("code/functions/preda... |
svd_analysis <- function(Y,X,G){
q <- dim(X)[2]
p <- dim(G)[2]
xg <- cbind(X,G)
c <- solve(t(G) %*% G) %*% t(G) %*% X
Dg <- solve(t(G) %*% G) %*% t(G) %*% Y
Dg <- diag(c(Dg))
betaxg <- solve(t(xg) %*% xg) %*% t(xg) %*% Y
Dx <- diag(c(betaxg)[1:q])
w <- Dg %*% c %*% Dx
alpha <- w / matri... | /R/function_svd_analysis.R | no_license | fzhang8/simufunsFZ4 | R | false | false | 470 | r | svd_analysis <- function(Y,X,G){
q <- dim(X)[2]
p <- dim(G)[2]
xg <- cbind(X,G)
c <- solve(t(G) %*% G) %*% t(G) %*% X
Dg <- solve(t(G) %*% G) %*% t(G) %*% Y
Dg <- diag(c(Dg))
betaxg <- solve(t(xg) %*% xg) %*% t(xg) %*% Y
Dx <- diag(c(betaxg)[1:q])
w <- Dg %*% c %*% Dx
alpha <- w / matri... |
\name{PercolationIndicator-package}
\alias{PercolationIndicator-package}
\docType{package}
\title{
Capturing the dynamics of a network in a single parameter: the percolation indicator
}
\description{
This method captures the dynamics of a network in a single parameter: the percolation indicator. The indicator is co... | /man/percolationindicator-package.Rd | no_license | cvborkulo/PercolationIndicator | R | false | false | 1,860 | rd | \name{PercolationIndicator-package}
\alias{PercolationIndicator-package}
\docType{package}
\title{
Capturing the dynamics of a network in a single parameter: the percolation indicator
}
\description{
This method captures the dynamics of a network in a single parameter: the percolation indicator. The indicator is co... |
## 00 Master script
# Load the necessary packages
library(foreign)
library(ggplot2)
library(Cairo)
library(xtable)
library(texreg)
library(lmtest)
library(MASS)
# library(lme4) # will run all models (one level and ml) using glmmADMB
#library(glmmADMB)
library(evaluate)
library(classInt)
library(dgof)
## Create direc... | /ENVE_script_00.R | permissive | prestevez/ENVE | R | false | false | 1,282 | r | ## 00 Master script
# Load the necessary packages
library(foreign)
library(ggplot2)
library(Cairo)
library(xtable)
library(texreg)
library(lmtest)
library(MASS)
# library(lme4) # will run all models (one level and ml) using glmmADMB
#library(glmmADMB)
library(evaluate)
library(classInt)
library(dgof)
## Create direc... |
library(tidyverse)
library(purrr)
library(dslabs)
library(broom)
data(mnist_27)
if(!exists("mnist")) mnist <- read_mnist()
x <- mnist$train$images[1:1000,]
y <- mnist$train$labels[1:1000]
x[3,]
grid <- matrix(x[3,], 28, 28)
image(1:28, 1:28, grid)
image(1:28, 1:28, grid[,28:1])
sums <- rowSums(x)
as.vector(x)
qplot(as... | /matrix.R | no_license | micpesce/machine_learning | R | false | false | 790 | r | library(tidyverse)
library(purrr)
library(dslabs)
library(broom)
data(mnist_27)
if(!exists("mnist")) mnist <- read_mnist()
x <- mnist$train$images[1:1000,]
y <- mnist$train$labels[1:1000]
x[3,]
grid <- matrix(x[3,], 28, 28)
image(1:28, 1:28, grid)
image(1:28, 1:28, grid[,28:1])
sums <- rowSums(x)
as.vector(x)
qplot(as... |
#Supplemental section 4
#R script for Magid K., Chatterton RT, Ahamed FU, Bentley GR, "Childhood ecology influences salivary testosterone and pubertal age of Bangladeshi UK migrant men"
#Packages used in analysis-----------------------------------------------------------------------------------------------------------... | /S4_salT_Pub_RScript_analysis.R | no_license | kessonovitch/BHAI_Data | R | false | false | 194,154 | r | #Supplemental section 4
#R script for Magid K., Chatterton RT, Ahamed FU, Bentley GR, "Childhood ecology influences salivary testosterone and pubertal age of Bangladeshi UK migrant men"
#Packages used in analysis-----------------------------------------------------------------------------------------------------------... |
# Оптимальная переустановка R с пересбором пакетов
# https://ibecav.github.io/update_libraries/
require(tidyverse)
# Часть 1. Создание списка пакетов
# Helpful background
allmypackages <- as.data.frame(installed.packages())
allmypackages <- allmypackages %>%
filter(Priority != "base" | is.na(Priority)) %>%
selec... | /00 tricks/reinstall_R_packages.R | no_license | iMissile/R.projects | R | false | false | 2,060 | r | # Оптимальная переустановка R с пересбором пакетов
# https://ibecav.github.io/update_libraries/
require(tidyverse)
# Часть 1. Создание списка пакетов
# Helpful background
allmypackages <- as.data.frame(installed.packages())
allmypackages <- allmypackages %>%
filter(Priority != "base" | is.na(Priority)) %>%
selec... |
rm(list=ls()) ## clean enviornment
library(tidyverse)
library(readxl)
library(zoo)
library(lfe)
library(coefplot)
setwd(dir = '~/misinformation_socialmedia/data/')
### Load data
### Load and prepare data
load('5-analysis/1-input_data/misinformation/data_reg_misinformation.Rda', verbose = TRUE)
popular_measure = r... | /source/5-analysis/misinformation/6-coefficients_popular.R | no_license | cblanesg/misinformation_socialmedia | R | false | false | 8,790 | r |
rm(list=ls()) ## clean enviornment
library(tidyverse)
library(readxl)
library(zoo)
library(lfe)
library(coefplot)
setwd(dir = '~/misinformation_socialmedia/data/')
### Load data
### Load and prepare data
load('5-analysis/1-input_data/misinformation/data_reg_misinformation.Rda', verbose = TRUE)
popular_measure = r... |
# converts llama results to xtable
printResultsAsHTMLTable = function(res, scenario.id, col.best = "#FF0000", col.best3 = "#FFAAAA",
col.group = "#00FF00") {
require("xtable")
res = subset(res, prob == scenario.id)
groups = unique(res$algo)
# display config for measures
measures = list(
list(id = "pa... | /server_scripts/convertResultsToXTable.R | no_license | davidvanbulck/aslib-r | R | false | false | 1,723 | r | # converts llama results to xtable
printResultsAsHTMLTable = function(res, scenario.id, col.best = "#FF0000", col.best3 = "#FFAAAA",
col.group = "#00FF00") {
require("xtable")
res = subset(res, prob == scenario.id)
groups = unique(res$algo)
# display config for measures
measures = list(
list(id = "pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expect-constant.R
\name{logical-expectations}
\alias{logical-expectations}
\alias{expect_true}
\alias{expect_false}
\title{Expectation: is the object true/false?}
\usage{
expect_true(object, info = NULL, label = NULL)
expect_false(object, in... | /man/logical-expectations.Rd | permissive | pat-s/testthat | R | false | true | 1,780 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expect-constant.R
\name{logical-expectations}
\alias{logical-expectations}
\alias{expect_true}
\alias{expect_false}
\title{Expectation: is the object true/false?}
\usage{
expect_true(object, info = NULL, label = NULL)
expect_false(object, in... |
# library(hotspots2) # Having issues with cache_dir()
load_all()
library(foreach)
library(doParallel)
registerDoParallel(20)
# First, we'll load all datasets.
data(decadal)
data(change)
data(eid_metadata)
data(event_coverage)
# Set our directory name and the number of sample iterations we want to conduct.
model_na... | /inst/scripts/kfold_evaluate_with_noweight_unflattened.R | permissive | ecohealthalliance/hotspots2 | R | false | false | 5,196 | r | # library(hotspots2) # Having issues with cache_dir()
load_all()
library(foreach)
library(doParallel)
registerDoParallel(20)
# First, we'll load all datasets.
data(decadal)
data(change)
data(eid_metadata)
data(event_coverage)
# Set our directory name and the number of sample iterations we want to conduct.
model_na... |
#This code demonstrate GBLUP model
rm(list=ls())
library(BATools)
data("Pig")
#Standardize genotype matrix
geno=std_geno(PigM,method="s",freq=PigAlleleFreq)
#Mask some genotype as missing to test single-step approach
set.seed(1001)
n=dim(geno)[1]
indexng<-sort(sample(1:n,n%/%5))
genoNew=geno[-indexng,]
init=set.init(... | /demo/ssGBLUP.R | no_license | lijinlong1991/BATools | R | false | false | 1,530 | r | #This code demonstrate GBLUP model
rm(list=ls())
library(BATools)
data("Pig")
#Standardize genotype matrix
geno=std_geno(PigM,method="s",freq=PigAlleleFreq)
#Mask some genotype as missing to test single-step approach
set.seed(1001)
n=dim(geno)[1]
indexng<-sort(sample(1:n,n%/%5))
genoNew=geno[-indexng,]
init=set.init(... |
fit <- function(X, y, output_dir, class_order=NULL, row_weights=NULL, ...){}
transform <- function(X, transformer, y=NULL, ...){
# Ignore the model and return the sparse input
X
} | /tests/fixtures/r_transform_fit_custom_sparse_in_out.R | permissive | 1arjunarora/datarobot-user-models | R | false | false | 188 | r | fit <- function(X, y, output_dir, class_order=NULL, row_weights=NULL, ...){}
transform <- function(X, transformer, y=NULL, ...){
# Ignore the model and return the sparse input
X
} |
## This function has 4 functions inside it
## "set" subtitutes x with y, and makes m NULL
## "get"just gets object stored in x
## "setinverse" stores the inverse in variable m
## "getinverse" returns the value of variable m
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
... | /cachematrix.R | no_license | JKIronak/ProgrammingAssignment2 | R | false | false | 1,031 | r |
## This function has 4 functions inside it
## "set" subtitutes x with y, and makes m NULL
## "get"just gets object stored in x
## "setinverse" stores the inverse in variable m
## "getinverse" returns the value of variable m
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
... |
# Author : Jenn Schilling
# Title: #TidyTuesday CEO Departures
# Date: Apr 27 2021
#### Libraries ####
library(tidyverse)
library(extrafont)
library(ggtext)
library(ggridges)
#### Data ####
departures <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04-27/departures.... | /11-R/tidytuesday-2021/2021-04-27/2021-04-27.R | no_license | BioInformatica-Labs/My-Data-Science-Journey | R | false | false | 4,015 | r | # Author : Jenn Schilling
# Title: #TidyTuesday CEO Departures
# Date: Apr 27 2021
#### Libraries ####
library(tidyverse)
library(extrafont)
library(ggtext)
library(ggridges)
#### Data ####
departures <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04-27/departures.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bhlm_classes.R
\docType{class}
\name{bhlm_object-class}
\alias{bhlm_object-class}
\title{An S4 class to contain the results and used data of \code{latent_mixture}.}
\description{
An S4 class to contain the results and used data of \code{laten... | /man/bhlm_object-class.Rd | no_license | arcuo/BHLM_package | R | false | true | 523 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bhlm_classes.R
\docType{class}
\name{bhlm_object-class}
\alias{bhlm_object-class}
\title{An S4 class to contain the results and used data of \code{latent_mixture}.}
\description{
An S4 class to contain the results and used data of \code{laten... |
testlist <- list(m = NULL, repetitions = -304992360L, in_m = structure(c(2.33506636999156e+77, 9.53818252170339e+295, 1.22810536108214e+146), .Dim = c(3L, 1L )))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615786225-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 254 | r | testlist <- list(m = NULL, repetitions = -304992360L, in_m = structure(c(2.33506636999156e+77, 9.53818252170339e+295, 1.22810536108214e+146), .Dim = c(3L, 1L )))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(result) |
# Ejercicio 1
x <-2
y <- 4
z <- 5 | /Ejercicio1.R | no_license | RoyBatty21/PEC3_SAD | R | false | false | 35 | r | # Ejercicio 1
x <-2
y <- 4
z <- 5 |
context("utils")
test_that("check_pkg() gives correct error message", {
expect_error(
dplyr:::check_pkg("`__foobarbaz__`", "foobar a baz"),
'The `__foobarbaz__` package is required to foobar a baz.\nPlease install it with `install.packages("`__foobarbaz__`")`',
fixed = TRUE
)
expect_error(
dplyr:... | /tests/testthat/test-utils.R | permissive | jakobetzel/dplyr | R | false | false | 951 | r | context("utils")
test_that("check_pkg() gives correct error message", {
expect_error(
dplyr:::check_pkg("`__foobarbaz__`", "foobar a baz"),
'The `__foobarbaz__` package is required to foobar a baz.\nPlease install it with `install.packages("`__foobarbaz__`")`',
fixed = TRUE
)
expect_error(
dplyr:... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BatchCorrection.R
\name{prepareInitsLM}
\alias{prepareInitsLM}
\title{Prepare initial values for fitting shifts}
\usage{
prepareInitsLM(batches, ref.batch = 1)
}
\arguments{
\item{batches}{list of elisa_batch data}
\item{ref.batch}{numeric t... | /man/prepareInitsLM.Rd | no_license | cran/ELISAtools | R | false | true | 970 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BatchCorrection.R
\name{prepareInitsLM}
\alias{prepareInitsLM}
\title{Prepare initial values for fitting shifts}
\usage{
prepareInitsLM(batches, ref.batch = 1)
}
\arguments{
\item{batches}{list of elisa_batch data}
\item{ref.batch}{numeric t... |
# 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/avgEVT__insurance__married__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 4,800 | 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... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpPredictSpatial.R
\name{lgcpPredictSpatial}
\alias{lgcpPredictSpatial}
\title{lgcpPredictSpatial function}
\usage{
lgcpPredictSpatial(
sd,
model.parameters = lgcppars(),
spatial.covmodel = "exponential",
covpars = c(),
cellwidth ... | /man/lgcpPredictSpatial.Rd | no_license | cran/lgcp | R | false | true | 5,696 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpPredictSpatial.R
\name{lgcpPredictSpatial}
\alias{lgcpPredictSpatial}
\title{lgcpPredictSpatial function}
\usage{
lgcpPredictSpatial(
sd,
model.parameters = lgcppars(),
spatial.covmodel = "exponential",
covpars = c(),
cellwidth ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pointer.rgc.R
\name{pointer.rgc}
\alias{pointer.rgc}
\title{Calculate pointer years using the relative growth change method}
\usage{
pointer.rgc(data, period = NULL, nb.yrs = 4, rgc.thresh.pos = 60, rgc.thresh.neg = 40,
series.th... | /man/pointer.rgc.Rd | no_license | cran/pointRes | R | false | true | 5,026 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pointer.rgc.R
\name{pointer.rgc}
\alias{pointer.rgc}
\title{Calculate pointer years using the relative growth change method}
\usage{
pointer.rgc(data, period = NULL, nb.yrs = 4, rgc.thresh.pos = 60, rgc.thresh.neg = 40,
series.th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{convert_dtm_to_dtc}
\alias{convert_dtm_to_dtc}
\title{Helper function to convert date (or date-time) objects to characters of dtc format
(-DTC type of variable)}
\usage{
convert_dtm_to_dtc(dtm)
}
\arguments{
\item{dtm}{date or d... | /man/convert_dtm_to_dtc.Rd | no_license | rajkboddu/admiral | R | false | true | 637 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{convert_dtm_to_dtc}
\alias{convert_dtm_to_dtc}
\title{Helper function to convert date (or date-time) objects to characters of dtc format
(-DTC type of variable)}
\usage{
convert_dtm_to_dtc(dtm)
}
\arguments{
\item{dtm}{date or d... |
\name{tp_dist}
\alias{tp_dist}
\title{Return all distribution records for for a taxon name with a given id.}
\usage{
tp_dist(id, key = NULL, callopts = list())
}
\arguments{
\item{id}{the taxon identifier code}
\item{key}{Your Tropicos API key; loads from .Rprofile.
Or you can passin your key in this arg.}
... | /man/tp_dist.Rd | permissive | imclab/taxize | R | false | false | 816 | rd | \name{tp_dist}
\alias{tp_dist}
\title{Return all distribution records for for a taxon name with a given id.}
\usage{
tp_dist(id, key = NULL, callopts = list())
}
\arguments{
\item{id}{the taxon identifier code}
\item{key}{Your Tropicos API key; loads from .Rprofile.
Or you can passin your key in this arg.}
... |
#0) prep workspace
#a) load packages
library(docshop)
#b) find main directory
if(grepl("briarons",getwd())){
main.dir<-"C:/Users/briarons/Desktop/Analysis - Data/Postdoc"
}
if(grepl("bda13",getwd())){
main.dir<-"C:/Users/bda13/Desktop/Analysis - Data/P... | /Code/7.0) Prepare quantity variables.R | no_license | BrianAronson/US-MAT-Opioid | R | false | false | 2,182 | r | #0) prep workspace
#a) load packages
library(docshop)
#b) find main directory
if(grepl("briarons",getwd())){
main.dir<-"C:/Users/briarons/Desktop/Analysis - Data/Postdoc"
}
if(grepl("bda13",getwd())){
main.dir<-"C:/Users/bda13/Desktop/Analysis - Data/P... |
play <- function(k, t) {
buildDeck(t)
# list of scores - a player's score is found by scores[player+1] (dealer is index 1)
scores <<- rep(list(0), k+1)
initialDraw(0)
for(i in seq(from=1, to=k, by=1)){
initialDraw(i)
repeat{
if (scores[i+1] >= 21) {
break
}
nex... | /Blackjack-Game/BlackjackGame.R | no_license | cpang4/projects | R | false | false | 5,959 | r | play <- function(k, t) {
buildDeck(t)
# list of scores - a player's score is found by scores[player+1] (dealer is index 1)
scores <<- rep(list(0), k+1)
initialDraw(0)
for(i in seq(from=1, to=k, by=1)){
initialDraw(i)
repeat{
if (scores[i+1] >= 21) {
break
}
nex... |
hdfs.ls =
function(fname)
read.table(
textConnection(hdfs("ls", fname, intern = TRUE)),
skip=1,
col.names=c("permissions", "links", "owner", "group", "size", "date", "time", "path"),
stringsAsFactors = FALSE)
hdfs.exists =
function(fname)
hdfs("test -e", fname, test = TRUE)
test... | /pkg/R/hdfs.R | no_license | arnabguin/rmr2 | R | false | false | 1,303 | r | hdfs.ls =
function(fname)
read.table(
textConnection(hdfs("ls", fname, intern = TRUE)),
skip=1,
col.names=c("permissions", "links", "owner", "group", "size", "date", "time", "path"),
stringsAsFactors = FALSE)
hdfs.exists =
function(fname)
hdfs("test -e", fname, test = TRUE)
test... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{update_collate}
\alias{update_collate}
\title{Update Collate field in DESCRIPTION.}
\usage{
update_collate(base_path)
}
\arguments{
\item{base_path}{Path to package directory}
}
\description{
Topologically sort R files and record in Collate field. The topologic... | /man/update_collate.Rd | no_license | takluyver/roxygen | R | false | false | 1,193 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{update_collate}
\alias{update_collate}
\title{Update Collate field in DESCRIPTION.}
\usage{
update_collate(base_path)
}
\arguments{
\item{base_path}{Path to package directory}
}
\description{
Topologically sort R files and record in Collate field. The topologic... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fusiontables_objects.R
\name{Template}
\alias{Template}
\title{Template Object}
\usage{
Template(automaticColumnNames = NULL, body = NULL, name = NULL,
tableId = NULL, templateId = NULL)
}
\arguments{
\item{automaticColumnNames}{List of col... | /googlefusiontablesv1.auto/man/Template.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 967 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fusiontables_objects.R
\name{Template}
\alias{Template}
\title{Template Object}
\usage{
Template(automaticColumnNames = NULL, body = NULL, name = NULL,
tableId = NULL, templateId = NULL)
}
\arguments{
\item{automaticColumnNames}{List of col... |
#Bevan Vollenhoven (3840572)
#Measures of Biodiversity: Beta Diversity
library(ggplot2)
library(dplyr)
library(tidyverse)
library(betapart)
library(vegan)
library(gridExtra)
library(BiodiversityR)
library(grid)
library(gridBase)
library(tidyr)
library(geodist)
#Beta diversity measures the diversity between communitie... | /beta_diversity_01_07_2021.R | no_license | bjvollenhoven/QE2021 | R | false | false | 6,283 | r | #Bevan Vollenhoven (3840572)
#Measures of Biodiversity: Beta Diversity
library(ggplot2)
library(dplyr)
library(tidyverse)
library(betapart)
library(vegan)
library(gridExtra)
library(BiodiversityR)
library(grid)
library(gridBase)
library(tidyr)
library(geodist)
#Beta diversity measures the diversity between communitie... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot-methods.R
\name{plot_spectra_peaks}
\alias{plot_spectra_peaks}
\title{Plot only the Peaks in a spectra matrix}
\usage{
plot_spectra_peaks(physeq, log_scale = FALSE, subsample_frac = 1,
x_min = NULL, x_max = NULL, col = NULL, li... | /man/plot_spectra_peaks.Rd | no_license | krisrs1128/phyloseqExtend | R | false | false | 1,626 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot-methods.R
\name{plot_spectra_peaks}
\alias{plot_spectra_peaks}
\title{Plot only the Peaks in a spectra matrix}
\usage{
plot_spectra_peaks(physeq, log_scale = FALSE, subsample_frac = 1,
x_min = NULL, x_max = NULL, col = NULL, li... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/graphs_algorithms.R
\name{bigraphs_rewiring_onestep}
\alias{bigraphs_rewiring_onestep}
\title{rewiring a link to some node with more links. (richer get richer)}
\usage{
bigraphs_rewiring_onestep(B, connected = TRUE, ntry = 100)
}
\arg... | /man/bigraphs_rewiring_onestep.Rd | no_license | keepsimpler/StabEco | R | false | false | 705 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/graphs_algorithms.R
\name{bigraphs_rewiring_onestep}
\alias{bigraphs_rewiring_onestep}
\title{rewiring a link to some node with more links. (richer get richer)}
\usage{
bigraphs_rewiring_onestep(B, connected = TRUE, ntry = 100)
}
\arg... |
sqlComputeTrace <- RxInSqlServer(
connectionString = sqlConnString,
#shareDir = sqlShareDir,
wait = sqlWait,
consoleOutput = sqlConsoleOutput,
traceEnabled = TRUE,
traceLevel = 7)
# to change the compute context, use the rxSetComputeContext function and specify the context by name
... | /context-switching.R | no_license | je-r/microsoft-machine-learning-server-testing | R | false | false | 369 | r | sqlComputeTrace <- RxInSqlServer(
connectionString = sqlConnString,
#shareDir = sqlShareDir,
wait = sqlWait,
consoleOutput = sqlConsoleOutput,
traceEnabled = TRUE,
traceLevel = 7)
# to change the compute context, use the rxSetComputeContext function and specify the context by name
... |
# Exercise 2: Creating data frames
aaaaaa
# Create a vector of the number of points the Seahawks scored the first 4 games of last season
# Hint: (google "Seahawks scores 2016")
# Create a vector of the number of points the Seahawks have allowed to be scored against them in the first 4 games
# Combine your two vector... | /exercise-1/exercise.R | permissive | uwn73d8g/m10-dataframes | R | false | false | 558 | r | # Exercise 2: Creating data frames
aaaaaa
# Create a vector of the number of points the Seahawks scored the first 4 games of last season
# Hint: (google "Seahawks scores 2016")
# Create a vector of the number of points the Seahawks have allowed to be scored against them in the first 4 games
# Combine your two vector... |
get_ps <- function(si_shape, si_rate, k = 100){
# might want to rename this to get_si (since that's what it's doing...)
#
#' Find Discrete Serial Interval
#'
#' Gets discrete probability distribution for serial interval using given
#' shape and rate parameters.
#'
#' @param si_shape A float, shape par... | /R/find_rts_setup.R | no_license | kyamkovoy/RepNumEst | R | false | false | 2,765 | r | get_ps <- function(si_shape, si_rate, k = 100){
# might want to rename this to get_si (since that's what it's doing...)
#
#' Find Discrete Serial Interval
#'
#' Gets discrete probability distribution for serial interval using given
#' shape and rate parameters.
#'
#' @param si_shape A float, shape par... |
#' createReport
#'
#' Generate HTML report for ORA and GSEA
#'
#' @importFrom jsonlite toJSON
#' @importFrom whisker whisker.render
#'
#' @keywords internal
#'
createReport <- function(hostName, outputDirectory, organism="hsapiens", projectName, enrichMethod, geneSet, geneSetDes, geneSetDag, geneSetNet, interestingGene... | /R/createReport.R | no_license | smartgamer/WebGestaltR | R | false | false | 7,284 | r | #' createReport
#'
#' Generate HTML report for ORA and GSEA
#'
#' @importFrom jsonlite toJSON
#' @importFrom whisker whisker.render
#'
#' @keywords internal
#'
createReport <- function(hostName, outputDirectory, organism="hsapiens", projectName, enrichMethod, geneSet, geneSetDes, geneSetDag, geneSetNet, interestingGene... |
#' @title Merge multiple GTFS feeds into a single one
#'
#' @description Build a single GTFS by joinning together the elements of multiple GTFS feeds.
#' @param gtfs_list A list of GTFS.zip files.
#' @return A single list of data.tables, where each index represents the respective GTFS file name.
#' @export
#' @e... | /gtfs2gps/R/merge_gtfs_feeds.R | no_license | akhikolla/InformationHouse | R | false | false | 3,130 | r | #' @title Merge multiple GTFS feeds into a single one
#'
#' @description Build a single GTFS by joinning together the elements of multiple GTFS feeds.
#' @param gtfs_list A list of GTFS.zip files.
#' @return A single list of data.tables, where each index represents the respective GTFS file name.
#' @export
#' @e... |
#plot2 function
#
#Script with function
#which make second task plot
plot2 <- function(task_data){
png(filename = "plot2.png", width = 480, height = 480)
plot(y = task_data$Global_active_power, x = task_data$Data_Time, type = "l", xlab = "datetime"
, ylab = "Global Active Power (kilowatts)")
dev.off... | /plot2.R | no_license | maneesh2425/coursera-exploratory-data-analysis-course-project-1 | R | false | false | 325 | r | #plot2 function
#
#Script with function
#which make second task plot
plot2 <- function(task_data){
png(filename = "plot2.png", width = 480, height = 480)
plot(y = task_data$Global_active_power, x = task_data$Data_Time, type = "l", xlab = "datetime"
, ylab = "Global Active Power (kilowatts)")
dev.off... |
export_function <- function (uniqueID, moduleDir, outputDir, gtool) {
if (!file.exists(outputDir)) {
stop(paste("Did not find a output data with this id", uniqueID))
}
output <- list()
#############
# First get height
#############
# get gender
pDataFile <- paste(outputDir, "/p... | /imputation/impute-me/guessMyHeight/export_script.R | permissive | xie186/genomes-io-prj | R | false | false | 2,941 | r | export_function <- function (uniqueID, moduleDir, outputDir, gtool) {
if (!file.exists(outputDir)) {
stop(paste("Did not find a output data with this id", uniqueID))
}
output <- list()
#############
# First get height
#############
# get gender
pDataFile <- paste(outputDir, "/p... |
testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(9.70418706714725e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70419085674553e-101, 9.70418696071228e-101, 3.80916963432752e+117, 4.34777768340297e-... | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610051427-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 454 | r | testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(9.70418706714725e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70418706716128e-101, 9.70419085674553e-101, 9.70418696071228e-101, 3.80916963432752e+117, 4.34777768340297e-... |
#' Read the contents of an SQL file
#'
#' Read query from a .sql file. Parameters in the query should be prefixed
#' with "@". If the argument \code{pkg_name} is provided this function assumes
#' it is being called from within a package and adjusts the file path accordingly.
#' Otherwise it uses the raw path provided. ... | /R/sq_file.R | no_license | joranE/squr | R | false | false | 2,581 | r | #' Read the contents of an SQL file
#'
#' Read query from a .sql file. Parameters in the query should be prefixed
#' with "@". If the argument \code{pkg_name} is provided this function assumes
#' it is being called from within a package and adjusts the file path accordingly.
#' Otherwise it uses the raw path provided. ... |
getSourecData <- function(){
fileurl <-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
filesavepath <- "Dataset.zip"
# Download and extract
download.file(fileurl, filesavepath)
wd<-getwd()
unzip(filesavepath, e... | /run_analysis.R | no_license | pbrew529/GettingSharingProject | R | false | false | 6,070 | r | getSourecData <- function(){
fileurl <-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
filesavepath <- "Dataset.zip"
# Download and extract
download.file(fileurl, filesavepath)
wd<-getwd()
unzip(filesavepath, e... |
head.df=function(df){
if(nrow(df) < 5 & ncol(df) < 5) return(df)
if(nrow(df) < 5 ) return(df[,1:5])
if(ncol(df) < 5 ) return(df[1:5,])
}
sourceDir = function(path, trace = TRUE, ...) {
for (nm in list.files(path, pattern = "[.][RrSsQq]$")) {
if(trace) cat(nm,":")
source(file.path(path, nm), ...)
if... | /webapp/Functions/Helper.R | no_license | pradyumnasagar/web-TCGA | R | false | false | 587 | r | head.df=function(df){
if(nrow(df) < 5 & ncol(df) < 5) return(df)
if(nrow(df) < 5 ) return(df[,1:5])
if(ncol(df) < 5 ) return(df[1:5,])
}
sourceDir = function(path, trace = TRUE, ...) {
for (nm in list.files(path, pattern = "[.][RrSsQq]$")) {
if(trace) cat(nm,":")
source(file.path(path, nm), ...)
if... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/carehomes.R
\name{carehomes_compare}
\alias{carehomes_compare}
\title{Compare observed and modelled data for the carehomes model}
\usage{
carehomes_compare(state, observed, pars)
}
\arguments{
\item{state}{State vector for the end of the curr... | /man/carehomes_compare.Rd | permissive | gsarfo-boateng/sircovid | R | false | true | 1,050 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/carehomes.R
\name{carehomes_compare}
\alias{carehomes_compare}
\title{Compare observed and modelled data for the carehomes model}
\usage{
carehomes_compare(state, observed, pars)
}
\arguments{
\item{state}{State vector for the end of the curr... |
#Write using the ddply() function from the plyr package.
#ddply takes many arguments. First, it takes the name of the dataset.
#Second, it takes a concatenation of strings (so we need ""!) of variables we want to put into groups.
#That would be things like, did they take the drug, or not? It is our independent variable... | /Ggplot2_Review/scripts/ddply_step1.R | permissive | tvpollet/Psychology_Statistics | R | false | false | 1,540 | r | #Write using the ddply() function from the plyr package.
#ddply takes many arguments. First, it takes the name of the dataset.
#Second, it takes a concatenation of strings (so we need ""!) of variables we want to put into groups.
#That would be things like, did they take the drug, or not? It is our independent variable... |
logp = c( 594.28
4: 932.92
3: 530.62
2: 697.07
1: 1127.2
0 (unsegmented): 1907.2
| /analysis/log prob lex model.R | no_license | mcfrank/bisegle | R | false | false | 81 | r | logp = c( 594.28
4: 932.92
3: 530.62
2: 697.07
1: 1127.2
0 (unsegmented): 1907.2
|
source("readData.R")
sketchPlot4 <- function(){
tbl <- getData()
png(filename = "plot4.png", width = 480, height = 480, units = "px")
par(mfrow=c(2,2), mar=c(4,4,2,1), oma=c(0,0,2,0))
with(tbl, {
plot(DateTime, Global_active_power, type="l", xlab="", ylab="Global Active Power")
plot(DateTime, V... | /exploratory-data-analysis/plot4.R | no_license | abhiabhi15/ds-coursera | R | false | false | 888 | r | source("readData.R")
sketchPlot4 <- function(){
tbl <- getData()
png(filename = "plot4.png", width = 480, height = 480, units = "px")
par(mfrow=c(2,2), mar=c(4,4,2,1), oma=c(0,0,2,0))
with(tbl, {
plot(DateTime, Global_active_power, type="l", xlab="", ylab="Global Active Power")
plot(DateTime, V... |
# Plot life expentancy, R script
myDataFull <- read.table("C:\\Users\\Manoj\\Desktop\\SWC_fall2018\\Data\\gapminder.txt",header=TRUE)
myDataFull
# subset canada only
Canada<-myDataFull[myDataFull$country=="Canada",]
Canada
# Plot
plot(Canada$year,Canada$lifeExp,col="blue",type="l")
| /R-subsetting-plotting.R | no_license | ManojSabnani/SWC_fall2018 | R | false | false | 284 | r | # Plot life expentancy, R script
myDataFull <- read.table("C:\\Users\\Manoj\\Desktop\\SWC_fall2018\\Data\\gapminder.txt",header=TRUE)
myDataFull
# subset canada only
Canada<-myDataFull[myDataFull$country=="Canada",]
Canada
# Plot
plot(Canada$year,Canada$lifeExp,col="blue",type="l")
|
install.packages("tidyverse")
install.packages("tibbletime")
install.packages("lubridate")
install.packages("DT")
library(tidyverse)
library(tibbletime)
library(lubridate)
library(DT)
memory.limit(size = 50000)
lmeat_files <- untar("lunchmeat.tgz", list = TRUE)
untar("lunchmeat.tgz")
move_11 <- tibble()
for (i in ... | /Lunch meat/lunchmeat_chart_maker.R | no_license | cdbale/category-captainship-1 | R | false | false | 7,064 | r | install.packages("tidyverse")
install.packages("tibbletime")
install.packages("lubridate")
install.packages("DT")
library(tidyverse)
library(tibbletime)
library(lubridate)
library(DT)
memory.limit(size = 50000)
lmeat_files <- untar("lunchmeat.tgz", list = TRUE)
untar("lunchmeat.tgz")
move_11 <- tibble()
for (i in ... |
path <- file.path("..", "household_power_consumption.txt")
header <- read.table(path, sep = ";", nrow = 1)
df <- read.table(path, sep = ";", skip = 66637, nrow = 2880)
colnames(df) <- sapply(header, as.character)
df$Date <- as.Date(df$Date, "%d/%m/%Y")
df[] <- sapply(df, as.character)
df[,3:9] <- sapply(df[,3:9], as.nu... | /plot3.R | no_license | bxleo/ExData_Plotting1 | R | false | false | 799 | r | path <- file.path("..", "household_power_consumption.txt")
header <- read.table(path, sep = ";", nrow = 1)
df <- read.table(path, sep = ";", skip = 66637, nrow = 2880)
colnames(df) <- sapply(header, as.character)
df$Date <- as.Date(df$Date, "%d/%m/%Y")
df[] <- sapply(df, as.character)
df[,3:9] <- sapply(df[,3:9], as.nu... |
#' Update Metadata
#'
#' Update the metadata in an \code{MSImagingExperiment} to include
#' ROIs and user defined conditions for each ROI.
#'
#' @param dataset \code{MSImagingExperiment} object
#' @param filedir Directory containing metadata files (default = current working directory)
#' @param spotFile Spot File con... | /R/updateMetadata.R | permissive | gtluu/cardinalscripts | R | false | false | 2,436 | r | #' Update Metadata
#'
#' Update the metadata in an \code{MSImagingExperiment} to include
#' ROIs and user defined conditions for each ROI.
#'
#' @param dataset \code{MSImagingExperiment} object
#' @param filedir Directory containing metadata files (default = current working directory)
#' @param spotFile Spot File con... |
# process_geo.R
# Prepare summary tables for GEO submission
load("data/counts.rda")
library(tidyverse)
assay <- counts
counts_mat <- assay$counts
# raw samples
samples <- dplyr::tiblble(sample_names = colnames(counts_mat)) %>%
dplyr::mutate(sample_meta = stringr::str_split(sample_names, "_"),
celltype... | /R/prepare_geo.R | no_license | sa-lee/radiation | R | false | false | 2,311 | r | # process_geo.R
# Prepare summary tables for GEO submission
load("data/counts.rda")
library(tidyverse)
assay <- counts
counts_mat <- assay$counts
# raw samples
samples <- dplyr::tiblble(sample_names = colnames(counts_mat)) %>%
dplyr::mutate(sample_meta = stringr::str_split(sample_names, "_"),
celltype... |
power <- read.table("household_power_consumption.txt", sep=";", header=T,
na.strings = "?", stringsAsFactors=F)
mypower <- power[(power$Date == "1/2/2007" | power$Date == "2/2/2007"), ]
png("plot4.png", 480, 480)
par(mfrow=c(2,2))
plot(mypower$Global_active_power, type="l", ylab="Global Active Po... | /plot4.R | no_license | kennethchenlab/ExData_Plotting1 | R | false | false | 1,100 | r | power <- read.table("household_power_consumption.txt", sep=";", header=T,
na.strings = "?", stringsAsFactors=F)
mypower <- power[(power$Date == "1/2/2007" | power$Date == "2/2/2007"), ]
png("plot4.png", 480, 480)
par(mfrow=c(2,2))
plot(mypower$Global_active_power, type="l", ylab="Global Active Po... |
#
# Imbalance Experiments: SMOTE
#
# Investigate the performance of the SMOTE strategy, as a means of
# accomodating the class imbalance in the dataset.
#
# Joel Rorseth
# August 4, 2018
#
library(caret)
library(glmnetUtils)
# SMOTE experiments
balance_smote <- function(train.X, train.y, test.X, test.y) {
train... | /Classification/imbalance_experiments_smote.r | no_license | jonathanTrinE/Cancer-Research-Machine-Learning | R | false | false | 1,849 | r | #
# Imbalance Experiments: SMOTE
#
# Investigate the performance of the SMOTE strategy, as a means of
# accomodating the class imbalance in the dataset.
#
# Joel Rorseth
# August 4, 2018
#
library(caret)
library(glmnetUtils)
# SMOTE experiments
balance_smote <- function(train.X, train.y, test.X, test.y) {
train... |
#' Create landscape graphs from Graphab link set
#'
#' @description The function creates a landscape graph from a link set created
#' with Graphab software or different functions of this package and converts
#' it into a graph object of class \code{igraph}.
#' The graph has weighted links and is undirected.
#' Nodes at... | /graph4lg/R/graphab_to_igraph.R | no_license | albrizre/spatstat.revdep | R | false | false | 11,410 | r | #' Create landscape graphs from Graphab link set
#'
#' @description The function creates a landscape graph from a link set created
#' with Graphab software or different functions of this package and converts
#' it into a graph object of class \code{igraph}.
#' The graph has weighted links and is undirected.
#' Nodes at... |
#' UI of pvalue heatmap for pairwise associations between datasets
#'
#' @param id, character used to specify namespace,
#' see \code{shiny::\link[shiny]{NS}}
#'
#' @return a \code{shiny::\link[shiny]{tagList}} containing UI element
#' @export
pvalue_heatmap_ui <- function(id) {
ns <- shiny::NS(id)
plotly::plotlyOu... | /R/pvalueHeatmap_module.R | permissive | singha53/geomxCloud | R | false | false | 807 | r | #' UI of pvalue heatmap for pairwise associations between datasets
#'
#' @param id, character used to specify namespace,
#' see \code{shiny::\link[shiny]{NS}}
#'
#' @return a \code{shiny::\link[shiny]{tagList}} containing UI element
#' @export
pvalue_heatmap_ui <- function(id) {
ns <- shiny::NS(id)
plotly::plotlyOu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isochrone_pois.R
\name{pois_walktimes}
\alias{pois_walktimes}
\title{Extract walking times to points-of-interest}
\usage{
pois_walktimes(isochrone_pois)
}
\arguments{
\item{isochrone_pois}{a response object from a \link[walkalytics]{... | /man/pois_walktimes.Rd | no_license | cran/walkalytics | R | false | true | 1,605 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isochrone_pois.R
\name{pois_walktimes}
\alias{pois_walktimes}
\title{Extract walking times to points-of-interest}
\usage{
pois_walktimes(isochrone_pois)
}
\arguments{
\item{isochrone_pois}{a response object from a \link[walkalytics]{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualize.R
\name{visualizeProbes}
\alias{visualizeProbes}
\title{Visualize Region that Contains the Specified Probes}
\usage{
visualizeProbes(probeNames, betas, platform = c("EPIC", "HM450"),
refversion = c("hg38", "hg19"), upstream = 1000... | /man/visualizeProbes.Rd | no_license | lijingya/sesame | R | false | true | 1,333 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualize.R
\name{visualizeProbes}
\alias{visualizeProbes}
\title{Visualize Region that Contains the Specified Probes}
\usage{
visualizeProbes(probeNames, betas, platform = c("EPIC", "HM450"),
refversion = c("hg38", "hg19"), upstream = 1000... |
#STEP7<-function(){
cat(paste("#",form_i,formname,"- performning STEP7 now...\n"))
fresh_chk<-raw_chk
vm<-subset(vm,is.checkbox=="TRUE") #subset of var_map where is.checkbox = T
#STEP7.1
#####need to check the values of ac var first!????
#STEP7.2 redcap checkbox
vm_rcchk<-subset(vm,fix_what=="redcap_check") # subset o... | /Data meeting and cleaning/Archive/PT-STEP4.R | no_license | DecisionNeurosciencePsychopathology/redcap_in_r | R | false | false | 7,267 | r | #STEP7<-function(){
cat(paste("#",form_i,formname,"- performning STEP7 now...\n"))
fresh_chk<-raw_chk
vm<-subset(vm,is.checkbox=="TRUE") #subset of var_map where is.checkbox = T
#STEP7.1
#####need to check the values of ac var first!????
#STEP7.2 redcap checkbox
vm_rcchk<-subset(vm,fix_what=="redcap_check") # subset o... |
str(apply) ## function (X, MARGIN, FUN, ...)
x <- matrix(rnorm(200), 20, 10)
apply(x, 2, mean)
apply(x, 1, sum)
x <- matrix(rnorm(200), 20, 10)
apply(x, 1, quantile, probs = c(0.25, 0.75))
a <- array(rnorm(2 * 2 * 2), c(2, 2, 10))
apply(a, c(1, 2), mean)
rowMeans(a, dims = 2)
| /apply.R | no_license | adalee2future/learn-R | R | false | false | 285 | r | str(apply) ## function (X, MARGIN, FUN, ...)
x <- matrix(rnorm(200), 20, 10)
apply(x, 2, mean)
apply(x, 1, sum)
x <- matrix(rnorm(200), 20, 10)
apply(x, 1, quantile, probs = c(0.25, 0.75))
a <- array(rnorm(2 * 2 * 2), c(2, 2, 10))
apply(a, c(1, 2), mean)
rowMeans(a, dims = 2)
|
###part 1
pollutantmean <- function(directory, pollutant, id = 1:332) {
#path <- file.path(getwd(),directory)
#setwd(file.path(getwd(),directory))
path <- paste0(getwd(),"/", directory) #this one is more general
data <- data.frame()
for (i in id) {
if (i < 10) {
dat <- read.csv(p... | /Assignment 1 week 2.R | no_license | martina-1994-ux/R-Programming- | R | false | false | 4,054 | r | ###part 1
pollutantmean <- function(directory, pollutant, id = 1:332) {
#path <- file.path(getwd(),directory)
#setwd(file.path(getwd(),directory))
path <- paste0(getwd(),"/", directory) #this one is more general
data <- data.frame()
for (i in id) {
if (i < 10) {
dat <- read.csv(p... |
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
getInverse <- function() inv
... | /cachematrix.R | no_license | marcosvof/ProgrammingAssignment2 | R | false | false | 883 | r | ## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
getInverse <- function() inv
... |
#!/usr/bin/env Rscript
library("tidyverse")
#library("cowplot")
# parameters -------------------------------------------------------------------
# 1: phyloseq rds
# 2: representative sequences dataframe
args <- commandArgs(trailingOnly = TRUE)
ps <- readRDS(args[[1]])
ps_trim <- phyloseq::subset_samples(ps, smoking ... | /bin/diff_abund.R | no_license | nebfield/student-oral-wellbeing | R | false | false | 6,890 | r | #!/usr/bin/env Rscript
library("tidyverse")
#library("cowplot")
# parameters -------------------------------------------------------------------
# 1: phyloseq rds
# 2: representative sequences dataframe
args <- commandArgs(trailingOnly = TRUE)
ps <- readRDS(args[[1]])
ps_trim <- phyloseq::subset_samples(ps, smoking ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset_documentation.R
\docType{data}
\name{unite_ex_data_1}
\alias{unite_ex_data_1}
\title{Example of UNITE fungal ITS data}
\format{An object of type \code{\link{taxmap}}}
\source{
\url{https://unite.ut.ee/}
}
\usage{
unite_ex_data_1
}
\de... | /man/unite_ex_data_1.Rd | permissive | seninp/metacoder | R | false | true | 1,001 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset_documentation.R
\docType{data}
\name{unite_ex_data_1}
\alias{unite_ex_data_1}
\title{Example of UNITE fungal ITS data}
\format{An object of type \code{\link{taxmap}}}
\source{
\url{https://unite.ut.ee/}
}
\usage{
unite_ex_data_1
}
\de... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectrum_objects.R
\name{DatabaseSpec}
\alias{DatabaseSpec}
\title{DatabaseSpec Object}
\usage{
DatabaseSpec(name = NULL, uri = NULL)
}
\arguments{
\item{name}{The display name for a database}
\item{uri}{The corresponding URI of the database... | /googlespectrumv1explorer.auto/man/DatabaseSpec.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 524 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectrum_objects.R
\name{DatabaseSpec}
\alias{DatabaseSpec}
\title{DatabaseSpec Object}
\usage{
DatabaseSpec(name = NULL, uri = NULL)
}
\arguments{
\item{name}{The display name for a database}
\item{uri}{The corresponding URI of the database... |
\name{plotSeqCount}
\alias{plotSeqCount}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Basic function for plotting the ratio of tumor to normal coverage
}
\description{
Basic function for plotting the ratio of tumor to normal coverage, and calculating the average over segments. A simple tool fo... | /man/plotSeqCount.Rd | no_license | cran/cancerTiming | R | false | false | 1,106 | rd | \name{plotSeqCount}
\alias{plotSeqCount}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Basic function for plotting the ratio of tumor to normal coverage
}
\description{
Basic function for plotting the ratio of tumor to normal coverage, and calculating the average over segments. A simple tool fo... |
#' generateHMDM
#'
#' @description Generate HMDM(Hierarchical Multi-Dictionary term Matrix) function
#' @param corpus object of class Corpus
#' @param dict object of class HMD
#' @return data frame (row : Document , column : Dictionary Term)
#' @examples
#' data.freq <- generateHMDM(data.corpus, dict=hmd)
generateHMDM... | /R/generateHMDM.R | no_license | yshan17/HMD | R | false | false | 2,640 | r | #' generateHMDM
#'
#' @description Generate HMDM(Hierarchical Multi-Dictionary term Matrix) function
#' @param corpus object of class Corpus
#' @param dict object of class HMD
#' @return data frame (row : Document , column : Dictionary Term)
#' @examples
#' data.freq <- generateHMDM(data.corpus, dict=hmd)
generateHMDM... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/margins.R, R/theme-elements.R
\name{margin}
\alias{margin}
\alias{element_blank}
\alias{element_rect}
\alias{element_line}
\alias{element_text}
\alias{rel}
\title{Theme elements}
\usage{
margin(t = 0, r = 0, b = 0, l = 0, unit = "pt")
elemen... | /man/element.Rd | permissive | tidyverse/ggplot2 | R | false | true | 3,758 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/margins.R, R/theme-elements.R
\name{margin}
\alias{margin}
\alias{element_blank}
\alias{element_rect}
\alias{element_line}
\alias{element_text}
\alias{rel}
\title{Theme elements}
\usage{
margin(t = 0, r = 0, b = 0, l = 0, unit = "pt")
elemen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as.data.frame.R
\docType{methods}
\name{as.data.frame}
\alias{as.data.frame}
\alias{as.data.frame.hyperSpec}
\alias{as.data.frame,hyperSpec-method}
\alias{as.matrix.hyperSpec}
\alias{as.matrix}
\alias{as.matrix,hyperSpec-method}
\alias{as.wid... | /man/asdataframe.Rd | no_license | cran/hyperSpec | R | false | true | 3,147 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as.data.frame.R
\docType{methods}
\name{as.data.frame}
\alias{as.data.frame}
\alias{as.data.frame.hyperSpec}
\alias{as.data.frame,hyperSpec-method}
\alias{as.matrix.hyperSpec}
\alias{as.matrix}
\alias{as.matrix,hyperSpec-method}
\alias{as.wid... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{config_netlify}
\alias{config_netlify}
\title{Create the configuration (file) for Netlify}
\usage{
config_netlify(output = "netlify.toml", new_config = list())
}
\arguments{
\item{output}{Path to the output file, or \code{NULL}.... | /man/config_netlify.Rd | no_license | rstudio/blogdown | R | false | true | 1,849 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{config_netlify}
\alias{config_netlify}
\title{Create the configuration (file) for Netlify}
\usage{
config_netlify(output = "netlify.toml", new_config = list())
}
\arguments{
\item{output}{Path to the output file, or \code{NULL}.... |
#' @importFrom jsonlite toJSON
#' @export
jointPipeline <- function(
nodes,
icons = FALSE,
width = NULL,
height = NULL) {
## check node ports
l.nodes <- list()
counter <- 0
for (p in 1:length(nodes)) { ## ... | /R/jointPipeline.R | no_license | harveyl888/pipelineR | R | false | false | 21,177 | r | #' @importFrom jsonlite toJSON
#' @export
jointPipeline <- function(
nodes,
icons = FALSE,
width = NULL,
height = NULL) {
## check node ports
l.nodes <- list()
counter <- 0
for (p in 1:length(nodes)) { ## ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.