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 |
|---|---|---|---|---|---|---|---|---|---|
#!/usr/bin/env Rscript
##############################
# Rare CNV Map Project #
##############################
# Copyright (c) 2016 Ryan L. Collins
# Distributed under terms of the MIT License (see LICENSE)
# Contact: Ryan L. Collins <rlcollins@g.harvard.edu>
# Code development credits availble on GitHub
#Runs ... | /bin/TBRden_test.R | permissive | aneichyk/CNValue | R | false | false | 643 | r | #!/usr/bin/env Rscript
##############################
# Rare CNV Map Project #
##############################
# Copyright (c) 2016 Ryan L. Collins
# Distributed under terms of the MIT License (see LICENSE)
# Contact: Ryan L. Collins <rlcollins@g.harvard.edu>
# Code development credits availble on GitHub
#Runs ... |
/share/Scripts/QualiTree/figures.R | no_license | junqi108/MAppleT | R | false | false | 40,539 | r | ||
### predictive team project
### random forest
# Load packages
library('ggplot2') # visualization
library('ggthemes') # visualization
library('scales') # visualization
library('dplyr') # data manipulation
library('mice') # imputation
library('randomForest') # classification algorithm
library('rpart') # f... | /NewdataTP745.R | no_license | yidan-yang/stat745-kaggle-Titanic | R | false | false | 2,940 | r | ### predictive team project
### random forest
# Load packages
library('ggplot2') # visualization
library('ggthemes') # visualization
library('scales') # visualization
library('dplyr') # data manipulation
library('mice') # imputation
library('randomForest') # classification algorithm
library('rpart') # f... |
# Write a function that takes in a table of the number of individuals and the ancestries and outputs the HAPGEN VCF files
# Note that for now we will only simulate from chr22 for speed reasons\
# Note that our regions will be EXCLUSIVE (ie: if we have a region we will include the SNPs inside that region and not beyond)... | /simulate_GWAS/simulation_functions.R | no_license | marcustutert/sumstat_imputation_paper | R | false | false | 30,190 | r | # Write a function that takes in a table of the number of individuals and the ancestries and outputs the HAPGEN VCF files
# Note that for now we will only simulate from chr22 for speed reasons\
# Note that our regions will be EXCLUSIVE (ie: if we have a region we will include the SNPs inside that region and not beyond)... |
# Import libraries
library(data.table)
library("readxl")
library(dplyr)
library(testthat)
library(readr)
library(stringr)
library(tidyr)
library(mgsub)
library(foreach)
setwd("~/Google Drive/Non-Academic Work/Research/Traina/occupation-productivity-2/")
#starting this year we have files
'%ni%' <- Negate('%in%')
#Impo... | /Deprecated/importOEWS_old.R | no_license | liaochris/occupation-productivity-2 | R | false | false | 2,796 | r | # Import libraries
library(data.table)
library("readxl")
library(dplyr)
library(testthat)
library(readr)
library(stringr)
library(tidyr)
library(mgsub)
library(foreach)
setwd("~/Google Drive/Non-Academic Work/Research/Traina/occupation-productivity-2/")
#starting this year we have files
'%ni%' <- Negate('%in%')
#Impo... |
setOldClass("trip")
.read.generic <- function(x, y, ...) {
## read function "x", takes "y" as Date, POSIXct, character
x(y, ...)
}
.standard.assumeXYT.TimeError <- function() {
stop("invalid times in data, ensure that y is a data.frame with values of longitude, latitude, and date-times")
}
.determine.time.res... | /R/extract.R | no_license | bootneck2000/raadtools | R | false | false | 9,040 | r | setOldClass("trip")
.read.generic <- function(x, y, ...) {
## read function "x", takes "y" as Date, POSIXct, character
x(y, ...)
}
.standard.assumeXYT.TimeError <- function() {
stop("invalid times in data, ensure that y is a data.frame with values of longitude, latitude, and date-times")
}
.determine.time.res... |
# Have total emissions from PM2.5 decreased in the United States from 1999 to 2008?
# Using the base plotting system, make a plot showing the total PM2.5 emission from
# all sources for each of the years 1999, 2002, 2005, and 2008.
# Upload a PNG file containing your plot addressing this question.
setwd("/Users/dama... | /assignment-2/plot1.R | no_license | dambor/Exploratory-Data-Analysis | R | false | false | 1,071 | r | # Have total emissions from PM2.5 decreased in the United States from 1999 to 2008?
# Using the base plotting system, make a plot showing the total PM2.5 emission from
# all sources for each of the years 1999, 2002, 2005, and 2008.
# Upload a PNG file containing your plot addressing this question.
setwd("/Users/dama... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils2.R
\name{intr}
\alias{intr}
\title{Interval formatter}
\usage{
intr(..., fun = median, conf = NULL, digits = 0L, na.rm = FALSE)
}
\arguments{
\item{...}{numeric vector or string of numeric vectors}
\item{fun}{summary stat function, usu... | /man/intr.Rd | no_license | thiyangt/rawr | R | false | true | 1,081 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils2.R
\name{intr}
\alias{intr}
\title{Interval formatter}
\usage{
intr(..., fun = median, conf = NULL, digits = 0L, na.rm = FALSE)
}
\arguments{
\item{...}{numeric vector or string of numeric vectors}
\item{fun}{summary stat function, usu... |
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.11231963688461e-307, 4.69559353474421e-306, -9.584794326969e+90, 7.64681398433536e-304, -4.29227809743625e-307, 1.81037701089217e+87, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.93925524631599e-68, 2.08343... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615863715-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 679 | r | testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.11231963688461e-307, 4.69559353474421e-306, -9.584794326969e+90, 7.64681398433536e-304, -4.29227809743625e-307, 1.81037701089217e+87, -2.93112217825115e-158, 9.03412394302482e-46, 7.31195213563656e+256, -1.93925524631599e-68, 2.08343... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image_text.R
\name{image_text}
\alias{image_text}
\title{Undescribed}
\usage{
image_text(x, x_labels = TRUE, y_labels = TRUE, in_labels = FALSE, ...,
mcex = 1L, tcex = 1L)
}
\arguments{
\item{x}{Undescribed}
\item{x_labels}{Undescribed}
\... | /man/image_text.Rd | no_license | jundoll/jmisc | R | false | true | 596 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/image_text.R
\name{image_text}
\alias{image_text}
\title{Undescribed}
\usage{
image_text(x, x_labels = TRUE, y_labels = TRUE, in_labels = FALSE, ...,
mcex = 1L, tcex = 1L)
}
\arguments{
\item{x}{Undescribed}
\item{x_labels}{Undescribed}
\... |
cctable <- CCTable <- function(x,
cases,
exposure=c(),
exact=FALSE,
sort = "pvalue",
full = FALSE
) UseMethod("CCTable", x)
CCTable.data.frame <- function(x,
cases,
... | /R/CCTable_.R | no_license | Epiconcept-Paris/EpiStats | R | false | false | 3,195 | r | cctable <- CCTable <- function(x,
cases,
exposure=c(),
exact=FALSE,
sort = "pvalue",
full = FALSE
) UseMethod("CCTable", x)
CCTable.data.frame <- function(x,
cases,
... |
#' Centered Linear Terms
#'
#' Computes centered values. Used primarily in a linear regression formula.
#'
#'
#' @param x a numeric vector for which to compute the centered values. Missing values
#' are permitted and result in corresponding missing values in the output.
#' @param center an optional value to use for the... | /R/center.R | permissive | katakagi/rloadest_test | R | false | false | 1,495 | r | #' Centered Linear Terms
#'
#' Computes centered values. Used primarily in a linear regression formula.
#'
#'
#' @param x a numeric vector for which to compute the centered values. Missing values
#' are permitted and result in corresponding missing values in the output.
#' @param center an optional value to use for the... |
test_that("discounting works", {
expect_equal(
npv(
irate = 10 / 100, # i.e. 10% p.a.
dates = as.Date(c("2019-01-01", "2020-01-01")), # 1 year
cashflows = c(0, 1100)
),
1000
)
})
test_that("zero interest rate: PV = FV", {
expect_equal(
npv(
irate = 0 / 100, # i.e. 0% p.a.
... | /tests/testthat/test-npv-formal.R | permissive | jla-data/TVM | R | false | false | 4,939 | r | test_that("discounting works", {
expect_equal(
npv(
irate = 10 / 100, # i.e. 10% p.a.
dates = as.Date(c("2019-01-01", "2020-01-01")), # 1 year
cashflows = c(0, 1100)
),
1000
)
})
test_that("zero interest rate: PV = FV", {
expect_equal(
npv(
irate = 0 / 100, # i.e. 0% p.a.
... |
library(shiny)
library(sigmajs)
ui <- fluidPage(
actionButton("drop", "drop nodes & edges"),
sigmajsOutput("sg")
)
server <- function(input, output) {
# initial plot
nodes <- sg_make_nodes(75)
edges <- sg_make_edges(nodes)
# delay fro DROP
nodes$delay <- runif(nrow(nodes), 1000, 5000)
... | /demo/drop-edges-nodes-delay.R | permissive | takewiki/sigmajs | R | false | false | 889 | r | library(shiny)
library(sigmajs)
ui <- fluidPage(
actionButton("drop", "drop nodes & edges"),
sigmajsOutput("sg")
)
server <- function(input, output) {
# initial plot
nodes <- sg_make_nodes(75)
edges <- sg_make_edges(nodes)
# delay fro DROP
nodes$delay <- runif(nrow(nodes), 1000, 5000)
... |
install.packages(c("link2GI","ForestTools","sf","sp","rgeos","rgdal","mapview","doParallel","parallel","sf"))
install.packages(c("tidyverse", "rgbif", "sp", "countrycode", "CoordinateCleaner", "data.table", "rgdal", "rgeos"))
install.packages(c("tidyr","dplyr"))
require(raster)
require(link2GI)
require(ForestTools)
req... | /Big Data in nature preservation/Project_GBIF/workflow.R | no_license | johnfurie/data_analysis | R | false | false | 3,228 | r | install.packages(c("link2GI","ForestTools","sf","sp","rgeos","rgdal","mapview","doParallel","parallel","sf"))
install.packages(c("tidyverse", "rgbif", "sp", "countrycode", "CoordinateCleaner", "data.table", "rgdal", "rgeos"))
install.packages(c("tidyr","dplyr"))
require(raster)
require(link2GI)
require(ForestTools)
req... |
library(MultiAssayExperiment)
library(snpStats)
library(SNPRelate)
library(limma)
library(minfi)
library(ggpubr)
# Loading clinical data
phenotypes <- read.table("dex_stimulation_phenotypes.txt", header=T, sep="\t", check.names=F, stringsAsFactors = F)
rownames(phenotypes) <- phenotypes$Sample_ID
## Genotype Preproce... | /data_preprocessing.R | no_license | bio3github/multiomics | R | false | false | 8,761 | r | library(MultiAssayExperiment)
library(snpStats)
library(SNPRelate)
library(limma)
library(minfi)
library(ggpubr)
# Loading clinical data
phenotypes <- read.table("dex_stimulation_phenotypes.txt", header=T, sep="\t", check.names=F, stringsAsFactors = F)
rownames(phenotypes) <- phenotypes$Sample_ID
## Genotype Preproce... |
setwd("/home/frankaylward/recruitment_plots")
x <- read.table(file="testlastout.finalcoords.txt", header=T)
bounds <- read.table("testlastout.contig_boundaries.txt")
library(ggplot2)
ggplot(x) + geom_point(aes(x=coord, y=percid), colour="dodgerblue", alpha=0.3) + theme_bw() + geom_vline(xintercept = bounds$V2, linetyp... | /plot_recruitment.R | no_license | faylward/fragment_recruitment | R | false | false | 359 | r | setwd("/home/frankaylward/recruitment_plots")
x <- read.table(file="testlastout.finalcoords.txt", header=T)
bounds <- read.table("testlastout.contig_boundaries.txt")
library(ggplot2)
ggplot(x) + geom_point(aes(x=coord, y=percid), colour="dodgerblue", alpha=0.3) + theme_bw() + geom_vline(xintercept = bounds$V2, linetyp... |
# These settings are set up when the package loads
.onLoad <- function(libname = find.package("blm"), pkgname="blm") {
# Density params
options(
blm_dparams = list(
"normal" = c("mu", "sd"),
"beta" = c("alpha", "beta"),
"gamma" = c("alpha", "beta")
)
)
# Legal param values
options... | /R/zzz.R | permissive | anhnguyendepocen/blm | R | false | false | 783 | r | # These settings are set up when the package loads
.onLoad <- function(libname = find.package("blm"), pkgname="blm") {
# Density params
options(
blm_dparams = list(
"normal" = c("mu", "sd"),
"beta" = c("alpha", "beta"),
"gamma" = c("alpha", "beta")
)
)
# Legal param values
options... |
#===============================================================================
# 2019-10-22 GGP dataviz
# Population pyramid example
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
# load the package
library(tidyverse)
library(magrittr)
... | /04-pop-pyramids.R | permissive | ikashnitsky/ggp-dataviz | R | false | false | 5,527 | r | #===============================================================================
# 2019-10-22 GGP dataviz
# Population pyramid example
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
# load the package
library(tidyverse)
library(magrittr)
... |
library(revdepcheck)
# Set configure.args for sf install, set to only use source installs
# opt <- options(
# install.packages.check.source = "no",
# install.packages.compile.from.source = "always",
# pkgType = "source")
revdep_reset()
revdep_check(quiet = FALSE, num_workers = 4)
# options(op... | /revdep/check.R | permissive | baldeagle/rmapshaper | R | false | false | 323 | r | library(revdepcheck)
# Set configure.args for sf install, set to only use source installs
# opt <- options(
# install.packages.check.source = "no",
# install.packages.compile.from.source = "always",
# pkgType = "source")
revdep_reset()
revdep_check(quiet = FALSE, num_workers = 4)
# options(op... |
# Load data
filePath <- "/Users/woodie/Documents/Courses/ISyE 6416 Computational Statistics (Spring 2018)/HW/ISYE-6416/hw1/w_logret_3automanu.csv"
rawdata <- read.csv(file=filePath, header=FALSE, sep=",")
colnames(rawdata) <- c("Toyota Motor Corp.", "Ford Motor Corp.", "GM.")
summary(rawdata)
# Plot the 3d surface fo... | /hw1-regression/hw1-regression.R | no_license | jcbozonier/Gatech-ISYE-6416 | R | false | false | 1,022 | r | # Load data
filePath <- "/Users/woodie/Documents/Courses/ISyE 6416 Computational Statistics (Spring 2018)/HW/ISYE-6416/hw1/w_logret_3automanu.csv"
rawdata <- read.csv(file=filePath, header=FALSE, sep=",")
colnames(rawdata) <- c("Toyota Motor Corp.", "Ford Motor Corp.", "GM.")
summary(rawdata)
# Plot the 3d surface fo... |
/R_Gráficos/barras_error.r | permissive | BDMYRepository/Curso-VisualizacionDeDatos | R | false | false | 3,447 | r | ||
#加载文件
#file_path = "/Users/liguangping/Desktop/R/data/GSE9476_RAW";
#file_path = "/Users/brown/Desktop/R/data/GSE9476_RAW";
file_path = "/Users/brown/paper/R/data/GSE9476_RAW";
out_path = "/Users/brown/paper/R/output_files/"
setwd(file_path);
library(simpleaffy);
raw_data = read.affy(covdesc = 'covdesc.txt', path = '.'... | /R/code/process_leukemia.R | no_license | brown-2/mis_localization | R | false | false | 1,783 | r | #加载文件
#file_path = "/Users/liguangping/Desktop/R/data/GSE9476_RAW";
#file_path = "/Users/brown/Desktop/R/data/GSE9476_RAW";
file_path = "/Users/brown/paper/R/data/GSE9476_RAW";
out_path = "/Users/brown/paper/R/output_files/"
setwd(file_path);
library(simpleaffy);
raw_data = read.affy(covdesc = 'covdesc.txt', path = '.'... |
#!/applications/R/R-3.5.0/bin/Rscript
# Perform hypergeometric tests to determine whether each
# NLR-encoding gene quantile is over-represented or under-represented for
# NLRs containing each of NLR motifs 1 to 20
# (as identified using NLRAnnotator; Steuernagel et al. 2020 Plant Physiol. 183)
# using the concatenated... | /scripts/genes/NLR_gene_quantiles/hypergeometric_tests/proportion_motifs_in_NLR_quantiles_hypergeometricTest.R | permissive | ajtock/Wheat_DMC1_ASY1_paper | R | false | false | 16,853 | r | #!/applications/R/R-3.5.0/bin/Rscript
# Perform hypergeometric tests to determine whether each
# NLR-encoding gene quantile is over-represented or under-represented for
# NLRs containing each of NLR motifs 1 to 20
# (as identified using NLRAnnotator; Steuernagel et al. 2020 Plant Physiol. 183)
# using the concatenated... |
##' geom_segment_c supports coloring segment with continuous colors
##'
##'
##' @title geom_segment_c
##' @param mapping aes mapping
##' @param data data
##' @param position position
##' @param lineend lineend
##' @param na.rm logical
##' @param show.legend logical
##' @param inherit.aes logical
##' @param arrow specif... | /R/geom_segment_c.R | no_license | mmloine/gglayer | R | false | false | 5,822 | r | ##' geom_segment_c supports coloring segment with continuous colors
##'
##'
##' @title geom_segment_c
##' @param mapping aes mapping
##' @param data data
##' @param position position
##' @param lineend lineend
##' @param na.rm logical
##' @param show.legend logical
##' @param inherit.aes logical
##' @param arrow specif... |
# Statistics One, Lecture 6, Week 2, example script / written by Zsolt Kazsi
# Read data, plot histograms, get descriptives, examine scatterplots, run correlations
library(psych) # load psych
# Step 1: Read data into a dataframe called "impact"
impact <- read.table("STATS1.EX.02.TXT",header=T)
# Step 2: what kind of ... | /st101_wk2_practice1.R | no_license | kmaclare/kzsR | R | false | false | 1,071 | r | # Statistics One, Lecture 6, Week 2, example script / written by Zsolt Kazsi
# Read data, plot histograms, get descriptives, examine scatterplots, run correlations
library(psych) # load psych
# Step 1: Read data into a dataframe called "impact"
impact <- read.table("STATS1.EX.02.TXT",header=T)
# Step 2: what kind of ... |
library(R2BayesX)
### Name: delete.neighbor
### Title: Delete Neighborhood Relations
### Aliases: delete.neighbor
### Keywords: spatial
### ** Examples
## read the graph file
file <- file.path(find.package("R2BayesX"), "examples", "Germany.gra")
germany <- read.gra(file)
## delete some neighbors
get.neighbor(germa... | /data/genthat_extracted_code/R2BayesX/examples/delete.neighbor.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 423 | r | library(R2BayesX)
### Name: delete.neighbor
### Title: Delete Neighborhood Relations
### Aliases: delete.neighbor
### Keywords: spatial
### ** Examples
## read the graph file
file <- file.path(find.package("R2BayesX"), "examples", "Germany.gra")
germany <- read.gra(file)
## delete some neighbors
get.neighbor(germa... |
library(dplyr)
library(brms)
library(cmdstanr)
library(ggplot2)
library(bayesplot)
theme_set(theme_bw())
setwd(here::here())
source("scripts/05_load_data_for_analysis.R")
# Model with variation by ecoregion
mod_regional <- brm(
stdByECOREGION + 0.01 ~
ECOREGION * (mean_temp_dev * mean_wave_energy_dev) +
me... | /scripts/06_model.R | no_license | jebyrnes/temp_kelp_change | R | false | false | 1,641 | r | library(dplyr)
library(brms)
library(cmdstanr)
library(ggplot2)
library(bayesplot)
theme_set(theme_bw())
setwd(here::here())
source("scripts/05_load_data_for_analysis.R")
# Model with variation by ecoregion
mod_regional <- brm(
stdByECOREGION + 0.01 ~
ECOREGION * (mean_temp_dev * mean_wave_energy_dev) +
me... |
# # dplyr vs. SQL
# Copyright © 2010–2018 Cloudera. All rights reserved.
# Not to be reproduced or shared without prior written
# consent from Cloudera.
# Which is easier to write: dplyr or SQL?
# When asking simple questions of your data, SQL queries
# are often easy to write and understand. But when asking
# more... | /code-r/supplements/03_dplyr_vs_SQL.R | no_license | marcioshochi/data-scientist-trainning | R | false | false | 2,005 | r | # # dplyr vs. SQL
# Copyright © 2010–2018 Cloudera. All rights reserved.
# Not to be reproduced or shared without prior written
# consent from Cloudera.
# Which is easier to write: dplyr or SQL?
# When asking simple questions of your data, SQL queries
# are often easy to write and understand. But when asking
# more... |
# Module Documentation ----
#' Abstraction Module Selector
#'
#' @description
#'
#' This module allows the user to select an available ReviewR abstraction module
#' from a dropdown list. It dynamically returns the abstraction setup and
#' instrument user interfaces as well as collected chart abstraction informatio... | /R/mod_abstraction_setup.R | permissive | thewileylab/ReviewR | R | false | false | 6,238 | r | # Module Documentation ----
#' Abstraction Module Selector
#'
#' @description
#'
#' This module allows the user to select an available ReviewR abstraction module
#' from a dropdown list. It dynamically returns the abstraction setup and
#' instrument user interfaces as well as collected chart abstraction informatio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{verify_result}
\alias{verify_result}
\title{Verify API result}
\usage{
verify_result(res)
}
\arguments{
\item{res}{API result ot check}
}
\value{
No return value.
}
\description{
Check API result for error codes
}
| /man/verify_result.Rd | no_license | TroyHernandez/tinyspotifyr | R | false | true | 306 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{verify_result}
\alias{verify_result}
\title{Verify API result}
\usage{
verify_result(res)
}
\arguments{
\item{res}{API result ot check}
}
\value{
No return value.
}
\description{
Check API result for error codes
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rCube-package.R
\docType{data}
\name{exonCounts}
\alias{exonCounts}
\title{\code{rCubeExperiment} container for example exons including read counts}
\description{
\code{rCubeExperiment} container for example exons including read counts
}
\aut... | /man/exonCounts.Rd | permissive | gagneurlab/rCube | R | false | true | 390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rCube-package.R
\docType{data}
\name{exonCounts}
\alias{exonCounts}
\title{\code{rCubeExperiment} container for example exons including read counts}
\description{
\code{rCubeExperiment} container for example exons including read counts
}
\aut... |
# Load tidyr and purrr
library(tidyr)
library(purrr)
library(countrycode)
# Print the votes dataset
votes<- readRDS("votes.RDS")
# Add a country column within the mutate: votes_processed
votes_processed <- votes %>%
filter(vote <= 3) %>%
mutate(year = session + 1945, country = countrycode(cco... | /09 Case Study_Exploratory_Data_Analysis/03 Tidy_Modeling_Broom/07 Perf_LM_NestedDat.R | no_license | ArmandoReyesRepo/RCode | R | false | false | 1,025 | r | # Load tidyr and purrr
library(tidyr)
library(purrr)
library(countrycode)
# Print the votes dataset
votes<- readRDS("votes.RDS")
# Add a country column within the mutate: votes_processed
votes_processed <- votes %>%
filter(vote <= 3) %>%
mutate(year = session + 1945, country = countrycode(cco... |
########### CountClust without blacks and negros ######################
tab <- get(load("../output/table_word_frequencies.rda"))
tab_data_frame <- data.frame(tab)
colnames(tab_data_frame) <- colnames(tab)
tab2_data_frame <- tab_data_frame[, !(colnames(tab_data_frame) %in% c("black", "blacks", "africa", "afrika", ... | /codes/CountClust_analysis_2.R | no_license | kkdey/Black_magazines | R | false | false | 2,951 | r |
########### CountClust without blacks and negros ######################
tab <- get(load("../output/table_word_frequencies.rda"))
tab_data_frame <- data.frame(tab)
colnames(tab_data_frame) <- colnames(tab)
tab2_data_frame <- tab_data_frame[, !(colnames(tab_data_frame) %in% c("black", "blacks", "africa", "afrika", ... |
localinfmeas=function(est,fix.nugget=TRUE,diag.plot=TRUE,type.plot="all",c=3){
if(!inherits(est,'SAEMSpatialCens')) stop("an object of the class SAEMSpatialCens must be provided")
if(!is.logical(fix.nugget)) stop("fix.nugget must be TRUE or FALSE")
if(!is.logical(diag.plot)) stop("diag.plot must be TRUE or F... | /R/localinfmeasfin.R | no_license | cran/CensSpatial | R | false | false | 1,556 | r | localinfmeas=function(est,fix.nugget=TRUE,diag.plot=TRUE,type.plot="all",c=3){
if(!inherits(est,'SAEMSpatialCens')) stop("an object of the class SAEMSpatialCens must be provided")
if(!is.logical(fix.nugget)) stop("fix.nugget must be TRUE or FALSE")
if(!is.logical(diag.plot)) stop("diag.plot must be TRUE or F... |
#----------------------------------------------------------------------------#
# #
# QUALITY CONTROL CHARTS IN R #
# #
# A... | /R/qcc.R | no_license | luca-scr/qcc | R | false | false | 34,065 | r | #----------------------------------------------------------------------------#
# #
# QUALITY CONTROL CHARTS IN R #
# #
# A... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ascend_scran.R
\name{scranCellCycle}
\alias{scranCellCycle}
\title{scranCellCycle}
\usage{
scranCellCycle(object, training.set)
}
\arguments{
\item{object}{An \linkS4class{EMSet} object.}
\item{training.set}{A training dataset containing pai... | /man/scranCellCycle.Rd | no_license | quanaibn/ascend | R | false | true | 555 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ascend_scran.R
\name{scranCellCycle}
\alias{scranCellCycle}
\title{scranCellCycle}
\usage{
scranCellCycle(object, training.set)
}
\arguments{
\item{object}{An \linkS4class{EMSet} object.}
\item{training.set}{A training dataset containing pai... |
###########################################################################/**
# @set "class=list"
# @RdocMethod mergeBoxplotStats
#
# @title "Merges a list of boxplot.stats() elements"
#
# \description{
# @get "title".
# }
#
# @synopsis
#
# \arguments{
# \item{stats}{A @list of elements each in a forma... | /aroma.core/R/mergeBoxplotStats.list.R | no_license | ingted/R-Examples | R | false | false | 2,476 | r | ###########################################################################/**
# @set "class=list"
# @RdocMethod mergeBoxplotStats
#
# @title "Merges a list of boxplot.stats() elements"
#
# \description{
# @get "title".
# }
#
# @synopsis
#
# \arguments{
# \item{stats}{A @list of elements each in a forma... |
library(ggplot2)
#Top 10 Youngest President script
agePres <- c(42 + 322/365, 43 + 236/365,
46 + 154/365, 47 + 169/365,
47 + 351/365,48 + 101/365,
49 + 105/365, 49 + 122/365,
50 + 183/365, 51 + 6/365)
namePres <- c("Theodore Roosevelt", "John F.... | /TenYoungestPresidents.R | no_license | JFivelsdal/PresidentMetrics | R | false | false | 1,677 | r |
library(ggplot2)
#Top 10 Youngest President script
agePres <- c(42 + 322/365, 43 + 236/365,
46 + 154/365, 47 + 169/365,
47 + 351/365,48 + 101/365,
49 + 105/365, 49 + 122/365,
50 + 183/365, 51 + 6/365)
namePres <- c("Theodore Roosevelt", "John F.... |
# 1. Merges the training and the test sets to create one data set.
setwd("C:/Cursos-Online/Getting and Cleaning Data/files")
x_train <- read.table("X_train.txt")
x_test <- read.table("X_test.txt")
subject_train <- read.table("subject_train.txt")
subject_test <- read.table("subject_test.txt")
y_train <- read.table("y_tr... | /run_analysis.R | no_license | copo2014/getandclean | R | false | false | 1,688 | r | # 1. Merges the training and the test sets to create one data set.
setwd("C:/Cursos-Online/Getting and Cleaning Data/files")
x_train <- read.table("X_train.txt")
x_test <- read.table("X_test.txt")
subject_train <- read.table("subject_train.txt")
subject_test <- read.table("subject_test.txt")
y_train <- read.table("y_tr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/atp_matches.R
\name{atp_matches}
\alias{atp_matches}
\title{ATP Playing Activity}
\format{A data frame with 687,959 rows and 72 variables}
\source{
\url{https://github.com/JeffSackmann/tennis_atp}
}
\description{
This dataset contains summari... | /man/atp_matches.Rd | no_license | yiechen/deuce | R | false | true | 6,408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/atp_matches.R
\name{atp_matches}
\alias{atp_matches}
\title{ATP Playing Activity}
\format{A data frame with 687,959 rows and 72 variables}
\source{
\url{https://github.com/JeffSackmann/tennis_atp}
}
\description{
This dataset contains summari... |
## File Name: summary.tam.Q3.R
## File Version: 9.04
# summary tam.Q3 method
summary.tam.Q3 <- function( object, ... )
{
cat("Summary of Q3 and adjusted Q3 statistics (based on WLEs)\n")
obji <- object$Q3_summary
obji[, -1 ] <- round( obji[,-1], 4 )
print(obji)
}
##########################... | /R/summary.tam.Q3.R | no_license | cran/TAM | R | false | false | 360 | r | ## File Name: summary.tam.Q3.R
## File Version: 9.04
# summary tam.Q3 method
summary.tam.Q3 <- function( object, ... )
{
cat("Summary of Q3 and adjusted Q3 statistics (based on WLEs)\n")
obji <- object$Q3_summary
obji[, -1 ] <- round( obji[,-1], 4 )
print(obji)
}
##########################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auc_function.R
\name{auc}
\alias{auc}
\title{Calculates AUC (Area under the Curve) using trapezoidal approximation}
\usage{
auc(hr.v, far.v)
}
\arguments{
\item{hr.v}{a vector of hit rates}
\item{far.v}{A vector of false alarm rates}
}
\desc... | /man/auc.Rd | no_license | JackStat/FFTrees | R | false | true | 546 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auc_function.R
\name{auc}
\alias{auc}
\title{Calculates AUC (Area under the Curve) using trapezoidal approximation}
\usage{
auc(hr.v, far.v)
}
\arguments{
\item{hr.v}{a vector of hit rates}
\item{far.v}{A vector of false alarm rates}
}
\desc... |
#' Filter a data table
#' @description This just filters the data table based on IHME or CHIME
#' @export
FilterDataTable<-function(dt,ModelType,ForecastType){
if (ModelType == "IHME") {
if (ForecastType == "Today"){
cols<-c(1:10)
} else if(ForecastType == "Seven"){
cols<-c(1:10)
} else if(... | /inst/apps/file_test/www/3_load_functions/FilterDataTable.R | permissive | Auburngrads/CHAD3 | R | false | false | 1,091 | r | #' Filter a data table
#' @description This just filters the data table based on IHME or CHIME
#' @export
FilterDataTable<-function(dt,ModelType,ForecastType){
if (ModelType == "IHME") {
if (ForecastType == "Today"){
cols<-c(1:10)
} else if(ForecastType == "Seven"){
cols<-c(1:10)
} else if(... |
# Read Data
mydata <- './Data/household_power_consumption.txt'
data <- read.table(mydata, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
# Plot 4
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalAc... | /plot4.R | no_license | IevaVitola/ExData_Plotting1 | R | false | false | 1,285 | r | # Read Data
mydata <- './Data/household_power_consumption.txt'
data <- read.table(mydata, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
# Plot 4
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalAc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proxyFunctions.R
\name{allFieldStrings}
\alias{allFieldStrings}
\title{List of the Distinct String Values for a Specified Python Field}
\usage{
allFieldStrings(..., .ev = XRPython::RPython(), .get = NA)
}
\description{
[Python Documentation]
... | /man/allFieldStrings.Rd | no_license | bigdatasciencegroup/shakespeare | R | false | true | 546 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proxyFunctions.R
\name{allFieldStrings}
\alias{allFieldStrings}
\title{List of the Distinct String Values for a Specified Python Field}
\usage{
allFieldStrings(..., .ev = XRPython::RPython(), .get = NA)
}
\description{
[Python Documentation]
... |
#' Simulate dataset
#'
#' Takes a counts matrix, estimates parameters and simulates data using various
#' models.
#'
#' @param counts Counts matrix to estimate parameters from
#' @param sims Vector of simulations to compare
#' @param seed Random seed
#' @param bp BiocParallel BPPARAM object
#'
#' @return List with the ... | /R/simulate_datasets.R | permissive | anilbey/splatter-paper | R | false | false | 5,631 | r | #' Simulate dataset
#'
#' Takes a counts matrix, estimates parameters and simulates data using various
#' models.
#'
#' @param counts Counts matrix to estimate parameters from
#' @param sims Vector of simulations to compare
#' @param seed Random seed
#' @param bp BiocParallel BPPARAM object
#'
#' @return List with the ... |
#' Plot the confidence intervals, and the confidence interval determination
#' procedures performance, in a single-stage single-arm trial design for a
#' single binary endpoint
#'
#' Plots the confidence intervals, and the performance of the confidence
#' interval determination procedures, in a single-stage single-arm ... | /R/plot.sa_ci_fixed.R | no_license | mjg211/singlearm | R | false | false | 13,207 | r | #' Plot the confidence intervals, and the confidence interval determination
#' procedures performance, in a single-stage single-arm trial design for a
#' single binary endpoint
#'
#' Plots the confidence intervals, and the performance of the confidence
#' interval determination procedures, in a single-stage single-arm ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_longer_crime.R
\docType{data}
\name{data_longer_crime}
\alias{data_longer_crime}
\title{Corners of the city of Buenos Aires with meteorological and environmental factors}
\format{
A data frame with 2023 rows and 136 columns, the variable... | /man/data_longer_crime.Rd | permissive | ichsan2895/sknifedatar | R | false | true | 2,117 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_longer_crime.R
\docType{data}
\name{data_longer_crime}
\alias{data_longer_crime}
\title{Corners of the city of Buenos Aires with meteorological and environmental factors}
\format{
A data frame with 2023 rows and 136 columns, the variable... |
#INSTALLING PACKAGES (previously installed packages commented - please uncomment if necessary)
# install.packages("sp")
# install.packages("spdep")
#SET WORKING DIRECTORY
setwd("C:/Andrzej/dydaktyka/ekonometria_przestrzenna/!materialy")
# clear the workspace, plots and console
rm(list = ls())
if(!is.null(dev... | /SGH/Spatial Econometrics/Home/Home6/6_multi_source.R | no_license | Valkoiset/myrepo | R | false | false | 2,534 | r | #INSTALLING PACKAGES (previously installed packages commented - please uncomment if necessary)
# install.packages("sp")
# install.packages("spdep")
#SET WORKING DIRECTORY
setwd("C:/Andrzej/dydaktyka/ekonometria_przestrzenna/!materialy")
# clear the workspace, plots and console
rm(list = ls())
if(!is.null(dev... |
\name{ceSimErrorsEqualvSRI}
\alias{ceSimErrorsEqualvSRI}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Simulate vSRI under combined group and individual location errors
}
\description{
Generate an estimated very simple ratio index under conditions where both group and individual location erro... | /man/ceSimErrorsEqualvSRI.Rd | no_license | cran/assocInd | R | false | false | 3,036 | rd | \name{ceSimErrorsEqualvSRI}
\alias{ceSimErrorsEqualvSRI}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Simulate vSRI under combined group and individual location errors
}
\description{
Generate an estimated very simple ratio index under conditions where both group and individual location erro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diffeqr.R
\name{jitoptimize_ode}
\alias{jitoptimize_ode}
\title{Jit Optimize an ODEProblem}
\usage{
jitoptimize_ode(de, prob)
}
\arguments{
\item{de}{the current diffeqr environment}
\item{prob}{an ODEProblem}
}
\description{
This function J... | /man/jitoptimize_ode.Rd | no_license | standardgalactic/diffeqr | R | false | true | 866 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diffeqr.R
\name{jitoptimize_ode}
\alias{jitoptimize_ode}
\title{Jit Optimize an ODEProblem}
\usage{
jitoptimize_ode(de, prob)
}
\arguments{
\item{de}{the current diffeqr environment}
\item{prob}{an ODEProblem}
}
\description{
This function J... |
conc <- function (e_ij, industry.id, region.id, na.rm = TRUE) {
conc_workfile <- data.frame(as.character(region.id), as.character(industry.id), e_ij)
colnames(conc_workfile) <- c("j_region", "i_industry", "e_ij")
cat("Spatial concentration of industries", "\n")
if (na.rm == TRUE) {
conc_wor... | /R/conc.R | no_license | cran/REAT | R | false | false | 2,159 | r | conc <- function (e_ij, industry.id, region.id, na.rm = TRUE) {
conc_workfile <- data.frame(as.character(region.id), as.character(industry.id), e_ij)
colnames(conc_workfile) <- c("j_region", "i_industry", "e_ij")
cat("Spatial concentration of industries", "\n")
if (na.rm == TRUE) {
conc_wor... |
library(sensors4plumes)
### Name: extractSpatialDataFrame
### Title: Extract some values of Simulations to a SpatialDataFrame with
### the same spatial properties.
### Aliases: extractSpatialDataFrame
### ** Examples
data(SimulationsSmall)
SimulationsSmall_134_21 = extractSpatialDataFrame(
SimulationsSmall,
p... | /data/genthat_extracted_code/sensors4plumes/examples/extractSpatialDataFrame.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 357 | r | library(sensors4plumes)
### Name: extractSpatialDataFrame
### Title: Extract some values of Simulations to a SpatialDataFrame with
### the same spatial properties.
### Aliases: extractSpatialDataFrame
### ** Examples
data(SimulationsSmall)
SimulationsSmall_134_21 = extractSpatialDataFrame(
SimulationsSmall,
p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PaleyIIPrimePower.R
\name{PaleyIIPrimePower}
\alias{PaleyIIPrimePower}
\title{PaleyIIPrimePower}
\usage{
PaleyIIPrimePower(order)
}
\arguments{
\item{order}{integer}
}
\value{
Hadamard matrix of the given order.
}
\description{
... | /man/PaleyIIPrimePower.Rd | no_license | cran/HadamardR | R | false | true | 662 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PaleyIIPrimePower.R
\name{PaleyIIPrimePower}
\alias{PaleyIIPrimePower}
\title{PaleyIIPrimePower}
\usage{
PaleyIIPrimePower(order)
}
\arguments{
\item{order}{integer}
}
\value{
Hadamard matrix of the given order.
}
\description{
... |
library(coda)
library(gdata)
library(boot)
library(coda)
version <- "i-009f9c75a9206a0ac"
#######################################################################################################################################
# load data
load(file = "../Library/SalixBorerWide.rda")
site <- subset(SalixBorerWide, se... | /FiguresTablesEtc/figure9.R | permissive | CCheCastaldo/CheCastaldo_etal_2019_EcolMongr | R | false | false | 17,138 | r | library(coda)
library(gdata)
library(boot)
library(coda)
version <- "i-009f9c75a9206a0ac"
#######################################################################################################################################
# load data
load(file = "../Library/SalixBorerWide.rda")
site <- subset(SalixBorerWide, se... |
ExpertiseInd=function(emp_id){
library(RNeo4j)
library(igraph)
library(moments)
graph = startGraph("http://localhost:7474/db/data/", username="neo4j", password="hitesh16")
queryedge = paste("match (a:Employee {emp_id:",emp_id,"})-[r:learning]->(b:Employee)
return sum(r.weight)",sep="... | /web/WEB-INF/lib/scripts/expertiseIndividual.R | no_license | rashmi-icube/newoweb | R | false | false | 386 | r | ExpertiseInd=function(emp_id){
library(RNeo4j)
library(igraph)
library(moments)
graph = startGraph("http://localhost:7474/db/data/", username="neo4j", password="hitesh16")
queryedge = paste("match (a:Employee {emp_id:",emp_id,"})-[r:learning]->(b:Employee)
return sum(r.weight)",sep="... |
get_full_cormat <-
function(data_m_fc_withfeats,targeted.index=NA,cor.method="spearman",write.files=TRUE){
Sys.sleep(0.2)
allsig_pcornetwork<-{}
cormat<-{}
allsig_pcornetwork_fdr0.05<-{}
metab_names<-paste(data_m_fc_withfeats$mz,data_m_fc_withfeats$time,sep="_")
rnames<-paste("mzid_",seq(1,dim(data_m_fc_with... | /R/get_full_cormat.R | no_license | kravneet/xmsPANDA | R | false | false | 2,244 | r | get_full_cormat <-
function(data_m_fc_withfeats,targeted.index=NA,cor.method="spearman",write.files=TRUE){
Sys.sleep(0.2)
allsig_pcornetwork<-{}
cormat<-{}
allsig_pcornetwork_fdr0.05<-{}
metab_names<-paste(data_m_fc_withfeats$mz,data_m_fc_withfeats$time,sep="_")
rnames<-paste("mzid_",seq(1,dim(data_m_fc_with... |
audpc <-
function(evaluation, dates, type = "absolute") {
if(!(is.matrix(evaluation) | is.data.frame(evaluation))){
evaluation<-rbind(evaluation)
}
n<-length(dates)
k<-ncol(evaluation)
if (n!=k) {
cat("Error:\nThe number of dates of evaluation \nmust agree with the number of evaluations\n")
return()
}
audpc<... | /R/audpc.R | no_license | cran/agricolae | R | false | false | 637 | r | audpc <-
function(evaluation, dates, type = "absolute") {
if(!(is.matrix(evaluation) | is.data.frame(evaluation))){
evaluation<-rbind(evaluation)
}
n<-length(dates)
k<-ncol(evaluation)
if (n!=k) {
cat("Error:\nThe number of dates of evaluation \nmust agree with the number of evaluations\n")
return()
}
audpc<... |
print("This file was created within R Studio")
Print("and now it lives on GitHub") | /Testing R.R | no_license | antonypulikkotil/Coursera-course | R | false | false | 82 | r | print("This file was created within R Studio")
Print("and now it lives on GitHub") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/request_generate.R
\name{request_generate}
\alias{request_generate}
\title{Generate a Google Sheets API request}
\usage{
request_generate(
endpoint = character(),
params = list(),
key = NULL,
token = gs4_token()
)
}
\arguments{
\item{... | /man/request_generate.Rd | permissive | xmorgan/googlesheets4 | R | false | true | 3,048 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/request_generate.R
\name{request_generate}
\alias{request_generate}
\title{Generate a Google Sheets API request}
\usage{
request_generate(
endpoint = character(),
params = list(),
key = NULL,
token = gs4_token()
)
}
\arguments{
\item{... |
thetaML <-
function(cellCounts) cellCounts/sum(cellCounts)
| /R/thetaML.R | no_license | cran/synRNASeqNet | R | false | false | 59 | r | thetaML <-
function(cellCounts) cellCounts/sum(cellCounts)
|
Sys.setenv(TZ = 'GMT')
br.rank <-
function (x)
{
t(apply(coredata(-x), 1, rank, na.last = "keep"))
}
bt.apply.matrix <-
function (b, xfun = Cl, ...)
{
out = b
out[] = NA
nsymbols = ncol(b)
xfun = match.fun(xfun)
for (i in 1:nsymbols) {
msg = try(xfun(coredata(b[, i]... | /RMD/FAA-Strategy/files/src/SRC_FAA_Strategy.R | permissive | rnfc/rnfc.github.io | R | false | false | 55,522 | r | Sys.setenv(TZ = 'GMT')
br.rank <-
function (x)
{
t(apply(coredata(-x), 1, rank, na.last = "keep"))
}
bt.apply.matrix <-
function (b, xfun = Cl, ...)
{
out = b
out[] = NA
nsymbols = ncol(b)
xfun = match.fun(xfun)
for (i in 1:nsymbols) {
msg = try(xfun(coredata(b[, i]... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/my.data.R
\docType{data}
\name{my.data}
\alias{my.data}
\title{my.data}
\format{A data frame of 32 observations and 9 variables.
\describe{
\item{report_date}{Date when report was published by USVI Department of Health, YYYY-mm-dd}
... | /man/my.data.Rd | no_license | cran/dataMeta | R | false | true | 1,378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/my.data.R
\docType{data}
\name{my.data}
\alias{my.data}
\title{my.data}
\format{A data frame of 32 observations and 9 variables.
\describe{
\item{report_date}{Date when report was published by USVI Department of Health, YYYY-mm-dd}
... |
library(data.table)
set.seed(99)
fam2 <- fread('/home/kulmsc/athena/ukbiobank/calls/ukbb.1.fam',data.table = F,stringsAsFactors = F)
i.20 <- sample(1:nrow(fam2),floor(0.2*nrow(fam2)),replace = F)
fwrite(data.frame(row=i.20,IID=fam2[,2][i.20]),'/athena/elementolab/scratch/anm2868/vQTL/ukb_vqtl/output/GWAS/preprocess/ph... | /scripts/gwas/preprocess/split_80_20.R | permissive | drewmard/ukb_vqtl | R | false | false | 396 | r | library(data.table)
set.seed(99)
fam2 <- fread('/home/kulmsc/athena/ukbiobank/calls/ukbb.1.fam',data.table = F,stringsAsFactors = F)
i.20 <- sample(1:nrow(fam2),floor(0.2*nrow(fam2)),replace = F)
fwrite(data.frame(row=i.20,IID=fam2[,2][i.20]),'/athena/elementolab/scratch/anm2868/vQTL/ukb_vqtl/output/GWAS/preprocess/ph... |
library(shiny)
library(genomeIntervals)
library(lattice)
library(Hmisc)
library(ape)
library(data.table)
options(shiny.maxRequestSize = -1)
thetas.headers <- c("(indexStart,indexStop)(firstPos_withData,lastPos_withData)(WinStart,WinStop)","Chr","WinCenter","tW","tP","tF","tH","tL","Tajima","fuf","fud","fayh","zeng","nS... | /server.R | no_license | Fabunanr/Tools-For-ANGSD | R | false | false | 18,912 | r | library(shiny)
library(genomeIntervals)
library(lattice)
library(Hmisc)
library(ape)
library(data.table)
options(shiny.maxRequestSize = -1)
thetas.headers <- c("(indexStart,indexStop)(firstPos_withData,lastPos_withData)(WinStart,WinStop)","Chr","WinCenter","tW","tP","tF","tH","tL","Tajima","fuf","fud","fayh","zeng","nS... |
# File read_hru.R
# Part of the SWAT2R R package, http://www.rforge.net/SWAT2R/ ;
# http://cran.r-project.org/web/packages/SWAT2R (not available yet)
# Copyright 2011-2012 Mauricio Zambrano-Bigiarini
# Distributed under GPL 2 or later
#############################################... | /Functions/SWAT2R.R | no_license | rybyrnes/SWAT-R | R | false | false | 8,840 | r | # File read_hru.R
# Part of the SWAT2R R package, http://www.rforge.net/SWAT2R/ ;
# http://cran.r-project.org/web/packages/SWAT2R (not available yet)
# Copyright 2011-2012 Mauricio Zambrano-Bigiarini
# Distributed under GPL 2 or later
#############################################... |
##############load library###############
library(caret)
library(randomForest)
library(dplyr)
train = readRDS("~/Zillow-Price/group_data/TrainClnedRnd2_yadi_mod.rds")
fullset = readRDS("~/Zillow-Price/group_data/PropertiesClnedRnd2_yadi_mod.rds")
############ add feature: price per area ###############
train = train ... | /yadi_rf_ClnedRnd2_yadi_mod.R | no_license | liyadi81/Zillow-Price | R | false | false | 5,754 | r | ##############load library###############
library(caret)
library(randomForest)
library(dplyr)
train = readRDS("~/Zillow-Price/group_data/TrainClnedRnd2_yadi_mod.rds")
fullset = readRDS("~/Zillow-Price/group_data/PropertiesClnedRnd2_yadi_mod.rds")
############ add feature: price per area ###############
train = train ... |
pow <- function(x,power)
{
return(x^power)
}
CollapseFromTo <- function(x,from,to,FUN, ...){
x <- as.data.frame(x)
f <- match.fun(FUN)
if (from == to){
return(x[ , from])
} else {
return(apply(x[ , from:to], 1 , f, ...))
}
}
quant <- function(Express... | /R/base.R | no_license | kullrich/myTAI | R | false | false | 3,061 | r |
pow <- function(x,power)
{
return(x^power)
}
CollapseFromTo <- function(x,from,to,FUN, ...){
x <- as.data.frame(x)
f <- match.fun(FUN)
if (from == to){
return(x[ , from])
} else {
return(apply(x[ , from:to], 1 , f, ...))
}
}
quant <- function(Express... |
library(shiny)
library(multcomp)
shinyServer(
function(input, output,session) {
#panel 0 num
source("0num_server.R", local=TRUE,encoding = "utf-8")$value
#panel 1 Kmeans
source("1Kmeans_server.R", local=TRUE,encoding = "utf-8")$value
#panel 2 HC
source("2HC_server.R", local=TRUE,encoding = "utf... | /9MFSca/server.R | permissive | mephas/mephas_web | R | false | false | 348 | r | library(shiny)
library(multcomp)
shinyServer(
function(input, output,session) {
#panel 0 num
source("0num_server.R", local=TRUE,encoding = "utf-8")$value
#panel 1 Kmeans
source("1Kmeans_server.R", local=TRUE,encoding = "utf-8")$value
#panel 2 HC
source("2HC_server.R", local=TRUE,encoding = "utf... |
lines.raw <-
"102103104105107108109110111112114115116117118119120121122123124125126127128129131132133134135136138139140141142143145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199201202203204205206207208209... | /data.preprocessing.R | no_license | adambondarzewski/dssHackaton2018 | R | false | false | 853 | r | lines.raw <-
"102103104105107108109110111112114115116117118119120121122123124125126127128129131132133134135136138139140141142143145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199201202203204205206207208209... |
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: #
# SCRIPT TO FIT THE "EXTERNAL" SNORKEL DETECTION EFFICIENCY MODEL #
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: #
# THIS MODEL DOES NOT ESTIMATE ABUNDANCE INTERNALLY,
# USES THE EXTERNALLY ESTIMATED ABUNDANCE USING MLE METHODS A... | /sim-eval/04b-fit-external.R | permissive | bstaton1/snk-eff-ms-analysis | R | false | false | 4,262 | r | # ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: #
# SCRIPT TO FIT THE "EXTERNAL" SNORKEL DETECTION EFFICIENCY MODEL #
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: #
# THIS MODEL DOES NOT ESTIMATE ABUNDANCE INTERNALLY,
# USES THE EXTERNALLY ESTIMATED ABUNDANCE USING MLE METHODS A... |
#----------------------------------------------------------------------------------------------------------
# Taller Matrices
#----------------------------------------------------------------------------------------------------------
library(pracma)
library(Matrix)
A... | /talleres/Taller Matrices.R | no_license | santos-nunez/algoritmos- | R | false | false | 11,478 | r | #----------------------------------------------------------------------------------------------------------
# Taller Matrices
#----------------------------------------------------------------------------------------------------------
library(pracma)
library(Matrix)
A... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doc_package.R
\docType{package}
\name{fcuk-package}
\alias{fcuk-package}
\alias{fcuk}
\title{fcuk}
\description{
Automatically suggests a correction when a typo occurs.
}
\author{
vincent <vincent@thinkr.fr>
}
| /man/fcuk-package.Rd | no_license | halzahrani/fcuk | R | false | true | 301 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doc_package.R
\docType{package}
\name{fcuk-package}
\alias{fcuk-package}
\alias{fcuk}
\title{fcuk}
\description{
Automatically suggests a correction when a typo occurs.
}
\author{
vincent <vincent@thinkr.fr>
}
|
library(TSrepr)
### Name: mae
### Title: MAE
### Aliases: mae
### ** Examples
mae(runif(50), runif(50))
| /data/genthat_extracted_code/TSrepr/examples/mae.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 112 | r | library(TSrepr)
### Name: mae
### Title: MAE
### Aliases: mae
### ** Examples
mae(runif(50), runif(50))
|
##CHG: NO CHANGE
shinyServer(function(input, output) {
## Render table
output$TableOut.byNetwork <- renderTable({
DFagg.LN[network == input$NetWork.In, -"network"]
}, align = "r")
})
| /01d-basic-solution-modules/server.R | no_license | FleurLec/shiny-material | R | false | false | 212 | r | ##CHG: NO CHANGE
shinyServer(function(input, output) {
## Render table
output$TableOut.byNetwork <- renderTable({
DFagg.LN[network == input$NetWork.In, -"network"]
}, align = "r")
})
|
\name{getFwkParam}
\alias{getFwkParam}
\title{
Get Param Value from mutSignature Object
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
getFwkParam(x, label)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x}{
%% ~~Describe \code{x} her... | /man/getFwkParam.Rd | no_license | dami82/mutSignatures_dev | R | false | false | 1,747 | rd | \name{getFwkParam}
\alias{getFwkParam}
\title{
Get Param Value from mutSignature Object
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
getFwkParam(x, label)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x}{
%% ~~Describe \code{x} her... |
# processDataRutOnly.R 11/24/2013
# Added drop=FALSE to lines 19,20
processDataRutOnly = function(costBigRut,
deltaBigRut,
udMatrixRut,
constants,
runNumber) {
fileNameOutput = paste('run',runNumber,'OptimalResult.Rdata',se... | /processDataRutOnly.R | no_license | normanJosephy/Transaction-Cost-R-Code | R | false | false | 1,753 | r | # processDataRutOnly.R 11/24/2013
# Added drop=FALSE to lines 19,20
processDataRutOnly = function(costBigRut,
deltaBigRut,
udMatrixRut,
constants,
runNumber) {
fileNameOutput = paste('run',runNumber,'OptimalResult.Rdata',se... |
setwd("../example-stock-assessment-start")
#install.packages("remotes")
#library(remotes)
# remotes::install_github("fishfollower/sam/stockassessment")
# remotes::install_github("fishfollower/SAM/stockassessment", INSTALL_opts=c("--no-multiarch"))
# because this is a special package we need to add it to the taf ana... | /Misc/WKTAF/example-stock-assessment-start/worksheet.R | no_license | ices-eg/wg_WGEEL | R | false | false | 1,443 | r | setwd("../example-stock-assessment-start")
#install.packages("remotes")
#library(remotes)
# remotes::install_github("fishfollower/sam/stockassessment")
# remotes::install_github("fishfollower/SAM/stockassessment", INSTALL_opts=c("--no-multiarch"))
# because this is a special package we need to add it to the taf ana... |
library(shiny)
library(dplyr)
library(shinydashboard)
library(plotly)
library(ggplot2)
library(lubridate)
library(tidyr)
library(shinyjs)
library(magrittr)
library(data.table)
#Define UI for data upload app
ui <- dashboardPage(
#App title
dashboardHeader(title = "Treatment and Care Cascade",
... | /cascadeapp_v1.0/app.R | no_license | mariamelsheikh/cascadeapp | R | false | false | 28,355 | r |
library(shiny)
library(dplyr)
library(shinydashboard)
library(plotly)
library(ggplot2)
library(lubridate)
library(tidyr)
library(shinyjs)
library(magrittr)
library(data.table)
#Define UI for data upload app
ui <- dashboardPage(
#App title
dashboardHeader(title = "Treatment and Care Cascade",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{wnba2014}
\alias{wnba2014}
\title{Women National Basketball Association 2014 (WNBA 2014).}
\format{A data.frame with 4022 rows and 6 variables:
\describe{
\item{player_id}{Identification of player.}
\i... | /man/wnba2014.Rd | no_license | cran/psda | R | false | true | 843 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{wnba2014}
\alias{wnba2014}
\title{Women National Basketball Association 2014 (WNBA 2014).}
\format{A data.frame with 4022 rows and 6 variables:
\describe{
\item{player_id}{Identification of player.}
\i... |
testlist <- list(x = structure(c(2.31584270412471e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist)
str(result... | /multivariance/inst/testfiles/doubleCenterBiasCorrected/AFL_doubleCenterBiasCorrected/doubleCenterBiasCorrected_valgrind_files/1613140069-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 321 | r | testlist <- list(x = structure(c(2.31584270412471e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist)
str(result... |
library(shiny)
pageWithSidebar(
headerPanel(''),
sidebarPanel(
selectInput('month',
label = "Month",
choices = c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"),
selected = "1")
),
mainPanel(
plotOutput('plot')
)
)
| /ui.R | no_license | caponami/R---ledzie | R | false | false | 298 | r |
library(shiny)
pageWithSidebar(
headerPanel(''),
sidebarPanel(
selectInput('month',
label = "Month",
choices = c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"),
selected = "1")
),
mainPanel(
plotOutput('plot')
)
)
|
library(survey)
Village.data.2st=read.table("Village_data_2st.csv", header=T, sep=",")
summary(Village.data.2st)
Village.design.2st<-svydesign(~Village+HH.ID, strata=~Prov.Name+ones, nest=T, fpc=~Strat.Size+HH, weights=~Weight,data=Village.data.2st)
summary(Village.design.2st)
## linear regression for survey data
m1=... | /Scripts/svyglm.R | no_license | techtronics/Rwanda-5 | R | false | false | 812 | r | library(survey)
Village.data.2st=read.table("Village_data_2st.csv", header=T, sep=",")
summary(Village.data.2st)
Village.design.2st<-svydesign(~Village+HH.ID, strata=~Prov.Name+ones, nest=T, fpc=~Strat.Size+HH, weights=~Weight,data=Village.data.2st)
summary(Village.design.2st)
## linear regression for survey data
m1=... |
\docType{data}
\name{pronghorn}
\alias{pronghorn}
\title{Pronghorn aerial survey data from Wyoming}
\format{A data frame with 660 observations on the following 5 variables.
\describe{ \item{STRATUM}{a numeric vector}
\item{direction}{a factor with levels \code{N} \code{S}
representing the survey direction} \item{... | /mrds/man/pronghorn.Rd | no_license | jlaake/mrds | R | false | false | 1,898 | rd | \docType{data}
\name{pronghorn}
\alias{pronghorn}
\title{Pronghorn aerial survey data from Wyoming}
\format{A data frame with 660 observations on the following 5 variables.
\describe{ \item{STRATUM}{a numeric vector}
\item{direction}{a factor with levels \code{N} \code{S}
representing the survey direction} \item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tscores.R
\name{tscores}
\alias{tscores}
\title{Get t-scores according to Welch's t-statistic for a HexTemplate and a Metadata Group}
\usage{
tscores(template, group = 1)
}
\arguments{
\item{template}{A HexTemplate Object}
\item{group}{A met... | /man/tscores.Rd | no_license | AG-ESSER/HexTemplatesFCS | R | false | true | 470 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tscores.R
\name{tscores}
\alias{tscores}
\title{Get t-scores according to Welch's t-statistic for a HexTemplate and a Metadata Group}
\usage{
tscores(template, group = 1)
}
\arguments{
\item{template}{A HexTemplate Object}
\item{group}{A met... |
distance-matrix-mp.R | /dev/analysis/nmds/pmat.R | no_license | lgarreta/Reduction | R | false | false | 20 | r | distance-matrix-mp.R |
# load package sqldf, graphics and grDevices
library(sqldf)
library(graphics)
library(grDevices)
# read subset of data (for 1/2/2007 and 2/2/2007)
hec12<-read.csv.sql("household_power_consumption.txt", sql = 'select * from file where "Date" = "1/2/2007"', sep = ";")
hec22<-read.csv.sql("household_power_consumption.txt... | /Plot1.R | no_license | chwohl/ExData_Plotting1 | R | false | false | 617 | r | # load package sqldf, graphics and grDevices
library(sqldf)
library(graphics)
library(grDevices)
# read subset of data (for 1/2/2007 and 2/2/2007)
hec12<-read.csv.sql("household_power_consumption.txt", sql = 'select * from file where "Date" = "1/2/2007"', sep = ";")
hec22<-read.csv.sql("household_power_consumption.txt... |
Calc <- list()
# used when asking for things such as rolls or bonuses
# Takes in a player and a skill
# Returns the modifier for a skill from Modif$General_Buff(value)
.Stat_To_Skill <- function(Player, Skill_Name){
### TODO
return(Modif$General_Stats(13))
}
Calc$Stat_To_Skill <- .Stat_To_Skill
# Takes in a playe... | /Scripts/Dependent/Calculate_Stats_Manager.R | no_license | Teggom/Dragons-R-Dungeons | R | false | false | 4,561 | r | Calc <- list()
# used when asking for things such as rolls or bonuses
# Takes in a player and a skill
# Returns the modifier for a skill from Modif$General_Buff(value)
.Stat_To_Skill <- function(Player, Skill_Name){
### TODO
return(Modif$General_Stats(13))
}
Calc$Stat_To_Skill <- .Stat_To_Skill
# Takes in a playe... |
#OHM#
#
# Coursera - R Programming
# Programming Assignment 2
#
# Caching the Inverse of a Matrix.
#
#
# Creates a special "matrix" object that can cache its inverse.
#
makeCacheMatrix <- function(x = matrix())
{
matrixData <- NULL
setMatrix <- fun... | /cachematrix.R | no_license | ScientiaPhilologus/ProgrammingAssignment2 | R | false | false | 1,109 | r | #OHM#
#
# Coursera - R Programming
# Programming Assignment 2
#
# Caching the Inverse of a Matrix.
#
#
# Creates a special "matrix" object that can cache its inverse.
#
makeCacheMatrix <- function(x = matrix())
{
matrixData <- NULL
setMatrix <- fun... |
#pathName = "C:/Temp/ADTSP/ALL_RESULTS_COMPILED.csv"
pathName = "C:/Temp/ADTSP/diversity.csv"
type = "ADTSPMV"
costType = "Diversity"
dataSep = ","
header <- read.csv(pathName, sep = dataSep, nrows = 1)
data = read.csv(pathName, sep = dataSep, header = T, colClasses = paste(rep("character", ncol(header))))
nor... | /utils/mmas_adtsp_madtsp_r_scripts/adtsp_plots.R | no_license | schmittjoaopedro/aco-vrp-framework | R | false | false | 2,787 | r | #pathName = "C:/Temp/ADTSP/ALL_RESULTS_COMPILED.csv"
pathName = "C:/Temp/ADTSP/diversity.csv"
type = "ADTSPMV"
costType = "Diversity"
dataSep = ","
header <- read.csv(pathName, sep = dataSep, nrows = 1)
data = read.csv(pathName, sep = dataSep, header = T, colClasses = paste(rep("character", ncol(header))))
nor... |
\name{Interactive plot of an (un)directed graph}
\alias{plotnetwork}
\title{
Interactive plot of an (un)directed graph
}
\description{
Interactive plot of an (un)directed graph.
}
\usage{
plotnetwork(G, titlos)
}
\arguments{
\item{G}{
The adjacency matrix as produced from \code{\link{mmhc.skel}}, \co... | /man/plotnetwork.Rd | no_license | JokerWhy233/MXM | R | false | false | 1,435 | rd | \name{Interactive plot of an (un)directed graph}
\alias{plotnetwork}
\title{
Interactive plot of an (un)directed graph
}
\description{
Interactive plot of an (un)directed graph.
}
\usage{
plotnetwork(G, titlos)
}
\arguments{
\item{G}{
The adjacency matrix as produced from \code{\link{mmhc.skel}}, \co... |
wrapper.wilcoxtest=function(genelist, data, logicalVectors, logicalVector_normals=NULL, ALTERNATIVE="greater", adj.method="BH", CORES=1, prettynum=T){
library(parallel)
data=do.call(rbind, mclapply(genelist, TestGeneWilcox, data, logicalVectors, logicalVector_normals=logicalVector_normals, ALTERNATIVE, prettynum, m... | /common_scripts/statistics/statistics_wrappers.R | no_license | ppolonen/ImmunogenomicLandscape-BloodCancer | R | false | false | 11,959 | r | wrapper.wilcoxtest=function(genelist, data, logicalVectors, logicalVector_normals=NULL, ALTERNATIVE="greater", adj.method="BH", CORES=1, prettynum=T){
library(parallel)
data=do.call(rbind, mclapply(genelist, TestGeneWilcox, data, logicalVectors, logicalVector_normals=logicalVector_normals, ALTERNATIVE, prettynum, m... |
library(shiny)
library(ggplot2)
library(curl)
# Define server logic
shinyServer(function(input, output) {
# load data
data("diamonds")
# create the initial output
output$distPlot <- renderPlot({
# subset the data based on the inputs
diamonds_sub <- subse... | /server.R | no_license | 0xts/DDP-Project | R | false | false | 1,457 | r | library(shiny)
library(ggplot2)
library(curl)
# Define server logic
shinyServer(function(input, output) {
# load data
data("diamonds")
# create the initial output
output$distPlot <- renderPlot({
# subset the data based on the inputs
diamonds_sub <- subse... |
# Learning how to write functions
# function_name <- function(inputs) {
# output_value <- do_something(inputs)
# return(output_value)
# }
calc_shrub_vol <- function(length, width, height) {
area <- length * width
volume <- area * height
return(volume)
}
shrub_vol <- calc_shrub_vol(shrub_measurements$lengt... | /scripts/02-functions.R | no_license | KristinaRiemer/SEEDS-Critical-Skills | R | false | false | 1,694 | r | # Learning how to write functions
# function_name <- function(inputs) {
# output_value <- do_something(inputs)
# return(output_value)
# }
calc_shrub_vol <- function(length, width, height) {
area <- length * width
volume <- area * height
return(volume)
}
shrub_vol <- calc_shrub_vol(shrub_measurements$lengt... |
## Plot 3 into plot3.png
##
png(file="plot3.png",width = 480, height = 480)
plot(data$Date, data$Sub_metering_1, type="l", ylab="Energy sub metering", xlab="")
lines(data$Date, data$Sub_metering_2, type="l", col="red")
lines(data$Date, data$Sub_metering_3, type="l", col="blue")
legend("topright", c("Sub_metering_1", "... | /plot3.R | no_license | AnabelaCoursera/ExData_Plotting1 | R | false | false | 403 | r | ## Plot 3 into plot3.png
##
png(file="plot3.png",width = 480, height = 480)
plot(data$Date, data$Sub_metering_1, type="l", ylab="Energy sub metering", xlab="")
lines(data$Date, data$Sub_metering_2, type="l", col="red")
lines(data$Date, data$Sub_metering_3, type="l", col="blue")
legend("topright", c("Sub_metering_1", "... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_hspanicr_column.R
\name{add_hspanicr_column}
\alias{add_hspanicr_column}
\title{Add an NA hspanicr column if one doesn't exist}
\usage{
add_hspanicr_column(icd_df)
}
\arguments{
\item{icd_df}{an MCOD dataframe)}
}
\value{
dataframe
}
\des... | /man/add_hspanicr_column.Rd | permissive | mkiang/narcan | R | false | true | 477 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_hspanicr_column.R
\name{add_hspanicr_column}
\alias{add_hspanicr_column}
\title{Add an NA hspanicr column if one doesn't exist}
\usage{
add_hspanicr_column(icd_df)
}
\arguments{
\item{icd_df}{an MCOD dataframe)}
}
\value{
dataframe
}
\des... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compiler.R
\name{compileUtilityFunction}
\alias{compileUtilityFunction}
\title{compileUtilityFunction
Deprecated, please see \code{\link[=specify_model]{specify_model()}}}
\usage{
compileUtilityFunction(...)
}
\arguments{
\item{...}{Parameter... | /man/compileUtilityFunction.Rd | no_license | joemolloy/fast-mixed-mnl | R | false | true | 450 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compiler.R
\name{compileUtilityFunction}
\alias{compileUtilityFunction}
\title{compileUtilityFunction
Deprecated, please see \code{\link[=specify_model]{specify_model()}}}
\usage{
compileUtilityFunction(...)
}
\arguments{
\item{...}{Parameter... |
# Basic Plotting System
# simple base graphics: Histogram
library(datasets)
hist(airquality$Ozone)
# simple base graphics: Scatterplot
library(datasets)
with(airquality, plot(Wind, Ozone))
# simple base graphics: Boxplot
library(datasets)
airquality <- transform(airquality, Month = factor(Month))
boxplot(Ozone ~ Mon... | /Explorative_Data_Analysis.R | no_license | yujie-tao/learn-data-science | R | false | false | 6,429 | r | # Basic Plotting System
# simple base graphics: Histogram
library(datasets)
hist(airquality$Ozone)
# simple base graphics: Scatterplot
library(datasets)
with(airquality, plot(Wind, Ozone))
# simple base graphics: Boxplot
library(datasets)
airquality <- transform(airquality, Month = factor(Month))
boxplot(Ozone ~ Mon... |
#' Chichinadze Function
#'
#' Continuous single-objective test function \eqn{f} with
#' \deqn{f(\mathbf{x}) = \mathbf{x}_1^2 - 12 \mathbf{x}_1 + 11 + 10\cos(0.5\pi\mathbf{x}_1) + 8\sin(2.5\pi\mathbf{x}_1) - (0.25)^{0.5}\exp(-0.5(\mathbf{x}_2 - 0.5)^2)}
#' with \eqn{-30 \leq \mathbf{x}_i \leq 30, i = 1, 2}.
#'
#' @templ... | /R/sof.chichinadze.R | no_license | fmumbi/smoof | R | false | false | 1,196 | r | #' Chichinadze Function
#'
#' Continuous single-objective test function \eqn{f} with
#' \deqn{f(\mathbf{x}) = \mathbf{x}_1^2 - 12 \mathbf{x}_1 + 11 + 10\cos(0.5\pi\mathbf{x}_1) + 8\sin(2.5\pi\mathbf{x}_1) - (0.25)^{0.5}\exp(-0.5(\mathbf{x}_2 - 0.5)^2)}
#' with \eqn{-30 \leq \mathbf{x}_i \leq 30, i = 1, 2}.
#'
#' @templ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.