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 |
|---|---|---|---|---|---|---|---|---|---|
# Select or linsten bird's voice on R
# @author woodiw2wopper <woodie2wopper@gmail.com>
# Copyright (C) 2019 woodiw2wopper
# version########################################################
programname <- "toriR0.83.R"; # 191006 HO 公開用にコードを整える
## ユーザ設定1|音源ファイル ##############################
path_wav <- "/Users/osaka/De... | /toriR0.83.R | permissive | marltake/toriR | R | false | false | 8,986 | r | # Select or linsten bird's voice on R
# @author woodiw2wopper <woodie2wopper@gmail.com>
# Copyright (C) 2019 woodiw2wopper
# version########################################################
programname <- "toriR0.83.R"; # 191006 HO 公開用にコードを整える
## ユーザ設定1|音源ファイル ##############################
path_wav <- "/Users/osaka/De... |
## The following two functions can be used to cache the inverse of a matrix.
## To save costly computation, if the inverse of a particular matrix has been
## calculated earlier, the second function will pick up the result from the cache.
## If not, a new calculation will run.
## This function creates a special objec... | /cachematrix.R | no_license | ShubhadeepSarkar/ProgrammingAssignment2 | R | false | false | 1,702 | r | ## The following two functions can be used to cache the inverse of a matrix.
## To save costly computation, if the inverse of a particular matrix has been
## calculated earlier, the second function will pick up the result from the cache.
## If not, a new calculation will run.
## This function creates a special objec... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
h1("Datacamp"),
h2("Use... | /SingleFileShiny/app.R | no_license | servassheldon/myfirstapp | R | false | false | 1,030 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
h1("Datacamp"),
h2("Use... |
#' ---
#' title: "Factorial ANOVA"
#' author: "Veronique Storme"
#' date: "17/04/2019"
#' ---
#'
#' R Code for Chapter 12 of:
#'
#' Field, A. P., Miles, J. N. V., & Field, Z. C. (2012). Discovering Statistics Using R: and Sex and Drugs and Rock 'N' Roll. #London Sage
#'
#' (c) 2011 Andy P. Field, Jeremy N.... | /demo/Ch12_glm2.R | no_license | vstorme/basicstat | R | false | false | 7,438 | r | #' ---
#' title: "Factorial ANOVA"
#' author: "Veronique Storme"
#' date: "17/04/2019"
#' ---
#'
#' R Code for Chapter 12 of:
#'
#' Field, A. P., Miles, J. N. V., & Field, Z. C. (2012). Discovering Statistics Using R: and Sex and Drugs and Rock 'N' Roll. #London Sage
#'
#' (c) 2011 Andy P. Field, Jeremy N.... |
#' @title Log Likelihood for Fitting Cdfquantile Distributions
#' @aliases qrLogLik
#' @description Function to give the (negative) log likelihood for fitting cdfquantile distributions.
#'
#' @param y the vector to be evaluated.
#' @param mu mean of the distribution.
#' @param sigma sigma of the distribution.
#... | /R/qrLogLik.R | no_license | Bhanditz/cdfquantreg | R | false | false | 14,861 | r | #' @title Log Likelihood for Fitting Cdfquantile Distributions
#' @aliases qrLogLik
#' @description Function to give the (negative) log likelihood for fitting cdfquantile distributions.
#'
#' @param y the vector to be evaluated.
#' @param mu mean of the distribution.
#' @param sigma sigma of the distribution.
#... |
library(GeneSurvey)
#################################################################
#################################################################
baseDir <- getBaseDir()
zipFile <- getZipDir()
if ((!is.null(baseDir))&&(!is.null(zipFile)))
{
initGeneReport("-Xmx4800m")
# "hsa-let-7a.MIMAT0000062"
foo <- ge... | /tests/getImputedNAs_GeneSymbol_RnaSeq2.R | no_license | minghao2016/GeneSurvey | R | false | false | 524 | r | library(GeneSurvey)
#################################################################
#################################################################
baseDir <- getBaseDir()
zipFile <- getZipDir()
if ((!is.null(baseDir))&&(!is.null(zipFile)))
{
initGeneReport("-Xmx4800m")
# "hsa-let-7a.MIMAT0000062"
foo <- ge... |
np=500
ne=200
x=3
l=ne/np
P=dpois(x,l)
n<-paste("Probability that there are three errors in a page is less than a percentage of",round(P*100))
n | /Elementary_Statistics:_A_Step_By_Step_Approach_by_Allan_G._Bluman/CH5/EX5.27/ex5_27.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 144 | r | np=500
ne=200
x=3
l=ne/np
P=dpois(x,l)
n<-paste("Probability that there are three errors in a page is less than a percentage of",round(P*100))
n |
#install.packages("RCurl")
#library(RCurl)
#https://www.r-bloggers.com/getting-data-from-an-online-source/
## get sorted filelist in the path / location
# https://stackoverflow.com/questions/14496325/natural-sort-order-human-sort-order-in-r-list-files
library(gtools)
filepath <- "C:/Users/Desktop/data"
setwd(filepat... | /1_read_data.r | no_license | sreetamadas/sample_R_code | R | false | false | 581 | r | #install.packages("RCurl")
#library(RCurl)
#https://www.r-bloggers.com/getting-data-from-an-online-source/
## get sorted filelist in the path / location
# https://stackoverflow.com/questions/14496325/natural-sort-order-human-sort-order-in-r-list-files
library(gtools)
filepath <- "C:/Users/Desktop/data"
setwd(filepat... |
#' Convert coordinates from degrees, minutes and seconds to decimal degrees
#'
#' @param degrees
#' @param minutes
#' @param seconds
#' @param direction
#'
#' @return
#' @export
#'
#' @examples
from_dms_to_dd <- function(degrees, minutes, seconds, direction){
dd <- as.numeric(degrees) + (as.numeric(minutes)/60) ... | /R/from_dms_to_dd.R | no_license | kguidonimartins/monitora-derramamento-oleo | R | false | false | 534 | r | #' Convert coordinates from degrees, minutes and seconds to decimal degrees
#'
#' @param degrees
#' @param minutes
#' @param seconds
#' @param direction
#'
#' @return
#' @export
#'
#' @examples
from_dms_to_dd <- function(degrees, minutes, seconds, direction){
dd <- as.numeric(degrees) + (as.numeric(minutes)/60) ... |
library(leaps);
null <- lm(bug~1,data=data_training);
full <- lm(bug~.,data = data_training);
finalModel <- step(null,scope=list(lower=null,upper=full),direction="forward")
predictions <<- predict.lm(finalModel,data_testing);
data_testing$target <- predictions;
orderedData <- data_testing[order(-data_testing$targ... | /predicted.r | permissive | sriramdhanvi/step-wise-linear-regression | R | false | false | 825 | r | library(leaps);
null <- lm(bug~1,data=data_training);
full <- lm(bug~.,data = data_training);
finalModel <- step(null,scope=list(lower=null,upper=full),direction="forward")
predictions <<- predict.lm(finalModel,data_testing);
data_testing$target <- predictions;
orderedData <- data_testing[order(-data_testing$targ... |
/exercise-2/exercise.R | permissive | rsr3rs/ch8-lists | R | false | false | 2,184 | r | ||
#' Fast replacment for the \%in\% operator
#'
#' Replacement for \code{\link[base]{\%in\%}}, based upon \code{\link{fmatch}}.
#' @param x Values to be matched.
#' @param table Values to be matched against.
#' @return A logical vector with the same length as \code{x}. It is \code{TRUE}
#' wherever an element of \code{... | /R/operators.R | no_license | richierocks/fastmatch | R | false | false | 688 | r | #' Fast replacment for the \%in\% operator
#'
#' Replacement for \code{\link[base]{\%in\%}}, based upon \code{\link{fmatch}}.
#' @param x Values to be matched.
#' @param table Values to be matched against.
#' @return A logical vector with the same length as \code{x}. It is \code{TRUE}
#' wherever an element of \code{... |
# Mehrnoosh Oghbaie
## self
## 09/21/2020
## Preparing data from MaxQuant or ...
## Data preparation consists of four stages:
## 1. Remove contaminants and reverse proteins
## 2. Log transformation
## t-test and fold change analysis ...
set.seed(123)
###############################################################... | /src/functions/Anova_Analysis.R | no_license | moghbaie/Wouter | R | false | false | 23,238 | r | # Mehrnoosh Oghbaie
## self
## 09/21/2020
## Preparing data from MaxQuant or ...
## Data preparation consists of four stages:
## 1. Remove contaminants and reverse proteins
## 2. Log transformation
## t-test and fold change analysis ...
set.seed(123)
###############################################################... |
\name{plotDim}
\alias{plotDim}
\title{ Determine the Plot Layout}
\description{
Determine the "optimal" layout for the plots of MCMB sequences based on the number of
parameters.}
\usage{
plotDim(p)
}
\arguments{
\item{p}{the number of parameters}
}
\value{
Dimensions for plot layout.
}
\ke... | /man/plotDim.Rd | no_license | cran/rqmcmb2 | R | false | false | 334 | rd | \name{plotDim}
\alias{plotDim}
\title{ Determine the Plot Layout}
\description{
Determine the "optimal" layout for the plots of MCMB sequences based on the number of
parameters.}
\usage{
plotDim(p)
}
\arguments{
\item{p}{the number of parameters}
}
\value{
Dimensions for plot layout.
}
\ke... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{handle_user_prefix_param}
\alias{handle_user_prefix_param}
\title{handle_user_prefix_param}
\usage{
handle_user_prefix_param(stringvector)
}
\arguments{
\item{stringvector}{vector of strings with attribute names}
}
\value{
string... | /man/handle_user_prefix_param.Rd | permissive | rayiik/xattrs | R | false | true | 430 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{handle_user_prefix_param}
\alias{handle_user_prefix_param}
\title{handle_user_prefix_param}
\usage{
handle_user_prefix_param(stringvector)
}
\arguments{
\item{stringvector}{vector of strings with attribute names}
}
\value{
string... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/round_robin.R
\name{rrmlg}
\alias{rrmlg}
\title{Round Robin Multilocus Genotypes}
\usage{
rrmlg(gid)
}
\arguments{
\item{gid}{a genind, genclone, or loci object.}
}
\value{
a matrix of multilocus genotype assignments by masked locus. There
... | /man/rrmlg.Rd | no_license | knausb/poppr | R | false | true | 1,450 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/round_robin.R
\name{rrmlg}
\alias{rrmlg}
\title{Round Robin Multilocus Genotypes}
\usage{
rrmlg(gid)
}
\arguments{
\item{gid}{a genind, genclone, or loci object.}
}
\value{
a matrix of multilocus genotype assignments by masked locus. There
... |
kdeModeBoot <- function(x,
reps = 100) { # Suggested by Adam
boot::boot(x, kdeMode, R = reps)$t0
} | /r_modules/trade_prevalidation/R/kdeModeBoot.R | no_license | mkao006/sws_r_api | R | false | false | 124 | r | kdeModeBoot <- function(x,
reps = 100) { # Suggested by Adam
boot::boot(x, kdeMode, R = reps)$t0
} |
##Rule6
##This player correctly matched all of the reasoning wheel
##sentences in the last case played.
##rsnwhl: 2 = attempt and correct; 1 = attempt and incorrect; 0 = no attempt
aw <- inData
r6set1 <- aw %>%
group_by(sid) %>%
select(sid, CaseOrder, rsnwhl) %>%
filter(CaseOrder==max(CaseOrder))
list(r6set1)
... | /servers/lib/aeng/engines/r/games/AW/aw_job8_rule6.r | no_license | GlasslabGames/Assessment | R | false | false | 841 | r | ##Rule6
##This player correctly matched all of the reasoning wheel
##sentences in the last case played.
##rsnwhl: 2 = attempt and correct; 1 = attempt and incorrect; 0 = no attempt
aw <- inData
r6set1 <- aw %>%
group_by(sid) %>%
select(sid, CaseOrder, rsnwhl) %>%
filter(CaseOrder==max(CaseOrder))
list(r6set1)
... |
if (!require("shiny")) {
install.packages("shiny", repos="http://cran.rstudio.com/")
library("shiny")
}
shinyUI(pageWithSidebar(
headerPanel( "GraphExplorer", "GraphExplorer"),
sidebarPanel(
HTML('<a target=_blank href="https://raw.githubusercontent.com/digistam/ShinyProject/master/GraphExplorer/testgraph... | /GraphExplorer/ui.R | no_license | digistam/ShinyProject | R | false | false | 2,601 | r | if (!require("shiny")) {
install.packages("shiny", repos="http://cran.rstudio.com/")
library("shiny")
}
shinyUI(pageWithSidebar(
headerPanel( "GraphExplorer", "GraphExplorer"),
sidebarPanel(
HTML('<a target=_blank href="https://raw.githubusercontent.com/digistam/ShinyProject/master/GraphExplorer/testgraph... |
library(metacoder)
library(testthat)
context("Input parsing")
test_that("Mothur classify.seqs *.taxonomy parsing", {
raw_data <-
"AY457915 Bacteria;Firmicutes;Clostridiales;Johnsonella_et_rel.;Johnsonella_et_rel.;Johnsonella_et_rel.;Eubacterium_eligens_et_rel.;Lachnospira_pectinoschiza;
AY457914 Bacteria;Firmicutes;... | /tests/testthat/test--parsers_and_writers.R | permissive | agronomist/metacoder | R | false | false | 9,696 | r | library(metacoder)
library(testthat)
context("Input parsing")
test_that("Mothur classify.seqs *.taxonomy parsing", {
raw_data <-
"AY457915 Bacteria;Firmicutes;Clostridiales;Johnsonella_et_rel.;Johnsonella_et_rel.;Johnsonella_et_rel.;Eubacterium_eligens_et_rel.;Lachnospira_pectinoschiza;
AY457914 Bacteria;Firmicutes;... |
# Set working directory to the folder which contains results of
# computational approaches on SBS1-SBS5-correlated data sets
# before running this script.
#
# PATH <- paste0("<path_to_results_on_SBS1-SBS5-correlated_datasets>")
#
# setwd(PATH)
topLevelFolder4Data <- "./0.Input_datasets"
topLevelFolder4Run <- "./2a.Fu... | /data-raw/Wu_2022/1_scripts.for.SBS1SBS5/2_running_approaches_without_knowing_K/Run.hdp.R | no_license | WuyangFF95/SynSigRun | R | false | false | 1,777 | r |
# Set working directory to the folder which contains results of
# computational approaches on SBS1-SBS5-correlated data sets
# before running this script.
#
# PATH <- paste0("<path_to_results_on_SBS1-SBS5-correlated_datasets>")
#
# setwd(PATH)
topLevelFolder4Data <- "./0.Input_datasets"
topLevelFolder4Run <- "./2a.Fu... |
dfplsr_cov <- function(
X, Y, ncomp, algo = NULL,
maxlv = 50,
B = 30, seed = NULL,
print = TRUE,
...
) {
if(is.null(algo))
algo <- pls_kernel
X <- .matrix(X)
zdim <- dim(X)
n <- zdim[1]
p <- zdim[2]
ncomp <- min(ncomp, n, p)
maxlv <- min(maxlv, n, ... | /R/dfplsr_cov.R | no_license | mlesnoff/rnirs | R | false | false | 2,447 | r | dfplsr_cov <- function(
X, Y, ncomp, algo = NULL,
maxlv = 50,
B = 30, seed = NULL,
print = TRUE,
...
) {
if(is.null(algo))
algo <- pls_kernel
X <- .matrix(X)
zdim <- dim(X)
n <- zdim[1]
p <- zdim[2]
ncomp <- min(ncomp, n, p)
maxlv <- min(maxlv, n, ... |
\name{xmp15.06}
\alias{xmp15.06}
\docType{data}
\title{data from Example 15.6}
\description{
The \code{xmp15.06} data frame has 28 rows and 1 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{metabolc}{
a numeric vector
}
}
}
\source{
Devore, J. L. (2003) \emph... | /man/xmp15.06.Rd | no_license | dmbates/Devore6 | R | false | false | 448 | rd | \name{xmp15.06}
\alias{xmp15.06}
\docType{data}
\title{data from Example 15.6}
\description{
The \code{xmp15.06} data frame has 28 rows and 1 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{metabolc}{
a numeric vector
}
}
}
\source{
Devore, J. L. (2003) \emph... |
# This function calculate AIC
#' AIC
#'
#' @param covmat covariance matrix of innovations
#' @param p order of autoregression
#' @param m dimension of the variable
#' @param n number of observations
#'
#' @return
#' @export
#'
#' @examples
SIC <- function(covmat, p, m, n) {
out <-n*(log(det(covmat))+m)+p*m^2*log(... | /R/SIC.R | no_license | ruizhima/AICC | R | false | false | 339 | r | # This function calculate AIC
#' AIC
#'
#' @param covmat covariance matrix of innovations
#' @param p order of autoregression
#' @param m dimension of the variable
#' @param n number of observations
#'
#' @return
#' @export
#'
#' @examples
SIC <- function(covmat, p, m, n) {
out <-n*(log(det(covmat))+m)+p*m^2*log(... |
body = '
#---------------------------------------\
# Log file |
#---------------------------------------/
writeLines(c(""), "log.txt")
wlog("Starting simulations")
wlog("Cluster intialized successfully!")
#---------------------------------------|
#---------------------------------------\
... | /R/body.R | no_license | jlaria/p4R | R | false | false | 1,730 | r | body = '
#---------------------------------------\
# Log file |
#---------------------------------------/
writeLines(c(""), "log.txt")
wlog("Starting simulations")
wlog("Cluster intialized successfully!")
#---------------------------------------|
#---------------------------------------\
... |
#' Get a dataset with flags indicating if patient has a diagnosis
#'
#' This function provides a dataframe with flags indicating if a patient has a diagnosis or not based on icd9, icd10 and snomed codes.
#' The flags are 1 whichindicate patient had the medication or 0 which indicates patient did not. A missing flag ... | /R/get_diagnosis.R | no_license | aminyakubu/explorys | R | false | false | 6,122 | r | #' Get a dataset with flags indicating if patient has a diagnosis
#'
#' This function provides a dataframe with flags indicating if a patient has a diagnosis or not based on icd9, icd10 and snomed codes.
#' The flags are 1 whichindicate patient had the medication or 0 which indicates patient did not. A missing flag ... |
# Purpose : Fit/predict distribution of soil types (memberships);
# Maintainer : Tomislav Hengl (tom.hengl@wur.nl)
# Contributions : Bas Kempen (bas.kempen@wur.nl); Dainius Masiliūnas (dainius.masiliunas@wur.nl)
# Dev Status : Pre-Alpha
# Note : if the regression model is difficult to fit,... | /R/fkmeans.R | no_license | GreatEmerald/GSIF | R | false | false | 5,009 | r | # Purpose : Fit/predict distribution of soil types (memberships);
# Maintainer : Tomislav Hengl (tom.hengl@wur.nl)
# Contributions : Bas Kempen (bas.kempen@wur.nl); Dainius Masiliūnas (dainius.masiliunas@wur.nl)
# Dev Status : Pre-Alpha
# Note : if the regression model is difficult to fit,... |
\name{GP-package}
\alias{GP-package}
\alias{GP}
\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{ll}{
Package: \tab GP\cr
Type: \tab Package\cr
V... | /man_/GP-package.Rd | permissive | mcrucifix/gp | R | false | false | 1,019 | rd | \name{GP-package}
\alias{GP-package}
\alias{GP}
\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{ll}{
Package: \tab GP\cr
Type: \tab Package\cr
V... |
#' Summary results from dtree.
#'
#' @param object An object from dtree.
#' @param ... Other arguments.
#' @method summary dtree
#' @export
summary.dtree <- function(object,...){
ret <- list(results = object$return.matrix,
response.type = object$response.type,
call = object$call)
cl... | /R/summary.R | no_license | Rjacobucci/dtree | R | false | false | 363 | r | #' Summary results from dtree.
#'
#' @param object An object from dtree.
#' @param ... Other arguments.
#' @method summary dtree
#' @export
summary.dtree <- function(object,...){
ret <- list(results = object$return.matrix,
response.type = object$response.type,
call = object$call)
cl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotDiffHeatmap.R
\name{plotDiffHeatmap}
\alias{plotDiffHeatmap}
\title{Plot differential heatmap}
\usage{
plotDiffHeatmap(
x,
y,
k = NULL,
top_n = 20,
fdr = 0.05,
lfc = 1,
all = FALSE,
sort_by = c("padj", "lfc", "none"),
y_... | /man/plotDiffHeatmap.Rd | no_license | MeganQiu/CATALYST | R | false | true | 5,069 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotDiffHeatmap.R
\name{plotDiffHeatmap}
\alias{plotDiffHeatmap}
\title{Plot differential heatmap}
\usage{
plotDiffHeatmap(
x,
y,
k = NULL,
top_n = 20,
fdr = 0.05,
lfc = 1,
all = FALSE,
sort_by = c("padj", "lfc", "none"),
y_... |
context("Make API")
test_that("make_ works, order of arguments does not matter", {
g0 <- make_undirected_graph(1:10)
g1 <- make_(undirected_graph(1:10))
g2 <- make_(undirected_graph(), 1:10)
g3 <- make_(1:10, undirected_graph())
expect_true(identical_graphs(g0, g1))
expect_true(identical_graphs(g0, g2))... | /R-Portable/App/R-Portable/library/igraph/tests/test-make.R | permissive | voltek62/seo-viz-install | R | false | false | 1,692 | r |
context("Make API")
test_that("make_ works, order of arguments does not matter", {
g0 <- make_undirected_graph(1:10)
g1 <- make_(undirected_graph(1:10))
g2 <- make_(undirected_graph(), 1:10)
g3 <- make_(1:10, undirected_graph())
expect_true(identical_graphs(g0, g1))
expect_true(identical_graphs(g0, g2))... |
# Utils and Environment variables
.cranium <- new.env(hash = TRUE)
.cranium[['package_fields']] <- c("Package", "Version", "Priority", "Depends", "Imports",
"LinkingTo", "Suggests", "Enhances", "License", "License_is_FOSS",
"License_restricts_use", "OS... | /R/utils.R | no_license | atheriel/cranium | R | false | false | 3,709 | r | # Utils and Environment variables
.cranium <- new.env(hash = TRUE)
.cranium[['package_fields']] <- c("Package", "Version", "Priority", "Depends", "Imports",
"LinkingTo", "Suggests", "Enhances", "License", "License_is_FOSS",
"License_restricts_use", "OS... |
#' Write a pedigree to file
#'
#' @param x A `ped` object
#' @param prefix A character string giving the prefix of the files. For
#' instance, if `prefix = "myped"` and `what = c("ped", "map")`, the output
#' files are "myped.ped" and "myped.map" in the current directory. Paths to
#' other folder may be inc... | /R/writePed.R | no_license | cran/pedtools | R | false | false | 7,422 | r | #' Write a pedigree to file
#'
#' @param x A `ped` object
#' @param prefix A character string giving the prefix of the files. For
#' instance, if `prefix = "myped"` and `what = c("ped", "map")`, the output
#' files are "myped.ped" and "myped.map" in the current directory. Paths to
#' other folder may be inc... |
library(cholera)
### Name: walkingDistance
### Title: Compute the shortest walking distance between cases and/or
### pumps.
### Aliases: walkingDistance
### ** Examples
## Not run:
##D
##D # distance from case 1 to nearest pump.
##D walkingDistance(1)
##D
##D # distance from case 1 to pump 6.
##D walkingDistan... | /data/genthat_extracted_code/cholera/examples/walkingDistance.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 591 | r | library(cholera)
### Name: walkingDistance
### Title: Compute the shortest walking distance between cases and/or
### pumps.
### Aliases: walkingDistance
### ** Examples
## Not run:
##D
##D # distance from case 1 to nearest pump.
##D walkingDistance(1)
##D
##D # distance from case 1 to pump 6.
##D walkingDistan... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... | /meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615844216-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 2,232 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... |
# Original code from
# Tidying the new Johns Hopkins Covid-19 time-series datasets (old code before 30.03.2020)
# March 24, 2020 in R
# https://joachim-gassen.github.io/2020/03/tidying-the-new-johns-hopkins-covid-19-datasests/
# adapted for daily use on different platforms and include graph for Slovenia
# Matjaz Jeran... | /Podatki/R_04_vizualize_data_20200402.R | no_license | matjazjeran/Covid-19 | R | false | false | 8,032 | r | # Original code from
# Tidying the new Johns Hopkins Covid-19 time-series datasets (old code before 30.03.2020)
# March 24, 2020 in R
# https://joachim-gassen.github.io/2020/03/tidying-the-new-johns-hopkins-covid-19-datasests/
# adapted for daily use on different platforms and include graph for Slovenia
# Matjaz Jeran... |
### ====================
### read data functions
### ====================
## higher level read functions
## ===========================
#' Read Data function
#'
#' This is the core function to read and parse raw data from a config file.
#' At the moment only the BAM format is supported. It is not intended to be
#' us... | /R/readData.R | no_license | gstricker/GenoGAM | R | false | false | 18,223 | r | ### ====================
### read data functions
### ====================
## higher level read functions
## ===========================
#' Read Data function
#'
#' This is the core function to read and parse raw data from a config file.
#' At the moment only the BAM format is supported. It is not intended to be
#' us... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correlationHC.details.R
\name{correlationHC.details}
\alias{correlationHC.details}
\title{To explain how hierarchical correlation algorithm works.}
\usage{
correlationHC.details(
data,
target = NULL,
weight = c(),
distance = "EUC",
... | /man/correlationHC.details.Rd | no_license | cran/LearnClust | R | false | true | 2,117 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correlationHC.details.R
\name{correlationHC.details}
\alias{correlationHC.details}
\title{To explain how hierarchical correlation algorithm works.}
\usage{
correlationHC.details(
data,
target = NULL,
weight = c(),
distance = "EUC",
... |
# Fitting Auto ARIMA model
library(forecast)
library(tidyverse)
# Use training1, testing and df generated from main_dataprep.R
# get list of states
all_states = unique(df$state)
# create new columns for ARIMA
df = df %>%
mutate(
arima_trained = as.numeric(week <= test_wk_min),
arima_fit = 999
) %>%
u... | /Code/main_arimafit.R | no_license | Kapil21Gupta/COVID_Analysis | R | false | false | 4,723 | r | # Fitting Auto ARIMA model
library(forecast)
library(tidyverse)
# Use training1, testing and df generated from main_dataprep.R
# get list of states
all_states = unique(df$state)
# create new columns for ARIMA
df = df %>%
mutate(
arima_trained = as.numeric(week <= test_wk_min),
arima_fit = 999
) %>%
u... |
# ---
# title: "Project-DM2017"
# author: "Salman Lashkarara,Hina,Behzad"
# date: "May 5, 2017"
# output: Library for calling svm, decision tree, and logestic regresion
# ---
library(randomForest)
library(e1071)
library(rpart)
library(ggplot2)
library(ROCR)
library(caret)
AUC <-function(prediction,target){
res<... | /library.R | no_license | hina86/DM2017_UT | R | false | false | 1,320 | r |
# ---
# title: "Project-DM2017"
# author: "Salman Lashkarara,Hina,Behzad"
# date: "May 5, 2017"
# output: Library for calling svm, decision tree, and logestic regresion
# ---
library(randomForest)
library(e1071)
library(rpart)
library(ggplot2)
library(ROCR)
library(caret)
AUC <-function(prediction,target){
res<... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multivariance-functions.R
\name{mu3.unbiased}
\alias{mu3.unbiased}
\title{given the distance matrix the unbiased estimate for mu3 is computed}
\usage{
mu3.unbiased(B, b2ob = sum(tcrossprod(B) * B))
}
\description{
given the distance ... | /fuzzedpackages/multivariance/man/mu3.unbiased.Rd | no_license | akhikolla/testpackages | R | false | true | 393 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multivariance-functions.R
\name{mu3.unbiased}
\alias{mu3.unbiased}
\title{given the distance matrix the unbiased estimate for mu3 is computed}
\usage{
mu3.unbiased(B, b2ob = sum(tcrossprod(B) * B))
}
\description{
given the distance ... |
################################
##
## test RF VIS v. LASSO
##
################################
set.seed(2000)
require(parallel)
source('simulateData.R')
source('variableModelFunctions.R')
source('helper_functions.R')
source('../../binomialRF/R/k.binomialRF.R')
#source('~/Desktop/shiny/test/helper.R')
require(data.tabl... | /code/old code/modelAveraging.R | no_license | yadevi/binomialRF_simulationStudy | R | false | false | 1,431 | r | ################################
##
## test RF VIS v. LASSO
##
################################
set.seed(2000)
require(parallel)
source('simulateData.R')
source('variableModelFunctions.R')
source('helper_functions.R')
source('../../binomialRF/R/k.binomialRF.R')
#source('~/Desktop/shiny/test/helper.R')
require(data.tabl... |
#!/usr/bin/Rscript
Args <- commandArgs()
#
if ( length(Args) < 7 ){
fnm<-Args[4]
fnm<-substring(fnm,8,nchar(as.character(fnm)))
print(paste("Usage - RScript training.csv testing.csv "))
print(paste(" .... " ))
q()
}
ARGIND<-6
training<-c(as.character(Args[ARGIND]))
ARGIND<-ARGIND+1
testing<-c(as.character(Args[ARGIND]... | /src/compare_trainingimages_to_testimages | no_license | stnava/Spinner | R | false | false | 1,528 | #!/usr/bin/Rscript
Args <- commandArgs()
#
if ( length(Args) < 7 ){
fnm<-Args[4]
fnm<-substring(fnm,8,nchar(as.character(fnm)))
print(paste("Usage - RScript training.csv testing.csv "))
print(paste(" .... " ))
q()
}
ARGIND<-6
training<-c(as.character(Args[ARGIND]))
ARGIND<-ARGIND+1
testing<-c(as.character(Args[ARGIND]... | |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plumbing.R
\name{cached_install}
\alias{cached_install}
\title{Install and/or load a version of a package}
\usage{
cached_install(package, version, return = c("namespace", "path"),
cache = TRUE, quiet = TRUE, partial = TRUE, ...)
}
\argumen... | /man/cached_install.Rd | permissive | hughjonesd/apicheck | R | false | true | 1,668 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plumbing.R
\name{cached_install}
\alias{cached_install}
\title{Install and/or load a version of a package}
\usage{
cached_install(package, version, return = c("namespace", "path"),
cache = TRUE, quiet = TRUE, partial = TRUE, ...)
}
\argumen... |
context("request: head")
test_that("head request works", {
skip_on_cran()
cli <- HttpClient$new(url = "https://www.google.com")
aa <- cli$head()
expect_is(aa, "HttpResponse")
expect_is(aa$handle, 'curl_handle')
expect_is(aa$content, "raw")
expect_is(aa$method, "character")
expect_equal(aa$method, "he... | /tests/testthat/test-head.R | permissive | graceli8/crul | R | false | false | 484 | r | context("request: head")
test_that("head request works", {
skip_on_cran()
cli <- HttpClient$new(url = "https://www.google.com")
aa <- cli$head()
expect_is(aa, "HttpResponse")
expect_is(aa$handle, 'curl_handle')
expect_is(aa$content, "raw")
expect_is(aa$method, "character")
expect_equal(aa$method, "he... |
context("classif_LiblineaRL2SVC")
test_that("classif_LiblineaRL2SVC", {
requirePackagesOrSkip("LiblineaR", default.method = "load")
parset.list = list(
list(type = 1),
list(type = 2),
list(type = 1, cost = 5L),
list(type = 2, cost = 5L)
)
old.predicts.list = list()
old.probs.list = list()
... | /tests/testthat/test_classif_LiblineaRL2SVC.R | no_license | jimhester/mlr | R | false | false | 1,051 | r | context("classif_LiblineaRL2SVC")
test_that("classif_LiblineaRL2SVC", {
requirePackagesOrSkip("LiblineaR", default.method = "load")
parset.list = list(
list(type = 1),
list(type = 2),
list(type = 1, cost = 5L),
list(type = 2, cost = 5L)
)
old.predicts.list = list()
old.probs.list = list()
... |
\name{twNlme-package}
\alias{twNlme-package}
\alias{twNlme}
\title{Prediction intervals for nlme and gnls models}
\description{Prediction intervals for nlme and gnls models}
\author{Thomas Wutzler <twutz@bgc-jena.mpg.de>}
\details{
The main purpose of the package is to provide standard errors for predictions of
sim... | /man/twNlme-package.Rd | no_license | mattocci27/twNlme | R | false | false | 1,347 | rd | \name{twNlme-package}
\alias{twNlme-package}
\alias{twNlme}
\title{Prediction intervals for nlme and gnls models}
\description{Prediction intervals for nlme and gnls models}
\author{Thomas Wutzler <twutz@bgc-jena.mpg.de>}
\details{
The main purpose of the package is to provide standard errors for predictions of
sim... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mbtommHG.r
\name{mbtommHG}
\alias{mbtommHG}
\title{mbtommHG}
\usage{
mbtommHG(mb)
}
\arguments{
\item{mb}{numeric Air pressure in Millibar [hPa].}
}
\value{
mmHG
}
\description{
Conversion from Millibar [hPa] to mmHG.
}
\author{
Istituto pe... | /man/mbtommHG.Rd | permissive | alfcrisci/rBiometeo | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mbtommHG.r
\name{mbtommHG}
\alias{mbtommHG}
\title{mbtommHG}
\usage{
mbtommHG(mb)
}
\arguments{
\item{mb}{numeric Air pressure in Millibar [hPa].}
}
\value{
mmHG
}
\description{
Conversion from Millibar [hPa] to mmHG.
}
\author{
Istituto pe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Papp.R
\name{z.Papp}
\alias{z.Papp}
\title{Papp correlation}
\usage{
z.Papp(pres.pr, temp.pr, tolerance = 1e-13, verbose = FALSE)
}
\arguments{
\item{pres.pr}{pseudo-reduced pressure}
\item{temp.pr}{pseudo-reduced temperature}
\item{toleran... | /man/Papp.Rd | no_license | cran/zFactor | R | false | true | 824 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Papp.R
\name{z.Papp}
\alias{z.Papp}
\title{Papp correlation}
\usage{
z.Papp(pres.pr, temp.pr, tolerance = 1e-13, verbose = FALSE)
}
\arguments{
\item{pres.pr}{pseudo-reduced pressure}
\item{temp.pr}{pseudo-reduced temperature}
\item{toleran... |
#down load the data from the link.
#open data and merge two data sets together.First commit.
library(dplyr)
# load both test and train data.
testData<- read.table('test/X_test.txt')
trainData<- read.table('train/X_train.txt')
# load both subject data
testSubject<- read.table('test/subject_test.txt')
trainSubject<- ... | /run_analysis.R | no_license | woodyzc/getting-cleaning-data | R | false | false | 1,814 | r | #down load the data from the link.
#open data and merge two data sets together.First commit.
library(dplyr)
# load both test and train data.
testData<- read.table('test/X_test.txt')
trainData<- read.table('train/X_train.txt')
# load both subject data
testSubject<- read.table('test/subject_test.txt')
trainSubject<- ... |
## The functions contained here allow for caching the result of
## a Matrix inversion, which can allow for more efficient use
## of resources in this costly computation
## Thi function creates a special "matrix" object that can cache
## its inverse.
makeCacheMatrix <- function(x = matrix()) {
## initia... | /cachematrix.R | no_license | RushRy/ProgrammingAssignment2 | R | false | false | 1,889 | r | ## The functions contained here allow for caching the result of
## a Matrix inversion, which can allow for more efficient use
## of resources in this costly computation
## Thi function creates a special "matrix" object that can cache
## its inverse.
makeCacheMatrix <- function(x = matrix()) {
## initia... |
# TUTORIAL: https://www.r-bloggers.com/rselenium-a-wonderful-tool-for-web-scraping/
# TUTORIAL2: https://ropensci.org/tutorials/rselenium_tutorial/
# INSTALL THE LIBRARY
install.packages('RSelenium')
# IMPORT THE LIBRARY
library(RSelenium)
# RUN THIS INSTEAD OF checkForServer()
# (I BELIEVE YOU ONLY NEED TO RUN THIS... | /R/RSeleniumStartup.R | no_license | marshareb/R-and-Probability | R | false | false | 1,913 | r | # TUTORIAL: https://www.r-bloggers.com/rselenium-a-wonderful-tool-for-web-scraping/
# TUTORIAL2: https://ropensci.org/tutorials/rselenium_tutorial/
# INSTALL THE LIBRARY
install.packages('RSelenium')
# IMPORT THE LIBRARY
library(RSelenium)
# RUN THIS INSTEAD OF checkForServer()
# (I BELIEVE YOU ONLY NEED TO RUN THIS... |
# https://www.flickr.com/photos/stringrbelle/49656406813/
#' @rdname rosemary
#' @export
social_distance_02 <- function(dir = NULL, ...) {
dir <- check_dir(dir)
file <- file.path(dir, "social_distance_02.png")
dat <- jasmines::use_seed(255) %>%
jasmines::scene_mix(
n = 500, xpos = 1:80, ypos = 1:80,
... | /R/social_distance_02.R | permissive | Shornone/rosemary | R | false | false | 1,024 | r | # https://www.flickr.com/photos/stringrbelle/49656406813/
#' @rdname rosemary
#' @export
social_distance_02 <- function(dir = NULL, ...) {
dir <- check_dir(dir)
file <- file.path(dir, "social_distance_02.png")
dat <- jasmines::use_seed(255) %>%
jasmines::scene_mix(
n = 500, xpos = 1:80, ypos = 1:80,
... |
texAddin <- function() {
require(texViewer)
# Get the document context.
context <- rstudioapi::getActiveDocumentContext()
# Set the default data to use based on the selection.
obj <- context$selection[[1]]$text
if (nchar(obj) == 0) {
stop('Please highlight a tex before selecting this addin.')
}
... | /R/texAddin.R | no_license | talgalili/texPreview | R | false | false | 508 | r | texAddin <- function() {
require(texViewer)
# Get the document context.
context <- rstudioapi::getActiveDocumentContext()
# Set the default data to use based on the selection.
obj <- context$selection[[1]]$text
if (nchar(obj) == 0) {
stop('Please highlight a tex before selecting this addin.')
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_age_adjusted_ypll}
\alias{plot_age_adjusted_ypll}
\title{bar charts}
\usage{
plot_age_adjusted_ypll(
dt,
byvar,
year_rle = NA,
usa_ypll_ls = NULL,
panel_letter = NULL,
usa_text_angle = 90,
axis.text.x.size = 8,... | /man/plot_age_adjusted_ypll.Rd | no_license | Owain-S/COVIDYPLL | R | false | true | 377 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_age_adjusted_ypll}
\alias{plot_age_adjusted_ypll}
\title{bar charts}
\usage{
plot_age_adjusted_ypll(
dt,
byvar,
year_rle = NA,
usa_ypll_ls = NULL,
panel_letter = NULL,
usa_text_angle = 90,
axis.text.x.size = 8,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/franchises.R
\name{getPlayoffRecordVsFranchise}
\alias{getPlayoffRecordVsFranchise}
\title{Get Franchise Head to Head playoff record}
\usage{
getPlayoffRecordVsFranchise(franchiseID = NULL, franchiseName = NULL,
opponentName = NULL, opponen... | /man/getPlayoffRecordVsFranchise.Rd | permissive | pbulsink/nhlRapi | R | false | true | 977 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/franchises.R
\name{getPlayoffRecordVsFranchise}
\alias{getPlayoffRecordVsFranchise}
\title{Get Franchise Head to Head playoff record}
\usage{
getPlayoffRecordVsFranchise(franchiseID = NULL, franchiseName = NULL,
opponentName = NULL, opponen... |
### UNEMPLOYMENT RATES BY GENDER FORECAST ###
# Charge libraries
library(shiny)
suppressMessages(library(data.table)) ## data table language
suppressMessages(library(openxlsx)) ## reads Excel files
suppressMessages(library(forecast)) ## allows time series forecasting
suppressMessages(library(stats)) ... | /server.R | permissive | carolinart/Shiny-App-Project-JHU- | R | false | false | 7,051 | r | ### UNEMPLOYMENT RATES BY GENDER FORECAST ###
# Charge libraries
library(shiny)
suppressMessages(library(data.table)) ## data table language
suppressMessages(library(openxlsx)) ## reads Excel files
suppressMessages(library(forecast)) ## allows time series forecasting
suppressMessages(library(stats)) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package.R
\name{within}
\alias{within}
\alias{within,GRanges-method}
\title{within on GRanges}
\usage{
within(data, expr, ...)
}
\value{
GRanges
}
\description{
}
\author{
Kevin Hadi
}
| /man/gr_within.Rd | no_license | kevinmhadi/khtools | R | false | true | 264 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package.R
\name{within}
\alias{within}
\alias{within,GRanges-method}
\title{within on GRanges}
\usage{
within(data, expr, ...)
}
\value{
GRanges
}
\description{
}
\author{
Kevin Hadi
}
|
###################################
# Macuata District Report Maps
###################################
# Map setup
###########################
## Defining map elements
# Colors
# administrative
land_col <- "#878787"
water_col <- "#a6cee3"
# ecological
coral_col <- "#e31a1c" # red
seagrass_col <- "#86bb5... | /wwf_fiji_maps/qoliqoli_macuata_maps_code_r.R | no_license | bpfree/work_sample | R | false | false | 26,722 | r | ###################################
# Macuata District Report Maps
###################################
# Map setup
###########################
## Defining map elements
# Colors
# administrative
land_col <- "#878787"
water_col <- "#a6cee3"
# ecological
coral_col <- "#e31a1c" # red
seagrass_col <- "#86bb5... |
# read in Excel file with data and clean it
tidy_excel <- function(file_path){
data_tbl <- xlsx_cells(file_path)
dat <- data_tbl %>% behead("up-left", "swab_number") %>% behead("up", "plate_number") %>%
behead("left", "swab_type") %>% select(swab_type, swab_number, plate_number, numeric, character)
... | /r/functions.R | no_license | Scott-Coggeshall/repro_research_example | R | false | false | 2,063 | r | # read in Excel file with data and clean it
tidy_excel <- function(file_path){
data_tbl <- xlsx_cells(file_path)
dat <- data_tbl %>% behead("up-left", "swab_number") %>% behead("up", "plate_number") %>%
behead("left", "swab_type") %>% select(swab_type, swab_number, plate_number, numeric, character)
... |
## Functions to return the inverse of a passed matrix
## Creates the matrix with its own set of functions
makeCacheMatrix <- function(x = matrix()) {
i <- NULL ## Set up variable for inverse but set it to Null
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() # Function to retrie... | /cachematrix.R | no_license | strobbe/datasciencecoursera | R | false | false | 1,119 | r | ## Functions to return the inverse of a passed matrix
## Creates the matrix with its own set of functions
makeCacheMatrix <- function(x = matrix()) {
i <- NULL ## Set up variable for inverse but set it to Null
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() # Function to retrie... |
% File src/library/utils/man/object.size.Rd
% Part of the R package, https://www.R-project.org
% Copyright 1995-2017 R Core Team
% Distributed under GPL 2 or later
\name{object.size}
\alias{object.size}
\alias{format.object_size}
\alias{print.object_size}
\title{Report the Space Allocated for an Object}
\description{
... | /bin/R-3.5.1/src/library/utils/man/object.size.Rd | permissive | lifebit-ai/exomedepth | R | false | false | 6,250 | rd | % File src/library/utils/man/object.size.Rd
% Part of the R package, https://www.R-project.org
% Copyright 1995-2017 R Core Team
% Distributed under GPL 2 or later
\name{object.size}
\alias{object.size}
\alias{format.object_size}
\alias{print.object_size}
\title{Report the Space Allocated for an Object}
\description{
... |
source("functions.R")
conf.networks = list()
conf.dags = list()
# BNLEARN networks
# "alarm", "andes", "asia", "barley", "diabetes", "hailfinder", "hepar2",
# "insurance", "link", "mildew", "munin", "munin1","munin2", "munin3", "munin4",
# "pigs", "water", "win95pts"
# ECML
# "child", "insurance", "alarm", "mildew",... | /conf.R | no_license | gasse/bayes-benchmark | R | false | false | 3,338 | r | source("functions.R")
conf.networks = list()
conf.dags = list()
# BNLEARN networks
# "alarm", "andes", "asia", "barley", "diabetes", "hailfinder", "hepar2",
# "insurance", "link", "mildew", "munin", "munin1","munin2", "munin3", "munin4",
# "pigs", "water", "win95pts"
# ECML
# "child", "insurance", "alarm", "mildew",... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Authentication.R
\name{login}
\alias{login}
\title{Login to a TMC server}
\usage{
login(clientID, secret, username, password, serverAddress)
}
\arguments{
\item{clientID}{Client ID used in \code{OAuth2}.}
\item{secret}{Secret used in \code{O... | /tmcrstudioaddin/man/login.Rd | no_license | RTMC/tmc-rstudio | R | false | true | 1,067 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Authentication.R
\name{login}
\alias{login}
\title{Login to a TMC server}
\usage{
login(clientID, secret, username, password, serverAddress)
}
\arguments{
\item{clientID}{Client ID used in \code{OAuth2}.}
\item{secret}{Secret used in \code{O... |
library(caret)
library(tidyverse)
library(dslabs)
data(iris)
iris <- iris[-which(iris$Species=='setosa'),]
# give true indices,pural for index,
# removing setosa
y <- iris$Species
# set.seed(2) # if using R 3.5 or earlier
set.seed(2, sample.kind="Rounding") # if using R 3.6 or later
... | /multiPredictorsTwoCatergory.R | no_license | BaoLei1/Machine_Learning | R | false | false | 4,307 | r | library(caret)
library(tidyverse)
library(dslabs)
data(iris)
iris <- iris[-which(iris$Species=='setosa'),]
# give true indices,pural for index,
# removing setosa
y <- iris$Species
# set.seed(2) # if using R 3.5 or earlier
set.seed(2, sample.kind="Rounding") # if using R 3.6 or later
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{suffolk}
\alias{suffolk}
\title{Weather in Suffolk, VA}
\format{A data frame with columns:
\describe{
\item{Date}{Date of weather observation}
\item{TemperatureF}{Daily mean temperature in Fahrenheit}
\... | /man/suffolk.Rd | no_license | cran/weathermetrics | R | false | true | 628 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{suffolk}
\alias{suffolk}
\title{Weather in Suffolk, VA}
\format{A data frame with columns:
\describe{
\item{Date}{Date of weather observation}
\item{TemperatureF}{Daily mean temperature in Fahrenheit}
\... |
#' Determine significance of wavelet coherence
#'
#' @author Tarik C. Gouhier (tarik.gouhier@@gmail.com)
#'
#' Code based on WTC MATLAB package written by Aslak Grinsted.
#'
#' @param nrands Number of Monte Carlo randomizations.
#' @param lag1 Vector containing the AR(1) coefficient of each time series.
#' @param dt Le... | /R/wtc.sig.R | no_license | tgouhier/biwavelet | R | false | false | 5,268 | r | #' Determine significance of wavelet coherence
#'
#' @author Tarik C. Gouhier (tarik.gouhier@@gmail.com)
#'
#' Code based on WTC MATLAB package written by Aslak Grinsted.
#'
#' @param nrands Number of Monte Carlo randomizations.
#' @param lag1 Vector containing the AR(1) coefficient of each time series.
#' @param dt Le... |
#' Calculate Median Temperature
#'
#' This function calculates the median module temperature throughout the data
#' to be used in corrections.
#'
#' @param df Dataframe containing timeseries irradiance (column name must be poa)
#' and module temperature (column name must be modt) in unit of Celsius.
#'
#' @return Retu... | /R/tpk-median_temp.R | no_license | cran/SunsVoc | R | false | false | 695 | r |
#' Calculate Median Temperature
#'
#' This function calculates the median module temperature throughout the data
#' to be used in corrections.
#'
#' @param df Dataframe containing timeseries irradiance (column name must be poa)
#' and module temperature (column name must be modt) in unit of Celsius.
#'
#' @return Retu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/em_functions.r
\name{postProcess}
\alias{postProcess}
\title{postProcess}
\usage{
postProcess(b, dev = 1e-05)
}
\arguments{
\item{b}{scaled interaction matrix (diagonal/self-interaction is -1)}
\item{dev}{scale of the interaction < dev * 1, ... | /man/postProcess.Rd | permissive | pythseq/BEEM-static | R | false | true | 456 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/em_functions.r
\name{postProcess}
\alias{postProcess}
\title{postProcess}
\usage{
postProcess(b, dev = 1e-05)
}
\arguments{
\item{b}{scaled interaction matrix (diagonal/self-interaction is -1)}
\item{dev}{scale of the interaction < dev * 1, ... |
# Code chunk (not a true subfunction) segmenting stream trib/name/type detection
Find.Streams <- function(Data,Feature,col.in,cols.out,n.dup.cols, DELETION = TRUE, VERBOSE = FALSE){
Rows <- rownames(Data)[!is.na(Data[,col.in]) & Data[,col.in]!=""]
# Tributary checks -------
Data[Rows,col.in] <- gsub("[[:punct:]]"... | /Scripts/Process Input/Find.Streams.R | no_license | fahmidah/bridge.collapses | R | false | false | 2,661 | r | # Code chunk (not a true subfunction) segmenting stream trib/name/type detection
Find.Streams <- function(Data,Feature,col.in,cols.out,n.dup.cols, DELETION = TRUE, VERBOSE = FALSE){
Rows <- rownames(Data)[!is.na(Data[,col.in]) & Data[,col.in]!=""]
# Tributary checks -------
Data[Rows,col.in] <- gsub("[[:punct:]]"... |
#Shiny tutorial http://shiny.rstudio.com/tutorial/lesson6/
#Navbar layout http://shiny.rstudio.com/gallery/navbar-example.html
#run once
library (randomForest)
library (caret)
load ("TrainedModel.RDA") #modFit, training
# see *_Internal project for model build
shinyServer(
function(input, output) {
outpu... | /server.R | no_license | Ash-Datalytica/R_09_DDP_CourseProject_ShinyApp | R | false | false | 1,127 | r | #Shiny tutorial http://shiny.rstudio.com/tutorial/lesson6/
#Navbar layout http://shiny.rstudio.com/gallery/navbar-example.html
#run once
library (randomForest)
library (caret)
load ("TrainedModel.RDA") #modFit, training
# see *_Internal project for model build
shinyServer(
function(input, output) {
outpu... |
library(dplyr)
library(ggplot2)
library(GGally)
df <- read.csv('./reviews_cleaned.csv', stringsAsFactors=F)
colnames(df)
# [1] "Company" "Username" "City" "State" "Date" "Rating"
# [7] "Review" "Distance" "Cost" "Cost.per.Mile" "Sqft.Moved"
dim(df) # [1]... | /07_lr_stats.R | no_license | maryxhuang/Project_2_WebScraping | R | false | false | 8,154 | r | library(dplyr)
library(ggplot2)
library(GGally)
df <- read.csv('./reviews_cleaned.csv', stringsAsFactors=F)
colnames(df)
# [1] "Company" "Username" "City" "State" "Date" "Rating"
# [7] "Review" "Distance" "Cost" "Cost.per.Mile" "Sqft.Moved"
dim(df) # [1]... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/gather.R
\name{gather}
\alias{gather}
\title{Gather columns into key-value pairs.}
\usage{
gather(data, key, value, ..., na.rm = FALSE, convert = FALSE)
}
\arguments{
\item{data}{A data frame.}
\item{key,value}{Names of key and value... | /man/gather.Rd | no_license | juliacrapo/tidyr | R | false | false | 2,043 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/gather.R
\name{gather}
\alias{gather}
\title{Gather columns into key-value pairs.}
\usage{
gather(data, key, value, ..., na.rm = FALSE, convert = FALSE)
}
\arguments{
\item{data}{A data frame.}
\item{key,value}{Names of key and value... |
/itnet/nettime/modif.r | no_license | unix-history/tropix-cmd | R | false | false | 340 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doubly_protected_estimators.R
\name{drdpn}
\alias{drdpn}
\title{Computes a robust doubly protected estimator of a quantile of a random variable Y with the method proposed in Sued, Valdora and Yohai (2019) and the SPPS model for the propensity... | /man/drdpn.Rd | no_license | mvaldora/rdp | R | false | true | 943 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doubly_protected_estimators.R
\name{drdpn}
\alias{drdpn}
\title{Computes a robust doubly protected estimator of a quantile of a random variable Y with the method proposed in Sued, Valdora and Yohai (2019) and the SPPS model for the propensity... |
#' tidy_phylo_beta_pair
#'
#' @param x matrix species.
#' @param tree dendrogram.
#' @param index.family "jaccard" or "sorensen".
#'
#' @return data_frame
#' @export
#'
#' @examples
tidy_phylo_beta_pair <- function (x, tree, index.family = "sorensen")
{
requireNamespace("tidyverse")
requireNamespace("corrr")
requ... | /R/tidy_phylo_beta_pair.R | no_license | PaulESantos/betapart.tidy | R | false | false | 3,185 | r | #' tidy_phylo_beta_pair
#'
#' @param x matrix species.
#' @param tree dendrogram.
#' @param index.family "jaccard" or "sorensen".
#'
#' @return data_frame
#' @export
#'
#' @examples
tidy_phylo_beta_pair <- function (x, tree, index.family = "sorensen")
{
requireNamespace("tidyverse")
requireNamespace("corrr")
requ... |
library(dashCoreComponents)
library(dashHtmlComponents)
library(dash)
utils <- new.env()
source('dash_docs/utils.R', local=utils)
source('dash_docs/styles.R')
source('dash_docs/components.R')
examples <- list(
simpleslider = utils$LoadExampleCode('dash_docs/chapters/dash_core_components/Slider/examples/slider1.R'),... | /dash_docs/chapters/dash_core_components/Slider/index.R | permissive | plotly/dash-docs | R | false | false | 3,314 | r | library(dashCoreComponents)
library(dashHtmlComponents)
library(dash)
utils <- new.env()
source('dash_docs/utils.R', local=utils)
source('dash_docs/styles.R')
source('dash_docs/components.R')
examples <- list(
simpleslider = utils$LoadExampleCode('dash_docs/chapters/dash_core_components/Slider/examples/slider1.R'),... |
# setup -------------------------------------------------------------------
require(dplyr)
require(ggplot2)
require(lme4)
require(lmerTest)
require(mlogit)
require(lattice)
require(stringdist)
require(ggstatsplot)
theme_update(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.background = ... | /data/old/analysis.R | no_license | adammmorris/choice-sets | R | false | false | 24,300 | r | # setup -------------------------------------------------------------------
require(dplyr)
require(ggplot2)
require(lme4)
require(lmerTest)
require(mlogit)
require(lattice)
require(stringdist)
require(ggstatsplot)
theme_update(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.background = ... |
## server.R
library(dplyr)
library(ggplot2)
library(recommenderlab)
library(DT)
library(data.table)
library(reshape2)
source('functions/cf_algorithm.R') # collaborative filtering
source('functions/similarity_measures.R') # similarity measures
get_user_ratings = function(value_list) {
dat = data.table(
... | /server.R | no_license | aknemani/FindMovies | R | false | false | 7,859 | r | ## server.R
library(dplyr)
library(ggplot2)
library(recommenderlab)
library(DT)
library(data.table)
library(reshape2)
source('functions/cf_algorithm.R') # collaborative filtering
source('functions/similarity_measures.R') # similarity measures
get_user_ratings = function(value_list) {
dat = data.table(
... |
## this script will get data from IDXData
########## call packages
require(quantmod)
################## output to file
# sink("~/Dropbox/DATA/YAHOO/learnSPX.csv", split=TRUE)
############## get data from Dropbox/DATA/IDXData
gold <- read.zoo("~/Dropbox/DATA/IDXDATA/$GOLD.CSV", sep=",", format ="%m/%d/%Y", header... | /task_reference/svn/trunk/getIDX.r | no_license | githubfun/R | R | false | false | 515 | r | ## this script will get data from IDXData
########## call packages
require(quantmod)
################## output to file
# sink("~/Dropbox/DATA/YAHOO/learnSPX.csv", split=TRUE)
############## get data from Dropbox/DATA/IDXData
gold <- read.zoo("~/Dropbox/DATA/IDXDATA/$GOLD.CSV", sep=",", format ="%m/%d/%Y", header... |
#-------------------------------------------------------------------------
#Wind Speed (Darro) X Precipitation (Darro) - Maxima diary precipitation
#-------------------------------------------------------------------------
#Eduardo Q Marques 17-05-2022
#eduardobio2009@gmail.com
#----------------------------------------... | /Doutorado/Chapter-2/Tower and Darro Station/Wind Speed (Darro) X Precipitation (Darro) - Maxima Precpitacao diaria.R | no_license | Eduardoqm/Science-Repository | R | false | false | 9,827 | r | #-------------------------------------------------------------------------
#Wind Speed (Darro) X Precipitation (Darro) - Maxima diary precipitation
#-------------------------------------------------------------------------
#Eduardo Q Marques 17-05-2022
#eduardobio2009@gmail.com
#----------------------------------------... |
library(ape)
testtree <- read.tree("7123_2.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="7123_2_unrooted.txt") | /codeml_files/newick_trees_processed/7123_2/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("7123_2.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="7123_2_unrooted.txt") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NumCheck.R
\name{createNumCheck}
\alias{createNumCheck}
\title{Create data.frame for specification of numerical plausibility checks.}
\usage{
createNumCheck(GADSdat)
}
\arguments{
\item{GADSdat}{A \code{GADSdat} object.}
}
\value{
A data.fram... | /man/createNumCheck.Rd | no_license | beckerbenj/eatGADS | R | false | true | 918 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NumCheck.R
\name{createNumCheck}
\alias{createNumCheck}
\title{Create data.frame for specification of numerical plausibility checks.}
\usage{
createNumCheck(GADSdat)
}
\arguments{
\item{GADSdat}{A \code{GADSdat} object.}
}
\value{
A data.fram... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createModels.R
\name{updateCurrentValues}
\alias{updateCurrentValues}
\title{Updates current values}
\usage{
updateCurrentValues(templateTags, initCollection)
}
\arguments{
\item{templateTags}{The template tags}
\item{initCollecti... | /man/updateCurrentValues.Rd | no_license | wang-ze/MplusAutomation | R | false | true | 590 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createModels.R
\name{updateCurrentValues}
\alias{updateCurrentValues}
\title{Updates current values}
\usage{
updateCurrentValues(templateTags, initCollection)
}
\arguments{
\item{templateTags}{The template tags}
\item{initCollecti... |
# OpenAPI Petstore
#
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
#
# OpenAPI spec version: 1.0.0
#
# Generated by: https://openapi-generator.tech
#' @title Pet operations
#' @description petstore.Pet
#'
#' @field path Stores url ... | /samples/client/petstore/R/R/pet_api.R | permissive | mrvdot/openapi-generator | R | false | false | 11,384 | r | # OpenAPI Petstore
#
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
#
# OpenAPI spec version: 1.0.0
#
# Generated by: https://openapi-generator.tech
#' @title Pet operations
#' @description petstore.Pet
#'
#' @field path Stores url ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paper_functions.R
\name{plotFracDrift}
\alias{plotFracDrift}
\title{plotFracDrift}
\usage{
plotFracDrift(summ.frac)
}
\arguments{
\item{summ.frac}{summ frac list to plot, contains $baf and $cn}
}
\description{
plotFracDrift
}
| /man/plotFracDrift.Rd | permissive | quevedor2/CCLid | R | false | true | 304 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paper_functions.R
\name{plotFracDrift}
\alias{plotFracDrift}
\title{plotFracDrift}
\usage{
plotFracDrift(summ.frac)
}
\arguments{
\item{summ.frac}{summ frac list to plot, contains $baf and $cn}
}
\description{
plotFracDrift
}
|
### ---
### Title: "Untitled"
### Create: "Yuansh"
### Date: "5/01/2020"
### Email: yuansh3354@163.com
### output: html_document
### ---
### step0 准备
##### 1. 设置镜像
if(T){
options()$repos
options()$BioC_mirror
options(BioC_mirror="http://mirrors.ustc.edu.cn/bioc/")
options("repos" = c(CRAN="http://mirrors.tu... | /胃癌/生存分析.R | no_license | yuansh3354/project_test | R | false | false | 8,485 | r | ### ---
### Title: "Untitled"
### Create: "Yuansh"
### Date: "5/01/2020"
### Email: yuansh3354@163.com
### output: html_document
### ---
### step0 准备
##### 1. 设置镜像
if(T){
options()$repos
options()$BioC_mirror
options(BioC_mirror="http://mirrors.ustc.edu.cn/bioc/")
options("repos" = c(CRAN="http://mirrors.tu... |
\name{income}
\alias{income}
\docType{data}
\title{income mean in 1000 $ on subsamples of age, gender and marital status groups}
\description{
}
\usage{data(income)}
\format{
A data frame with 8 observations and 6 variables.
\describe{
\item{agegroup}{Age group}
\item{maritalstatus}{Marital Status}
\... | /man/income.Rd | no_license | DanielBonnery/dataIncome | R | false | false | 623 | rd | \name{income}
\alias{income}
\docType{data}
\title{income mean in 1000 $ on subsamples of age, gender and marital status groups}
\description{
}
\usage{data(income)}
\format{
A data frame with 8 observations and 6 variables.
\describe{
\item{agegroup}{Age group}
\item{maritalstatus}{Marital Status}
\... |
library(dominanceanalysis)
### Name: bootDominanceAnalysis
### Title: Bootstrap analysis for Dominance Analysis
### Aliases: bootDominanceAnalysis
### ** Examples
## No test:
lm.1<-lm(Employed~.,longley)
da.boot<-bootDominanceAnalysis(lm.1,R=1000)
summary(da.boot)
## End(No test)
| /data/genthat_extracted_code/dominanceanalysis/examples/bootDominanceAnalysis.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 289 | r | library(dominanceanalysis)
### Name: bootDominanceAnalysis
### Title: Bootstrap analysis for Dominance Analysis
### Aliases: bootDominanceAnalysis
### ** Examples
## No test:
lm.1<-lm(Employed~.,longley)
da.boot<-bootDominanceAnalysis(lm.1,R=1000)
summary(da.boot)
## End(No test)
|
library(jsonlite)
#library(data.table)
library(RCurl)
source('hasloA.R', encoding = 'UTF-8')
read_counterids<-function(filename="pliki/counterids.json") {
ids<-read_json(filename, simplifyVector = TRUE)
ids
}
zaladuj_dane_api<-function(ids=ids, od="2018-01-01", do=Sys.Date()) {
link <- paste('http://greenelep... | /rowery/read_from_api.R | permissive | plazmonik/shiny-server | R | false | false | 804 | r | library(jsonlite)
#library(data.table)
library(RCurl)
source('hasloA.R', encoding = 'UTF-8')
read_counterids<-function(filename="pliki/counterids.json") {
ids<-read_json(filename, simplifyVector = TRUE)
ids
}
zaladuj_dane_api<-function(ids=ids, od="2018-01-01", do=Sys.Date()) {
link <- paste('http://greenelep... |
#
# Copyright 2007-2020 by the individuals mentioned in the source code history
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | /R/MxOptions.R | no_license | mirkoruks/OpenMx | R | false | false | 10,906 | r | #
# Copyright 2007-2020 by the individuals mentioned in the source code history
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... |
# blast_result <- pcc7120_groel_nuccore[1,]
# xstring <- readDNAStringSet(filepath = "/home/mirkko/Documents/NCBI/ncbi_nuccore/fasta/17227497.fna", format = "fasta")
# path <- "/tmp/seqs.fna"
# nuc_up = 20000
# nuc_down = 300
ex_1 <- tibble(qseqid = c("a", "b", "c"),
sstart = c(4, 8, 25),
... | /man/not_working.R | no_license | mirkko-hub/rentrezaddon | R | false | false | 4,375 | r |
# blast_result <- pcc7120_groel_nuccore[1,]
# xstring <- readDNAStringSet(filepath = "/home/mirkko/Documents/NCBI/ncbi_nuccore/fasta/17227497.fna", format = "fasta")
# path <- "/tmp/seqs.fna"
# nuc_up = 20000
# nuc_down = 300
ex_1 <- tibble(qseqid = c("a", "b", "c"),
sstart = c(4, 8, 25),
... |
runInd <- 1
args <- commandArgs(TRUE)
for(i in 1:length(args)){
eval(parse(text = args[[i]]))
}
print(runInd)
run.onceLvl <- function(p, n, distro, bs = 200, K = c(2,3), parent_prob = 1/3){
dat <- cdcs::rDAG(p, n, parent_prob = 5/p, lowScale = .8,
highScale = 1, lowEdge = .2, highEdge = .8... | /test/levelValid_test.R | no_license | ysamwang/cdcs | R | false | false | 1,499 | r | runInd <- 1
args <- commandArgs(TRUE)
for(i in 1:length(args)){
eval(parse(text = args[[i]]))
}
print(runInd)
run.onceLvl <- function(p, n, distro, bs = 200, K = c(2,3), parent_prob = 1/3){
dat <- cdcs::rDAG(p, n, parent_prob = 5/p, lowScale = .8,
highScale = 1, lowEdge = .2, highEdge = .8... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/funcc_show_bicluster_coverage.R
\name{funcc_show_bicluster_coverage}
\alias{funcc_show_bicluster_coverage}
\title{plotting coverage of each bi-cluster}
\usage{
funcc_show_bicluster_coverage(
fun_mat,
res_input,
not_assigned = TRUE,
ma... | /man/funcc_show_bicluster_coverage.Rd | no_license | cran/FunCC | R | false | true | 1,190 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/funcc_show_bicluster_coverage.R
\name{funcc_show_bicluster_coverage}
\alias{funcc_show_bicluster_coverage}
\title{plotting coverage of each bi-cluster}
\usage{
funcc_show_bicluster_coverage(
fun_mat,
res_input,
not_assigned = TRUE,
ma... |
suppressMessages({
library(tidyverse, quietly = TRUE, warn.conflicts = FALSE)
library(forecast)
library(prophet)
library(qgam)
library(lubridate)
})
#' Preprocess raw weekly sales data.
#'
#' Creates new columns for Primary Key, Day, Weekday,
#' Month, Year, and each holiday (i.e., Christmas,
#' Thanksgiving... | /R/helpers.R | no_license | bgereke/salesforecast | R | false | false | 19,427 | r | suppressMessages({
library(tidyverse, quietly = TRUE, warn.conflicts = FALSE)
library(forecast)
library(prophet)
library(qgam)
library(lubridate)
})
#' Preprocess raw weekly sales data.
#'
#' Creates new columns for Primary Key, Day, Weekday,
#' Month, Year, and each holiday (i.e., Christmas,
#' Thanksgiving... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/xgboost.R
\name{xgboost}
\alias{xgboost}
\title{eXtreme Gradient Boosting (Tree) library}
\usage{
xgboost(data = NULL, label = NULL, missing = NULL, params = list(),
nrounds, verbose = 1, print.every.n = 1L, early.stop.round = NULL,... | /R-package/man/xgboost.Rd | permissive | saurav111/xgboost | R | false | false | 2,943 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/xgboost.R
\name{xgboost}
\alias{xgboost}
\title{eXtreme Gradient Boosting (Tree) library}
\usage{
xgboost(data = NULL, label = NULL, missing = NULL, params = list(),
nrounds, verbose = 1, print.every.n = 1L, early.stop.round = NULL,... |
### Site setup
library(blogdown)
# Create new site in our recently cloned blogdown repository
# This does not need to be run again
new_site(dir = 'blogdown_source',
theme = 'gcushen/hugo-academic',
format = 'toml')
# WORKING DIRECTORY NEEDS TO BE blogdown_source
# Fixed to control this - created... | /site_setup.R | no_license | tsteggall/blogdown_source | R | false | false | 639 | r | ### Site setup
library(blogdown)
# Create new site in our recently cloned blogdown repository
# This does not need to be run again
new_site(dir = 'blogdown_source',
theme = 'gcushen/hugo-academic',
format = 'toml')
# WORKING DIRECTORY NEEDS TO BE blogdown_source
# Fixed to control this - created... |
require(shiny)
require(igraph)
require(visNetwork)
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
sliderInput("obs", "Number of observations:",
min = 10, max = 500, value = 100)
),
mainPanel(plotOutput("plot1"))
)
)
server <- function(input, output) {
output$plot1 <- renderPlot({
hist(rnorm(input$o... | /demo.r | no_license | daniellenguyen/basketball-bracket | R | false | false | 403 | r | require(shiny)
require(igraph)
require(visNetwork)
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
sliderInput("obs", "Number of observations:",
min = 10, max = 500, value = 100)
),
mainPanel(plotOutput("plot1"))
)
)
server <- function(input, output) {
output$plot1 <- renderPlot({
hist(rnorm(input$o... |
pkn.findNextWord <- function(string, ncandidates, min_cand_freq = 3, dictlist){
#Determine candidates that have a min. count of min_cand_freq
source("candidateList.R")
print(c("[EC1] Original string:", string))
library(qdap)
string <- gsub(pattern = "'", replacement = "", tolower(replace_contraction... | /findNextWord.R | no_license | andimasanam/Capstone-TextPredictProject | R | false | false | 1,245 | r | pkn.findNextWord <- function(string, ncandidates, min_cand_freq = 3, dictlist){
#Determine candidates that have a min. count of min_cand_freq
source("candidateList.R")
print(c("[EC1] Original string:", string))
library(qdap)
string <- gsub(pattern = "'", replacement = "", tolower(replace_contraction... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flow-functions.R
\name{forget}
\alias{forget}
\title{Forgets the computation for the current state}
\usage{
forget(flow, state = "current")
}
\arguments{
\item{flow}{A flow object, e.g. as returned by \code{\link{flow_fn}}.}
\item{state}{A f... | /man/forget.Rd | permissive | numeract/rflow | R | false | true | 714 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flow-functions.R
\name{forget}
\alias{forget}
\title{Forgets the computation for the current state}
\usage{
forget(flow, state = "current")
}
\arguments{
\item{flow}{A flow object, e.g. as returned by \code{\link{flow_fn}}.}
\item{state}{A f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.