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 |
|---|---|---|---|---|---|---|---|---|---|
\name{psstG}
\Rdversion{1.1}
\alias{psstG}
\title{
Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
}
\description{
Given a point process model fitted to a point pattern dataset,
this function computes the pseudoscore diagnostic
of goodness-of-fit for the model, against moderately
clus... | /man/psstG.Rd | no_license | kasselhingee/spatstat | R | false | false | 5,176 | rd | \name{psstG}
\Rdversion{1.1}
\alias{psstG}
\title{
Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
}
\description{
Given a point process model fitted to a point pattern dataset,
this function computes the pseudoscore diagnostic
of goodness-of-fit for the model, against moderately
clus... |
# Chirag Patel
# 11/22/16
## print out the ex-post model with all the covariates
source('util.R')
labels <- read.delim('../output/tables_07-13/variable_labels_v2.txt', sep="\t", stringsAsFactors = F)
numCategorical <- as.data.frame(table(labels[labels$level != 'continuous', 'variable']))
colnames(numCategorical) <- c... | /code/ex_post_model.R | permissive | chiragjp/hiv_zambia | R | false | false | 3,072 | r | # Chirag Patel
# 11/22/16
## print out the ex-post model with all the covariates
source('util.R')
labels <- read.delim('../output/tables_07-13/variable_labels_v2.txt', sep="\t", stringsAsFactors = F)
numCategorical <- as.data.frame(table(labels[labels$level != 'continuous', 'variable']))
colnames(numCategorical) <- c... |
source("scripts/libraries_functions.R")
load("/Users/marcvalenti/TFM_data/dtmr_kenya.RData")
# load("/Users/marcvalenti/TFM_data/princomp_res.RData")
dt <- dtmr_partner_id %>%
arrange(year,month) %>%
filter(year>=2010)
month_year_aux <- expand.grid(unique(dt$year),
unique(dt$month))... | /scripts/dtmr_pca_dynamic/PCA_dynamic_kenya.R | no_license | mvalenti12/TFM | R | false | false | 8,149 | r | source("scripts/libraries_functions.R")
load("/Users/marcvalenti/TFM_data/dtmr_kenya.RData")
# load("/Users/marcvalenti/TFM_data/princomp_res.RData")
dt <- dtmr_partner_id %>%
arrange(year,month) %>%
filter(year>=2010)
month_year_aux <- expand.grid(unique(dt$year),
unique(dt$month))... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{residualDiagnostics.merMod}
\alias{residualDiagnostics.merMod}
\title{residualDiagnostics methods for merMod objects}
\usage{
\method{residualDiagnostics}{merMod}(
object,
ev.perc = 0.001,
robust = FALSE,
distr = "... | /man/residualDiagnostics.merMod.Rd | no_license | leomartinsjf/multilevelTools | R | false | true | 1,535 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{residualDiagnostics.merMod}
\alias{residualDiagnostics.merMod}
\title{residualDiagnostics methods for merMod objects}
\usage{
\method{residualDiagnostics}{merMod}(
object,
ev.perc = 0.001,
robust = FALSE,
distr = "... |
#' ARC model
#'
#' Arcs are unique paths that connect nodes. In a polygon layer with shared boundaries, the
#' arcs are the linear features that have no branches.
#'
#' Nodes are the vertices where three or more arcs meet. An arc can exist without including
#' any nodes, a path that has no neighbouring relationship w... | /R/ARC-model.R | no_license | cran/silicate | R | false | false | 2,818 | r |
#' ARC model
#'
#' Arcs are unique paths that connect nodes. In a polygon layer with shared boundaries, the
#' arcs are the linear features that have no branches.
#'
#' Nodes are the vertices where three or more arcs meet. An arc can exist without including
#' any nodes, a path that has no neighbouring relationship w... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unifed.kappa.R
\name{unifed.kappa}
\alias{unifed.kappa}
\alias{unifed.kappa.prime}
\alias{unifed.kappa.double.prime}
\alias{unifed.kappa.prime.inverse}
\alias{unifed.kappa.prime.inverse.one}
\title{Cumulant generator of the unifed distributio... | /man/unifed.kappa.Rd | no_license | cran/unifed | R | false | true | 3,111 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unifed.kappa.R
\name{unifed.kappa}
\alias{unifed.kappa}
\alias{unifed.kappa.prime}
\alias{unifed.kappa.double.prime}
\alias{unifed.kappa.prime.inverse}
\alias{unifed.kappa.prime.inverse.one}
\title{Cumulant generator of the unifed distributio... |
/bayes classifiers/naive.r | no_license | icyvan/DataMining | R | false | false | 2,192 | r | ||
hkaasjdiljafjla
cndalcjnlead
cmialdcd
ncialncs
cimacsalnip | /readme.r | no_license | ShaharPeled/MyTestRepository | R | false | false | 58 | r | hkaasjdiljafjla
cndalcjnlead
cmialdcd
ncialncs
cimacsalnip |
#Answered by Sulaiman Hawibowo
#From Dataset Superstore Simple
#Buatlah barchart yang berisi total profit dari 10 customer dengan total sales tertinggi di tahun 2015!
case_7 = read.csv("dataset_superstore_simple.csv")
library(dplyr)
library(ggplot2)
case_7$order_date = as.Date(case_7$order_date)
case_7$year = a... | /Case_No_7.R | no_license | blueishbowaaw/Assessment-Case-for-R-Language | R | false | false | 840 | r | #Answered by Sulaiman Hawibowo
#From Dataset Superstore Simple
#Buatlah barchart yang berisi total profit dari 10 customer dengan total sales tertinggi di tahun 2015!
case_7 = read.csv("dataset_superstore_simple.csv")
library(dplyr)
library(ggplot2)
case_7$order_date = as.Date(case_7$order_date)
case_7$year = a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Preprocessor.R
\name{numerics}
\alias{numerics}
\title{Helper function to select numeric variables.}
\usage{
numerics(data)
}
\description{
Helper function to select numeric variables.
}
\examples{
df <- data.frame(a=c(1,2,NA,3), b=c(10,20,30... | /man/numerics.Rd | no_license | rtsho/preprocessr | R | false | true | 434 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Preprocessor.R
\name{numerics}
\alias{numerics}
\title{Helper function to select numeric variables.}
\usage{
numerics(data)
}
\description{
Helper function to select numeric variables.
}
\examples{
df <- data.frame(a=c(1,2,NA,3), b=c(10,20,30... |
\name{frair_compare}
\alias{frair_compare}
\alias{typeI_diff}
\alias{typeI_nll_diff}
\alias{rogersII_diff}
\alias{rogersII_nll_diff}
\alias{hollingsII_diff}
\alias{hollingsII_nll_diff}
\alias{hassIII_diff}
\alias{hassIII_nll_diff}
\alias{hassIIInr_diff}
\alias{hassIIInr_nll_diff}
\alias{emdII_diff}
\alias{emdII_n... | /man/frair_compare.Rd | no_license | dpritchard/frair | R | false | false | 4,907 | rd | \name{frair_compare}
\alias{frair_compare}
\alias{typeI_diff}
\alias{typeI_nll_diff}
\alias{rogersII_diff}
\alias{rogersII_nll_diff}
\alias{hollingsII_diff}
\alias{hollingsII_nll_diff}
\alias{hassIII_diff}
\alias{hassIII_nll_diff}
\alias{hassIIInr_diff}
\alias{hassIIInr_nll_diff}
\alias{emdII_diff}
\alias{emdII_n... |
require(ggplot2)
x <- seq(0, 100, by = 0.1)
y <- -4. + 0.25 * x +
rnorm(length(x), mean = 0., sd = 2.5)
# and put them in a dataframe
my_data <- data.frame(x = x, y = y)
# perform a linear regression
my_lm <- summary(lm(y ~ x, data = my_data))
# plot the data
p <- ggplot(my_data, aes(x = x, y = y,
... | /Week3/Code/plotLin.R | no_license | emersonff/CMEECourseWork | R | false | false | 1,005 | r | require(ggplot2)
x <- seq(0, 100, by = 0.1)
y <- -4. + 0.25 * x +
rnorm(length(x), mean = 0., sd = 2.5)
# and put them in a dataframe
my_data <- data.frame(x = x, y = y)
# perform a linear regression
my_lm <- summary(lm(y ~ x, data = my_data))
# plot the data
p <- ggplot(my_data, aes(x = x, y = y,
... |
#' check_if_legal_table
#' @details
#' Checks if custom_table:
#' 1. is formated correctly
#' 2. is complete (has all of the species/pft's in both observations)
#' 3. is condense-able (Could be represented as a hierachry)
#'
#' @param observation_one a vector of plant functional types, or species
#' @param observatio... | /modules/benchmark/R/check_if_legal_table.R | permissive | PecanProject/pecan | R | false | false | 3,090 | r | #' check_if_legal_table
#' @details
#' Checks if custom_table:
#' 1. is formated correctly
#' 2. is complete (has all of the species/pft's in both observations)
#' 3. is condense-able (Could be represented as a hierachry)
#'
#' @param observation_one a vector of plant functional types, or species
#' @param observatio... |
# ------------------------------------------------------------------------
#
# Title : Radial charts
# By : Victor
# Date : 2018-09-07
#
# ------------------------------------------------------------------------
# Packages ----------------------------------------------------------------
library(apexcharter)
... | /inst/examples/radial.R | permissive | dreamRs/apexcharter | R | false | false | 1,894 | r |
# ------------------------------------------------------------------------
#
# Title : Radial charts
# By : Victor
# Date : 2018-09-07
#
# ------------------------------------------------------------------------
# Packages ----------------------------------------------------------------
library(apexcharter)
... |
# fitting GAMs to Zika travel data and local data
# =============================================================== #
## read in data
dat = read.csv(file = '../data/zika_processed_16-17.csv', stringsAsFactors = F)
dat[is.na(dat)] = 0
countries = unique(dat$country)
require(fda)
require(VGAM)
require(mvtnorm)
# ====... | /estimating_cases_in_Cuba/code/mcmc_dominican-rep.R | no_license | andersen-lab/paper_2018_cuba-travel-zika | R | false | false | 12,143 | r | # fitting GAMs to Zika travel data and local data
# =============================================================== #
## read in data
dat = read.csv(file = '../data/zika_processed_16-17.csv', stringsAsFactors = F)
dat[is.na(dat)] = 0
countries = unique(dat$country)
require(fda)
require(VGAM)
require(mvtnorm)
# ====... |
#R Script to normalized and calculate Living index and write it to new File
library(clusterSim)
aggFile <- read.csv(file="C:/Users/Mangesh/Documents/app/op_LI_Kmeans.csv",head=TRUE,sep=",")
# data Normalization in range of -1 to +1
aggFileNorm <- data.Normalization (aggFile[,4:12],type="n5",normalization="column")
aggF... | /CalLivingIndexOnAggFile.R | no_license | mangeshb1/CMPT732Project | R | false | false | 923 | r | #R Script to normalized and calculate Living index and write it to new File
library(clusterSim)
aggFile <- read.csv(file="C:/Users/Mangesh/Documents/app/op_LI_Kmeans.csv",head=TRUE,sep=",")
# data Normalization in range of -1 to +1
aggFileNorm <- data.Normalization (aggFile[,4:12],type="n5",normalization="column")
aggF... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/case_study2.r
\name{Case_Study2_loading_3_network}
\alias{Case_Study2_loading_3_network}
\title{Loading 3 network of Protein Interactions (PI) with miRNAs}
\usage{
Case_Study2_loading_3_network(sdas, miRNA_NET)
}
\arguments{
\item{sdas}{outpu... | /man/Case_Study2_loading_3_network.Rd | no_license | SSICreative83/SpidermiR | R | false | true | 683 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/case_study2.r
\name{Case_Study2_loading_3_network}
\alias{Case_Study2_loading_3_network}
\title{Loading 3 network of Protein Interactions (PI) with miRNAs}
\usage{
Case_Study2_loading_3_network(sdas, miRNA_NET)
}
\arguments{
\item{sdas}{outpu... |
## Importing the data sets we need
`Agents_3S_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_3S_0.csv")
`Agents_ACF_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_ACF_0.csv")
`Agents_B+_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_B+_0.csv")
`Links_3S_0` <- read.csv("~... | /Code voor visualisatie vraag 3.R | no_license | annanoteboom/r-code | R | false | false | 5,660 | r | ## Importing the data sets we need
`Agents_3S_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_3S_0.csv")
`Agents_ACF_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_ACF_0.csv")
`Agents_B+_0` <- read.csv("~/TB Honours/Project/Data question 3/1_agents_B+_0.csv")
`Links_3S_0` <- read.csv("~... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EqMod.r
\name{EqMod}
\alias{EqMod}
\title{Equilibrium age-structured model}
\usage{
EqMod(M, K, Linf, t0 = 0, Am, As, Fmax, R0 = 1, Steepness = 1)
}
\arguments{
\item{M}{Natural mortality rate (assumed constant for all age-classes)}
\item{K}... | /man/EqMod.Rd | no_license | AdrianHordyk/FModel | R | false | true | 885 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EqMod.r
\name{EqMod}
\alias{EqMod}
\title{Equilibrium age-structured model}
\usage{
EqMod(M, K, Linf, t0 = 0, Am, As, Fmax, R0 = 1, Steepness = 1)
}
\arguments{
\item{M}{Natural mortality rate (assumed constant for all age-classes)}
\item{K}... |
\name{cmsaf.div}
\alias{cmsaf.div}
\title{
Divide the fields of two input NetCDF files.
}
\description{
The function divides the fields of infile1 by the fields of infile2.
Infiles have to have the same spatial and temporal dimension or
one infile can contain only one timestep. The outfile uses the
meta data of infile1... | /man/cmsaf.div.Rd | no_license | solhailu/cmsaf | R | false | false | 2,634 | rd | \name{cmsaf.div}
\alias{cmsaf.div}
\title{
Divide the fields of two input NetCDF files.
}
\description{
The function divides the fields of infile1 by the fields of infile2.
Infiles have to have the same spatial and temporal dimension or
one infile can contain only one timestep. The outfile uses the
meta data of infile1... |
#' Retrieve 4 days weather forecast data from CPTEC/INPE
#'
#' This function allows the user to retrieve data from
#' CPTEC/INPE weather forecast API for the next 4 days.
#' The data frame returned contain maximum and minimum
#' temperature, ultra violet index and weather condition
#' (tempo).
#'
#' @usage prev... | /R/prev4dias.R | no_license | cran/cptec | R | false | false | 1,727 | r | #' Retrieve 4 days weather forecast data from CPTEC/INPE
#'
#' This function allows the user to retrieve data from
#' CPTEC/INPE weather forecast API for the next 4 days.
#' The data frame returned contain maximum and minimum
#' temperature, ultra violet index and weather condition
#' (tempo).
#'
#' @usage prev... |
library(cluster)
library(factoextra)
setwd("/home/olga/MyProjects/Polikek/ML/Cluster/datasets")
data = read.delim("seeds_dataset.txt")
my_cols <- c("#00AFBB", "#E7B800", "#FC4E07")
pairs(data[,1:8], pch = 19, cex = 0.5,
col = my_cols[data$sort])
sorts = data[,ncol(data)]
data = data[,-ncol(data)]
cl = clar... | /Cluster/cluster5.R | no_license | SaxinaOV/telematics_ml | R | false | false | 798 | r | library(cluster)
library(factoextra)
setwd("/home/olga/MyProjects/Polikek/ML/Cluster/datasets")
data = read.delim("seeds_dataset.txt")
my_cols <- c("#00AFBB", "#E7B800", "#FC4E07")
pairs(data[,1:8], pch = 19, cex = 0.5,
col = my_cols[data$sort])
sorts = data[,ncol(data)]
data = data[,-ncol(data)]
cl = clar... |
#' @param check_normalization logical indicating if it should be checked
#' that \code{pdf} defines a density.
| /man-roxygen/check_normalization.R | permissive | kkmann/adoptr | R | false | false | 115 | r | #' @param check_normalization logical indicating if it should be checked
#' that \code{pdf} defines a density.
|
hn <- read_csv("hacker_news.csv")
library(stringr)
m <- str_detect("hand","and")
m
m <- str_detect("antidote", "and")
m
string_vector <- c("Julie's favorite color is green", "Keli's favorite color is Blue", "Craig favorite color is red and blue")
pattern <- "Blue"
m <- str_detect(string_vector,pattern)
m
libr... | /Advanced Regular Expression.R | no_license | oluwatosin17/Data-Cleaning-in-R-Advanced | R | false | false | 10,192 | r | hn <- read_csv("hacker_news.csv")
library(stringr)
m <- str_detect("hand","and")
m
m <- str_detect("antidote", "and")
m
string_vector <- c("Julie's favorite color is green", "Keli's favorite color is Blue", "Craig favorite color is red and blue")
pattern <- "Blue"
m <- str_detect(string_vector,pattern)
m
libr... |
#!/usr/bin/env Rscript
#---------------
# initialization
#---------------
#suppressMessages(require(openxlsx))
suppressMessages(require(dplyr))
suppressMessages(require(readr))
suppressMessages(require(stringr))
suppressMessages(require(tidyr))
suppressMessages(require(crayon))
system("mkdir subseek subseek/input su... | /R/clonality/subseek.R | permissive | lmexj/pascal | R | false | false | 4,650 | r | #!/usr/bin/env Rscript
#---------------
# initialization
#---------------
#suppressMessages(require(openxlsx))
suppressMessages(require(dplyr))
suppressMessages(require(readr))
suppressMessages(require(stringr))
suppressMessages(require(tidyr))
suppressMessages(require(crayon))
system("mkdir subseek subseek/input su... |
################################################
##### MULTIVARIATE DATA AND ANALYSIS #####
##### EXERCISES #####
################################################
##### QUESTION #1
# Find the correlation matrix and covariance
# matrix of the age, IQ and weight variables
# in the hypo... | /2. Visualizing Multivariate Data/exercise solutions/S1-exercise-solutions.R | no_license | silent-wraith/Applied-Multivariate-Analysis-using-R | R | false | false | 8,210 | r | ################################################
##### MULTIVARIATE DATA AND ANALYSIS #####
##### EXERCISES #####
################################################
##### QUESTION #1
# Find the correlation matrix and covariance
# matrix of the age, IQ and weight variables
# in the hypo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/req-auth.R
\name{req_auth_bearer_token}
\alias{req_auth_bearer_token}
\title{Authenticate request with bearer token}
\usage{
req_auth_bearer_token(req, token)
}
\arguments{
\item{req}{A \link{request}.}
\item{token}{A bearer token}
}
\descri... | /man/req_auth_bearer_token.Rd | permissive | isabella232/httr2 | R | false | true | 745 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/req-auth.R
\name{req_auth_bearer_token}
\alias{req_auth_bearer_token}
\title{Authenticate request with bearer token}
\usage{
req_auth_bearer_token(req, token)
}
\arguments{
\item{req}{A \link{request}.}
\item{token}{A bearer token}
}
\descri... |
## these functions extract analysis results from adonis and
## manyglm objects
library(magrittr)
## given a data.frame `dat`, return the value of RESP for
## the variable "species"
adonisValueExtract <- function(dat, RESP) dat[["aov.tab"]]["species",RESP]
## runs adonisValueExtract for all the three major responses
#... | /R.scripts/results.R | permissive | aammd/Habitat_Filtering | R | false | false | 6,385 | r | ## these functions extract analysis results from adonis and
## manyglm objects
library(magrittr)
## given a data.frame `dat`, return the value of RESP for
## the variable "species"
adonisValueExtract <- function(dat, RESP) dat[["aov.tab"]]["species",RESP]
## runs adonisValueExtract for all the three major responses
#... |
# Chapter 4
# Hamiltonian Monte Carlo example
chapter.no <- "04"
sho <- function(t, y, parameters) {
x <- y[1]
p <- y[2]
m <- parameters
dy <- numeric(2)
dy[1] <- p / m
dy[2] <- -x
list(dy)
}
col_pal <- iprior::gg_col_hue(2)
is_even <- function(x) x %% 2 == 0
chapter.no <- "04"
# Phase portrait 1
pp <-... | /chapters/R/04-08-hmc.R | no_license | haziqj/phd-thesis | R | false | false | 3,677 | r | # Chapter 4
# Hamiltonian Monte Carlo example
chapter.no <- "04"
sho <- function(t, y, parameters) {
x <- y[1]
p <- y[2]
m <- parameters
dy <- numeric(2)
dy[1] <- p / m
dy[2] <- -x
list(dy)
}
col_pal <- iprior::gg_col_hue(2)
is_even <- function(x) x %% 2 == 0
chapter.no <- "04"
# Phase portrait 1
pp <-... |
library(tourr)
### Name: display_depth
### Title: Display 3d projection with depth cues
### Aliases: display_depth animate_depth
### Keywords: hplot
### ** Examples
animate_depth(flea[, 1:6])
| /data/genthat_extracted_code/tourr/examples/display_depth.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 199 | r | library(tourr)
### Name: display_depth
### Title: Display 3d projection with depth cues
### Aliases: display_depth animate_depth
### Keywords: hplot
### ** Examples
animate_depth(flea[, 1:6])
|
library(targets)
source("5-branching/functions.R")
tar_option_set(
packages = c(
"corrr",
"keras",
"recipes",
"rsample",
"tidyverse",
"yardstick"
)
)
tar_pipeline(
tar_target(churn_file, "data/churn.csv", format = "file"),
tar_target(churn_data, split_data(churn_file)),
tar_target(chu... | /5-branching/initial_targets.R | permissive | malhamdoosh/targets-tutorial | R | false | false | 717 | r | library(targets)
source("5-branching/functions.R")
tar_option_set(
packages = c(
"corrr",
"keras",
"recipes",
"rsample",
"tidyverse",
"yardstick"
)
)
tar_pipeline(
tar_target(churn_file, "data/churn.csv", format = "file"),
tar_target(churn_data, split_data(churn_file)),
tar_target(chu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/choose_best_weighting.R
\name{choose_best_weighting}
\alias{choose_best_weighting}
\alias{choose_best_weighting_}
\title{Use bootstrap resampling of survey to find best weighting indicators}
\usage{
choose_best_weighting(inputfile, outputpath... | /man/choose_best_weighting.Rd | permissive | heathermkrause/WWC | R | false | true | 2,651 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/choose_best_weighting.R
\name{choose_best_weighting}
\alias{choose_best_weighting}
\alias{choose_best_weighting_}
\title{Use bootstrap resampling of survey to find best weighting indicators}
\usage{
choose_best_weighting(inputfile, outputpath... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getParamLengths.R
\name{getParamLengths}
\alias{getParamLengths}
\title{Return lengths of parameters in parameter set.}
\usage{
getParamLengths(par.set)
}
\arguments{
\item{par.set}{[\code{\link{ParamSet}}]\cr
Parameter set.}
}
\value{
[\code... | /man/getParamLengths.Rd | no_license | mb706/ParamHelpers | R | false | true | 742 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getParamLengths.R
\name{getParamLengths}
\alias{getParamLengths}
\title{Return lengths of parameters in parameter set.}
\usage{
getParamLengths(par.set)
}
\arguments{
\item{par.set}{[\code{\link{ParamSet}}]\cr
Parameter set.}
}
\value{
[\code... |
base <- ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
theme(axis.line = element_line(colour = "black"))
build <- ggplot_build(base)
grab_axis <- function(plot, where = "b") {
if (!inherits(plot, "gtable")) {
gt <- ggplotGrob(plot)
} else {
gt <- plot
}
grb <- gt$grobs[grep(paste0("axis-", where), ... | /tests/testthat/test-guide_axis_truncated.R | permissive | dimbage/ggh4x | R | false | false | 3,341 | r | base <- ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
theme(axis.line = element_line(colour = "black"))
build <- ggplot_build(base)
grab_axis <- function(plot, where = "b") {
if (!inherits(plot, "gtable")) {
gt <- ggplotGrob(plot)
} else {
gt <- plot
}
grb <- gt$grobs[grep(paste0("axis-", where), ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mmiWMRR.R
\name{mmiWMRR}
\alias{mmiWMRR}
\title{Multi-model inference for wavelet multiresolution regression}
\usage{
mmiWMRR(object, data, scale, detail = TRUE, trace = FALSE)
}
\arguments{
\item{object}{A model of class \code{WRM}.}
\item{... | /man/mmiWMRR.Rd | no_license | levisc8/spind | R | false | true | 2,500 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mmiWMRR.R
\name{mmiWMRR}
\alias{mmiWMRR}
\title{Multi-model inference for wavelet multiresolution regression}
\usage{
mmiWMRR(object, data, scale, detail = TRUE, trace = FALSE)
}
\arguments{
\item{object}{A model of class \code{WRM}.}
\item{... |
# ------------------------------------------------------------------------------
# VHB Course - Group 5
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Issue 2 - Solutions
# ------------------------------... | /code/code_issue_2_solution.R | permissive | piastoczek/vhb_qear20 | R | false | false | 10,950 | r | # ------------------------------------------------------------------------------
# VHB Course - Group 5
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Issue 2 - Solutions
# ------------------------------... |
#' @title intermediate_stability
#' @description Quantify intermediate stability with respect to a given
#' reference point.
#'
#' @param x \pkg{phyloseq} object.
#' Includes otu_table (variables x samples) and
#' sample_data data.frame (samples x features) with 'subject'
#' and 'time' field for each... | /R/intermediate_stability.R | no_license | TTloveTT/microbiome | R | false | false | 3,073 | r | #' @title intermediate_stability
#' @description Quantify intermediate stability with respect to a given
#' reference point.
#'
#' @param x \pkg{phyloseq} object.
#' Includes otu_table (variables x samples) and
#' sample_data data.frame (samples x features) with 'subject'
#' and 'time' field for each... |
#Import libraries
library(dplyr)
library(tidyverse)
library(tidytext)
library(stringr)
library(ggplot2)
library(scales)
library(wordcloud)
library(reshape2)
library(textreadr)
library(tidyr)
library(ggraph)
library(igraph)
#Read in the Data
Bangkok <- read_document(file="C:/Users/Georg/Desktop/Hult/MSBA... | /Tourism Text Analytics.R | no_license | g-stotzingen/r | R | false | false | 24,041 | r | #Import libraries
library(dplyr)
library(tidyverse)
library(tidytext)
library(stringr)
library(ggplot2)
library(scales)
library(wordcloud)
library(reshape2)
library(textreadr)
library(tidyr)
library(ggraph)
library(igraph)
#Read in the Data
Bangkok <- read_document(file="C:/Users/Georg/Desktop/Hult/MSBA... |
library(testthat)
library(sampsizeval)
test_check("sampsizeval")
| /tests/testthat.R | permissive | mpavlou/sampsizeval | R | false | false | 66 | r | library(testthat)
library(sampsizeval)
test_check("sampsizeval")
|
library(tidyverse)
lh_raw <- read_csv("source__laver_hunt_1992/laver_hunt_1992.csv")
lh <-
lh_raw %>%
select(country:partyname) %>%
distinct() %>%
arrange(country, party) %>%
group_by(country) %>%
mutate(party_id = paste(country, party, sep = "-"))
duplicated(lh$party_id) %>% any()
write_csv(lh, "... | /import/laverhunt/laverhunt.R | permissive | hdigital/partyfactsdata | R | false | false | 336 | r | library(tidyverse)
lh_raw <- read_csv("source__laver_hunt_1992/laver_hunt_1992.csv")
lh <-
lh_raw %>%
select(country:partyname) %>%
distinct() %>%
arrange(country, party) %>%
group_by(country) %>%
mutate(party_id = paste(country, party, sep = "-"))
duplicated(lh$party_id) %>% any()
write_csv(lh, "... |
#' CompositeTrend function
#'
#' @description This function can be used to produce composite metrics of change
#' (indicators), whilst propagating uncertainty in the individual
#' species trend estimates through to the final composite trend
#' metric. This function takes in a dataframe of sampled annual
#' occupanc... | /R/CompositeTrend.r | no_license | BiologicalRecordsCentre/BRCindicators | R | false | false | 6,780 | r | #' CompositeTrend function
#'
#' @description This function can be used to produce composite metrics of change
#' (indicators), whilst propagating uncertainty in the individual
#' species trend estimates through to the final composite trend
#' metric. This function takes in a dataframe of sampled annual
#' occupanc... |
suppressPackageStartupMessages({
library(getopt)
})
spec = matrix(c(
'rdatafile' , 'f', 1, "character",
'help', 'h', 0, "integer"
), byrow=TRUE, ncol=4);
opt = getopt(spec)
if ( !is.null(opt$help) ) {
cat(getopt(spec, usage=TRUE));
q(status=1);
}
suppressPackageStartupMessages({
librar... | /methylseq/methylKitAnnot.R | no_license | vjbaskar/cscipipe | R | false | false | 699 | r | suppressPackageStartupMessages({
library(getopt)
})
spec = matrix(c(
'rdatafile' , 'f', 1, "character",
'help', 'h', 0, "integer"
), byrow=TRUE, ncol=4);
opt = getopt(spec)
if ( !is.null(opt$help) ) {
cat(getopt(spec, usage=TRUE));
q(status=1);
}
suppressPackageStartupMessages({
librar... |
#Installing BiocManager
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("ChIPseeker")
BiocManager::install("TxDb.Hsapiens.UCSC.hg19.knownGene", force=TRUE)
BiocManager::install("clusterProfiler", force=TRUE)
BiocManager::install("GenomicFeatures", fo... | /src/chip_seeker.R | no_license | nikyavn/hse21_H3K27ac_ZDNA_human | R | false | false | 1,051 | r |
#Installing BiocManager
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("ChIPseeker")
BiocManager::install("TxDb.Hsapiens.UCSC.hg19.knownGene", force=TRUE)
BiocManager::install("clusterProfiler", force=TRUE)
BiocManager::install("GenomicFeatures", fo... |
#' @name tigerch
#'
#' @title Simulated capture-recapture tiger survey dataset.
#'
#' @docType data
#' @description Simulated capture history from a simulated population of 81 tigers in the Sundarbans
#' region of India. Simulation is based on a real camera trap survey of the tigers. (Object
#' \link{tigersecrch} co... | /R/datasets.R | no_license | david-borchers/mt5751a | R | false | false | 5,012 | r | #' @name tigerch
#'
#' @title Simulated capture-recapture tiger survey dataset.
#'
#' @docType data
#' @description Simulated capture history from a simulated population of 81 tigers in the Sundarbans
#' region of India. Simulation is based on a real camera trap survey of the tigers. (Object
#' \link{tigersecrch} co... |
aminoAcid.matching.positions <-
function(matchAA, aalength){
positionAA <- list()
p <- 1
for(i in 1:nrow(matchAA)){
for(n in 1:aalength){
if(is.na(matchAA[i, n+2]) == FALSE){
positionAA[[p]] <- c(matchAA[i,1], matchAA[i, 2], n, matchAA[i,n+2])
p = p + 1
}
}
}
return(positionAA)
}
| /R/aminoAcid.matching.positions.R | no_license | cran/VLF | R | false | false | 304 | r | aminoAcid.matching.positions <-
function(matchAA, aalength){
positionAA <- list()
p <- 1
for(i in 1:nrow(matchAA)){
for(n in 1:aalength){
if(is.na(matchAA[i, n+2]) == FALSE){
positionAA[[p]] <- c(matchAA[i,1], matchAA[i, 2], n, matchAA[i,n+2])
p = p + 1
}
}
}
return(positionAA)
}
|
# -----------------------------------------------------------------------------
# Read in packages and data
# -----------------------------------------------------------------------------
library(dplyr)
library(pROC)
library(rpart)
library(rpart.plot)
path_input_data <- Sys.getenv("path_input_data")
# ----------------... | /month-six-data-check.R | permissive | jamieyap/smarter-weight-loss | R | false | false | 16,294 | r | # -----------------------------------------------------------------------------
# Read in packages and data
# -----------------------------------------------------------------------------
library(dplyr)
library(pROC)
library(rpart)
library(rpart.plot)
path_input_data <- Sys.getenv("path_input_data")
# ----------------... |
## IBM to generate the data for the simple recruitment limited IPM - there's no recruitment limitation 1st
## Size is on a log scale so don't worry about the -ive ones!
## The parameters and life cycle follow Kachi and Hirose J.Ecol. 1985, see Rees and Rose PRSB 2002, but for
## simplicity we have used a logistic func... | /Source_files/Monocarp Demog Funs.R | no_license | imanidaniele/IPM_Ellner | R | false | false | 5,911 | r | ## IBM to generate the data for the simple recruitment limited IPM - there's no recruitment limitation 1st
## Size is on a log scale so don't worry about the -ive ones!
## The parameters and life cycle follow Kachi and Hirose J.Ecol. 1985, see Rees and Rose PRSB 2002, but for
## simplicity we have used a logistic func... |
####################################################################################
# Functions to position a rectangle over a pixelated image and to calculate
# transducer coordinates based on the rectangle. The pixels of the image in question
# must be labeled by tissue type, (as opposed to slowness or speed,) with ... | /R/pixelated_thigh_utils.R | no_license | WilCrofter/crust | R | false | false | 8,324 | r | ####################################################################################
# Functions to position a rectangle over a pixelated image and to calculate
# transducer coordinates based on the rectangle. The pixels of the image in question
# must be labeled by tissue type, (as opposed to slowness or speed,) with ... |
#' interaCos
#'
#' Obtain interactive dataframe of the makeup-api API.
#'
#' This function generates an interactive makeup-api API dataframe.
#'
#' @return Use this function to get an interactive dataframe.
#' @keywords interactive, dataframe, endpoint, API
#' @import stringr
#' @import httr
#' @import dplyr
#' @import... | /makeupapifx/R/interCos.R | no_license | mt0002/makeup-api-API-Package-R- | R | false | false | 872 | r | #' interaCos
#'
#' Obtain interactive dataframe of the makeup-api API.
#'
#' This function generates an interactive makeup-api API dataframe.
#'
#' @return Use this function to get an interactive dataframe.
#' @keywords interactive, dataframe, endpoint, API
#' @import stringr
#' @import httr
#' @import dplyr
#' @import... |
##############################################################################################
# File: create_folder_structure.R
# Author: John Maxwell
# Date: 2016-10-27
# TLDR: Creates the folder structure for R Project Skeleton. Delete after folder structure
# is created.
######################################... | /create_folder_structure.R | no_license | CpuKnows/R-Project-Skeleton | R | false | false | 834 | r | ##############################################################################################
# File: create_folder_structure.R
# Author: John Maxwell
# Date: 2016-10-27
# TLDR: Creates the folder structure for R Project Skeleton. Delete after folder structure
# is created.
######################################... |
source("getAndPrepareMeterData.R")
meterData <- getAndPrepareMeterData()
# Plot a line graph of Global Active Power over time to PNG file plot2.png
png(filename = "plot2.png", width=480, height=480)
par(mar=c(3,4,4,2))
plot(x=meterData$datetime, y=meterData$Global_active_power, type="l", ylab="Global Active Power (kil... | /plot2.R | no_license | art2mis/ExData_Plotting1 | R | false | false | 339 | r | source("getAndPrepareMeterData.R")
meterData <- getAndPrepareMeterData()
# Plot a line graph of Global Active Power over time to PNG file plot2.png
png(filename = "plot2.png", width=480, height=480)
par(mar=c(3,4,4,2))
plot(x=meterData$datetime, y=meterData$Global_active_power, type="l", ylab="Global Active Power (kil... |
## Programming Assignment 2 - R Programming
## Data Science Specialization Track
##
## These two functions are part of completing the second
## programming assignment for the R Programming course
## offered on Coursera through the Johns Hopkins
## School for Public Health
##
## The two functions shown here help in cac... | /cachematrix.R | no_license | Pombo123/ProgrammingAssignment2 | R | false | false | 3,429 | r | ## Programming Assignment 2 - R Programming
## Data Science Specialization Track
##
## These two functions are part of completing the second
## programming assignment for the R Programming course
## offered on Coursera through the Johns Hopkins
## School for Public Health
##
## The two functions shown here help in cac... |
# This file is stored as cane.r
# Enter the data. Note that the first
# line of this file is a line of data,
# not a line of variable names.
cane <- read.table("cane.dat",
col.names=c("Variety","Nitrogen",
"Yield"))
# Create factors
cane$V <- as.factor(cane$Variety)
cane$N <- ... | /1st Semester/Statistical Method for Linear Model/4월/7장/cane.r | no_license | ehdrb5011992/Statistic | R | false | false | 3,401 | r |
# This file is stored as cane.r
# Enter the data. Note that the first
# line of this file is a line of data,
# not a line of variable names.
cane <- read.table("cane.dat",
col.names=c("Variety","Nitrogen",
"Yield"))
# Create factors
cane$V <- as.factor(cane$Variety)
cane$N <- ... |
#' Goodness of fit tests for potentially high-dimensional linear models
#'
#' Can test for the significance of (potentially large) groups of predictors and
#' the presence of nonlinearity or heteroscedasticity in the context of both low
#' and high-dimensional linear models. Outputs a p-value. Also allows for the
... | /R/RPtest.R | no_license | cran/RPtests | R | false | false | 12,529 | r | #' Goodness of fit tests for potentially high-dimensional linear models
#'
#' Can test for the significance of (potentially large) groups of predictors and
#' the presence of nonlinearity or heteroscedasticity in the context of both low
#' and high-dimensional linear models. Outputs a p-value. Also allows for the
... |
## First load the power data from 2007-02-01 to 2007-02-02
pwr <- read.table("household_power_consumption.txt", stringsAsFactors = FALSE,
header = TRUE, sep=";", na.strings = "?")
## Convert dates to Date objects to for subsetting
pwr <- subset(pwr, as.Date(Date, "%d/%m/%Y") == "2007-02-01" |
... | /plot4.R | no_license | adamazoulay/ExData_Plotting1 | R | false | false | 2,020 | r | ## First load the power data from 2007-02-01 to 2007-02-02
pwr <- read.table("household_power_consumption.txt", stringsAsFactors = FALSE,
header = TRUE, sep=";", na.strings = "?")
## Convert dates to Date objects to for subsetting
pwr <- subset(pwr, as.Date(Date, "%d/%m/%Y") == "2007-02-01" |
... |
#' Average Win Probability
#'
#' Computes Time-Based Average Win Probability for the Home Team
#'
#' @param game_id ESPN game_id for which to compute average win probability
#' @param include_spread Logical, whether to include pre-game spread in Win Probability
#' calculations. Default = True.
#' @return Average Win Pr... | /R/average_win_prob.R | permissive | dylorr/ncaahoopR | R | false | false | 830 | r | #' Average Win Probability
#'
#' Computes Time-Based Average Win Probability for the Home Team
#'
#' @param game_id ESPN game_id for which to compute average win probability
#' @param include_spread Logical, whether to include pre-game spread in Win Probability
#' calculations. Default = True.
#' @return Average Win Pr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boards_manip.R
\name{create_board}
\alias{create_board}
\alias{delete_board}
\alias{edit_board}
\title{Create, delete, or edit a Board}
\usage{
create_board(name, description, token)
delete_board(board, token)
edit_board(board, name = NULL,... | /man/board_manip.Rd | permissive | ColinFay/rpinterest | R | false | true | 892 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boards_manip.R
\name{create_board}
\alias{create_board}
\alias{delete_board}
\alias{edit_board}
\title{Create, delete, or edit a Board}
\usage{
create_board(name, description, token)
delete_board(board, token)
edit_board(board, name = NULL,... |
library(ggplot2)
data(iris)
hist(iris$Petal.Length)
petal_length_mean <- mean(iris$Petal.Length)
petal_length_mean
| /GEO 511 Task 1.R | no_license | btkunz/GEO-Project-Repository | R | false | false | 116 | r | library(ggplot2)
data(iris)
hist(iris$Petal.Length)
petal_length_mean <- mean(iris$Petal.Length)
petal_length_mean
|
library(httr)
library(rvest)
library(dplyr)
library(zoo)
library(stringr)
library(reshape2)
library(stringr)
library(tm)
library(wordcloud)
library(tidyverse)
library(tidytext)
library(KoNLP)
library(wordcloud2)
library(RColorBrewer)
library(dplyr)
bal_url<-"https://music.bugs.co.kr/genre/kpop/ballad/ballad?tabtype=2... | /code.R | no_license | jaaaamj0711/Bugs_Textdata_Analysis | R | false | false | 17,566 | r | library(httr)
library(rvest)
library(dplyr)
library(zoo)
library(stringr)
library(reshape2)
library(stringr)
library(tm)
library(wordcloud)
library(tidyverse)
library(tidytext)
library(KoNLP)
library(wordcloud2)
library(RColorBrewer)
library(dplyr)
bal_url<-"https://music.bugs.co.kr/genre/kpop/ballad/ballad?tabtype=2... |
library(shiny)
ui <- fluidPage(
textOutput("text"), # goes with renderText()
verbatimTextOutput("code"), # goes with renderPrint()
# static table of data, all at once
tableOutput("static"), # goes with renderTable()
# dynamic table, with controls
dataTableOutput("dynamic"), # goes with renderDataTable()
... | /code/chapter_2/outputs_app.R | permissive | ads40/mastering_shiny | R | false | false | 768 | r | library(shiny)
ui <- fluidPage(
textOutput("text"), # goes with renderText()
verbatimTextOutput("code"), # goes with renderPrint()
# static table of data, all at once
tableOutput("static"), # goes with renderTable()
# dynamic table, with controls
dataTableOutput("dynamic"), # goes with renderDataTable()
... |
count(movie_data_sub,'Genre')
g_movie <- ggplot(data = movie_data_sub, aes(y = freq, x = Genre, fill = Genre));
freq_decade_movie <- count(movie_data_sub,'Genre');
freq_genre_movie <- count(movie_data_sub,'Genre');
g_movie <- ggplot(data = freq_genre_movie, aes(y = freq, x = Genre, fill = Genre));
g_movie + geom_bar(st... | /frequency movies.R | no_license | rishitha-pericherla/Movie-Rating-Analysis | R | false | false | 547 | r | count(movie_data_sub,'Genre')
g_movie <- ggplot(data = movie_data_sub, aes(y = freq, x = Genre, fill = Genre));
freq_decade_movie <- count(movie_data_sub,'Genre');
freq_genre_movie <- count(movie_data_sub,'Genre');
g_movie <- ggplot(data = freq_genre_movie, aes(y = freq, x = Genre, fill = Genre));
g_movie + geom_bar(st... |
# This script creates a map with the doculect locations.
setwd('C:/Users/vbl/Documents/Uni/18 BA Thesis/thesis/helper scripts')
library(rworldmap)
pdf("../doc/figures/map-pres.pdf", width=10.1, height=9.3)
# Get the map.
map <- getMap(resolution="low")
plot(map,
xlim = c(6, 8),
ylim = c(46.3, 54.7),
as... | /helper scripts/map-pres.R | no_license | verenablaschke/dialect-clustering | R | false | false | 1,739 | r | # This script creates a map with the doculect locations.
setwd('C:/Users/vbl/Documents/Uni/18 BA Thesis/thesis/helper scripts')
library(rworldmap)
pdf("../doc/figures/map-pres.pdf", width=10.1, height=9.3)
# Get the map.
map <- getMap(resolution="low")
plot(map,
xlim = c(6, 8),
ylim = c(46.3, 54.7),
as... |
#' Typical signal preprocessing for EEG
#'
signalPreparation <- function(input, refs=c(), low=0.1, high=40, notch=50){
out <- input
if(length(refs)>0){
out <- pipe.references(input, refs)
}
pipe.bandFilter(out, low, high, notch)
} | /R/signalProcessingHelpers.R | no_license | Shkalik/Resonance-Rproj | R | false | false | 255 | r | #' Typical signal preprocessing for EEG
#'
signalPreparation <- function(input, refs=c(), low=0.1, high=40, notch=50){
out <- input
if(length(refs)>0){
out <- pipe.references(input, refs)
}
pipe.bandFilter(out, low, high, notch)
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/infer.R
\name{infer.sample}
\alias{infer.sample}
\title{Inference method using sampling}
\usage{
infer.sample(crf, sample.method, ...)
}
\arguments{
\item{crf}{The CRF}
\item{sample.method}{The sampling method}
\item{...}{The parameters for... | /man/infer.sample.Rd | no_license | LLT0504/CRF | R | false | true | 1,053 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/infer.R
\name{infer.sample}
\alias{infer.sample}
\title{Inference method using sampling}
\usage{
infer.sample(crf, sample.method, ...)
}
\arguments{
\item{crf}{The CRF}
\item{sample.method}{The sampling method}
\item{...}{The parameters for... |
rm(list=ls())
setwd("~/Dropbox/code/sj-st-rubric/round2/")
library("ggplot2")
library("plyr")
# read in data
t = read.csv("tina.csv", stringsAsFactors=F)
k = read.csv("keith.csv", stringsAsFactors=F)
s = read.csv("sonya.csv", stringsAsFactors=F)
# count up total scores
sum_vars = function(df) {
df$score = rowSums(df... | /round2/analysis.R | no_license | xuzhao9/sj-st-rubric | R | false | false | 1,977 | r | rm(list=ls())
setwd("~/Dropbox/code/sj-st-rubric/round2/")
library("ggplot2")
library("plyr")
# read in data
t = read.csv("tina.csv", stringsAsFactors=F)
k = read.csv("keith.csv", stringsAsFactors=F)
s = read.csv("sonya.csv", stringsAsFactors=F)
# count up total scores
sum_vars = function(df) {
df$score = rowSums(df... |
#!/bin/Rscript
library(ggplot2)
library(ape)
args <- commandArgs(trailingOnly = TRUE)
infile <- as.character(args[1])
mincov <- as.numeric(args[2])
maxcov <- as.numeric(args[3])
covsdthresh <- as.numeric(args[4])
outpath <- as.character(args[5])
covcols_str <- args[6]
covcols <- as.numeric(strsplit(covcols_str,split... | /Baldwin-Brown_2020_Ccol_genome/assembly_and_annotation/assembly/scripts/util/make_cens_list_col.R | no_license | jgbaldwinbrown/jgbutils | R | false | false | 2,133 | r | #!/bin/Rscript
library(ggplot2)
library(ape)
args <- commandArgs(trailingOnly = TRUE)
infile <- as.character(args[1])
mincov <- as.numeric(args[2])
maxcov <- as.numeric(args[3])
covsdthresh <- as.numeric(args[4])
outpath <- as.character(args[5])
covcols_str <- args[6]
covcols <- as.numeric(strsplit(covcols_str,split... |
\name{summary.monotonicity.class}
\alias{summary.monotonicity.class}
\title{
Summarize monotonicity.class objects
}
\description{
S3 Method for \code{summary} of objects of class monotonicity.class.
Summarizes checks of monotonicity
}
\usage{
\method{summary}{monotonicity.class}(object, ...)
}
\argume... | /man/summary.monotonicity.cass.Rd | no_license | vandenman/mokken | R | false | false | 2,029 | rd | \name{summary.monotonicity.class}
\alias{summary.monotonicity.class}
\title{
Summarize monotonicity.class objects
}
\description{
S3 Method for \code{summary} of objects of class monotonicity.class.
Summarizes checks of monotonicity
}
\usage{
\method{summary}{monotonicity.class}(object, ...)
}
\argume... |
cut.novel <- function(novel.list,
cutoff){
lapply(novel.list,
function(x){
bin.raw <- as.numeric(as.character(x$bins))
bin.sort <- sort(as.numeric(as.character(x$bins)))
x$bin.n <- nrow(x)+1 - match(bin.raw, bin.sort)
... | /functions/cut.novel.R | no_license | TimothyStaples/novelty-cenozoic-microplankton | R | false | false | 370 | r | cut.novel <- function(novel.list,
cutoff){
lapply(novel.list,
function(x){
bin.raw <- as.numeric(as.character(x$bins))
bin.sort <- sort(as.numeric(as.character(x$bins)))
x$bin.n <- nrow(x)+1 - match(bin.raw, bin.sort)
... |
library(matrixStats);
library(compiler)
enableJIT(3)
#' Compute Stundent-t log likeligood
stnll <- function(x,mu,a,c,B,D) {
nu <- a-D+1;
Lambda <- c*nu/(c+1)*B;
nl <- (nu+D)/2*log(1+t(x-mu)%*%crossprod(Lambda,x-mu)/nu)-0.5*log(det(Lambda))+lgamma(nu/2)-lgamma((nu+D)/2)+D/2*log(nu*pi);
return(nl)
}
#' Replica... | /PACKAGE/R/clustMapDP.R | no_license | guhjy/R-ClustMAPDP | R | false | false | 3,558 | r | library(matrixStats);
library(compiler)
enableJIT(3)
#' Compute Stundent-t log likeligood
stnll <- function(x,mu,a,c,B,D) {
nu <- a-D+1;
Lambda <- c*nu/(c+1)*B;
nl <- (nu+D)/2*log(1+t(x-mu)%*%crossprod(Lambda,x-mu)/nu)-0.5*log(det(Lambda))+lgamma(nu/2)-lgamma((nu+D)/2)+D/2*log(nu*pi);
return(nl)
}
#' Replica... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readobs.R
\name{readobs}
\alias{readobs}
\title{Read Observed Data}
\usage{
readobs(observed, city)
}
\arguments{
\item{observed, }{data.frame with historical observed data}
\item{city, }{location (currently limited to SLC,Toledo, Phoenix, S... | /man/readobs.Rd | no_license | cahhansen/CCFMR | R | false | true | 454 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readobs.R
\name{readobs}
\alias{readobs}
\title{Read Observed Data}
\usage{
readobs(observed, city)
}
\arguments{
\item{observed, }{data.frame with historical observed data}
\item{city, }{location (currently limited to SLC,Toledo, Phoenix, S... |
#' #' @export
#' as_sc <- function(x) {
#' UseMethod('as_sc')
#' }
#' #' @export
#' as_sc.igraph <- function(x) {
#' x <- PRIMITIVE(x)
#' attr(x, 'active') <- 'object'
#' x
#' }
#' as_sc.sf <- function(x) {
#' x <- PATH(x)
#' attr(x, 'active') <- 'object'
#' x
#' }
#' # sc_active <- function(x) {
#' # a... | /R/dplyr-api.r | no_license | MilesMcBain/silicate | R | false | false | 2,375 | r | #' #' @export
#' as_sc <- function(x) {
#' UseMethod('as_sc')
#' }
#' #' @export
#' as_sc.igraph <- function(x) {
#' x <- PRIMITIVE(x)
#' attr(x, 'active') <- 'object'
#' x
#' }
#' as_sc.sf <- function(x) {
#' x <- PATH(x)
#' attr(x, 'active') <- 'object'
#' x
#' }
#' # sc_active <- function(x) {
#' # a... |
#' Transformation: density estimate
#'
#' \code{transform_density} is a data transformation that computes a kernel
#' density estimate from a dataset. \code{layer_density} combines
#' \code{transform_density} with \code{mark_path} and \code{mark_area}
#' to display a smooth line and its standard errror.
#'
#' @section ... | /R/transform_density.R | no_license | FvD/ggvis | R | false | false | 4,618 | r | #' Transformation: density estimate
#'
#' \code{transform_density} is a data transformation that computes a kernel
#' density estimate from a dataset. \code{layer_density} combines
#' \code{transform_density} with \code{mark_path} and \code{mark_area}
#' to display a smooth line and its standard errror.
#'
#' @section ... |
sim_data <- function(.){
attach(.)
Xm1 = ceiling(ceiling(theta[1]*s.val[1]/theta[2]) + (log(epsilon)/log(.5)))
Xm2 = ceiling(ceiling(theta[1]*s.val[2]/theta[2]) + (log(epsilon)/log(.5)))
calc_ccp <- function( s, Xm){
tol = 10^(-6)
error = 10^(1)
choice_prob = rep(x=0.5, Xm + 1)
... | /OPNS_Arcidiacono_lab-master/code/modules/valueIteration.R | no_license | parthamishra1996/Arcidiacono | R | false | false | 930 | r | sim_data <- function(.){
attach(.)
Xm1 = ceiling(ceiling(theta[1]*s.val[1]/theta[2]) + (log(epsilon)/log(.5)))
Xm2 = ceiling(ceiling(theta[1]*s.val[2]/theta[2]) + (log(epsilon)/log(.5)))
calc_ccp <- function( s, Xm){
tol = 10^(-6)
error = 10^(1)
choice_prob = rep(x=0.5, Xm + 1)
... |
# import libraries
library(tidyverse)
library(grid)
library(gridExtra)
library(reshape2)
rm(list = ls())
##########################################################################
# enter parameters
frame_pre <- 2; # final frame before ligand addition
time_ligand <- 80; # ligand added after this time point
#########... | /Fig2_3T3_EGF/2021_06_21_EREG.R | no_license | toettchlab/Farahani2022 | R | false | false | 5,522 | r | # import libraries
library(tidyverse)
library(grid)
library(gridExtra)
library(reshape2)
rm(list = ls())
##########################################################################
# enter parameters
frame_pre <- 2; # final frame before ligand addition
time_ligand <- 80; # ligand added after this time point
#########... |
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
getInverse <- function() inv
list(set = set,
get = get,
setInverse = setInverse,
getInverse = getInverse)
}
... | /cachematrix.R | no_license | martinoke/ProgrammingAssignment2 | R | false | false | 575 | r | makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
getInverse <- function() inv
list(set = set,
get = get,
setInverse = setInverse,
getInverse = getInverse)
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/REmargins.R
\name{REmargins}
\alias{REmargins}
\title{Calculate the predicted value for each observation across the distribution
of the random effect terms.}
\usage{
REmargins(
merMod,
newdata = NULL,
groupFctr = NULL,
term = NULL,
... | /man/REmargins.Rd | no_license | alapo/merTools | R | false | true | 5,143 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/REmargins.R
\name{REmargins}
\alias{REmargins}
\title{Calculate the predicted value for each observation across the distribution
of the random effect terms.}
\usage{
REmargins(
merMod,
newdata = NULL,
groupFctr = NULL,
term = NULL,
... |
library(SubgroupBoost)
data("simdata")
names(simdata)
str(simdata$train)
str(simdata$test)
#----- data manipulation-----#
#training data
dat.train = simdata[[1]][,-c(1:5)]
info.train = simdata[[1]][, 1:5]
dtrain <-
xgb.DMatrix(as.matrix(dat.train), label = info.train$trt01p)
#testing data
dat.test = simdata[[2]][,... | /simulation.R | permissive | gqwang1001/InterpretSGB | R | false | false | 2,969 | r | library(SubgroupBoost)
data("simdata")
names(simdata)
str(simdata$train)
str(simdata$test)
#----- data manipulation-----#
#training data
dat.train = simdata[[1]][,-c(1:5)]
info.train = simdata[[1]][, 1:5]
dtrain <-
xgb.DMatrix(as.matrix(dat.train), label = info.train$trt01p)
#testing data
dat.test = simdata[[2]][,... |
#' @method Ops lfactor
#' @export
Ops.lfactor <- function(e1,e2) {
e10 <- e1
if(.Generic %in% c("<", "<=", ">=", ">")) {
if(inherits(e1, "lfactor")) {
e1 <- as.numeric(e1)
} else {
if(inherits(e1, "character")) {
e2l <- levels(e2)
if(e1 %in% e2l) {
e1 <- as.n... | /R/Ops.lfactor.R | no_license | cran/lfactors | R | false | false | 1,154 | r | #' @method Ops lfactor
#' @export
Ops.lfactor <- function(e1,e2) {
e10 <- e1
if(.Generic %in% c("<", "<=", ">=", ">")) {
if(inherits(e1, "lfactor")) {
e1 <- as.numeric(e1)
} else {
if(inherits(e1, "character")) {
e2l <- levels(e2)
if(e1 %in% e2l) {
e1 <- as.n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prep_data.R
\name{prep_data}
\alias{prep_data}
\title{Merge taxa, water quality, and tab.habitat data into one}
\usage{
prep_data(tab.taxa, tab.wq, tab.habitat, tab.event, tab.stations, tab.project,
tab.huc, agg_sample_num = TRUE, developme... | /man/prep_data.Rd | no_license | InterstateCommissionPotomacRiverBasin/bibi2.0 | R | false | true | 1,327 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prep_data.R
\name{prep_data}
\alias{prep_data}
\title{Merge taxa, water quality, and tab.habitat data into one}
\usage{
prep_data(tab.taxa, tab.wq, tab.habitat, tab.event, tab.stations, tab.project,
tab.huc, agg_sample_num = TRUE, developme... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cof_lv_switchgear_and_other.R
\name{network_cof_lv_switchgear_and_other}
\alias{network_cof_lv_switchgear_and_other}
\title{Network cost of Failure for LV swicthgear and others}
\source{
DNO Common Network Asset Indices Methodology (CNAIM),
H... | /man/network_cof_lv_switchgear_and_other.Rd | permissive | scoultersdcoe/CNAIM | R | false | true | 1,435 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cof_lv_switchgear_and_other.R
\name{network_cof_lv_switchgear_and_other}
\alias{network_cof_lv_switchgear_and_other}
\title{Network cost of Failure for LV swicthgear and others}
\source{
DNO Common Network Asset Indices Methodology (CNAIM),
H... |
## These functions attempt to save time with caching the value of
## a matrix inverse. When needing to calculate another inverse,
## this will check to see if it has already been calculated.
## Put comments here that give an overall description of what your
## functions do
## This function creates a "m... | /cachematrix.R | no_license | kegunter/ProgrammingAssignment2 | R | false | false | 1,320 | r | ## These functions attempt to save time with caching the value of
## a matrix inverse. When needing to calculate another inverse,
## this will check to see if it has already been calculated.
## Put comments here that give an overall description of what your
## functions do
## This function creates a "m... |
require(rstan)
require(shinystan)
require(KernSmooth)
library(RColorBrewer)
require(readxl)
require(dplyr)
require(viridis)
spc <- "YFS"
if (spc =="POP") load("Outputs/POP_result.Rdata")
color.list <- plasma(n=16)[c(1,12)]
add.alpha <- function(col, alpha=1){
if(missing(col))
stop("Please provide a vector o... | /R/plot growth anomaly through time SAME FIGURE.R | no_license | tessington/biochronology | R | false | false | 7,050 | r |
require(rstan)
require(shinystan)
require(KernSmooth)
library(RColorBrewer)
require(readxl)
require(dplyr)
require(viridis)
spc <- "YFS"
if (spc =="POP") load("Outputs/POP_result.Rdata")
color.list <- plasma(n=16)[c(1,12)]
add.alpha <- function(col, alpha=1){
if(missing(col))
stop("Please provide a vector o... |
\name{SIL.F}
\alias{SIL.F}
\title{Fuzzy silhouette index}
\description{
Produces the fuzzy silhouette index. The optimal number of clusters \emph{k} is is such that the index takes the maximum value.
}
\usage{
SIL.F (Xca, U, alpha, distance)
}
\arguments{
\item{Xca}{Matrix or data.frame}
\item{U}{Membership degree... | /man/SIL.F.Rd | no_license | cran/fclust | R | false | false | 1,671 | rd | \name{SIL.F}
\alias{SIL.F}
\title{Fuzzy silhouette index}
\description{
Produces the fuzzy silhouette index. The optimal number of clusters \emph{k} is is such that the index takes the maximum value.
}
\usage{
SIL.F (Xca, U, alpha, distance)
}
\arguments{
\item{Xca}{Matrix or data.frame}
\item{U}{Membership degree... |
# test 3 repository | /test3_in_test3.R | no_license | rahulpalamarri/test3 | R | false | false | 19 | r | # test 3 repository |
library(multicolor)
### Name: multicolor_logo
### Title: The multicolor package logo
### Aliases: multicolor_logo
### ** Examples
multicolor_logo()
| /data/genthat_extracted_code/multicolor/examples/multicolor_logo.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 155 | r | library(multicolor)
### Name: multicolor_logo
### Title: The multicolor package logo
### Aliases: multicolor_logo
### ** Examples
multicolor_logo()
|
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{loadResampleModelsRefitsOnly}
\alias{loadResampleModelsRefitsOnly}
\title{Loads resample models, for the resample fits only (ignoring the base fit)}
\usage{
loadResampleModelsRefitsOnly(countryAbbrev, modelType, energyType = "none",
factor = "K", archive = NU... | /Packages/EconModels0/man/loadResampleModelsRefitsOnly.Rd | no_license | anhnguyendepocen/MacroGrowth | R | false | false | 1,463 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{loadResampleModelsRefitsOnly}
\alias{loadResampleModelsRefitsOnly}
\title{Loads resample models, for the resample fits only (ignoring the base fit)}
\usage{
loadResampleModelsRefitsOnly(countryAbbrev, modelType, energyType = "none",
factor = "K", archive = NU... |
library(shiny)
library(dplyr)
library(ggplot2)
library(lubridate)
##-----------------------------------------------------------------------------
shinyServer(function(input, output) {
##-------------------------------------------------------------------------
##TAREA2: Rellenar para que tweets_frame sea r... | /server.R | no_license | sergiolopezm5/shiny_SEAST | R | false | false | 2,219 | r |
library(shiny)
library(dplyr)
library(ggplot2)
library(lubridate)
##-----------------------------------------------------------------------------
shinyServer(function(input, output) {
##-------------------------------------------------------------------------
##TAREA2: Rellenar para que tweets_frame sea r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_06_return_fct_helpers.R
\name{prepare_plot_q7_14}
\alias{prepare_plot_q7_14}
\alias{plot_q7_14}
\title{helper function}
\usage{
plot_q7_14(country = NULL)
}
\arguments{
\item{country}{filter analysis by country}
}
\description{
relevant p... | /man/prepare_plot_q7_14.Rd | permissive | aassumpcao/ColombiaDashboard | R | false | true | 347 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_06_return_fct_helpers.R
\name{prepare_plot_q7_14}
\alias{prepare_plot_q7_14}
\alias{plot_q7_14}
\title{helper function}
\usage{
plot_q7_14(country = NULL)
}
\arguments{
\item{country}{filter analysis by country}
}
\description{
relevant p... |
## Authors
## Martin Schlather, schlather@math.uni-mannheim.de
##
##
## Copyright (C) 2015 -- 2017 Martin Schlather
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 3
## of ... | /R/fitbernoulli.R | no_license | cran/RandomFields | R | false | false | 933 | r | ## Authors
## Martin Schlather, schlather@math.uni-mannheim.de
##
##
## Copyright (C) 2015 -- 2017 Martin Schlather
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 3
## of ... |
# R script for a log log plot of data from two files
# Created for SWC NYU R bootcamp
# 2014 March 17-18
# We're going to plot, so load the plotting library ggplot2
library(ggplot2)
# Set the working directory
wd = "/Users/tracyt/bootcamp/2014-03-17-nyu-R/example"
setwd(wd)
# Bring in the data
# read.table will re... | /example/sample_R_script.R | no_license | cansugundem/2014-03-17-nyu-R | R | false | false | 4,828 | r | # R script for a log log plot of data from two files
# Created for SWC NYU R bootcamp
# 2014 March 17-18
# We're going to plot, so load the plotting library ggplot2
library(ggplot2)
# Set the working directory
wd = "/Users/tracyt/bootcamp/2014-03-17-nyu-R/example"
setwd(wd)
# Bring in the data
# read.table will re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mcmc_helpers.R
\name{my_creation_function}
\alias{my_creation_function}
\title{Likelihood function for maximum likelihood (ML) method}
\usage{
my_creation_function(parTab, data, PRIOR_FUNC, ...)
}
\arguments{
\item{parTab}{The parameter table... | /man/my_creation_function.Rd | permissive | mynameiskris/wave | R | false | true | 868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mcmc_helpers.R
\name{my_creation_function}
\alias{my_creation_function}
\title{Likelihood function for maximum likelihood (ML) method}
\usage{
my_creation_function(parTab, data, PRIOR_FUNC, ...)
}
\arguments{
\item{parTab}{The parameter table... |
context("Zproject creation")
options <- get_options()
test_that("Zproject is created correctly based on existing project", {
setup.dir <- options$setup.dir
test.project <- load_zproject(setup.dir)
# Test slots
expect_that(test.project, is_a("Zproject"),
paste("Test project is not an instance o... | /tests/testthat/test-06-zproject.R | no_license | cbig/zonator | R | false | false | 3,453 | r | context("Zproject creation")
options <- get_options()
test_that("Zproject is created correctly based on existing project", {
setup.dir <- options$setup.dir
test.project <- load_zproject(setup.dir)
# Test slots
expect_that(test.project, is_a("Zproject"),
paste("Test project is not an instance o... |
testlist <- list(latLongs = structure(c(7.63505735761976e-311, 1.42874513948003e-101, 8.28905099911455e-317, 4.09512209742086e-106, 5.63414396014919e-241, 1.08728019019702e-240, 5.62984424190997e-241, 4.94065645841247e-324, 6.32404026676796e-322), .Dim = c(9L, 1L)), r = 6.78948269441683e-308)
result <- do.call(MGDri... | /MGDrivE/inst/testfiles/calcCos/libFuzzer_calcCos/calcCos_valgrind_files/1612727014-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 353 | r | testlist <- list(latLongs = structure(c(7.63505735761976e-311, 1.42874513948003e-101, 8.28905099911455e-317, 4.09512209742086e-106, 5.63414396014919e-241, 1.08728019019702e-240, 5.62984424190997e-241, 4.94065645841247e-324, 6.32404026676796e-322), .Dim = c(9L, 1L)), r = 6.78948269441683e-308)
result <- do.call(MGDri... |
#' Create Trelliscope display of per-subject data and fitted trajectories
#'
#' @param dat either a data frame or object created by \code{\link{by_subject}} or \code{\link{fit_all_trajectories}}
#' @param z should the trajectory fit be plotted on the z-scale?
#' @param center should the trajectory be centered around th... | /R/plot_trelliscope.R | permissive | benkeser/hbgd | R | false | false | 10,552 | r | #' Create Trelliscope display of per-subject data and fitted trajectories
#'
#' @param dat either a data frame or object created by \code{\link{by_subject}} or \code{\link{fit_all_trajectories}}
#' @param z should the trajectory fit be plotted on the z-scale?
#' @param center should the trajectory be centered around th... |
library(distrEx)
### Name: m2df
### Title: Generic function for the computation of clipped second moments
### Aliases: m2df m2df-methods m2df,UnivariateDistribution-method
### m2df,AbscontDistribution-method m2df,LatticeDistribution-method
### m2df,AffLinDistribution-method m2df,Binom-method m2df,Pois-method
### ... | /data/genthat_extracted_code/distrEx/examples/m2df.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 702 | r | library(distrEx)
### Name: m2df
### Title: Generic function for the computation of clipped second moments
### Aliases: m2df m2df-methods m2df,UnivariateDistribution-method
### m2df,AbscontDistribution-method m2df,LatticeDistribution-method
### m2df,AffLinDistribution-method m2df,Binom-method m2df,Pois-method
### ... |
supplement_month_wide_to_long <- function(data) {
crime_cols <- grep("offenses|value|auto|status|fbi", names(data), value = TRUE)
crime_only_data <- data[, crime_cols]
data <- data %>% dplyr::select(-one_of(crime_cols))
final <- data.frame()
for (month in tolower(month.abb)) {
temp <- crime_only_d... | /R_code/supplement_utils.R | no_license | LazurasLong/crime_data | R | false | false | 8,538 | r | supplement_month_wide_to_long <- function(data) {
crime_cols <- grep("offenses|value|auto|status|fbi", names(data), value = TRUE)
crime_only_data <- data[, crime_cols]
data <- data %>% dplyr::select(-one_of(crime_cols))
final <- data.frame()
for (month in tolower(month.abb)) {
temp <- crime_only_d... |
# knitr::stitch_rmd(script="./reports/review-variables/map/review-variables-map.R", output="./reports/review-variables/map/review-variables-map.md")
#These first few lines run only when the file is run in RStudio, !!NOT when an Rmd/Rnw file calls it!!
rm(list=ls(all=TRUE)) #Clear the variables from previous runs.
cat(... | /reports/descriptives/map/temporal-design-map.R | no_license | IALSA/ialsa-2018-amsterdam | R | false | false | 10,022 | r | # knitr::stitch_rmd(script="./reports/review-variables/map/review-variables-map.R", output="./reports/review-variables/map/review-variables-map.md")
#These first few lines run only when the file is run in RStudio, !!NOT when an Rmd/Rnw file calls it!!
rm(list=ls(all=TRUE)) #Clear the variables from previous runs.
cat(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcc-stats.R
\name{tcc_stats}
\alias{tcc_stats}
\title{Stats}
\usage{
tcc_stats(parse = TRUE)
}
\arguments{
\item{parse}{Logical indicating whether to convert the retrieved JSON data
into a tidy tibble data frame. Default is TRUE.}
}
\value{
A... | /man/tcc_stats.Rd | permissive | r-congress/tccong | R | false | true | 586 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tcc-stats.R
\name{tcc_stats}
\alias{tcc_stats}
\title{Stats}
\usage{
tcc_stats(parse = TRUE)
}
\arguments{
\item{parse}{Logical indicating whether to convert the retrieved JSON data
into a tidy tibble data frame. Default is TRUE.}
}
\value{
A... |
#'Nearest Neighbour Search
#'
#'Uses a kd-tree to find the p number of near neighbours for each point in an
#'input/output dataset. The advantage of the kd-tree is that it runs in O(M log
#'M) time.
#'
#'The \code{RANN2} package utilizes the Approximate Near Neighbor (ANN) C++
#'library, which can give the exact near n... | /R/nn.R | no_license | jefferis/RANN2 | R | false | false | 3,671 | r | #'Nearest Neighbour Search
#'
#'Uses a kd-tree to find the p number of near neighbours for each point in an
#'input/output dataset. The advantage of the kd-tree is that it runs in O(M log
#'M) time.
#'
#'The \code{RANN2} package utilizes the Approximate Near Neighbor (ANN) C++
#'library, which can give the exact near n... |
# Introdução ao R
# Núcleo de Estudos em Desenvolvimento Urbano e Regional - NEDUR
# Prof. Vinicius A. Vale
# Abril, 2021
{
# 1. Introdução
# O curso Introdução ao R tem como objetivo apresentar os elementos básicos
# do software R e do RStudio, incluindo linguagem, operações básicas,
# criação de obj... | /docs/Intro-R-Script_Extras.R | no_license | rafawsa/IntroR | R | false | false | 19,831 | r | # Introdução ao R
# Núcleo de Estudos em Desenvolvimento Urbano e Regional - NEDUR
# Prof. Vinicius A. Vale
# Abril, 2021
{
# 1. Introdução
# O curso Introdução ao R tem como objetivo apresentar os elementos básicos
# do software R e do RStudio, incluindo linguagem, operações básicas,
# criação de obj... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.