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
\name{print.z} \alias{print.z} %- Also NEED an '\alias' for EACH other topic documented here. \title{ lenh noi bo de in object z} \description{ lenh noi bo de in object z voi cac dau ke o } \usage{ print.z(x, row.names = T) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{ Object z duoc...
/man/print.z.Rd
no_license
gvdovandzung/thongke
R
false
false
795
rd
\name{print.z} \alias{print.z} %- Also NEED an '\alias' for EACH other topic documented here. \title{ lenh noi bo de in object z} \description{ lenh noi bo de in object z voi cac dau ke o } \usage{ print.z(x, row.names = T) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{ Object z duoc...
library(mice) ### Name: pool.r.squared ### Title: Pooling: R squared ### Aliases: pool.r.squared ### Keywords: htest ### ** Examples imp<-mice(nhanes) fit<-lm.mids(chl~age+hyp+bmi,imp) pool.r.squared(fit) pool.r.squared(fit,adjusted=TRUE) #fit<-lm.mids(chl~age+hyp+bmi,imp) # #> pool.r.squared(fit) # es...
/data/genthat_extracted_code/mice/examples/pool.r.squared.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
537
r
library(mice) ### Name: pool.r.squared ### Title: Pooling: R squared ### Aliases: pool.r.squared ### Keywords: htest ### ** Examples imp<-mice(nhanes) fit<-lm.mids(chl~age+hyp+bmi,imp) pool.r.squared(fit) pool.r.squared(fit,adjusted=TRUE) #fit<-lm.mids(chl~age+hyp+bmi,imp) # #> pool.r.squared(fit) # es...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rds_operations.R \name{rds_restore_db_instance_to_point_in_time} \alias{rds_restore_db_instance_to_point_in_time} \title{Restores a DB instance to an arbitrary point in time} \usage{ rds_restore_db_instance_to_point_in_time(SourceDBInstanceId...
/cran/paws.database/man/rds_restore_db_instance_to_point_in_time.Rd
permissive
johnnytommy/paws
R
false
true
11,584
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rds_operations.R \name{rds_restore_db_instance_to_point_in_time} \alias{rds_restore_db_instance_to_point_in_time} \title{Restores a DB instance to an arbitrary point in time} \usage{ rds_restore_db_instance_to_point_in_time(SourceDBInstanceId...
# PURPOSE ----------------------------------------------------------------- #' To process the manually curated existing GRiP pediatric ADE gold standard #' #' #' EXAMPLE RUN: #' ---------------------- #' #' Rscript GRiP_Pediatric_ADE_Gold_Standard_Processing.R ../../data/GRiP_Pediatric_ADE_Gold_Standard_List.xlsx...
/src/R/GRiP_Pediatric_ADE_Gold_Standard_Processing.R
permissive
ngiangre/GRiP_pediatric_ADE-reference_set
R
false
false
8,600
r
# PURPOSE ----------------------------------------------------------------- #' To process the manually curated existing GRiP pediatric ADE gold standard #' #' #' EXAMPLE RUN: #' ---------------------- #' #' Rscript GRiP_Pediatric_ADE_Gold_Standard_Processing.R ../../data/GRiP_Pediatric_ADE_Gold_Standard_List.xlsx...
\name{jobs_create_run} \alias{jobs_create_run} \title{jobs create run} \description{Run entire PeakSegFPOP + PeakSegJoint pipeline.} \usage{jobs_create_run(set.dir.path, ..., steps = NULL)} \arguments{ \item{set.dir.path}{data set directory.} \item{\dots}{passed to \code{\link{jobs_create}}} \item{steps}{int...
/man/jobs_create_run.Rd
no_license
sanchit-saini/PeakSegPipeline
R
false
false
404
rd
\name{jobs_create_run} \alias{jobs_create_run} \title{jobs create run} \description{Run entire PeakSegFPOP + PeakSegJoint pipeline.} \usage{jobs_create_run(set.dir.path, ..., steps = NULL)} \arguments{ \item{set.dir.path}{data set directory.} \item{\dots}{passed to \code{\link{jobs_create}}} \item{steps}{int...
## ---- echo=FALSE, message=FALSE------------------------------------------ knitr::opts_chunk$set(collapse = T, comment = "#>") library(dieroller) ## ------------------------------------------------------------------------ fair_die <- die() fair_die ## -----------------------------------------------------------------...
/dieroller/inst/doc/introduction.R
no_license
shifanjin/shifanjin-repo
R
false
false
1,820
r
## ---- echo=FALSE, message=FALSE------------------------------------------ knitr::opts_chunk$set(collapse = T, comment = "#>") library(dieroller) ## ------------------------------------------------------------------------ fair_die <- die() fair_die ## -----------------------------------------------------------------...
library(caret) timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M") model <- "FIR.DM" ######################################################################### SLC14_1 <- function(n = 100) { dat <- matrix(rnorm(n*20, sd = 3), ncol = 20) foo <- function(x) x[1] + sin(x[2]) + log(abs(x[3])) + x[4]^2 + x[5]*x[6] + ...
/RegressionTests/Code/FIR.DM.R
no_license
klainfo/caret
R
false
false
2,530
r
library(caret) timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M") model <- "FIR.DM" ######################################################################### SLC14_1 <- function(n = 100) { dat <- matrix(rnorm(n*20, sd = 3), ncol = 20) foo <- function(x) x[1] + sin(x[2]) + log(abs(x[3])) + x[4]^2 + x[5]*x[6] + ...
# DS1-SFA-457832hfds home_dir <- 'C:\\Projects\\R_projects\\ds_with_r' setwd(home_dir) library(rpart) model_T <- rpart( mpg ~ ., mtcars) result <- predict(model_T) # Дерево решений: 292.0862 # Линейная регрессия (все переменные): 147.4944 plot(model_T)
/specialist/desicion_tree.R
no_license
adamakalshchikov/ds_with_r
R
false
false
299
r
# DS1-SFA-457832hfds home_dir <- 'C:\\Projects\\R_projects\\ds_with_r' setwd(home_dir) library(rpart) model_T <- rpart( mpg ~ ., mtcars) result <- predict(model_T) # Дерево решений: 292.0862 # Линейная регрессия (все переменные): 147.4944 plot(model_T)
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 16218 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 16217 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 16217 c c Input Parameter (command line, ...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Basler/terminator/stmt22_263_370/stmt22_263_370.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
720
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 16218 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 16217 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 16217 c c Input Parameter (command line, ...
#' @importFrom utils capture.output #' @importFrom methods allNames NULL burgled_path <- "R/burgled.R" # a less strict verion of utils::isS3stdGeneric is_s3_std_generic <- function(fun) { "UseMethod" %in% all.names(suppressWarnings(body(fun))) } burgle1 <- function( fun, pkg, export = FALSE, first = TRUE,...
/R/main.R
no_license
moodymudskipper/burglr
R
false
false
7,248
r
#' @importFrom utils capture.output #' @importFrom methods allNames NULL burgled_path <- "R/burgled.R" # a less strict verion of utils::isS3stdGeneric is_s3_std_generic <- function(fun) { "UseMethod" %in% all.names(suppressWarnings(body(fun))) } burgle1 <- function( fun, pkg, export = FALSE, first = TRUE,...
articles_features <- read.csv("./Correlation/articles_features.csv") y1 = articles_features$credible_count x1 = articles_features$comments_count x2 = articles_features$keywords_count x3 = articles_features$nouns_count x4 = articles_features$numerical_count x5 = articles_features$publication_date x6 = article...
/R/correlations_articles.R
no_license
mvjacobs/Crone
R
false
false
1,725
r
articles_features <- read.csv("./Correlation/articles_features.csv") y1 = articles_features$credible_count x1 = articles_features$comments_count x2 = articles_features$keywords_count x3 = articles_features$nouns_count x4 = articles_features$numerical_count x5 = articles_features$publication_date x6 = article...
#' Make tables with measurement only in the middle of interval. #' @param tables - List of tables that were created by \emph{calaculate_tables} function. #' @export collapse.to.middle <- function(tables){ tables.m <- list() for(i in 1:length(tables)){ tV <- tables[i][[1]][1]$OD tC <- tables[i][[1]][2]$...
/R/collapse.to.middle.R
no_license
sleyn/MoRbido
R
false
false
1,888
r
#' Make tables with measurement only in the middle of interval. #' @param tables - List of tables that were created by \emph{calaculate_tables} function. #' @export collapse.to.middle <- function(tables){ tables.m <- list() for(i in 1:length(tables)){ tV <- tables[i][[1]][1]$OD tC <- tables[i][[1]][2]$...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_nodes.R \name{create_nodes} \alias{create_nodes} \title{Create a data frame with nodes and their attributes} \usage{ create_nodes(nodes, type = NULL, label = nodes, ...) } \arguments{ \item{nodes}{the node ID value(s) for the node(s) t...
/man/create_nodes.Rd
no_license
bestwpw/DiagrammeR
R
false
true
1,046
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_nodes.R \name{create_nodes} \alias{create_nodes} \title{Create a data frame with nodes and their attributes} \usage{ create_nodes(nodes, type = NULL, label = nodes, ...) } \arguments{ \item{nodes}{the node ID value(s) for the node(s) t...
# Copyright (c) 2015,2016, Qin Zhu and Junhyong Kim, University of Pennsylvania. # All Rights Reserved. # # You may not use this file except in compliance with the Kim Lab License # located at # # http://kim.bio.upenn.edu/software/LICENSE # # Unless required by applicable law or agreed to in writing, this # softwar...
/inst/app/src/server_code/analysis/k_means.R
no_license
jeevanyue/PIVOT
R
false
false
5,986
r
# Copyright (c) 2015,2016, Qin Zhu and Junhyong Kim, University of Pennsylvania. # All Rights Reserved. # # You may not use this file except in compliance with the Kim Lab License # located at # # http://kim.bio.upenn.edu/software/LICENSE # # Unless required by applicable law or agreed to in writing, this # softwar...
## https://class.coursera.org/rprog-012/human_grading/view/courses/973493/assessments/3/submissions ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inverted <- NULL set <- function(y) { x <<- y inverted <<- NULL } get <- ...
/cachematrix.R
no_license
mwgravitt/R-Programming-Course
R
false
false
995
r
## https://class.coursera.org/rprog-012/human_grading/view/courses/973493/assessments/3/submissions ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inverted <- NULL set <- function(y) { x <<- y inverted <<- NULL } get <- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fully_disconnect_nodes_ws.R \name{fully_disconnect_nodes_ws} \alias{fully_disconnect_nodes_ws} \title{Fully disconnect all nodes in a selection of nodes} \usage{ fully_disconnect_nodes_ws(graph) } \arguments{ \item{graph}{a graph object of cl...
/man/fully_disconnect_nodes_ws.Rd
permissive
akkalbist55/DiagrammeR
R
false
true
841
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fully_disconnect_nodes_ws.R \name{fully_disconnect_nodes_ws} \alias{fully_disconnect_nodes_ws} \title{Fully disconnect all nodes in a selection of nodes} \usage{ fully_disconnect_nodes_ws(graph) } \arguments{ \item{graph}{a graph object of cl...
## Script to add antecedent baseflow into the virus/FIB files ################### #Set R directory SNsys <- system("wmic bios get serialnumber", intern = TRUE, show.output.on.console = FALSE) SN <- gsub("\\s","",SNsys)[2] if(SN == "R97R0NW") {Wlocal <- "D:/srcldata" #Laptop Project <- "D://srcldat...
/BaseFlowcompile.R
no_license
srcorsi-USGS/Virus2
R
false
false
2,195
r
## Script to add antecedent baseflow into the virus/FIB files ################### #Set R directory SNsys <- system("wmic bios get serialnumber", intern = TRUE, show.output.on.console = FALSE) SN <- gsub("\\s","",SNsys)[2] if(SN == "R97R0NW") {Wlocal <- "D:/srcldata" #Laptop Project <- "D://srcldat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.apigateway_operations.R \name{delete_request_validator} \alias{delete_request_validator} \title{Deletes a RequestValidator of a given RestApi} \usage{ delete_request_validator(restApiId, requestValidatorId) } \arguments{ \item{restApiId}...
/service/paws.apigateway/man/delete_request_validator.Rd
permissive
CR-Mercado/paws
R
false
true
696
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.apigateway_operations.R \name{delete_request_validator} \alias{delete_request_validator} \title{Deletes a RequestValidator of a given RestApi} \usage{ delete_request_validator(restApiId, requestValidatorId) } \arguments{ \item{restApiId}...
#' Reactive Changes #' #' Create a reactive that is only updated when the expression returns a different vector to what is currently stored #' #' @param expr an expression that gets the values to observe whether they are changing #' #' @import shiny #' @import rlang #' #' @return a reactiveVal reactive_changes <- funct...
/R/utils_reactive_changes.R
permissive
aarong1/723_mh_covid_surge_modelling
R
false
false
634
r
#' Reactive Changes #' #' Create a reactive that is only updated when the expression returns a different vector to what is currently stored #' #' @param expr an expression that gets the values to observe whether they are changing #' #' @import shiny #' @import rlang #' #' @return a reactiveVal reactive_changes <- funct...
context("route") test_all <- (identical (Sys.getenv ("MPADGE_LOCAL"), "true") | identical (Sys.getenv ("TRAVIS"), "true")) test_that("extract", { expect_error (g <- extract_gtfs (), "filename must be given") expect_error (g <- extract_gtfs ("non-ex...
/tests/testthat/test-route.R
no_license
mobilityinstitute/gtfs-router
R
false
false
12,711
r
context("route") test_all <- (identical (Sys.getenv ("MPADGE_LOCAL"), "true") | identical (Sys.getenv ("TRAVIS"), "true")) test_that("extract", { expect_error (g <- extract_gtfs (), "filename must be given") expect_error (g <- extract_gtfs ("non-ex...
source("utils_lscm.R") library(Rmpi) library(snow) library(quadprog) library(Matrix) paras=list(p=100,n=1000,a=0.9,r=0.8,sf=1,se=2,i0=NULL,j0=NULL,M=NULL,d=1,method="equalvar",N=100) # one-dimensional model aas=c(0.7,0.8,0.9)#(0:5)/5 rrs=c(0.7,0.8,0.9)#(4:10)/10 ses=1:3 ns=c(500,1000,2000,3000)#c(2,4,6,8,1...
/covtest_simu_multi_fun.R
no_license
liyi-1989/covtest
R
false
false
7,269
r
source("utils_lscm.R") library(Rmpi) library(snow) library(quadprog) library(Matrix) paras=list(p=100,n=1000,a=0.9,r=0.8,sf=1,se=2,i0=NULL,j0=NULL,M=NULL,d=1,method="equalvar",N=100) # one-dimensional model aas=c(0.7,0.8,0.9)#(0:5)/5 rrs=c(0.7,0.8,0.9)#(4:10)/10 ses=1:3 ns=c(500,1000,2000,3000)#c(2,4,6,8,1...
## Monte Carlo functions ==== ## Generate matrix of simulated X data, version 1 ## Columns correspond to sample paths. ## num_steps is the length n of sample path. ## num_paths is the number of sample paths. ## rfunc is the random generating function, eg. runif, rnorm, etc. ## Different h functions can be supplied, s...
/Assignment 2.2_group2/r/2.2_functions.R
no_license
mahovo/CompStat
R
false
false
8,019
r
## Monte Carlo functions ==== ## Generate matrix of simulated X data, version 1 ## Columns correspond to sample paths. ## num_steps is the length n of sample path. ## num_paths is the number of sample paths. ## rfunc is the random generating function, eg. runif, rnorm, etc. ## Different h functions can be supplied, s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/downstream_analysis_functions.r \name{LeadEdgeTidySampleExprs} \alias{LeadEdgeTidySampleExprs} \title{LeadEdgeTidySampleExprs - convert a PseudobulkList into a tidy dataframe for each sample across cell types of the leading edge genes from a ...
/scglmmr/man(1)/LeadEdgeTidySampleExprs.Rd
no_license
niaid/h5n1-chi-010
R
false
true
994
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/downstream_analysis_functions.r \name{LeadEdgeTidySampleExprs} \alias{LeadEdgeTidySampleExprs} \title{LeadEdgeTidySampleExprs - convert a PseudobulkList into a tidy dataframe for each sample across cell types of the leading edge genes from a ...
#' Create Experiment #' #' Creates an MLflow experiment. #' #' @param name The name of the experiment to create. #' @param artifact_location Location where all artifacts for this experiment are stored. If #' not provided, the remote server will select an appropriate default. #' @template roxlate-fluent #' #' @export ...
/mlflow/R/mlflow/R/tracking-fluent.R
permissive
bogdanghit/mlflow
R
false
false
7,456
r
#' Create Experiment #' #' Creates an MLflow experiment. #' #' @param name The name of the experiment to create. #' @param artifact_location Location where all artifacts for this experiment are stored. If #' not provided, the remote server will select an appropriate default. #' @template roxlate-fluent #' #' @export ...
library("tidyverse") library("lubridate") library("stringr") # By http://stackoverflow.com/users/2572423/jasonaizkalns # From http://stackoverflow.com/a/33525389/6269439 is_outlier <- function(x) { return(x < quantile(x, 0.25) - 1.5 * IQR(x) | x > quantile(x, 0.75) + 1.5 * IQR(x)) }
/source.R
no_license
mrcreel/baseball
R
false
false
289
r
library("tidyverse") library("lubridate") library("stringr") # By http://stackoverflow.com/users/2572423/jasonaizkalns # From http://stackoverflow.com/a/33525389/6269439 is_outlier <- function(x) { return(x < quantile(x, 0.25) - 1.5 * IQR(x) | x > quantile(x, 0.75) + 1.5 * IQR(x)) }
%% File Name: BIFIEdata2svrepdesign.Rd %% File Version: 0.186 \name{BIFIEdata2svrepdesign} \alias{BIFIEdata2svrepdesign} \alias{svrepdesign2BIFIEdata} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Conversion of a \code{BIFIEdata} Object into a \code{svyrep} Object in the \pkg{survey...
/BIFIEsurvey/man/BIFIEdata2svrepdesign.Rd
no_license
akhikolla/ClusterTests
R
false
false
5,109
rd
%% File Name: BIFIEdata2svrepdesign.Rd %% File Version: 0.186 \name{BIFIEdata2svrepdesign} \alias{BIFIEdata2svrepdesign} \alias{svrepdesign2BIFIEdata} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Conversion of a \code{BIFIEdata} Object into a \code{svyrep} Object in the \pkg{survey...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281053610755e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613116231-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
250
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281053610755e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
# This script exposes functions for visualizing data #' Standard ggplot theme for the agile oracle package. It is thin wrapper around ggplot::theme_minimal(). #' #' @return #' @export #' #' @examples #' ggplot2::ggplot(data = mtcars, mapping = ggplot2::aes(x = disp, y = mpg)) + #' ggplot2::geom_point() + #' theme_...
/R/data_vis.R
no_license
bradgwest/agileoracle
R
false
false
1,648
r
# This script exposes functions for visualizing data #' Standard ggplot theme for the agile oracle package. It is thin wrapper around ggplot::theme_minimal(). #' #' @return #' @export #' #' @examples #' ggplot2::ggplot(data = mtcars, mapping = ggplot2::aes(x = disp, y = mpg)) + #' ggplot2::geom_point() + #' theme_...
#' @title Percent spliced-in (PSI) visualization for alternative 5' splice sites (A5SS) #' #' @description #' \code{PlotPSI.A5SS} visualizes percent spliced-in (PSI) for each genomic coordinate for alternative 5' splice site (A5SS) event across two groups of single cells. #' #' @details #' This function visualizes the ...
/R/Script_VALERIE_PlotPSI_A5SS_TwoGroups.R
no_license
cran/VALERIE
R
false
false
24,465
r
#' @title Percent spliced-in (PSI) visualization for alternative 5' splice sites (A5SS) #' #' @description #' \code{PlotPSI.A5SS} visualizes percent spliced-in (PSI) for each genomic coordinate for alternative 5' splice site (A5SS) event across two groups of single cells. #' #' @details #' This function visualizes the ...
# AUTO GENERATED FILE - DO NOT EDIT htmlStrike <- function(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=NULL, key=NULL, role=NULL, accessKey=NULL, className=NULL, contentEditable=NULL, contextMenu=NULL, dir=NULL, draggable=NULL, hidden=NULL, lang=NULL, spellCheck=NULL, style=NULL, tabIndex=NULL, title=NUL...
/R/htmlStrike.R
permissive
noisycomputation/dash-html-components
R
false
false
1,417
r
# AUTO GENERATED FILE - DO NOT EDIT htmlStrike <- function(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=NULL, key=NULL, role=NULL, accessKey=NULL, className=NULL, contentEditable=NULL, contextMenu=NULL, dir=NULL, draggable=NULL, hidden=NULL, lang=NULL, spellCheck=NULL, style=NULL, tabIndex=NULL, title=NUL...
NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") library(ggplot2) subsetNEI <- NEI[(NEI$fips=="24510"|NEI$fips=="06037") & NEI$type=="ON-ROAD", ] aggregatedTotalByYearAndFips <- aggregate(Emissions ~ year + fips, subsetNEI, sum) aggregatedTotalByYearAndFips$fips[aggregatedTota...
/plot6.R
no_license
JagrutN/Exploratory-Data-Analysis
R
false
false
885
r
NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") library(ggplot2) subsetNEI <- NEI[(NEI$fips=="24510"|NEI$fips=="06037") & NEI$type=="ON-ROAD", ] aggregatedTotalByYearAndFips <- aggregate(Emissions ~ year + fips, subsetNEI, sum) aggregatedTotalByYearAndFips$fips[aggregatedTota...
testlist <- list(a = 9.97924068035583e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
/BayesMRA/inst/testfiles/rmvn_arma_scalar/AFL_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1615926295-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
117
r
testlist <- list(a = 9.97924068035583e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
##' Class "compareClusterResult" ##' This class represents the comparison result of gene clusters by GO ##' categories at specific level or GO enrichment analysis. ##' ##' ##' @name compareClusterResult-class ##' @aliases compareClusterResult-class show,compareClusterResult-method ##' summary,compareClusterResult-met...
/B_analysts_sources_github/GuangchuangYu/bioc-release/00-AllClasses.R
no_license
Irbis3/crantasticScrapper
R
false
false
2,070
r
##' Class "compareClusterResult" ##' This class represents the comparison result of gene clusters by GO ##' categories at specific level or GO enrichment analysis. ##' ##' ##' @name compareClusterResult-class ##' @aliases compareClusterResult-class show,compareClusterResult-method ##' summary,compareClusterResult-met...
testlist <- list(type = 0L, z = 2.45422168915181e-319) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609892123-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
108
r
testlist <- list(type = 0L, z = 2.45422168915181e-319) result <- do.call(esreg::G1_fun,testlist) str(result)
library(RUnit) library(dplyr) library(TeradataAsterR) library(modelFactoryR) library(methods) getTaConnection() test.suite <- defineTestSuite("example",dirs = file.path("tests"),testFileRegexp = '^\\d+\\.R') test.result <- runTestSuite(test.suite) printTextProtocol(test.result)
/tests/test_runner.R
no_license
kpnDataScienceLab/modelFactoryR
R
false
false
284
r
library(RUnit) library(dplyr) library(TeradataAsterR) library(modelFactoryR) library(methods) getTaConnection() test.suite <- defineTestSuite("example",dirs = file.path("tests"),testFileRegexp = '^\\d+\\.R') test.result <- runTestSuite(test.suite) printTextProtocol(test.result)
/plugins/MacAU/Energy/Energy.r
permissive
Atavic/airwindows
R
false
false
3,193
r
\name{rsnot-package} \alias{rsnot-package} \alias{rsnot} \docType{package} \title{ \packageTitle{rsnot} } \description{ \packageDescription{rsnot} } \details{ The DESCRIPTION file: \packageDESCRIPTION{rsnot} \packageIndices{rsnot} ~~ An overview of how to use the package, including the most important ~~ ~~ functions ~...
/rsnot/man/rsnot-package.Rd
permissive
bryan-lunt/SNOT_lang
R
false
false
781
rd
\name{rsnot-package} \alias{rsnot-package} \alias{rsnot} \docType{package} \title{ \packageTitle{rsnot} } \description{ \packageDescription{rsnot} } \details{ The DESCRIPTION file: \packageDESCRIPTION{rsnot} \packageIndices{rsnot} ~~ An overview of how to use the package, including the most important ~~ ~~ functions ~...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lgcpStructures.R \name{GPdrv2_Multitype} \alias{GPdrv2_Multitype} \title{GPdrv2_Multitype function} \usage{ GPdrv2_Multitype(GPlist, priorlist, Zlist, Ztlist, etalist, betalist, nis, cellarea, spatial, gradtrunc, fftgrid, covfunctio...
/man/GPdrv2_Multitype.Rd
no_license
bentaylor1/lgcp
R
false
false
1,486
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/lgcpStructures.R \name{GPdrv2_Multitype} \alias{GPdrv2_Multitype} \title{GPdrv2_Multitype function} \usage{ GPdrv2_Multitype(GPlist, priorlist, Zlist, Ztlist, etalist, betalist, nis, cellarea, spatial, gradtrunc, fftgrid, covfunctio...
#' Get possible set of harmonies for a given tsibble #' #' Interaction of pair of granularities, categorised as harmony and clash. harmony () screens out harmony pairs from #' list of all possible pairs of granularities. #' @param .data A tsibble object. #' @param ugran Typically set as the most coarse unit required in...
/R/harmony.R
no_license
Sayani07/gravitas
R
false
false
3,227
r
#' Get possible set of harmonies for a given tsibble #' #' Interaction of pair of granularities, categorised as harmony and clash. harmony () screens out harmony pairs from #' list of all possible pairs of granularities. #' @param .data A tsibble object. #' @param ugran Typically set as the most coarse unit required in...
# Read data and subsetting # If you want to run this code correctly on your computer, # you should change data location to your own location. # In this code, household_power_consumption.txt is supposed # to stored in default R working directory. And the png plot # directory is at "rprog/ExData_Plotting1/". active_p...
/plot1.R
no_license
tiansworld/ExData_Plotting1
R
false
false
733
r
# Read data and subsetting # If you want to run this code correctly on your computer, # you should change data location to your own location. # In this code, household_power_consumption.txt is supposed # to stored in default R working directory. And the png plot # directory is at "rprog/ExData_Plotting1/". active_p...
main_analysis_seqs <- "/Users/nadeaus/Documents/2019-ncov-data/analyses/2020-04-19_europe_bdmm_prime/selected_sample_metadata.txt" a2a_analysis_seqs <- "/Users/nadeaus/Documents/2019-ncov-data/analyses/2020-04-19_europe_bdmm_prime/a2a_global_bdmm/selected_sample_metadata.txt" more_other_european_analysis_seqs <- "/User...
/data/seq_data/generate_gisaid_acknowledgments.R
no_license
SarahNadeau/cov-europe-bdmm
R
false
false
4,081
r
main_analysis_seqs <- "/Users/nadeaus/Documents/2019-ncov-data/analyses/2020-04-19_europe_bdmm_prime/selected_sample_metadata.txt" a2a_analysis_seqs <- "/Users/nadeaus/Documents/2019-ncov-data/analyses/2020-04-19_europe_bdmm_prime/a2a_global_bdmm/selected_sample_metadata.txt" more_other_european_analysis_seqs <- "/User...
library(e1071) data("iris") m<-80 set.seed(1234) rand<-sample(1:150,80) X<-iris[rand,1:4] X<-scale(X) ones<-rep(1,80) Y<-matrix(nrow=80,ncol=3) t<-1 for(i in rand){ if(iris[i,5]=="setosa"){ Y[t,]<-c(1,0,0) } else if(iris[i,5]=="versicolor") { Y[t,]<-c(0,1,0) } else Y[t,]<-c(0,0,1) t<-t+1 } set...
/Backpropagation/backpropagation.R
no_license
GV1028/Deep_Learning_R
R
false
false
2,050
r
library(e1071) data("iris") m<-80 set.seed(1234) rand<-sample(1:150,80) X<-iris[rand,1:4] X<-scale(X) ones<-rep(1,80) Y<-matrix(nrow=80,ncol=3) t<-1 for(i in rand){ if(iris[i,5]=="setosa"){ Y[t,]<-c(1,0,0) } else if(iris[i,5]=="versicolor") { Y[t,]<-c(0,1,0) } else Y[t,]<-c(0,0,1) t<-t+1 } set...
#' Plot theme #' #' @description Creates a standard theme for all my plots #' #' @param font_size The size of the font for \code{element_text()}. Defaults to \code{font_size = 10}. #' @param font_family The font family #' @param line_size The size of the lines #' #' @importFrom ggplot2 %+replace% theme_gray theme eleme...
/R/ggtheme_plot.R
permissive
emlab-ucsb/startR
R
false
false
2,746
r
#' Plot theme #' #' @description Creates a standard theme for all my plots #' #' @param font_size The size of the font for \code{element_text()}. Defaults to \code{font_size = 10}. #' @param font_family The font family #' @param line_size The size of the lines #' #' @importFrom ggplot2 %+replace% theme_gray theme eleme...
DataMask <- R6Class("DataMask", public = list( initialize = function(data, caller) { rows <- group_rows(data) # workaround for whene there are 0 groups if (length(rows) == 0) { rows <- list(integer()) } private$rows <- rows frame <- caller_env(n = 2) local_mask(s...
/R/data-mask.R
permissive
halldc/dplyr
R
false
false
6,314
r
DataMask <- R6Class("DataMask", public = list( initialize = function(data, caller) { rows <- group_rows(data) # workaround for whene there are 0 groups if (length(rows) == 0) { rows <- list(integer()) } private$rows <- rows frame <- caller_env(n = 2) local_mask(s...
# Introstat exercises - type 2 # Exercises # each exercise includes: # 1) a learning objective # 2) a question # 3) a function that computes the correct answer # 4) information of the type of input of the answer # 2016 Tuomo A Nieminen Exercises <- list( ex1 = list( o = "Learning objective", q = "Questio...
/exercises.R
no_license
TuomoNieminen/IntroEx
R
false
false
1,106
r
# Introstat exercises - type 2 # Exercises # each exercise includes: # 1) a learning objective # 2) a question # 3) a function that computes the correct answer # 4) information of the type of input of the answer # 2016 Tuomo A Nieminen Exercises <- list( ex1 = list( o = "Learning objective", q = "Questio...
# HW5: Data manipulation #' # 1. Load the `tidyr` and `dplyr` package and use `data` to read in the `billboard` data which describes # Song rankings for billboard top 100 in the year 2000. # Now let's start analyze the dataset! # For the following exercises, use the pipe operator `%>%` as much as you can....
/Data Process/dplyr4.R
no_license
JinxiaoDu/STAT-5206
R
false
false
11,302
r
# HW5: Data manipulation #' # 1. Load the `tidyr` and `dplyr` package and use `data` to read in the `billboard` data which describes # Song rankings for billboard top 100 in the year 2000. # Now let's start analyze the dataset! # For the following exercises, use the pipe operator `%>%` as much as you can....
library(pyinit) X <- cbind(1, mtcars$wt, mtcars$gear) y <- as.vector(mtcars$mpg) n <- nrow(X) p <- ncol(X) delta <- 0.5 * (1 - p/n) pyinit_expr <- quote(pyinit(x = X, y = y, intercept = FALSE, delta = delta, cc = 1.54764, psc_keep = 0.5 * (1 - p/n), resid_keep_method = 'threshold', ...
/tests/debug.R
no_license
dakep/pyinit
R
false
false
1,000
r
library(pyinit) X <- cbind(1, mtcars$wt, mtcars$gear) y <- as.vector(mtcars$mpg) n <- nrow(X) p <- ncol(X) delta <- 0.5 * (1 - p/n) pyinit_expr <- quote(pyinit(x = X, y = y, intercept = FALSE, delta = delta, cc = 1.54764, psc_keep = 0.5 * (1 - p/n), resid_keep_method = 'threshold', ...
\name{CATT} \alias{CATT} \title{The Cochran-Armitage Trend Test} \description{ This function conducts the Cochran-Armitage trend test to a 2 by k contingency table. It will report the test statistic (Z) and p-value. A linear trend in the frequencies will be calculated, because the weights (0,1,2) will be used by de...
/man/CATT.Rd
no_license
cran/CATT
R
false
false
1,539
rd
\name{CATT} \alias{CATT} \title{The Cochran-Armitage Trend Test} \description{ This function conducts the Cochran-Armitage trend test to a 2 by k contingency table. It will report the test statistic (Z) and p-value. A linear trend in the frequencies will be calculated, because the weights (0,1,2) will be used by de...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/unitModalReg.R \name{unitModalReg} \alias{unitModalReg} \alias{unitModalReg.fit} \title{Unit Modal Regression Models} \usage{ unitModalReg( formula, data, family, link, start = NULL, control = unitModalReg.control() ) unitModalRe...
/man/unitModalReg.Rd
permissive
AndrMenezes/unitModalReg
R
false
true
1,091
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/unitModalReg.R \name{unitModalReg} \alias{unitModalReg} \alias{unitModalReg.fit} \title{Unit Modal Regression Models} \usage{ unitModalReg( formula, data, family, link, start = NULL, control = unitModalReg.control() ) unitModalRe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bigquery_objects.R \name{JobConfigurationExtract} \alias{JobConfigurationExtract} \title{JobConfigurationExtract Object} \usage{ JobConfigurationExtract(compression = NULL, destinationFormat = NULL, destinationUri = NULL, destinationUris = ...
/googlebigqueryv2.auto/man/JobConfigurationExtract.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,214
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bigquery_objects.R \name{JobConfigurationExtract} \alias{JobConfigurationExtract} \title{JobConfigurationExtract Object} \usage{ JobConfigurationExtract(compression = NULL, destinationFormat = NULL, destinationUri = NULL, destinationUris = ...
library(tm) library(dplyr) library(gdata) library(stringr) library(stringdist) df.addr <- read.csv('Addresses.csv') df.area <- read.csv('city_province_cleaned.txt', header=FALSE) provinces <- unique(df.area$V2) cities <- unique(df.area$V1) df.addr <- df.addr[df.addr$country_codes %in% c('CHN'), ] print(nrow(df.addr)) ...
/panama.R
no_license
TansyZhang/offshore-playground
R
false
false
3,623
r
library(tm) library(dplyr) library(gdata) library(stringr) library(stringdist) df.addr <- read.csv('Addresses.csv') df.area <- read.csv('city_province_cleaned.txt', header=FALSE) provinces <- unique(df.area$V2) cities <- unique(df.area$V1) df.addr <- df.addr[df.addr$country_codes %in% c('CHN'), ] print(nrow(df.addr)) ...
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shinydashboard) library("vembedr") source("Tarea1/T1_server.R") source("Tarea1/T1_ui.R") source("Tarea2/T2_server.R") source("Tarea2/T2_ui.R...
/ui.R
no_license
dfceron/compstat2016
R
false
false
2,429
r
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shinydashboard) library("vembedr") source("Tarea1/T1_server.R") source("Tarea1/T1_ui.R") source("Tarea2/T2_server.R") source("Tarea2/T2_ui.R...
library(e1071) library(caret) #* The service for receiving students data, make the prediction about their status and return the results #* @param data The message to echo #* @post /predict function(data){ modeloSemanal<-paste("modelos/modeloSemana",data$Semana[1],".rds",sep="") fit<-readRDS(modeloSemanal) extens...
/Plumber.R
no_license
teacheck/ml-service-docker
R
false
false
9,450
r
library(e1071) library(caret) #* The service for receiving students data, make the prediction about their status and return the results #* @param data The message to echo #* @post /predict function(data){ modeloSemanal<-paste("modelos/modeloSemana",data$Semana[1],".rds",sep="") fit<-readRDS(modeloSemanal) extens...
# Yige Wu @WashU May 2020 ## plot cell type on integration UMAP # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/...
/annotate_barcode/plotting/umap/plot_celltype_on_umap/plot_celltype_manual5_on_snatac_umap.R
no_license
Chenmengpin/ccRCC_snRNA_analysis
R
false
false
2,951
r
# Yige Wu @WashU May 2020 ## plot cell type on integration UMAP # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/...
# randomization chapter # graphical representation ############################################################# # Categorical data ## insert data table <- matrix() colnames(tabela) <- c() rownames(tabela) <- c() ## without total column in results ## prop.table() by row column and total prop.table() ## graphics pie...
/randomization.R
no_license
martim98/scripts_clinical_trials
R
false
false
570
r
# randomization chapter # graphical representation ############################################################# # Categorical data ## insert data table <- matrix() colnames(tabela) <- c() rownames(tabela) <- c() ## without total column in results ## prop.table() by row column and total prop.table() ## graphics pie...
create_structure_plot <- function(L, labels, colors, label_order=NULL, gap=1, ymax=NULL, label_font_size=8, yaxis_tick_font_size=12, ...
/code/structure_plot.R
no_license
jhmarcus/drift-workflow
R
false
false
2,864
r
create_structure_plot <- function(L, labels, colors, label_order=NULL, gap=1, ymax=NULL, label_font_size=8, yaxis_tick_font_size=12, ...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setInverseMatrix <- function(solve) i <<- sol...
/cachematrix.R
no_license
rutvijb10/ProgrammingAssignment2
R
false
false
809
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setInverseMatrix <- function(solve) i <<- sol...
library(Seurat) library(SeuratWrappers) library(cowplot) library(dplyr) library(ggplot2) sample2_H_Epi.data <- Read10X(data.dir = "/node210data/project/mouse_NK_cell/cellranger_out/2-H-Epi/outs/filtered_feature_bc_matrix") sample2_H_Epi <- CreateSeuratObject(counts = sample2_H_Epi.data, project = "2-H_Epi") sample2_H_...
/Seurat codes/Epi.sctransform.integration.R
no_license
Moonju411/Nkcell_mouse
R
false
false
2,792
r
library(Seurat) library(SeuratWrappers) library(cowplot) library(dplyr) library(ggplot2) sample2_H_Epi.data <- Read10X(data.dir = "/node210data/project/mouse_NK_cell/cellranger_out/2-H-Epi/outs/filtered_feature_bc_matrix") sample2_H_Epi <- CreateSeuratObject(counts = sample2_H_Epi.data, project = "2-H_Epi") sample2_H_...
## POISSON - LOG LINK FUNCTION # In the following example we fit a generalized linear model to count data using a Poisson error structure. # The data set consists of counts of high school students diagnosed with an infectious disease within a # period of days from an initial outbreak. cases <- structure(list...
/Statslearningcourse/linear_models/glms.r
no_license
amycook/cheatsheet
R
false
false
3,652
r
## POISSON - LOG LINK FUNCTION # In the following example we fit a generalized linear model to count data using a Poisson error structure. # The data set consists of counts of high school students diagnosed with an infectious disease within a # period of days from an initial outbreak. cases <- structure(list...
\name{by.im} \alias{by.im} \title{Apply Function to Image Broken Down by Factor} \description{ Splits a pixel image into sub-images and applies a function to each sub-image. } \usage{ \method{by}{im}(data, INDICES, FUN, ...) } \arguments{ \item{data}{A pixel image (object of class \code{"im"}).} \item{INDICES}{...
/man/by.im.Rd
no_license
chenjiaxun9/spatstat
R
false
false
1,795
rd
\name{by.im} \alias{by.im} \title{Apply Function to Image Broken Down by Factor} \description{ Splits a pixel image into sub-images and applies a function to each sub-image. } \usage{ \method{by}{im}(data, INDICES, FUN, ...) } \arguments{ \item{data}{A pixel image (object of class \code{"im"}).} \item{INDICES}{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preproc.option.R \docType{data} \name{SPECIES.entrez.all} \alias{SPECIES.entrez.all} \title{Constant Option} \format{An object of class \code{character} of length 3.} \usage{ SPECIES.entrez.all } \description{ Constant Option } \keyword{datas...
/man/SPECIES.entrez.all.Rd
permissive
alpenmilch/preproc
R
false
true
326
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preproc.option.R \docType{data} \name{SPECIES.entrez.all} \alias{SPECIES.entrez.all} \title{Constant Option} \format{An object of class \code{character} of length 3.} \usage{ SPECIES.entrez.all } \description{ Constant Option } \keyword{datas...
# Takes vertex information and edge and makes a time oredered edge list inputDir="input/" outputDir="output/" rootName="MT119S" inputEdgeFileName=paste(rootName,"EdgeList.dat",sep="") inputVertexFileName="MT119VertexInfo.dat" #Columns are: EdgeID Source Target Weight print(paste("Reading edge information from",inpu...
/R/MacTutor/MakeTimeOrdered.r
no_license
xuzhikethinker/PRG
R
false
false
3,014
r
# Takes vertex information and edge and makes a time oredered edge list inputDir="input/" outputDir="output/" rootName="MT119S" inputEdgeFileName=paste(rootName,"EdgeList.dat",sep="") inputVertexFileName="MT119VertexInfo.dat" #Columns are: EdgeID Source Target Weight print(paste("Reading edge information from",inpu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mr_ivw-methods.R \name{penalised.weights} \alias{penalised.weights} \title{Calculates p-values for penalization of weights} \usage{ penalised.weights(.Bx, .Bxse, .By, .Byse) } \arguments{ \item{.Bx}{Beta-coefficient for genetic assoc...
/man/penalised.weights.Rd
no_license
cran/MendelianRandomization
R
false
true
1,115
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mr_ivw-methods.R \name{penalised.weights} \alias{penalised.weights} \title{Calculates p-values for penalization of weights} \usage{ penalised.weights(.Bx, .Bxse, .By, .Byse) } \arguments{ \item{.Bx}{Beta-coefficient for genetic assoc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Mop.R \name{Mop} \alias{Mop} \title{Mop up a data pack file for inclusion a package} \usage{ Mop( DT, value.name = getOption("Census2016.value.name", "persons"), suborder = NULL, dry.run = FALSE, totals = NULL, use.varI = TRUE, ...
/man/Mop.Rd
no_license
HughParsonage/Census2016.spec
R
false
true
1,389
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Mop.R \name{Mop} \alias{Mop} \title{Mop up a data pack file for inclusion a package} \usage{ Mop( DT, value.name = getOption("Census2016.value.name", "persons"), suborder = NULL, dry.run = FALSE, totals = NULL, use.varI = TRUE, ...
#Setup - Make sure the following programs are installed and loaded library(scran) library(dplyr) library(tidyr) library(ggplot2) library(cowplot) library(viridis) library(reshape2) library(Matrix) library(TxDb.Hsapiens.UCSC.hg38.knownGene) library(org.Hs.eg.db) #Define the working directory - Alter to configure with y...
/scripts/03.subsampled_T2-T8_comparisons_6669hostgenes.R
permissive
mrotival/PopDiff_MonocyteIAV
R
false
false
27,417
r
#Setup - Make sure the following programs are installed and loaded library(scran) library(dplyr) library(tidyr) library(ggplot2) library(cowplot) library(viridis) library(reshape2) library(Matrix) library(TxDb.Hsapiens.UCSC.hg38.knownGene) library(org.Hs.eg.db) #Define the working directory - Alter to configure with y...
/Resources/Utils/stats.r
no_license
sone/LitterPower
R
false
false
3,430
r
# RESOLVE_FOCAL_CONFLICTS ## ABOUT # This script identifies calls that are currently not labelled as nonfocal, but # may actually be nonfocal. It is a wrapper for a pipeline of python scripts (jupyter # notebooks, originally). ## DETAILED DESCRIPTION # First, potential mislabelled calls are identified as calls tha...
/resolve_focal_conflicts/resolve_conflicts_from_r.R
no_license
marathomas/resolve_conflicts
R
false
false
3,885
r
# RESOLVE_FOCAL_CONFLICTS ## ABOUT # This script identifies calls that are currently not labelled as nonfocal, but # may actually be nonfocal. It is a wrapper for a pipeline of python scripts (jupyter # notebooks, originally). ## DETAILED DESCRIPTION # First, potential mislabelled calls are identified as calls tha...
# Page 30 # (1) A = matrix( c(1, 0, 2, -1, -4, -2), ncol=3) B = matrix( c(1, 2, 1, -6, 1, -1), ncol=2) A %*% B B %*% A # (2) tmp = c(1, 2, -1) # Note: it is a column vector A = t(tmp) # A is now a row vector B = c(1, -1, 0) A %*% B B %*% A
/Linear/R/Problem-1-2-03.r
no_license
AppliedStat/class
R
false
false
266
r
# Page 30 # (1) A = matrix( c(1, 0, 2, -1, -4, -2), ncol=3) B = matrix( c(1, 2, 1, -6, 1, -1), ncol=2) A %*% B B %*% A # (2) tmp = c(1, 2, -1) # Note: it is a column vector A = t(tmp) # A is now a row vector B = c(1, -1, 0) A %*% B B %*% A
# Unique methods to H2O # H2O client management operations .readableTime <- function(epochTimeMillis) { days = epochTimeMillis/(24*60*60*1000) hours = (days-trunc(days))*24 minutes = (hours-trunc(hours))*60 seconds = (minutes-trunc(minutes))*60 milliseconds = (seconds-trunc(seconds))*1000 durationVector = ...
/R/h2o-package/R/ParseImport.R
permissive
vagiler/h2o
R
false
false
27,009
r
# Unique methods to H2O # H2O client management operations .readableTime <- function(epochTimeMillis) { days = epochTimeMillis/(24*60*60*1000) hours = (days-trunc(days))*24 minutes = (hours-trunc(hours))*60 seconds = (minutes-trunc(minutes))*60 milliseconds = (seconds-trunc(seconds))*1000 durationVector = ...
library('dplyr') library('plyr') ## Get file from the Web & and exctract it into a data frame using "read.table" url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" if(!file.exists("data.zip")){ download.file(url, "data.zip") } unzip("data.zip") # 'README.txt' # 'featur...
/script.R
no_license
mySecretGitHubAccount/GettingCleaningDataProject
R
false
false
3,476
r
library('dplyr') library('plyr') ## Get file from the Web & and exctract it into a data frame using "read.table" url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" if(!file.exists("data.zip")){ download.file(url, "data.zip") } unzip("data.zip") # 'README.txt' # 'featur...
library(rpart) library(FSelector) library(parallel) library(doSNOW) data(iris) source ("doSNOW_version.R") evaluator <- function(subset) { ##k-fold cross validation k <- 5 splits <- runif(nrow(iris)) results = sapply(1:k, function(i) { test.idx <- (splits >= (i - 1) / k) & (splits < i / k) ...
/exhaustive_search/iris_doSNOW.R
no_license
hpjeonGIT/R_MPI
R
false
false
815
r
library(rpart) library(FSelector) library(parallel) library(doSNOW) data(iris) source ("doSNOW_version.R") evaluator <- function(subset) { ##k-fold cross validation k <- 5 splits <- runif(nrow(iris)) results = sapply(1:k, function(i) { test.idx <- (splits >= (i - 1) / k) & (splits < i / k) ...
############## ## Termin 5 ## ############## ## Wir arbeiten heute mit dem Technophobie-Datensatz ## weiter. tp <- read.csv("technophobie.csv") ## TP1 Irgendwie fuehle ich mich einfach aengstlich, ## wenn ich auf einen Computer zugehe. ## TP2 Computer regen mich auf. ## TP3 Ich denke, die meisten Leute koenne...
/Uebungen/2019/05_Uebung.R
no_license
m-Py/Testtheorie-R
R
false
false
6,470
r
############## ## Termin 5 ## ############## ## Wir arbeiten heute mit dem Technophobie-Datensatz ## weiter. tp <- read.csv("technophobie.csv") ## TP1 Irgendwie fuehle ich mich einfach aengstlich, ## wenn ich auf einen Computer zugehe. ## TP2 Computer regen mich auf. ## TP3 Ich denke, die meisten Leute koenne...
#' Extract subsets from nfd objects #' #' Extract subsets from `nfd` (and `crss_nf`, and `crssi`) objects by time, #' trace, site, flow space, and/or timestep dimensions. #' #' When calling `nfd_extract()` not all dimensions have to be specified. When #' dimensions are not specified, all data for that dimension are...
/R/nfd_extract.R
no_license
BoulderCodeHub/CRSSIO
R
false
false
8,708
r
#' Extract subsets from nfd objects #' #' Extract subsets from `nfd` (and `crss_nf`, and `crssi`) objects by time, #' trace, site, flow space, and/or timestep dimensions. #' #' When calling `nfd_extract()` not all dimensions have to be specified. When #' dimensions are not specified, all data for that dimension are...
## Download Dataset: if(!file.exists("./data")){dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="./data/Dataset.zip", method="curl") # Unzip dataSet to /data directory unzip(zipfile="./data/Dataset.zip",exdir="./da...
/run_analysis.R
no_license
leenadhande/getting-cleaning-data-project
R
false
false
2,443
r
## Download Dataset: if(!file.exists("./data")){dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="./data/Dataset.zip", method="curl") # Unzip dataSet to /data directory unzip(zipfile="./data/Dataset.zip",exdir="./da...
library(dplyr) library(ggplot2) library(gridExtra) library(Cairo) # Load data full.data <- readRDS(file.path(PROJHOME, "Data","data_processed", "full_data.rds")) # Plot specific cases plot.data <- full.data %>% select(country_name, year.num, v2csreprss, v2csreprss_ord, v2cse...
/Analysis/ngo_regs_regime_stability/summary_figures.R
no_license
andrewheiss/Dissertation
R
false
false
2,083
r
library(dplyr) library(ggplot2) library(gridExtra) library(Cairo) # Load data full.data <- readRDS(file.path(PROJHOME, "Data","data_processed", "full_data.rds")) # Plot specific cases plot.data <- full.data %>% select(country_name, year.num, v2csreprss, v2csreprss_ord, v2cse...
\name{recogniseCdf} \alias{recogniseCdf} \title{ Explanatory Name of Distribution Function } \description{ Recognises many standard cumulative distribution functions and returns a string describing the distribution. } \usage{ recogniseCdf(s="punif") } \arguments{ \item{s}{ A single character string giving t...
/man/recogniseCdf.Rd
no_license
cran/goftest
R
false
false
1,078
rd
\name{recogniseCdf} \alias{recogniseCdf} \title{ Explanatory Name of Distribution Function } \description{ Recognises many standard cumulative distribution functions and returns a string describing the distribution. } \usage{ recogniseCdf(s="punif") } \arguments{ \item{s}{ A single character string giving t...
# a4.R # info for table 4 shell: Association between the genetic risk score and serum lipid levels ## @knitr table4 library(GenABEL) #library(PredictABEL) library(knitr) #library(snpStats) #biocLite("snpStats") library(data.table) library(Hmisc) #### >>>>>>>>>>----- get data ------------- load("a1.Rda") # load a1 ...
/kure-analysis/a4.R
no_license
avonholle/slcs-lipid-variants
R
false
false
13,694
r
# a4.R # info for table 4 shell: Association between the genetic risk score and serum lipid levels ## @knitr table4 library(GenABEL) #library(PredictABEL) library(knitr) #library(snpStats) #biocLite("snpStats") library(data.table) library(Hmisc) #### >>>>>>>>>>----- get data ------------- load("a1.Rda") # load a1 ...
dataset=read.csv('50_Startups.csv') #categorical data dataset$State=factor(dataset$State,levels=c('New York','Florida','California'),labels=c(1,2,3)) split=sample.split(dataset$Profit,SplitRatio=0.8) training_set=subset(dataset,split==TRUE) test_set=subset(dataset,split==FALSE) regressor=lm(formula=Profit~ .,...
/mulitiple_regression.R
no_license
jat9674/Basic-data-Processing-in-Machine-learning-using-R
R
false
false
1,343
r
dataset=read.csv('50_Startups.csv') #categorical data dataset$State=factor(dataset$State,levels=c('New York','Florida','California'),labels=c(1,2,3)) split=sample.split(dataset$Profit,SplitRatio=0.8) training_set=subset(dataset,split==TRUE) test_set=subset(dataset,split==FALSE) regressor=lm(formula=Profit~ .,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/github-pat.R \name{set_github_pat} \alias{set_github_pat} \title{Set your Github Personal Access Token} \usage{ set_github_pat(force_new = FALSE, validate = interactive(), verbose = validate) } \arguments{ \item{force_new}{forget existing pat...
/man/set_github_pat.Rd
permissive
r-lib/credentials
R
false
true
1,286
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/github-pat.R \name{set_github_pat} \alias{set_github_pat} \title{Set your Github Personal Access Token} \usage{ set_github_pat(force_new = FALSE, validate = interactive(), verbose = validate) } \arguments{ \item{force_new}{forget existing pat...
norm3QQ <- function(i1=1,i2=2) { dump("norm3QQ","c:\\StatBook\\norm3QQ.r") symb=c("HPQ","HD","MS","M","VZ","T","S","C","TGT","WMT","GM","XOM","F","YHOO","IBM","GOOGL","MSFT") nmST=c("Hewlett-Packard","Home Depo","Morgan Stanley","Macys","Verizon","AT&T","Sprint","Citigroup","Target","Walmart","General Motors","...
/RcodeData/normQQ.r
no_license
PepSalehi/advancedstatistics
R
false
false
1,571
r
norm3QQ <- function(i1=1,i2=2) { dump("norm3QQ","c:\\StatBook\\norm3QQ.r") symb=c("HPQ","HD","MS","M","VZ","T","S","C","TGT","WMT","GM","XOM","F","YHOO","IBM","GOOGL","MSFT") nmST=c("Hewlett-Packard","Home Depo","Morgan Stanley","Macys","Verizon","AT&T","Sprint","Citigroup","Target","Walmart","General Motors","...
hpc <- read.table("household_power_consumption.txt", sep=";") subsethpc <- subset(hpc,hpc$Date=="1/2/2007" | hpc$Date =="2/2/2007") #1st plot hist(as.numeric(subsethpc$Global_active_power), col="red", main="Global Active Power", xlab="Global Active Power (kilowatts)") #2nd plot subsethpc$Date <- as.Date(subsethpc$Dat...
/hpc.R
no_license
josephlamps/ExData_Plotting1
R
false
false
2,009
r
hpc <- read.table("household_power_consumption.txt", sep=";") subsethpc <- subset(hpc,hpc$Date=="1/2/2007" | hpc$Date =="2/2/2007") #1st plot hist(as.numeric(subsethpc$Global_active_power), col="red", main="Global Active Power", xlab="Global Active Power (kilowatts)") #2nd plot subsethpc$Date <- as.Date(subsethpc$Dat...
context("System metadata") test_that("the replication policy gets cleared", { library(datapack) sysmeta <- new("SystemMetadata") expect_true(sysmeta@replicationAllowed) sysmeta <- clear_replication_policy(sysmeta) expect_false(sysmeta@replicationAllowed) }) test_that("the replication policy gets defaulted...
/tests/testthat/test_sysmeta.R
permissive
eeerika/arcticdatautils
R
false
false
1,532
r
context("System metadata") test_that("the replication policy gets cleared", { library(datapack) sysmeta <- new("SystemMetadata") expect_true(sysmeta@replicationAllowed) sysmeta <- clear_replication_policy(sysmeta) expect_false(sysmeta@replicationAllowed) }) test_that("the replication policy gets defaulted...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jobs.R \name{job_list} \alias{job_list} \title{List all jobs} \usage{ job_list(filter = NULL, limit = NULL, page_size = NULL, sort_by = NULL, uri = FALSE) } \arguments{ \item{filter}{Filter the set of jobs to be returned.} \item{limit}{The...
/man/job_list.Rd
no_license
Geoany/cloudml
R
false
true
1,108
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jobs.R \name{job_list} \alias{job_list} \title{List all jobs} \usage{ job_list(filter = NULL, limit = NULL, page_size = NULL, sort_by = NULL, uri = FALSE) } \arguments{ \item{filter}{Filter the set of jobs to be returned.} \item{limit}{The...
## Print out some exploratory figures ############################################# ## Exploratory Analyses: Alpha Rarefaction ## ############################################# for( v in 1:length(AMR_exploratory_analyses) ) { # AMR meg_alpha_rarefaction(data_list=AMR_raw_analytic_data, dat...
/scripts/print_AMR_figures.R
permissive
marcelladane/MEG_R_metagenomic_analysis
R
false
false
6,095
r
## Print out some exploratory figures ############################################# ## Exploratory Analyses: Alpha Rarefaction ## ############################################# for( v in 1:length(AMR_exploratory_analyses) ) { # AMR meg_alpha_rarefaction(data_list=AMR_raw_analytic_data, dat...
library(foreign) library(stringr) library(plyr) library(reshape2) source("xtable.r") # Data from http://pewforum.org/Datasets/Dataset-Download.aspx # Load data ----------------------------------------------------------------- pew <- read.spss("pew.sav") pew <- as.data.frame(pew) religion <- pew[c("q16", "reltrad",...
/course/msds001/Data/tidy-data/data/pew.r
no_license
namkyodai/namkyodai.github.io
R
false
false
1,781
r
library(foreign) library(stringr) library(plyr) library(reshape2) source("xtable.r") # Data from http://pewforum.org/Datasets/Dataset-Download.aspx # Load data ----------------------------------------------------------------- pew <- read.spss("pew.sav") pew <- as.data.frame(pew) religion <- pew[c("q16", "reltrad",...
#' @title #' RCT of Indomethacin for Prevention of Post-ERCP Pancreatitis #' #' @description #' Results of a randomized, placebo-controlled, prospective 2-arm trial of rectal indomethacin (100 mg) vs. placebo prevent post-ERCP pancreatitis in 602 participants, as reported by Elmunzer, Higgins, et al. in 2012 in the New...
/R/indo_rct.R
permissive
higgi13425/medicaldata
R
false
false
6,997
r
#' @title #' RCT of Indomethacin for Prevention of Post-ERCP Pancreatitis #' #' @description #' Results of a randomized, placebo-controlled, prospective 2-arm trial of rectal indomethacin (100 mg) vs. placebo prevent post-ERCP pancreatitis in 602 participants, as reported by Elmunzer, Higgins, et al. in 2012 in the New...
.noGenerics <- TRUE .onAttach <- function(lib, pkg){ packageStartupMessage(paste("Now loading:", " bbo: R Implementation of Biogeography-Based Optimization", " Author: Sarvesh Nikumbh", "Based on:", ...
/bbo/R/zzz.R
no_license
ingted/R-Examples
R
false
false
532
r
.noGenerics <- TRUE .onAttach <- function(lib, pkg){ packageStartupMessage(paste("Now loading:", " bbo: R Implementation of Biogeography-Based Optimization", " Author: Sarvesh Nikumbh", "Based on:", ...
#' Append an argument on a list #' #' Append an argument on a list of arguments #' #' @param args The original argument list. #' @param argName The name of the argument to add. #' @param argValue The value of the argument to add. #' @param forced a \code{logical} value indicating if the argument with the same #...
/R/9-control.R
no_license
SkadiEye/deepTL
R
false
false
1,276
r
#' Append an argument on a list #' #' Append an argument on a list of arguments #' #' @param args The original argument list. #' @param argName The name of the argument to add. #' @param argValue The value of the argument to add. #' @param forced a \code{logical} value indicating if the argument with the same #...
library("readxl") library("readr") # Data pre-processing to avoid storing xlsx in version control. # Read specific sheet from Excel workbook df <- read_xlsx('SCT Percutaneous Interventions Refined Data.xlsx', 'Database_Refined_2') # lowercase and substitute spaces from column names munge_col_name <- function(cname){...
/00_data_preprocess.R
no_license
grosscol/laser-babies
R
false
false
766
r
library("readxl") library("readr") # Data pre-processing to avoid storing xlsx in version control. # Read specific sheet from Excel workbook df <- read_xlsx('SCT Percutaneous Interventions Refined Data.xlsx', 'Database_Refined_2') # lowercase and substitute spaces from column names munge_col_name <- function(cname){...
as.network.uncompressed.rds<-function(x, na.rm=FALSE, edge.check=FALSE){ #Initialize the network object if(class(x)=="network"){return(x)} if(is.null(attr(x,"vnames"))){ warning("as.network.uncompressed.rds input must be a compressed network, or a network.\n Returning the...
/R_functions/as.network.uncompressed.R
no_license
donga0223/Inferring-Bivariate-Association-from-RDS
R
false
false
848
r
as.network.uncompressed.rds<-function(x, na.rm=FALSE, edge.check=FALSE){ #Initialize the network object if(class(x)=="network"){return(x)} if(is.null(attr(x,"vnames"))){ warning("as.network.uncompressed.rds input must be a compressed network, or a network.\n Returning the...
# *********************************************************************** # # METODI E MODELLI QUANTITATIVI DI SUPPORTO ALLE DECISIONI (MEMO) # # Lab08 ** Tabelle doppie, Chi quadrato, Paradosso di Simpson ** # # Dr. Carlo Cavicchia # # **********...
/Rlab/Lab08-Script.R
permissive
carlocavicchia/carlocavicchia.github.io
R
false
false
7,592
r
# *********************************************************************** # # METODI E MODELLI QUANTITATIVI DI SUPPORTO ALLE DECISIONI (MEMO) # # Lab08 ** Tabelle doppie, Chi quadrato, Paradosso di Simpson ** # # Dr. Carlo Cavicchia # # **********...
library('tidyverse') library('stringr') library('eiPack') library('glue') library('nnls') select = dplyr::select # Set the directory of this file as working directory if (nzchar(Sys.getenv("RSTUDIO_USER_IDENTITY"))) { script_folder = dirname(rstudioapi::getSourceEditorContext()$path) } else { frame_files <- lapply...
/3.extract_transition_coefficients.R
no_license
mu4bu2/ecoinference
R
false
false
2,082
r
library('tidyverse') library('stringr') library('eiPack') library('glue') library('nnls') select = dplyr::select # Set the directory of this file as working directory if (nzchar(Sys.getenv("RSTUDIO_USER_IDENTITY"))) { script_folder = dirname(rstudioapi::getSourceEditorContext()$path) } else { frame_files <- lapply...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/agronomic-values.R \name{agronomic_values_latlng} \alias{agronomic_values_latlng} \title{agronomic_values_latlng.} \usage{ agronomic_values_latlng(latitude, longitude, day_start, day_end, accumulation_start_date = "", gdd_method = "standard...
/man/agronomic_values_latlng.Rd
permissive
modernresearchconsulting/aWhere-R-Library
R
false
true
3,552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/agronomic-values.R \name{agronomic_values_latlng} \alias{agronomic_values_latlng} \title{agronomic_values_latlng.} \usage{ agronomic_values_latlng(latitude, longitude, day_start, day_end, accumulation_start_date = "", gdd_method = "standard...
# horizontal aggregation ## health response <- response %>% #1.1 under 5 morbidity ## under 5 morbidity sum new_recoding(target = u5_morbidity_sum) %>% recode_directly(to_expression = sum(child_health.fever, child_health.malaria, child_health.awd, child_health.other, c...
/source/composite variables/05-health.R
no_license
Ashire/som_mcna_19
R
false
false
5,188
r
# horizontal aggregation ## health response <- response %>% #1.1 under 5 morbidity ## under 5 morbidity sum new_recoding(target = u5_morbidity_sum) %>% recode_directly(to_expression = sum(child_health.fever, child_health.malaria, child_health.awd, child_health.other, c...
require(leafcutter) library(abind) require(rstan) require(data.table) require(doMC) source("utils.R") require(reshape2) registerDoMC(detectCores()-1) counts=read.table("../data/counts.txt.gz", check.names = F) anno <- read.delim("../data/sample_annotation.txt", stringsAsFactors = F) library_size_model=stan_model("...
/code/eagle2.R
permissive
davidaknowles/dox
R
false
false
11,972
r
require(leafcutter) library(abind) require(rstan) require(data.table) require(doMC) source("utils.R") require(reshape2) registerDoMC(detectCores()-1) counts=read.table("../data/counts.txt.gz", check.names = F) anno <- read.delim("../data/sample_annotation.txt", stringsAsFactors = F) library_size_model=stan_model("...
library("shiny") library("shinyMatrix") m <- matrix(runif(12), 6, 2, dimnames = list(NULL, c("x", "y"))) ui <- fluidPage( tags$head(# Note the wrapping of the string in HTML() tags$style( HTML( " .matrix-input-table tr:nth-child(odd){ background-color: blue; co...
/testing/app2.R
no_license
meltemozcan/PartInvShinyUI
R
false
false
957
r
library("shiny") library("shinyMatrix") m <- matrix(runif(12), 6, 2, dimnames = list(NULL, c("x", "y"))) ui <- fluidPage( tags$head(# Note the wrapping of the string in HTML() tags$style( HTML( " .matrix-input-table tr:nth-child(odd){ background-color: blue; co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fRedsRutils.R \name{try.CATCH} \alias{try.CATCH} \title{tryCatch both warnings (with value) and errors} \usage{ try.CATCH(expr) } \arguments{ \item{expr}{an \R expression to evaluate} } \value{ a list with 'value' and 'warning', where value' ...
/man/try.CATCH.Rd
permissive
FredHasselman/nlRtsa
R
false
true
778
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fRedsRutils.R \name{try.CATCH} \alias{try.CATCH} \title{tryCatch both warnings (with value) and errors} \usage{ try.CATCH(expr) } \arguments{ \item{expr}{an \R expression to evaluate} } \value{ a list with 'value' and 'warning', where value' ...
##' Print object.size ##' ##' @export size <- function(x, unit = "auto") { if(class(x) == "character") { x <- eval(as.name(x)) } print(object.size(x), unit = unit) }
/R/size.R
no_license
kl-lab/fformpp
R
false
false
190
r
##' Print object.size ##' ##' @export size <- function(x, unit = "auto") { if(class(x) == "character") { x <- eval(as.name(x)) } print(object.size(x), unit = unit) }
source('create_plot.R') create_plot('plot2', function(power_consumption) { with(power_consumption, plot(datetime, Global_active_power, type = 'l', xlab = '', ylab = 'Global Active Power (kilowatts)')) })
/plot2.R
no_license
rganchev/ExData_Plotting1
R
false
false
259
r
source('create_plot.R') create_plot('plot2', function(power_consumption) { with(power_consumption, plot(datetime, Global_active_power, type = 'l', xlab = '', ylab = 'Global Active Power (kilowatts)')) })
bolus <- function(x) UseMethod("bolus") bolus.proto <- function(x) x$bolus() # Create a bolus object # A bolus is a list suitable for digesting. # # Most ggplot objects have components that should be hashed when creating # a digest (especially since most ggplot objects are proto objects and # are also self-documenti...
/R/xxx-digest.r
no_license
strongh/ggplot2
R
false
false
3,081
r
bolus <- function(x) UseMethod("bolus") bolus.proto <- function(x) x$bolus() # Create a bolus object # A bolus is a list suitable for digesting. # # Most ggplot objects have components that should be hashed when creating # a digest (especially since most ggplot objects are proto objects and # are also self-documenti...