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 |
|---|---|---|---|---|---|---|---|---|---|
# TODO
# add playoff series wins
# imports
library(dplyr)
library(ggplot2)
library(cowplot)
# load data
hof = read.csv('/Users/jledoux/Documents/projects/Saber/baseball-data/lahman/HallOfFame.csv')
lahman_bat = read.csv('/Users/jledoux/Documents/projects/Saber/baseball-data/lahman/batting.csv')
lahman_pitch = read.c... | /hof/create_datasets.R | permissive | jldbc/Saber | R | false | false | 17,824 | r | # TODO
# add playoff series wins
# imports
library(dplyr)
library(ggplot2)
library(cowplot)
# load data
hof = read.csv('/Users/jledoux/Documents/projects/Saber/baseball-data/lahman/HallOfFame.csv')
lahman_bat = read.csv('/Users/jledoux/Documents/projects/Saber/baseball-data/lahman/batting.csv')
lahman_pitch = read.c... |
# prerequisites
library(tidyverse)
library(modelr)
library(hexbin)
options(na.action = na.warn)
##############
# the set-up #
##############
# why are low quality diamonds more expensive?
p1 <- ggplot(diamonds, aes(cut, price)) + geom_boxplot() + scale_y_continuous(labels = scales::dollar) + ggtitle("Price vs Cut")
p2... | /Week 7/07b-model-building.R | no_license | hagemamt/BANA7025 | R | false | false | 4,497 | r | # prerequisites
library(tidyverse)
library(modelr)
library(hexbin)
options(na.action = na.warn)
##############
# the set-up #
##############
# why are low quality diamonds more expensive?
p1 <- ggplot(diamonds, aes(cut, price)) + geom_boxplot() + scale_y_continuous(labels = scales::dollar) + ggtitle("Price vs Cut")
p2... |
# Author: Mannat Sandhu
# July 14th, 2019
# BRFSS Data Analysis
# Part (1) - Prevalence and Demographics of smokers and e-cigarette users.
source("utils.R")
library(Hmisc)
library(ggplot2)
library(scales)
library(grid)
brfss_filtered = GetCleanData()
# CASE 1 - Patterns across age groups.
# Copy data for processing... | /data-visualizations.R | no_license | masandhu13/brfss-smoking-ecig-analysis | R | false | false | 27,415 | r | # Author: Mannat Sandhu
# July 14th, 2019
# BRFSS Data Analysis
# Part (1) - Prevalence and Demographics of smokers and e-cigarette users.
source("utils.R")
library(Hmisc)
library(ggplot2)
library(scales)
library(grid)
brfss_filtered = GetCleanData()
# CASE 1 - Patterns across age groups.
# Copy data for processing... |
pacman::p_load('dplyr', 'tidyr', 'gapminder',
'ggplot2', 'ggalt',
'forcats', 'R.utils', 'png',
'grid', 'ggpubr', 'scales',
'bbplot2')
multiple_line_df <- read.csv("kerala_tpr.csv")
multiple_line_df$Date <- as.Date(multiple_line_df$Date, format = "%d/%m/%y")... | /line_chart_tpr_Kerala.R | no_license | shadabnazmi/Kerala-2021 | R | false | false | 1,057 | r | pacman::p_load('dplyr', 'tidyr', 'gapminder',
'ggplot2', 'ggalt',
'forcats', 'R.utils', 'png',
'grid', 'ggpubr', 'scales',
'bbplot2')
multiple_line_df <- read.csv("kerala_tpr.csv")
multiple_line_df$Date <- as.Date(multiple_line_df$Date, format = "%d/%m/%y")... |
input.check <- function(nresp, wgt, sigma, var.sigma, xcoord, ycoord,
stratum.ind, stratum, stratum.levels, nstrata, cluster.ind, cluster,
cluster.levels, ncluster, wgt1, xcoord1, ycoord1, popsize, pcfactor.ind,
pcfsize, N.cluster, stage1size, support, swgt.ind, swgt, swgt1, vartype,
conf, cdfval=NULL, ... | /R/input.check.R | no_license | ledugan/spsurvey | R | false | false | 24,754 | r | input.check <- function(nresp, wgt, sigma, var.sigma, xcoord, ycoord,
stratum.ind, stratum, stratum.levels, nstrata, cluster.ind, cluster,
cluster.levels, ncluster, wgt1, xcoord1, ycoord1, popsize, pcfactor.ind,
pcfsize, N.cluster, stage1size, support, swgt.ind, swgt, swgt1, vartype,
conf, cdfval=NULL, ... |
library(dplyr)
library(tidyr)
library(magrittr)
library(data.table)
setwd('/Users/Potalora/Desktop')
NC2016 <- fread('/Users/Potalora/Downloads/ncvoter_Statewide.txt')
Early2016 <- read.csv('/Users/Potalora/Downloads/absentee11xx08xx2016-10.csv')
Early2016less <- subset(Early2016, select = -c(14:21, 25:26, 34))
NC2016... | /Voter Files/NC/NCEarlyJoin.R | no_license | mcdisc/UF-Election-Sciences | R | false | false | 616 | r | library(dplyr)
library(tidyr)
library(magrittr)
library(data.table)
setwd('/Users/Potalora/Desktop')
NC2016 <- fread('/Users/Potalora/Downloads/ncvoter_Statewide.txt')
Early2016 <- read.csv('/Users/Potalora/Downloads/absentee11xx08xx2016-10.csv')
Early2016less <- subset(Early2016, select = -c(14:21, 25:26, 34))
NC2016... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ztable2.R
\name{getNewSpanRow}
\alias{getNewSpanRow}
\title{Calculating new spanRow with spanRow plus space made by row group}
\usage{
getNewSpanRow(z)
}
\arguments{
\item{z}{An object of ztable}
}
\description{
Calculating new spanRo... | /man/getNewSpanRow.Rd | no_license | sjewo/ztable | R | false | false | 367 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ztable2.R
\name{getNewSpanRow}
\alias{getNewSpanRow}
\title{Calculating new spanRow with spanRow plus space made by row group}
\usage{
getNewSpanRow(z)
}
\arguments{
\item{z}{An object of ztable}
}
\description{
Calculating new spanRo... |
## Function for Survival Analyses in DataSHIELD
## Author: Paul Scherer
## Tom Bishop
## Date: 08/08/2017
# ###############################################################################
# ########################### FUNCTIONS ########################################
# ###########################################... | /fish_exemplar/survival_analysis_dsFunctions_new.R | no_license | interconnectDiabetes/exemplar_analyses | R | false | false | 25,068 | r | ## Function for Survival Analyses in DataSHIELD
## Author: Paul Scherer
## Tom Bishop
## Date: 08/08/2017
# ###############################################################################
# ########################### FUNCTIONS ########################################
# ###########################################... |
paris <- ts(c(7.6, 7.1, 8.3, 11.5, 13.7, 17.2, 18.5, 19.7, 15.1,
8.9, 8.5, 8.5, 7.7, 6.9, 6.1, 10., 12.),s=1,f=12)
| /data/paris.R | no_license | byuidatascience/fma | R | false | false | 118 | r | paris <- ts(c(7.6, 7.1, 8.3, 11.5, 13.7, 17.2, 18.5, 19.7, 15.1,
8.9, 8.5, 8.5, 7.7, 6.9, 6.1, 10., 12.),s=1,f=12)
|
#### SHINY BIVARIATE MAPPING APP ###############################################
### Load libraries #############################################################
require(shiny)
require(shinydashboard)
require(ape)
require(spdep)
require(leaflet)
require(tidyverse)
### Colours #######################################... | /bivariate shiny app/server.R | no_license | rbbinder/Sus | R | false | false | 10,933 | r | #### SHINY BIVARIATE MAPPING APP ###############################################
### Load libraries #############################################################
require(shiny)
require(shinydashboard)
require(ape)
require(spdep)
require(leaflet)
require(tidyverse)
### Colours #######################################... |
### Run this script and call k_means_cluster(foldername) and pass it the name of the folder containing all files datasets)
### Please remove all "*" characters from file using a curl command line before using this script.
################################################################################################... | /ass3_all_parts.R | no_license | GeneNcho/Ediburgh_weather_and_happiness | R | false | false | 14,870 | r |
### Run this script and call k_means_cluster(foldername) and pass it the name of the folder containing all files datasets)
### Please remove all "*" characters from file using a curl command line before using this script.
################################################################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ZIHMM.R
\name{ZIHMM}
\alias{ZIHMM}
\title{Zero Inflated Fixed Effects Hidden Markov Model (ZIHMM)}
\usage{
ZIHMM(ChIP, Control, offset, control)
}
\arguments{
\item{ChIP}{M*N matrix of ChIP read counts, where M is the number of windows in the... | /man/ZIHMM.Rd | no_license | plbaldoni/ZIMHMM | R | false | true | 1,915 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ZIHMM.R
\name{ZIHMM}
\alias{ZIHMM}
\title{Zero Inflated Fixed Effects Hidden Markov Model (ZIHMM)}
\usage{
ZIHMM(ChIP, Control, offset, control)
}
\arguments{
\item{ChIP}{M*N matrix of ChIP read counts, where M is the number of windows in the... |
\name{ex10.09}
\alias{ex10.09}
\non_function{}
\title{data from exercise 10.9}
\description{
The \code{ex10.09} data frame has 6 rows and 4 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{Wheat}{
a numeric vector
}
\item{Barley}{
a numeric vector
}
\item{Maize}{
a numeric vector
}
\... | /man/ex10.09.Rd | no_license | cran/Devore5 | R | false | false | 532 | rd | \name{ex10.09}
\alias{ex10.09}
\non_function{}
\title{data from exercise 10.9}
\description{
The \code{ex10.09} data frame has 6 rows and 4 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{Wheat}{
a numeric vector
}
\item{Barley}{
a numeric vector
}
\item{Maize}{
a numeric vector
}
\... |
#' Compute forecast error
#'
#' Compute forecast error metrics on the validation datasets or a new test dataset.
#'
#' @param data_results An object of class 'training_results' or 'forecast_results' from running (a)
#' \code{\link[=predict.forecast_model]{predict}} on a trained model or (b) \code{combine_forecasts()}.
... | /R/return_error.R | no_license | ssh352/forecastML | R | false | false | 40,071 | r | #' Compute forecast error
#'
#' Compute forecast error metrics on the validation datasets or a new test dataset.
#'
#' @param data_results An object of class 'training_results' or 'forecast_results' from running (a)
#' \code{\link[=predict.forecast_model]{predict}} on a trained model or (b) \code{combine_forecasts()}.
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.guardduty_operations.R
\name{get_filter}
\alias{get_filter}
\title{Returns the details of the filter specified by the filter name}
\usage{
get_filter(DetectorId, FilterName)
}
\arguments{
\item{DetectorId}{[required] The detector ID that... | /service/paws.guardduty/man/get_filter.Rd | permissive | CR-Mercado/paws | R | false | true | 694 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.guardduty_operations.R
\name{get_filter}
\alias{get_filter}
\title{Returns the details of the filter specified by the filter name}
\usage{
get_filter(DetectorId, FilterName)
}
\arguments{
\item{DetectorId}{[required] The detector ID that... |
library(testthat)
library(nat.nblast)
test_check("nat.nblast")
| /tests/test-all.R | no_license | cran/nat.nblast | R | false | false | 68 | r | library(testthat)
library(nat.nblast)
test_check("nat.nblast")
|
CreatePlot3 <- function(createpng)
{
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
## Download Zip file
download.file(fileURL, "data/Power.zip")
## Uncompress the downloaded file
unzip("data/Power.zip",exdir="data")
## Read only one row to get he... | /plot3.R | no_license | KannanCPrakash/ExData_Plotting1 | R | false | false | 1,864 | r | CreatePlot3 <- function(createpng)
{
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
## Download Zip file
download.file(fileURL, "data/Power.zip")
## Uncompress the downloaded file
unzip("data/Power.zip",exdir="data")
## Read only one row to get he... |
setwd("~/Documents/Postdoc/SPCC/SpatialConsumerChoice")
library(ggplot2)
library(plyr)
library(reshape2)
library(abind)
zip_value <- readRDS("zip_value.rds")
consumer_const <- read.csv('ConsumerConst.csv')
row.names(consumer_const) <- consumer_const[,1]
consumer_const[,1] <- NULL
# Whenever reliability of stations i... | /refueling_cost_calc_may17.R | no_license | kramea/SpatialConsumerChoice | R | false | false | 3,105 | r | setwd("~/Documents/Postdoc/SPCC/SpatialConsumerChoice")
library(ggplot2)
library(plyr)
library(reshape2)
library(abind)
zip_value <- readRDS("zip_value.rds")
consumer_const <- read.csv('ConsumerConst.csv')
row.names(consumer_const) <- consumer_const[,1]
consumer_const[,1] <- NULL
# Whenever reliability of stations i... |
## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
echo=TRUE, results='hold', warning=F, cache=F,
#dev = 'pdf',
message=F,
fig.width=5, fig.height=5,
tidy.opts=list(width.cutoff=75), tidy=FALSE
)
old <- options(... | /inst/doc/nsgpr.R | no_license | cran/GPFDA | R | false | false | 6,661 | r | ## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
echo=TRUE, results='hold', warning=F, cache=F,
#dev = 'pdf',
message=F,
fig.width=5, fig.height=5,
tidy.opts=list(width.cutoff=75), tidy=FALSE
)
old <- options(... |
#' Make plots from Rebuilder program
#'
#' Make a set of plots based on output from Andre Punt's Rebuilder program.
#'
#'
#' @param dirn Directory (or vector of directories) where rebuilder output
#' files are stored.
#' @param fileN Vector of filenames containing rebuilder output.
#' Default=c("res.csv").
#' @param Ti... | /R/RebuildPlot.R | no_license | allanhicks/r4ss | R | false | false | 24,942 | r | #' Make plots from Rebuilder program
#'
#' Make a set of plots based on output from Andre Punt's Rebuilder program.
#'
#'
#' @param dirn Directory (or vector of directories) where rebuilder output
#' files are stored.
#' @param fileN Vector of filenames containing rebuilder output.
#' Default=c("res.csv").
#' @param Ti... |
##' also called from ../data/qDiptab.R :
if(getRversion() < "2.13.0") {
rdRDS <- function(..., package = "diptest")
.readRDS(system.file(..., package=package))
} else
rdRDS <- function(..., package = "diptest")
readRDS(system.file(..., package=package, mustWork=TRUE))
dip.test <- function(x, simulate.p.v... | /R/dipTest.R | no_license | RGLab/diptest | R | false | false | 1,787 | r | ##' also called from ../data/qDiptab.R :
if(getRversion() < "2.13.0") {
rdRDS <- function(..., package = "diptest")
.readRDS(system.file(..., package=package))
} else
rdRDS <- function(..., package = "diptest")
readRDS(system.file(..., package=package, mustWork=TRUE))
dip.test <- function(x, simulate.p.v... |
library(rif)
### Name: lexical_sentences
### Title: Lexical services - break into sentences
### Aliases: lexical_sentences
### ** Examples
## Not run:
##D text <- "Lorem ipsum inceptos dolor nisi torquent porttitor donec, blandit
##D scelerisque mattis cras quis mi, aliquam sagittis. Convallis placerat
##D commodo... | /data/genthat_extracted_code/rif/examples/lexical_sentences.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 775 | r | library(rif)
### Name: lexical_sentences
### Title: Lexical services - break into sentences
### Aliases: lexical_sentences
### ** Examples
## Not run:
##D text <- "Lorem ipsum inceptos dolor nisi torquent porttitor donec, blandit
##D scelerisque mattis cras quis mi, aliquam sagittis. Convallis placerat
##D commodo... |
getLearnerTable = function() {
ids = as.character(methods("makeRLearner"))
ids = ids[!stri_detect_fixed(ids, "__mlrmocklearners__")]
ids = stri_replace_first_fixed(ids, "makeRLearner.", "")
slots = c("cl", "name", "short.name", "package", "properties", "note")
ee = asNamespace("mlr")
tab = rbindlist(lapply(... | /R/listLearners.R | no_license | Alven8816/mlr | R | false | false | 6,745 | r | getLearnerTable = function() {
ids = as.character(methods("makeRLearner"))
ids = ids[!stri_detect_fixed(ids, "__mlrmocklearners__")]
ids = stri_replace_first_fixed(ids, "makeRLearner.", "")
slots = c("cl", "name", "short.name", "package", "properties", "note")
ee = asNamespace("mlr")
tab = rbindlist(lapply(... |
#!/usr/bin/env Rscript
###
# LOLA on input bed
###
libfs <- c("LOLA", "data.table", "GenomicRanges", "argparse")
invisible(sapply(libfs, function(f)suppressPackageStartupMessages(require(f, character.only = T))))
parser <- ArgumentParser()
parser$add_argument("--bedin", type = "character", required = TRUE,
help = ... | /LOLA.R | no_license | ericaenjoy3/GRFLoop | R | false | false | 1,827 | r | #!/usr/bin/env Rscript
###
# LOLA on input bed
###
libfs <- c("LOLA", "data.table", "GenomicRanges", "argparse")
invisible(sapply(libfs, function(f)suppressPackageStartupMessages(require(f, character.only = T))))
parser <- ArgumentParser()
parser$add_argument("--bedin", type = "character", required = TRUE,
help = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_functions.R
\name{create_boxes_ggplot}
\alias{create_boxes_ggplot}
\title{Generates raster image with bounding boxes.}
\usage{
create_boxes_ggplot(
image_path,
boxes,
labels,
correct_hw,
target_size,
grayscale
)
}
\arguments{... | /man/create_boxes_ggplot.Rd | permissive | GarettHeineck/platypus | R | false | true | 832 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_functions.R
\name{create_boxes_ggplot}
\alias{create_boxes_ggplot}
\title{Generates raster image with bounding boxes.}
\usage{
create_boxes_ggplot(
image_path,
boxes,
labels,
correct_hw,
target_size,
grayscale
)
}
\arguments{... |
\name{ggs_chain}
\alias{ggs_chain}
\title{Manage each chain}
\usage{
ggs_chain(s)
}
\arguments{
\item{s}{a single chain to convert into a data frame}
}
\value{
D data frame with the chain arranged
}
\description{
Manage each chain
}
| /man/ggs_chain.Rd | no_license | jrnold/ggmcmc | R | false | false | 242 | rd | \name{ggs_chain}
\alias{ggs_chain}
\title{Manage each chain}
\usage{
ggs_chain(s)
}
\arguments{
\item{s}{a single chain to convert into a data frame}
}
\value{
D data frame with the chain arranged
}
\description{
Manage each chain
}
|
setwd("riceData")
df <- read.csv("riceData.csv")
for(i in c(1:3)){
df[[i]] <- as.factor(df[[i]])
}
for(i in c(4:18)){
df[[i]] <- as.numeric(df[[i]])
}
names(df)
str(df)
n <- names(df)
f = as.formula(paste(n[18],paste(n[-18],collapse = " + "),sep = " ~ "))
set.seed(2)
indx <- sample(round(nrow(df)*0.7))
dfTr... | /script_glm.R | no_license | parthsarangi/riceData | R | false | false | 3,089 | r | setwd("riceData")
df <- read.csv("riceData.csv")
for(i in c(1:3)){
df[[i]] <- as.factor(df[[i]])
}
for(i in c(4:18)){
df[[i]] <- as.numeric(df[[i]])
}
names(df)
str(df)
n <- names(df)
f = as.formula(paste(n[18],paste(n[-18],collapse = " + "),sep = " ~ "))
set.seed(2)
indx <- sample(round(nrow(df)*0.7))
dfTr... |
doHapAssocTest <- function(
clusterAssignmentH1,
clusterAssignmentH2,
clusterSizes,
phenotypes,
MIN.CLUSTER.SIZE) {
clusterSizes10 <- clusterSizes[clusterSizes>=MIN.CLUSTER.SIZE]
... | /anchap/R/doHapAssocTest.R | no_license | DominikGlodzik/AncHap | R | false | false | 1,959 | r | doHapAssocTest <- function(
clusterAssignmentH1,
clusterAssignmentH2,
clusterSizes,
phenotypes,
MIN.CLUSTER.SIZE) {
clusterSizes10 <- clusterSizes[clusterSizes>=MIN.CLUSTER.SIZE]
... |
#' this function is a wrapper for EBImage function readImage
#' read ST image and scale to 1000 x 1000
#'
#' @param path filepath to ST slide image
read_image <- function(path, hw = 1000){
# check input
if(!is.character(path)){
warning("'path' must be a character")
return(NULL)
}
if(!file.exists(path)){
war... | /R/read_image.R | permissive | tmirus/TTT | R | false | false | 640 | r | #' this function is a wrapper for EBImage function readImage
#' read ST image and scale to 1000 x 1000
#'
#' @param path filepath to ST slide image
read_image <- function(path, hw = 1000){
# check input
if(!is.character(path)){
warning("'path' must be a character")
return(NULL)
}
if(!file.exists(path)){
war... |
setClass("rclaytonCopula",
contains = "copula",
representation = representation(
clayton = "copula"))
rclaytonCopula <- function (param) {
new("rclaytonCopula",
clayton = claytonCopula(1),
dimension = as.integer(2),
parameters = param,
param.names = "p... | /R/rclaytonCopula.R | no_license | DianaCarrera/VinecopulaedasExtra | R | false | false | 2,020 | r | setClass("rclaytonCopula",
contains = "copula",
representation = representation(
clayton = "copula"))
rclaytonCopula <- function (param) {
new("rclaytonCopula",
clayton = claytonCopula(1),
dimension = as.integer(2),
parameters = param,
param.names = "p... |
library("XenofilteR")
args <- commandArgs()
help <- function(){
cat("filterXenograft.R :
- Filter out host genome reads from graft reads\n")
cat("Usage: \n")
cat("--graftBam : bam file of graft organism [ required ]\n")
cat("--hostBam : bam file of host organism [ required... | /scripts/xenofilter_cmdline.R | no_license | roskamsh/Co-culture-Bulk-RNA-seq-pipeline | R | false | false | 934 | r | library("XenofilteR")
args <- commandArgs()
help <- function(){
cat("filterXenograft.R :
- Filter out host genome reads from graft reads\n")
cat("Usage: \n")
cat("--graftBam : bam file of graft organism [ required ]\n")
cat("--hostBam : bam file of host organism [ required... |
################
# Nelly Amenyogbe
# Function: get features selected from a mixomics sPLS-DA object
#################
# This function is written to provide a data frame listing the features selected by sPLS-DA (implemented in mixOmics V6) for a given component of the model.
# Input ####
# mixomics.obj = splsda obje... | /HEU_manuscript_analysis/scripts/functions/function_splsda_get_features.R | no_license | nelly-amenyogbe/Global_HEU_immune_microbiome | R | false | false | 1,198 | r | ################
# Nelly Amenyogbe
# Function: get features selected from a mixomics sPLS-DA object
#################
# This function is written to provide a data frame listing the features selected by sPLS-DA (implemented in mixOmics V6) for a given component of the model.
# Input ####
# mixomics.obj = splsda obje... |
#Distribution patterns and habitat suitability of the non-native brittle star Ophiothela mirabilis Verrill, 1867 along the Western Atlantic
#Patrick Derviche, Angeline Saucsen, Daphne Spier, Paulo Lana
#### 5. Figures
# 5.1. Open files
# raster
model.ensemble <-stack("ophiothelamirabilis")
# shapefiles Wess... | /ENM/5 ENM - figures.R | no_license | pderviche/Ophiothela_mirabilis_Distribution_patterns | R | false | false | 6,835 | r | #Distribution patterns and habitat suitability of the non-native brittle star Ophiothela mirabilis Verrill, 1867 along the Western Atlantic
#Patrick Derviche, Angeline Saucsen, Daphne Spier, Paulo Lana
#### 5. Figures
# 5.1. Open files
# raster
model.ensemble <-stack("ophiothelamirabilis")
# shapefiles Wess... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beta_complete_unstd_ols_mc.mvn.R
\name{beta_ols_mc.mvn_simulation}
\alias{beta_ols_mc.mvn_simulation}
\title{Monte Carlo Method Assuming Multivariate Normal Distribution for Indirect Effect in a Simple Mediation Model
for Data with Beta X
(Si... | /man/beta_ols_mc.mvn_simulation.Rd | permissive | jeksterslabds/jeksterslabRmedsimple | R | false | true | 7,509 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/beta_complete_unstd_ols_mc.mvn.R
\name{beta_ols_mc.mvn_simulation}
\alias{beta_ols_mc.mvn_simulation}
\title{Monte Carlo Method Assuming Multivariate Normal Distribution for Indirect Effect in a Simple Mediation Model
for Data with Beta X
(Si... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/availableCores.R
\name{supportsMulticore}
\alias{supportsMulticore}
\title{Check whether multicore processing is supported or not}
\usage{
supportsMulticore()
}
\value{
TRUE if multicore processing is supported, otherwise FALSE.
}
\descriptio... | /man/supportsMulticore.Rd | no_license | jcheng5/future | R | false | true | 549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/availableCores.R
\name{supportsMulticore}
\alias{supportsMulticore}
\title{Check whether multicore processing is supported or not}
\usage{
supportsMulticore()
}
\value{
TRUE if multicore processing is supported, otherwise FALSE.
}
\descriptio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cbar.R
\name{cm.div}
\alias{cm.div}
\title{Return the standard fsbrain diverging colormap.}
\usage{
cm.div(report = FALSE)
}
\arguments{
\item{report}{logical, whether to print a message with a name of the chosen colormap, in format \code{pac... | /man/cm.div.Rd | permissive | dfsp-spirit/fsbrain | R | false | true | 513 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cbar.R
\name{cm.div}
\alias{cm.div}
\title{Return the standard fsbrain diverging colormap.}
\usage{
cm.div(report = FALSE)
}
\arguments{
\item{report}{logical, whether to print a message with a name of the chosen colormap, in format \code{pac... |
library(ggthemes)
### Name: tableau_color_pal
### Title: Tableau Color Palettes (discrete)
### Aliases: tableau_color_pal
### ** Examples
library("scales")
palettes <- ggthemes_data[["tableau"]][["color-palettes"]][["regular"]]
for (palname in names(palettes)) {
pal <- tableau_color_pal(palname)
max_n <- attr(... | /data/genthat_extracted_code/ggthemes/examples/tableau_color_pal.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 386 | r | library(ggthemes)
### Name: tableau_color_pal
### Title: Tableau Color Palettes (discrete)
### Aliases: tableau_color_pal
### ** Examples
library("scales")
palettes <- ggthemes_data[["tableau"]][["color-palettes"]][["regular"]]
for (palname in names(palettes)) {
pal <- tableau_color_pal(palname)
max_n <- attr(... |
#'Sanity Check Data
#'@description SanityCheckData is used for data processing, and performs a basic sanity
#'check of the uploaded content, ensuring that the data is suitable for further analysis.
#'The function will return a message if the data has successfully passed the check
#'and is deemed suitable for further ... | /R/general_proc_utils.R | permissive | xia-lab/MetaboAnalystR | R | false | false | 27,225 | r | #'Sanity Check Data
#'@description SanityCheckData is used for data processing, and performs a basic sanity
#'check of the uploaded content, ensuring that the data is suitable for further analysis.
#'The function will return a message if the data has successfully passed the check
#'and is deemed suitable for further ... |
# search_import_unibi.r
# algorithm from http://stackoverflow.com/questions/1690347/shortest-path-with-a-fixed-number-of-edges
# populate the progressive, cumulative best distance matrix
k_node_search<-function(D, k) {
# D[i,j] gives unscaled distance going from node i to node j
# k is the number of nodes i... | /Exhaustive-search/fixed-length/search_import_unibi.r | no_license | rmuraglia/Schmidler | R | false | false | 3,450 | r | # search_import_unibi.r
# algorithm from http://stackoverflow.com/questions/1690347/shortest-path-with-a-fixed-number-of-edges
# populate the progressive, cumulative best distance matrix
k_node_search<-function(D, k) {
# D[i,j] gives unscaled distance going from node i to node j
# k is the number of nodes i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_data_sufficiency.R
\name{add_data_sufficiency}
\alias{add_data_sufficiency}
\title{Determine data sufficiency for every student}
\usage{
add_data_sufficiency(dframe, midfield_term = term)
}
\arguments{
\item{dframe}{Data frame of student-... | /man/add_data_sufficiency.Rd | permissive | MIDFIELDR/midfieldr | R | false | true | 2,873 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_data_sufficiency.R
\name{add_data_sufficiency}
\alias{add_data_sufficiency}
\title{Determine data sufficiency for every student}
\usage{
add_data_sufficiency(dframe, midfield_term = term)
}
\arguments{
\item{dframe}{Data frame of student-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_training.R
\name{training_model}
\alias{training_model}
\title{Training model}
\usage{
training_model(
model_name = "mymodel",
dat,
dat_test = NULL,
target = NULL,
occur_time = NULL,
obs_id = NULL,
x_list = NU... | /man/training_model.Rd | no_license | cran/creditmodel | R | false | true | 6,543 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_training.R
\name{training_model}
\alias{training_model}
\title{Training model}
\usage{
training_model(
model_name = "mymodel",
dat,
dat_test = NULL,
target = NULL,
occur_time = NULL,
obs_id = NULL,
x_list = NU... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{selectByDate}
\alias{selectByDate}
\title{Subset a data frame based on date}
\usage{
selectByDate(mydata, start = "1/1/2008", end = "31/12/2008", year = 2008,
month = 1, day = "weekday", hour = 1)
}
\arguments{
\item{mydat... | /man/selectByDate.Rd | no_license | willdrysdale/ggopenair | R | false | true | 2,933 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{selectByDate}
\alias{selectByDate}
\title{Subset a data frame based on date}
\usage{
selectByDate(mydata, start = "1/1/2008", end = "31/12/2008", year = 2008,
month = 1, day = "weekday", hour = 1)
}
\arguments{
\item{mydat... |
## Homework 1, problem 1
## a)
patients <- read.csv2('https://firebasestorage.googleapis.com/v0/b/uni-sofia.appspot.com/o/data%2FCOVID19_2020_open_line_list%20-%20outside_Hubei_subset.csv?alt=media&token=919a181b-6417-45fd-9314-91497bb4b0fc', stringsAsFactors = FALSE)
## b)
## NOTE: use <- consistently
number_patien... | /homework_2/H1_tb_econometrics1.R | permissive | TsTsenovaa/econometrics2020-solutions | R | false | false | 1,508 | r | ## Homework 1, problem 1
## a)
patients <- read.csv2('https://firebasestorage.googleapis.com/v0/b/uni-sofia.appspot.com/o/data%2FCOVID19_2020_open_line_list%20-%20outside_Hubei_subset.csv?alt=media&token=919a181b-6417-45fd-9314-91497bb4b0fc', stringsAsFactors = FALSE)
## b)
## NOTE: use <- consistently
number_patien... |
Counts = c(
2779,
2712,
2506,
2147,
2651,
2484,
2548
)
print(chisq.test(Counts))
| /mike-searches/mikes-searches.R | no_license | ellbur/little-stuff | R | false | false | 90 | r |
Counts = c(
2779,
2712,
2506,
2147,
2651,
2484,
2548
)
print(chisq.test(Counts))
|
############################################################################## correlation
############################################################################## 2007
cor()
#stats, correlation by year
eur2007 = eur[year(eur$Date) == 2007,] #for year 2007
jpy2007 = jpy[year(jpy$Date) == 2007,]
chf2007 = chf[y... | /R Code/5_Correlation.R | no_license | taipeifx/Capstone-Project-2018 | R | false | false | 27,266 | r |
############################################################################## correlation
############################################################################## 2007
cor()
#stats, correlation by year
eur2007 = eur[year(eur$Date) == 2007,] #for year 2007
jpy2007 = jpy[year(jpy$Date) == 2007,]
chf2007 = chf[y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprecated_defunct.R
\name{rcrossref-deprecated}
\alias{rcrossref-deprecated}
\title{Deprecated functions in rcrossref}
\description{
None at the moment
}
| /man/rcrossref-deprecated.Rd | permissive | ropensci/rcrossref | R | false | true | 233 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprecated_defunct.R
\name{rcrossref-deprecated}
\alias{rcrossref-deprecated}
\title{Deprecated functions in rcrossref}
\description{
None at the moment
}
|
## This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets.
## In particular, we will be using the “Individual household electric power consumption Data Set” which I have made available on the course web site:
## Dataset: Electric power consumption [... | /plot4.R | no_license | JosephMartin610/coursera_data_science_exploratory_data_analysis | R | false | false | 3,889 | r | ## This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets.
## In particular, we will be using the “Individual household electric power consumption Data Set” which I have made available on the course web site:
## Dataset: Electric power consumption [... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eBar.R
\name{eBar}
\alias{eBar}
\title{Create an HTML bar charts widget using the ECharts(version:3.2.2) library}
\usage{
eBar(dat, xvar = NULL, yvar = NULL, series = NULL, size = NULL,
horiz = FALSE, stackGroup = NULL, theme = "default", t... | /man/eBar.Rd | permissive | Sai628/recharts | R | false | true | 6,946 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eBar.R
\name{eBar}
\alias{eBar}
\title{Create an HTML bar charts widget using the ECharts(version:3.2.2) library}
\usage{
eBar(dat, xvar = NULL, yvar = NULL, series = NULL, size = NULL,
horiz = FALSE, stackGroup = NULL, theme = "default", t... |
\name{image.bas}
\alias{image.bas}
\alias{image}
\title{Images of models used in Bayesian model averaging }
\description{
Creates an image of the models selected using \code{\link{bas}}.
}
\usage{\method{image}{bas}(x, top.models=20, intensity=TRUE, prob=TRUE, log=TRUE,
rotate=TRUE, color="rainbow", subset=NULL, offs... | /BAS/man/image.bma.Rd | no_license | radfordneal/R-package-mods | R | false | false | 2,754 | rd | \name{image.bas}
\alias{image.bas}
\alias{image}
\title{Images of models used in Bayesian model averaging }
\description{
Creates an image of the models selected using \code{\link{bas}}.
}
\usage{\method{image}{bas}(x, top.models=20, intensity=TRUE, prob=TRUE, log=TRUE,
rotate=TRUE, color="rainbow", subset=NULL, offs... |
graphics.off()
rm(list=ls(all=TRUE))
fileNameRoot="replicate_Noh_fatality" # for constructing output filenames
source("openGraphSaveGraph.R")
source("plotPost.R")
require(rjags)
calculate_gamma_parameters <- function(mu0, sd0){
tau = 1/sd0^2
r <- mu0*tau
s <- mu0^2*tau
#newList <- list("float" = c(a0,b... | /code/replicate_Noh_fatality.R | no_license | dynaryu/fatality | R | false | false | 8,158 | r | graphics.off()
rm(list=ls(all=TRUE))
fileNameRoot="replicate_Noh_fatality" # for constructing output filenames
source("openGraphSaveGraph.R")
source("plotPost.R")
require(rjags)
calculate_gamma_parameters <- function(mu0, sd0){
tau = 1/sd0^2
r <- mu0*tau
s <- mu0^2*tau
#newList <- list("float" = c(a0,b... |
#Section 1
#Read the CSV file.
#Store it in a Data Frame.
postcodeDataframe <- read.csv("/Users/Shylesh Patil/Downloads/NIPostcodes.csv", header = FALSE)
#a)Show the total number of rows, the structure of the data frame,
#and first 10 rows of the data frame containing all of the NIPostcode data.
#1) Show Row
... | /CA2Section1.R | no_license | Shyleshpatil/CA2 | R | false | false | 2,581 | r | #Section 1
#Read the CSV file.
#Store it in a Data Frame.
postcodeDataframe <- read.csv("/Users/Shylesh Patil/Downloads/NIPostcodes.csv", header = FALSE)
#a)Show the total number of rows, the structure of the data frame,
#and first 10 rows of the data frame containing all of the NIPostcode data.
#1) Show Row
... |
#import SALARY.xlsx as SALARY
#Filter by year = 2014
SALARY_14 <- SALARY[SALARY$Year == 2014, ]
#According to professor's instructions, we are required to find correlation between sum of basic, other, and overtime (ie, totalpaybenefits) with basic pay. It has been instructed to ignore Attribute 'Benefits', which is N... | /Project#2/R scripts/topic3salary.R | no_license | akash123mandal/daassignments | R | false | false | 649 | r | #import SALARY.xlsx as SALARY
#Filter by year = 2014
SALARY_14 <- SALARY[SALARY$Year == 2014, ]
#According to professor's instructions, we are required to find correlation between sum of basic, other, and overtime (ie, totalpaybenefits) with basic pay. It has been instructed to ignore Attribute 'Benefits', which is N... |
# set this directory to working directory
this.dir <- dirname(parent.frame(2)$ofile)
setwd(this.dir)
# download file path
destUrl <- "./FNEI_data.zip"
if (!file.exists(destUrl))
{
print ("Downloading data, this may take a few seconds...")
url <- url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_d... | /plot5.R | no_license | simonmackinnon/ExData_Plotting2 | R | false | false | 2,838 | r | # set this directory to working directory
this.dir <- dirname(parent.frame(2)$ofile)
setwd(this.dir)
# download file path
destUrl <- "./FNEI_data.zip"
if (!file.exists(destUrl))
{
print ("Downloading data, this may take a few seconds...")
url <- url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_d... |
# ===================================================================
# Title: HW 03: Ranking NBA Teams
# Description: Trying to answer a hypothetical question: hypothetical question:
# If I had to come up with a ranking system for the teams, how would I rank them?
# Input(s): nba2017-roster.csv, nba2017-stats.csv
# O... | /hw03/code/make-teams-table.R | no_license | vshypko/stat_133-computing_with_data | R | false | false | 3,362 | r | # ===================================================================
# Title: HW 03: Ranking NBA Teams
# Description: Trying to answer a hypothetical question: hypothetical question:
# If I had to come up with a ranking system for the teams, how would I rank them?
# Input(s): nba2017-roster.csv, nba2017-stats.csv
# O... |
##### load packages #####
library(data.table)
library(dplyr)
library(tidyr)
library(ggplot2)
library(pheatmap)
library(RColorBrewer)
library(survival)
library(fastcluster)
library(cluster)
library(survminer)
library(umap)
library(Rtsne)
library(enrichR)
library(DESeq2)
library(lme4)
library(lmerTest)
library(emmeans)
l... | /Code/A20_symptom_relations.R | no_license | hzc363/COVID19_system_immunology | R | false | false | 2,535 | r | ##### load packages #####
library(data.table)
library(dplyr)
library(tidyr)
library(ggplot2)
library(pheatmap)
library(RColorBrewer)
library(survival)
library(fastcluster)
library(cluster)
library(survminer)
library(umap)
library(Rtsne)
library(enrichR)
library(DESeq2)
library(lme4)
library(lmerTest)
library(emmeans)
l... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## programer: jimmy peng at 2017/08/26
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL # clear the inv variable
set <- function(y) {
... | /cachematrix.R | no_license | jimmypeng1979/ProgrammingAssignment2 | R | false | false | 1,105 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## programer: jimmy peng at 2017/08/26
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL # clear the inv variable
set <- function(y) {
... |
library(lpme)
### Name: moderegbwSIMEX
### Title: Cross-Validation Bandwidth Selector Using SIMEX for
### Nonparametric Mode Regression
### Aliases: moderegbwSIMEX
### ** Examples
rm(list=ls())
library(lpme)
rlaplace=function (use.n, location = 0, scale = 1)
{
location <- rep(location, length.out = use.n)
s... | /data/genthat_extracted_code/lpme/examples/moderegbwSIMEX.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,542 | r | library(lpme)
### Name: moderegbwSIMEX
### Title: Cross-Validation Bandwidth Selector Using SIMEX for
### Nonparametric Mode Regression
### Aliases: moderegbwSIMEX
### ** Examples
rm(list=ls())
library(lpme)
rlaplace=function (use.n, location = 0, scale = 1)
{
location <- rep(location, length.out = use.n)
s... |
## Plot4.png and save it. Including load_data
setwd("/Users/Yun/Desktop/DS/ExploratoryDataAnalysis/Project 1")
Plot4 <- function(){
source("/Users/Yun/Desktop/DS/ExploratoryDataAnalysis/Project 1/load_data.R")
df <- load_data()
png("Plot4.png", width = 480, height = 480, units = "px")
par(mfrow = c(2,2))
w... | /Project 1/Plot4.R | no_license | huangd2/Coursera---ExploratoryDataAnalysis | R | false | false | 936 | r | ## Plot4.png and save it. Including load_data
setwd("/Users/Yun/Desktop/DS/ExploratoryDataAnalysis/Project 1")
Plot4 <- function(){
source("/Users/Yun/Desktop/DS/ExploratoryDataAnalysis/Project 1/load_data.R")
df <- load_data()
png("Plot4.png", width = 480, height = 480, units = "px")
par(mfrow = c(2,2))
w... |
stopifnot(require("testthat"),
require("glmmTMB"),
require("lme4"))
context("bootMer")
fun <- function(x) predict(x)[1]
test_that("Bernoulli responses", {
Salamanders$pres <- as.numeric(Salamanders$count>0)
m <- glmmTMB(pres ~ mined +(1|site), family=binomial, data=Salamanders)
b <- l... | /glmmTMB/tests/testthat/test-bootMer.R | no_license | rfinger/glmmTMB | R | false | false | 854 | r | stopifnot(require("testthat"),
require("glmmTMB"),
require("lme4"))
context("bootMer")
fun <- function(x) predict(x)[1]
test_that("Bernoulli responses", {
Salamanders$pres <- as.numeric(Salamanders$count>0)
m <- glmmTMB(pres ~ mined +(1|site), family=binomial, data=Salamanders)
b <- l... |
BuffTail<-c(10,1,37,5,12)
Gardenbee<-c(8,3,9,6,4)
RedTail<-c(18,9,12,4,6)
Carderbee<-c(8,27,6,32,23)
HoneyBee<-c(12,13,16,9,10)
beeframe<-data.frame(BuffTail,Gardenbee,RedTail,Carderbee,HoneyBee)
beeframe
names<-c("Thistle","Vipers","GoldenRain","Yellowalfala","blackberry")
rownames(beeframe)<-names
beeframe
| /lab3/2a.R | no_license | kanishka-p/DSR | R | false | false | 320 | r | BuffTail<-c(10,1,37,5,12)
Gardenbee<-c(8,3,9,6,4)
RedTail<-c(18,9,12,4,6)
Carderbee<-c(8,27,6,32,23)
HoneyBee<-c(12,13,16,9,10)
beeframe<-data.frame(BuffTail,Gardenbee,RedTail,Carderbee,HoneyBee)
beeframe
names<-c("Thistle","Vipers","GoldenRain","Yellowalfala","blackberry")
rownames(beeframe)<-names
beeframe
|
### Secure access to lobster data held within GlobalArchive
### OBJECTIVES ###
# 1. use an API token to access Project shared with you.
# 2. securely download any number of Campaigns within a Project
# 3. combine multiple Campaigns into single Metadata and Length files for subsequent validation and data analysis.
rm(... | /Scripts/00.Download.data.from.GlobalArchive.R | no_license | UWAMEGFisheries/Analysis_Miller_lobster | R | false | false | 13,061 | r | ### Secure access to lobster data held within GlobalArchive
### OBJECTIVES ###
# 1. use an API token to access Project shared with you.
# 2. securely download any number of Campaigns within a Project
# 3. combine multiple Campaigns into single Metadata and Length files for subsequent validation and data analysis.
rm(... |
testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.5644159577461e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.66013830765329... | /meteor/inst/testfiles/Photoperiod/AFL_Photoperiod/Photoperiod_valgrind_files/1615768586-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 682 | r | testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.5644159577461e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.66013830765329... |
install.packages('tensorA')
install.packages('energy')
install.packages('C:/Users/sdperez.EMORYUNIVAD/Downloads/compositions_1.30-2.tar.gz',
repos = NULL, type="source") #still not working
library(compositions)
A<-read.csv("C:/Documents and Settings/N375726/My Documents/OtherStudies/ESSOM/Rtest.csv"... | /Compositions.R | no_license | sdperez/RSampleCode | R | false | false | 866 | r |
install.packages('tensorA')
install.packages('energy')
install.packages('C:/Users/sdperez.EMORYUNIVAD/Downloads/compositions_1.30-2.tar.gz',
repos = NULL, type="source") #still not working
library(compositions)
A<-read.csv("C:/Documents and Settings/N375726/My Documents/OtherStudies/ESSOM/Rtest.csv"... |
library(Matrix)
library(readxl)
library(Seurat)
library(readxl)
library(DropletUtils)
library(ggplot2)
library(SoupX)
library(sc)
library(scater)
library(dplyr)
library(scran)
library(stringr)
library(reshape2)
source('/home/sujwary/Desktop/scRNA/Code/Plot_func.R')
source('/home/sujwary/Desktop/scRNA/Code/Functions.R')... | /Cleaning/PlotScanorama.R | no_license | sylvia-science/Ghobrial_EloRD | R | false | false | 14,843 | r | library(Matrix)
library(readxl)
library(Seurat)
library(readxl)
library(DropletUtils)
library(ggplot2)
library(SoupX)
library(sc)
library(scater)
library(dplyr)
library(scran)
library(stringr)
library(reshape2)
source('/home/sujwary/Desktop/scRNA/Code/Plot_func.R')
source('/home/sujwary/Desktop/scRNA/Code/Functions.R')... |
####load library####
library(R2jags)
library(tidyverse)
library(dplyr)
####load Simulations_method with_GS_interaction for all functions ####
#### function for 2 subset for HIgh data with Millen method######
####functions#####
stopping_rules_first_analyse_variation_2_subset_millen <-
function(P1_0, P1_1, ... | /Source code/binary_bayesian_model_HIGH_data.R | no_license | vvinnat/Enrichment-Bayesian-design-with-multiple-classifier-biomarkers | R | false | false | 260,817 | r | ####load library####
library(R2jags)
library(tidyverse)
library(dplyr)
####load Simulations_method with_GS_interaction for all functions ####
#### function for 2 subset for HIgh data with Millen method######
####functions#####
stopping_rules_first_analyse_variation_2_subset_millen <-
function(P1_0, P1_1, ... |
#####
##### Data and code to count discontinuities from Hyper-Spectral Imagery
#####
set.seed(786121246)
library("raster")
library("rgdal")
library("neonAOP")
library("rhdf5")
library("rgl")
library("mclust")
# import the HSI data, which has the plots isolated
SJER_plots <- readRDS("output/plot_cubes.rds")
head(SJE... | /R/Count_species.R | no_license | butterflyology/hyperspec-beta | R | false | false | 1,586 | r | #####
##### Data and code to count discontinuities from Hyper-Spectral Imagery
#####
set.seed(786121246)
library("raster")
library("rgdal")
library("neonAOP")
library("rhdf5")
library("rgl")
library("mclust")
# import the HSI data, which has the plots isolated
SJER_plots <- readRDS("output/plot_cubes.rds")
head(SJE... |
### R code from vignette source 'splines.Rnw'
###################################################
### code chunk number 1: splines.Rnw:20-24
###################################################
options(continue=" ", width=60)
options(SweaveHooks=list(fig=function() par(mar=c(4.1, 4.1, .3, 1.1))))
pdf.options(po... | /Tools/DECoN-master/Windows/packrat/lib-R/survival/doc/splines.R | permissive | robinwijngaard/TFM_code | R | false | false | 2,271 | r | ### R code from vignette source 'splines.Rnw'
###################################################
### code chunk number 1: splines.Rnw:20-24
###################################################
options(continue=" ", width=60)
options(SweaveHooks=list(fig=function() par(mar=c(4.1, 4.1, .3, 1.1))))
pdf.options(po... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confint_coxme.r
\name{confint.coxme}
\alias{confint.coxme}
\title{\code{confint} method for class \code{coxme}}
\usage{
\method{confint}{coxme}(object, parm = NULL, level = 0.95, ...,
more = FALSE)
}
\arguments{
\item{object}{an object of c... | /man/confint.coxme.Rd | no_license | iiijohan/ucR | R | false | true | 846 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confint_coxme.r
\name{confint.coxme}
\alias{confint.coxme}
\title{\code{confint} method for class \code{coxme}}
\usage{
\method{confint}{coxme}(object, parm = NULL, level = 0.95, ...,
more = FALSE)
}
\arguments{
\item{object}{an object of c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.R
\name{random_matrix}
\alias{random_matrix}
\title{Generate a random matrix.}
\usage{
random_matrix(objects)
}
\arguments{
\item{objects}{list. The object frame to start from.}
}
\description{
A random matrix needs three random thin... | /man/random_matrix.Rd | permissive | syberia/checkr | R | false | true | 745 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.R
\name{random_matrix}
\alias{random_matrix}
\title{Generate a random matrix.}
\usage{
random_matrix(objects)
}
\arguments{
\item{objects}{list. The object frame to start from.}
}
\description{
A random matrix needs three random thin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitfile2synapse.R
\name{createAndKnitToFolderEntity}
\alias{createAndKnitToFolderEntity}
\title{createAndKnitToFolderEntity}
\usage{
createAndKnitToFolderEntity(file, parentId, folderName, wikiName = NULL,
overwrite = FALSE, knitmd = TRUE,... | /man/createAndKnitToFolderEntity.Rd | no_license | jgockley62/knit2synapse | R | false | true | 1,168 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitfile2synapse.R
\name{createAndKnitToFolderEntity}
\alias{createAndKnitToFolderEntity}
\title{createAndKnitToFolderEntity}
\usage{
createAndKnitToFolderEntity(file, parentId, folderName, wikiName = NULL,
overwrite = FALSE, knitmd = TRUE,... |
library(testthat)
test_that("GNG Utility works", {
print("GNG Utility works")
max_nodes <- 500
# Construct gng object
gng <- GNG(max.nodes=max_nodes, train.online=TRUE, dim=3, verbosity=3, k=1.3)
# Construct examples, here we will use a sphere
ex <- gng.preset.sphere(N=10000)
labels <-... | /tests/testthat/test_gng_utility.R | no_license | Silveryu/gng.r | R | false | false | 1,555 | r | library(testthat)
test_that("GNG Utility works", {
print("GNG Utility works")
max_nodes <- 500
# Construct gng object
gng <- GNG(max.nodes=max_nodes, train.online=TRUE, dim=3, verbosity=3, k=1.3)
# Construct examples, here we will use a sphere
ex <- gng.preset.sphere(N=10000)
labels <-... |
mtcars <- mtcars
print(mtcars)
sample_matrix1 <- matrix(1:4, nrow = 2, ncol = 2)
print(sample_matrix1)
sample_matrix2 <- matrix(5:8, nrow = 2, ncol = 2)
print(sample_matrix2)
sample_list <- list(sample_matrix1, sample_matrix2)
print(sample_list)
#multiple by 10
mult10 <- function(x) {
y = x/10
}
mult10(100)
#-... | /applyfunctions.R | no_license | skanel/RiseAcademy | R | false | false | 713 | r | mtcars <- mtcars
print(mtcars)
sample_matrix1 <- matrix(1:4, nrow = 2, ncol = 2)
print(sample_matrix1)
sample_matrix2 <- matrix(5:8, nrow = 2, ncol = 2)
print(sample_matrix2)
sample_list <- list(sample_matrix1, sample_matrix2)
print(sample_list)
#multiple by 10
mult10 <- function(x) {
y = x/10
}
mult10(100)
#-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testCCF.R
\name{testCCF}
\alias{testCCF}
\title{Statistic Test for CCF}
\usage{
testCCF(x, y, lag.max, alpha, sampleTimes, ...)
}
\arguments{
\item{x}{A vector represents a time sequence}
\item{y}{A vector represents another sequence}
\item... | /man/testCCF.Rd | no_license | chengfeifan/Causality | R | false | true | 2,133 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testCCF.R
\name{testCCF}
\alias{testCCF}
\title{Statistic Test for CCF}
\usage{
testCCF(x, y, lag.max, alpha, sampleTimes, ...)
}
\arguments{
\item{x}{A vector represents a time sequence}
\item{y}{A vector represents another sequence}
\item... |
#' bdclean: Biodiversity Data Cleaning Workflows
#'
#' Biodiversity Data Cleaning Workflows using R would be helpful
#' to clean biodiversity occurrence data typically downloaded from
#' Global Biodiversity Information Facility (http://www.gbif.org/) or
#' similar biodiversity data portals. There are several data clean... | /R/bdclean.R | no_license | tom-gu/bdclean-revert-16-master | R | false | false | 881 | r | #' bdclean: Biodiversity Data Cleaning Workflows
#'
#' Biodiversity Data Cleaning Workflows using R would be helpful
#' to clean biodiversity occurrence data typically downloaded from
#' Global Biodiversity Information Facility (http://www.gbif.org/) or
#' similar biodiversity data portals. There are several data clean... |
# Author: Ben Nouhan, bjn20@ucl.ac.uk
#
# Script: sample.R
#
# Desc: Runs the stochastic Ricker equation with gaussian fluctuations
#
# Arguments:
# -
#
# Output:
# -
#
# Date: 21 Oct 2020
rm(list=ls())
#not random error - just introducing random variation in startpoints for the simu... | /week3/code/Vectorize2.R | no_license | Bennouhan/cmeecoursework | R | false | false | 2,905 | r | # Author: Ben Nouhan, bjn20@ucl.ac.uk
#
# Script: sample.R
#
# Desc: Runs the stochastic Ricker equation with gaussian fluctuations
#
# Arguments:
# -
#
# Output:
# -
#
# Date: 21 Oct 2020
rm(list=ls())
#not random error - just introducing random variation in startpoints for the simu... |
rm(list=ls())
library(simode)
set.seed(1000)
n <- 20
SNR <- 5
priorInf=c(0.1,1,2,3)
V <- 'c*(V-V^3/3+R)'
R <- '-(V - a + b*R)/c'
vars <- c('V','R')
equations <- c(V,R)
names(equations) <- vars
pars <- c('a','b','c')
theta <- c(0.2, 0.2, 3)
names(theta) <- pars
lin_pars <- c('a', 'b')
nlin_pars <- 'c'
time <- seq(0,... | /previous_backup/FitzHugh-Nagumo-4-newmethod/compNLStoSLS_FitzHugh-Nagumo-final.R | no_license | haroldship/complexity-2019-code | R | false | false | 4,356 | r | rm(list=ls())
library(simode)
set.seed(1000)
n <- 20
SNR <- 5
priorInf=c(0.1,1,2,3)
V <- 'c*(V-V^3/3+R)'
R <- '-(V - a + b*R)/c'
vars <- c('V','R')
equations <- c(V,R)
names(equations) <- vars
pars <- c('a','b','c')
theta <- c(0.2, 0.2, 3)
names(theta) <- pars
lin_pars <- c('a', 'b')
nlin_pars <- 'c'
time <- seq(0,... |
\name{glcSplitCriterionLevelWtdBIC}
\alias{glcSplitCriterionLevelWtdBIC}
\title{Gaussian RPMM Split Criterion: Level-Weighted BIC}
\description{
Split criterion function: use a level-weighted version of BIC to determine split; there is an additional penalty incorporated for deep recursion.
}
\usage{
glcSplitCri... | /man/glcSplitCriterionLevelWtdBIC.Rd | no_license | cran/RPMM | R | false | false | 1,370 | rd | \name{glcSplitCriterionLevelWtdBIC}
\alias{glcSplitCriterionLevelWtdBIC}
\title{Gaussian RPMM Split Criterion: Level-Weighted BIC}
\description{
Split criterion function: use a level-weighted version of BIC to determine split; there is an additional penalty incorporated for deep recursion.
}
\usage{
glcSplitCri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functionsSimPlot.R
\name{ebar}
\alias{ebar}
\title{draw horizontal error bars}
\usage{
ebar(x, y, lwd = 2, col = 1, lty = 1, length = 0.1, pch = 18)
}
\arguments{
\item{x}{a vector of length 2}
\item{y}{a single value or a numerical vector s... | /man/ebar.Rd | no_license | emilliman5/proturn | R | false | true | 759 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functionsSimPlot.R
\name{ebar}
\alias{ebar}
\title{draw horizontal error bars}
\usage{
ebar(x, y, lwd = 2, col = 1, lty = 1, length = 0.1, pch = 18)
}
\arguments{
\item{x}{a vector of length 2}
\item{y}{a single value or a numerical vector s... |
##########################################################
#This script is used for analyzing effect of VSP algorithm
##########################################################
## Step 1: read raw data from work directory
# Uncomment next line if xlsx package haven't been installed
#install.packages("xlsx")
# Load dep... | /VSP_analysis.R | no_license | willowcheng/research-on-related-algorithms-of-3D-video-encoding-based-on-depth-layer | R | false | false | 2,748 | r | ##########################################################
#This script is used for analyzing effect of VSP algorithm
##########################################################
## Step 1: read raw data from work directory
# Uncomment next line if xlsx package haven't been installed
#install.packages("xlsx")
# Load dep... |
## ---- prepare-data
# Erstellen des Korpus
crps = d %>%
mutate(txt = post, # Duplizieren des Post-Texts für Meta-Daten
date_num = as.numeric(postdate) - max(as.numeric(postdate))) %>% # Numerische Datumsvariable
corpus(text_field = "post") # Erstellen des Korpus
crps %>%
summary(n = 1)
# Stoppwörter... | /R/prepare_data.R | no_license | bachl/workshop_topicmodels | R | false | false | 4,341 | r | ## ---- prepare-data
# Erstellen des Korpus
crps = d %>%
mutate(txt = post, # Duplizieren des Post-Texts für Meta-Daten
date_num = as.numeric(postdate) - max(as.numeric(postdate))) %>% # Numerische Datumsvariable
corpus(text_field = "post") # Erstellen des Korpus
crps %>%
summary(n = 1)
# Stoppwörter... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# makeCacheMatrix() function takes a matrix as a argument. It has two setter and getter method
# to set the matrix values and get the matrix values and set inverse of the matrix and g... | /cachematrix.R | no_license | annapurna28/ProgrammingAssignment2 | R | false | false | 1,274 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# makeCacheMatrix() function takes a matrix as a argument. It has two setter and getter method
# to set the matrix values and get the matrix values and set inverse of the matrix and g... |
library(tm)
#library(RTextTools)
library(readr)
library(e1071)
library(dplyr)
library(caret)
#df<- read.csv(file.choose(), stringsAsFactors = FALSE)
df<- read.csv("dataset/labelledTweets_DS.csv", stringsAsFactors = FALSE)
#set.seed(1)
df <- df[sample(nrow(df)), ]
df <- df[sample(nrow(df)), ]
df <- df[sample(... | /M-Tech Final Year Project/R Code/SVM.R | no_license | LEOKA037/AcademicProjects | R | false | false | 1,983 | r | library(tm)
#library(RTextTools)
library(readr)
library(e1071)
library(dplyr)
library(caret)
#df<- read.csv(file.choose(), stringsAsFactors = FALSE)
df<- read.csv("dataset/labelledTweets_DS.csv", stringsAsFactors = FALSE)
#set.seed(1)
df <- df[sample(nrow(df)), ]
df <- df[sample(nrow(df)), ]
df <- df[sample(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PACLasso.R
\name{quad.int}
\alias{quad.int}
\title{Initialize Quadratic Programming Fit (Equality Constraints)}
\usage{
quad.int(x, y, C.full, b, lambda, d = 10^-7)
}
\arguments{
\item{x}{independent variable matrix of data to be use... | /man/quad.int.Rd | no_license | cran/PACLasso | R | false | true | 1,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PACLasso.R
\name{quad.int}
\alias{quad.int}
\title{Initialize Quadratic Programming Fit (Equality Constraints)}
\usage{
quad.int(x, y, C.full, b, lambda, d = 10^-7)
}
\arguments{
\item{x}{independent variable matrix of data to be use... |
speedCalc1 <- function(map)
{
dt=diff(map$time)
objectCount=length(dt)+1
T=map$time[objectCount]
dx=diff(map$xpos)
dy=diff(map$ypos)
distance=sqrt(dx^2+dy^2)
distance*CSbonus
spacingWeight = rep(0,objectCount-1)
speedSpacing(spacingWeight,distance,objectCount)
decay=.3^(dt/1000)
suprem... | /speedCalc.R | permissive | tr3sleches/Continuous-Difficulty-Calculation | R | false | false | 2,361 | r | speedCalc1 <- function(map)
{
dt=diff(map$time)
objectCount=length(dt)+1
T=map$time[objectCount]
dx=diff(map$xpos)
dy=diff(map$ypos)
distance=sqrt(dx^2+dy^2)
distance*CSbonus
spacingWeight = rep(0,objectCount-1)
speedSpacing(spacingWeight,distance,objectCount)
decay=.3^(dt/1000)
suprem... |
#####################################################
## Exctracting nutrient pressure data for OHI 2016
## MRF: June 1 2016
## MRF: Sep 16 2016 update: revising trend to proportion
## (rather than absolute...saved with "new" suffix)
#####################################################
source('../ohiprep/src/R/c... | /globalprep/prs_land-based_nutrient/v2016/zonal_extraction.R | no_license | OHI-Science/ohiprep_v2018 | R | false | false | 7,188 | r | #####################################################
## Exctracting nutrient pressure data for OHI 2016
## MRF: June 1 2016
## MRF: Sep 16 2016 update: revising trend to proportion
## (rather than absolute...saved with "new" suffix)
#####################################################
source('../ohiprep/src/R/c... |
#load in libraries
rm(list = ls())
library(data.table)
library(caret)
#read in data, notice the path will always look like this because the assumed working directory is the repo level folder
raw_data_path = "~/Desktop/STAT380/themagic/project/volume/data/raw/"
interim_data_path ="~/Desktop/STAT380/themagic/project/vol... | /themagic/project/src/features/build_features.r | no_license | zhixuanyang/STAT380 | R | false | false | 2,260 | r | #load in libraries
rm(list = ls())
library(data.table)
library(caret)
#read in data, notice the path will always look like this because the assumed working directory is the repo level folder
raw_data_path = "~/Desktop/STAT380/themagic/project/volume/data/raw/"
interim_data_path ="~/Desktop/STAT380/themagic/project/vol... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EPFR.r
\name{mat.to.lags}
\alias{mat.to.lags}
\title{mat.to.lags}
\usage{
mat.to.lags(x, y, n = T, w = 1)
}
\arguments{
\item{x}{= a matrix/df indexed by time running FORWARDS}
\item{y}{= number of lagged values desired plus one}
\item{n}{=... | /man/mat.to.lags.Rd | no_license | Turnado-dx/EPFR | R | false | true | 1,369 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EPFR.r
\name{mat.to.lags}
\alias{mat.to.lags}
\title{mat.to.lags}
\usage{
mat.to.lags(x, y, n = T, w = 1)
}
\arguments{
\item{x}{= a matrix/df indexed by time running FORWARDS}
\item{y}{= number of lagged values desired plus one}
\item{n}{=... |
#*******************************************************************************
#
# ------------------ Tools for interfacing with LSD results ------------------
#
# Written by Marcelo C. Pereira, University of Campinas
#
# Copyright Marcelo C. Pereira
# Distributed under the GNU General Public License
#
... | /R/info.R | no_license | cran/LSDinterface | R | false | false | 16,014 | r | #*******************************************************************************
#
# ------------------ Tools for interfacing with LSD results ------------------
#
# Written by Marcelo C. Pereira, University of Campinas
#
# Copyright Marcelo C. Pereira
# Distributed under the GNU General Public License
#
... |
testlist <- list(x = c(-134225921L, -1L, -256L, 0L, 16777215L, -1537L, -687865865L, NA, -1895825409L, -42L, NA, -1L, -42L, 439353128L, 620756992L, -268435457L, -1L, -10726L, -14024705L, -230L, 805306149L, 130L, -268435712L, 16777215L, -687865857L, -2686977L, -134225921L, -2049L, -539616721L, -11788545L, -42L, 43935... | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609960882-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 852 | r | testlist <- list(x = c(-134225921L, -1L, -256L, 0L, 16777215L, -1537L, -687865865L, NA, -1895825409L, -42L, NA, -1L, -42L, 439353128L, 620756992L, -268435457L, -1L, -10726L, -14024705L, -230L, 805306149L, 130L, -268435712L, 16777215L, -687865857L, -2686977L, -134225921L, -2049L, -539616721L, -11788545L, -42L, 43935... |
library(tidyverse)
# vdem <- read_dta("C:/Users/vladtarko/Dropbox/public/databases/v-dem/V-Dem-CY-Full+Others-v9.dta")
vdem <- vdem %>%
rename(country = country_name,
iso = country_text_id)
vdem <- vdem %>% select(country, iso, year, COWcode, histname, everything())
vdem_meta <- vars_explore(vdem, si... | /data_cleaning/clean_vdem.R | no_license | vladtarko/ppeldata | R | false | false | 370 | r | library(tidyverse)
# vdem <- read_dta("C:/Users/vladtarko/Dropbox/public/databases/v-dem/V-Dem-CY-Full+Others-v9.dta")
vdem <- vdem %>%
rename(country = country_name,
iso = country_text_id)
vdem <- vdem %>% select(country, iso, year, COWcode, histname, everything())
vdem_meta <- vars_explore(vdem, si... |
#******************************************************
# Objective
#******************************************************
# Measure customer sentiment over time using NLP.
install.packages("twitteR")
install.packages("plyr")
install.packages("stringr")
install.packages("ggplot2")
library(twitteR) # provides an i... | /Personal - BGE Sentiment On Twitter.R | no_license | Sandy4321/Project-Files | R | false | false | 1,221 | r | #******************************************************
# Objective
#******************************************************
# Measure customer sentiment over time using NLP.
install.packages("twitteR")
install.packages("plyr")
install.packages("stringr")
install.packages("ggplot2")
library(twitteR) # provides an i... |
library(DiagrammeR)
library(DiagrammeRsvg) #Needed if you want to export the image
library(rsvg) #Needed if you want to export the image
export_svg(DiagrammeR::grViz("digraph {
graph[compound = true, layout = dot, rankdir = LR, color = black, style = dashed, fontname= Arial, fontsize = 18]
node [shape = rectangle... | /chapter_2/generate_study_flow_diagram.R | no_license | joelewis101/thesis | R | false | false | 1,693 | r | library(DiagrammeR)
library(DiagrammeRsvg) #Needed if you want to export the image
library(rsvg) #Needed if you want to export the image
export_svg(DiagrammeR::grViz("digraph {
graph[compound = true, layout = dot, rankdir = LR, color = black, style = dashed, fontname= Arial, fontsize = 18]
node [shape = rectangle... |
#!/usr/bin/env Rscript
cat("generate utilisation based on partial time accounting\n")
source("config.R")
source("PBS-Application-Stats-Common.R")
# Inputs
pbsreport<-paste0("pbs-report.cleaned.partial.",suffix,".csv")
jobcores<-paste0("cores.partial.",suffix,".csv")
usernames<-paste0("usernames.",suffix,".csv")
proje... | /PBS-Application-Stats-Utilisation.R | no_license | nick-wilson/hpc-usage-statistics | R | false | false | 3,292 | r | #!/usr/bin/env Rscript
cat("generate utilisation based on partial time accounting\n")
source("config.R")
source("PBS-Application-Stats-Common.R")
# Inputs
pbsreport<-paste0("pbs-report.cleaned.partial.",suffix,".csv")
jobcores<-paste0("cores.partial.",suffix,".csv")
usernames<-paste0("usernames.",suffix,".csv")
proje... |
#Load Packages
library(DESeq2)
library(edgeR)
library(limma)
library(gplots)
library(RColorBrewer)
library(pheatmap)
library(ggplot2)
library(ggrepel)
library(pathfindR)
library(scales)
library(data.table)
library(fBasics)
library(forcats)
library(omu)
library(maptools)
library(phyloseq)
library(vegan)
#library(ggpmisc... | /Metatranscriptome/COVID19.Topographical.Function.r | no_license | abdohlman/SARS_CoV2 | R | false | false | 14,786 | r | #Load Packages
library(DESeq2)
library(edgeR)
library(limma)
library(gplots)
library(RColorBrewer)
library(pheatmap)
library(ggplot2)
library(ggrepel)
library(pathfindR)
library(scales)
library(data.table)
library(fBasics)
library(forcats)
library(omu)
library(maptools)
library(phyloseq)
library(vegan)
#library(ggpmisc... |
# Chap08_VisualizationAnalysis
#####################################
## Chapter08. 고급시각화 분석
#####################################
# - lattice, latticeExtra, ggplot2, ggmap 패키지
##########################################
# 1. lattice 패키지
#########################################
# The Lattice Plotting System... | /Chap08_VisualizationAnalysis.R | no_license | imitationray/stellaris | R | false | false | 14,452 | r | # Chap08_VisualizationAnalysis
#####################################
## Chapter08. 고급시각화 분석
#####################################
# - lattice, latticeExtra, ggplot2, ggmap 패키지
##########################################
# 1. lattice 패키지
#########################################
# The Lattice Plotting System... |
# Patch Simulation for HJA
#
# This script is used to simulate vegetation at patch level, beginning with no
# vegetation. A copy of the landscape (worldfile) is exported at various time
# intervals for patch level fire analysis.
source("R/0.1_utilities.R")
# ---------------------------------------------------------... | /R/1.3_export_stand_age_hja.R | no_license | mkenn/fireCoupledRuns | R | false | false | 9,378 | r | # Patch Simulation for HJA
#
# This script is used to simulate vegetation at patch level, beginning with no
# vegetation. A copy of the landscape (worldfile) is exported at various time
# intervals for patch level fire analysis.
source("R/0.1_utilities.R")
# ---------------------------------------------------------... |
#Read the data
source("readdata.R")
#Plot 4
#Write PNG file
png(file="plot4.png",width = 480, height = 480)
#Set parameter so that 2 by 2 plots will be made
par("mfrow"=c(2,2))
#Make timeseries plots
with(data,{
plot(DT,Global_active_power,type="l",
xlab="",ylab="Global Active Power (kilowatts)")
plot(DT... | /plot4.R | no_license | wouterbaake/ExData_Plotting1 | R | false | false | 730 | r | #Read the data
source("readdata.R")
#Plot 4
#Write PNG file
png(file="plot4.png",width = 480, height = 480)
#Set parameter so that 2 by 2 plots will be made
par("mfrow"=c(2,2))
#Make timeseries plots
with(data,{
plot(DT,Global_active_power,type="l",
xlab="",ylab="Global Active Power (kilowatts)")
plot(DT... |
#' Create an \code{RMODFLOW} sip object.
#'
#' \code{rmf_create_sip} creates an \code{RMODFLOW} sip object
#'
#' @param mxiter maximum number of iterations in one time step attempting to solve the equations; defaults to 50
#' @param nparm number of iteration variables; defaults to 5
#' @param accl acceleration variab... | /R/rmf-create-sip.R | no_license | matejgedeon/RMODFLOW | R | false | false | 1,537 | r | #' Create an \code{RMODFLOW} sip object.
#'
#' \code{rmf_create_sip} creates an \code{RMODFLOW} sip object
#'
#' @param mxiter maximum number of iterations in one time step attempting to solve the equations; defaults to 50
#' @param nparm number of iteration variables; defaults to 5
#' @param accl acceleration variab... |
setwd("G:/Coursera/courseraworkspace/exploratorydataanalysis/exdata_plotting2")
unzip("./exdata_data_NEI_data.zip")
# Check if both data exist in the environment. If not, load the data.
if (!"neiData" %in% ls()) {
neiData <- readRDS("./summarySCC_PM25.rds")
}
if (!"sccData" %in% ls()) {
sccData <- readRDS("./Sourc... | /plot3.R | no_license | hemanmehta/ExData_Plotting2 | R | false | false | 1,918 | r | setwd("G:/Coursera/courseraworkspace/exploratorydataanalysis/exdata_plotting2")
unzip("./exdata_data_NEI_data.zip")
# Check if both data exist in the environment. If not, load the data.
if (!"neiData" %in% ls()) {
neiData <- readRDS("./summarySCC_PM25.rds")
}
if (!"sccData" %in% ls()) {
sccData <- readRDS("./Sourc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/projects.R
\name{eastweb_projects}
\alias{eastweb_projects}
\title{Get information on all projects in an EASTWeb database}
\usage{
eastweb_projects(db_name, user, password, host = "localhost", port = 5432)
}
\arguments{
\item{db_name}{Name of... | /man/eastweb_projects.Rd | no_license | chrismerkord/eastweb | R | false | true | 667 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/projects.R
\name{eastweb_projects}
\alias{eastweb_projects}
\title{Get information on all projects in an EASTWeb database}
\usage{
eastweb_projects(db_name, user, password, host = "localhost", port = 5432)
}
\arguments{
\item{db_name}{Name of... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.