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 |
|---|---|---|---|---|---|---|---|---|---|
# Makeslides
system("pandoc -s -S -i -t slidy statsDCslides.md -o KnowlesStatsDCslides2012.html --self-contained")
| /makeslides.R | no_license | jknowles/statsdc12-presentation | R | false | false | 116 | r | # Makeslides
system("pandoc -s -S -i -t slidy statsDCslides.md -o KnowlesStatsDCslides2012.html --self-contained")
|
# @file CovNN.R
#
# Copyright 2018 Observational Health Data Sciences and Informatics
#
# This file is part of PatientLevelPrediction
#
# 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
#
# h... | /R/CovNN.R | permissive | parkdongsu/PatientLevelPrediction | R | false | false | 21,482 | r | # @file CovNN.R
#
# Copyright 2018 Observational Health Data Sciences and Informatics
#
# This file is part of PatientLevelPrediction
#
# 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
#
# h... |
parse_qtl = function( qtl, ccmice_hap = NULL ){
qtl_table = NULL
for( i in names(qtl) ) {
EarSwell_lod = rbind(qtl[[i]]$lod$A, qtl[[i]]$lod$X);
EarSwell_coef = rbind(qtl[[i]]$coef$A, qtl[[i]]$coef$X);
pvalue = EarSwell_lod[,5:9]
coef = EarSwell_coef
dimnames(pvalue)[[2]] = paste(dimnames(pvalue)[[2]], i, sep="_"... | /parse_qtl.R | no_license | xinwrli/ccmice | R | false | false | 664 | r |
parse_qtl = function( qtl, ccmice_hap = NULL ){
qtl_table = NULL
for( i in names(qtl) ) {
EarSwell_lod = rbind(qtl[[i]]$lod$A, qtl[[i]]$lod$X);
EarSwell_coef = rbind(qtl[[i]]$coef$A, qtl[[i]]$coef$X);
pvalue = EarSwell_lod[,5:9]
coef = EarSwell_coef
dimnames(pvalue)[[2]] = paste(dimnames(pvalue)[[2]], i, sep="_"... |
library(ggplot2)
library(dplyr)
library(magrittr)
library(knitr)
library(paco)
library(reshape2)
library(grid)
source("../code/multiplot.R")
size <- 6
mod_size <- 3
my_seed <- 8
cscale <- "Dark2"
# modular network
dect_mod <- function(x, y) {
if(as.character(x) == as.character(y)) return(x)
return(NA_integer_)
}
... | /proposal/uc_proposal/code/networks.R | no_license | efcaguab/phd-thesis | R | false | false | 2,956 | r | library(ggplot2)
library(dplyr)
library(magrittr)
library(knitr)
library(paco)
library(reshape2)
library(grid)
source("../code/multiplot.R")
size <- 6
mod_size <- 3
my_seed <- 8
cscale <- "Dark2"
# modular network
dect_mod <- function(x, y) {
if(as.character(x) == as.character(y)) return(x)
return(NA_integer_)
}
... |
library(shiny)
library(leaflet)
library(ggplot2)
library(ggthemes)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
titlePanel("Developing Data Products Project"),
sidebarLayout(
sidebarPanel(
uiOutput("stateList"),
uiOutput("categoryList")
),
mainPanel(
leaf... | /ui.R | no_license | dgarciam/DataProducts | R | false | false | 393 | r | library(shiny)
library(leaflet)
library(ggplot2)
library(ggthemes)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
titlePanel("Developing Data Products Project"),
sidebarLayout(
sidebarPanel(
uiOutput("stateList"),
uiOutput("categoryList")
),
mainPanel(
leaf... |
#' screenshotUCSC
#'
#' Load a UCSC track hub and save a screenshot of a given region as a pdf
#'
#' @param url UCSC URL to use, sets genome and screenshot resolution
#' @param hubfile URL of UCSC track hub to load
#' @param chr Chromosome to screenshot
#' @param start Start of the region to screenshot
#' @param end En... | /R/screenshotUCSC.R | no_license | timpeters82/aaRon | R | false | false | 4,417 | r | #' screenshotUCSC
#'
#' Load a UCSC track hub and save a screenshot of a given region as a pdf
#'
#' @param url UCSC URL to use, sets genome and screenshot resolution
#' @param hubfile URL of UCSC track hub to load
#' @param chr Chromosome to screenshot
#' @param start Start of the region to screenshot
#' @param end En... |
#' Compute weights for each expression based on l-scale
#'
#' @param exprs normalized expression on log scale
#' @param groups character vector indicating the group membership of each sample
#' @param span span for lowess (default=0.5)
#' @param plot show fit ? (default=FALSE)
#' @export
lweights = function (exprs, gr... | /R/lweights.r | no_license | kokrah/HTShape | R | false | false | 992 | r | #' Compute weights for each expression based on l-scale
#'
#' @param exprs normalized expression on log scale
#' @param groups character vector indicating the group membership of each sample
#' @param span span for lowess (default=0.5)
#' @param plot show fit ? (default=FALSE)
#' @export
lweights = function (exprs, gr... |
sample(c(1,2,3,4,5), 3)
hello <- toupper("howdy")
hello <- "hey" %>% toupper()
hello <- "hey" %>% paste("class")
library(jsonlite)
library(magrittr)
| /R_Analysis/01_Demo/AndrewClassInfo.R | no_license | GodIsLove4U/AutosRUs | R | false | false | 153 | r | sample(c(1,2,3,4,5), 3)
hello <- toupper("howdy")
hello <- "hey" %>% toupper()
hello <- "hey" %>% paste("class")
library(jsonlite)
library(magrittr)
|
# Test abundance functions
context("STRAT abundance function")
load("./../test_data.Rdata")
strat = subset(fk2012, SPECIES_CD == "MYC BONA" &
STRAT == "FDLR" &
PROT == 0)
pdens = psu_density(ssu_density(strat))
sabun = strat_abundance(pdens, ntot2012)
test_that("returns... | /tests/testthat/test_abundance.R | no_license | jeremiaheb/rvc | R | false | false | 932 | r | # Test abundance functions
context("STRAT abundance function")
load("./../test_data.Rdata")
strat = subset(fk2012, SPECIES_CD == "MYC BONA" &
STRAT == "FDLR" &
PROT == 0)
pdens = psu_density(ssu_density(strat))
sabun = strat_abundance(pdens, ntot2012)
test_that("returns... |
stage_change_pred <-
function(Tmean, threshold, earlier_stage_day, lactin_pars, stage_code,
day_length, max_day_length, print.l = FALSE, save.l = FALSE) {
nq <- nrow(threshold)
if(is.null(nq)) {
nq <- 1
threshold <- t(matrix(threshold))
}
change_day <- NULL
for(q in 1:nq)... | /R/stage_change_pred.R | no_license | cran/phenModel | R | false | false | 1,382 | r | stage_change_pred <-
function(Tmean, threshold, earlier_stage_day, lactin_pars, stage_code,
day_length, max_day_length, print.l = FALSE, save.l = FALSE) {
nq <- nrow(threshold)
if(is.null(nq)) {
nq <- 1
threshold <- t(matrix(threshold))
}
change_day <- NULL
for(q in 1:nq)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mHM_matchgrid.R
\name{mHM_matchgrid}
\alias{mHM_matchgrid}
\title{match grids}
\usage{
mHM_matchgrid(grids, mask_grid, mask_var = "pre",
proj4 = "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs")
}
\a... | /man/mHM_matchgrid.Rd | no_license | JBrenn/mHMr | R | false | true | 1,031 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mHM_matchgrid.R
\name{mHM_matchgrid}
\alias{mHM_matchgrid}
\title{match grids}
\usage{
mHM_matchgrid(grids, mask_grid, mask_var = "pre",
proj4 = "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs")
}
\a... |
getDataProjectDownload <- function() {
library(RCurl);
dir<-"UCI HAR Dataset";
url<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip";
file<-"getdata_projectfiles_UCI_HAR_Dataset.zip";
if (!file.exists(dir)) {
download.file(url, file, method="cu... | /getDataProjectDownload.R | no_license | orichal/GettingAndCleaningData | R | false | false | 558 | r |
getDataProjectDownload <- function() {
library(RCurl);
dir<-"UCI HAR Dataset";
url<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip";
file<-"getdata_projectfiles_UCI_HAR_Dataset.zip";
if (!file.exists(dir)) {
download.file(url, file, method="cu... |
`ensemble.calibrate.models` <- function(
x=NULL, p=NULL,
a=NULL, an=1000, excludep=FALSE, target.groups=FALSE,
k=0, pt=NULL, at=NULL, SSB.reduce=FALSE, CIRCLES.d=250000,
TrainData=NULL, TestData=NULL,
VIF=FALSE, COR=FALSE,
SINK=FALSE, PLOTS=FALSE, CATCH.OFF=FALSE,
threshold.method="sp... | /R/ensemble.calibrate.models.R | no_license | cran/BiodiversityR | R | false | false | 220,447 | r | `ensemble.calibrate.models` <- function(
x=NULL, p=NULL,
a=NULL, an=1000, excludep=FALSE, target.groups=FALSE,
k=0, pt=NULL, at=NULL, SSB.reduce=FALSE, CIRCLES.d=250000,
TrainData=NULL, TestData=NULL,
VIF=FALSE, COR=FALSE,
SINK=FALSE, PLOTS=FALSE, CATCH.OFF=FALSE,
threshold.method="sp... |
\name{Problem 1}
\alias{Homeworkset 2}
\title{2}
\description{This function compiled to generated a "line" plot of standard normal density(ie., dnorm) over the user defined interval. PDF file is gernerated containing that plot.}
\usage{
function(filename,fcnname,LRrange,nsample,compile)
}
\arguments{
\item{filename}... | /my1rpack/man/problem1.Rd | no_license | dayixuan/hw2 | R | false | false | 868 | rd | \name{Problem 1}
\alias{Homeworkset 2}
\title{2}
\description{This function compiled to generated a "line" plot of standard normal density(ie., dnorm) over the user defined interval. PDF file is gernerated containing that plot.}
\usage{
function(filename,fcnname,LRrange,nsample,compile)
}
\arguments{
\item{filename}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gibbsDPMalgo1.R
\name{gibbsDPMalgo1}
\alias{gibbsDPMalgo1}
\title{Gibbs Sampling with Alghorithm 1 from Neal}
\usage{
gibbsDPMalgo1(z, hyperG0, alpha, niter, doPlot = TRUE, pause = 0.1)
}
\arguments{
\item{z}{data matrix \code{p x n}}
\item{... | /man/gibbsDPMalgo1.Rd | no_license | borishejblum/CRPdemo | R | false | true | 1,987 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gibbsDPMalgo1.R
\name{gibbsDPMalgo1}
\alias{gibbsDPMalgo1}
\title{Gibbs Sampling with Alghorithm 1 from Neal}
\usage{
gibbsDPMalgo1(z, hyperG0, alpha, niter, doPlot = TRUE, pause = 0.1)
}
\arguments{
\item{z}{data matrix \code{p x n}}
\item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/external_classes_wrapper_functions.R
\name{setSigFeatDist}
\alias{setSigFeatDist}
\title{setSigFeatDist (internal function)}
\usage{
setSigFeatDist(x, value)
}
\arguments{
\item{x}{Object of which to change slot data.}
\item{value}{Value to ... | /man/setSigFeatDist.Rd | no_license | rmpiro/decompTumor2Sig | R | false | true | 958 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/external_classes_wrapper_functions.R
\name{setSigFeatDist}
\alias{setSigFeatDist}
\title{setSigFeatDist (internal function)}
\usage{
setSigFeatDist(x, value)
}
\arguments{
\item{x}{Object of which to change slot data.}
\item{value}{Value to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feasible.R
\name{getMaxProblemSize}
\alias{getMaxProblemSize}
\title{What is the maximum allowed problem size?}
\usage{
getMaxProblemSize()
}
\value{
logical
}
\description{
To prevent users from starting excessively large matching problems, ... | /man/getMaxProblemSize.Rd | permissive | markmfredrickson/optmatch | R | false | true | 748 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feasible.R
\name{getMaxProblemSize}
\alias{getMaxProblemSize}
\title{What is the maximum allowed problem size?}
\usage{
getMaxProblemSize()
}
\value{
logical
}
\description{
To prevent users from starting excessively large matching problems, ... |
library(diseasemapping)
### Name: formatPopulation-methods
### Title: Format a population data set
### Aliases: formatPopulation formatPopulation-methods
### formatPopulation,data.frame-method
### formatPopulation,SpatialPolygonsDataFrame-method
### formatPopulation,list-method
### ** Examples
data('kentucky'... | /data/genthat_extracted_code/diseasemapping/examples/formatPopulation.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 556 | r | library(diseasemapping)
### Name: formatPopulation-methods
### Title: Format a population data set
### Aliases: formatPopulation formatPopulation-methods
### formatPopulation,data.frame-method
### formatPopulation,SpatialPolygonsDataFrame-method
### formatPopulation,list-method
### ** Examples
data('kentucky'... |
## R file with differents libraries and Functions to make analysis and text mining about
packages <- c("rvest","plyr","data.table","tm","stringr","stringdist","dplyr","tidytext","bit64")
for(pkg in packages){
print(pkg)
if(!require(pkg, character.only = T)){
install.packages(pkg)
}
require(pkg)
}
#### **... | /ETL/utils.R | no_license | gabriellimagomes15/dsa | R | false | false | 21,806 | r | ## R file with differents libraries and Functions to make analysis and text mining about
packages <- c("rvest","plyr","data.table","tm","stringr","stringdist","dplyr","tidytext","bit64")
for(pkg in packages){
print(pkg)
if(!require(pkg, character.only = T)){
install.packages(pkg)
}
require(pkg)
}
#### **... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
test.export.time <- function() {
fr = h2o.importFile(locate("bigdata/laptop/citibike-nyc/2013-07.csv"))
t = system.time(h2o.exportFile(fr,paste0(sandbox(),"foo",sep=.Platform$file.sep),force=T))
... | /h2o-r/tests/testdir_misc/runit_export_time_large.R | permissive | tempbottle/h2o-3 | R | false | false | 458 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
test.export.time <- function() {
fr = h2o.importFile(locate("bigdata/laptop/citibike-nyc/2013-07.csv"))
t = system.time(h2o.exportFile(fr,paste0(sandbox(),"foo",sep=.Platform$file.sep),force=T))
... |
#' This function generates an R file with a roxygen2-friendly template
#'
#' This function generates an R file with a roxygen2-friendly template that will enable all metadata about your function to be read into the package documentation when you build your package
#' @param function_name is the name of the function you... | /R/function_template.R | permissive | joepowers16/breadcrumbs | R | false | false | 1,273 | r | #' This function generates an R file with a roxygen2-friendly template
#'
#' This function generates an R file with a roxygen2-friendly template that will enable all metadata about your function to be read into the package documentation when you build your package
#' @param function_name is the name of the function you... |
library(extrafont)
library(tidyverse)
library(fuzzyjoin)
library(maps)
library(mapdata)
library(maptools)
library(rgdal)
library(ggmap)
library(ggplot2)
library(rgeos)
library(broom)
library(plyr)
library(showtext)
### load data
places <- read_csv("places.csv") %>%
janitor::clean_names()
suffi... | /names.R | no_license | henrywrover/personal | R | false | false | 3,180 | r | library(extrafont)
library(tidyverse)
library(fuzzyjoin)
library(maps)
library(mapdata)
library(maptools)
library(rgdal)
library(ggmap)
library(ggplot2)
library(rgeos)
library(broom)
library(plyr)
library(showtext)
### load data
places <- read_csv("places.csv") %>%
janitor::clean_names()
suffi... |
book <- LeMiserables
str_replace_all(book$text,"(?!')[[:punct:]]", " ") %>% str_trim() -> book_punct_free
book_punct_free %>%
str_split("\\s+") %>%
unlist() -> book_words_vector
books_words_vec <- c(books_words_vec, book_words_vector)
book_words_vector[!(str_to_lower(book_words_vector) %in% stop_words$word)] %>%
... | /HW8/Solutions/5.R | no_license | Mahbodmajid/DataAnalysis | R | false | false | 1,269 | r | book <- LeMiserables
str_replace_all(book$text,"(?!')[[:punct:]]", " ") %>% str_trim() -> book_punct_free
book_punct_free %>%
str_split("\\s+") %>%
unlist() -> book_words_vector
books_words_vec <- c(books_words_vec, book_words_vector)
book_words_vector[!(str_to_lower(book_words_vector) %in% stop_words$word)] %>%
... |
# Assume that the downloaded zip file is extracted to the working directory
# Step 1: Merges the training and the test sets to create one data set.
url<-"getdata-projectfiles-UCI HAR Dataset/UCI HAR Dataset/"
#---Merges the test sets---
xTest<-read.table(file=paste(url, "test/X_test.txt",sep="",collapse="/"), hea... | /run_analysis.R | no_license | R-programming/Getting-and-Cleaning-Data | R | false | false | 2,569 | r | # Assume that the downloaded zip file is extracted to the working directory
# Step 1: Merges the training and the test sets to create one data set.
url<-"getdata-projectfiles-UCI HAR Dataset/UCI HAR Dataset/"
#---Merges the test sets---
xTest<-read.table(file=paste(url, "test/X_test.txt",sep="",collapse="/"), hea... |
#' Example dataset of indicator areas
#'
#' A dataset of 67 indicator areas to be used in the example calculations
#'
#' @format A data frame with 67 rows and 3 columns:
#' \describe{
#' \item{IndicatorareaID}{Numerical ID of indicators areas}
#' \item{BasicunitID}{Numerical ID of basic spatial units}
#' \item{Ba... | /R/Indicator_area.R | no_license | NINAnor/NIcalcExtra | R | false | false | 383 | r | #' Example dataset of indicator areas
#'
#' A dataset of 67 indicator areas to be used in the example calculations
#'
#' @format A data frame with 67 rows and 3 columns:
#' \describe{
#' \item{IndicatorareaID}{Numerical ID of indicators areas}
#' \item{BasicunitID}{Numerical ID of basic spatial units}
#' \item{Ba... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/listOMLTasks.R
\name{listOMLTasks}
\alias{listOMLTasks}
\title{List available OpenML tasks.}
\usage{
listOMLTasks(task.type = NULL, estimation.procedure = NULL,
evaluation.measures = NULL, number.of.instances = NULL,
number.of.features = ... | /man/listOMLTasks.Rd | no_license | strategist922/openml-r | R | false | true | 4,563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/listOMLTasks.R
\name{listOMLTasks}
\alias{listOMLTasks}
\title{List available OpenML tasks.}
\usage{
listOMLTasks(task.type = NULL, estimation.procedure = NULL,
evaluation.measures = NULL, number.of.instances = NULL,
number.of.features = ... |
# ANOVA - repeated measure design
# Partha P Banerjee
# May 26, 2019
# Clear plots -----------------------------
if(!is.null(dev.list())) dev.off()
# Clear console
cat("\014")
# Clean workspace
rm(list=ls())
# Set working directory
# setwd("----------------")
### Required packages ---
library(reshape)
library(dplyr)... | /ANOVA_Factorial_RepeatedMeasure.R | no_license | parthapbn/R_Projects | R | false | false | 2,514 | r | # ANOVA - repeated measure design
# Partha P Banerjee
# May 26, 2019
# Clear plots -----------------------------
if(!is.null(dev.list())) dev.off()
# Clear console
cat("\014")
# Clean workspace
rm(list=ls())
# Set working directory
# setwd("----------------")
### Required packages ---
library(reshape)
library(dplyr)... |
\name{AdaptR-package}
\alias{AdaptR-package}
\docType{package}
\title{
Overview of the functions in the AdaptR package
}
\description{
AdaptR is a dynamic modelling technique for incorporating the capacity for genetic adaptation in projecting changes in the distributions of species over time. The \pkg{AdaptR} pack... | /man/AdaptR-package.Rd | no_license | bbauer-su/AdaptR | R | false | false | 1,365 | rd | \name{AdaptR-package}
\alias{AdaptR-package}
\docType{package}
\title{
Overview of the functions in the AdaptR package
}
\description{
AdaptR is a dynamic modelling technique for incorporating the capacity for genetic adaptation in projecting changes in the distributions of species over time. The \pkg{AdaptR} pack... |
## Fabrizia Ronco
## April 2020
# load packages
require(phytools) ## version 0.6-60
## get variables from comand line
args = commandArgs(trailingOnly=TRUE)
dirname=args[1]
filename=args[2]
TRAIT= args[4]
AXES= args[5]
### get burnin from file to define the posterior sample
burn=read.table(paste(dirname,"additio... | /trait_evolution/03_TraitEvolution/scripts/04_processingBT.R | no_license | cichlidx/ronco_et_al | R | false | false | 4,267 | r | ## Fabrizia Ronco
## April 2020
# load packages
require(phytools) ## version 0.6-60
## get variables from comand line
args = commandArgs(trailingOnly=TRUE)
dirname=args[1]
filename=args[2]
TRAIT= args[4]
AXES= args[5]
### get burnin from file to define the posterior sample
burn=read.table(paste(dirname,"additio... |
#' Set or get theme to use for syntax highlighting
#' @noRd
#' @author Ramnath Vaidyanathan
set_theme = function(theme) {
fmt = opts_knit$get('out.format')
header = if (is.list(theme)) theme else theme_to_header(theme)
highlight = paste(header$highlight, collapse = "\n")
if(fmt == 'latex') {
opts_chunk$set(ba... | /R/themes.R | no_license | kulong/knitr | R | false | false | 3,708 | r | #' Set or get theme to use for syntax highlighting
#' @noRd
#' @author Ramnath Vaidyanathan
set_theme = function(theme) {
fmt = opts_knit$get('out.format')
header = if (is.list(theme)) theme else theme_to_header(theme)
highlight = paste(header$highlight, collapse = "\n")
if(fmt == 'latex') {
opts_chunk$set(ba... |
rm(list = ls())
library(dplyr)
library(tidyr)
library(PEcAnRTM)
library(purrr)
library(rrtm)
library(ED2scenarios)
library(PEcAn.ED2)
library(purrr)
library(ggplot2)
library(ggridges)
library(cowplot)
library(pracma)
library(BayesianTools)
library(raster)
library(rhdf5)
library(stringr)
source("/data/gent/vo/000/gvo0... | /scripts/Check.status.R | no_license | mpeaucelle/SoilSensitivity | R | false | false | 2,510 | r | rm(list = ls())
library(dplyr)
library(tidyr)
library(PEcAnRTM)
library(purrr)
library(rrtm)
library(ED2scenarios)
library(PEcAn.ED2)
library(purrr)
library(ggplot2)
library(ggridges)
library(cowplot)
library(pracma)
library(BayesianTools)
library(raster)
library(rhdf5)
library(stringr)
source("/data/gent/vo/000/gvo0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rank.analysis.R
\name{exact_rank_prob}
\alias{exact_rank_prob}
\title{Probabilistic centrality rankings}
\usage{
exact_rank_prob(P, only.results = T, verbose = F, force = F)
}
\arguments{
\item{P}{A partial ranking as matrix object calculated... | /man/exact_rank_prob.Rd | no_license | knapply/netrankr | R | false | true | 3,291 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rank.analysis.R
\name{exact_rank_prob}
\alias{exact_rank_prob}
\title{Probabilistic centrality rankings}
\usage{
exact_rank_prob(P, only.results = T, verbose = F, force = F)
}
\arguments{
\item{P}{A partial ranking as matrix object calculated... |
rm(list = ls())
library(rvest)
library(xml2)
url <- "https://www.ptt.cc/bbs/Baseball/index.html"
res <- read_html(url)
# Parse the content and extract the titles
raw.titles <- res %>% html_nodes("div.title")
# Extract link
nba.article.link <- raw.titles %>% html_node("a") %>% html_attr('href')
# Extract article
nba.... | /week2/week2_extrapractice.R | no_license | rabbit55/cs-x-programming | R | false | false | 538 | r | rm(list = ls())
library(rvest)
library(xml2)
url <- "https://www.ptt.cc/bbs/Baseball/index.html"
res <- read_html(url)
# Parse the content and extract the titles
raw.titles <- res %>% html_nodes("div.title")
# Extract link
nba.article.link <- raw.titles %>% html_node("a") %>% html_attr('href')
# Extract article
nba.... |
#--------------------------------------------------------
# Harvard EdX
# Data Science in R Professional Certificate
# Productivity Tools
#
# Date: 4/18/2020
# Romit Bhattacharya
#--------------------------------------------------------
install.packages("dslabs") # to install a single package
install.packages(c("tidy... | /productivity_tools.R | no_license | r-bhattacharya/productivity_tools_0 | R | false | false | 590 | r | #--------------------------------------------------------
# Harvard EdX
# Data Science in R Professional Certificate
# Productivity Tools
#
# Date: 4/18/2020
# Romit Bhattacharya
#--------------------------------------------------------
install.packages("dslabs") # to install a single package
install.packages(c("tidy... |
df <- readd(data)
df %>%
select(DHRP06_SQ004_, ORDM02_SQ007_) %>%
mutate_all(as.factor) %>%
filter(!str_detect(DHRP06_SQ004_, "Don't"), !str_detect(ORDM02_SQ007_, "Do n")) %>%
drop_na() %>%
count(DHRP06_SQ004_, ORDM02_SQ007_) %>%
spread(ORDM02_SQ007_, n)
new_res <- df %>%
select(DHRP06_SQ004_, OR... | /exploration_for_table_8.R | no_license | tklebel/rdm-tugraz | R | false | false | 1,479 | r | df <- readd(data)
df %>%
select(DHRP06_SQ004_, ORDM02_SQ007_) %>%
mutate_all(as.factor) %>%
filter(!str_detect(DHRP06_SQ004_, "Don't"), !str_detect(ORDM02_SQ007_, "Do n")) %>%
drop_na() %>%
count(DHRP06_SQ004_, ORDM02_SQ007_) %>%
spread(ORDM02_SQ007_, n)
new_res <- df %>%
select(DHRP06_SQ004_, OR... |
# Drew Colbert
# This code here is used to create visuaizations that will go on a poster
# to show the differences in rent prices and what might be causing those differences.
# Below is code to explore some of the key areas of the data and view distributions,
# as well as maps of the united states that show clear dif... | /Map_Rent_Prices.R | no_license | drewcolbert/Final_Portfolio | R | false | false | 13,302 | r | # Drew Colbert
# This code here is used to create visuaizations that will go on a poster
# to show the differences in rent prices and what might be causing those differences.
# Below is code to explore some of the key areas of the data and view distributions,
# as well as maps of the united states that show clear dif... |
#' View rvest Session
#'
#' Handy function to see where the current rvest session is. I am not the original maker of this function. Thank you to Lorenzo Gaborini for posting this on their blog! \url{https://adventuresindata.netlify.com/post/2018-01-17-viewing-rvest-sessions/}
#'
#' @param session A rvest session object... | /R/view_html.R | permissive | KoderKow/kowr | R | false | false | 1,816 | r | #' View rvest Session
#'
#' Handy function to see where the current rvest session is. I am not the original maker of this function. Thank you to Lorenzo Gaborini for posting this on their blog! \url{https://adventuresindata.netlify.com/post/2018-01-17-viewing-rvest-sessions/}
#'
#' @param session A rvest session object... |
# Boosting classification on Wheat Data
##########
# Enter data and do some processing
wheat <- read.csv("wheat.csv")
head(wheat)
#summary(wheat)
# Variable "type" is the response variable. "class" is another explanatory.
class(wheat$type)
wheat$type = as.factor(wheat$type)
wheat$class = as.factor(wheat$class)
#summ... | /hw19-20/L20 - Boosting Wheat.R | no_license | thenatzzz/Statistical_Modelling_STAT-652 | R | false | false | 3,223 | r | # Boosting classification on Wheat Data
##########
# Enter data and do some processing
wheat <- read.csv("wheat.csv")
head(wheat)
#summary(wheat)
# Variable "type" is the response variable. "class" is another explanatory.
class(wheat$type)
wheat$type = as.factor(wheat$type)
wheat$class = as.factor(wheat$class)
#summ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/renameNetwork.R
\name{renameNetwork}
\alias{renameNetwork}
\title{Rename network}
\usage{
renameNetwork(new.name, network = "current",
base.url = "http://localhost:1234/v1")
}
\arguments{
\item{new.name}{new name of the network}
\item{netw... | /man/renameNetwork.Rd | no_license | cytoscape/r2cytoscape | R | false | true | 606 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/renameNetwork.R
\name{renameNetwork}
\alias{renameNetwork}
\title{Rename network}
\usage{
renameNetwork(new.name, network = "current",
base.url = "http://localhost:1234/v1")
}
\arguments{
\item{new.name}{new name of the network}
\item{netw... |
library(garray)
### Name: amap
### Title: Mapping matching dimension of arrays with a function
### Aliases: amap Ops.garray
### ** Examples
a <- garray(1:24, c(4,6,2), dimnames=list(X=1:4, Y=letters[1:6], Z=NULL),
sdim=list(XX=c(x1=3,x2=1), YY=c(y1=1,y2=2)))
b <- garray(1:6/10,6,dimnames=list(Y=letters[1:6]))
c <-... | /data/genthat_extracted_code/garray/examples/amap.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,080 | r | library(garray)
### Name: amap
### Title: Mapping matching dimension of arrays with a function
### Aliases: amap Ops.garray
### ** Examples
a <- garray(1:24, c(4,6,2), dimnames=list(X=1:4, Y=letters[1:6], Z=NULL),
sdim=list(XX=c(x1=3,x2=1), YY=c(y1=1,y2=2)))
b <- garray(1:6/10,6,dimnames=list(Y=letters[1:6]))
c <-... |
import('../../base/operators')
#' Function to calculate and return a cleaned linear model
#'
#' @param formula A formula specifying the relationship between variables
#' @param data A data.frame, list, or by default the formula env containing vars
#' @param min_pts Minimum number of points to create a m... | /stats/export_indexed/lm.r | permissive | Manikgarg/ebits | R | false | false | 2,759 | r | import('../../base/operators')
#' Function to calculate and return a cleaned linear model
#'
#' @param formula A formula specifying the relationship between variables
#' @param data A data.frame, list, or by default the formula env containing vars
#' @param min_pts Minimum number of points to create a m... |
#' Adds decorative formatting (flair) to parts of a string or source code.
#'
#' \code{flair} returns a string with formatting wrappers (currently only html)
#'
#' @param x A string object
#' @param pattern A pattern to match. By default, this is a fixed pattern; use \code{flair_rx} for regular expressions.
#' @param ... | /R/flair.R | permissive | RaymondBalise/flair | R | false | false | 4,824 | r | #' Adds decorative formatting (flair) to parts of a string or source code.
#'
#' \code{flair} returns a string with formatting wrappers (currently only html)
#'
#' @param x A string object
#' @param pattern A pattern to match. By default, this is a fixed pattern; use \code{flair_rx} for regular expressions.
#' @param ... |
#one file for all plot functions
#easy for testing
source("plot1.R")
source("plot2.R")
source("plot3.R")
source("plot4.R") | /plot.R | no_license | shabss/ExData_Plotting1 | R | false | false | 129 | r | #one file for all plot functions
#easy for testing
source("plot1.R")
source("plot2.R")
source("plot3.R")
source("plot4.R") |
library(ape)
testtree <- read.tree("5525_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5525_0_unrooted.txt") | /codeml_files/newick_trees_processed/5525_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("5525_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5525_0_unrooted.txt") |
require(httr)
require(jsonlite)
id <- 'czopluoglu'
res = GET('https://api.chess.com/pub/player/czopluoglu')
fromJSON(rawToChar(res$content))
| /pull_playerinfo.r | no_license | czopluoglu/chess | R | false | false | 146 | r | require(httr)
require(jsonlite)
id <- 'czopluoglu'
res = GET('https://api.chess.com/pub/player/czopluoglu')
fromJSON(rawToChar(res$content))
|
# Helper Function
# A general webscraping function that will pull information about the Kraken roster. This
# includes player name, birthplace, height, etc.
kraken_scrape <- function(category) {
scrape(session) %>%
html_elements({{category}}) %>%
html_text() %>%
as_tibble() %>%
row_to_names(r... | /Shiny/Seattle Kraken Player Trivia/funs/helper_funs.R | no_license | Edgar-Zamora/My-Work | R | false | false | 2,657 | r | # Helper Function
# A general webscraping function that will pull information about the Kraken roster. This
# includes player name, birthplace, height, etc.
kraken_scrape <- function(category) {
scrape(session) %>%
html_elements({{category}}) %>%
html_text() %>%
as_tibble() %>%
row_to_names(r... |
run1.moss <- function (filename, alpha = 1, c = 0.1, cPrime = 0.0001, q = 0.1, replicates = 5, maxVars = 3, dimens=NULL, k = 2) {
if(missing(filename)) stop("Name of input file must be provided.")
data <- read.table(filename, header=FALSE, sep="\t", stringsAsFactors=FALSE)
if(ncol(data) <= 1)
data <- read.t... | /genMOSSplus/R/run1.moss.R | no_license | ingted/R-Examples | R | false | false | 1,258 | r | run1.moss <- function (filename, alpha = 1, c = 0.1, cPrime = 0.0001, q = 0.1, replicates = 5, maxVars = 3, dimens=NULL, k = 2) {
if(missing(filename)) stop("Name of input file must be provided.")
data <- read.table(filename, header=FALSE, sep="\t", stringsAsFactors=FALSE)
if(ncol(data) <= 1)
data <- read.t... |
#' baseIndustries outputs the base_industries job plot and data
#'
#' This includes code to output data for the Denver-Boulder MSA when Adams, Arapahoe, Boulder,
#' Broomfield, Denver, Douglas, or Jefferson County are selected.
#'
#' @param fips numeric, county-level FIPS code
#' @param ctyname County Nam... | /R/baseIndustries.R | no_license | ColoradoDemography/ProfileDashboard2 | R | false | false | 10,852 | r | #' baseIndustries outputs the base_industries job plot and data
#'
#' This includes code to output data for the Denver-Boulder MSA when Adams, Arapahoe, Boulder,
#' Broomfield, Denver, Douglas, or Jefferson County are selected.
#'
#' @param fips numeric, county-level FIPS code
#' @param ctyname County Nam... |
# in R 3.4.4
library(tidyverse)
library(readxl)
library(lubridate)
# Combine other data sources and the previously combined EDAS, Fairfax, WVA, MD bug data
# Bring in combined environmental dataset
envSmash <- read.csv('data/processedData/VA_FF_WVA_MD_Other_envData.csv')
envSmash$DataSource <- as.character(envSmash... | /bugs_4_combineOther.R | no_license | EmmaVJones/VAattribution_round2 | R | false | false | 1,930 | r | # in R 3.4.4
library(tidyverse)
library(readxl)
library(lubridate)
# Combine other data sources and the previously combined EDAS, Fairfax, WVA, MD bug data
# Bring in combined environmental dataset
envSmash <- read.csv('data/processedData/VA_FF_WVA_MD_Other_envData.csv')
envSmash$DataSource <- as.character(envSmash... |
library(twitteR)
library(ROAuth)
library(base64enc)
library(dplyr)
library(ggplot2)
library(lubridate)
library(RMeCab)
APIkey <- "F0pJ7zJ3bHvH9MXDLmMKGxSyw"
APISecret <- "iZc1dYtqYmXQUgKua6QxrLbBYZxBDDxqyX8pfKF5FVZeMCDmHE"
accessToken <- "44802149-6YGOp5tcuk9F8G4sWO34ADC4jYvgzfaignzsJSi7p"
accessSecret <- "CjMLAd9M2wu... | /twitter_pd.R | no_license | hujuu/R_practice | R | false | false | 2,033 | r | library(twitteR)
library(ROAuth)
library(base64enc)
library(dplyr)
library(ggplot2)
library(lubridate)
library(RMeCab)
APIkey <- "F0pJ7zJ3bHvH9MXDLmMKGxSyw"
APISecret <- "iZc1dYtqYmXQUgKua6QxrLbBYZxBDDxqyX8pfKF5FVZeMCDmHE"
accessToken <- "44802149-6YGOp5tcuk9F8G4sWO34ADC4jYvgzfaignzsJSi7p"
accessSecret <- "CjMLAd9M2wu... |
timestamp <- Sys.time()
library(caret)
library(plyr)
library(recipes)
library(dplyr)
model <- "pda2"
## In case the package or one of its dependencies uses random numbers
## on startup so we'll pre-load the required libraries:
for(i in getModelInfo(model)[[1]]$library)
do.call("require", list(package = i))
#####... | /RegressionTests/Code/pda2.R | no_license | Weekend-Warrior/caret | R | false | false | 4,088 | r | timestamp <- Sys.time()
library(caret)
library(plyr)
library(recipes)
library(dplyr)
model <- "pda2"
## In case the package or one of its dependencies uses random numbers
## on startup so we'll pre-load the required libraries:
for(i in getModelInfo(model)[[1]]$library)
do.call("require", list(package = i))
#####... |
# Loads R packages:
library(bioDist)
library(gplots)
library(limma)
library(DT)
# Some little helper functions:
leftstr <- function(x, n = 1) substr(x, 1, min(n, nchar(x)))
rightstr <- function(x, n = 1) substr(x, nchar(x) - min(n - 1, nchar(x) - 1), nchar(x))
plot.null <- function()
plot(0, 0, col = "transparent... | /dan-orig-app.R | no_license | meihuisu/cel-viewer-in-R | R | false | false | 19,661 | r | # Loads R packages:
library(bioDist)
library(gplots)
library(limma)
library(DT)
# Some little helper functions:
leftstr <- function(x, n = 1) substr(x, 1, min(n, nchar(x)))
rightstr <- function(x, n = 1) substr(x, nchar(x) - min(n - 1, nchar(x) - 1), nchar(x))
plot.null <- function()
plot(0, 0, col = "transparent... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CMBDataFrameGenerics.R
\name{summary.CMBDataFrame}
\alias{summary.CMBDataFrame}
\title{Summarise CMB Data}
\usage{
\method{summary}{CMBDataFrame}(cmbdf)
}
\arguments{
\item{cmbdf}{a CMB Data Frame.}
}
\value{
A summary of the CMB ... | /man/summary.CMBDataFrame.Rd | permissive | mingltu/rcosmo | R | false | true | 503 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CMBDataFrameGenerics.R
\name{summary.CMBDataFrame}
\alias{summary.CMBDataFrame}
\title{Summarise CMB Data}
\usage{
\method{summary}{CMBDataFrame}(cmbdf)
}
\arguments{
\item{cmbdf}{a CMB Data Frame.}
}
\value{
A summary of the CMB ... |
cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(dplyr)... | /analysis/0026b_sp500_global_max.R | no_license | RajenDharmendra/of-dollars-and-data | R | false | false | 7,718 | r | cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(dplyr)... |
# AML UIUC
# Part 1. Linear regression with various regularizers
# Linear regression and plots based on a UCI ML dataset containing features of music, and the latitude and longitude from
# which that music originates: https://archive.ics.uci.edu/ml/datasets/Geographical+Original+of+Music
# used https://web.stanford.e... | /MISC/03-Computer-Vision/29-Linear-and-Logistic-Regressions-wRegularization/part1_lm_regularization.R | no_license | agnedil/Portfolio | R | false | false | 19,054 | r | # AML UIUC
# Part 1. Linear regression with various regularizers
# Linear regression and plots based on a UCI ML dataset containing features of music, and the latitude and longitude from
# which that music originates: https://archive.ics.uci.edu/ml/datasets/Geographical+Original+of+Music
# used https://web.stanford.e... |
#' @keywords internal
#' @import fs
#' @importFrom glue glue glue_data glue_collapse
#' @import rlang
"_PACKAGE"
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
## usethis namespace: end
NULL
#' Options consulted by gargle
#'
#' ... | /R/gargle-package.R | permissive | muschellij2/gargle | R | false | false | 3,359 | r | #' @keywords internal
#' @import fs
#' @importFrom glue glue glue_data glue_collapse
#' @import rlang
"_PACKAGE"
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
## usethis namespace: end
NULL
#' Options consulted by gargle
#'
#' ... |
p <- makeFun(orings.model)(31)
1 - (1-p)^(1/6) -> q; q # P(damage to particular O-ring)
1 - dbinom(0, 6, q) # P(damage to >0 O-rings)
cbind(0:6, dbinom(0:6, 6, q)) # table of all probabilities
| /inst/snippet/orings04.R | no_license | rpruim/fastR2 | R | false | false | 210 | r | p <- makeFun(orings.model)(31)
1 - (1-p)^(1/6) -> q; q # P(damage to particular O-ring)
1 - dbinom(0, 6, q) # P(damage to >0 O-rings)
cbind(0:6, dbinom(0:6, 6, q)) # table of all probabilities
|
# model territory analysis with simulated bird data
# X and Y coords as well as seed consumption
library(ggplot2)
library(shiny)
library(scatterplot3d)
data <- read.csv("data/simData.csv")
source("DTW.R")
shinyServer(function(input, output) {
output$plot <- renderPlot({
Xmin <- input$range[1]
Xmax <- input$ran... | /server.R | no_license | ShyneColdchain/heightShiny | R | false | false | 434 | r | # model territory analysis with simulated bird data
# X and Y coords as well as seed consumption
library(ggplot2)
library(shiny)
library(scatterplot3d)
data <- read.csv("data/simData.csv")
source("DTW.R")
shinyServer(function(input, output) {
output$plot <- renderPlot({
Xmin <- input$range[1]
Xmax <- input$ran... |
#############################################################
############# Bitcoin Example using GARCH ##################
#############################################################
# this script is an example of forecasting volatility using
# a GARCH model on a BTC-USD time series
install.packages(... | /GARCH_BTC.R | no_license | anlosldn/mpmsclass | R | false | false | 5,088 | r | #############################################################
############# Bitcoin Example using GARCH ##################
#############################################################
# this script is an example of forecasting volatility using
# a GARCH model on a BTC-USD time series
install.packages(... |
\name{prob_transitions}
\alias{prob_transitions}
\title{
Probability Count Transitions
}
\description{
Constructs the probabilities of all count transition in a plate appearance
}
\usage{
prob_transitions(dt, player = "", pitcher = FALSE)
}
\arguments{
\item{dt}{
Data frame giving beginning and ending coun... | /man/prob_transitions.Rd | no_license | bayesball/PitchSequence | R | false | false | 604 | rd | \name{prob_transitions}
\alias{prob_transitions}
\title{
Probability Count Transitions
}
\description{
Constructs the probabilities of all count transition in a plate appearance
}
\usage{
prob_transitions(dt, player = "", pitcher = FALSE)
}
\arguments{
\item{dt}{
Data frame giving beginning and ending coun... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/missing.control.R
\name{missing.control}
\alias{missing.control}
\title{Construct control structures for handling of missing data for \code{prioritylasso}}
\usage{
missing.control(
handle.missingdata = c("none", "ignore", "impute.off... | /man/missing.control.Rd | no_license | cran/prioritylasso | R | false | true | 2,560 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/missing.control.R
\name{missing.control}
\alias{missing.control}
\title{Construct control structures for handling of missing data for \code{prioritylasso}}
\usage{
missing.control(
handle.missingdata = c("none", "ignore", "impute.off... |
# # Preprocessing.R
# # Description: remove some singular/unexpected data from acc and gyro
func_preprocess <- function(inputMatrix) {
# inputAccMatrix: row - time index, column - accX,accY,accZ, gyroX,gyroY,gyroZ
accMatrix <- inputMatrix[, 1:3]
gyroMatrix <- inputMatrix[, 4:6]
# only cut the singular va... | /DataPreprocessingFunc/Preprocessing.R | no_license | jamescfli/R_HAR_project_bySSL | R | false | false | 793 | r | # # Preprocessing.R
# # Description: remove some singular/unexpected data from acc and gyro
func_preprocess <- function(inputMatrix) {
# inputAccMatrix: row - time index, column - accX,accY,accZ, gyroX,gyroY,gyroZ
accMatrix <- inputMatrix[, 1:3]
gyroMatrix <- inputMatrix[, 4:6]
# only cut the singular va... |
file <- "C:/Users/natasa/Documents/projectAmadeus/data/citibike/processed/citibikebOct13pp.rdata"
load(file)
plot(citibikeOct13pp$tripduration,citibikeOct13pp$tripdistance)
plot(citibikeOct13pp$tripdistance,citibikeOct13pp$tripduration)
plot(citibikeOct13pp$tripdistance,citibikeOct13pp$tripspeed, type='p',pch='.')
plo... | /code/exploratory/citibike/cb_speed.R | no_license | natasasdj/DataScienceTestAmadeus | R | false | false | 3,035 | r | file <- "C:/Users/natasa/Documents/projectAmadeus/data/citibike/processed/citibikebOct13pp.rdata"
load(file)
plot(citibikeOct13pp$tripduration,citibikeOct13pp$tripdistance)
plot(citibikeOct13pp$tripdistance,citibikeOct13pp$tripduration)
plot(citibikeOct13pp$tripdistance,citibikeOct13pp$tripspeed, type='p',pch='.')
plo... |
# Function : plot2
# Author : Suresh Nageswaran
# Input : Path to the dataset,
# Data frame with the dataset, if available
# Boolean flag indicating if the output should go to a file
# Output : File plot1.png with the output plot
# Dependencies : createReducedDataset.r
# How to invoke: On ... | /plot2.r | no_license | sureshnageswaran/ExData_Plotting1 | R | false | false | 1,198 | r | # Function : plot2
# Author : Suresh Nageswaran
# Input : Path to the dataset,
# Data frame with the dataset, if available
# Boolean flag indicating if the output should go to a file
# Output : File plot1.png with the output plot
# Dependencies : createReducedDataset.r
# How to invoke: On ... |
#' @title Multinomial model likelihood
#'
#' @description
#' \code{MultiLikelihood}
#'
#' @details
#'
#' @param X
#' @param p
#' @param use.log
#' @param BPPARAM
#'
#' @return
#'
#' @export
#'
#' @import BiocParallel
#'
#' @author Feng Zeng <zengfeng@xmu.edu.cn>
#'
#' @examples
#'
MultiLikelihood <- function(x, p, use... | /R/MultiLikelihood.R | permissive | caofy0307/scClassifier | R | false | false | 698 | r | #' @title Multinomial model likelihood
#'
#' @description
#' \code{MultiLikelihood}
#'
#' @details
#'
#' @param X
#' @param p
#' @param use.log
#' @param BPPARAM
#'
#' @return
#'
#' @export
#'
#' @import BiocParallel
#'
#' @author Feng Zeng <zengfeng@xmu.edu.cn>
#'
#' @examples
#'
MultiLikelihood <- function(x, p, use... |
# scratch.R
dfData = data.frame(dfImport[,n])
## find correlated variables
m = NULL;
for (i in 1:ncol(dfData)){
m = cbind(m, dfData[,i])
}
colnames(m) = colnames(dfData)
mCor = cor(m, use="na.or.complete")
library(caret)
i = findCorrelation(abs(mCor), cutoff = 0.7)
n = colnames(mCor)[i]
## some coda tests
libra... | /scratch.R | permissive | uhkniazi/BRC_SkinGut_Microbiome | R | false | false | 1,811 | r | # scratch.R
dfData = data.frame(dfImport[,n])
## find correlated variables
m = NULL;
for (i in 1:ncol(dfData)){
m = cbind(m, dfData[,i])
}
colnames(m) = colnames(dfData)
mCor = cor(m, use="na.or.complete")
library(caret)
i = findCorrelation(abs(mCor), cutoff = 0.7)
n = colnames(mCor)[i]
## some coda tests
libra... |
#!/usr/bin/env Rscript
## Get mean depth per call from vcf
#system("vcftools --site-mean-depth --gzvcf /storage/szfeupe/Runs/GTEx_estr/HipSTR_OUT/str_calls_chr1.vcf.gz --out Depth")
#system("vcftools --site-depth --gzvcf /storage/szfeupe/Runs/GTEx_estr/HipSTR_OUT/STR_Chr1.filter.vcf.gz --out Depth")
## Get distribut... | /Scripts/PostRegressionFixes/sanity_check_str_plot1.r | no_license | gymreklab/gtex-estrs | R | false | false | 1,962 | r | #!/usr/bin/env Rscript
## Get mean depth per call from vcf
#system("vcftools --site-mean-depth --gzvcf /storage/szfeupe/Runs/GTEx_estr/HipSTR_OUT/str_calls_chr1.vcf.gz --out Depth")
#system("vcftools --site-depth --gzvcf /storage/szfeupe/Runs/GTEx_estr/HipSTR_OUT/STR_Chr1.filter.vcf.gz --out Depth")
## Get distribut... |
# Checks for proper construction and get/setting of the slots of a SingleCellExperiment.
# library(SingleCellExperiment); library(testthat); source("test-sce-class.R")
context("SingleCellExperiment class")
set.seed(1000)
ncells <- 100
v <- matrix(rnorm(20000), ncol=ncells)
u <- matrix(rpois(20000, 5), ncol=ncells)
w <... | /tests/testthat/test-sce-class.R | no_license | RagnarDanneskjold/SingleCellExperiment | R | false | false | 3,559 | r | # Checks for proper construction and get/setting of the slots of a SingleCellExperiment.
# library(SingleCellExperiment); library(testthat); source("test-sce-class.R")
context("SingleCellExperiment class")
set.seed(1000)
ncells <- 100
v <- matrix(rnorm(20000), ncol=ncells)
u <- matrix(rpois(20000, 5), ncol=ncells)
w <... |
# load packages ----------------------------------------------------------------
library(tidyverse)
library(here)
# read data --------------------------------------------------------------------
covid_speeches_scot_words <- read_rds(here::here("processed-data", "covid-speeches-scot-words.rds"))
covid_speeches_uk_wo... | /analysis/07-data-combine.R | no_license | Arjun-0/fm-speeches-covid19 | R | false | false | 1,069 | r | # load packages ----------------------------------------------------------------
library(tidyverse)
library(here)
# read data --------------------------------------------------------------------
covid_speeches_scot_words <- read_rds(here::here("processed-data", "covid-speeches-scot-words.rds"))
covid_speeches_uk_wo... |
minvalue=300 #NEED TO BE DEFINED
maxvalue=500 #NEED TO BE DEFINED
ymax=100 #
stepchange=10
step=seq(minvalue,maxvalue, by =10)
print(length(step))
etasa<-matrix(double(1),nrow=length(step),ncol=pumps)
p<-matrix(double(1),nrow=length(step)) #NEED TO BE DEFINED
for (j in 1: length(step)){
for (i in 1:pumps){
... | /sa_p.R | no_license | namkyodai/pumpperformance | R | false | false | 1,584 | r | minvalue=300 #NEED TO BE DEFINED
maxvalue=500 #NEED TO BE DEFINED
ymax=100 #
stepchange=10
step=seq(minvalue,maxvalue, by =10)
print(length(step))
etasa<-matrix(double(1),nrow=length(step),ncol=pumps)
p<-matrix(double(1),nrow=length(step)) #NEED TO BE DEFINED
for (j in 1: length(step)){
for (i in 1:pumps){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dna.R
\name{binary2range}
\alias{binary2range}
\title{Find covered ranges in binary data}
\usage{
binary2range(index)
}
\arguments{
\item{index}{logical vector containing TRUE in the regions of interest}
}
\value{
data.frame with rows for eac... | /man/binary2range.Rd | no_license | sherrillmix/dnar | R | false | true | 505 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dna.R
\name{binary2range}
\alias{binary2range}
\title{Find covered ranges in binary data}
\usage{
binary2range(index)
}
\arguments{
\item{index}{logical vector containing TRUE in the regions of interest}
}
\value{
data.frame with rows for eac... |
### @export "data-constants"
sskey='0AmbQbL4Lrd61dHVNemlLLWNaZ1NzX3JhaS1DYURTZVE'
maxtime=110
### @export "data-import"
require(RCurl)
gsqAPI = function(key,query,gid=0){
return( read.csv(
paste( sep="",
'http://spreadsheets.google.com/tq?', 'tqx=out:csv',
'&tq=', curlEscape(query), '&key=', key, '&gid=', cu... | /deprecated/dexyreports/ita2011/fp1.R | no_license | imclab/f1DataJunkie-archive | R | false | false | 6,735 | r | ### @export "data-constants"
sskey='0AmbQbL4Lrd61dHVNemlLLWNaZ1NzX3JhaS1DYURTZVE'
maxtime=110
### @export "data-import"
require(RCurl)
gsqAPI = function(key,query,gid=0){
return( read.csv(
paste( sep="",
'http://spreadsheets.google.com/tq?', 'tqx=out:csv',
'&tq=', curlEscape(query), '&key=', key, '&gid=', cu... |
#reading the file to file name mydata
mydata<- "./household_power_consumption.txt"
#reading/converting the file into readable format
data <- read.table(mydata, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
#reading only the required observations in variable "gapdate"
gapdate <- data[data$Date %in% c("1/2/200... | /plot2.R | no_license | rajeev1005/ExploratoryDataAnalysis | R | false | false | 670 | r | #reading the file to file name mydata
mydata<- "./household_power_consumption.txt"
#reading/converting the file into readable format
data <- read.table(mydata, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
#reading only the required observations in variable "gapdate"
gapdate <- data[data$Date %in% c("1/2/200... |
rm(list = ls())
options(digits=3)
library(foreign)
library(readstata13)
# load dataset
data <- read.dta13("D:/Work/20_Projekte/50_Linear-Dynamic-Panel-Models/50_Drafts/20_Paper/55_metaScienceProject/data/compiled.dta")
epa <- read.dta13("D:/Work/20_Projekte/50_Linear-Dynamic-Panel-Models/50_Drafts/20_Paper/55_met... | /inst/tests/arguments_for_StepByStepFunctionChecksMG.R | no_license | markusfritsch/pdynmc | R | false | false | 2,719 | r |
rm(list = ls())
options(digits=3)
library(foreign)
library(readstata13)
# load dataset
data <- read.dta13("D:/Work/20_Projekte/50_Linear-Dynamic-Panel-Models/50_Drafts/20_Paper/55_metaScienceProject/data/compiled.dta")
epa <- read.dta13("D:/Work/20_Projekte/50_Linear-Dynamic-Panel-Models/50_Drafts/20_Paper/55_met... |
/jsskskksfinal.R | no_license | LisbethLeon/Proyecto-final-programacion | R | false | false | 7,477 | r | ||
weed <- c(5.308, 7.24, 9.638, 12.866, 17.069, 23.192, 31.443,
38.558, 50.156, 62.948, 75.995, 91.972)
ii <- 1:12
wdf <- data.frame(weed, ii)
weedux <- nlxb(weed~b1/(1+b2*exp(-b3*ii)), start=c(b1=200, b2=50, b3=0.3))
print(weedux)
weedcx <- nlxb(weed~b1/(1+b2*exp(-b3*ii)), start=c(b1=200, b2=50, b3=0.3), mask... | /nlsralt/inst/dev-files/summarytest.R | no_license | ArkaB-DS/GSOC21-improveNLS | R | false | false | 674 | r | weed <- c(5.308, 7.24, 9.638, 12.866, 17.069, 23.192, 31.443,
38.558, 50.156, 62.948, 75.995, 91.972)
ii <- 1:12
wdf <- data.frame(weed, ii)
weedux <- nlxb(weed~b1/(1+b2*exp(-b3*ii)), start=c(b1=200, b2=50, b3=0.3))
print(weedux)
weedcx <- nlxb(weed~b1/(1+b2*exp(-b3*ii)), start=c(b1=200, b2=50, b3=0.3), mask... |
library(tidyverse)
library(patchwork)
library(ggrepel)
library(MCMCvis)
# Install with devtools::install_github("hrbrmstr/ggalt")
library(ggalt)
theme_set(theme_bw())
# Figure 1 ----------------------------------------------------------------
data_fig1 <- readRDS("data_fig1.rds")
N <- data_fig1$N
N2 <- data_fig1... | /plot_all.R | no_license | bilgecansen/MAPPPD_transferability | R | false | false | 15,263 | r |
library(tidyverse)
library(patchwork)
library(ggrepel)
library(MCMCvis)
# Install with devtools::install_github("hrbrmstr/ggalt")
library(ggalt)
theme_set(theme_bw())
# Figure 1 ----------------------------------------------------------------
data_fig1 <- readRDS("data_fig1.rds")
N <- data_fig1$N
N2 <- data_fig1... |
#' Collection
#'
#' Clase que almacena colecciones de objetos e implementa metodos genericos para gestionarlas.
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @format A Collection Class of type \code{\link{R6Class}}.
#' @section Warning: Metodo get devuelve referencia a objeto, no copia.
#' @section Metho... | /TimeSeriesAnalysisLibrary/packages/DataUtils/R/class.Collection.R | permissive | jmorenov/TimeSeriesAnalysis | R | false | false | 5,951 | r | #' Collection
#'
#' Clase que almacena colecciones de objetos e implementa metodos genericos para gestionarlas.
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @format A Collection Class of type \code{\link{R6Class}}.
#' @section Warning: Metodo get devuelve referencia a objeto, no copia.
#' @section Metho... |
# Only pull features that explicitly calculate mean() and std() functions
features <- read.table('UCI HAR Dataset/features.txt')
mean_indices <- grep('mean()', features$V2, fixed=TRUE)
std_indices <- grep('std()', features$V2, fixed=TRUE)
feature_list <- sort(c(mean_indices, std_indices))
# Import test data w/ prespec... | /run_analysis.R | no_license | cshowley/getting_and_cleaning_data | R | false | false | 1,622 | r | # Only pull features that explicitly calculate mean() and std() functions
features <- read.table('UCI HAR Dataset/features.txt')
mean_indices <- grep('mean()', features$V2, fixed=TRUE)
std_indices <- grep('std()', features$V2, fixed=TRUE)
feature_list <- sort(c(mean_indices, std_indices))
# Import test data w/ prespec... |
rm(list=ls())
setwd("C:/Jing/ProgramCode/DataScience/C4_Exploratory_Data_Analysis/CourseProject1/")
getwd()
fileName <- "./data/exdata-data-household_power_consumption/household_power_consumption.txt"
# load the original dataset into the memory
elcUsage <- read.table(fileName, sep = ";", header = TRUE, na.strings="... | /CourseProject1/project1.R | no_license | sunshineca/C4_Exploratory_Data_Analysis | R | false | false | 733 | r | rm(list=ls())
setwd("C:/Jing/ProgramCode/DataScience/C4_Exploratory_Data_Analysis/CourseProject1/")
getwd()
fileName <- "./data/exdata-data-household_power_consumption/household_power_consumption.txt"
# load the original dataset into the memory
elcUsage <- read.table(fileName, sep = ";", header = TRUE, na.strings="... |
# Data for graphs Plot using Business Data
# Data
?set.seed
set.seed(100)
sales = floor(rnorm(100, 80, 20))
sales
set.seed(101)
coy = sample(c('coy1','coy2','coy3'), size=100, replace=T)
coy
coy = factor(coy)
?factor
coy
set.seed(102)
adtv = ceiling(rnorm(100,10,5))
adtv
set.seed(103)
adweb = ceiling(rnorm(100,7,2))
... | /GraphData.R | no_license | Prakash4272/FinancialAnalytics | R | false | false | 664 | r | # Data for graphs Plot using Business Data
# Data
?set.seed
set.seed(100)
sales = floor(rnorm(100, 80, 20))
sales
set.seed(101)
coy = sample(c('coy1','coy2','coy3'), size=100, replace=T)
coy
coy = factor(coy)
?factor
coy
set.seed(102)
adtv = ceiling(rnorm(100,10,5))
adtv
set.seed(103)
adweb = ceiling(rnorm(100,7,2))
... |
library(sp)
# perform the coordinate transformation from WGS84 (i.e. not a projection) to RD (projected)"
# this step is necessary to be able to measure objectives in 2D (e.g. meters)
prj_string_RD <- CRS("+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel ... | /CreateSpatialPolygons.R | no_license | jiles001/Lesson5 | R | false | false | 2,979 | r | library(sp)
# perform the coordinate transformation from WGS84 (i.e. not a projection) to RD (projected)"
# this step is necessary to be able to measure objectives in 2D (e.g. meters)
prj_string_RD <- CRS("+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel ... |
\docType{methods}
\name{asServerObjectMethods}
\alias{asServerObjectMethods}
\alias{asServerObject,ANY,JuliaObject-method}
\alias{asServerObject,array,JuliaObject-method}
\alias{asServerObject,list,JuliaObject-method}
\title{Julia methods for asServerObject()}
\usage{
\S4method{asServerObject}{ANY,JuliaObject}(object, ... | /man/asServerObject-ANY-JuliaObject-method.Rd | no_license | johnmchambers/XRJulia | R | false | false | 936 | rd | \docType{methods}
\name{asServerObjectMethods}
\alias{asServerObjectMethods}
\alias{asServerObject,ANY,JuliaObject-method}
\alias{asServerObject,array,JuliaObject-method}
\alias{asServerObject,list,JuliaObject-method}
\title{Julia methods for asServerObject()}
\usage{
\S4method{asServerObject}{ANY,JuliaObject}(object, ... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## Initialize the inverse property to null
inv <- NULL
## Method to set the matrix
set <- function(y) {
x <<- y
inv <<-... | /cachematrix.R | no_license | raziakhalidbutt/ProgrammingAssignment2 | R | false | false | 1,217 | 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()) {
## Initialize the inverse property to null
inv <- NULL
## Method to set the matrix
set <- function(y) {
x <<- y
inv <<-... |
#####################################################################
### Code for plotting differences in density for cod, had and whg ###
#####################################################################
rm(list = ls())
run <- '2017-06-16_M1'
load(file.path('..', '..', '..','results', 'CovariatesAtKnot... | /docs/FSBI_conf/Talk/figures/Fig4_PlotDensityDifferences.R | no_license | pdolder/JointProduction_study | R | false | false | 16,036 | r | #####################################################################
### Code for plotting differences in density for cod, had and whg ###
#####################################################################
rm(list = ls())
run <- '2017-06-16_M1'
load(file.path('..', '..', '..','results', 'CovariatesAtKnot... |
library(QuantumClone)
### Name: NMI_cutree
### Title: NMI
### Aliases: NMI_cutree
### ** Examples
set.seed(123)
#1: Cluster data
FQC<-FlashQC(QuantumClone::Input_Example,conta = c(0,0),Nclus = 2:10)
#2: Compute NMI
NMI_cutree(FQC$cluster,chr = QuantumClone::Input_Example[[1]]$Chr)
| /data/genthat_extracted_code/QuantumClone/examples/NMI_cutree.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 290 | r | library(QuantumClone)
### Name: NMI_cutree
### Title: NMI
### Aliases: NMI_cutree
### ** Examples
set.seed(123)
#1: Cluster data
FQC<-FlashQC(QuantumClone::Input_Example,conta = c(0,0),Nclus = 2:10)
#2: Compute NMI
NMI_cutree(FQC$cluster,chr = QuantumClone::Input_Example[[1]]$Chr)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BinModels.R
\name{BinModels}
\alias{BinModels}
\title{Bin models function}
\usage{
BinModels(predictions, outcome, n_cores, grid, return_cps = TRUE,
gridsearch_parallel = FALSE, is_sample = TRUE, maximise = FALSE)
}
\arguments{
\item{predic... | /man/BinModels.Rd | no_license | warnbergg/predictionpackr | R | false | true | 1,244 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BinModels.R
\name{BinModels}
\alias{BinModels}
\title{Bin models function}
\usage{
BinModels(predictions, outcome, n_cores, grid, return_cps = TRUE,
gridsearch_parallel = FALSE, is_sample = TRUE, maximise = FALSE)
}
\arguments{
\item{predic... |
# Contributor: Muhammad Aswan Syahputra
# Source: Tirto (https://instagram.com/tirtoid)
library(jsonlite)
library(tidyverse)
library(lubridate)
tirto_raw <- fromJSON("data-raw/tirtoid.json")
tirto_tbl <-
tirto_raw %>%
pluck(1) %>%
jsonlite::flatten() %>%
transpose() %>%
enframe(name = "id", value = "post")... | /data-raw/008-dataset_preparation.R | permissive | indo-r/kamisdata | R | false | false | 2,131 | r | # Contributor: Muhammad Aswan Syahputra
# Source: Tirto (https://instagram.com/tirtoid)
library(jsonlite)
library(tidyverse)
library(lubridate)
tirto_raw <- fromJSON("data-raw/tirtoid.json")
tirto_tbl <-
tirto_raw %>%
pluck(1) %>%
jsonlite::flatten() %>%
transpose() %>%
enframe(name = "id", value = "post")... |
library(eba)
### Name: wald.test
### Title: Testing Linear Hypotheses in Elimination-by-Aspects (EBA) Models
### Aliases: wald.test print.wald.test
### Keywords: models
### ** Examples
data(celebrities) # absolute choice frequencies
A <- list(c(1,10), c(2,10), c(3,10),
c(4,11), c(5,11)... | /data/genthat_extracted_code/eba/examples/wald.test.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 809 | r | library(eba)
### Name: wald.test
### Title: Testing Linear Hypotheses in Elimination-by-Aspects (EBA) Models
### Aliases: wald.test print.wald.test
### Keywords: models
### ** Examples
data(celebrities) # absolute choice frequencies
A <- list(c(1,10), c(2,10), c(3,10),
c(4,11), c(5,11)... |
library(pryr) # Displays the size of an integer value
# Note the trailing 'L' character, this forces the number to become an integer object_size(3L)
# Significant figure of a numeric valule has no effect on object size
# Therefore these two values have the same object size object_size(3.14)
object_size(3.14159265359... | /examples/ch11-mem-profiling.R | no_license | timothywong731/r-training | R | false | false | 981 | r | library(pryr) # Displays the size of an integer value
# Note the trailing 'L' character, this forces the number to become an integer object_size(3L)
# Significant figure of a numeric valule has no effect on object size
# Therefore these two values have the same object size object_size(3.14)
object_size(3.14159265359... |
% Part of the dcemri package for R
% Distributed under the BSD license: see dcemri/COPYING
%
% $Id$
\name{as.nifti}
\alias{as.nifti}
\title{as.nifti}
\description{
Internal function that converts multidimensional arrays to NIfTI class
objects.
}
\usage{
as.nifti(from, value = NULL, verbose = FALSE)
}
\arguments{
... | /pkg/dcemriS4withNIfTi/man/as_nifti.Rd | permissive | bjw34032/dcemri | R | false | false | 789 | rd | % Part of the dcemri package for R
% Distributed under the BSD license: see dcemri/COPYING
%
% $Id$
\name{as.nifti}
\alias{as.nifti}
\title{as.nifti}
\description{
Internal function that converts multidimensional arrays to NIfTI class
objects.
}
\usage{
as.nifti(from, value = NULL, verbose = FALSE)
}
\arguments{
... |
library(colorspace)
library(gplots)
library(png)
setwd("/home/hjulienn/Project/missing_value_benchmark/imputation_benchmark/Figure_simulation_GWAS/")
source("../Imputation_perf_functions.R")
source("../Adjusted_rand_index_table.R")
# Plot heatmap with reference clusters
dat2 = read.csv("./Raw_data/data_GWAS_simulation.... | /imputation_benchmark/Figure_simulation_GWAS/plot_gwas_simu.R | no_license | hjulienne/missing_value_benchmark | R | false | false | 2,554 | r | library(colorspace)
library(gplots)
library(png)
setwd("/home/hjulienn/Project/missing_value_benchmark/imputation_benchmark/Figure_simulation_GWAS/")
source("../Imputation_perf_functions.R")
source("../Adjusted_rand_index_table.R")
# Plot heatmap with reference clusters
dat2 = read.csv("./Raw_data/data_GWAS_simulation.... |
/暮光ui.R | no_license | emmachen817/shiny1106 | R | false | false | 6,171 | r | ||
## Plot 1
# load data
library(data.table)
power <- fread("./data/household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
# subset date
power <- power[power$Date %in% c("1/2/2007", "2/2/2007")]
# plot to png file
png(file = "plot1.png", width = 480, height = 480)
hist(power$Global_active_power, c... | /plot1.R | no_license | matthh9797/coursera-JH-eda-project1 | R | false | false | 413 | r | ## Plot 1
# load data
library(data.table)
power <- fread("./data/household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
# subset date
power <- power[power$Date %in% c("1/2/2007", "2/2/2007")]
# plot to png file
png(file = "plot1.png", width = 480, height = 480)
hist(power$Global_active_power, c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{fix_ssl_error}
\alias{fix_ssl_error}
\title{fix ssl error on conda}
\usage{
fix_ssl_error(loc = conda_root())
}
\arguments{
\item{loc}{location of conda}
}
\description{
Solution of this \href{https://github.com/conda/conda/issu... | /man/fix_ssl_error.Rd | permissive | greendani/conda4r | R | false | true | 338 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{fix_ssl_error}
\alias{fix_ssl_error}
\title{fix ssl error on conda}
\usage{
fix_ssl_error(loc = conda_root())
}
\arguments{
\item{loc}{location of conda}
}
\description{
Solution of this \href{https://github.com/conda/conda/issu... |
\name{calcN}
\alias{calcN}
\title{Compute total traffic from a particular time.}
\usage{
calcN(yt, A1)
}
\arguments{
\item{yt}{length-m numeric vectors of observed aggregate
flows at a particular time}
\item{A1}{m x m matrix containing the full-rank portion
of the network's routing matrix, as supplied by
\co... | /man/calcN.Rd | no_license | sguo28/networkTomography | R | false | false | 588 | rd | \name{calcN}
\alias{calcN}
\title{Compute total traffic from a particular time.}
\usage{
calcN(yt, A1)
}
\arguments{
\item{yt}{length-m numeric vectors of observed aggregate
flows at a particular time}
\item{A1}{m x m matrix containing the full-rank portion
of the network's routing matrix, as supplied by
\co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeWideDataList.R
\name{makeWideDataList}
\alias{makeWideDataList}
\title{Convert Long Form Data to List of Wide Form Data}
\usage{
makeWideDataList(dat, allJ, uniqtrt, adjustVars, dataList, t0, ...)
}
\arguments{
\item{dat}{The short form \... | /man/makeWideDataList.Rd | permissive | ck37/survtmle | R | false | true | 1,616 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeWideDataList.R
\name{makeWideDataList}
\alias{makeWideDataList}
\title{Convert Long Form Data to List of Wide Form Data}
\usage{
makeWideDataList(dat, allJ, uniqtrt, adjustVars, dataList, t0, ...)
}
\arguments{
\item{dat}{The short form \... |
set.seed(12345)
par(mar = rep(0.2, 4))
dataMatrix <- matrix(rnorm(400), nrow = 40)
image(1:10, 1:40, t(dataMatrix)[, nrow(dataMatrix):1])
set.seed(678910)
for (i in 1:40) {
# flip a coin
coinFlip <- rbinom(1, size = 1, prob = 0.5)
# if coin is heads add a common pattern to that row
if (coinFlip... | /4. Exploratory-Data-Analysis/week3/heatmap and clustering.R | no_license | antitov/Data-Science-Specialization-Coursera | R | false | false | 869 | r | set.seed(12345)
par(mar = rep(0.2, 4))
dataMatrix <- matrix(rnorm(400), nrow = 40)
image(1:10, 1:40, t(dataMatrix)[, nrow(dataMatrix):1])
set.seed(678910)
for (i in 1:40) {
# flip a coin
coinFlip <- rbinom(1, size = 1, prob = 0.5)
# if coin is heads add a common pattern to that row
if (coinFlip... |
# IGraph R package
# Copyright (C) 2005-2012 Gabor Csardi <csardi.gabor@gmail.com>
# 334 Harvard street, Cambridge, MA 02139 USA
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation;... | /R/structural.properties.R | no_license | clhunsen/rigraph | R | false | false | 108,927 | r | # IGraph R package
# Copyright (C) 2005-2012 Gabor Csardi <csardi.gabor@gmail.com>
# 334 Harvard street, Cambridge, MA 02139 USA
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation;... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/whatWQPsites.R
\name{readWQPsummary}
\alias{readWQPsummary}
\title{Summary of Data Available from Water Quality Portal}
\usage{
readWQPsummary(...)
}
\arguments{
\item{\dots}{see \url{https://www.waterqualitydata.us/webservices_documentation}... | /man/readWQPsummary.Rd | permissive | dblodgett-usgs/dataRetrieval | R | false | true | 3,770 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/whatWQPsites.R
\name{readWQPsummary}
\alias{readWQPsummary}
\title{Summary of Data Available from Water Quality Portal}
\usage{
readWQPsummary(...)
}
\arguments{
\item{\dots}{see \url{https://www.waterqualitydata.us/webservices_documentation}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.