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 |
|---|---|---|---|---|---|---|---|---|---|
##Function to calculate distribution of haplotypes from hapmap data
#Input is as a csv from hapmap with rows=haplotypes and columns=SNPs
dist.plot <-function(dat,t="Population"){
unique.hap <-unique(dat)
unique.hap <-unique.hap[-nrow(unique.hap),]
dat.sum <-aggregate (rep (1, nrow (dat)), by = as.list (dat), FUN ... | /R/distplot.R | no_license | bjcochrane/TeachingPopGen | R | false | false | 549 | r | ##Function to calculate distribution of haplotypes from hapmap data
#Input is as a csv from hapmap with rows=haplotypes and columns=SNPs
dist.plot <-function(dat,t="Population"){
unique.hap <-unique(dat)
unique.hap <-unique.hap[-nrow(unique.hap),]
dat.sum <-aggregate (rep (1, nrow (dat)), by = as.list (dat), FUN ... |
library(synthpop)
### Name: sdc
### Title: Tools for statistical disclosure control (sdc)
### Aliases: sdc
### Keywords: manip
### ** Examples
ods <- SD2011[1:1000,c("sex","age","edu","marital","income")]
s1 <- syn(ods, m = 2)
s1.sdc <- sdc(s1, ods, label="false_data", rm.replicated.uniques = TRUE,
recode.vars = c(... | /data/genthat_extracted_code/synthpop/examples/sdc.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 423 | r | library(synthpop)
### Name: sdc
### Title: Tools for statistical disclosure control (sdc)
### Aliases: sdc
### Keywords: manip
### ** Examples
ods <- SD2011[1:1000,c("sex","age","edu","marital","income")]
s1 <- syn(ods, m = 2)
s1.sdc <- sdc(s1, ods, label="false_data", rm.replicated.uniques = TRUE,
recode.vars = c(... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## Creates a special "matrix" object that can cache its inverse matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<... | /cachematrix.R | no_license | raderas/ProgrammingAssignment2 | R | false | false | 966 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## Creates a special "matrix" object that can cache its inverse matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<... |
#' EventPointer_RNASeq_TranRef
#'
#' Statistical analysis of alternative splicing events with the output of GetPSI_FromTranRef
#'
#' @param Count_Matrix The list containing the expression data taken from
#' the ouput of GetPSI_FromTranRef
#' @param Statistic The type of statistic to apply.
#' Default = 'LogFC' (can be... | /R/EventPointer_RNASeq_TranRef.R | no_license | jpromeror/EventPointer | R | false | false | 6,682 | r | #' EventPointer_RNASeq_TranRef
#'
#' Statistical analysis of alternative splicing events with the output of GetPSI_FromTranRef
#'
#' @param Count_Matrix The list containing the expression data taken from
#' the ouput of GetPSI_FromTranRef
#' @param Statistic The type of statistic to apply.
#' Default = 'LogFC' (can be... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delete_edges_ws.R
\name{delete_edges_ws}
\alias{delete_edges_ws}
\title{Delete all selected edges in an edge selection}
\usage{
delete_edges_ws(graph)
}
\arguments{
\item{graph}{A graph object of class \code{dgr_graph}.}
}
\value{
A graph obj... | /man/delete_edges_ws.Rd | permissive | nograpes/DiagrammeR | R | false | true | 1,653 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delete_edges_ws.R
\name{delete_edges_ws}
\alias{delete_edges_ws}
\title{Delete all selected edges in an edge selection}
\usage{
delete_edges_ws(graph)
}
\arguments{
\item{graph}{A graph object of class \code{dgr_graph}.}
}
\value{
A graph obj... |
#' TV broadcast data
#'
#' Imports data on TV broadcasts, clips of individual members and
#' parliamentary TV channels.
#'
#' @param legislature Accepts one of either `'commons'` or
#' `'lords'`. If `NULL`, returns all TV programmes for
#' all chambers.
#'
#' @param start_date Only includes broadcasts on or ... | /R/tv_programmes.R | permissive | cran/hansard | R | false | false | 4,891 | r |
#' TV broadcast data
#'
#' Imports data on TV broadcasts, clips of individual members and
#' parliamentary TV channels.
#'
#' @param legislature Accepts one of either `'commons'` or
#' `'lords'`. If `NULL`, returns all TV programmes for
#' all chambers.
#'
#' @param start_date Only includes broadcasts on or ... |
#`
#` H2OFrame and AST Nodes
#`
#` To conveniently and safely pass messages between R and H2O, this package
#` relies on S3 objects to capture and pass state. The end user will typically
#` never have to reason with these objects directly, as there are S3 accessor
#` methods provided for creating new objects.
#`
#` S3... | /h2o-r/h2o-package/R/frame.R | permissive | dkanand86/h2o-3 | R | false | false | 219,124 | r | #`
#` H2OFrame and AST Nodes
#`
#` To conveniently and safely pass messages between R and H2O, this package
#` relies on S3 objects to capture and pass state. The end user will typically
#` never have to reason with these objects directly, as there are S3 accessor
#` methods provided for creating new objects.
#`
#` S3... |
flist <- function(f, feature) {
method <- c("pstree", "cprob", "generate")
stationary <- c(FALSE, TRUE, FALSE)
cdata <- c(FALSE, FALSE, FALSE)
fdb <- data.frame(method, stationary, cdata)
return(fdb[fdb[,"method"]==f,feature])
}
| /R/PST-flist.R | no_license | cran/PST | R | false | false | 241 | r |
flist <- function(f, feature) {
method <- c("pstree", "cprob", "generate")
stationary <- c(FALSE, TRUE, FALSE)
cdata <- c(FALSE, FALSE, FALSE)
fdb <- data.frame(method, stationary, cdata)
return(fdb[fdb[,"method"]==f,feature])
}
|
#' @templateVar session_id res2C
#' @template ds_desc
"res2C_focus"
| /R/res2C_focus.R | no_license | zmdg11/wkFocus | R | false | false | 68 | r | #' @templateVar session_id res2C
#' @template ds_desc
"res2C_focus"
|
setwd("C:/Users/tjvan/Documents/Kaggle/HomeDepot_early_2016/homedepotgit")
#setwd("~/Analytics/Kaggle/HomeDepot/homedepotgit")
library(readr)
library(dplyr)
cat("Reading data\n")
train <- read_csv('../input/train.csv')
test <- read_csv('../input... | /003-SearchWords vs Bullets.R | no_license | chuhoting/KDS_HomeDepot | R | false | false | 5,173 | r |
setwd("C:/Users/tjvan/Documents/Kaggle/HomeDepot_early_2016/homedepotgit")
#setwd("~/Analytics/Kaggle/HomeDepot/homedepotgit")
library(readr)
library(dplyr)
cat("Reading data\n")
train <- read_csv('../input/train.csv')
test <- read_csv('../input... |
library(cytofan)
### Name: do_fan
### Title: Compute summary statistics for 'stat_fan'
### Aliases: do_fan
### ** Examples
FanEuStockMarkets <- lapply(colnames(EuStockMarkets),function(id) {
res <- do_fan(EuStockMarkets[,id])
res$id <- id
return(res)
})
FanEuStockMarkets <- do.call(rbind,FanEuStockMarke... | /data/genthat_extracted_code/cytofan/examples/do_fan.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 328 | r | library(cytofan)
### Name: do_fan
### Title: Compute summary statistics for 'stat_fan'
### Aliases: do_fan
### ** Examples
FanEuStockMarkets <- lapply(colnames(EuStockMarkets),function(id) {
res <- do_fan(EuStockMarkets[,id])
res$id <- id
return(res)
})
FanEuStockMarkets <- do.call(rbind,FanEuStockMarke... |
#' @title
#' Get the species diversity indexes
#' @description
#' Calculate the diversity of species for the following indexes:
#' Shannon, Simpson, Equitability, Pielou and Jentsch.
#'
#' @param df A data frame.
#' @param species Quoted name of the scientific names variable, or any variable used to differentiate the... | /R/species_diversity.R | permissive | dondealban/forestmangr | R | false | false | 6,678 | r | #' @title
#' Get the species diversity indexes
#' @description
#' Calculate the diversity of species for the following indexes:
#' Shannon, Simpson, Equitability, Pielou and Jentsch.
#'
#' @param df A data frame.
#' @param species Quoted name of the scientific names variable, or any variable used to differentiate the... |
\name{DSpat.obs}
\alias{DSpat.obs}
\docType{data}
\title{Observation dataframe for DSpat}
\description{
An example dataframe for the observations for fitting a spatial model with DSpat}
\usage{data(DSpat.obs)}
\format{
A data frame with 395 observations on the following 6 variables.
\describe{
\item{\... | /DSpat/man/DSpat.obs.Rd | no_license | jlaake/DSpat | R | false | false | 739 | rd | \name{DSpat.obs}
\alias{DSpat.obs}
\docType{data}
\title{Observation dataframe for DSpat}
\description{
An example dataframe for the observations for fitting a spatial model with DSpat}
\usage{data(DSpat.obs)}
\format{
A data frame with 395 observations on the following 6 variables.
\describe{
\item{\... |
# Model-building operations and algorithms
#----------------------- Generalized Boosting Machines (GBM) -----------------------#
#TODO: dont support missing x; default to everything?
h2o.gbm <- function(x, y, distribution='multinomial', data, n.trees=10, interaction.depth=5, n.minobsinnode=10, shrinkage=0.02) {
... | /R/h2oRClient-package/R/Algorithms.R | permissive | wwwtravel/h2o | R | false | false | 32,343 | r | # Model-building operations and algorithms
#----------------------- Generalized Boosting Machines (GBM) -----------------------#
#TODO: dont support missing x; default to everything?
h2o.gbm <- function(x, y, distribution='multinomial', data, n.trees=10, interaction.depth=5, n.minobsinnode=10, shrinkage=0.02) {
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/startup.R
\name{startup}
\alias{startup}
\title{startup}
\usage{
startup(load = F, xlsx = F, MySQL = F)
}
\arguments{
\item{load}{a boolean value determining whether .RData ought to be loaded}
\item{xlsx}{a boolean value determining whether ... | /man/startup.Rd | no_license | jfontestad/ucbudar | R | false | true | 504 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/startup.R
\name{startup}
\alias{startup}
\title{startup}
\usage{
startup(load = F, xlsx = F, MySQL = F)
}
\arguments{
\item{load}{a boolean value determining whether .RData ought to be loaded}
\item{xlsx}{a boolean value determining whether ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wald_test.R
\name{wald_test}
\alias{wald_test}
\title{Wald test for threshold spatial dynamic panel data model}
\usage{
wald_test(th_res)
}
\arguments{
\item{th_res}{msdpdth class, generated by function msdpdth()}
}
\value{
A list of p-values... | /man/wald_test.Rd | permissive | hayeszhou/sdpdth | R | false | true | 760 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wald_test.R
\name{wald_test}
\alias{wald_test}
\title{Wald test for threshold spatial dynamic panel data model}
\usage{
wald_test(th_res)
}
\arguments{
\item{th_res}{msdpdth class, generated by function msdpdth()}
}
\value{
A list of p-values... |
library(dplyr)
library(RPostgreSQL)
source("3.Baza/auth.R")
# Povezemo se z gonilnikom za PostgreSQL
drv <- dbDriver("PostgreSQL")
# Funkcija za brisanje tabel
# Izbris tabele, ce obstaja
delete_table <- function(){
# Funkcija tryCatch prekine povezavo v primeru napake
tryCatch({
# Vzpostavimo povezav... | /3.Baza/baza.R | no_license | UrskaT/opbprojekt | R | false | false | 3,223 | r | library(dplyr)
library(RPostgreSQL)
source("3.Baza/auth.R")
# Povezemo se z gonilnikom za PostgreSQL
drv <- dbDriver("PostgreSQL")
# Funkcija za brisanje tabel
# Izbris tabele, ce obstaja
delete_table <- function(){
# Funkcija tryCatch prekine povezavo v primeru napake
tryCatch({
# Vzpostavimo povezav... |
set.seed(4)
ls()
#population size
n <- 10000
ages <-
sample(40:70, n, replace = TRUE) #uniform distribution, will change later <Task>
class <- sample(0:1, n, replace = TRUE) #0 is mammo arm & 1 is MRI arm
mriBIRADS <- function(class) {
if (class == 0)
return(NA)
pBR1 <- .863 * (1 / 2)
pBR2 <- .863 ... | /mammo-vs-mri.R | no_license | aksg87/breast-CA-screening-simulation | R | false | false | 4,937 | r | set.seed(4)
ls()
#population size
n <- 10000
ages <-
sample(40:70, n, replace = TRUE) #uniform distribution, will change later <Task>
class <- sample(0:1, n, replace = TRUE) #0 is mammo arm & 1 is MRI arm
mriBIRADS <- function(class) {
if (class == 0)
return(NA)
pBR1 <- .863 * (1 / 2)
pBR2 <- .863 ... |
#' Build a loss function for variational inference in STS models.
#'
#' Variational inference searches for the distribution within some family of
#' approximate posteriors that minimizes a divergence between the approximate
#' posterior `q(z)` and true posterior `p(z|observed_time_series)`. By converting
#' inference... | /R/sts-functions.R | no_license | cran/tfprobability | R | false | false | 19,589 | r |
#' Build a loss function for variational inference in STS models.
#'
#' Variational inference searches for the distribution within some family of
#' approximate posteriors that minimizes a divergence between the approximate
#' posterior `q(z)` and true posterior `p(z|observed_time_series)`. By converting
#' inference... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/range_classifier.R
\name{pipe_range_classifier}
\alias{pipe_range_classifier}
\title{Generates features for regression problems through classification}
\usage{
pipe_range_classifier(train, response, exclude_columns = response,
base_temporar... | /man/pipe_range_classifier.Rd | permissive | jeroenvdhoven/datapiper | R | false | true | 2,526 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/range_classifier.R
\name{pipe_range_classifier}
\alias{pipe_range_classifier}
\title{Generates features for regression problems through classification}
\usage{
pipe_range_classifier(train, response, exclude_columns = response,
base_temporar... |
#Second part of tutorial, 9/9/2019
#see begining part of video for list of inputfunctions, outpufunctions, and renderfunctions
#OK, actually this is a rough draft
#Possible themses here https://rstudio.github.io/shinythemes/
#Download the necessary libraries
library(shiny)
library(shinythemes)
library(mrgsolv... | /Vancomycin_Dosage.R | no_license | ShinyPharm5/Vancomycin_AdjustingDose | R | false | false | 39,250 | r | #Second part of tutorial, 9/9/2019
#see begining part of video for list of inputfunctions, outpufunctions, and renderfunctions
#OK, actually this is a rough draft
#Possible themses here https://rstudio.github.io/shinythemes/
#Download the necessary libraries
library(shiny)
library(shinythemes)
library(mrgsolv... |
\name{rpoislpp}
\alias{rpoislpp}
\title{
Poisson Point Process on a Linear Network
}
\description{
Generates a realisation of the Poisson point process
with specified intensity on the given linear network.
}
\usage{
rpoislpp(lambda, L, ..., nsim=1)
}
\arguments{
\item{lambda}{
Intensity of the Poisson proce... | /man/rpoislpp.Rd | no_license | antiphon/spatstat | R | false | false | 1,373 | rd | \name{rpoislpp}
\alias{rpoislpp}
\title{
Poisson Point Process on a Linear Network
}
\description{
Generates a realisation of the Poisson point process
with specified intensity on the given linear network.
}
\usage{
rpoislpp(lambda, L, ..., nsim=1)
}
\arguments{
\item{lambda}{
Intensity of the Poisson proce... |
# Summarize.R
# Author: Sergio Diaz-del-Pino sergiodiazdp(at)gmail.com
# Description: R Script for trim, align and generate files for later combine them. It also counts inferred, replacable, nframes... of a
# front_file: Kinect skeleton data from reference camera
# side_file: Kinect skeleton data from side camera
#Pa... | /Summariz.r | permissive | Sergiodiaz53/KineetR | R | false | false | 5,788 | r | # Summarize.R
# Author: Sergio Diaz-del-Pino sergiodiazdp(at)gmail.com
# Description: R Script for trim, align and generate files for later combine them. It also counts inferred, replacable, nframes... of a
# front_file: Kinect skeleton data from reference camera
# side_file: Kinect skeleton data from side camera
#Pa... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{order.nodes}
\alias{order.nodes}
\title{Order the nodes of the input tree}
\usage{
order.nodes(node = integer(), parent = integer(), weight = numeric(),
label = character())
}
\arguments{
\item{node}{integer vector containing a set of positive, unique, intege... | /man/order.nodes.Rd | no_license | kshirley/summarytrees | R | false | false | 2,219 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{order.nodes}
\alias{order.nodes}
\title{Order the nodes of the input tree}
\usage{
order.nodes(node = integer(), parent = integer(), weight = numeric(),
label = character())
}
\arguments{
\item{node}{integer vector containing a set of positive, unique, intege... |
rm(list=ls())
library(ggplot2)
######################################################
###########DF and Table Basics########################
######################################################
df_death <- read.csv("~/Documents/College/Senior Year/Psych 252/earlydeaths.csv")
head(df_death)
summary(df_death)
is.data.f... | /old_nick_stuff/StatsPractice.R | no_license | benjamindemayo/CLAV | R | false | false | 20,210 | r | rm(list=ls())
library(ggplot2)
######################################################
###########DF and Table Basics########################
######################################################
df_death <- read.csv("~/Documents/College/Senior Year/Psych 252/earlydeaths.csv")
head(df_death)
summary(df_death)
is.data.f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/2-2-dnnet.R
\name{dnnet}
\alias{dnnet}
\title{Multilayer Perceptron Model for Regression or Classification}
\usage{
dnnet(train, validate = NULL, norm.x = TRUE,
norm.y = ifelse(is.factor(train@y), FALSE, TRUE), activate = "elu",
n... | /man/dnnet.Rd | no_license | SkadiEye/dnnet | R | false | true | 2,682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/2-2-dnnet.R
\name{dnnet}
\alias{dnnet}
\title{Multilayer Perceptron Model for Regression or Classification}
\usage{
dnnet(train, validate = NULL, norm.x = TRUE,
norm.y = ifelse(is.factor(train@y), FALSE, TRUE), activate = "elu",
n... |
plottptso <-
function(param,which = c("pstarttime","sostarttime"),values = seq(63,65,0.1),other="cellbirthprob",ovalues=c(.070,.073,.076,.0764),out="dens",myxlab=which)
# plottptso() - plot dens or sop for Tp and Tso varying
# - other specifies parameter for multiple lines on one graph
# ... | /pre-papilla-cells/ppcell/R/plottptso.R | no_license | nevillejackson/Fleece-biology | R | false | false | 1,193 | r | plottptso <-
function(param,which = c("pstarttime","sostarttime"),values = seq(63,65,0.1),other="cellbirthprob",ovalues=c(.070,.073,.076,.0764),out="dens",myxlab=which)
# plottptso() - plot dens or sop for Tp and Tso varying
# - other specifies parameter for multiple lines on one graph
# ... |
rm(list = ls())
library(splatter)
library(scater)
library(Rtsne)
######################
params.groups <- newSplatParams(batchCells = 2000, nGenes = 1000)
n_groups <- 5
# de.prob - DE probability This parameter controls the probability that a gene will be selected to be differentially expressed.
# The higher the more s... | /Rscripts/splatter_simulation/splat_DE5GneqN2k.R | no_license | canzarlab/Specter | R | false | false | 746 | r | rm(list = ls())
library(splatter)
library(scater)
library(Rtsne)
######################
params.groups <- newSplatParams(batchCells = 2000, nGenes = 1000)
n_groups <- 5
# de.prob - DE probability This parameter controls the probability that a gene will be selected to be differentially expressed.
# The higher the more s... |
#### Calculate mutation rate
setwd("/Users/annabelbeichman/Documents/UCLA/Otters/RawReadsToGenotypes_Dec2016/mappingGidgetReadsToFerret/genome-stats/")
# final variants:
variants <- read.table("overallHeterozygosity/step-by-step-counts_50_250DPFilter/counts.8.Vars.5.finalPASS")
# final hets:
hets <- read.table("overal... | /DiversityAnalyses/analysesComparingSpecies/mutationRate/calculateMutationRate.SeaOtterFerret.50_250DPFilter.10_14_20_MyaDivergence.R | no_license | LohmuellerLab/OtterGenomeProject | R | false | false | 1,969 | r | #### Calculate mutation rate
setwd("/Users/annabelbeichman/Documents/UCLA/Otters/RawReadsToGenotypes_Dec2016/mappingGidgetReadsToFerret/genome-stats/")
# final variants:
variants <- read.table("overallHeterozygosity/step-by-step-counts_50_250DPFilter/counts.8.Vars.5.finalPASS")
# final hets:
hets <- read.table("overal... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Get.prefixlist.from.df.R
\name{Get.prefixlist.from.df}
\alias{Get.prefixlist.from.df}
\title{Return list of prefixes}
\usage{
Get.prefixlist.from.df(prefixes)
}
\arguments{
\item{prefixes}{A data.frame with column prefix and namespace}
}
\val... | /rrdfqb/man/Get.prefixlist.from.df.Rd | no_license | rjsheperd/rrdfqbcrnd0 | R | false | true | 526 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Get.prefixlist.from.df.R
\name{Get.prefixlist.from.df}
\alias{Get.prefixlist.from.df}
\title{Return list of prefixes}
\usage{
Get.prefixlist.from.df(prefixes)
}
\arguments{
\item{prefixes}{A data.frame with column prefix and namespace}
}
\val... |
# Seems like the clusters are first medium sized and spaced out, then they combine, then they split into tiny pieces
# Distance between closest groups (1. intraspecific, 2. interspecific, 3. min of two) in different habitats
| /Analysis/Habitat_2/Habitat_use_by_species.R | no_license | maxgotts/Rubenstein_Mpala | R | false | false | 226 | r | # Seems like the clusters are first medium sized and spaced out, then they combine, then they split into tiny pieces
# Distance between closest groups (1. intraspecific, 2. interspecific, 3. min of two) in different habitats
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_price.R
\name{calculate_price}
\alias{calculate_price}
\title{Get price from cryptocompare}
\usage{
calculate_price(exchange, currency_from, currency_to, days)
}
\arguments{
\item{exchange}{A string defining the exchange}
\item{cur... | /man/calculate_price.Rd | no_license | philgee1981/btcecho | R | false | true | 753 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_price.R
\name{calculate_price}
\alias{calculate_price}
\title{Get price from cryptocompare}
\usage{
calculate_price(exchange, currency_from, currency_to, days)
}
\arguments{
\item{exchange}{A string defining the exchange}
\item{cur... |
context("Testing hy_stn_regulation")
test_that("hy_stn_regulation accepts single and multiple province arguments",
{
stns <- "08NM083"
expect_identical(unique(
hy_stn_regulation(
station_number = stns,
hydat_path = system.file("test_db/tin... | /tests/testthat/test_hy_stn_regulation.R | permissive | njatel/tidyhydat | R | false | false | 2,432 | r | context("Testing hy_stn_regulation")
test_that("hy_stn_regulation accepts single and multiple province arguments",
{
stns <- "08NM083"
expect_identical(unique(
hy_stn_regulation(
station_number = stns,
hydat_path = system.file("test_db/tin... |
\name{GenerateData}
\alias{GenerateData}
\title{
Generates comparison data
}
\description{
This function generates a population of comparison data
}
\usage{
GenerateData(x, n, n.factors = 0, max.trials = 5, initial.multiplier = 1)
}
\arguments{
\item{x}{
The data matrix
}
\item{n}{
Size of population to create
}
... | /man/GenerateData.Rd | no_license | cran/RTaxometrics | R | false | false | 863 | rd | \name{GenerateData}
\alias{GenerateData}
\title{
Generates comparison data
}
\description{
This function generates a population of comparison data
}
\usage{
GenerateData(x, n, n.factors = 0, max.trials = 5, initial.multiplier = 1)
}
\arguments{
\item{x}{
The data matrix
}
\item{n}{
Size of population to create
}
... |
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(0.000202180482941841, 2.00996886273231e-162, 3.15252492765492e-243, -1.94322460467577e-157, 5.2260389062578e-302, 9.53708019597101e-228, 1.75353380558032e-314, 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/1615857893-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 531 | r | testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = c(0.000202180482941841, 2.00996886273231e-162, 3.15252492765492e-243, -1.94322460467577e-157, 5.2260389062578e-302, 9.53708019597101e-228, 1.75353380558032e-314, 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... |
setwd('/Users/yahoo/Documents/WashU/CSE515T/Code/Gaussian Process/')
library(rstan)
library(dplyr)
df %>%
group_by(Candidateidentifier, pollster,daysLeft) %>%
summarise(count=n()) %>%
filter(count >=2)
df[df$Candidateidentifier=='2018AZMcSally' & df$pollster=='Marist College' & df$daysLeft==-48,]
output_path =... | /dynamicBayesian.R | no_license | KJfamily33/CNNForecasting | R | false | false | 4,519 | r | setwd('/Users/yahoo/Documents/WashU/CSE515T/Code/Gaussian Process/')
library(rstan)
library(dplyr)
df %>%
group_by(Candidateidentifier, pollster,daysLeft) %>%
summarise(count=n()) %>%
filter(count >=2)
df[df$Candidateidentifier=='2018AZMcSally' & df$pollster=='Marist College' & df$daysLeft==-48,]
output_path =... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{pressure_plot}
\alias{pressure_plot}
\title{Plot Mean Sea Level Atmospheric Pressure}
\usage{
plot(x, ggtheme = "grey", free_y = FALSE, ...)
}
\arguments{
\item{x}{a cfData object containing pressure data.}
\item{ggtheme}{character string indicating the \code{... | /man/pressure_plot.Rd | no_license | alarconrubencl/clifro | R | false | false | 623 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{pressure_plot}
\alias{pressure_plot}
\title{Plot Mean Sea Level Atmospheric Pressure}
\usage{
plot(x, ggtheme = "grey", free_y = FALSE, ...)
}
\arguments{
\item{x}{a cfData object containing pressure data.}
\item{ggtheme}{character string indicating the \code{... |
testlist <- list(doy = -1.72131968218895e+83, latitude = c(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, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433825e-119, -6.80033518839696e+41, 2.6... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615827830-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 734 | r | testlist <- list(doy = -1.72131968218895e+83, latitude = c(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, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433825e-119, -6.80033518839696e+41, 2.6... |
#==============================================================================
# SI FIGURE: ENSEMBLE TOP-N ACCURACY
#==============================================================================
#------------------------------------------------------------------------------
# Preamble
#------------------------------... | /scripts/si_ensemble-top-n.R | permissive | willbradshaw/geac | R | false | false | 2,460 | r | #==============================================================================
# SI FIGURE: ENSEMBLE TOP-N ACCURACY
#==============================================================================
#------------------------------------------------------------------------------
# Preamble
#------------------------------... |
### Setup
source("setup.R")
######## 1. Dowload and Clean data ----------------------------------------------------------
######################################################################
### POF 2017-2018 ####################################################
#####################################################... | /scripts/2.pof_agregado_prep_data.R | no_license | lucaswarwar/pof | R | false | false | 21,857 | r | ### Setup
source("setup.R")
######## 1. Dowload and Clean data ----------------------------------------------------------
######################################################################
### POF 2017-2018 ####################################################
#####################################################... |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#' @rdname geom_contour_z
#' @export
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
geom_contour_filled_z <- function(
mapping = NULL,
data = NULL,
stat = "contour_filled_z",
positi... | /R/geom-contour-filled.R | permissive | hjanime/ggrgl | R | false | false | 1,330 | r |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#' @rdname geom_contour_z
#' @export
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
geom_contour_filled_z <- function(
mapping = NULL,
data = NULL,
stat = "contour_filled_z",
positi... |
mat <- matrix( c(1,2,3,4),2,2)## Put comments here that give an overall description of what your
## functions do
## This function returns a list object with functions associated with it.
##These functions allow the inverse to be stored
makeCacheMatrix <- function(x= matrix()) {
xm<-x
mm <- N... | /Documents/dataScience/coursera/GIT/ProgrammingAssignment2/cachematrix.R | no_license | durs125/ProgrammingAssignment2 | R | false | false | 1,165 | r | mat <- matrix( c(1,2,3,4),2,2)## Put comments here that give an overall description of what your
## functions do
## This function returns a list object with functions associated with it.
##These functions allow the inverse to be stored
makeCacheMatrix <- function(x= matrix()) {
xm<-x
mm <- N... |
\name{YoudenIndex}
\alias{YoudenIndex}
\title{
Youden's Index
}
\description{
The Youden's Index evaluates the algorithm's ability to avoid failure.
}
\usage{
YoudenIndex(resTable)
}
\arguments{
\item{resTable}{
the data.frame generated from the \code{performanceNET} (or one of the row
of the matrix gener... | /man/YoudenIndex.Rd | no_license | cran/synRNASeqNet | R | false | false | 1,350 | rd | \name{YoudenIndex}
\alias{YoudenIndex}
\title{
Youden's Index
}
\description{
The Youden's Index evaluates the algorithm's ability to avoid failure.
}
\usage{
YoudenIndex(resTable)
}
\arguments{
\item{resTable}{
the data.frame generated from the \code{performanceNET} (or one of the row
of the matrix gener... |
"TwoWaySurv" <-
function(surv.time, birth.time, status)
{
if (!is.numeric(surv.time) || !is.numeric(birth.time))
stop("not numeric times arguments")
if (!is.numeric(status))
stop("censoring must be binary variable: 1 for death, 0 for censored")
Surv.object <- cbind(surv.time, birth.time, status)
di... | /inst/doc/R.functions.Code/TwoWaySurv.function.R | no_license | cran/TwoWaySurvival | R | false | false | 454 | r | "TwoWaySurv" <-
function(surv.time, birth.time, status)
{
if (!is.numeric(surv.time) || !is.numeric(birth.time))
stop("not numeric times arguments")
if (!is.numeric(status))
stop("censoring must be binary variable: 1 for death, 0 for censored")
Surv.object <- cbind(surv.time, birth.time, status)
di... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/identitystore_operations.R
\name{identitystore_get_group_id}
\alias{identitystore_get_group_id}
\title{Retrieves GroupId in an identity store}
\usage{
identitystore_get_group_id(IdentityStoreId, AlternateIdentifier)
}
\arguments{
\item{Identi... | /cran/paws.security.identity/man/identitystore_get_group_id.Rd | permissive | paws-r/paws | R | false | true | 903 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/identitystore_operations.R
\name{identitystore_get_group_id}
\alias{identitystore_get_group_id}
\title{Retrieves GroupId in an identity store}
\usage{
identitystore_get_group_id(IdentityStoreId, AlternateIdentifier)
}
\arguments{
\item{Identi... |
# Cleaning new SIA data for analysis
library(tidyverse)
## import C and N data
sia_c <- read.csv("./Data/SIA_CEAS_C_171020.csv")
sia_n <- read.csv("./Data/SIA_CEAS_N_171020.csv")
## joining
sia_new <- sia_c%>%
full_join(sia_n)
#write.csv(sia_new, "./Data/SIA_CEAS_171020.csv")
## Verifying with snake data
si... | /Functions/clean sia data.R | permissive | cheesesnakes/sea-snake-resource-use | R | false | false | 828 | r | # Cleaning new SIA data for analysis
library(tidyverse)
## import C and N data
sia_c <- read.csv("./Data/SIA_CEAS_C_171020.csv")
sia_n <- read.csv("./Data/SIA_CEAS_N_171020.csv")
## joining
sia_new <- sia_c%>%
full_join(sia_n)
#write.csv(sia_new, "./Data/SIA_CEAS_171020.csv")
## Verifying with snake data
si... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/randtestvis.R
\name{randtestviz}
\alias{randtestviz}
\title{Randomization Test Visualization}
\usage{
randtestviz(x, y, fun = mean, reps = 10000)
}
\arguments{
\item{x}{double}
\item{y}{double}
\item{fun}{factor}
\item{reps}{double}
}
\val... | /man/randtestviz.Rd | permissive | dusty-turner/turnR | R | false | true | 589 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/randtestvis.R
\name{randtestviz}
\alias{randtestviz}
\title{Randomization Test Visualization}
\usage{
randtestviz(x, y, fun = mean, reps = 10000)
}
\arguments{
\item{x}{double}
\item{y}{double}
\item{fun}{factor}
\item{reps}{double}
}
\val... |
# Read the data
allData = read.table("household_power_consumption.txt", header = TRUE, sep =";", na.strings = "?")
# Only get the data from the dates 2007-02-01 and 2007-02-02
subData = subset(allData, Date == "1/2/2007" | Date == "2/2/2007")
# Convert the Date and Time variables to DateTime variable
subData$datetime... | /plot3.R | no_license | tatsamlai/ExData_Plotting1 | R | false | false | 1,445 | r | # Read the data
allData = read.table("household_power_consumption.txt", header = TRUE, sep =";", na.strings = "?")
# Only get the data from the dates 2007-02-01 and 2007-02-02
subData = subset(allData, Date == "1/2/2007" | Date == "2/2/2007")
# Convert the Date and Time variables to DateTime variable
subData$datetime... |
############### OVERALL COMPARISON ###############
metr_lev <- c(
"overall", "real/gold", "real/silver", "synthetic/dyngen", "synthetic/dyntoy", "synthetic/prosstt", "synthetic/splatter",
"norm_correlation", "norm_edge_flip", "norm_him", "norm_F1_branches", "norm_featureimp_cor", "norm_featureimp_wcor", "time_pred_... | /scripts/06-benchmark/3a-overall_comparison.R | no_license | AswinSSoman/dynbenchmark | R | false | false | 3,726 | r | ############### OVERALL COMPARISON ###############
metr_lev <- c(
"overall", "real/gold", "real/silver", "synthetic/dyngen", "synthetic/dyntoy", "synthetic/prosstt", "synthetic/splatter",
"norm_correlation", "norm_edge_flip", "norm_him", "norm_F1_branches", "norm_featureimp_cor", "norm_featureimp_wcor", "time_pred_... |
source('utils.r')
source('algorithms.r')
dataFolder = 'data'
pipelineFolder = 'pipeline'
seriesList = loadSeriesFile(dataFolder)
runPipeline(seriesList, emdmiDec, NULL, pipelineFolder, 'emdmi')
| /2_8_pipeline_emdmi.r | no_license | felipelageduarte/Survey | R | false | false | 204 | r | source('utils.r')
source('algorithms.r')
dataFolder = 'data'
pipelineFolder = 'pipeline'
seriesList = loadSeriesFile(dataFolder)
runPipeline(seriesList, emdmiDec, NULL, pipelineFolder, 'emdmi')
|
data(iris)
hist (iris$Petal.Width)
plot (iris)
plot(iris$Petal.Width, iris$Petal.Length)
pie(table(iris$Species))
plot(iris$Petal.Width, iris$Petal.Length)
pie(table(mtcars$cyl))
| /CODIGO/visualizacionIRIS.R | no_license | PatriLoto/AprendeR-desde-cero | R | false | false | 190 | r | data(iris)
hist (iris$Petal.Width)
plot (iris)
plot(iris$Petal.Width, iris$Petal.Length)
pie(table(iris$Species))
plot(iris$Petal.Width, iris$Petal.Length)
pie(table(mtcars$cyl))
|
#' Bin table of environmental conditions in M and for occurrences
#'
#' @description bin_table helps in creating a bin table of environmental
#' conditions in accessible areas (M) and for species occurrence records
#' (i.e., table of characters).
#'
#' @param Ms a list of SpatVector objects representing the accessible ... | /R/bin_table.R | no_license | marlonecobos/nichevol | R | false | false | 7,275 | r | #' Bin table of environmental conditions in M and for occurrences
#'
#' @description bin_table helps in creating a bin table of environmental
#' conditions in accessible areas (M) and for species occurrence records
#' (i.e., table of characters).
#'
#' @param Ms a list of SpatVector objects representing the accessible ... |
\name{AmericanPutVar-package}
\alias{AmericanPutVar-package}
\alias{AmericanPutVar}
\docType{package}
\title{
What the package does (short line)
~~ package title ~~
}
\description{
More about what it does (maybe more than one line)
~~ A concise (1-5 lines) description of the package ~~
}
\details{
\tabular... | /AmericanPutVar/man/AmericanPutVar-package.Rd | no_license | d-acharya/RGSoC | R | false | false | 1,116 | rd | \name{AmericanPutVar-package}
\alias{AmericanPutVar-package}
\alias{AmericanPutVar}
\docType{package}
\title{
What the package does (short line)
~~ package title ~~
}
\description{
More about what it does (maybe more than one line)
~~ A concise (1-5 lines) description of the package ~~
}
\details{
\tabular... |
library(shiny)
library(shinythemes)
library(shinydashboard)
library(shinycssloaders)
library(forecast)
library(padr)
library(imputeTS)
library(readxl)
library(dplyr)
library(DT)
library(ggplot2)
ui <- dashboardPage(
skin = "black",
dashboardHeader(title = "Forecasting Delhi PM2.5 Recording", titleWidth = 350,... | /Delhi PM25 App.R | no_license | niranjan2408/Forecasting-Model-Delhi-PM25 | R | false | false | 18,531 | r | library(shiny)
library(shinythemes)
library(shinydashboard)
library(shinycssloaders)
library(forecast)
library(padr)
library(imputeTS)
library(readxl)
library(dplyr)
library(DT)
library(ggplot2)
ui <- dashboardPage(
skin = "black",
dashboardHeader(title = "Forecasting Delhi PM2.5 Recording", titleWidth = 350,... |
# Program to count threshold exceedances and measure gaps between them
# SRC 2019-01-09
rm(list = ls())
graphics.off()
library(extRemes)
library(quantreg)
library(reReg)
library(survival)
library(permute)
# Functions
# Determine if a year is a leap year and set the day number for 30 Sept
isleap = fun... | /Poisson+Shuffle_Discharge_2022-03-25.R | no_license | SRCarpen/MendotaExtremes3_ReturnIntervalModels | R | false | false | 13,473 | r | # Program to count threshold exceedances and measure gaps between them
# SRC 2019-01-09
rm(list = ls())
graphics.off()
library(extRemes)
library(quantreg)
library(reReg)
library(survival)
library(permute)
# Functions
# Determine if a year is a leap year and set the day number for 30 Sept
isleap = fun... |
/Bigcontest_EDA.R | no_license | jsaang/R_practice | R | false | false | 3,336 | r | ||
#Exercise7
x <- seq(0,10,by = 1);
#probability density function at each point
fx <- dbinom(x,10,0.5);
#plot the function using x as the points, h = histogram, as we can see it follows normal dist
plot(x,fx, type = "h");
#cumulative probability
y <- pbinom(x,10,0.5);
plot(y, type= "l");
c <- seq(-2,2, by = 0.1);
... | /Lecture1/exercise7.R | no_license | nengen/FIE401B | R | false | false | 692 | r | #Exercise7
x <- seq(0,10,by = 1);
#probability density function at each point
fx <- dbinom(x,10,0.5);
#plot the function using x as the points, h = histogram, as we can see it follows normal dist
plot(x,fx, type = "h");
#cumulative probability
y <- pbinom(x,10,0.5);
plot(y, type= "l");
c <- seq(-2,2, by = 0.1);
... |
category Unix
/etc に存在するデータベースから情報を得るためのモジュールです。
クラスにインクルードして使うこともできます。
=== 使い方
require 'etc'
p Etc.getlogin
= module Etc
/etc に存在するデータベースから情報を得るためのモジュールです。
クラスにインクルードして使うこともできます。
== Module Functions
--- getgrent -> Struct::Group | nil
/etc/group ファイルから読み込んだエントリを一つ返します。
最初の呼び出しでは、先頭のエントリを返します。それ以降の呼び出しでは、
... | /refm/api/src/etc.rd | no_license | sisshiki1969/doctree | R | false | false | 19,911 | rd | category Unix
/etc に存在するデータベースから情報を得るためのモジュールです。
クラスにインクルードして使うこともできます。
=== 使い方
require 'etc'
p Etc.getlogin
= module Etc
/etc に存在するデータベースから情報を得るためのモジュールです。
クラスにインクルードして使うこともできます。
== Module Functions
--- getgrent -> Struct::Group | nil
/etc/group ファイルから読み込んだエントリを一つ返します。
最初の呼び出しでは、先頭のエントリを返します。それ以降の呼び出しでは、
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FocusSearchControl.R
\name{makeFocusSearchControl}
\alias{makeFocusSearchControl}
\alias{FocusSearchControl}
\title{Create control object for focus search.}
\usage{
makeFocusSearchControl(points = 100L, maxit = 1L, restarts = 1L)
}
\arguments... | /man/makeFocusSearchControl.Rd | no_license | berndbischl/focussearch | R | false | true | 781 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FocusSearchControl.R
\name{makeFocusSearchControl}
\alias{makeFocusSearchControl}
\alias{FocusSearchControl}
\title{Create control object for focus search.}
\usage{
makeFocusSearchControl(points = 100L, maxit = 1L, restarts = 1L)
}
\arguments... |
###----------------------------------------------###
### ###
### Introduction to Data Science ###
### Lab 3: Predictions and Models in R ###
### ###
###----------------------------------------------###
l... | /teaching/ids/Lab3.R | no_license | PABalland/PABalland.github.io | R | false | false | 2,480 | r | ###----------------------------------------------###
### ###
### Introduction to Data Science ###
### Lab 3: Predictions and Models in R ###
### ###
###----------------------------------------------###
l... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 866
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 866
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/tri... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/trivial_trivial_1344/trivial_trivial_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 701 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 866
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 866
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/tri... |
#-----------------------------------------------------------------
# Author: Carlos Ortega
# Date: 2015-08-13
# Purpose: Pump-it-up failure prediction.
# Details: http://www.drivendata.org/competitions/7/page/25/
# Pump-Status: functional - functional needs repair - not functional
# Files: training.csv - trainingStat... | /PumpItUpWin.R | no_license | coforfe/R_Pump | R | false | false | 8,471 | r | #-----------------------------------------------------------------
# Author: Carlos Ortega
# Date: 2015-08-13
# Purpose: Pump-it-up failure prediction.
# Details: http://www.drivendata.org/competitions/7/page/25/
# Pump-Status: functional - functional needs repair - not functional
# Files: training.csv - trainingStat... |
\name{plotrixInfo}
\alias{plotrixInfo}
\title{ Save information from a plot }
\description{ \samp{plotrixInfo} is a list filled by some functions with an
\samp{add} argument. }
\details{
Because \samp{plotrixInfo} is created in the parent environment of a
function, it may be read if the same function is call... | /plotrix/man/plotrixInfo.Rd | no_license | edenduthie/palsR | R | false | false | 492 | rd | \name{plotrixInfo}
\alias{plotrixInfo}
\title{ Save information from a plot }
\description{ \samp{plotrixInfo} is a list filled by some functions with an
\samp{add} argument. }
\details{
Because \samp{plotrixInfo} is created in the parent environment of a
function, it may be read if the same function is call... |
\name{spreadn6t3b}
\docType{data}
\alias{spreadn6t3b}
\title{Data: A cyclic 2-spread of PG(5,2)}
\description{
A balanced 2-spread of PG(5,2) obtained via cyclic construction
}
\usage{data(spreadn6t3b)}
\format{
The spread is formatted as a 3-dimensional array, where the \code{[i,j,k]}-th element indicates... | /man/spreadn6t3b.Rd | no_license | cran/IsoCheck | R | false | false | 1,573 | rd | \name{spreadn6t3b}
\docType{data}
\alias{spreadn6t3b}
\title{Data: A cyclic 2-spread of PG(5,2)}
\description{
A balanced 2-spread of PG(5,2) obtained via cyclic construction
}
\usage{data(spreadn6t3b)}
\format{
The spread is formatted as a 3-dimensional array, where the \code{[i,j,k]}-th element indicates... |
train <- read.csv(file = "C:/Users/Gopal/Desktop/Materials/Data_Scientist/DC_CURRENT.csv", header = TRUE, stringsAsFactors = FALSE)
apply(is.na(train),2,sum)
install.packages("imputeTS")
install.packages("tibble")
install.packages("tseries")
install.packages("xts")
install.packages("TTR")
library(imputeTS)
... | /DC_Current.R | no_license | Harrystone/My-Work | R | false | false | 1,471 | r | train <- read.csv(file = "C:/Users/Gopal/Desktop/Materials/Data_Scientist/DC_CURRENT.csv", header = TRUE, stringsAsFactors = FALSE)
apply(is.na(train),2,sum)
install.packages("imputeTS")
install.packages("tibble")
install.packages("tseries")
install.packages("xts")
install.packages("TTR")
library(imputeTS)
... |
#' CV entries
#'
#' This function accepts a data object (such as a tibble) and formats the output
#' into a suitable format for the template used. The inputs can also involve
#' further calculations, which will be done using the provided data.
#'
#' All non-data inputs are optional, and will result in an empty space if... | /R/detailed.R | no_license | korterling/vitae | R | false | false | 2,481 | r | #' CV entries
#'
#' This function accepts a data object (such as a tibble) and formats the output
#' into a suitable format for the template used. The inputs can also involve
#' further calculations, which will be done using the provided data.
#'
#' All non-data inputs are optional, and will result in an empty space if... |
testlist <- list(x = -3.7298511308097e+305)
result <- do.call(diceR:::indicator_matrix,testlist)
str(result) | /diceR/inst/testfiles/indicator_matrix/libFuzzer_indicator_matrix/indicator_matrix_valgrind_files/1609959110-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 108 | r | testlist <- list(x = -3.7298511308097e+305)
result <- do.call(diceR:::indicator_matrix,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\docType{methods}
\name{grab_meat_list}
\alias{grab_meat_list}
\alias{grab_meat_list,sandwich_components-method}
\alias{grab_meat_list,sandwich_components,sandwich_components-method}
\title{Gets the .B_i (list of bread matrices) slo... | /man/grab_meat_list-methods.Rd | permissive | guhjy/geex | R | false | true | 840 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\docType{methods}
\name{grab_meat_list}
\alias{grab_meat_list}
\alias{grab_meat_list,sandwich_components-method}
\alias{grab_meat_list,sandwich_components,sandwich_components-method}
\title{Gets the .B_i (list of bread matrices) slo... |
library(datasets)
library(caTools)
library(party)
library(dplyr)
library(magrittr)
#Load iris data
iris<- read.csv("Iris.csv", stringsAsFactors = TRUE)
# Splitting dataset into train and test data
sample_data = sample.split(iris$species, SplitRatio = 0.8)
train_data <- subset(iris, sample_data == TRUE)
test_data <-... | /07 Decision Tree.R | no_license | enosjeba/DataMining | R | false | false | 1,003 | r | library(datasets)
library(caTools)
library(party)
library(dplyr)
library(magrittr)
#Load iris data
iris<- read.csv("Iris.csv", stringsAsFactors = TRUE)
# Splitting dataset into train and test data
sample_data = sample.split(iris$species, SplitRatio = 0.8)
train_data <- subset(iris, sample_data == TRUE)
test_data <-... |
#' entityCodeList
#'
#' entityCodeList
#'
#'
#' @inheritParams common_attributes
#' @param entityReference A reference to the id of the entity in which the code list has been defined See [entityReference()]
#' @param valueAttributeReference A reference to the id of the attribute that contains the list of codes See [... | /R/entityCodeList.R | permissive | cboettig/build.eml | R | false | false | 1,085 | r | #' entityCodeList
#'
#' entityCodeList
#'
#'
#' @inheritParams common_attributes
#' @param entityReference A reference to the id of the entity in which the code list has been defined See [entityReference()]
#' @param valueAttributeReference A reference to the id of the attribute that contains the list of codes See [... |
blogdown::build_site(local = TRUE)
| /make.R | no_license | TranSophie/sophietran-website | R | false | false | 36 | r | blogdown::build_site(local = TRUE)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linesToParas.R
\name{linesToParas}
\alias{linesToParas}
\title{Lines to Paragraphs}
\usage{
linesToParas(filename, write.out = TRUE, return.text = FALSE,
scan.file = TRUE, local = TRUE)
}
\arguments{
\item{filename}{File name as character s... | /man/linesToParas.Rd | permissive | seanrsilver/novnet | R | false | true | 1,031 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linesToParas.R
\name{linesToParas}
\alias{linesToParas}
\title{Lines to Paragraphs}
\usage{
linesToParas(filename, write.out = TRUE, return.text = FALSE,
scan.file = TRUE, local = TRUE)
}
\arguments{
\item{filename}{File name as character s... |
\name{resamp}
\alias{resamp}
\title{Resample a time wave}
\description{This function resamples (down- or over-samples) a time wave. This
corresponds to a sampling frequency change.}
\usage{resamp(wave, f, g, channel = 1, output="matrix")}
\arguments{
\item{wave}{an R object.}
\item{f}{sampling frequency... | /man/resamp.Rd | no_license | cran/seewave | R | false | false | 1,117 | rd | \name{resamp}
\alias{resamp}
\title{Resample a time wave}
\description{This function resamples (down- or over-samples) a time wave. This
corresponds to a sampling frequency change.}
\usage{resamp(wave, f, g, channel = 1, output="matrix")}
\arguments{
\item{wave}{an R object.}
\item{f}{sampling frequency... |
# From SamplerCompare, (c) 2010 Madeleine Thompson
# act.R contains functions related to the computation of the
# autocorrelation time of a Markov chain. See "Graphical Comparison
# of MCMC Samplers" (https://arxiv.org/abs/1011.4457) for a discussion of
# autocorrelation times and examples of how one might use them.
... | /R/act.R | no_license | cran/SamplerCompare | R | false | false | 3,801 | r | # From SamplerCompare, (c) 2010 Madeleine Thompson
# act.R contains functions related to the computation of the
# autocorrelation time of a Markov chain. See "Graphical Comparison
# of MCMC Samplers" (https://arxiv.org/abs/1011.4457) for a discussion of
# autocorrelation times and examples of how one might use them.
... |
#@since 2.4.0
= NEWS for Ruby 2.4.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
== 2.3.0 以降の変更
=== 言語仕様の変更
* 条件式での多重代入ができるようになりました [[feature:10617]]
* [[m:Symbol#to_proc]] でメソッド呼び出し元での Refinements が有効になりま... | /refm/doc/news/2_4_0.rd | permissive | tomoko523/doctree | R | false | false | 15,308 | rd | #@since 2.4.0
= NEWS for Ruby 2.4.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
== 2.3.0 以降の変更
=== 言語仕様の変更
* 条件式での多重代入ができるようになりました [[feature:10617]]
* [[m:Symbol#to_proc]] でメソッド呼び出し元での Refinements が有効になりま... |
# Command line syntax
# Follow the https://google.github.io/styleguide/Rguide.xml style guide
# R < data_analysis.R --no-save
error.bar <- function(x, y, upper, lower=upper, length=0.1,...){
# Plot error bars on graphs
#
# errorbar (x, y, upper, lower=upper, length=0.1, sides="both", ...)
#
# x ... | /quhant_app/public/cors_demo/analysis_modules/AgNOR/data_analysis.R | no_license | BillWzel/QuHAnT | R | false | false | 9,137 | r | # Command line syntax
# Follow the https://google.github.io/styleguide/Rguide.xml style guide
# R < data_analysis.R --no-save
error.bar <- function(x, y, upper, lower=upper, length=0.1,...){
# Plot error bars on graphs
#
# errorbar (x, y, upper, lower=upper, length=0.1, sides="both", ...)
#
# x ... |
library(morexams)
# load the configuration
rm(list = ls())
load_exam_config("config.R")
## CORRECTION CONFIGURATION
# Points per exercice
POINTS=c(4,6,6,4)
# Do partial answers get points?
PARTIAL_ANS = FALSE
# Do wrong answer get negative points?
NEGATIVE_POINTS = FALSE
# Are the scanned images upside down?
UPSIDE_D... | /inst/Template/exams_correction.R | no_license | mpascucci/moRexams | R | false | false | 635 | r | library(morexams)
# load the configuration
rm(list = ls())
load_exam_config("config.R")
## CORRECTION CONFIGURATION
# Points per exercice
POINTS=c(4,6,6,4)
# Do partial answers get points?
PARTIAL_ANS = FALSE
# Do wrong answer get negative points?
NEGATIVE_POINTS = FALSE
# Are the scanned images upside down?
UPSIDE_D... |
#' TheLIST WFS service
#'
#' @return data source name of TheLIST WFS Server
#' @export
#'
#' @examples
#' thelist_wfs()
#' library(lazysf)
#' address <- lazysf(thelist_wfs(), thelist_layer("address"))
#' address
thelist_wfs <- function() {
"WFS:https://services.thelist.tas.gov.au/arcgis/services/Public/OpenDataWFS/Ma... | /R/thelist_wfs.R | no_license | mdsumner/thelist | R | false | false | 1,103 | r | #' TheLIST WFS service
#'
#' @return data source name of TheLIST WFS Server
#' @export
#'
#' @examples
#' thelist_wfs()
#' library(lazysf)
#' address <- lazysf(thelist_wfs(), thelist_layer("address"))
#' address
thelist_wfs <- function() {
"WFS:https://services.thelist.tas.gov.au/arcgis/services/Public/OpenDataWFS/Ma... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extreme_value.R
\name{EVSnoopingCV}
\alias{EVSnoopingCV}
\title{Critical values based on extreme value approximation}
\usage{
EVSnoopingCV(bwratio, kernel, boundary, order, onesided = FALSE,
alpha = 0.05)
}
\arguments{
\item{bwratio}{ratio ... | /man/EVSnoopingCV.Rd | no_license | kolesarm/BWSnooping | R | false | true | 1,766 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extreme_value.R
\name{EVSnoopingCV}
\alias{EVSnoopingCV}
\title{Critical values based on extreme value approximation}
\usage{
EVSnoopingCV(bwratio, kernel, boundary, order, onesided = FALSE,
alpha = 0.05)
}
\arguments{
\item{bwratio}{ratio ... |
#' Finds the inner and outer Soddy circles of three given mutually tangent circles
#'
#' \code{Soddy} finds inner and outer Soddy circles of three given mutually tangent circles
#' @param A Vector containing the xy-coordinates of the center of circumference 1
#' @param r1 Radius for circumference 1
#' @param B Ve... | /R/Soddy.R | no_license | cran/LearnGeom | R | false | false | 3,231 | r | #' Finds the inner and outer Soddy circles of three given mutually tangent circles
#'
#' \code{Soddy} finds inner and outer Soddy circles of three given mutually tangent circles
#' @param A Vector containing the xy-coordinates of the center of circumference 1
#' @param r1 Radius for circumference 1
#' @param B Ve... |
library('class')
library('caret')
library('e1071')
#reading the training dataset
train_df <- read.csv("C:/Users/Arvind/Desktop/3rd Quarter/Predictive Analytics/week 2/fashion_train.csv")
dim(train_df)
#naming the columns, the 1st column has lables and rest of the columns are pixels
features <- c("label", sp... | /ALY6020-HW05.R | no_license | ArvindPawar08/Machine-Learning-Projects | R | false | false | 1,623 | r | library('class')
library('caret')
library('e1071')
#reading the training dataset
train_df <- read.csv("C:/Users/Arvind/Desktop/3rd Quarter/Predictive Analytics/week 2/fashion_train.csv")
dim(train_df)
#naming the columns, the 1st column has lables and rest of the columns are pixels
features <- c("label", sp... |
library(brms)
library(cmdstanr)
library(posterior)
source("/Users/jacobsocolar/Dropbox/Work/Code/juruaTrees/example_figure.R")
# regression1_code <- make_stancode(agb_diff ~ wd_ratio_outer_inner * DBH + (1 | species + genus + family + transect + plot), data = rd2)
#
# fileConn<-file("/Users/jacobsocolar/Dropbox/Work/... | /combined_regression.R | no_license | jsocolar/juruaTrees | R | false | false | 8,639 | r | library(brms)
library(cmdstanr)
library(posterior)
source("/Users/jacobsocolar/Dropbox/Work/Code/juruaTrees/example_figure.R")
# regression1_code <- make_stancode(agb_diff ~ wd_ratio_outer_inner * DBH + (1 | species + genus + family + transect + plot), data = rd2)
#
# fileConn<-file("/Users/jacobsocolar/Dropbox/Work/... |
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_energy_L226.en_distribution
#'
#' Generate the level 2 data tables for the energy distribution sector,
#' including capital costs, shareweights, logits, and interpolations as well as energy use coefficients for electricity and gas pipeline
#... | /R/zchunk_L226.en_distribution.R | permissive | almondtea/gcamdata | R | false | false | 22,554 | r | # Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_energy_L226.en_distribution
#'
#' Generate the level 2 data tables for the energy distribution sector,
#' including capital costs, shareweights, logits, and interpolations as well as energy use coefficients for electricity and gas pipeline
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/commit-.R
\name{commit_catch}
\alias{commit_catch}
\title{Updates the most recent catch time series in the SS3 data file}
\usage{
commit_catch(
dir_data = hakedata_wd(),
digits = 5,
lastassessmentvals = c(NA, NA, NA)
)
}
\arguments{
\it... | /man/commit_catch.Rd | no_license | pacific-hake/hakedataUSA | R | false | true | 1,394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/commit-.R
\name{commit_catch}
\alias{commit_catch}
\title{Updates the most recent catch time series in the SS3 data file}
\usage{
commit_catch(
dir_data = hakedata_wd(),
digits = 5,
lastassessmentvals = c(NA, NA, NA)
)
}
\arguments{
\it... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{probability}
\alias{probability}
\title{Probability of Responses to a Question Item or the Left-Cumulative Probability of Responses}
\usage{
probability(catObj, theta, item)
}
\arguments{
\item{catObj}{An object of class \... | /man/probability.Rd | no_license | domlockett/catSurv | R | false | true | 5,413 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{probability}
\alias{probability}
\title{Probability of Responses to a Question Item or the Left-Cumulative Probability of Responses}
\usage{
probability(catObj, theta, item)
}
\arguments{
\item{catObj}{An object of class \... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/status.R
\name{status.end}
\alias{status.end}
\title{status.end}
\usage{
status.end(status = "DONE")
}
\description{
PEcAn workflow status tracking: end module
}
\author{
Rob Kooper
}
| /utils/man/status.end.Rd | permissive | yogeshdarji/pecan | R | false | true | 263 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/status.R
\name{status.end}
\alias{status.end}
\title{status.end}
\usage{
status.end(status = "DONE")
}
\description{
PEcAn workflow status tracking: end module
}
\author{
Rob Kooper
}
|
source( "masternegloglikeeps1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample154.csv",header=FALSE)
a<- as.numeric(t(uniform.... | /Full model optimizations/explorelikeuni154.R | no_license | roszenil/Bichromdryad | R | false | false | 745 | r | source( "masternegloglikeeps1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample154.csv",header=FALSE)
a<- as.numeric(t(uniform.... |
library(QGglmm)
### Name: QGmvpsi
### Title: Compute a multivariate "Psi" (used to compute the additive
### genetic variance on the observed scale).
### Aliases: QGmvpsi
### ** Examples
## Example using a bivariate model (Binary trait/Gaussian trait)
# Parameters
mu <- c(0, 1)
G <- diag(c(0.5, 2))
P <- diag(c(1, ... | /data/genthat_extracted_code/QGglmm/examples/QGmvpsi.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,016 | r | library(QGglmm)
### Name: QGmvpsi
### Title: Compute a multivariate "Psi" (used to compute the additive
### genetic variance on the observed scale).
### Aliases: QGmvpsi
### ** Examples
## Example using a bivariate model (Binary trait/Gaussian trait)
# Parameters
mu <- c(0, 1)
G <- diag(c(0.5, 2))
P <- diag(c(1, ... |
#!/home/statsadmin/R/bin/Rscript
source('Step_0_init.R')
args <- commandArgs()
idx <- as.numeric(args[length(args)])
.libPaths('ysidi/lib')
#################
### MICE ####
#################
f.nm <- sprintf('dtwaldmar325_%d.rds',idx)
dt.miss <- readRDS(file = f.nm)
df_names <- readRDS(file = "df_names.rds")
d... | /Step3_5_mice/wald/step_3_5_type_wald_missing_mar3_percent_25.R | no_license | yuliasidi/Binomial_PE_Progs | R | false | false | 590 | r | #!/home/statsadmin/R/bin/Rscript
source('Step_0_init.R')
args <- commandArgs()
idx <- as.numeric(args[length(args)])
.libPaths('ysidi/lib')
#################
### MICE ####
#################
f.nm <- sprintf('dtwaldmar325_%d.rds',idx)
dt.miss <- readRDS(file = f.nm)
df_names <- readRDS(file = "df_names.rds")
d... |
#mixed effects models for everything?
library(tidyverse)
library(gridExtra)
library(nlme)
library(lmerTest)
library(lme4)
library(ggplot2)
library(colorspace)
library(fixest)
#################################
##functions used in this script###
#################################
#this function creates dataframes for ... | /Phylogenetic Analyses/archived files/sCoRRE_mixedeffectmods.R | no_license | mavolio/scorre | R | false | false | 24,323 | r | #mixed effects models for everything?
library(tidyverse)
library(gridExtra)
library(nlme)
library(lmerTest)
library(lme4)
library(ggplot2)
library(colorspace)
library(fixest)
#################################
##functions used in this script###
#################################
#this function creates dataframes for ... |
run_Analysis <- function(){
#reading files into data frame
x_trainDF <- read.csv("UCI HAR Dataset//train//X_train.txt", sep = "", header = FALSE)
y_trainDF <- read.csv("UCI HAR Dataset//train//y_train.txt", sep = "", header = FALSE)
subject_trainDF <- read.csv("UCI HAR Dataset//train//subject_train.txt", sep... | /run_Analysis.R | no_license | rayofthesun/getting-CleaningData | R | false | false | 2,411 | r | run_Analysis <- function(){
#reading files into data frame
x_trainDF <- read.csv("UCI HAR Dataset//train//X_train.txt", sep = "", header = FALSE)
y_trainDF <- read.csv("UCI HAR Dataset//train//y_train.txt", sep = "", header = FALSE)
subject_trainDF <- read.csv("UCI HAR Dataset//train//subject_train.txt", sep... |
suppressWarnings(library(shiny))
suppressWarnings(library(markdown))
suppressWarnings(library(shinyBS))
suppressWarnings(library(shinythemes))
shinyUI(navbarPage("Text Mining Project", theme = shinytheme("superhero"),
tabPanel("Word Prediction",
sidebarLayout(
... | /ui.R | no_license | Mustafaa909/Text-Mining | R | false | false | 3,726 | r | suppressWarnings(library(shiny))
suppressWarnings(library(markdown))
suppressWarnings(library(shinyBS))
suppressWarnings(library(shinythemes))
shinyUI(navbarPage("Text Mining Project", theme = shinytheme("superhero"),
tabPanel("Word Prediction",
sidebarLayout(
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RN_plot_search_results.R
\name{RN_plot_search_results}
\alias{RN_plot_search_results}
\title{Plot results of RN_search functions}
\usage{
RN_plot_search_results(
discrete_df,
title = deparse(substitute(discrete_df)),
log_plot =... | /man/RN_plot_search_results.Rd | no_license | cran/radsafer | R | false | true | 1,551 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RN_plot_search_results.R
\name{RN_plot_search_results}
\alias{RN_plot_search_results}
\title{Plot results of RN_search functions}
\usage{
RN_plot_search_results(
discrete_df,
title = deparse(substitute(discrete_df)),
log_plot =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/caculateCPUEs.R
\name{calcmCPUEstatRecWithALK}
\alias{calcmCPUEstatRecWithALK}
\title{calcmCPUEstatRecWithALK}
\usage{
calcmCPUEstatRecWithALK(statRec, species, year, quarter, data, ALK,
percentOfAreaRepresentative = NULL)
}
\arguments{
\it... | /man/calcmCPUEstatRecWithALK.Rd | no_license | natoyaj/TestPackage | R | false | true | 800 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/caculateCPUEs.R
\name{calcmCPUEstatRecWithALK}
\alias{calcmCPUEstatRecWithALK}
\title{calcmCPUEstatRecWithALK}
\usage{
calcmCPUEstatRecWithALK(statRec, species, year, quarter, data, ALK,
percentOfAreaRepresentative = NULL)
}
\arguments{
\it... |
source("./plotting.R")
plot3 <- function() {
data <- init()
png(filename= "plot3.png",width=480, height = 480, units= "px")
plot(data$DateTime, data$Sub_metering_1, col = "black", type="l",xlab="",ylab="Energy sub metering")
lines(data$DateTime, data$Sub_metering_2, col = "red", type="l")
lines(data$DateTime... | /plot3.R | no_license | aperfectpoint/ExData_Plotting1 | R | false | false | 514 | r | source("./plotting.R")
plot3 <- function() {
data <- init()
png(filename= "plot3.png",width=480, height = 480, units= "px")
plot(data$DateTime, data$Sub_metering_1, col = "black", type="l",xlab="",ylab="Energy sub metering")
lines(data$DateTime, data$Sub_metering_2, col = "red", type="l")
lines(data$DateTime... |
barraUI = function(id) {
ns = NS(id)
div(
valueBoxOutput(ns("indice"), width = NULL) %>% hidden
)
}
barra = function(input, output, session, common) {
observeEvent(common$react$selecionada, {
showElement("indice")
runjs(glue("$('#barra-titulo .box-title').html('Estação {common$react$s... | /shiny/barra.R | no_license | SamambaMan/biodiversidade-r | R | false | false | 1,196 | r |
barraUI = function(id) {
ns = NS(id)
div(
valueBoxOutput(ns("indice"), width = NULL) %>% hidden
)
}
barra = function(input, output, session, common) {
observeEvent(common$react$selecionada, {
showElement("indice")
runjs(glue("$('#barra-titulo .box-title').html('Estação {common$react$s... |
# Creates a simple random forest benchmark
library(randomForest)
library(readr)
set.seed(0)
numTrain <- 10000
numTrees <- 25
train <- read_csv("train.csv")
test <- read_csv("test.csv")
rows <- sample(1:nrow(train), numTrain)
labels <- as.factor(train[rows,1])
labels <- as.factor(names(train))
train <- train[rows,-... | /digit_recognizer/random_forest.R | no_license | RaInta/kaggle | R | false | false | 538 | r | # Creates a simple random forest benchmark
library(randomForest)
library(readr)
set.seed(0)
numTrain <- 10000
numTrees <- 25
train <- read_csv("train.csv")
test <- read_csv("test.csv")
rows <- sample(1:nrow(train), numTrain)
labels <- as.factor(train[rows,1])
labels <- as.factor(names(train))
train <- train[rows,-... |
\name{projdepth}
\alias{projdepth}
\title{Projection depth of points relative to a dataset}
\description{
Computes the projection depth of \eqn{p}-dimensional points \code{z}
relative to a \eqn{p}-dimensional dataset \code{x}.
}
\usage{
projdepth(x, z = NULL, options = list())
}
\arguments{
\item{x}{An... | /man/projdepth.Rd | no_license | cran/mrfDepth | R | false | false | 5,192 | rd | \name{projdepth}
\alias{projdepth}
\title{Projection depth of points relative to a dataset}
\description{
Computes the projection depth of \eqn{p}-dimensional points \code{z}
relative to a \eqn{p}-dimensional dataset \code{x}.
}
\usage{
projdepth(x, z = NULL, options = list())
}
\arguments{
\item{x}{An... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fcn_misc.R
\name{delLCP}
\alias{delLCP}
\title{Removes the longest common prefix (LCP) from a vector of strings.}
\usage{
delLCP(x, min_out_length = 0, add_dots = FALSE)
}
\arguments{
\item{x}{Vector of strings with common prefix}
\item{min_... | /man/delLCP.Rd | no_license | Maddocent/PTXQC | R | false | true | 1,639 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fcn_misc.R
\name{delLCP}
\alias{delLCP}
\title{Removes the longest common prefix (LCP) from a vector of strings.}
\usage{
delLCP(x, min_out_length = 0, add_dots = FALSE)
}
\arguments{
\item{x}{Vector of strings with common prefix}
\item{min_... |
\name{get.f.step.size}
\alias{get.f.step.size}
\title{Get step size for data}
\usage{
get.f.step.size(d, f)
}
\arguments{
\item{d}{The data to have the step size determined}
\item{f}{The function to aggregate the step size}
}
\value{
The step size
}
\description{
Get step size for data.
}
\details{
Gets the step s... | /man/get.f.step.size.Rd | no_license | dannyparsons/ncdf4.helpers | R | false | false | 672 | rd | \name{get.f.step.size}
\alias{get.f.step.size}
\title{Get step size for data}
\usage{
get.f.step.size(d, f)
}
\arguments{
\item{d}{The data to have the step size determined}
\item{f}{The function to aggregate the step size}
}
\value{
The step size
}
\description{
Get step size for data.
}
\details{
Gets the step s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.