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 |
|---|---|---|---|---|---|---|---|---|---|
# Download archive file, if it does not exist
archiveFile <- "NEI_data.zip"
if(!file.exists(archiveFile)) {
archiveURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
if(Sys.info()["sysname"] == "Darwin") {
download.file(url=archiveURL,destfile=archiveFile,method="curl")
} else {
download... | /downloadArchive.R | no_license | chiphopper/coursera-exploratory-data-analysis-course-project-2 | R | false | false | 477 | r | # Download archive file, if it does not exist
archiveFile <- "NEI_data.zip"
if(!file.exists(archiveFile)) {
archiveURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
if(Sys.info()["sysname"] == "Darwin") {
download.file(url=archiveURL,destfile=archiveFile,method="curl")
} else {
download... |
## ----setup, include=FALSE-----------------------------------------------------
library(knitr)
opts_chunk$set(out.extra='style="display:block; margin: auto"', fig.align="center")
## ----message=FALSE------------------------------------------------------------
library(nullabor)
library(ggplot2)
library(dplyr)
## ----... | /inst/doc/distances.R | no_license | cran/nullabor | R | false | false | 2,936 | r | ## ----setup, include=FALSE-----------------------------------------------------
library(knitr)
opts_chunk$set(out.extra='style="display:block; margin: auto"', fig.align="center")
## ----message=FALSE------------------------------------------------------------
library(nullabor)
library(ggplot2)
library(dplyr)
## ----... |
rm(list=ls())
nsim = 1000
load("results/perm.data.1.r")
for (isim in 1:nsim)
{
hanford = hanford.perm [,2+isim]
alluvium = alluvium.perm [,2+isim]
save(list=c("hanford","alluvium"),file=paste("data/perm.",isim,".r",sep=""))
}
rm(list=ls())
nsim = 1000
load("results/perm.data.2.r")
for (isim in 1:nsi... | /sensitivity/heterogenous/prepare.data.R | no_license | mrubayet/archived_codes_for_sfa_modeling | R | false | false | 749 | r | rm(list=ls())
nsim = 1000
load("results/perm.data.1.r")
for (isim in 1:nsim)
{
hanford = hanford.perm [,2+isim]
alluvium = alluvium.perm [,2+isim]
save(list=c("hanford","alluvium"),file=paste("data/perm.",isim,".r",sep=""))
}
rm(list=ls())
nsim = 1000
load("results/perm.data.2.r")
for (isim in 1:nsi... |
library(dplyr)
library(ggplot2)
library(magrittr)
load("~/MPRA/data/gatheredMPRA.RData")
#tmp = analyze('11 8902218 1/2', dirstr = 'tmp/')
constr = '17 37520449 1/2'
#constr = '6 32609097 1/3'
MPRA.qnactivity %>% #data plot
filter(construct == constr) %>%
ggplot(data = ., mapping = aes(type, qnact)) +
geom_v... | /analysis/plotCode.R | no_license | andrewGhazi/bayesianMPRA | R | false | false | 4,495 | r | library(dplyr)
library(ggplot2)
library(magrittr)
load("~/MPRA/data/gatheredMPRA.RData")
#tmp = analyze('11 8902218 1/2', dirstr = 'tmp/')
constr = '17 37520449 1/2'
#constr = '6 32609097 1/3'
MPRA.qnactivity %>% #data plot
filter(construct == constr) %>%
ggplot(data = ., mapping = aes(type, qnact)) +
geom_v... |
setwd("/Users/ashisood/Documents/personal/courses/datasciencecoursera/explorelatory data science/week1")
dataFile <- "./household_power_consumption.txt"
par(mar=c(4,4,1,2),mfcol=c(1,1))
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
mydfdata <- tbl_df(data)
subSetmydfData <- filter(... | /plot1.R | no_license | ashisood/ExData_Plotting1 | R | false | false | 612 | r | setwd("/Users/ashisood/Documents/personal/courses/datasciencecoursera/explorelatory data science/week1")
dataFile <- "./household_power_consumption.txt"
par(mar=c(4,4,1,2),mfcol=c(1,1))
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
mydfdata <- tbl_df(data)
subSetmydfData <- filter(... |
#'
#' Automatic code generation for Shiny applications
#'
#' Creates a Shiny application for longitudinal data model
#'
#' shinymlx automatically generates files ui.R and server.R required
#' for a Shiny application.
#'
#' Elements of \code{parameters} and \code{treatment} can be either scalars or lists.
#' A sc... | /R/shinymlx.R | no_license | ayaadel9190/mlxR | R | false | false | 28,071 | r | #'
#' Automatic code generation for Shiny applications
#'
#' Creates a Shiny application for longitudinal data model
#'
#' shinymlx automatically generates files ui.R and server.R required
#' for a Shiny application.
#'
#' Elements of \code{parameters} and \code{treatment} can be either scalars or lists.
#' A sc... |
menu_row <- tabItem(tabName = "row",
fluidRow(
column(width = 3,
box(
title = "步骤0:品牌选择", width = NULL, solidHeader = TRUE, status = "primary",
mdl_ListCho... | /01_row_body.R | no_license | takewiki/nsup | R | false | false | 3,575 | r | menu_row <- tabItem(tabName = "row",
fluidRow(
column(width = 3,
box(
title = "步骤0:品牌选择", width = NULL, solidHeader = TRUE, status = "primary",
mdl_ListCho... |
library(shiny)
library(htmltools)
htmlTemplate("index.html",
button = actionButton(inputId = "teste", "Busca"),
slider = sliderInput(inputId = "TESTE", "teste",min=0 ,max=10, 1, step=0.2),
textinpt = textInput("teste","teste","Entre com a busca"),
tab1 = DT::dataTable... | /ui.R | no_license | Jailsonrs/Simulated-Annealing | R | false | false | 536 | r | library(shiny)
library(htmltools)
htmlTemplate("index.html",
button = actionButton(inputId = "teste", "Busca"),
slider = sliderInput(inputId = "TESTE", "teste",min=0 ,max=10, 1, step=0.2),
textinpt = textInput("teste","teste","Entre com a busca"),
tab1 = DT::dataTable... |
# MCLA Quality Check scritp
# REACH Yemen - Data Unit
# 10 July 2019
# V3
# Reset workspace
rm(list=ls())
# Install and load necessary packages
# devtools::install_github("mabafaba/xlsformfill", force = T)
# devtools::install_github("mabafaba/composr", force = T)
# devtools::install_github("mabafaba/cleaninginspect... | /MCLA_QC_script_FINAL.R | no_license | zackarno/mcla_cleaneR | R | false | false | 3,023 | r | # MCLA Quality Check scritp
# REACH Yemen - Data Unit
# 10 July 2019
# V3
# Reset workspace
rm(list=ls())
# Install and load necessary packages
# devtools::install_github("mabafaba/xlsformfill", force = T)
# devtools::install_github("mabafaba/composr", force = T)
# devtools::install_github("mabafaba/cleaninginspect... |
fncCopyFiles <- function(files, where){
ifelse(!(is.null(dim(files))), n <- dim(files)[1], n <- 1)
for(i in seq(1, n)){
if(!(file.exists(paste(where,files, sep = "/")))){
file.copy(files[i,4], paste(where,files[i,1], sep = "/"))
}
}
}
writeLog <- function(message){
message <- paste("[",Sys.tim... | /source/functions.r | no_license | joelgsponer/ngs-dashboard | R | false | false | 2,453 | r | fncCopyFiles <- function(files, where){
ifelse(!(is.null(dim(files))), n <- dim(files)[1], n <- 1)
for(i in seq(1, n)){
if(!(file.exists(paste(where,files, sep = "/")))){
file.copy(files[i,4], paste(where,files[i,1], sep = "/"))
}
}
}
writeLog <- function(message){
message <- paste("[",Sys.tim... |
context("texreg family functions")
library("texreg")
data("iris")
model1 <- lm(Sepal.Width ~ Petal.Width, data = iris)
test_that("custom.header argument works", {
# screenreg
sr1 <- screenreg(list(model1, model1, model1, model1, model1, model1),
custom.header = list("ab" = 1:2, "def" = 4:6))
... | /tests/testthat/test-texreg.R | no_license | fmerhout/texreg | R | false | false | 23,259 | r | context("texreg family functions")
library("texreg")
data("iris")
model1 <- lm(Sepal.Width ~ Petal.Width, data = iris)
test_that("custom.header argument works", {
# screenreg
sr1 <- screenreg(list(model1, model1, model1, model1, model1, model1),
custom.header = list("ab" = 1:2, "def" = 4:6))
... |
library(here) # v. 0.1
library(stringr) # v. 1.2.0
library(purrr) # v. 0.2.3
library(tidyverse)
library(data.table)
install.packages("readxl")
library("readxl")
install.packages("writexl")
library("writexl")
#FIRST: save script in the same folder as target
wd <- setwd(dirname(rstudioapi::getActiveDocumentContext()$pat... | /ENVI-met-output/West_barewall_output/Summary folder/PET/combining_data_PET_west_plain.R | no_license | florindevessies/greenfacades | R | false | false | 1,443 | r | library(here) # v. 0.1
library(stringr) # v. 1.2.0
library(purrr) # v. 0.2.3
library(tidyverse)
library(data.table)
install.packages("readxl")
library("readxl")
install.packages("writexl")
library("writexl")
#FIRST: save script in the same folder as target
wd <- setwd(dirname(rstudioapi::getActiveDocumentContext()$pat... |
library(ncf)
library(mgcv)
data <- read.csv("datahab.csv")
allpa <- read.csv("allpaxy_connect.csv")
allpa[ is.na(allpa) ] <- 0
d1 <- subset(data, subset=(data$p94==1 & data$p00 == 0 |data$p94 == 1 & data$p00==1))
a1 <- subset(allpa, subset=(allpa$p94==1 & allpa$p00 == 0 |allpa$p94 == 1 & allpa$p00==1))
d1$pa[d1$p94 =... | /Logistic/habmodels_connect_knots.R | no_license | Mattgeary/Habitat-comparison | R | false | false | 4,001 | r | library(ncf)
library(mgcv)
data <- read.csv("datahab.csv")
allpa <- read.csv("allpaxy_connect.csv")
allpa[ is.na(allpa) ] <- 0
d1 <- subset(data, subset=(data$p94==1 & data$p00 == 0 |data$p94 == 1 & data$p00==1))
a1 <- subset(allpa, subset=(allpa$p94==1 & allpa$p00 == 0 |allpa$p94 == 1 & allpa$p00==1))
d1$pa[d1$p94 =... |
#' Coerces decomposed time-series objects to tibble format.
#'
#' @param x A time-series object of class `stl`, `ets`, `decomposed.ts`, `HoltWinters`,
#' `bats` or `tbats`.
#' @param timetk_idx
#' When `TRUE`, uses a timetk index (irregular, typically date or datetime) if present.
#' @param rename_index Enables ... | /R/sw_tidy_decomp.R | no_license | cran/sweep | R | false | false | 1,415 | r | #' Coerces decomposed time-series objects to tibble format.
#'
#' @param x A time-series object of class `stl`, `ets`, `decomposed.ts`, `HoltWinters`,
#' `bats` or `tbats`.
#' @param timetk_idx
#' When `TRUE`, uses a timetk index (irregular, typically date or datetime) if present.
#' @param rename_index Enables ... |
test_that("events stop after `count` is up", {
start <- as.Date("1999-01-01")
rrule <- daily(start) %>% recur_for_count(2)
expect <- start + 0:1
x <- alma_search(start, start + 5, rrule)
expect_equal(x, expect)
})
test_that("`count` is limited by `until`", {
rrule <- daily(since = "1970-01-01", until =... | /tests/testthat/test-recur-for-count.R | permissive | DavisVaughan/almanac | R | false | false | 1,299 | r | test_that("events stop after `count` is up", {
start <- as.Date("1999-01-01")
rrule <- daily(start) %>% recur_for_count(2)
expect <- start + 0:1
x <- alma_search(start, start + 5, rrule)
expect_equal(x, expect)
})
test_that("`count` is limited by `until`", {
rrule <- daily(since = "1970-01-01", until =... |
## LOADING LIBRARIES
library(plotly)
library(genius)
library(tidyverse)
library(tidytext)
## IMPORTING DATA
polls <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-04-14/polls.csv')
rankings <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidy... | /2020/week_16/week_16.R | no_license | IAjimi/TidyTuesday | R | false | false | 5,969 | r | ## LOADING LIBRARIES
library(plotly)
library(genius)
library(tidyverse)
library(tidytext)
## IMPORTING DATA
polls <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-04-14/polls.csv')
rankings <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidy... |
#############################################################
# Create edx set, and validation set
#############################################################
# Note: this process could take a couple of minutes
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org")
if(!require... | /script.R | no_license | JeffersonMagalhaes/edx_movies_project | R | false | false | 7,281 | r | #############################################################
# Create edx set, and validation set
#############################################################
# Note: this process could take a couple of minutes
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org")
if(!require... |
#Abrimos la matriz de datos millas y la pondremos dentro un
#objeto de igual nombre
install.packages("datos") #Este comando descarga el paquete
library(datos) #Este comando abre el paquete
millas<-(datos::millas)
#Vamos a explorar la matriz de datos con los siguientes comandos
?millas
dim(millas)
names(mi... | /UNIDAD 1.R | no_license | Jhovana22/probabilidad-y-estadistica | R | false | false | 3,188 | r | #Abrimos la matriz de datos millas y la pondremos dentro un
#objeto de igual nombre
install.packages("datos") #Este comando descarga el paquete
library(datos) #Este comando abre el paquete
millas<-(datos::millas)
#Vamos a explorar la matriz de datos con los siguientes comandos
?millas
dim(millas)
names(mi... |
dBord <- function(x,y,xmin,xmax,ymin,ymax){min((x-xmin)^2,(x-xmax)^2,(y-ymin)^2,(y-ymax)^2)}
| /R/dBord.R | no_license | MathieuEmily/SpatialClustering | R | false | false | 93 | r | dBord <- function(x,y,xmin,xmax,ymin,ymax){min((x-xmin)^2,(x-xmax)^2,(y-ymin)^2,(y-ymax)^2)}
|
setwd("~/Desktop")
ThryDays <- seq(from = 1, to = 30, by = 1)
ThryDaysStrng <- ifelse(ThryDays < 10, paste("0", ThryDays,sep=""), as.character(ThryDays)); rm(ThryDays)
Thry1Days <- seq(from = 1, to = 31, by = 1)
Thry1DaysStrng <- ifelse(Thry1Days < 10, paste("0", Thry1Days,sep=""), as.character(Thry1Days)); rm(Thry1D... | /Download.R | no_license | KKONZ/SpotifyR | R | false | false | 5,546 | r | setwd("~/Desktop")
ThryDays <- seq(from = 1, to = 30, by = 1)
ThryDaysStrng <- ifelse(ThryDays < 10, paste("0", ThryDays,sep=""), as.character(ThryDays)); rm(ThryDays)
Thry1Days <- seq(from = 1, to = 31, by = 1)
Thry1DaysStrng <- ifelse(Thry1Days < 10, paste("0", Thry1Days,sep=""), as.character(Thry1Days)); rm(Thry1D... |
function.Minimax <-
function(data, marker, status, tag.healthy = 0, direction = c("<", ">"), control = control.cutpoints(), pop.prev, ci.fit = FALSE, conf.level = 0.95, measures.acc){
direction <- match.arg(direction)
if (is.logical(control$maxSp) == FALSE) {
stop("'maxSp' must be a logical-type argument.", cal... | /R/function.Minimax.R | no_license | cran/OptimalCutpoints | R | false | false | 2,276 | r | function.Minimax <-
function(data, marker, status, tag.healthy = 0, direction = c("<", ">"), control = control.cutpoints(), pop.prev, ci.fit = FALSE, conf.level = 0.95, measures.acc){
direction <- match.arg(direction)
if (is.logical(control$maxSp) == FALSE) {
stop("'maxSp' must be a logical-type argument.", cal... |
\name{perspectev.read}
\alias{perspectev.read}
\title{
Convert from PBDB to perspectev input formats
}
\description{
Convert occurrence data (each row a separate occurrence) into standardized perspectev format.}
\usage{
perspectev.read(data,extinctionAge,occurrenceAge,upper,lower,t1,t2,
traitfun=mcpRange,vlist=NULL,t... | /man/perspectev.read.Rd | no_license | arturochian/perspectev | R | false | false | 2,074 | rd | \name{perspectev.read}
\alias{perspectev.read}
\title{
Convert from PBDB to perspectev input formats
}
\description{
Convert occurrence data (each row a separate occurrence) into standardized perspectev format.}
\usage{
perspectev.read(data,extinctionAge,occurrenceAge,upper,lower,t1,t2,
traitfun=mcpRange,vlist=NULL,t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query_vcf.R
\name{vcf_query}
\alias{vcf_query}
\title{Query a VCF File For Numeric Genotypes}
\usage{
vcf_query(file, regions, samples, verbose = FALSE, recode = TRUE)
}
\arguments{
\item{file}{The name of the indexed vcf file.}
\item{region... | /lostruct/man/vcf_query.Rd | no_license | petrelharp/local_pca | R | false | true | 1,593 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query_vcf.R
\name{vcf_query}
\alias{vcf_query}
\title{Query a VCF File For Numeric Genotypes}
\usage{
vcf_query(file, regions, samples, verbose = FALSE, recode = TRUE)
}
\arguments{
\item{file}{The name of the indexed vcf file.}
\item{region... |
SSHFS <- F
setDir <- ifelse(SSHFS, "/media/electron", "")
library(foreach)
library(doMC)
library(ggpubr)
registerDoMC(ifelse(SSHFS, 20, 2))
# Rscript GSE77737_FPKM_topTADs_plot_v2.R
plot_countType <- c("", "_log10")
plotType <- "png"
myHeight <- 7
myWidth <- 10
curr_dataset <- "TCGAcrc_msi_mss"
cond1 <- "MSI"
con... | /GSE77737_FPKM_topTADs_plot_v2.R | no_license | marzuf/TAD_DE_pipeline_v2_coreg | R | false | false | 6,777 | r | SSHFS <- F
setDir <- ifelse(SSHFS, "/media/electron", "")
library(foreach)
library(doMC)
library(ggpubr)
registerDoMC(ifelse(SSHFS, 20, 2))
# Rscript GSE77737_FPKM_topTADs_plot_v2.R
plot_countType <- c("", "_log10")
plotType <- "png"
myHeight <- 7
myWidth <- 10
curr_dataset <- "TCGAcrc_msi_mss"
cond1 <- "MSI"
con... |
#' Generic function for extracting the right-hand side from a model
#'
#' @keywords internal
#'
#' @param model A fitted model
#' @param \dots additional arguments passed to the specific extractor
#' @noRd
extract_rhs <- function(model, ...) {
UseMethod("extract_rhs", model)
}
#' Extract right-hand side
#'
#' Extra... | /R/extract_rhs.R | permissive | Gedevan-Aleksizde/equatiomatic | R | false | false | 9,464 | r | #' Generic function for extracting the right-hand side from a model
#'
#' @keywords internal
#'
#' @param model A fitted model
#' @param \dots additional arguments passed to the specific extractor
#' @noRd
extract_rhs <- function(model, ...) {
UseMethod("extract_rhs", model)
}
#' Extract right-hand side
#'
#' Extra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{convert}
\alias{convert}
\alias{ensembl2hgnc}
\alias{ensembl2hgnc.default}
\alias{ensembl2hgnc.list}
\alias{ensembl2hgnc.spaceST}
\title{Convert from ENSEMBL ID to HGNC symbol or MGI symbol}
\usage{
ensembl2hgnc(obje... | /man/convert.Rd | no_license | ludvigla/spaceST | R | false | true | 877 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{convert}
\alias{convert}
\alias{ensembl2hgnc}
\alias{ensembl2hgnc.default}
\alias{ensembl2hgnc.list}
\alias{ensembl2hgnc.spaceST}
\title{Convert from ENSEMBL ID to HGNC symbol or MGI symbol}
\usage{
ensembl2hgnc(obje... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/01BaseClass.R
\docType{class}
\name{BaseClass-class}
\alias{BaseClass-class}
\title{An abstract S4 class representing contructed features}
\description{
An abstract S4 class representing contructed features
}
\section{Slots}{
\describe{
\ite... | /man/BaseClass-class.Rd | no_license | mvattulainen/preproviz | R | false | true | 605 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/01BaseClass.R
\docType{class}
\name{BaseClass-class}
\alias{BaseClass-class}
\title{An abstract S4 class representing contructed features}
\description{
An abstract S4 class representing contructed features
}
\section{Slots}{
\describe{
\ite... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selected.R
\name{selected.default}
\alias{selected.default}
\title{Identify Selected Names by Default}
\usage{
\method{selected}{default}(x, ...)
}
\arguments{
\item{x}{object}
\item{...}{to \code{\link[dplyr]{select}}}
}
\value{
character: ... | /man/selected.default.Rd | no_license | jimsforks/yamlet | R | false | true | 1,478 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/selected.R
\name{selected.default}
\alias{selected.default}
\title{Identify Selected Names by Default}
\usage{
\method{selected}{default}(x, ...)
}
\arguments{
\item{x}{object}
\item{...}{to \code{\link[dplyr]{select}}}
}
\value{
character: ... |
#mixOmics on SRBCT
library(mixOmics)
data("srbct")
X <- srbct$gene
MyResult.pca <- pca(X) # 1 Run the method
plotIndiv(MyResult.pca) # 2 Plot the samples
plotVar(MyResult.pca, cutoff = 0.8) # 3 Plot the variables
plotIndiv(MyResult.pca, ind.names = TRUE,legend = FALSE, title = 'PCA on SRBCT')
#p... | /PCA.R | no_license | dishaa19/mixOmics | R | false | false | 1,928 | r | #mixOmics on SRBCT
library(mixOmics)
data("srbct")
X <- srbct$gene
MyResult.pca <- pca(X) # 1 Run the method
plotIndiv(MyResult.pca) # 2 Plot the samples
plotVar(MyResult.pca, cutoff = 0.8) # 3 Plot the variables
plotIndiv(MyResult.pca, ind.names = TRUE,legend = FALSE, title = 'PCA on SRBCT')
#p... |
\name{write.all}
\alias{write.all}
\title{Writes All the Questions from a Database}
\description{
Writes all the questions from the database of questions (my.data) in the same format used to prepare the tests. The function is useful to check the obtainable output for the questions included in the database. The topic, ... | /man/write.all.Rd | no_license | llaarraa/genertest | R | false | false | 5,692 | rd | \name{write.all}
\alias{write.all}
\title{Writes All the Questions from a Database}
\description{
Writes all the questions from the database of questions (my.data) in the same format used to prepare the tests. The function is useful to check the obtainable output for the questions included in the database. The topic, ... |
#' Non Linear Correaltion (Matrices)- Correlation coeffecient by considering non linear realtionships among two or more variables
#' @param x a numeric vector, matrix or data frame.
#' @param y a vector, matrix or data frame with compatible dimensions to x
#' @param inverse an optional parameter to... | /R/nlCor.R | no_license | pratikpitreds/nlCor | R | false | false | 2,600 | r | #' Non Linear Correaltion (Matrices)- Correlation coeffecient by considering non linear realtionships among two or more variables
#' @param x a numeric vector, matrix or data frame.
#' @param y a vector, matrix or data frame with compatible dimensions to x
#' @param inverse an optional parameter to... |
# Gates Dupont #
# Jaguar Global Meta-analysis #
# July 17, 2019 #
# # # # # # # # # # # # # # # #
library(MODIS)
library(dplyr)
library(purrr)
library(doParallel)
library(foreach)
#----Create? and set dir----
Jaguar_dir <- "~/Jaguar"
if (!dir.exists(Jaguar_dir)) {
dir.create(Jaguar_di... | /CompileGIS/TilesParallelDownloadMODIS.R | permissive | GatesDupont/Jaguars | R | false | false | 2,133 | r | # Gates Dupont #
# Jaguar Global Meta-analysis #
# July 17, 2019 #
# # # # # # # # # # # # # # # #
library(MODIS)
library(dplyr)
library(purrr)
library(doParallel)
library(foreach)
#----Create? and set dir----
Jaguar_dir <- "~/Jaguar"
if (!dir.exists(Jaguar_dir)) {
dir.create(Jaguar_di... |
## ------------------------------------------------------------------------
# new_url <- "http://overpass-api.de/api/interpreter"
# osmdata::set_overpass_url(new_url)
## ------------------------------------------------------------------------
# op <- osmtt("sudal nepal","2019-01-01T12:00:00Z")
## --------------------... | /vignettes/osm-time-travel.R | no_license | neogeomat/OSMTT | R | false | false | 894 | r | ## ------------------------------------------------------------------------
# new_url <- "http://overpass-api.de/api/interpreter"
# osmdata::set_overpass_url(new_url)
## ------------------------------------------------------------------------
# op <- osmtt("sudal nepal","2019-01-01T12:00:00Z")
## --------------------... |
library(ggplot2)
library(cowplot)
library(randomForest)
data <- read.csv('/Users/choyuching/Downloads/0133.csv')
head(data)
str(data)
data$head_vice<-as.factor(data$head_vice)
data$rankErin<-as.factor(data$rankErin)
str(data)
nrow(data[is.na(data$corrupted_amount) | is.na(data$sentence_details),])
data[is.na(data$co... | /SOSC 4300 final project/logistic regression with NA deleted.R | no_license | Garygcy1016/Group_Koi | R | false | false | 1,200 | r | library(ggplot2)
library(cowplot)
library(randomForest)
data <- read.csv('/Users/choyuching/Downloads/0133.csv')
head(data)
str(data)
data$head_vice<-as.factor(data$head_vice)
data$rankErin<-as.factor(data$rankErin)
str(data)
nrow(data[is.na(data$corrupted_amount) | is.na(data$sentence_details),])
data[is.na(data$co... |
#'Import Files
#'
#'Imports a formatted, tab-delimited file to a data frame.
#'
#'All of the dates in a date column must have the same format as the first
#'non-blank date in the column. Any date with a format different from that of
#'the first non-blank date in the column will be imported as \code{NA} (missing
#'value... | /R/importRDB.R | permissive | tfransen/USGSwsBase | R | false | false | 7,905 | r | #'Import Files
#'
#'Imports a formatted, tab-delimited file to a data frame.
#'
#'All of the dates in a date column must have the same format as the first
#'non-blank date in the column. Any date with a format different from that of
#'the first non-blank date in the column will be imported as \code{NA} (missing
#'value... |
#!/usr/bin/env Rscript
args <- commandArgs(TRUE)
png(filename="Hbond_network_test.png", width=600, height=600)
data<-read.table(paste(args[1], "network_distribution_Hbond_test.txt", sep="/"), sep="_", fill=TRUE, row.names=NULL)
data<-data[,-1]
line1<-unlist(data[1,])
plot(line1, xlim=c(1, ncol(data)), ylim=c(0,50), ... | /R_scripts/GPCR_one_graph.R | no_license | CDD-Hub/HB-Modeling | R | false | false | 957 | r | #!/usr/bin/env Rscript
args <- commandArgs(TRUE)
png(filename="Hbond_network_test.png", width=600, height=600)
data<-read.table(paste(args[1], "network_distribution_Hbond_test.txt", sep="/"), sep="_", fill=TRUE, row.names=NULL)
data<-data[,-1]
line1<-unlist(data[1,])
plot(line1, xlim=c(1, ncol(data)), ylim=c(0,50), ... |
### Agilent One Channel Processing
### Import Raw Data
cat("\nStarting Agilent 1-channel Processing Pipeline\n")
filetypes <- unique(toupper(tools::file_ext(list.files(file.path(tempin,"00-RawData")))))
if (length(filetypes)>1){
cat("\nFiletypes\n",filetypes)
stop("Execution halted due to multiple filetypes prese... | /platforms/agilent_one_channel.R | no_license | hfogle/glds_microarrays | R | false | false | 11,132 | r | ### Agilent One Channel Processing
### Import Raw Data
cat("\nStarting Agilent 1-channel Processing Pipeline\n")
filetypes <- unique(toupper(tools::file_ext(list.files(file.path(tempin,"00-RawData")))))
if (length(filetypes)>1){
cat("\nFiletypes\n",filetypes)
stop("Execution halted due to multiple filetypes prese... |
/refm/doc/manual-page.rd | permissive | wanabe/rubydoc | R | false | false | 1,445 | rd | ||
## reads in hospital data from file and returns the hospital for the state,
## outcome, and num(rank) arguments. Ties are resolved by sorting hospital names in alphabetical
## order and picking the first
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
result <- read.csv("outcome-o... | /rankhospital.R | no_license | odwyert/Rfunctions | R | false | false | 1,227 | r | ## reads in hospital data from file and returns the hospital for the state,
## outcome, and num(rank) arguments. Ties are resolved by sorting hospital names in alphabetical
## order and picking the first
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
result <- read.csv("outcome-o... |
###########################################################
### Define generic functions: show, print, '[', '$', plot
#################################
#### dnnetInput class
#' @describeIn dnnetInput Method to show \code{dnnetInput} object.
#'
#' @param object A \code{dnnetInput} object.
#'
#' @export
setMethod("show... | /R/1-2-methods.R | no_license | SkadiEye/dnnet | R | false | false | 954 | r | ###########################################################
### Define generic functions: show, print, '[', '$', plot
#################################
#### dnnetInput class
#' @describeIn dnnetInput Method to show \code{dnnetInput} object.
#'
#' @param object A \code{dnnetInput} object.
#'
#' @export
setMethod("show... |
library(dplyr)
library(zoo)
library(geosphere)
load("//ifw-hqfs1/MB SeaDuck/AMAPPS/clean_data/AMAPPS_2017_08/obstrack_part1.Rdata")
obstrack = mutate(obstrack, offline = ifelse(is.na(offline),0,offline)) %>%
rename(Lat=lat, Long=long)
transit = mutate(transit, transect = as.character(transect),
o... | /cleaning/AMAPPS_2017_08/abbreviated_step2.R | no_license | robgf/AMAPPS | R | false | false | 8,732 | r | library(dplyr)
library(zoo)
library(geosphere)
load("//ifw-hqfs1/MB SeaDuck/AMAPPS/clean_data/AMAPPS_2017_08/obstrack_part1.Rdata")
obstrack = mutate(obstrack, offline = ifelse(is.na(offline),0,offline)) %>%
rename(Lat=lat, Long=long)
transit = mutate(transit, transect = as.character(transect),
o... |
#' @title ladle
#' @description All credit to Luo, W. and Li, B. (2016),
#' Combining Eigenvalues and Variation of Eigenvectors for Order
#' Determination, Biometrika, 103, 875–887. <doi:10.1093/biomet/asw051>
#' @param x A numeric real-valued matrix with n number of samples and
#' p number of features (n > p).
#' @r... | /R/estimate_rank_ladle.R | no_license | WenlanzZ/dimension | R | false | false | 1,765 | r | #' @title ladle
#' @description All credit to Luo, W. and Li, B. (2016),
#' Combining Eigenvalues and Variation of Eigenvectors for Order
#' Determination, Biometrika, 103, 875–887. <doi:10.1093/biomet/asw051>
#' @param x A numeric real-valued matrix with n number of samples and
#' p number of features (n > p).
#' @r... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/means_variances.R
\name{mean_cond_var}
\alias{mean_cond_var}
\title{Mean conditional variance}
\usage{
mean_cond_var(lambda = parms$lambda, birth = parms$birth,
death = parms$death, tran = parms$tran, parms, verbose = FALSE)
}
\argu... | /man/mean_cond_var.Rd | no_license | gmonette/Tcells2 | R | false | false | 1,356 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/means_variances.R
\name{mean_cond_var}
\alias{mean_cond_var}
\title{Mean conditional variance}
\usage{
mean_cond_var(lambda = parms$lambda, birth = parms$birth,
death = parms$death, tran = parms$tran, parms, verbose = FALSE)
}
\argu... |
library(shiny)
row <- function(...) {
tags$div(class = "row", ...)
}
col <- function(width, ...) {
tags$div(class=paste0("span", width), ...)
}
ui <- shinyUI(bootstrapPage(
headerPanel("File QA"),
mainPanel(
tags$div(
class = "container",
row(
col(3, textInput("pdfur... | /src/R/QA-app.R | no_license | hjohns12/NYPD-disciplinary-proceedings | R | false | false | 1,036 | r | library(shiny)
row <- function(...) {
tags$div(class = "row", ...)
}
col <- function(width, ...) {
tags$div(class=paste0("span", width), ...)
}
ui <- shinyUI(bootstrapPage(
headerPanel("File QA"),
mainPanel(
tags$div(
class = "container",
row(
col(3, textInput("pdfur... |
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(1.48571030312294e-72, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615848996-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 459 | r | testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(1.48571030312294e-72, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... |
/decision-tree.R | no_license | jasonlee8318/R-programming | R | false | false | 4,306 | r | ||
#Kaplan Meier (KM) Curves:
#Multiplot function:
library("tidyverse")
library("glyph")
library("survminer")
library("survival")
#Assumption TEST: http://www.sthda.com/english/wiki/cox-model-assumptions
#Data for 2 Herbicide Treatments (Glyphosate & Starane)==========
#START FROM HERE:
df<-read.csv("WeedsBinary2.csv")
s... | /GGForest_Landscape.R | no_license | PWaryszak/CO2_Herbicide_Weeds | R | false | false | 6,549 | r | #Kaplan Meier (KM) Curves:
#Multiplot function:
library("tidyverse")
library("glyph")
library("survminer")
library("survival")
#Assumption TEST: http://www.sthda.com/english/wiki/cox-model-assumptions
#Data for 2 Herbicide Treatments (Glyphosate & Starane)==========
#START FROM HERE:
df<-read.csv("WeedsBinary2.csv")
s... |
# library(tidyverse)
main_folder <- "C:/Users/Mihai/Desktop/R Notebooks/notebooks/STAD-demoimitMetrics/Sessions_Clean_demoimitMectrics"
setwd(main_folder)
#################
# Read clean table
data_clean_list <- readRDS("data_clean_output.RDS")
data_clean <- data_clean_list$data_clean
diff_list <- data_clean_list$di... | /STAD-demoimitMetrics/old/STAD_behavioral_scrips/demoimitMetrics_to_cleantable_v.2.R | permissive | ClaudiuPapasteri/notebooks | R | false | false | 5,490 | r | # library(tidyverse)
main_folder <- "C:/Users/Mihai/Desktop/R Notebooks/notebooks/STAD-demoimitMetrics/Sessions_Clean_demoimitMectrics"
setwd(main_folder)
#################
# Read clean table
data_clean_list <- readRDS("data_clean_output.RDS")
data_clean <- data_clean_list$data_clean
diff_list <- data_clean_list$di... |
##### R-Code mit allen wichtigen Funktionen; gedacht fuer den Durchlauf auf dem LiDO3
### Pakete laden
if(length(which(installed.packages()[,1] == "e1071")) == 0) install.packages("e1071")
if(length(which(installed.packages()[,1] == "mvtnorm")) == 0) install.packages("mvtnorm")
if(length(which(installed.packages()[,1]... | /simulation_PAR.R | no_license | jakob-r/Masterarbeit | R | false | false | 19,316 | r | ##### R-Code mit allen wichtigen Funktionen; gedacht fuer den Durchlauf auf dem LiDO3
### Pakete laden
if(length(which(installed.packages()[,1] == "e1071")) == 0) install.packages("e1071")
if(length(which(installed.packages()[,1] == "mvtnorm")) == 0) install.packages("mvtnorm")
if(length(which(installed.packages()[,1]... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connect.R
\name{hsCloseDb}
\alias{hsCloseDb}
\title{Close Connection to MS Access or Excel}
\usage{
hsCloseDb(con)
}
\arguments{
\item{con}{Open database connection as returned by
\link{hsOpenDb}/\code{odbcConnect}}
}
\description{
Closes the... | /man/hsCloseDb.Rd | permissive | KWB-R/kwb.db | R | false | true | 379 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connect.R
\name{hsCloseDb}
\alias{hsCloseDb}
\title{Close Connection to MS Access or Excel}
\usage{
hsCloseDb(con)
}
\arguments{
\item{con}{Open database connection as returned by
\link{hsOpenDb}/\code{odbcConnect}}
}
\description{
Closes the... |
# Calculate PV of $100 one year from now
pv_1 <- fv / (1 + r)
pv_1
# Calculate PV of $100 two years from now
pv_2 <- fv / (1 + r)^2
pv_2
| /equity-valuation/ch1/solution-01.R | permissive | cassiopagnoncelli/datacamp-courses | R | false | false | 138 | r | # Calculate PV of $100 one year from now
pv_1 <- fv / (1 + r)
pv_1
# Calculate PV of $100 two years from now
pv_2 <- fv / (1 + r)^2
pv_2
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module_CHM_G.R
\name{v_chmFoldChangeLog10}
\alias{v_chmFoldChangeLog10}
\title{Calculate log10 fold-change value for module: CHM_G/T (both Gene and Transcript)}
\usage{
v_chmFoldChangeLog10(
outputFolderPath,
log10Threshold,
grpName_fc,... | /man/v_chmFoldChangeLog10.Rd | permissive | yilixu/vigilante | R | false | true | 623 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module_CHM_G.R
\name{v_chmFoldChangeLog10}
\alias{v_chmFoldChangeLog10}
\title{Calculate log10 fold-change value for module: CHM_G/T (both Gene and Transcript)}
\usage{
v_chmFoldChangeLog10(
outputFolderPath,
log10Threshold,
grpName_fc,... |
library(nnet) #전방 전달 신경망 + 다향 로그선형모형
library(neuralnet)
library(tensorflow)
library(deepnet)
library(RcppDL)
library(rnn)
library(DEEPR)
library(devtools)
library(rlang)
# 1. 평택항 5월1일 데이터 -------------------------------------
# 1.1. 평택항 5월1일 데이터 가져오기 --------------------------
df <- read_csv("C:/Users/GDLS... | /07300.R | no_license | llim913/2020-R-Trajectory-with-MoveVis-Move | R | false | false | 4,890 | r | library(nnet) #전방 전달 신경망 + 다향 로그선형모형
library(neuralnet)
library(tensorflow)
library(deepnet)
library(RcppDL)
library(rnn)
library(DEEPR)
library(devtools)
library(rlang)
# 1. 평택항 5월1일 데이터 -------------------------------------
# 1.1. 평택항 5월1일 데이터 가져오기 --------------------------
df <- read_csv("C:/Users/GDLS... |
library('np')
library('dplyr')
library('tidyr')
library('ggplot2')
#f<-c(4, 5, 4, 3, 6, 2, 4, 5, 10, 6, 8, 2, 6, 17, 23, 13, 21, 28, 24, 20, 40, 27, 42, 33, 43, 37, 57, 71, 44, 56, 53, 52, 47, 26, 27, 21, 21, 26, 34, 37, 17, 19, 25, 18, 21, 17, 17, 16, 16, 15, 23, 16, 17, 12, 17, 10, 15, 19, 21, 14)
f<-c(4,5,4,3,6,2,4... | /dengue_sj_experiments/np/np.R | no_license | reichlab/bayesian_non_parametric | R | false | false | 5,758 | r | library('np')
library('dplyr')
library('tidyr')
library('ggplot2')
#f<-c(4, 5, 4, 3, 6, 2, 4, 5, 10, 6, 8, 2, 6, 17, 23, 13, 21, 28, 24, 20, 40, 27, 42, 33, 43, 37, 57, 71, 44, 56, 53, 52, 47, 26, 27, 21, 21, 26, 34, 37, 17, 19, 25, 18, 21, 17, 17, 16, 16, 15, 23, 16, 17, 12, 17, 10, 15, 19, 21, 14)
f<-c(4,5,4,3,6,2,4... |
## this function fills holes (0s) less than 3-hours within each storms The data provided is the
# binary rain occurance data. The resulting data from this function represent the storm occurance
# data; this includes occurences of rain-dry-rain. The temporal length of the break (dry period),
# is defined within this ... | /functions/StormChunk_3hr.R | no_license | tuleypa/Storm-Identification | R | false | false | 1,640 | r | ## this function fills holes (0s) less than 3-hours within each storms The data provided is the
# binary rain occurance data. The resulting data from this function represent the storm occurance
# data; this includes occurences of rain-dry-rain. The temporal length of the break (dry period),
# is defined within this ... |
acontext("geom_widerect")
recommendation <- data.frame(
min.C=21,
max.C=23)
set.seed(1)
temp.time <- data.frame(
time=strptime(paste0("2015-10-", 1:31), "%Y-%m-%d"),
temp.C=rnorm(31))
viz <- list(
gg=ggplot()+
theme_bw()+
theme_animint(height=200, width=2000)+
geom_widerect(aes(ymin=min.C, ymax=... | /tests/testthat/test-renderer2-widerect.R | no_license | stfkolev/animint | R | false | false | 13,868 | r | acontext("geom_widerect")
recommendation <- data.frame(
min.C=21,
max.C=23)
set.seed(1)
temp.time <- data.frame(
time=strptime(paste0("2015-10-", 1:31), "%Y-%m-%d"),
temp.C=rnorm(31))
viz <- list(
gg=ggplot()+
theme_bw()+
theme_animint(height=200, width=2000)+
geom_widerect(aes(ymin=min.C, ymax=... |
# REGRESSION MCMC - SAMPLER FUNCTION
mcmc_mu <- function (y, locs, K, message = 100,
adapt = K / 2, ## when to stop tuning the MCMC
## default priors
alpha_tau = 1/2,
beta_tau = 10,
mean_nu = -1,
... | /polya-gamma/mcmc_mu.R | no_license | alissab/Pollen-model | R | false | false | 10,012 | r | # REGRESSION MCMC - SAMPLER FUNCTION
mcmc_mu <- function (y, locs, K, message = 100,
adapt = K / 2, ## when to stop tuning the MCMC
## default priors
alpha_tau = 1/2,
beta_tau = 10,
mean_nu = -1,
... |
library(ggplot2)
#Dependency : TTadv
#Bills Report
SH <- subset(TTadv,TTadv$CostCentre=="15SH")
SH_BYM <- aggregate(SH$WithdrawalAmount.INR., by= list(SH$year,SH$month,SH$SubID),"sum")
#bills_month_wide$SubID <- as.character(bills_month_wide$SubID)
colnames(SH_BYM) <- c("Year","Month","SubID","shop_expense")
SH_BYM... | /ShoppingExpense.R | no_license | thinkcache/Financial_Analysis | R | false | false | 958 | r | library(ggplot2)
#Dependency : TTadv
#Bills Report
SH <- subset(TTadv,TTadv$CostCentre=="15SH")
SH_BYM <- aggregate(SH$WithdrawalAmount.INR., by= list(SH$year,SH$month,SH$SubID),"sum")
#bills_month_wide$SubID <- as.character(bills_month_wide$SubID)
colnames(SH_BYM) <- c("Year","Month","SubID","shop_expense")
SH_BYM... |
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Info --------------------------------------------------------------------
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# This script uses the MSEA_results.RData files generated by GeneMetabMapper.R to generate ... | /src_After_Analysis/Concatenate_MSEA_results.R | permissive | UMCUGenetics/Crossomics | R | false | false | 5,187 | r | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Info --------------------------------------------------------------------
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# This script uses the MSEA_results.RData files generated by GeneMetabMapper.R to generate ... |
library(DoubleCone)
### Name: derby
### Title: Kentucky Derby Winner Speed
### Aliases: derby
### Keywords: datasets
### ** Examples
data(derby)
n=length(derby$year)
track=1:n*0+1
track[derby$cond=="good"]=2
track[derby$cond=="fast"]=3
plot(derby$year,derby$speed,col=track)
| /data/genthat_extracted_code/DoubleCone/examples/derby.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 282 | r | library(DoubleCone)
### Name: derby
### Title: Kentucky Derby Winner Speed
### Aliases: derby
### Keywords: datasets
### ** Examples
data(derby)
n=length(derby$year)
track=1:n*0+1
track[derby$cond=="good"]=2
track[derby$cond=="fast"]=3
plot(derby$year,derby$speed,col=track)
|
starting_small = function() {
A.fun = function(x1,x2,x.seq,...) {
restore.point("A.fun")
list(
A1=list(to_x1=x.seq[x.seq>=x1]),
A2=list(to_x2=x.seq[x.seq>=x2])
)
}
static.A.fun = function(x1,x2,e.seq=c(0,1),...) {
restore.point("static.A.fun")
list(
A1=list(h1=unique(c(0,... | /inst/examples/starting_small.R | no_license | skranz/RelationalContracts | R | false | false | 1,799 | r |
starting_small = function() {
A.fun = function(x1,x2,x.seq,...) {
restore.point("A.fun")
list(
A1=list(to_x1=x.seq[x.seq>=x1]),
A2=list(to_x2=x.seq[x.seq>=x2])
)
}
static.A.fun = function(x1,x2,e.seq=c(0,1),...) {
restore.point("static.A.fun")
list(
A1=list(h1=unique(c(0,... |
customers <- read.csv("/home/tpin3694/Documents/university/MSc/fundamental/THG-Jarvis/MAIN_customer_data.csv")
customers$EDomain <- as.character(customers$EDomain)
library(dplyr)
uni <- customers %>%
mutate(length.dom = nchar(EDomain)) %>%
filter(length.dom < 6)
| /R/customers_domain.R | no_license | thomaspinder/Fraud_Detection | R | false | false | 270 | r | customers <- read.csv("/home/tpin3694/Documents/university/MSc/fundamental/THG-Jarvis/MAIN_customer_data.csv")
customers$EDomain <- as.character(customers$EDomain)
library(dplyr)
uni <- customers %>%
mutate(length.dom = nchar(EDomain)) %>%
filter(length.dom < 6)
|
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810543923184e+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)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613100317-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 343 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810543923184e+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)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... |
"rse" <- function(object, resvar = FALSE)
{
if (!is.null(object$"objList"))
{
fitValue <- object$"minval"
} else {
fitValue <- as.vector(object[["fit"]][["value"]])
}
rse <- switch(object$"type",
"continuous" = fitValue / df.residual(object),
"binomial" = NA,
"Poisson" =... | /R/rse.R | no_license | csetraynor/drc | R | false | false | 526 | r | "rse" <- function(object, resvar = FALSE)
{
if (!is.null(object$"objList"))
{
fitValue <- object$"minval"
} else {
fitValue <- as.vector(object[["fit"]][["value"]])
}
rse <- switch(object$"type",
"continuous" = fitValue / df.residual(object),
"binomial" = NA,
"Poisson" =... |
## Function to read and combine files, used within the procTraj() function
## Adapted from Carslaw, D. (2015) The openair manual, appendix D
##
## Input: hours
## E.g. hours = 96 (4 days)
##
## Author: Yusri Yusup, PhD
## Date created: 2015-08-04
read.files <- function(hours = 96) {
## find tdump files
files <- Sy... | /R/read.files.R | no_license | Jaip2018/pm10 | R | false | false | 1,355 | r | ## Function to read and combine files, used within the procTraj() function
## Adapted from Carslaw, D. (2015) The openair manual, appendix D
##
## Input: hours
## E.g. hours = 96 (4 days)
##
## Author: Yusri Yusup, PhD
## Date created: 2015-08-04
read.files <- function(hours = 96) {
## find tdump files
files <- Sy... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale_color_duke.R
\name{scale_color_duke}
\alias{scale_color_duke}
\title{Scale Colors as Duke}
\usage{
scale_color_duke(palette = c("duke"), alpha = 1, ...)
}
\description{
Scale Colors as Duke
}
| /man/scale_color_duke.Rd | no_license | McCartneyAC/university | R | false | true | 287 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale_color_duke.R
\name{scale_color_duke}
\alias{scale_color_duke}
\title{Scale Colors as Duke}
\usage{
scale_color_duke(palette = c("duke"), alpha = 1, ...)
}
\description{
Scale Colors as Duke
}
|
\name{drawVennDiagrams}
\alias{drawVennDiagrams}
\title{Compute and draw Venn diagrams to a GtkDrawable or a file}
\usage{
drawVennDiagrams(widget = NULL, fileUp = NULL,
fileDown = NULL)
}
\arguments{
\item{widget}{used for callbacks, ignored}
\item{fileUp}{if set to NULL, will draw the "up diagram"
to wid... | /man/drawVennDiagrams.Rd | no_license | Neki/ProjetEnjeuSBT | R | false | false | 590 | rd | \name{drawVennDiagrams}
\alias{drawVennDiagrams}
\title{Compute and draw Venn diagrams to a GtkDrawable or a file}
\usage{
drawVennDiagrams(widget = NULL, fileUp = NULL,
fileDown = NULL)
}
\arguments{
\item{widget}{used for callbacks, ignored}
\item{fileUp}{if set to NULL, will draw the "up diagram"
to wid... |
library(assertthat)
library(rootSolve)
## Equation 1: Compute intersection points Z
Intersect_Z <- function(X_k, h, lb, ub){
# X_k is a list with points,
# h is a concave and differentiable function
# lb is the lower bound of domain X
# ub is the upper bound of domain X
Z <- rep(0, length(X_k)-1)
## loop... | /R/ars.R | no_license | jonathanchen888/ars | R | false | false | 5,401 | r | library(assertthat)
library(rootSolve)
## Equation 1: Compute intersection points Z
Intersect_Z <- function(X_k, h, lb, ub){
# X_k is a list with points,
# h is a concave and differentiable function
# lb is the lower bound of domain X
# ub is the upper bound of domain X
Z <- rep(0, length(X_k)-1)
## loop... |
# there is a small python script to create a subset of data named filtered.csv
read_data <- function(filename) {
data = read.csv(filename, sep=";", na.strings="?" )
data$DateTime <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%OS")
data
} | /read_data.R | no_license | alesk/ExData_Plotting1 | R | false | false | 264 | r | # there is a small python script to create a subset of data named filtered.csv
read_data <- function(filename) {
data = read.csv(filename, sep=";", na.strings="?" )
data$DateTime <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%OS")
data
} |
context("mclust")
skip_if_not_installed("mclust")
library(mclust)
dat <- iris[, 1:4]
fit <- Mclust(dat, G = 7, modelNames = "EII", verbose = FALSE)
fit2 <- Mclust(dat, G = 1, verbose = FALSE)
test_that("mclust tidier arguments", {
check_arguments(tidy.Mclust)
check_arguments(glance.Mclust)
check_arguments(augm... | /tests/testthat/test-mclust.R | no_license | sjewo/broom | R | false | false | 871 | r | context("mclust")
skip_if_not_installed("mclust")
library(mclust)
dat <- iris[, 1:4]
fit <- Mclust(dat, G = 7, modelNames = "EII", verbose = FALSE)
fit2 <- Mclust(dat, G = 1, verbose = FALSE)
test_that("mclust tidier arguments", {
check_arguments(tidy.Mclust)
check_arguments(glance.Mclust)
check_arguments(augm... |
##############################################################################
# copperr - A Copper API wrapper package
#
# references [\url{https://developer.prosperworks.com/#intro}]
#
# NB:
# 1. All requests must be sent using HTTPS with TLS 1.2 or higher
# 2. All API calls are limited to 600 requests every 10 minu... | /R/copper_resources.R | no_license | fatkahawai/copperr | R | false | false | 39,277 | r | ##############################################################################
# copperr - A Copper API wrapper package
#
# references [\url{https://developer.prosperworks.com/#intro}]
#
# NB:
# 1. All requests must be sent using HTTPS with TLS 1.2 or higher
# 2. All API calls are limited to 600 requests every 10 minu... |
###################################################################################################
### apply the pineline that was used to prepare species distributions for ranges in alpha 6
# to ranges that were estimated with alpha 2, 4, 10
###########################################################################... | /Rcode/1b_prepare_tree_distribution_alpha2_4_10.R | no_license | Wubing-Xu/Global_tree_beta-diversity | R | false | false | 12,113 | r | ###################################################################################################
### apply the pineline that was used to prepare species distributions for ranges in alpha 6
# to ranges that were estimated with alpha 2, 4, 10
###########################################################################... |
getwd()
#read and view the data
cr=read.csv("R_Module_Day_7.2_Credit_Risk_Train_data.csv",na.strings = c(""," ","NA"))#see this line
View(cr)
#EDA
summary(cr)
colSums(is.na(cr))
#Remove the unique variables
cr$Loan_ID=NULL
source("mode.R")
#Imputation
mode(cr$Credit_History)
cr$LoanAmount[is.na(... | /CreditRisk.R | no_license | NAVEE68/R-for-Data-Science | R | false | false | 8,150 | r | getwd()
#read and view the data
cr=read.csv("R_Module_Day_7.2_Credit_Risk_Train_data.csv",na.strings = c(""," ","NA"))#see this line
View(cr)
#EDA
summary(cr)
colSums(is.na(cr))
#Remove the unique variables
cr$Loan_ID=NULL
source("mode.R")
#Imputation
mode(cr$Credit_History)
cr$LoanAmount[is.na(... |
###Homework 9 Question 1
d2i = qnorm(0.01)
corr = matrix(0.3,50,50)
diag(corr) = 1
library(MASS)
?mvrnorm
def = 0
loss = 0
for(i in 1:10000){
zi = mvrnorm(1,mu = rep(0,50),corr)
reco = matrix(0,50,1)
reco[which(zi<d2i)] = 10000000*rbeta(1,2,2)
loss[i] = sum(reco)
def[i] = sum(zi<d2i)
}
hist(loss,breaks... | /HW9Q1-solution.R | no_license | YuchengZ-Fin/YuchengZ-Fin.github.io | R | false | false | 775 | r | ###Homework 9 Question 1
d2i = qnorm(0.01)
corr = matrix(0.3,50,50)
diag(corr) = 1
library(MASS)
?mvrnorm
def = 0
loss = 0
for(i in 1:10000){
zi = mvrnorm(1,mu = rep(0,50),corr)
reco = matrix(0,50,1)
reco[which(zi<d2i)] = 10000000*rbeta(1,2,2)
loss[i] = sum(reco)
def[i] = sum(zi<d2i)
}
hist(loss,breaks... |
library(kernlab)
library(e1071)
library(rpart)
library(class)
library(gbm)
### Build the Test function
Test = function(new.data){
norm2_test = new.data
####cleaning data####
norm2_test <- subset(norm2_test, select=-c(X,X0))
x_test <- norm2_test
##### PCA #########
pca_test <- prcomp(x_tes... | /lib/test.R | no_license | yl3394/labradoodle-vs-friedchicken-imgclassification | R | false | false | 1,238 | r | library(kernlab)
library(e1071)
library(rpart)
library(class)
library(gbm)
### Build the Test function
Test = function(new.data){
norm2_test = new.data
####cleaning data####
norm2_test <- subset(norm2_test, select=-c(X,X0))
x_test <- norm2_test
##### PCA #########
pca_test <- prcomp(x_tes... |
# ===== CLASSIFICATION - DECISION TREE TUNNING PARAMETER =====
library(ggplot2)
# ===== READ DATA
data.original = read.csv('D:/Audhi Aprilliant/IPB Works/Statistics Department/6th Semester/Data Mining/Final Assignment/Datasets/Data Train Clean Manipulation.csv',
header = TRUE,
... | /8 Visualization Continuous Re-Sampling Data - Credit Risk.R | no_license | audhiaprilliant/Resampling-for-Imbalanced-Data-Credit-Risk-Scoring | R | false | false | 5,148 | r | # ===== CLASSIFICATION - DECISION TREE TUNNING PARAMETER =====
library(ggplot2)
# ===== READ DATA
data.original = read.csv('D:/Audhi Aprilliant/IPB Works/Statistics Department/6th Semester/Data Mining/Final Assignment/Datasets/Data Train Clean Manipulation.csv',
header = TRUE,
... |
##################################################################
### Diagnostic tests studies in R
##################################################################
# Step 1: Source + library ####
library("e1071")
library("dplyr")
library("xlsx")
library("pastecs")
library("googlesheets")
library("OptimalCutpoints... | /diagnosticTests.R | no_license | JuanCast/diagnosticTests | R | false | false | 5,332 | r | ##################################################################
### Diagnostic tests studies in R
##################################################################
# Step 1: Source + library ####
library("e1071")
library("dplyr")
library("xlsx")
library("pastecs")
library("googlesheets")
library("OptimalCutpoints... |
C_aggregate <- "aggregate"
C_areaIncrement <- "areaIncrement"
C_bilinear <- "bilinear"
C_conTest <- "conTest"
C_dist2dist <- "dist2dist"
C_expand <- "expand"
C_ffocal4 <- "ffocal4"
C_focal4 <- "focal4"
C_focalCommon <- "focalCommon"
C_focalCorrel <- "focalCorrel"
C_focalExtrem <- "focalExtrem"
C_focalGaussian <- "focal... | /R/_ursa_C_registration.R | no_license | nplatonov/ursa | R | false | false | 1,637 | r | C_aggregate <- "aggregate"
C_areaIncrement <- "areaIncrement"
C_bilinear <- "bilinear"
C_conTest <- "conTest"
C_dist2dist <- "dist2dist"
C_expand <- "expand"
C_ffocal4 <- "ffocal4"
C_focal4 <- "focal4"
C_focalCommon <- "focalCommon"
C_focalCorrel <- "focalCorrel"
C_focalExtrem <- "focalExtrem"
C_focalGaussian <- "focal... |
context("calc_act")
test_that("calc_act: abuse", {
expect_error(
calc_act(trace = "not numeric", sample_interval = 1),
"trace must be numeric"
)
expect_error(
calc_act(trace = seq(1, 10), sample_interval = 0),
"sample interval must be at least one"
)
})
| /tests/testthat/test-calc_act.R | permissive | cvisb/RBeast | R | false | false | 282 | r | context("calc_act")
test_that("calc_act: abuse", {
expect_error(
calc_act(trace = "not numeric", sample_interval = 1),
"trace must be numeric"
)
expect_error(
calc_act(trace = seq(1, 10), sample_interval = 0),
"sample interval must be at least one"
)
})
|
#Functions to import CORD dataset (selected columns)
#define function to read first lines from full CORD19 metadata files
seeCORDfull <- function(url){
df <- read_csv(url,
n_max=10)
return(df)
}
#define function to explore abstracts and date info in CORD19 metadata file
#only read selected c... | /Cord19_dataset/CORD19_processing_R/src/CORD19_import.R | permissive | GerbrichFerdinands/asreview-covid19 | R | false | false | 912 | r | #Functions to import CORD dataset (selected columns)
#define function to read first lines from full CORD19 metadata files
seeCORDfull <- function(url){
df <- read_csv(url,
n_max=10)
return(df)
}
#define function to explore abstracts and date info in CORD19 metadata file
#only read selected c... |
# Title: HW04 - Grades Visualizer
# Description: This file is a description of functions for data preparation purpose
# Input(s): data file 'rawscores.csv' and 'cleanscores.csv'
# Output(s): data file 'summary-rawscores.txt'
# Author: Tianshu Zhao
# Date: 11-17-2017
# remove_missing()
a <- c(1,4,7, NA, 10)
remove_mis... | /HW04/code/functions.R | no_license | ariel1995zhao/stat133-hws-fall17 | R | false | false | 6,958 | r | # Title: HW04 - Grades Visualizer
# Description: This file is a description of functions for data preparation purpose
# Input(s): data file 'rawscores.csv' and 'cleanscores.csv'
# Output(s): data file 'summary-rawscores.txt'
# Author: Tianshu Zhao
# Date: 11-17-2017
# remove_missing()
a <- c(1,4,7, NA, 10)
remove_mis... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/orf_functions.R
\name{train_orf}
\alias{train_orf}
\title{Train Online Random Forest}
\usage{
train_orf(model, x, y, w = NULL, trainModel = TRUE)
}
\arguments{
\item{model}{An online random forest object}
\item{x}{A matrix of features to tra... | /man/train_orf.Rd | no_license | vishalbelsare/online_random_forest | R | false | true | 1,508 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/orf_functions.R
\name{train_orf}
\alias{train_orf}
\title{Train Online Random Forest}
\usage{
train_orf(model, x, y, w = NULL, trainModel = TRUE)
}
\arguments{
\item{model}{An online random forest object}
\item{x}{A matrix of features to tra... |
csu<-read.csv("data/california-state-university-2015.csv")
to.plot<-csu$Base.Pay[csu$Job.Title=="LECTURER - ACADEMIC YEAR"]
boxplot(to.plot,main="Lecturer - Academic Year",ylab="Base Pay ($)",col="springgreen") | /R_code/Week_2_Homework.R | no_license | octownsend/255E | R | false | false | 210 | r | csu<-read.csv("data/california-state-university-2015.csv")
to.plot<-csu$Base.Pay[csu$Job.Title=="LECTURER - ACADEMIC YEAR"]
boxplot(to.plot,main="Lecturer - Academic Year",ylab="Base Pay ($)",col="springgreen") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MQDataReader.R
\name{MQDataReader$readMappingFile}
\alias{MQDataReader$readMappingFile}
\title{Reads a mapping table of full Raw file names to shortened names.}
\arguments{
\item{filename}{Source filename to read.}
}
\value{
Returns \code{TRU... | /man/MQDataReader-cash-readMappingFile.Rd | no_license | Maddocent/PTXQC | R | false | true | 910 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MQDataReader.R
\name{MQDataReader$readMappingFile}
\alias{MQDataReader$readMappingFile}
\title{Reads a mapping table of full Raw file names to shortened names.}
\arguments{
\item{filename}{Source filename to read.}
}
\value{
Returns \code{TRU... |
#' Seven forms of rarity
#'
#' classifies the seven forms of rarity according to geographic range, abundance and habitat
#'
#' @param data output provide by function rabiData
#' @param percentage the percentage of localities below which the species will fulfil the first parametre to be considered rare. Default is 10%, ... | /R/rareForms.R | no_license | evertonmaciel/Rare7 | R | false | false | 2,589 | r | #' Seven forms of rarity
#'
#' classifies the seven forms of rarity according to geographic range, abundance and habitat
#'
#' @param data output provide by function rabiData
#' @param percentage the percentage of localities below which the species will fulfil the first parametre to be considered rare. Default is 10%, ... |
summary.gazepath <-
function(object, ..., complete_only = FALSE){
output <- numeric()
for(i in 1:length(object[[16]])){
sim <- object[[16]][[i]]
l <- length(which(sim[,1] == 'f'))
if(l != 0){
if(complete_only == TRUE){
if(length(which(sim[,1] == 's')) != 0){
index <- sort(c(compl... | /gazepath/R/summary.gazepath.R | no_license | ingted/R-Examples | R | false | false | 1,020 | r | summary.gazepath <-
function(object, ..., complete_only = FALSE){
output <- numeric()
for(i in 1:length(object[[16]])){
sim <- object[[16]][[i]]
l <- length(which(sim[,1] == 'f'))
if(l != 0){
if(complete_only == TRUE){
if(length(which(sim[,1] == 's')) != 0){
index <- sort(c(compl... |
writePajek <- function(db, site.field = 1, species.field = 2, filename, abundance.field = NULL)
{
species <- data.frame(sp = levels(db[, species.field]),
id = 1:length(levels(db[, species.field])))
sites <- data.frame(site = levels(db[, site.field]),
id = length(levels(... | /scripts/network_functions.R | no_license | BRamiroSanchez/Cours_Bioregionalisation | R | false | false | 25,751 | r | writePajek <- function(db, site.field = 1, species.field = 2, filename, abundance.field = NULL)
{
species <- data.frame(sp = levels(db[, species.field]),
id = 1:length(levels(db[, species.field])))
sites <- data.frame(site = levels(db[, site.field]),
id = length(levels(... |
library(ggplot2)
# Set Working Directory
setwd('~/Desktop/eosrdata')
# The format of the .dat file is awkward so column names need to be imported
# seperately from the data then remerged
# Import column names
columnscntrl <- read.csv('friday31cntrldata.csv', nrows = 1, sep = ',', header = TRUE)
# Import data
Friday... | /friday31cntrl.R | no_license | mraisle/Ecuador- | R | false | false | 1,410 | r | library(ggplot2)
# Set Working Directory
setwd('~/Desktop/eosrdata')
# The format of the .dat file is awkward so column names need to be imported
# seperately from the data then remerged
# Import column names
columnscntrl <- read.csv('friday31cntrldata.csv', nrows = 1, sep = ',', header = TRUE)
# Import data
Friday... |
source("load_data.R")
png(filename = "plot4.png")
par(mfrow=c(2,2))
plot(data$Time, data$Global_active_power, type="l", col="black", lwd=1.5,
xlab = "", ylab = "Global Active Power")
plot(data$Time, data$Voltage, type="l", col="black", lwd=1.5,
xlab = "datetime", ylab = "Voltage")
plot(data$Time, data$S... | /plot4.R | no_license | chriskopec/ExData_Plotting1 | R | false | false | 807 | r |
source("load_data.R")
png(filename = "plot4.png")
par(mfrow=c(2,2))
plot(data$Time, data$Global_active_power, type="l", col="black", lwd=1.5,
xlab = "", ylab = "Global Active Power")
plot(data$Time, data$Voltage, type="l", col="black", lwd=1.5,
xlab = "datetime", ylab = "Voltage")
plot(data$Time, data$S... |
library(RSiteCatalyst)
### Name: GetMetrics
### Title: Get Available Metrics within a Report Suite
### Aliases: GetMetrics
### ** Examples
## Not run:
##D metrics.valid <- GetMetrics("your_report_suite",
##D metrics=c('visitors','pageviews'),
##D elements=c('... | /data/genthat_extracted_code/RSiteCatalyst/examples/GetMetrics.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 516 | r | library(RSiteCatalyst)
### Name: GetMetrics
### Title: Get Available Metrics within a Report Suite
### Aliases: GetMetrics
### ** Examples
## Not run:
##D metrics.valid <- GetMetrics("your_report_suite",
##D metrics=c('visitors','pageviews'),
##D elements=c('... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualisation.R
\name{visualisation}
\alias{visualisation}
\title{Visualise the results of a *steps* simulation}
\description{
Visualising the results of a simulation is important to verify parameter assumptions
and quantitative model behavio... | /man/visualisation.Rd | no_license | cran/steps | R | false | true | 1,306 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualisation.R
\name{visualisation}
\alias{visualisation}
\title{Visualise the results of a *steps* simulation}
\description{
Visualising the results of a simulation is important to verify parameter assumptions
and quantitative model behavio... |
#Load some libraries
library(tidyverse)
library(tidymodels)
library(MASS, exclude='select')
library(VIF)
library(car)
library(broom)
df <- read_csv('scraps/raw_data.csv') #if you need to read the data in
df$whiff <- as.factor(df$whiff) #make the binary whiff variable a factor
## set the seed to make your partition ... | /scripts/01_Feature_Selection_Pitching.R | no_license | joshorenstein/pitching-analysis | R | false | false | 6,286 | r | #Load some libraries
library(tidyverse)
library(tidymodels)
library(MASS, exclude='select')
library(VIF)
library(car)
library(broom)
df <- read_csv('scraps/raw_data.csv') #if you need to read the data in
df$whiff <- as.factor(df$whiff) #make the binary whiff variable a factor
## set the seed to make your partition ... |
#script to produce figure fig:rq2:ProportionFail
library(ggplot2)
library(scales)
tests=read.table(file="flaky-rate-per-test-order-simplified.csv",sep=',',header=TRUE)
X=split(tests,tests$Test_name)
#removing tests with one or two orderings
Ordering.Count.Per.Test=sapply(X, dim)[1,]
#get tests with one or two orderi... | /azure-data/rq-data/flake-rate-per-test-order/fig-rq2-ProportionFail.R | no_license | TestingResearchIllinois/rerunning-no-tests | R | false | false | 1,513 | r | #script to produce figure fig:rq2:ProportionFail
library(ggplot2)
library(scales)
tests=read.table(file="flaky-rate-per-test-order-simplified.csv",sep=',',header=TRUE)
X=split(tests,tests$Test_name)
#removing tests with one or two orderings
Ordering.Count.Per.Test=sapply(X, dim)[1,]
#get tests with one or two orderi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gym.R
\name{gym}
\alias{gym}
\title{Get information of gyms from yelp using your own yelp api key}
\usage{
gym(api1="your client id ",api_key1= "your client_secret",i="City,State")
}
\value{
}
\description{
simply typing the city name you wa... | /man/gym.Rd | permissive | JT944/Uclapack3 | R | false | true | 689 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gym.R
\name{gym}
\alias{gym}
\title{Get information of gyms from yelp using your own yelp api key}
\usage{
gym(api1="your client id ",api_key1= "your client_secret",i="City,State")
}
\value{
}
\description{
simply typing the city name you wa... |
\name{dppm}
\alias{dppm}
\concept{point process model}
\concept{determinantal point process}
\title{Fit Determinantal Point Process Model}
\description{
Fit a determinantal point process model to a point pattern.
}
\usage{
dppm(formula, family, data=NULL,
...,
startpar = NULL,
method = c("minco... | /man/dppm.Rd | no_license | cfend/spatstat.core | R | false | false | 14,308 | rd | \name{dppm}
\alias{dppm}
\concept{point process model}
\concept{determinantal point process}
\title{Fit Determinantal Point Process Model}
\description{
Fit a determinantal point process model to a point pattern.
}
\usage{
dppm(formula, family, data=NULL,
...,
startpar = NULL,
method = c("minco... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536107123e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613113122-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 251 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536107123e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
## Put comments here that give an overall description of what your
## functions do
## caching the inverse of a matrix to avoid computation every time. it will act as input to cachesolve function
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- f... | /cachematrix.R | no_license | ajeshkumarts/ProgrammingAssignment2 | R | false | false | 874 | r | ## Put comments here that give an overall description of what your
## functions do
## caching the inverse of a matrix to avoid computation every time. it will act as input to cachesolve function
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- f... |
### pca_plot.R - v0.1 ###
# plots PCA using adegenet
# Mark Ravinet - 10/02/17
rm(list = ls())
require(getopt)
require(adegenet)
require(ggplot2)
# specify command line options
spec <- matrix(c(
'infile', 'i', 1, 'character', 'specify infile',
'outfile', 'o', 1, 'character', 'specify outfile',
'naxes', 'n', 1,... | /denovo/make_pca_plot.R | no_license | markravinet/EVOP_2018 | R | false | false | 1,947 | r | ### pca_plot.R - v0.1 ###
# plots PCA using adegenet
# Mark Ravinet - 10/02/17
rm(list = ls())
require(getopt)
require(adegenet)
require(ggplot2)
# specify command line options
spec <- matrix(c(
'infile', 'i', 1, 'character', 'specify infile',
'outfile', 'o', 1, 'character', 'specify outfile',
'naxes', 'n', 1,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wiod.R
\name{tieRobustRankLessOrEqual}
\alias{tieRobustRankLessOrEqual}
\title{Find top (or bottom) n values with possible ties}
\usage{
tieRobustRankLessOrEqual(numvec, nth)
}
\arguments{
\item{numvec}{A numeric vector}
\item{nth}{A single ... | /man/tieRobustRankLessOrEqual.Rd | no_license | alekrutkowski/wiod.diagrammer | R | false | true | 1,020 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wiod.R
\name{tieRobustRankLessOrEqual}
\alias{tieRobustRankLessOrEqual}
\title{Find top (or bottom) n values with possible ties}
\usage{
tieRobustRankLessOrEqual(numvec, nth)
}
\arguments{
\item{numvec}{A numeric vector}
\item{nth}{A single ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ellipse-perimeter.R
\name{ellipse_perimeter}
\alias{ellipse_perimeter}
\title{Calculate the length of the perimeter of an ellipse.}
\usage{
ellipse_perimeter(r, e = 0)
}
\arguments{
\item{r}{Length of the semi-major axis.}
\item{e}{The eccen... | /man/ellipse_perimeter.Rd | no_license | Chabedi/Ellipses | R | false | true | 561 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ellipse-perimeter.R
\name{ellipse_perimeter}
\alias{ellipse_perimeter}
\title{Calculate the length of the perimeter of an ellipse.}
\usage{
ellipse_perimeter(r, e = 0)
}
\arguments{
\item{r}{Length of the semi-major axis.}
\item{e}{The eccen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.