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 |
|---|---|---|---|---|---|---|---|---|---|
library(ggplot2)
library(zoo)
library(DAAG)
library(mapdata) #for canada map from worldhires database
library(ggmap)
code2015_govfund <- function()
{
allcit <- NULL
allcit2 <- NULL
#data set from here http://open.canada.ca/data/en/dataset/c34ca68e-85bb-43d6-a261-7b42ce9b31e8
#beware: some table names I have chan... | /src/code2015.R | no_license | petiteparticule/code2015git | R | false | false | 4,914 | r | library(ggplot2)
library(zoo)
library(DAAG)
library(mapdata) #for canada map from worldhires database
library(ggmap)
code2015_govfund <- function()
{
allcit <- NULL
allcit2 <- NULL
#data set from here http://open.canada.ca/data/en/dataset/c34ca68e-85bb-43d6-a261-7b42ce9b31e8
#beware: some table names I have chan... |
# run the ARIMA predictable model on 2018 driver data for validation
library(rsq)
library(tidyverse)
library(Metrics)
# read in driver data for the model (2018 inflow, met, and chla data)
met <- read.csv("./MET/NLDAS_2018_daily.csv")
met$Date <- as.Date(met$Date)
inflow <- read.csv("./Inflow/inflow_2013_2018.csv")
... | /R Scripts/Ch1_TimeSeriesAnalysis/20_2018_Validation.R | no_license | wwoelmer/Thesis | R | false | false | 2,914 | r | # run the ARIMA predictable model on 2018 driver data for validation
library(rsq)
library(tidyverse)
library(Metrics)
# read in driver data for the model (2018 inflow, met, and chla data)
met <- read.csv("./MET/NLDAS_2018_daily.csv")
met$Date <- as.Date(met$Date)
inflow <- read.csv("./Inflow/inflow_2013_2018.csv")
... |
# Marc Edwards - BEACONs
# Feb 14 2017
# GUI version of rankAddedSolution.R - this version just requires a dataDir folder, it will then go and find the criteria results and targets in that folder
results_summary <- function(criteria, summaryDir, rareThreshold = 0, gapThreshold = 100, outFile) {
# criteria - strin... | /functions/results_summary.R | no_license | edwardsmarc/tools-GUI | R | false | false | 5,691 | r | # Marc Edwards - BEACONs
# Feb 14 2017
# GUI version of rankAddedSolution.R - this version just requires a dataDir folder, it will then go and find the criteria results and targets in that folder
results_summary <- function(criteria, summaryDir, rareThreshold = 0, gapThreshold = 100, outFile) {
# criteria - strin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bigleaf_physiology.r
\name{stomatal.slope}
\alias{stomatal.slope}
\title{Stomatal Slope Parameter "g1"}
\usage{
stomatal.slope(
data,
Tair = "Tair",
pressure = "pressure",
GPP = "GPP",
Gs = "Gs_mol",
VPD = "VPD",
Ca = "Ca",
Rl... | /man/stomatal.slope.Rd | no_license | cran/bigleaf | R | false | true | 7,363 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bigleaf_physiology.r
\name{stomatal.slope}
\alias{stomatal.slope}
\title{Stomatal Slope Parameter "g1"}
\usage{
stomatal.slope(
data,
Tair = "Tair",
pressure = "pressure",
GPP = "GPP",
Gs = "Gs_mol",
VPD = "VPD",
Ca = "Ca",
Rl... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{extractDrugCarbonTypes}
\alias{extractDrugCarbonTypes}
\title{Topological Descriptor Characterizing the Carbon Connectivity
in Terms of Hybridization}
\usage{
extractDrugCarbonTypes(molecules, silent = TRUE)
}
\arguments{
\item{molecules}{Parsed molucule object... | /man/extractDrugCarbonTypes.Rd | no_license | MaythaNaif/Rcpi | R | false | false | 1,849 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{extractDrugCarbonTypes}
\alias{extractDrugCarbonTypes}
\title{Topological Descriptor Characterizing the Carbon Connectivity
in Terms of Hybridization}
\usage{
extractDrugCarbonTypes(molecules, silent = TRUE)
}
\arguments{
\item{molecules}{Parsed molucule object... |
suppressMessages(library(PivotalR))
gp <- db.connect(port=16526, dbname='madlib', host='127.0.0.1', user='gpadmin', verbose=F, quick=T) # 1, Greenplum database
x <- db.data.frame('madlibtestdata.dt_abalone', verbose=F)
f <- madlib.glm(rings ~ . - id, data = x, family = poisson(log))
AIC(f)
| /demo_glm/aic1.R | no_license | walkingsparrow/presentation | R | false | false | 292 | r | suppressMessages(library(PivotalR))
gp <- db.connect(port=16526, dbname='madlib', host='127.0.0.1', user='gpadmin', verbose=F, quick=T) # 1, Greenplum database
x <- db.data.frame('madlibtestdata.dt_abalone', verbose=F)
f <- madlib.glm(rings ~ . - id, data = x, family = poisson(log))
AIC(f)
|
if(!file.exists("household_power_consumption.txt")) {
download.file("https://d396qusza40orc.cloudfront.net/
exdata%2Fdata%2Fhousehold_power_consumption.zip",
"household_power_consumption.zip",
method = "auto")
unzip("househol... | /plot3.R | no_license | exarc/ExData_Plotting1 | R | false | false | 1,286 | r | if(!file.exists("household_power_consumption.txt")) {
download.file("https://d396qusza40orc.cloudfront.net/
exdata%2Fdata%2Fhousehold_power_consumption.zip",
"household_power_consumption.zip",
method = "auto")
unzip("househol... |
= class Cairo::InvalidPopGroupError
保存されていないグループをポップしようとすると発生します。
== Object Hierarchy
* Object
* Exception
* StandardError
* ((<Cairo::Error>))
* Cairo::InvalidPopGroupError
== See Also
* Index
== ChangeLog
* 2007-05-21: kou: スタート。
| /ja/cairo-invalid-pop-group-error.rd | no_license | rcairo/doc | R | false | false | 331 | rd | = class Cairo::InvalidPopGroupError
保存されていないグループをポップしようとすると発生します。
== Object Hierarchy
* Object
* Exception
* StandardError
* ((<Cairo::Error>))
* Cairo::InvalidPopGroupError
== See Also
* Index
== ChangeLog
* 2007-05-21: kou: スタート。
|
#' Reverse the direction of all edges in a graph
#' @description Using a directed graph as input,
#' reverse the direction of all edges in that graph.
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @return a graph object of class \code{dgr_graph}.
#' @examples
#' # Create a graph with a directed tree
#... | /R/rev_edge_dir.R | no_license | chengfeifan/DiagrammeR | R | false | false | 2,280 | r | #' Reverse the direction of all edges in a graph
#' @description Using a directed graph as input,
#' reverse the direction of all edges in that graph.
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @return a graph object of class \code{dgr_graph}.
#' @examples
#' # Create a graph with a directed tree
#... |
######################################################################
# Probability of being above/below the futility boundary in stage I
#
######################################################################
# needed for truncated normal
ptnorm <- function (q, mean = 0, sd = 1, lower = -Inf, upper = Inf, lower.ta... | /R/internal.R | no_license | github-js/agseDesign | R | false | false | 48,901 | r |
######################################################################
# Probability of being above/below the futility boundary in stage I
#
######################################################################
# needed for truncated normal
ptnorm <- function (q, mean = 0, sd = 1, lower = -Inf, upper = Inf, lower.ta... |
#' Skin Cutaneous Melanoma Data set
#'
#' The clinical variables of the SKCM dataset.
#' The original data was obtained from The Cancer Genome Atlas (TCGA).
#'
#' @format
#' Contains 469 subjects with 156 failures. Each row contains one subject,
#' subject ID is indicated by row name. Variables include:
#'
#' - ... | /R/skcm.r | no_license | teazrq/orthoDr | R | false | false | 1,794 | r | #' Skin Cutaneous Melanoma Data set
#'
#' The clinical variables of the SKCM dataset.
#' The original data was obtained from The Cancer Genome Atlas (TCGA).
#'
#' @format
#' Contains 469 subjects with 156 failures. Each row contains one subject,
#' subject ID is indicated by row name. Variables include:
#'
#' - ... |
best <- function(state, outcome)
{
lowestmortality <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
if(!any(state == lowestmortality$State))
{
stop(print("no such State as the input"))
}
else if((outcome %in% c("hearth attack", "hearth failure",... | /best.r | no_license | cevaboyz/assignment3 | R | false | false | 689 | r | best <- function(state, outcome)
{
lowestmortality <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
if(!any(state == lowestmortality$State))
{
stop(print("no such State as the input"))
}
else if((outcome %in% c("hearth attack", "hearth failure",... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{withings_authrefresh}
\alias{withings_authrefresh}
\title{Refresh token}
\usage{
withings_authrefresh(token)
}
\arguments{
\item{token}{Your token obtained using \code{withings_auth()}}
}
\value{
A refreshed access token
}
\descr... | /man/withings_authrefresh.Rd | permissive | mathesong/rwithings | R | false | true | 502 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{withings_authrefresh}
\alias{withings_authrefresh}
\title{Refresh token}
\usage{
withings_authrefresh(token)
}
\arguments{
\item{token}{Your token obtained using \code{withings_auth()}}
}
\value{
A refreshed access token
}
\descr... |
# AF and TM
# 1.21.2020
# MCMC multi response Poisson model
rm(list =ls())
library(MCMCglmm)
setwd("~/Dropbox/Pharma_Influence/Guido_Working_file/")
# LOAD DATA-----------------------------------
load_anti_inf <- read.csv(file = 'class_Anti_infective.csv', header = T)
load_antichol <- read.csv(file = 'class_Anticho... | /Model all classes 2020.01.30.R | no_license | mufflyt/Pharma_influence | R | false | false | 9,270 | r | # AF and TM
# 1.21.2020
# MCMC multi response Poisson model
rm(list =ls())
library(MCMCglmm)
setwd("~/Dropbox/Pharma_Influence/Guido_Working_file/")
# LOAD DATA-----------------------------------
load_anti_inf <- read.csv(file = 'class_Anti_infective.csv', header = T)
load_antichol <- read.csv(file = 'class_Anticho... |
\name{plot.dt.madlib}
\alias{plot.dt.madlib}
\title{
Plot the result of madlib.rpart
}
\description{
This is a visualization function which plots the result of \code{\link{madlib.rpart}}. This
function internally calls R's \code{\link{plot.rpart}} function. }
\usage{
\method{plot}{dt.madlib}(x, uniform =... | /man/plot.dt.madlib.Rd | no_license | dambor/PivotalR | R | false | false | 2,845 | rd | \name{plot.dt.madlib}
\alias{plot.dt.madlib}
\title{
Plot the result of madlib.rpart
}
\description{
This is a visualization function which plots the result of \code{\link{madlib.rpart}}. This
function internally calls R's \code{\link{plot.rpart}} function. }
\usage{
\method{plot}{dt.madlib}(x, uniform =... |
#####################################################################################################################################################
######################## Script to calculate light extinction coefficient ################################################################3
library(tidyverse)
#read i... | /historical_model_selection/RScripts/5_calculate_Kd.R | no_license | wwoelmer/FLARE_AR_CHLA | R | false | false | 2,063 | r | #####################################################################################################################################################
######################## Script to calculate light extinction coefficient ################################################################3
library(tidyverse)
#read i... |
#' Get cRegulome.db file
#'
#' This function calls \code{\link[utils]{download.file}} to download the
#' pre-build database file of cRegulome. Additionally, the function checks
#' the validity of the pre-defined URL and whether the database file exists
#' in the current working directory to avoid redownloading it. Typi... | /R/get_data.R | no_license | cran/cRegulome | R | false | false | 18,454 | r | #' Get cRegulome.db file
#'
#' This function calls \code{\link[utils]{download.file}} to download the
#' pre-build database file of cRegulome. Additionally, the function checks
#' the validity of the pre-defined URL and whether the database file exists
#' in the current working directory to avoid redownloading it. Typi... |
#' delta_aic
#'
#' Calculates changes to AIC across two or more models.
#' @param models a list of two or more linear models. Differences will be calculated in the order models are listed.
#' @export
delta_aic <- function(models) {
# check argument length
argument_check(models, "models", "list", TRUE, c(2, In... | /R/delta_aic.R | permissive | camkay/panoply | R | false | false | 857 | r | #' delta_aic
#'
#' Calculates changes to AIC across two or more models.
#' @param models a list of two or more linear models. Differences will be calculated in the order models are listed.
#' @export
delta_aic <- function(models) {
# check argument length
argument_check(models, "models", "list", TRUE, c(2, In... |
#KG run size running averages
load_all('~/git/bio.eels')
fidir = project.figuredirectory('bio.eels')
da = read.csv(file.path(project.datadirectory('bio.eels'),'TRSIndicesRuns.csv'))
plot(1990:2018,1:nrow(da),ylim=c(0,7),type='n',xlab='Year',ylab='Total Run Size per km2')
with(da,{
points(Year,KgTot,pch=1)
points... | /inst/KGrunsizerunningaverages.r | no_license | AMCOOK/bio.eels | R | false | false | 1,571 | r | #KG run size running averages
load_all('~/git/bio.eels')
fidir = project.figuredirectory('bio.eels')
da = read.csv(file.path(project.datadirectory('bio.eels'),'TRSIndicesRuns.csv'))
plot(1990:2018,1:nrow(da),ylim=c(0,7),type='n',xlab='Year',ylab='Total Run Size per km2')
with(da,{
points(Year,KgTot,pch=1)
points... |
context("inference")
check_cp <- function(x, nrow, colnames) {
expect_true(is.numeric(x))
expect_equal(dimnames(x), list(NULL, colnames))
expect_equal(dim(x), c(nrow, length(colnames)))
expect_true(are_pdists(x))
}
test_that("Complete data set ", {
t <- nbcar()
a <- compute_cp(x = t, car)
check_cp(a, ... | /tests/testthat/test-infer.R | no_license | bmihaljevic/bnclassify | R | false | false | 3,545 | r | context("inference")
check_cp <- function(x, nrow, colnames) {
expect_true(is.numeric(x))
expect_equal(dimnames(x), list(NULL, colnames))
expect_equal(dim(x), c(nrow, length(colnames)))
expect_true(are_pdists(x))
}
test_that("Complete data set ", {
t <- nbcar()
a <- compute_cp(x = t, car)
check_cp(a, ... |
#' Timeline of presence/absence of data by type, year, and fleet.
#'
#' Plot shows graphical display of what data is being used in the model. Some
#' data types may not yet be included. Note, this is based on output from the
#' model, not the input data file.
#'
#'
#' @template replist
#' @param plot plot to a... | /R/SSplotData.R | no_license | cran/r4ss | R | false | false | 20,593 | r | #' Timeline of presence/absence of data by type, year, and fleet.
#'
#' Plot shows graphical display of what data is being used in the model. Some
#' data types may not yet be included. Note, this is based on output from the
#' model, not the input data file.
#'
#'
#' @template replist
#' @param plot plot to a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stability_correction.r
\name{stability.parameter}
\alias{stability.parameter}
\title{Stability Parameter "zeta"}
\usage{
stability.parameter(data, Tair = "Tair", pressure = "pressure",
ustar = "ustar", H = "H", zr, d, constants = bigleaf.co... | /man/stability.parameter.Rd | no_license | lhmet-forks/bigleaf | R | false | true | 1,513 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stability_correction.r
\name{stability.parameter}
\alias{stability.parameter}
\title{Stability Parameter "zeta"}
\usage{
stability.parameter(data, Tair = "Tair", pressure = "pressure",
ustar = "ustar", H = "H", zr, d, constants = bigleaf.co... |
library(shiny)
library(shinydashboard)
library(plotly)
library(tidyverse)
library(ggrepel)
library(lubridate)
library(DT)
library(leaflet)
library(readxl)
plasticprod <- read_csv("data/global-plastics-production.csv")
plasticprod %>%
is.na() %>%
colSums()
str(plasticprod)
plasticprod
inadequately_managed <- ... | /global.R | no_license | valencialie11/capstone-plasticwaste | R | false | false | 6,713 | r | library(shiny)
library(shinydashboard)
library(plotly)
library(tidyverse)
library(ggrepel)
library(lubridate)
library(DT)
library(leaflet)
library(readxl)
plasticprod <- read_csv("data/global-plastics-production.csv")
plasticprod %>%
is.na() %>%
colSums()
str(plasticprod)
plasticprod
inadequately_managed <- ... |
eventCounts <-
function (data, dateCol="Date", from = NULL, to = NULL,
by = "1 month", categoryCol=NULL, takeOnly=NULL, prefix="n_")
{
checkCols <- c(dateCol, categoryCol) %in% names(data)
if(!is.null(categoryCol) & !all(checkCols)){
txt <- paste("Name(s)", c(dateCol, categoryCol)[!checkCols], "not fo... | /gamclass/R/eventCounts.R | no_license | ingted/R-Examples | R | false | false | 1,407 | r | eventCounts <-
function (data, dateCol="Date", from = NULL, to = NULL,
by = "1 month", categoryCol=NULL, takeOnly=NULL, prefix="n_")
{
checkCols <- c(dateCol, categoryCol) %in% names(data)
if(!is.null(categoryCol) & !all(checkCols)){
txt <- paste("Name(s)", c(dateCol, categoryCol)[!checkCols], "not fo... |
% Generated by roxygen2 (4.0.2.9000): do not edit by hand
\name{ca.rows.corr}
\alias{ca.rows.corr}
\title{Rows correlation to the dimensions}
\usage{
\method{ca}{rows.corr}(data, num.dim)
}
\arguments{
\item{data}{Name of the dataset.}
\item{num.dim}{Number of the dimension for which the row categories correlation is ... | /man/ca.rows.corr.Rd | no_license | trinker/CAinterprTools | R | false | false | 595 | rd | % Generated by roxygen2 (4.0.2.9000): do not edit by hand
\name{ca.rows.corr}
\alias{ca.rows.corr}
\title{Rows correlation to the dimensions}
\usage{
\method{ca}{rows.corr}(data, num.dim)
}
\arguments{
\item{data}{Name of the dataset.}
\item{num.dim}{Number of the dimension for which the row categories correlation is ... |
# Statistics Tutorial - Day 6 - Walkthrough
# Created By: Prabesh Dhakal on 15.05.2019
# Last Edited: 19.05.2019
#### Goals ####
# 1. Load data from the local storage
# 2. Perform a test of normality (Shapiro-Wilk's Test + Q.Q. Plot)
# 3. Perform a test of equality of variance (F-test)
# 4. Perform a test of equal... | /2019_Stats_and_Maths/R_Files/2019_Stats_Tutorial_Day_6_Tests and Correlation.R | permissive | anhnguyendepocen/teachings | R | false | false | 4,831 | r | # Statistics Tutorial - Day 6 - Walkthrough
# Created By: Prabesh Dhakal on 15.05.2019
# Last Edited: 19.05.2019
#### Goals ####
# 1. Load data from the local storage
# 2. Perform a test of normality (Shapiro-Wilk's Test + Q.Q. Plot)
# 3. Perform a test of equality of variance (F-test)
# 4. Perform a test of equal... |
#
# slash_mixture.R, 5 Mar 20
#
# Data from:
# Homogeneous temporal activity patterns in a large online communication space
# Andreas Kaltenbrunner and Vicen\c{c} G\'{o}mez and Ayman Moghnieh and Rodrigo Meza and Josep Blat and Vicente L\'{o}pez
#
# Example from:
# Evidence-based Software Engineering: based on the pub... | /probability/slash_mixture.R | no_license | Derek-Jones/ESEUR-code-data | R | false | false | 2,227 | r | #
# slash_mixture.R, 5 Mar 20
#
# Data from:
# Homogeneous temporal activity patterns in a large online communication space
# Andreas Kaltenbrunner and Vicen\c{c} G\'{o}mez and Ayman Moghnieh and Rodrigo Meza and Josep Blat and Vicente L\'{o}pez
#
# Example from:
# Evidence-based Software Engineering: based on the pub... |
get_BDE <- function(){
require(dplyr)
require(data.table)
require(rvest)
require(curl)
require(xml2)
require(stringr)
require(XML)
url <- 'https://www.bde.es/webbde/es/estadis/infoest/bolest.html'
trim <- function( x ) {
gsub("(^[[:space:]]+|[[:space:]]+$)", "", x)
}
... | /BDE.R | no_license | puigjos/GetData | R | false | false | 2,633 | r | get_BDE <- function(){
require(dplyr)
require(data.table)
require(rvest)
require(curl)
require(xml2)
require(stringr)
require(XML)
url <- 'https://www.bde.es/webbde/es/estadis/infoest/bolest.html'
trim <- function( x ) {
gsub("(^[[:space:]]+|[[:space:]]+$)", "", x)
}
... |
# =====================================================================================================================
# INTRODUCTION TO R
# =====================================================================================================================
# R as a Scientific Calculator ----------------------------... | /lectures/R-01-T-r-introduction.R | no_license | aminondo/iX-rModules | R | false | false | 17,938 | r | # =====================================================================================================================
# INTRODUCTION TO R
# =====================================================================================================================
# R as a Scientific Calculator ----------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/drawFunctions.R
\name{animateThrow}
\alias{animateThrow}
\title{Plot the animation for a specific ball throw.}
\usage{
animateThrow(distance, color, step = Inf)
}
\arguments{
\item{distance}{Numeric with distance at which the ball is thrown.}... | /man/animateThrow.Rd | no_license | mit5u/petanque | R | false | true | 594 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/drawFunctions.R
\name{animateThrow}
\alias{animateThrow}
\title{Plot the animation for a specific ball throw.}
\usage{
animateThrow(distance, color, step = Inf)
}
\arguments{
\item{distance}{Numeric with distance at which the ball is thrown.}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directoryservice_operations.R
\name{directoryservice_disable_sso}
\alias{directoryservice_disable_sso}
\title{Disables single-sign on for a directory}
\usage{
directoryservice_disable_sso(DirectoryId, UserName, Password)
}
\arguments{
\item{D... | /cran/paws.security.identity/man/directoryservice_disable_sso.Rd | permissive | TWarczak/paws | R | false | true | 1,386 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directoryservice_operations.R
\name{directoryservice_disable_sso}
\alias{directoryservice_disable_sso}
\title{Disables single-sign on for a directory}
\usage{
directoryservice_disable_sso(DirectoryId, UserName, Password)
}
\arguments{
\item{D... |
#' Estimate fixed parameters by maximizing the profile h-likelihood function
#'
#' @importFrom dplyr select left_join
#' @importFrom Deriv Simplify
est_fixeff <- function(param, other_param,
RespLog, long.data, surv.data,
Bi, invSIGMA,
lower = NULL,
... | /R/est_fixeff.r | no_license | oliviayu/robust-HHJMs | R | false | false | 4,577 | r | #' Estimate fixed parameters by maximizing the profile h-likelihood function
#'
#' @importFrom dplyr select left_join
#' @importFrom Deriv Simplify
est_fixeff <- function(param, other_param,
RespLog, long.data, surv.data,
Bi, invSIGMA,
lower = NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bivariateAnalysis.R
\name{bivariateAnalysis}
\alias{bivariateAnalysis}
\title{A bivariateAnalysis Function}
\usage{
bivariateAnalysis(dat, na.rm = T, plot = F, warning = F)
}
\arguments{
\item{dat}{data in data.frame format}
\item{na.rm}{TRU... | /mdas1/man/bivariateAnalysis.Rd | permissive | uczhn/Medical-Data-Analysis-Suite-mdas | R | false | true | 1,553 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bivariateAnalysis.R
\name{bivariateAnalysis}
\alias{bivariateAnalysis}
\title{A bivariateAnalysis Function}
\usage{
bivariateAnalysis(dat, na.rm = T, plot = F, warning = F)
}
\arguments{
\item{dat}{data in data.frame format}
\item{na.rm}{TRU... |
#' @export
addOptPathEl.OptPathDF = function(op, x, y, dob = getOptPathLength(op)+1L, eol = NA_integer_,
error.message = NA_character_, exec.time = NA_real_, extra = NULL,
check.feasible = !op$add.transformed.x) {
env = op$env
assertList(x, len = length(op$par.set$pars))
assertNumeric(y, len = length(op$y.na... | /R/OptPathDF_setter.R | no_license | mb706/ParamHelpers | R | false | false | 2,739 | r | #' @export
addOptPathEl.OptPathDF = function(op, x, y, dob = getOptPathLength(op)+1L, eol = NA_integer_,
error.message = NA_character_, exec.time = NA_real_, extra = NULL,
check.feasible = !op$add.transformed.x) {
env = op$env
assertList(x, len = length(op$par.set$pars))
assertNumeric(y, len = length(op$y.na... |
##Third
with(FinalData,{
plot(Sub_metering_1~dateTime,type = "l",ylab = "Energy sub metering",xlab="")
lines(Sub_metering_2~dateTime,col="red")
lines(Sub_metering_3~dateTime,col="blue")
})
legend("topright",col = c("black","red","blue"),c("Sub_metering_1","Sub_metering_2","Sub_metering_3"),lwd = c(1,1,... | /plot3.R | no_license | otakoryu/Exploratry-Data-Analysis-W1-project | R | false | false | 404 | r | ##Third
with(FinalData,{
plot(Sub_metering_1~dateTime,type = "l",ylab = "Energy sub metering",xlab="")
lines(Sub_metering_2~dateTime,col="red")
lines(Sub_metering_3~dateTime,col="blue")
})
legend("topright",col = c("black","red","blue"),c("Sub_metering_1","Sub_metering_2","Sub_metering_3"),lwd = c(1,1,... |
KLIEP_compute_score <- function(phi, alpha) {
mean(log(phi %*% alpha))
}
| /densratio/R/KLIEP_compute_score.R | no_license | ingted/R-Examples | R | false | false | 75 | r | KLIEP_compute_score <- function(phi, alpha) {
mean(log(phi %*% alpha))
}
|
#' Function to retrieve list of countries,
#' available at Market Access DB
getmadbcountries <- function(url = "http://madb.europa.eu/madb/euTariffs.htm") {
force(url)
r <- httr::content(httr::GET(url))
df <- do.call("rbind",
XML::xpathApply(r,
"//form[@name='theform']//o... | /R/madb.R | no_license | malexan/fclhs | R | false | false | 2,300 | r | #' Function to retrieve list of countries,
#' available at Market Access DB
getmadbcountries <- function(url = "http://madb.europa.eu/madb/euTariffs.htm") {
force(url)
r <- httr::content(httr::GET(url))
df <- do.call("rbind",
XML::xpathApply(r,
"//form[@name='theform']//o... |
options(stringsAsFactors = FALSE)
# Libraries
library(fireData)
library(tidyverse)
#functions
source('./functions/secrets.R')
source('./functions/firebase_functions.R')
source('./functions/player_functions.R')
source('./functions/tournament_functions.R')
test_function <- function(){
print('test')
}
| /functions/setup.R | no_license | pmac09/Pong-Stars | R | false | false | 308 | r | options(stringsAsFactors = FALSE)
# Libraries
library(fireData)
library(tidyverse)
#functions
source('./functions/secrets.R')
source('./functions/firebase_functions.R')
source('./functions/player_functions.R')
source('./functions/tournament_functions.R')
test_function <- function(){
print('test')
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc2.R
\name{numeric_to_factor}
\alias{numeric_to_factor}
\title{Numeric to Factor}
\usage{
numeric_to_factor(vx, npercentil = 4)
}
\arguments{
\item{vx}{vector of numeric}
\item{npercentil}{numeric the number of percintil to be splited the... | /man/numeric_to_factor.Rd | no_license | elpidiofilho/labgeo | R | false | true | 409 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc2.R
\name{numeric_to_factor}
\alias{numeric_to_factor}
\title{Numeric to Factor}
\usage{
numeric_to_factor(vx, npercentil = 4)
}
\arguments{
\item{vx}{vector of numeric}
\item{npercentil}{numeric the number of percintil to be splited the... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization_with_simple_tsne.R
\name{visualization_with_simple_tsne}
\alias{visualization_with_simple_tsne}
\title{A simple t-SNE plot.}
\usage{
visualization_with_simple_tsne(expr_data_frame, group, main = "Simple t-SNE",
perplexity = 10... | /man/visualization_with_simple_tsne.Rd | no_license | TanyaZhao/PhosMap | R | false | true | 782 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization_with_simple_tsne.R
\name{visualization_with_simple_tsne}
\alias{visualization_with_simple_tsne}
\title{A simple t-SNE plot.}
\usage{
visualization_with_simple_tsne(expr_data_frame, group, main = "Simple t-SNE",
perplexity = 10... |
\name{rncregpath}
\alias{rncregpath}
\title{Fits regression models with network cohesion effects for a
sequence of cohesion levels.}
\description{Fits models by \code{rncreg} for a sequence of lambda values.
}
\usage{
rncregpath(A,lambdaseq,Y=NULL,X=NULL,dt=NULL,gamma=0.05,
model=c("linear","logistic","cox"), max.... | /man/rncregpath.Rd | no_license | cran/netcoh | R | false | false | 3,875 | rd | \name{rncregpath}
\alias{rncregpath}
\title{Fits regression models with network cohesion effects for a
sequence of cohesion levels.}
\description{Fits models by \code{rncreg} for a sequence of lambda values.
}
\usage{
rncregpath(A,lambdaseq,Y=NULL,X=NULL,dt=NULL,gamma=0.05,
model=c("linear","logistic","cox"), max.... |
library(cmsaf)
### Name: selpoint
### Title: Extract data at a given point.
### Aliases: selpoint
### ** Examples
## Create an example NetCDF file with a similar structure
## as used by CM SAF. The file is created with the ncdf4 package.
## Alternatively example data can be freely downloaded here:
## <https://wui.... | /data/genthat_extracted_code/cmsaf/examples/selpoint.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,401 | r | library(cmsaf)
### Name: selpoint
### Title: Extract data at a given point.
### Aliases: selpoint
### ** Examples
## Create an example NetCDF file with a similar structure
## as used by CM SAF. The file is created with the ncdf4 package.
## Alternatively example data can be freely downloaded here:
## <https://wui.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multi_outcomes.R
\name{plot.summary.augsynth_multiout}
\alias{plot.summary.augsynth_multiout}
\title{Plot function for summary function for augsynth}
\usage{
\method{plot}{summary.augsynth_multiout}(x, ...)
}
\arguments{
\item{x}{summary.augs... | /man/plot.summary.augsynth_multiout.Rd | permissive | speedtriple955/augsynth | R | false | true | 505 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multi_outcomes.R
\name{plot.summary.augsynth_multiout}
\alias{plot.summary.augsynth_multiout}
\title{Plot function for summary function for augsynth}
\usage{
\method{plot}{summary.augsynth_multiout}(x, ...)
}
\arguments{
\item{x}{summary.augs... |
#' @export
setGeneric("bind",
function(object, ...) standardGeneric("bind"))
#' @export
setMethod("bind", signature(object = "Wave"),
function(object, ...){
allobjects <- as.list(list(...))
lapply(allobjects, equalWave, object)
allobjects <- c(list(object), allobjects)
object@left <- unlist(lapply(... | /R/bind.R | no_license | sildeag/tuneR | R | false | false | 738 | r | #' @export
setGeneric("bind",
function(object, ...) standardGeneric("bind"))
#' @export
setMethod("bind", signature(object = "Wave"),
function(object, ...){
allobjects <- as.list(list(...))
lapply(allobjects, equalWave, object)
allobjects <- c(list(object), allobjects)
object@left <- unlist(lapply(... |
############################################
## part 2: bayesian linear regression
############################################
## 2.1 posterior distribution
glinear_fit <- function(Alpha, Beta, data, feature_map, target)
## Alpha: prior precision on theta
## Beta: noise precision
## data: the input varia... | /session_lab1/code-chunks-lab1-bayes.R | no_license | xiangnanyue/bayesian | R | false | false | 7,528 | r | ############################################
## part 2: bayesian linear regression
############################################
## 2.1 posterior distribution
glinear_fit <- function(Alpha, Beta, data, feature_map, target)
## Alpha: prior precision on theta
## Beta: noise precision
## data: the input varia... |
require(data.table)
setwd("~/PyCharm-Workspace/tribunaldb/")
load("base_data.RData")
source("src/R/utils.R")
r2d_fl = "data/model_drift/lda_sym_15/labels.csv"
topics <- fread(r2d_fl, header = FALSE, sep=',', showProgress=TRUE,
col.names = c("case", "match", "relation.offender", "timeslice", "topic"),
colClasses = ... | /src/R/drift_analysis.R | no_license | Joaquimmnetto/tribunal-data | R | false | false | 14,167 | r | require(data.table)
setwd("~/PyCharm-Workspace/tribunaldb/")
load("base_data.RData")
source("src/R/utils.R")
r2d_fl = "data/model_drift/lda_sym_15/labels.csv"
topics <- fread(r2d_fl, header = FALSE, sep=',', showProgress=TRUE,
col.names = c("case", "match", "relation.offender", "timeslice", "topic"),
colClasses = ... |
\name{summary.ml_g_fit}
\alias{summary.ml_g_fit}
\title{
A summary method for objects of class ml_g_fit.
}
\description{
This function provides a compact summary for fitted models.
}
\usage{
\method{summary}{ml_g_fit}(object, dig = 3, ...)
}
\arguments{
\item{object}{
the fitted model.
}
\item{dig}{
an ... | /man/summary.ml_g_fit.Rd | no_license | cran/msme | R | false | false | 1,399 | rd | \name{summary.ml_g_fit}
\alias{summary.ml_g_fit}
\title{
A summary method for objects of class ml_g_fit.
}
\description{
This function provides a compact summary for fitted models.
}
\usage{
\method{summary}{ml_g_fit}(object, dig = 3, ...)
}
\arguments{
\item{object}{
the fitted model.
}
\item{dig}{
an ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Delay}
\alias{Delay}
\title{Delay times on 20 flights from four major air carriers}
\format{A data frame with 80 observations on the following 6 variables.
\describe{
\item{CarrierA}{a numeric vector}
\ite... | /man/Delay.Rd | no_license | lelou6666/BSDA | R | false | true | 751 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Delay}
\alias{Delay}
\title{Delay times on 20 flights from four major air carriers}
\format{A data frame with 80 observations on the following 6 variables.
\describe{
\item{CarrierA}{a numeric vector}
\ite... |
##############################################################################
#
# plot4.R
#
# This program plots draws four separte plots onto a 2x2 display for data
# between the dates of 02-01-2007 and 02-02-2007.
#
##############################################################################
# Set some... | /plot4.R | no_license | pcappa/ExData_Plotting1 | R | false | false | 2,798 | r | ##############################################################################
#
# plot4.R
#
# This program plots draws four separte plots onto a 2x2 display for data
# between the dates of 02-01-2007 and 02-02-2007.
#
##############################################################################
# Set some... |
testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.32584952538347e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06,... | /metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615769509-test.R | permissive | akhikolla/updatedatatype-list3 | R | false | false | 728 | r | testlist <- list(b = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.32584952538347e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06,... |
## R-Script - extracting iterative validation results
## author: Fabian Fassnacht
## mail: fabianewaldfassnacht@gmail.com
## Manuscript: Using Multi-Sensor Data to Derive a Landscape-Level Biomass Map Covering Multiple Vegetation Types
## last changes: 05.04.2020
##
# load packages
require(matrixStats)
require(raster... | /3_prepare_iterative_results.R | no_license | fabianfassnacht/cauquenes | R | false | false | 9,531 | r | ## R-Script - extracting iterative validation results
## author: Fabian Fassnacht
## mail: fabianewaldfassnacht@gmail.com
## Manuscript: Using Multi-Sensor Data to Derive a Landscape-Level Biomass Map Covering Multiple Vegetation Types
## last changes: 05.04.2020
##
# load packages
require(matrixStats)
require(raster... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fetch_wta_tournaments.R
\name{fetch_wta_tournaments}
\alias{fetch_wta_tournaments}
\title{Download Current WTA Calendar}
\usage{
fetch_wta_tournaments(VOID)
}
\description{
This function downloads the WTA calendar
}
| /man/fetch_wta_tournaments.Rd | no_license | skoval/deuce | R | false | true | 294 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fetch_wta_tournaments.R
\name{fetch_wta_tournaments}
\alias{fetch_wta_tournaments}
\title{Download Current WTA Calendar}
\usage{
fetch_wta_tournaments(VOID)
}
\description{
This function downloads the WTA calendar
}
|
#' Single-step/Step-down adjusted p-values
#'
#' Estimate the single-step/step-down adjusted p-values (internal function).
#'
#' @param realvec A vector of observed data.
#' @param permat A matrix of simulated/permuted data, the \code{nrow} of which must be the same as the length of
#' \code{realvec} and the \code{n... | /R/stepdown.R | no_license | wtagr/pppvalue | R | false | false | 1,406 | r | #' Single-step/Step-down adjusted p-values
#'
#' Estimate the single-step/step-down adjusted p-values (internal function).
#'
#' @param realvec A vector of observed data.
#' @param permat A matrix of simulated/permuted data, the \code{nrow} of which must be the same as the length of
#' \code{realvec} and the \code{n... |
\name{fesminima}
\alias{fesminima}
\title{FES minima locator}
}
\description{Function to find minima on free energy surfaces calculated by metadynamics.
The free energy surface is divided by 8x8 grid and minimum is located for each section.
The output is a \code{minima} object.}
\usage{
fesmin... | /man/fesminima.Rd | no_license | sucurz/testing | R | false | false | 761 | rd | \name{fesminima}
\alias{fesminima}
\title{FES minima locator}
}
\description{Function to find minima on free energy surfaces calculated by metadynamics.
The free energy surface is divided by 8x8 grid and minimum is located for each section.
The output is a \code{minima} object.}
\usage{
fesmin... |
# PROBLEMA 1
# Uma pequena companhia vende dois produtos denominados PRODUTO 1 e PRODUTO 2.
# Cada tonelada do produto 1 consome 30 horas de trabalho humano e cada tonelada
# do produto 2 consome 20 horas de trabalho humano.
# O negócio possui um máximo de 2700 horas de trabalho humano para o período.
# Cada tonela... | /examples_solver.R | no_license | marcosjuniorads/SIN5024 | R | false | false | 5,266 | r | # PROBLEMA 1
# Uma pequena companhia vende dois produtos denominados PRODUTO 1 e PRODUTO 2.
# Cada tonelada do produto 1 consome 30 horas de trabalho humano e cada tonelada
# do produto 2 consome 20 horas de trabalho humano.
# O negócio possui um máximo de 2700 horas de trabalho humano para o período.
# Cada tonela... |
library(gurobi)
library(igraph)
####################################### DATA PREPARATION #########################################
set.seed(0017)
# Generate number of queries
m = sample(20:25, 1)
m
# Generate number of times each query is asked
numTimesQueryAsked = vector("numeric", m)
for(i in 1:m) {
numTimesQue... | /ads-optimization.R | no_license | cocassel/ads-optimization | R | false | false | 22,306 | r | library(gurobi)
library(igraph)
####################################### DATA PREPARATION #########################################
set.seed(0017)
# Generate number of queries
m = sample(20:25, 1)
m
# Generate number of times each query is asked
numTimesQueryAsked = vector("numeric", m)
for(i in 1:m) {
numTimesQue... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_component_data_from_NASIS_db.R
\name{get_component_data_from_NASIS_db}
\alias{get_component_data_from_NASIS_db}
\alias{get_component_restrictions_from_NASIS_db}
\title{Get component data from a local NASIS Database}
\usage{
get_component_... | /man/get_component_data_from_NASIS_db.Rd | no_license | Emory-ENVS-SihiLab/soilDB | R | false | true | 1,414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_component_data_from_NASIS_db.R
\name{get_component_data_from_NASIS_db}
\alias{get_component_data_from_NASIS_db}
\alias{get_component_restrictions_from_NASIS_db}
\title{Get component data from a local NASIS Database}
\usage{
get_component_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package.load.R
\name{package.load}
\alias{package.load}
\title{package.load - a function to load (library) all required packages.}
\usage{
See \url{https://sydneycytometry.org.au/spectre} for usage instructions and vignettes.
}
\arguments{
\i... | /man/package.load.Rd | permissive | ImmuneDynamics/Spectre | R | false | true | 902 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package.load.R
\name{package.load}
\alias{package.load}
\title{package.load - a function to load (library) all required packages.}
\usage{
See \url{https://sydneycytometry.org.au/spectre} for usage instructions and vignettes.
}
\arguments{
\i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oceandf-package.R
\docType{package}
\name{oceandf-package}
\alias{oceandf}
\alias{oceandf-package}
\title{oceandf: Read 'ODF' (Ocean Data File) Files}
\description{
Reads 'ODF' (Ocean Data File) file table information
as a data frame and he... | /man/oceandf-package.Rd | permissive | paleolimbot/oceandf | R | false | true | 679 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oceandf-package.R
\docType{package}
\name{oceandf-package}
\alias{oceandf}
\alias{oceandf-package}
\title{oceandf: Read 'ODF' (Ocean Data File) Files}
\description{
Reads 'ODF' (Ocean Data File) file table information
as a data frame and he... |
#This function uses given
#weights and predicts the values
predict <- function(X,Theta1,Theta2){
source("sigmoid.R")
#add interceptor column
m <- dim(X)[1]
oneCol <- matrix(1,nrow=m,ncol=1)
X <- cbind(oneCol,X)
#product of input data and
#transpose of trained parms gives
#hypothesis function h(x) value... | /06 Digit Recognition/Digit recognition_NN/predict.R | no_license | pmspraju/R-Programming-Coursera | R | false | false | 911 | r | #This function uses given
#weights and predicts the values
predict <- function(X,Theta1,Theta2){
source("sigmoid.R")
#add interceptor column
m <- dim(X)[1]
oneCol <- matrix(1,nrow=m,ncol=1)
X <- cbind(oneCol,X)
#product of input data and
#transpose of trained parms gives
#hypothesis function h(x) value... |
# ## This two functions together return the inversion of a square matrix,
# and store the value. If the same matrix is input for the second time,
# the function simply return the stored value instead of another calculation.
# 1.makeCacheMatrix:
# # This function creates a special "matrix" object that can cache its ... | /cachematrix.R | no_license | amodashikagome/ProgrammingAssignment2 | R | false | false | 2,648 | r | # ## This two functions together return the inversion of a square matrix,
# and store the value. If the same matrix is input for the second time,
# the function simply return the stored value instead of another calculation.
# 1.makeCacheMatrix:
# # This function creates a special "matrix" object that can cache its ... |
\name{SingleAnnotation-class}
\docType{class}
\alias{SingleAnnotation-class}
\title{
Class for a Single Annotation
}
\description{
Class for a Single Annotation
}
\details{
The \code{\link{SingleAnnotation-class}} is used for storing data for a single annotation and provides
methods for drawing annotation graphics.
}
\... | /man/SingleAnnotation-class.Rd | permissive | jokergoo/ComplexHeatmap | R | false | false | 883 | rd | \name{SingleAnnotation-class}
\docType{class}
\alias{SingleAnnotation-class}
\title{
Class for a Single Annotation
}
\description{
Class for a Single Annotation
}
\details{
The \code{\link{SingleAnnotation-class}} is used for storing data for a single annotation and provides
methods for drawing annotation graphics.
}
\... |
testlist <- list(alpha = c(-65536L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... | /o2geosocial/inst/testfiles/cpp_find_all_descendents/libFuzzer_cpp_find_all_descendents/cpp_find_all_descendents_valgrind_files/1612732896-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 482 | r | testlist <- list(alpha = c(-65536L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... |
context("Impute values")
library(glider)
test_that("impute_values works with a factor column", {
expect_true("hello" %in% impute_value(iris, impute_col = "Species", condition = iris$Species == 'setosa', replacement = "hello")[["Species"]])
})
| /tests/testthat/test-impute-value.R | no_license | antchau/glider | R | false | false | 248 | r | context("Impute values")
library(glider)
test_that("impute_values works with a factor column", {
expect_true("hello" %in% impute_value(iris, impute_col = "Species", condition = iris$Species == 'setosa', replacement = "hello")[["Species"]])
})
|
# source by server.R
# saved as protein_server.R
# Clear input -------------------------------------------------------------
###add new
observeEvent(c(input$input_protein_set),{
status$protein_result <- FALSE
dataset_number$protein <- 30
input$input_protein_set %>% tibble::tibble(protein=.) %>%
dply... | /serv/protein_server.R | permissive | inambioinfo/GEDS | R | false | false | 13,941 | r | # source by server.R
# saved as protein_server.R
# Clear input -------------------------------------------------------------
###add new
observeEvent(c(input$input_protein_set),{
status$protein_result <- FALSE
dataset_number$protein <- 30
input$input_protein_set %>% tibble::tibble(protein=.) %>%
dply... |
# Developed for the manuscript *Detecting recurrent sources of variability in animal tracking studies* by Virginia Morera-Pujol *et al.* submitted to Ecological Applications in 2021.
### bootstrapColony function ####
# tracks: Tracking data. DF or SPDF, containing Latitude, Longitude, Species and Population
# simulate... | /Functions/bootstrapColony.R | permissive | VirginiaMorera/Tracking_data_analysis | R | false | false | 12,695 | r | # Developed for the manuscript *Detecting recurrent sources of variability in animal tracking studies* by Virginia Morera-Pujol *et al.* submitted to Ecological Applications in 2021.
### bootstrapColony function ####
# tracks: Tracking data. DF or SPDF, containing Latitude, Longitude, Species and Population
# simulate... |
library(rvest)
library(dplyr)
text = function(node) {
html %>%
html_nodes(node) %>%
html_text()
}
| /R/functions/text.R | no_license | Engy-22/SIF_scrape | R | false | false | 125 | r | library(rvest)
library(dplyr)
text = function(node) {
html %>%
html_nodes(node) %>%
html_text()
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mirTritation}
\alias{mirTritation}
\title{Data frame containing mirna from Argyropoulos's paper}
\format{mirna expression data in long format.
Train and test data to use with isoCorrect}
\usage{
mirTritation
}
\des... | /man/mirTritation.Rd | permissive | DrHogart/isomiRs | R | false | true | 496 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mirTritation}
\alias{mirTritation}
\title{Data frame containing mirna from Argyropoulos's paper}
\format{mirna expression data in long format.
Train and test data to use with isoCorrect}
\usage{
mirTritation
}
\des... |
\name{computeConsistencyMatrix}
\alias{computeConsistencyMatrix}
\title{COMPUTE CONSISTENCY MATRIX}
\description{It computes the consistency matrix of a decision table object. A Consistency Matrix object is made of each rule consistency check against the other rules in a Decision Table object. A couple of rules are i... | /man/computeConsistencyMatrix.Rd | no_license | albhasan/RoughSetKnowledgeReduction | R | false | false | 1,309 | rd | \name{computeConsistencyMatrix}
\alias{computeConsistencyMatrix}
\title{COMPUTE CONSISTENCY MATRIX}
\description{It computes the consistency matrix of a decision table object. A Consistency Matrix object is made of each rule consistency check against the other rules in a Decision Table object. A couple of rules are i... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## Here are my comments
makeCacheMatrix <- function(x = matrix()) {
}
## Write a short comment describing this function
cacheSolve <- function(x, ...) {
## Return a matrix t... | /cachematrix.R | no_license | tsyork/ProgrammingAssignment2 | R | false | false | 348 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## Here are my comments
makeCacheMatrix <- function(x = matrix()) {
}
## Write a short comment describing this function
cacheSolve <- function(x, ...) {
## Return a matrix t... |
# Arm's Ease of Movement Index by Josh Ulrich from TTR
#
# chartSeries implementation by Jeffrey A. Ryan 2008
#
# addEMV
`addEMV` <-
function (volume, n = 9, maType, vol.divisor = 10000, ..., on = NA,
legend = "auto")
{
lchob <- get.current.chob()
x <- as.matrix(lchob@xdata)
x <- EMV(HL = HLC(x)[,-3],... | /R/addEMV.R | no_license | chenyuthu/quantmod | R | false | false | 1,670 | r | # Arm's Ease of Movement Index by Josh Ulrich from TTR
#
# chartSeries implementation by Jeffrey A. Ryan 2008
#
# addEMV
`addEMV` <-
function (volume, n = 9, maType, vol.divisor = 10000, ..., on = NA,
legend = "auto")
{
lchob <- get.current.chob()
x <- as.matrix(lchob@xdata)
x <- EMV(HL = HLC(x)[,-3],... |
# TODO: Add comment
#
# Author: zhaos
###############################################################################
library(shiny)
library(googleVis)
library(mailR)
#Texts
WEBTITLE="User in Shiny"
#Files
userFile<-"data/user.csv"
emailFile<-"data/email.txt"
Logged = FALSE
Group=""
userData<-read.csv(userFile,he... | /global.R | no_license | slzhao/userInShiny | R | false | false | 870 | r | # TODO: Add comment
#
# Author: zhaos
###############################################################################
library(shiny)
library(googleVis)
library(mailR)
#Texts
WEBTITLE="User in Shiny"
#Files
userFile<-"data/user.csv"
emailFile<-"data/email.txt"
Logged = FALSE
Group=""
userData<-read.csv(userFile,he... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot-themes.R
\name{theme_lifebrain_dark_grid}
\alias{theme_lifebrain_dark_grid}
\title{ggplot dark theme for lifebrain}
\usage{
theme_lifebrain_dark_grid(base_size = base_size_text)
}
\arguments{
\item{base_size}{text size}
}
\description{... | /man/theme_lifebrain_dark_grid.Rd | permissive | Lifebrain/Lifebrain | R | false | true | 355 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot-themes.R
\name{theme_lifebrain_dark_grid}
\alias{theme_lifebrain_dark_grid}
\title{ggplot dark theme for lifebrain}
\usage{
theme_lifebrain_dark_grid(base_size = base_size_text)
}
\arguments{
\item{base_size}{text size}
}
\description{... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615766242-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
#' @title anchor_regression_gam
#'
#' @description Perform an Generalized Additive Anchor Regression
#'
#' @param x is a dataframe containing the matrix x containing the independent variables
#' @param anchor is a dataframe containing the matrix anchor containing the anchor variable
#' @param gamma is the regularizatio... | /R/anchor_regression_gam.R | permissive | william-denault/AnchorRegression | R | false | false | 3,627 | r | #' @title anchor_regression_gam
#'
#' @description Perform an Generalized Additive Anchor Regression
#'
#' @param x is a dataframe containing the matrix x containing the independent variables
#' @param anchor is a dataframe containing the matrix anchor containing the anchor variable
#' @param gamma is the regularizatio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AdRuleService.R
\name{dfp_createAdRules}
\alias{dfp_createAdRules}
\title{AdRuleService}
\usage{
dfp_createAdRules(request_data, as_df = TRUE, verbose = FALSE)
}
\arguments{
\item{request_data}{a \code{list} or \code{data.frame} of data eleme... | /man/dfp_createAdRules.Rd | no_license | StevenMMortimer/rdfp | R | false | true | 1,134 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AdRuleService.R
\name{dfp_createAdRules}
\alias{dfp_createAdRules}
\title{AdRuleService}
\usage{
dfp_createAdRules(request_data, as_df = TRUE, verbose = FALSE)
}
\arguments{
\item{request_data}{a \code{list} or \code{data.frame} of data eleme... |
#------------------------------------------------------------------------------#
#' Generate raw data from count data
#'
#' Generate raw data from a count table or a count data frame. A count table
#' is a contingency table for only one factor. A count data frame is a data
#' frame consisting of two columns: the first ... | /R/uncount.R | no_license | chgigot/cgmisc | R | false | false | 1,622 | r | #------------------------------------------------------------------------------#
#' Generate raw data from count data
#'
#' Generate raw data from a count table or a count data frame. A count table
#' is a contingency table for only one factor. A count data frame is a data
#' frame consisting of two columns: the first ... |
# This script contains the following parts to get a clear overview:
# Part 1: The basic code provided by Harvard University to build the algorithms on
# Part 2: Observation of the dataset (dimension, best movies, most rated movie, etc)
# Part 3: The recommendation system (the training procedure)
# Part 4: The f... | /MovieLens_Project.R | no_license | Maike-H/Movie-recommendation-system | R | false | false | 9,140 | r |
# This script contains the following parts to get a clear overview:
# Part 1: The basic code provided by Harvard University to build the algorithms on
# Part 2: Observation of the dataset (dimension, best movies, most rated movie, etc)
# Part 3: The recommendation system (the training procedure)
# Part 4: The f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fsx_operations.R
\name{fsx_describe_data_repository_tasks}
\alias{fsx_describe_data_repository_tasks}
\title{Returns the description of specific Amazon FSx for Lustre data
repository tasks, if one or more TaskIds values are provided in the
re... | /cran/paws.storage/man/fsx_describe_data_repository_tasks.Rd | permissive | sanchezvivi/paws | R | false | true | 1,959 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fsx_operations.R
\name{fsx_describe_data_repository_tasks}
\alias{fsx_describe_data_repository_tasks}
\title{Returns the description of specific Amazon FSx for Lustre data
repository tasks, if one or more TaskIds values are provided in the
re... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "heart-statlog")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn = makeLearn... | /models/openml_heart-statlog/classification_class/187b36ce4405c8dd57548e184147dd4b/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 1,476 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "heart-statlog")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn = makeLearn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kdplus.test.R
\name{kdplus.test}
\alias{kdplus.test}
\title{Global test of clustering using difference in K functions}
\usage{
kdplus.test(x)
}
\arguments{
\item{x}{A \code{kdenv} object from the \code{kdest}
function.}
}
\value{
... | /man/kdplus.test.Rd | no_license | cran/smacpod | R | false | true | 1,155 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kdplus.test.R
\name{kdplus.test}
\alias{kdplus.test}
\title{Global test of clustering using difference in K functions}
\usage{
kdplus.test(x)
}
\arguments{
\item{x}{A \code{kdenv} object from the \code{kdest}
function.}
}
\value{
... |
library(tidyverse)
library(caret)
getwd()
list.files()
train_house <- read_csv('../train.csv')
test_house <- read_csv('../test.csv')
train_house <- train_house %>%
mutate(Notes = 'Train')
test_house <- test_house %>%
mutate(Notes = 'Test')
df_full <- train_house %>%
bind_rows(test_house)
df_full <- df_ful... | /House-Prices-Analysis.R | no_license | gundaling/House-Prices | R | false | false | 6,439 | r | library(tidyverse)
library(caret)
getwd()
list.files()
train_house <- read_csv('../train.csv')
test_house <- read_csv('../test.csv')
train_house <- train_house %>%
mutate(Notes = 'Train')
test_house <- test_house %>%
mutate(Notes = 'Test')
df_full <- train_house %>%
bind_rows(test_house)
df_full <- df_ful... |
z.star <- qnorm( 0.995 ); z.star # critical value for 99% confidence
p.hat <- 0.28; p.hat
n <- ((z.star / 0.01)^2) * p.hat * (1 - p.hat); n
| /inst/snippets/Example6.5.R | no_license | stacyderuiter/Lock5withR | R | false | false | 207 | r | z.star <- qnorm( 0.995 ); z.star # critical value for 99% confidence
p.hat <- 0.28; p.hat
n <- ((z.star / 0.01)^2) * p.hat * (1 - p.hat); n
|
library(BTYDplus)
### Name: nbd.ConditionalExpectedTransactions
### Title: NBD Conditional Expected Transactions
### Aliases: nbd.ConditionalExpectedTransactions
### ** Examples
data("groceryElog")
cbs <- elog2cbs(groceryElog, T.cal = "2006-12-31")
params <- nbd.EstimateParameters(cbs)
xstar.est <- nbd.ConditionalE... | /data/genthat_extracted_code/BTYDplus/examples/nbd.ConditionalExpectedTransactions.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 451 | r | library(BTYDplus)
### Name: nbd.ConditionalExpectedTransactions
### Title: NBD Conditional Expected Transactions
### Aliases: nbd.ConditionalExpectedTransactions
### ** Examples
data("groceryElog")
cbs <- elog2cbs(groceryElog, T.cal = "2006-12-31")
params <- nbd.EstimateParameters(cbs)
xstar.est <- nbd.ConditionalE... |
library(ape)
testtree <- read.tree("10268_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10268_1_unrooted.txt") | /codeml_files/newick_trees_processed/10268_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("10268_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10268_1_unrooted.txt") |
#' Calculate the effects of a cascade
#'
#' Iterates through the network removing edges until no edges are over the line limit and the network has stabilised.
#'
#' This is a recursive function that calls itself repeatedly until the cascade has come to a stop and the network has stabilised.
#' The function produces a... | /PowergridNetworking_Alternative/Cascade_compdiff_noloop.R | no_license | JonnoB/Setse_optimisation | R | false | false | 6,744 | r | #' Calculate the effects of a cascade
#'
#' Iterates through the network removing edges until no edges are over the line limit and the network has stabilised.
#'
#' This is a recursive function that calls itself repeatedly until the cascade has come to a stop and the network has stabilised.
#' The function produces a... |
#' @title \code{tidy_lm_bootstrap_permute}
#' @description \code{permute} \code{lm} and output the results as a \code{tidy} table.
#' @author Ekarin Eric Pongpipat
#' @param data a data.frame to be analyzed
#' @param formula a formula to be analyzed as typically written for the \code{lm} function
#' @param n_bootstrap ... | /R/tidy_lm_bootstrap_permute.R | permissive | mychan24/broomExtra | R | false | false | 4,296 | r | #' @title \code{tidy_lm_bootstrap_permute}
#' @description \code{permute} \code{lm} and output the results as a \code{tidy} table.
#' @author Ekarin Eric Pongpipat
#' @param data a data.frame to be analyzed
#' @param formula a formula to be analyzed as typically written for the \code{lm} function
#' @param n_bootstrap ... |
rm(list = ls()) # clearing environment
####--------------- PACKAGES ----
source("Y - Codes/S0a_Packages.R") # loading packages
####--------------- DIRECTORIES ----
source("Y - Codes/S0b_Directories.R") # setting directories
####--------------- FUNCTIONS ----
source("Y - Codes/S0c_Functions.R") # Loading miscellaneous f... | /MScMaster.R | no_license | ErikKusch/M.Sc.-Thesis | R | false | false | 13,864 | r | rm(list = ls()) # clearing environment
####--------------- PACKAGES ----
source("Y - Codes/S0a_Packages.R") # loading packages
####--------------- DIRECTORIES ----
source("Y - Codes/S0b_Directories.R") # setting directories
####--------------- FUNCTIONS ----
source("Y - Codes/S0c_Functions.R") # Loading miscellaneous f... |
# wants: number of cases (rape),
# percent of cases to population (rape / pop * 1000),
# longitude (longitude),
# latitude (latitude)
AssaultMap <- function(assault.data) {
pop.percent <- (assault.data$rape / assault.data$pop) * 1000
g <- list(
scope = 'usa',
projection = list(t... | /scripts/map.R | no_license | anuto/info-201-final | R | false | false | 1,220 | r | # wants: number of cases (rape),
# percent of cases to population (rape / pop * 1000),
# longitude (longitude),
# latitude (latitude)
AssaultMap <- function(assault.data) {
pop.percent <- (assault.data$rape / assault.data$pop) * 1000
g <- list(
scope = 'usa',
projection = list(t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iaibase.R
\name{get_learner}
\alias{get_learner}
\title{Return the fitted learner using the best parameter combination from a grid}
\usage{
get_learner(grid)
}
\arguments{
\item{grid}{The grid to query.}
}
\description{
Julia Equivalent:
\hre... | /man/get_learner.Rd | no_license | cran/iai | R | false | true | 475 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iaibase.R
\name{get_learner}
\alias{get_learner}
\title{Return the fitted learner using the best parameter combination from a grid}
\usage{
get_learner(grid)
}
\arguments{
\item{grid}{The grid to query.}
}
\description{
Julia Equivalent:
\hre... |
# @file FeatureExtraction.R
#
# Copyright 2018 Observational Health Data Sciences and Informatics
#
# This file is part of FeatureExtraction
#
# 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
#... | /R/FeatureExtraction.R | permissive | MaoxueJie/FeatureExtraction | R | false | false | 2,823 | r | # @file FeatureExtraction.R
#
# Copyright 2018 Observational Health Data Sciences and Informatics
#
# This file is part of FeatureExtraction
#
# 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
#... |
#' xpathTextR function
#'
#' Returns xpath text from websites and can be used to access specific HTML nodes
#'
#' @param url The link for the website
#' @param xpath The xpath string derived by using the Inspect functionality in a web browser.
#' @param ssl_needed Default - FALSE - Boolean to indicate whether to need ... | /R/xpathTextR.R | permissive | agem-advanced-analytics/NHSDataDictionaRy-1 | R | false | false | 1,955 | r |
#' xpathTextR function
#'
#' Returns xpath text from websites and can be used to access specific HTML nodes
#'
#' @param url The link for the website
#' @param xpath The xpath string derived by using the Inspect functionality in a web browser.
#' @param ssl_needed Default - FALSE - Boolean to indicate whether to need ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/git.R
\name{git_url_http2ssh}
\alias{git_url_http2ssh}
\title{Switch remote URLs from HTTPS to SSH}
\usage{
git_url_http2ssh(dir = ".")
}
\arguments{
\item{dir}{string of path to git repository directory}
}
\value{
Invisible flag indicating w... | /man/git_url_http2ssh.Rd | permissive | poissonconsulting/tulip | R | false | true | 481 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/git.R
\name{git_url_http2ssh}
\alias{git_url_http2ssh}
\title{Switch remote URLs from HTTPS to SSH}
\usage{
git_url_http2ssh(dir = ".")
}
\arguments{
\item{dir}{string of path to git repository directory}
}
\value{
Invisible flag indicating w... |
readVermishTestFile <- function(dir="/Users/mnaylor/", filename="FTdata_Ver.txt", ending="", seperator=","){
tmp <- file(paste(dir,filename, ending ,sep=""), "rt") ; details = readLines(tmp, 1) ; close(tmp)
header <- read.table( paste(dir,filename, ending, sep=""), skip=1, sep= seperator, nrows=2)
dat... | /R/readFTdatafiles.R | no_license | mark-naylor/FTanalysis | R | false | false | 5,387 | r |
readVermishTestFile <- function(dir="/Users/mnaylor/", filename="FTdata_Ver.txt", ending="", seperator=","){
tmp <- file(paste(dir,filename, ending ,sep=""), "rt") ; details = readLines(tmp, 1) ; close(tmp)
header <- read.table( paste(dir,filename, ending, sep=""), skip=1, sep= seperator, nrows=2)
dat... |
\name{plot.episplineDensity}
\alias{plot.episplineDensity}
\title{
Plot an exponential epi-spline density esimate
}
\description{
Plot a density estimate, plus the original data
}
\usage{
\method{plot}{episplineDensity} (x, \ldots)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\i... | /man/plot.episplineDensity.Rd | no_license | cran/episplineDensity | R | false | false | 649 | rd | \name{plot.episplineDensity}
\alias{plot.episplineDensity}
\title{
Plot an exponential epi-spline density esimate
}
\description{
Plot a density estimate, plus the original data
}
\usage{
\method{plot}{episplineDensity} (x, \ldots)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sffm_fit_simulate_earthquake.R
\name{sffm_simulate}
\alias{sffm_simulate}
\title{Synthetic finite fault model generator}
\usage{
sffm_simulate(reg_par, tg_mat,
sffm_pars = .sffm_default_model_parameters, sub_sample_size = c(1,
1))
}
\argu... | /R/rptha/man/sffm_simulate.Rd | permissive | Carol-Matthews/ptha | R | false | true | 3,349 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sffm_fit_simulate_earthquake.R
\name{sffm_simulate}
\alias{sffm_simulate}
\title{Synthetic finite fault model generator}
\usage{
sffm_simulate(reg_par, tg_mat,
sffm_pars = .sffm_default_model_parameters, sub_sample_size = c(1,
1))
}
\argu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpPredictSpatioTemporal.R
\name{target.and.grad.spatiotemporal}
\alias{target.and.grad.spatiotemporal}
\title{target.and.grad.spatiotemporal function}
\usage{
target.and.grad.spatiotemporal(Gamma, nis, cellarea, rootQeigs, invrootQeigs,
m... | /man/target.and.grad.spatiotemporal.Rd | no_license | goldingn/lgcp | R | false | true | 1,360 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgcpPredictSpatioTemporal.R
\name{target.and.grad.spatiotemporal}
\alias{target.and.grad.spatiotemporal}
\title{target.and.grad.spatiotemporal function}
\usage{
target.and.grad.spatiotemporal(Gamma, nis, cellarea, rootQeigs, invrootQeigs,
m... |
#++++++++++++++++++++++++++++++++++
# rquery.wordcloud() versao inicial retirada:
# - http://www.sthda.com
#+++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++
# Remover acentos
rm_accent <- function(str,pattern="all") {
# Rotinas e funções úteis V 1.0
# rm.accent - REMOVE ACENTOS DE PAL... | /rquery_wordcloud.R | no_license | gomesfellipe/dashboard-text-mining-1 | R | false | false | 8,733 | r | #++++++++++++++++++++++++++++++++++
# rquery.wordcloud() versao inicial retirada:
# - http://www.sthda.com
#+++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++
# Remover acentos
rm_accent <- function(str,pattern="all") {
# Rotinas e funções úteis V 1.0
# rm.accent - REMOVE ACENTOS DE PAL... |
#' @keywords internal
#' @noRd
sounding_wyoming = function(wmo_id,
yy, mm, dd, hh, min = 00,
bufr = FALSE,
allow_failure = TRUE) {
if (allow_failure) {
tryCatch(sounding_wyoming_bp(wmo_id,
y... | /R/sounding_wyoming.R | permissive | bczernecki/thundeR | R | false | false | 3,761 | r | #' @keywords internal
#' @noRd
sounding_wyoming = function(wmo_id,
yy, mm, dd, hh, min = 00,
bufr = FALSE,
allow_failure = TRUE) {
if (allow_failure) {
tryCatch(sounding_wyoming_bp(wmo_id,
y... |
# Script to plot Figure 1: the phylogenetic tree and PGLS regressions
# Last run: 2021.03.27
# Load packages -----------------------------------------------------------
library(tidyverse) # CRAN v1.3.0
library(phylolm) # CRAN v2.6.2
library(ggtext) # [github::wilkelab/ggtext] v0.1.0.9000
library(ggtree) # ... | /R/figure_1_phylogenetic_tree_and_pgls_regressions.R | no_license | paternogbc/ms_redqueen_plant_herbivores_archive | R | false | false | 8,738 | r | # Script to plot Figure 1: the phylogenetic tree and PGLS regressions
# Last run: 2021.03.27
# Load packages -----------------------------------------------------------
library(tidyverse) # CRAN v1.3.0
library(phylolm) # CRAN v2.6.2
library(ggtext) # [github::wilkelab/ggtext] v0.1.0.9000
library(ggtree) # ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.