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 |
|---|---|---|---|---|---|---|---|---|---|
## LOADING IN LIBRARIES
library(topicmodels)
library(tidytext)
library(lsa)
library(tidyr)
library(tidyverse)
library(tm)
library(topicmodels)
library(scales)
########### FUNCTIONS ##############
#### cleaning_function ####
## input: full response data
## output: responses to a single question and uniquely numbered... | /Full LDA Analysis Including Per Question.R | no_license | andreapayne29/Project2 | R | false | false | 9,603 | r | ## LOADING IN LIBRARIES
library(topicmodels)
library(tidytext)
library(lsa)
library(tidyr)
library(tidyverse)
library(tm)
library(topicmodels)
library(scales)
########### FUNCTIONS ##############
#### cleaning_function ####
## input: full response data
## output: responses to a single question and uniquely numbered... |
logit <- data.frame(response=c("What's that?", "I've heard of it", "I can use it or apply it", "I understand it well"), Frequency=c(0,5,13,0))
probit <- data.frame(response=c("What's that?", "I've heard of it", "I can use it or apply it", "I understand it well"), Frequency=c(6,6,6,0))
ml <- data.frame(response=c("What... | /Lab1Slides/surveyplots.R | no_license | danielhyoo/CSSS-POLS-510-MLE | R | false | false | 3,093 | r |
logit <- data.frame(response=c("What's that?", "I've heard of it", "I can use it or apply it", "I understand it well"), Frequency=c(0,5,13,0))
probit <- data.frame(response=c("What's that?", "I've heard of it", "I can use it or apply it", "I understand it well"), Frequency=c(6,6,6,0))
ml <- data.frame(response=c("What... |
VisitExpression <- function(e, Function, Assign, Call, Leaf,
global=FALSE, assign.name=NA) {
Visit <- function(...) {
VisitExpression(Function=Function, Assign=Assign, Call=Call, Leaf=Leaf, ...)
}
if (is.atomic(e) | is.name(e)) {
Leaf(value=e, global=global, assign.name=assign.... | /R/visit.R | no_license | ecos-umons/sourceR | R | false | false | 1,064 | r | VisitExpression <- function(e, Function, Assign, Call, Leaf,
global=FALSE, assign.name=NA) {
Visit <- function(...) {
VisitExpression(Function=Function, Assign=Assign, Call=Call, Leaf=Leaf, ...)
}
if (is.atomic(e) | is.name(e)) {
Leaf(value=e, global=global, assign.name=assign.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_idf.R
\name{get_idf}
\alias{get_idf}
\title{generate IDF dict}
\usage{
get_idf(x, stop_word = STOPPATH, path = NULL)
}
\arguments{
\item{x}{a list of character}
\item{stop_word}{stopword path}
\item{path}{output path}
}
\value{
a data.f... | /jiebaR/man/get_idf.Rd | no_license | akhikolla/InformationHouse | R | false | true | 747 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_idf.R
\name{get_idf}
\alias{get_idf}
\title{generate IDF dict}
\usage{
get_idf(x, stop_word = STOPPATH, path = NULL)
}
\arguments{
\item{x}{a list of character}
\item{stop_word}{stopword path}
\item{path}{output path}
}
\value{
a data.f... |
\name{Kernel}
\Rdversion{1.1}
\alias{Kernel}
\alias{Ker.norm}
\alias{Ker.cos}
\alias{Ker.epa}
\alias{Ker.tri}
\alias{Ker.tri}
\alias{Ker.quar}
\alias{Ker.unif}
%\alias{rkernel}
\title{ Symmetric Smoothing Kernels.}
\description{ Represent symmetric smoothing kernels:: normal, cosine, triweight, quartic... | /man/Kernel.Rd | no_license | dgorbachev/fda.usc | R | false | false | 1,709 | rd | \name{Kernel}
\Rdversion{1.1}
\alias{Kernel}
\alias{Ker.norm}
\alias{Ker.cos}
\alias{Ker.epa}
\alias{Ker.tri}
\alias{Ker.tri}
\alias{Ker.quar}
\alias{Ker.unif}
%\alias{rkernel}
\title{ Symmetric Smoothing Kernels.}
\description{ Represent symmetric smoothing kernels:: normal, cosine, triweight, quartic... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spps_final_estimators.R
\name{estibeta}
\alias{estibeta}
\title{Estimates beta, knowing epsilon and delta.}
\usage{
estibeta(x, a, epsilon, delta, estim.method = "ML", phi = expit,
dphi = dexpit, phiinv = expitinv, maxit = 3)
}
\arguments{
... | /man/estibeta.Rd | no_license | mvaldora/SPPS | R | false | true | 985 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spps_final_estimators.R
\name{estibeta}
\alias{estibeta}
\title{Estimates beta, knowing epsilon and delta.}
\usage{
estibeta(x, a, epsilon, delta, estim.method = "ML", phi = expit,
dphi = dexpit, phiinv = expitinv, maxit = 3)
}
\arguments{
... |
##' Run Batch PDA
##'
##' @title Run Batch PDA
##' @param settings a PEcAn settings list
##'
##' @return Updated settings list
##'
##' @author Ryan Kelly
##' @export
assim.batch <- function(settings) {
# Quit if pda not requested in settings
if (!("assim.batch" %in% names(settings))) {
return(settings)
}
... | /modules/assim.batch/R/pda.utils.R | permissive | Kah5/pecan | R | false | false | 36,731 | r | ##' Run Batch PDA
##'
##' @title Run Batch PDA
##' @param settings a PEcAn settings list
##'
##' @return Updated settings list
##'
##' @author Ryan Kelly
##' @export
assim.batch <- function(settings) {
# Quit if pda not requested in settings
if (!("assim.batch" %in% names(settings))) {
return(settings)
}
... |
wrap_it <- function(x, len){sapply(x, function(y) paste(strwrap(y, len),collapse = "\n"), USE.NAMES = FALSE)}
wrap_labels <- function(x, len){if (is.list(x)){lapply(x, wrap_it, len)} else {wrap_it(x, len)}}
comprss <- function(tx) {
tx[is.na(tx)] <- 0
div <- findInterval(tx, c(1, 1e3, 1e6, 1e9, 1e12))
div[div=... | /0_graphing_functions.R | no_license | Clare2D/PACTA_analysis | R | false | false | 164,224 | r | wrap_it <- function(x, len){sapply(x, function(y) paste(strwrap(y, len),collapse = "\n"), USE.NAMES = FALSE)}
wrap_labels <- function(x, len){if (is.list(x)){lapply(x, wrap_it, len)} else {wrap_it(x, len)}}
comprss <- function(tx) {
tx[is.na(tx)] <- 0
div <- findInterval(tx, c(1, 1e3, 1e6, 1e9, 1e12))
div[div=... |
context("at_intevals: error catching")
test_that("error raised if x is not a data.frame", {
x <- list(ts = 2, x = 1)
expect_error(at_intervals(x, ts = "x"), "is.data.frame\\(x\\) is not TRUE")
})
test_that("error raised if there is not a POSIX or Date", {
x <- tibble::tribble(
~ts, ... | /tests/testthat/test_at_intervals.R | no_license | NickPTaylor/pfatools | R | false | false | 5,263 | r | context("at_intevals: error catching")
test_that("error raised if x is not a data.frame", {
x <- list(ts = 2, x = 1)
expect_error(at_intervals(x, ts = "x"), "is.data.frame\\(x\\) is not TRUE")
})
test_that("error raised if there is not a POSIX or Date", {
x <- tibble::tribble(
~ts, ... |
#' @importFrom Rcpp evalCpp sourceCpp
#' @importFrom utils data
#' @importFrom graphics box layout
#' @importFrom stats median quantile runif
#' @useDynLib LocalControl, .registration = TRUE
#' @name LocalControl
#'
#' @title Local Control
#'
#' @description Implements a non-parametric methodology for correcting bias... | /fuzzedpackages/LocalControl/R/localControl.R | permissive | akhikolla/testpackages | R | false | false | 40,808 | r | #' @importFrom Rcpp evalCpp sourceCpp
#' @importFrom utils data
#' @importFrom graphics box layout
#' @importFrom stats median quantile runif
#' @useDynLib LocalControl, .registration = TRUE
#' @name LocalControl
#'
#' @title Local Control
#'
#' @description Implements a non-parametric methodology for correcting bias... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.register.R
\name{read.register}
\alias{read.register}
\title{read.register}
\usage{
read.register(register.xml, con)
}
\arguments{
\item{register.xml}{path of xml file}
\item{con}{betydb connection}
}
\author{
Betsy Cowdery
}
| /modules/data.atmosphere/man/read.register.Rd | permissive | Kah5/pecan | R | false | true | 310 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.register.R
\name{read.register}
\alias{read.register}
\title{read.register}
\usage{
read.register(register.xml, con)
}
\arguments{
\item{register.xml}{path of xml file}
\item{con}{betydb connection}
}
\author{
Betsy Cowdery
}
|
##################################################
############ Aggregation functions ##############
############ by Jared Looper ##############
############ April 2018 ##############
##################################################
#'
#' Creating a vector of countries names for the data aggretaio... | /R/AggFunctions.R | no_license | andybega/UTDEventData | R | false | false | 8,403 | r | ##################################################
############ Aggregation functions ##############
############ by Jared Looper ##############
############ April 2018 ##############
##################################################
#'
#' Creating a vector of countries names for the data aggretaio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as_mbsts.R
\name{as.mbsts}
\alias{as.mbsts}
\title{Definition and estimation of a Multivariate Bayesian Structural Time Series model (MBSTS)}
\usage{
as.mbsts(
y,
components,
seas.period = NULL,
cycle.period = NULL,
X = N... | /man/as.mbsts.Rd | no_license | cran/CausalMBSTS | R | false | true | 4,661 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as_mbsts.R
\name{as.mbsts}
\alias{as.mbsts}
\title{Definition and estimation of a Multivariate Bayesian Structural Time Series model (MBSTS)}
\usage{
as.mbsts(
y,
components,
seas.period = NULL,
cycle.period = NULL,
X = N... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rmixmod.R
\docType{data}
\name{car}
\alias{car}
\title{Qualitative data: Car Evaluation}
\format{
A data frame with 1728 observations on the following 6 variables.
\describe{
\item{\code{buying}}{the buying price (4 modalities: vhigh, hig... | /man/car.Rd | no_license | cran/Rmixmod | R | false | true | 1,243 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rmixmod.R
\docType{data}
\name{car}
\alias{car}
\title{Qualitative data: Car Evaluation}
\format{
A data frame with 1728 observations on the following 6 variables.
\describe{
\item{\code{buying}}{the buying price (4 modalities: vhigh, hig... |
#' Compares two vectors (portfolios) using stochastic dominance of orders 1 to 4.
#'
#' Given two vectors of portfolio returns this function calls the internal function wtdpapb
#' to report the simple means of four sophisticated measures of stochastic dominance.
#' as explained in Vinod (2008).
#'
#' @param xa {D... | /R/comp_portfo2.R | no_license | cran/generalCorr | R | false | false | 2,082 | r | #' Compares two vectors (portfolios) using stochastic dominance of orders 1 to 4.
#'
#' Given two vectors of portfolio returns this function calls the internal function wtdpapb
#' to report the simple means of four sophisticated measures of stochastic dominance.
#' as explained in Vinod (2008).
#'
#' @param xa {D... |
library("dplyr")
# Get all software from all computers, get unique software names and get CPE id
#
# @param applications.name dataset with all applications
# Example: res <- lookupCPEByApplication(computers.entries$Name)
lookupCPEByApplication <- function(applications.name) {
#applications.name <- computers.entrie... | /matchCPE/lookupCPEByApplication.R | no_license | fjaviermb/PracticaDDS | R | false | false | 595 | r | library("dplyr")
# Get all software from all computers, get unique software names and get CPE id
#
# @param applications.name dataset with all applications
# Example: res <- lookupCPEByApplication(computers.entries$Name)
lookupCPEByApplication <- function(applications.name) {
#applications.name <- computers.entrie... |
c(1e-04, 0.000158489319246111, 0.000251188643150958, 0.000398107170553497,
0.000630957344480193, 0.001, 0.00158489319246111, 0.00251188643150958,
0.00398107170553497, 0.00630957344480193, 0.01, 0.0158489319246111,
0.0251188643150958, 0.0398107170553497, 0.0630957344480194, 0.1,
0.158489319246111, 0.251188643150958,... | /hw3/workspace/2-ada.para.r | no_license | MrGarry2016/data_analyse | R | false | false | 399 | r | c(1e-04, 0.000158489319246111, 0.000251188643150958, 0.000398107170553497,
0.000630957344480193, 0.001, 0.00158489319246111, 0.00251188643150958,
0.00398107170553497, 0.00630957344480193, 0.01, 0.0158489319246111,
0.0251188643150958, 0.0398107170553497, 0.0630957344480194, 0.1,
0.158489319246111, 0.251188643150958,... |
# R
#
# Copyright: 2017-2018, R.J.J.H. van Son and the Netherlands Cancer Institute
# License: GNU GPL v2 or later
# email: r.v.son@nki.nl
#
library(ggplot2)
# A4 size in Inches
OutputWidth <- 11.692;
OutputHeight <- 7.5;
#
filename <- "CorpusChunksArea_plot.pdf"
se <- function(x) sqrt(var(x)/length(x))
ci <- functio... | /data_and_experimental/CorpusChunksArea_plot.R | no_license | robvanson/VowelTriangle | R | false | false | 5,814 | r | # R
#
# Copyright: 2017-2018, R.J.J.H. van Son and the Netherlands Cancer Institute
# License: GNU GPL v2 or later
# email: r.v.son@nki.nl
#
library(ggplot2)
# A4 size in Inches
OutputWidth <- 11.692;
OutputHeight <- 7.5;
#
filename <- "CorpusChunksArea_plot.pdf"
se <- function(x) sqrt(var(x)/length(x))
ci <- functio... |
############################################
############################################
######## Estimating Signaling Games ########
######## Economic Sanctions ########
######## Standard errors ########
############################################
############################################
rm(l... | /standardErrors.R | no_license | ccrismancox/PSRM_signalingGames | R | false | false | 7,436 | r | ############################################
############################################
######## Estimating Signaling Games ########
######## Economic Sanctions ########
######## Standard errors ########
############################################
############################################
rm(l... |
# hey I haven't tested this completely yet
requireInstall <- function(packageName,isBioconductor=F) {
exitVal <- require(packageName,character.only=T)
if ( !exitVal ) {
print(paste0("You don't have ",packageName," accessible, ",
"I'm gonna install it"))
if (isBioconductor) {
source("http://bio... | /src/requireInstall.R | no_license | brandtn/DarachFlowAnalysis | R | false | false | 711 | r |
# hey I haven't tested this completely yet
requireInstall <- function(packageName,isBioconductor=F) {
exitVal <- require(packageName,character.only=T)
if ( !exitVal ) {
print(paste0("You don't have ",packageName," accessible, ",
"I'm gonna install it"))
if (isBioconductor) {
source("http://bio... |
corr <- function(directory, threshold = 0) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'threshold' is a numeric vector of length 1 indicating the
## number of completely observed observations (on all
## variables) required to compute the correlation bet... | /corr.R | no_license | judithbosh/datasciencecoursera | R | false | false | 1,129 | r | corr <- function(directory, threshold = 0) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'threshold' is a numeric vector of length 1 indicating the
## number of completely observed observations (on all
## variables) required to compute the correlation bet... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/creation-ops.R, R/gen-namespace-docs.R,
% R/gen-namespace-examples.R
\name{torch_randn}
\alias{torch_randn}
\title{Randn}
\usage{
torch_randn(
...,
names = NULL,
dtype = NULL,
layout = NULL,
device = NULL,
requires_grad = FALSE
... | /man/torch_randn.Rd | permissive | mlverse/torch | R | false | true | 1,836 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/creation-ops.R, R/gen-namespace-docs.R,
% R/gen-namespace-examples.R
\name{torch_randn}
\alias{torch_randn}
\title{Randn}
\usage{
torch_randn(
...,
names = NULL,
dtype = NULL,
layout = NULL,
device = NULL,
requires_grad = FALSE
... |
\name{getTFclass}
\alias{getTFclass}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Return the ontology in the TFclass database associated with an entrezgene identifier
}
\description{
Return the ontology in the TFclass database associated with an entrezgene identifier.
}
\usage{
getTFclass(dbna... | /man/getTFclass.Rd | no_license | ddiez/rTRM | R | false | false | 474 | rd | \name{getTFclass}
\alias{getTFclass}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Return the ontology in the TFclass database associated with an entrezgene identifier
}
\description{
Return the ontology in the TFclass database associated with an entrezgene identifier.
}
\usage{
getTFclass(dbna... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ul1.R
\docType{data}
\name{ul1}
\alias{ul1}
\title{The following \code{l} vehicle speed \code{ul1} at time \code{t1}.}
\format{The lead vehicle speed at \code{t1} is estimated with the exponential speed function \code{gbm(upre, theta, t1)}.
\... | /man/ul1.Rd | permissive | PJOssenbruggen/Basic | R | false | true | 497 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ul1.R
\docType{data}
\name{ul1}
\alias{ul1}
\title{The following \code{l} vehicle speed \code{ul1} at time \code{t1}.}
\format{The lead vehicle speed at \code{t1} is estimated with the exponential speed function \code{gbm(upre, theta, t1)}.
\... |
library(ape)
testtree <- read.tree("1983_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1983_0_unrooted.txt") | /codeml_files/newick_trees_processed/1983_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("1983_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1983_0_unrooted.txt") |
#MÓDULO IV - SATISFACCIÓN DEL CONSUMIDOR
#En este ejercicio estaremos trabajando con data típica que uno puede extraer del modulo de Support Service
#de un CRM sobre los problemas que se reportan con el producto o servicio
#Y contiene una encuesta de satisfaccion tanto para el producto como para el servicio brindado po... | /Customer Analytics/CA_ModuloIV_PracticaCRM/Modulo4_Practica_CRMCSAT_ValdiviaValdivia.R | no_license | saulo-valdivia-v/BigDataAndAnalytics | R | false | false | 9,012 | r | #MÓDULO IV - SATISFACCIÓN DEL CONSUMIDOR
#En este ejercicio estaremos trabajando con data típica que uno puede extraer del modulo de Support Service
#de un CRM sobre los problemas que se reportan con el producto o servicio
#Y contiene una encuesta de satisfaccion tanto para el producto como para el servicio brindado po... |
library(dplyr)
library(lubridate)
library(xgboost)
library(pROC)
##' adds NA to value if there is no signal for a particular day
##'
##' @param df data frame with columns time_value, value, data_source, signal, geo_value
##' @return inputted dataframe with added rows for the dates that are missing, with NA for value
... | /helpers.r | no_license | cmu-delphi/covid-19-hotspots | R | false | false | 52,904 | r | library(dplyr)
library(lubridate)
library(xgboost)
library(pROC)
##' adds NA to value if there is no signal for a particular day
##'
##' @param df data frame with columns time_value, value, data_source, signal, geo_value
##' @return inputted dataframe with added rows for the dates that are missing, with NA for value
... |
##' Get basic data on all offices
##'
##' This function is essentially a wrapper around Office.getOfficesByLevel().
##' @usage getOffices()
##' @return A data frame with a row for each office and columns with the following variables describing the office:\cr offices.office*.officeId,\cr offices.office*.officeTypeId,\c... | /R/getOffices.R | no_license | decktools/pvsR | R | false | false | 1,194 | r | ##' Get basic data on all offices
##'
##' This function is essentially a wrapper around Office.getOfficesByLevel().
##' @usage getOffices()
##' @return A data frame with a row for each office and columns with the following variables describing the office:\cr offices.office*.officeId,\cr offices.office*.officeTypeId,\c... |
ensemble = function(ml,
x,y,xnew,
nfolds=5,
weights=FALSE,
quiet=TRUE) {
# Matrix to store the cross-validated predictions
fit_cv = matrix(NA,nrow(x),length(ml))
colnames(fit_cv) = sprintf("Method%s",seq(1:length(ml)))
for (i in 1... | /ensemble_method/ensemble.R | no_license | marccgrau/dml_est_general | R | false | false | 3,528 | r |
ensemble = function(ml,
x,y,xnew,
nfolds=5,
weights=FALSE,
quiet=TRUE) {
# Matrix to store the cross-validated predictions
fit_cv = matrix(NA,nrow(x),length(ml))
colnames(fit_cv) = sprintf("Method%s",seq(1:length(ml)))
for (i in 1... |
#' Check (and Improve) Results of Package Synth
#'
#' \code{improveSynth} checks the results of \code{synth}
#' for feasibility and optimality and tries to find a better solution.
#'
#' Performing SCM means solving a nested optimization problem. Depending on
#' the validity of the results of the inner optimizatio... | /R/improveSynth.r | no_license | cran/MSCMT | R | false | false | 12,253 | r | #' Check (and Improve) Results of Package Synth
#'
#' \code{improveSynth} checks the results of \code{synth}
#' for feasibility and optimality and tries to find a better solution.
#'
#' Performing SCM means solving a nested optimization problem. Depending on
#' the validity of the results of the inner optimizatio... |
#' odczytuje rok z liczby miesięcy wyrażonej liczbą
#' @param okres liczba miesięcy wyrażona liczbą
#' @return numeric rok
#' @seealso data2okres
#' @export
okres2rok = function(okres){
tmp = okres %% 12
return(floor(okres / 12) - ifelse(tmp == 0, 1, 0))
} | /R/okres2rok.R | no_license | tzoltak/MLAKdane | R | false | false | 266 | r | #' odczytuje rok z liczby miesięcy wyrażonej liczbą
#' @param okres liczba miesięcy wyrażona liczbą
#' @return numeric rok
#' @seealso data2okres
#' @export
okres2rok = function(okres){
tmp = okres %% 12
return(floor(okres / 12) - ifelse(tmp == 0, 1, 0))
} |
corr <- function(directory, threshold = 0){
## 'directory' is a character vector of length 1 indicating the location of
## the CSV files.
## 'threshold' is a numeric vector of length 1 indicating the number of completely
## observations required to compute the correlation between sulfate and nitrate;
## defa... | /specdata/corr.R | no_license | Dora-dongying/ProgrammingAssignment1 | R | false | false | 1,401 | r | corr <- function(directory, threshold = 0){
## 'directory' is a character vector of length 1 indicating the location of
## the CSV files.
## 'threshold' is a numeric vector of length 1 indicating the number of completely
## observations required to compute the correlation between sulfate and nitrate;
## defa... |
core_message = function(cores) {
if(cores == 1L) {
message("Using 1 core. Your machine has ", parallel::detectCores(), " available.")
} else {
message("Using ", cores, " cores. Your machine has ", parallel::detectCores(), " cores available.")
}
}
#' @title Fit a unimodal or multimodal gambin mo... | /R/fit_gambin.R | no_license | cran/gambin | R | false | false | 6,745 | r | core_message = function(cores) {
if(cores == 1L) {
message("Using 1 core. Your machine has ", parallel::detectCores(), " available.")
} else {
message("Using ", cores, " cores. Your machine has ", parallel::detectCores(), " cores available.")
}
}
#' @title Fit a unimodal or multimodal gambin mo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redup.R
\name{redup}
\alias{redup}
\title{Remove redundant metabolic subpathways}
\usage{
redup(spw)
}
\arguments{
\item{spw}{list of metabolic subpathway}
}
\value{
A list.
}
\description{
Determine if the package is loaded. If the package i... | /man/redup.Rd | permissive | hanjunwei-lab/crmSubpathway | R | false | true | 388 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redup.R
\name{redup}
\alias{redup}
\title{Remove redundant metabolic subpathways}
\usage{
redup(spw)
}
\arguments{
\item{spw}{list of metabolic subpathway}
}
\value{
A list.
}
\description{
Determine if the package is loaded. If the package i... |
#'
#' score.sentiment() implements a very simple algorithm to estimate
#' sentiment, assigning a integer score by subtracting the number
#' of occurrences of negative words from that of positive words.
#'
#' @param sentences vector of text to score
#' @param pos.words vector of words of postive sentiment
#' @param n... | /fianl project/sentiment.R | no_license | huangkun101230/BA-project | R | false | false | 2,041 | r | #'
#' score.sentiment() implements a very simple algorithm to estimate
#' sentiment, assigning a integer score by subtracting the number
#' of occurrences of negative words from that of positive words.
#'
#' @param sentences vector of text to score
#' @param pos.words vector of words of postive sentiment
#' @param n... |
#
#
#
library('caret')
library('pROC')
source('../functions.r')
# 1) SPECIFY THE DATA FOLDER (WITH THE dataset.rds FILE PRODUCED BY ONE OF Code/preprocessing/extract_*.r SCRIPTS)
datafolder <- 'cz2secmeta'
dataset <- readRDS(paste('../../Data/', datafolder, '/dataset.rds', sep=''))
# 5) PRODUCE AN OBJECT classifier... | /Code/models/sub14_cz2secmeta_bayesglm.r | no_license | KnightofDawn/Kaggle-BCI-Challenge | R | false | false | 881 | r | #
#
#
library('caret')
library('pROC')
source('../functions.r')
# 1) SPECIFY THE DATA FOLDER (WITH THE dataset.rds FILE PRODUCED BY ONE OF Code/preprocessing/extract_*.r SCRIPTS)
datafolder <- 'cz2secmeta'
dataset <- readRDS(paste('../../Data/', datafolder, '/dataset.rds', sep=''))
# 5) PRODUCE AN OBJECT classifier... |
#! /usr/bin/env Rscript
question <- commandArgs(TRUE)[1]
model <- commandArgs(TRUE)[2]
source("rfsrc/factor.R")
source("score.R")
source("imputation.R")
source(paste(model, "/train_", question, ".R", sep=""))
dtrain <- read.csv("data/data_train.csv")
dtest <- read.csv("data/data_test.csv")
if (model=="rfsrc")
{
dtr... | /test.R | permissive | SiuTo/DreamPC | R | false | false | 1,155 | r | #! /usr/bin/env Rscript
question <- commandArgs(TRUE)[1]
model <- commandArgs(TRUE)[2]
source("rfsrc/factor.R")
source("score.R")
source("imputation.R")
source(paste(model, "/train_", question, ".R", sep=""))
dtrain <- read.csv("data/data_train.csv")
dtest <- read.csv("data/data_test.csv")
if (model=="rfsrc")
{
dtr... |
onlinemeas <- function(data, t1, t2, S=1.5, pl=FALSE, skip=0,
iobs=1, ind.vec=c(1,3,4,5), mu=0.1, kappa=0.125,
boot.R=99, boot.l=10, tsboot.sim="geom",
method="uwerr", fit.routine="optim", nrep,
oldnorm = FALSE) {
if(missin... | /R/onlinemeas.R | no_license | annube/hadron | R | false | false | 11,308 | r | onlinemeas <- function(data, t1, t2, S=1.5, pl=FALSE, skip=0,
iobs=1, ind.vec=c(1,3,4,5), mu=0.1, kappa=0.125,
boot.R=99, boot.l=10, tsboot.sim="geom",
method="uwerr", fit.routine="optim", nrep,
oldnorm = FALSE) {
if(missin... |
#' @title Creates a state button showing different icons
#'
#' @description Creates a state button showing different states by different
#' icons.
#'
#' @param id id of the element
#' @param states character of possible states, must be valid FontAwesome icon
#' names \code{\link[shiny:icon]{icon}}
#' @param value optio... | /R/icon_state_button.R | no_license | mmoisse/dqshiny | R | false | false | 3,055 | r | #' @title Creates a state button showing different icons
#'
#' @description Creates a state button showing different states by different
#' icons.
#'
#' @param id id of the element
#' @param states character of possible states, must be valid FontAwesome icon
#' names \code{\link[shiny:icon]{icon}}
#' @param value optio... |
library(dplyr)
library(ggplot2)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
emissions_by_year <- NEI %>%
filter(fips == "24510" & type == "ON-ROAD") %>%
group_by(year) %>%
summarize(total_emissions = sum(Emissions))
emissions_by_year$year <- as.factor(emissions_by_yea... | /plot5.R | no_license | pratik0210/Exploratory-Analysis | R | false | false | 570 | r | library(dplyr)
library(ggplot2)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
emissions_by_year <- NEI %>%
filter(fips == "24510" & type == "ON-ROAD") %>%
group_by(year) %>%
summarize(total_emissions = sum(Emissions))
emissions_by_year$year <- as.factor(emissions_by_yea... |
log_event_tables <- c(
"redcap_log_event",
"redcap_log_event2",
"redcap_log_event3",
"redcap_log_event4",
"redcap_log_event5",
"redcap_log_event6",
"redcap_log_event7",
"redcap_log_event8",
"redcap_log_event9"
)
# write the test data
usethis::use_data(log_event_tables, overwrite = T)
| /data-raw/redcap_log_event.R | permissive | ctsit/redcapcustodian | R | false | false | 304 | r | log_event_tables <- c(
"redcap_log_event",
"redcap_log_event2",
"redcap_log_event3",
"redcap_log_event4",
"redcap_log_event5",
"redcap_log_event6",
"redcap_log_event7",
"redcap_log_event8",
"redcap_log_event9"
)
# write the test data
usethis::use_data(log_event_tables, overwrite = T)
|
## This function is a simplified REML version of brownie.lite()
## written by Liam J. Revell 2011, 2013, 2019
brownieREML<-function(tree,x,maxit=2000,...){
if(!inherits(tree,"phylo")) stop("tree should be an object of class \"phylo\".")
if(!inherits(tree,"simmap")) tree<-paintSubTree(tree,Ntip(tree)+1,"1")
## optio... | /R/brownieREML.R | no_license | phamasaur/phytools | R | false | false | 3,205 | r | ## This function is a simplified REML version of brownie.lite()
## written by Liam J. Revell 2011, 2013, 2019
brownieREML<-function(tree,x,maxit=2000,...){
if(!inherits(tree,"phylo")) stop("tree should be an object of class \"phylo\".")
if(!inherits(tree,"simmap")) tree<-paintSubTree(tree,Ntip(tree)+1,"1")
## optio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/view.R
\name{view}
\alias{view}
\alias{stview}
\title{view}
\usage{
view(x, method = "viewer", file = "", append = FALSE,
report.title = NA, table.classes = NA,
bootstrap.css = st_options("bootstrap.css"),
custom.css = st_options("cus... | /man/view.Rd | no_license | fquezadae/summarytools | R | false | true | 4,028 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/view.R
\name{view}
\alias{view}
\alias{stview}
\title{view}
\usage{
view(x, method = "viewer", file = "", append = FALSE,
report.title = NA, table.classes = NA,
bootstrap.css = st_options("bootstrap.css"),
custom.css = st_options("cus... |
library(data.table)
library(dplyr)
setwd("~/Desktop/23andMe_pneumonia/FINAL_IVW_meta_analysis/")
CHR_hg19_23andMe <- fread("INPUT_META/Common_variant_meta_input/23andMe_PNEUMONIA_common_var.tab.txt", header = T)
CHR_hg19_23andMe <- CHR_hg19_23andMe %>% select(assay.name, scaffold, position, OTHER_ALLELE, EFFECT_ALL... | /GWAS_meta/Annotating.R | no_license | Williamreay/Pneumonia_meta_GWAS | R | false | false | 3,321 | r | library(data.table)
library(dplyr)
setwd("~/Desktop/23andMe_pneumonia/FINAL_IVW_meta_analysis/")
CHR_hg19_23andMe <- fread("INPUT_META/Common_variant_meta_input/23andMe_PNEUMONIA_common_var.tab.txt", header = T)
CHR_hg19_23andMe <- CHR_hg19_23andMe %>% select(assay.name, scaffold, position, OTHER_ALLELE, EFFECT_ALL... |
\name{strum}
\alias{strum}
\title{
STRUctural Modeling of Latent Variables for Family Data
}
\description{
Main function to run strum analysis and return the result as a (list of) strumFittedModel.
}
\usage{
strum(myStrumModel,
myStrumData,
step1OptimControl = list(maxit=5500, fnscale=-10),
... | /man/strum.Rd | no_license | cran/strum | R | false | false | 3,343 | rd | \name{strum}
\alias{strum}
\title{
STRUctural Modeling of Latent Variables for Family Data
}
\description{
Main function to run strum analysis and return the result as a (list of) strumFittedModel.
}
\usage{
strum(myStrumModel,
myStrumData,
step1OptimControl = list(maxit=5500, fnscale=-10),
... |
# retrieve properties
v <- validator(turnover > 0, staff.costs>0)
# number of rules in v:
length(v)
# per-rule
created(v)
origin(v)
names(v)
# set properties
names(v)[1] <- "p1"
label(v)[1] <- "turnover positive"
description(v)[1] <- "
According to the official definition,
only positive values can be considered
va... | /examples/properties.R | no_license | data-cleaning/validate | R | false | false | 419 | r |
# retrieve properties
v <- validator(turnover > 0, staff.costs>0)
# number of rules in v:
length(v)
# per-rule
created(v)
origin(v)
names(v)
# set properties
names(v)[1] <- "p1"
label(v)[1] <- "turnover positive"
description(v)[1] <- "
According to the official definition,
only positive values can be considered
va... |
#' @export
#' @name download_pkgs
#' @title Download Packages to Disk
#' @description Download the latest version of `pkgs` by `as_of_date` to disk.
#' Could take a while to run if input `pkgs` contains multiple packages.
#' @author Haoen Cui
#'
#' @importFrom utils download.file untar
#'
#' @inheritParams get_pkg_... | /R/download_pkgs.R | permissive | Haoen-Cui/SOA-Exam-PA-R-Package-Documentation | R | false | false | 3,816 | r | #' @export
#' @name download_pkgs
#' @title Download Packages to Disk
#' @description Download the latest version of `pkgs` by `as_of_date` to disk.
#' Could take a while to run if input `pkgs` contains multiple packages.
#' @author Haoen Cui
#'
#' @importFrom utils download.file untar
#'
#' @inheritParams get_pkg_... |
##########
# This script was written (Saturday, 17 October 2015) for Savvas to parse sequence and read quality information
# downloaded from the RTSF "Finch" server.
# ***Make sure that you open this script from the directory where you saved your sequence files.***
# Directions:
# 1. Log in to the Finch site and sele... | /fasta_and_Qscores_to_fastq.R | no_license | willpitchers/my_scripts | R | false | false | 2,434 | r | ##########
# This script was written (Saturday, 17 October 2015) for Savvas to parse sequence and read quality information
# downloaded from the RTSF "Finch" server.
# ***Make sure that you open this script from the directory where you saved your sequence files.***
# Directions:
# 1. Log in to the Finch site and sele... |
#!/usr/bin/env R
#----
# Setup environment
#----
options(width=200)
library(data.table)
library(RSQLite)
# Define functions
shorten_text <- function(text, length=50) {
words <- strsplit(text, split=" ")
for (i in 1:length(words)) {
word <- words[[i]]
if(sum(nchar(word)) <= length | any(is.na(nchar(word)))) {... | /scripts/a004_parse_gwas_catalog.R | no_license | PaulTimmers/NCOMMS-20-00614 | R | false | false | 25,581 | r | #!/usr/bin/env R
#----
# Setup environment
#----
options(width=200)
library(data.table)
library(RSQLite)
# Define functions
shorten_text <- function(text, length=50) {
words <- strsplit(text, split=" ")
for (i in 1:length(words)) {
word <- words[[i]]
if(sum(nchar(word)) <= length | any(is.na(nchar(word)))) {... |
# This script anonymizes the data
library(osfr)
osfr::osf_auth()
if(!dir.exists("data")){
dir.create("data")
}
filelist <- osf_retrieve_file("86qvh") %>% osf_download(path = "data", conflicts = "overwrite")
fn <- filelist[1,]$local_path
raw <- haven::read_sav(fn, encoding = "UTF-8")
anonymized <- raw %>% sele... | /anonymize_data.R | no_license | Sumidu/privacy-perceptions-health-recommender | R | false | false | 442 | r | # This script anonymizes the data
library(osfr)
osfr::osf_auth()
if(!dir.exists("data")){
dir.create("data")
}
filelist <- osf_retrieve_file("86qvh") %>% osf_download(path = "data", conflicts = "overwrite")
fn <- filelist[1,]$local_path
raw <- haven::read_sav(fn, encoding = "UTF-8")
anonymized <- raw %>% sele... |
library(FeaLect)
### Name: input.check.FeaLect
### Title: Checks the inputs to Fealect() function.
### Aliases: input.check.FeaLect
### Keywords: regression multivariate classif models error misc debugging
### ** Examples
library(FeaLect)
data(mcl_sll)
F <- as.matrix(mcl_sll[ ,-1]) # The Feature matrix
L <- as.nume... | /data/genthat_extracted_code/FeaLect/examples/input.check.FeaLect.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 459 | r | library(FeaLect)
### Name: input.check.FeaLect
### Title: Checks the inputs to Fealect() function.
### Aliases: input.check.FeaLect
### Keywords: regression multivariate classif models error misc debugging
### ** Examples
library(FeaLect)
data(mcl_sll)
F <- as.matrix(mcl_sll[ ,-1]) # The Feature matrix
L <- as.nume... |
testlist <- list(b = c(-1667454803L, -1667457892L, 67964173L, 67964173L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613106894-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 155 | r | testlist <- list(b = c(-1667454803L, -1667457892L, 67964173L, 67964173L, -1835887972L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{nmr_identified_fdata}
\alias{nmr_identified_fdata}
\title{NMR (Nuclear Magnetic Resonance) Sample Metadata (f_data)}
\format{
A data.frame with 41 rows (samples) and 5 columns (sample identifier
and condition):
\describe{
\it... | /man/nmr_identified_fdata.Rd | no_license | pmartR/pmartRdata | R | false | true | 1,106 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{nmr_identified_fdata}
\alias{nmr_identified_fdata}
\title{NMR (Nuclear Magnetic Resonance) Sample Metadata (f_data)}
\format{
A data.frame with 41 rows (samples) and 5 columns (sample identifier
and condition):
\describe{
\it... |
## Load libraries
library(parallel)
mc.cores = 8
options(mc.cores = mc.cores)
## Load source
source("./src/dlm.R")
source("./src/functions.R")
## Sampling parameters
n.chains = 8
n.burnin = 25000
n.samples = 25000
n.blocks = 10
n.thin = 1
## Output parameters
output.dir = "output"
base.name = "samples-rcp45"
... | /src/sampling-rcp45.R | permissive | phil-sansom/ebm-gmst-projection | R | false | false | 5,428 | r | ## Load libraries
library(parallel)
mc.cores = 8
options(mc.cores = mc.cores)
## Load source
source("./src/dlm.R")
source("./src/functions.R")
## Sampling parameters
n.chains = 8
n.burnin = 25000
n.samples = 25000
n.blocks = 10
n.thin = 1
## Output parameters
output.dir = "output"
base.name = "samples-rcp45"
... |
setwd( Sys.getenv( "RWD" ) )
machine_specific_replacements <-
list(
# replace the folder path on macnix
c( 'path.expand( \"~\" ) , \"NHTS\"' , paste0( '"' , getwd() , '"' ) ) ,
# change other things in the script to be run
c( "hello" , "howdy" )
)
source( lodown::syntaxtractor( "nhts" , replaceme... | /nhts-setup.R | no_license | MonetDB/eanthony | R | false | false | 397 | r | setwd( Sys.getenv( "RWD" ) )
machine_specific_replacements <-
list(
# replace the folder path on macnix
c( 'path.expand( \"~\" ) , \"NHTS\"' , paste0( '"' , getwd() , '"' ) ) ,
# change other things in the script to be run
c( "hello" , "howdy" )
)
source( lodown::syntaxtractor( "nhts" , replaceme... |
#K-NN implementation
library(mice) #to impute missing data
library(caTools) #to split data into test and training set
library(class) #to build knn classifier
#setwd(Pick the folder that contains train.csv)
titanic_full = read.csv('train.csv')
#pick the features of interest
titanic = titanic_full[,c(2,3,5,6,7,8,10)]
s... | /Titanic-KNN.R | no_license | venkb/Titanic-KNN | R | false | false | 1,429 | r | #K-NN implementation
library(mice) #to impute missing data
library(caTools) #to split data into test and training set
library(class) #to build knn classifier
#setwd(Pick the folder that contains train.csv)
titanic_full = read.csv('train.csv')
#pick the features of interest
titanic = titanic_full[,c(2,3,5,6,7,8,10)]
s... |
\name{map-ColorMapping-method}
\alias{map,ColorMapping-method}
\alias{map}
\title{
Map values to colors
}
\description{
Map values to colors
}
\usage{
\S4method{map}{ColorMapping}(object, x)
}
\arguments{
\item{object}{a \code{\link{ColorMapping}} object.
}
\item{x}{input values.
}
}
\details{
It maps a... | /man/map-ColorMapping-method.rd | no_license | arturochian/mheatmap | R | false | false | 445 | rd | \name{map-ColorMapping-method}
\alias{map,ColorMapping-method}
\alias{map}
\title{
Map values to colors
}
\description{
Map values to colors
}
\usage{
\S4method{map}{ColorMapping}(object, x)
}
\arguments{
\item{object}{a \code{\link{ColorMapping}} object.
}
\item{x}{input values.
}
}
\details{
It maps a... |
#' Internal dataset wrappers used by NATDB
#'
#' Each of these functions downloads a dataset from a published
#' dataset that (to the best of the authors' knowledge) has been
#' released for public use. Please note that it is *impossible* for
#' NATDB to download a dataset that has not been released to the user;
#' NAT... | /R/downloads.R | no_license | perimyotis/natdb | R | false | false | 71,617 | r | #' Internal dataset wrappers used by NATDB
#'
#' Each of these functions downloads a dataset from a published
#' dataset that (to the best of the authors' knowledge) has been
#' released for public use. Please note that it is *impossible* for
#' NATDB to download a dataset that has not been released to the user;
#' NAT... |
\name{gcMaxLat}
\Rdversion{1.1}
\alias{gcMaxLat}
\title{
Highest latitude on a great circle
}
\description{
What is northern most point that will be reached when following a great circle? Computed with Clairaut's formula. The southern most point is the \code{\link[geosphere]{antipode}} of the northern-mo... | /pkg/geosphere/man/gcMaxLat.Rd | no_license | jmaspons/geosphere | R | false | false | 1,238 | rd | \name{gcMaxLat}
\Rdversion{1.1}
\alias{gcMaxLat}
\title{
Highest latitude on a great circle
}
\description{
What is northern most point that will be reached when following a great circle? Computed with Clairaut's formula. The southern most point is the \code{\link[geosphere]{antipode}} of the northern-mo... |
ASvisualization <- function(ASdb,CalIndex=NULL,txTable=NULL,exon.range=NULL,
snpdata=NULL,snplocus=NULL,methyldata=NULL,methyllocus=NULL,GroupSam=NULL,
ClinicalInfo=NULL,out.dir=NULL){
p.round <- function(p.val.mat){
p.val.mat <- unlist(lapply(p.val.mat,function(each.p){
if (length(... | /R/ASvisualization.R | no_license | hangost/IMAS | R | false | false | 38,526 | r | ASvisualization <- function(ASdb,CalIndex=NULL,txTable=NULL,exon.range=NULL,
snpdata=NULL,snplocus=NULL,methyldata=NULL,methyllocus=NULL,GroupSam=NULL,
ClinicalInfo=NULL,out.dir=NULL){
p.round <- function(p.val.mat){
p.val.mat <- unlist(lapply(p.val.mat,function(each.p){
if (length(... |
library(tidyquery)
data()
iris
query(
" select *
from iris
where Species == 'setosa'
"
)
show_dplyr("select *
from iris
where Species == 'setosa'")
| /tidyquery_SQL_to_R.R | no_license | fayadabbasi/data_science_r_projects | R | false | false | 246 | r | library(tidyquery)
data()
iris
query(
" select *
from iris
where Species == 'setosa'
"
)
show_dplyr("select *
from iris
where Species == 'setosa'")
|
## Read in the data and subset the part we need.
hpc_data <- read.table("household_power_consumption.txt", sep=";", header=TRUE)
dat <- subset(hpc_data, Date == "1/2/2007" | Date == "2/2/2007")
## Open a PNG device.
png(filename="plot4.png", width=480, height=480)
## Format date and time into a new variable.
dat$date... | /plot4.R | no_license | amjcosta/ExData_Plotting1 | R | false | false | 1,879 | r | ## Read in the data and subset the part we need.
hpc_data <- read.table("household_power_consumption.txt", sep=";", header=TRUE)
dat <- subset(hpc_data, Date == "1/2/2007" | Date == "2/2/2007")
## Open a PNG device.
png(filename="plot4.png", width=480, height=480)
## Format date and time into a new variable.
dat$date... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Honda}
\alias{Honda}
\title{Miles per gallon for a Honda Civic on 35 different occasions}
\format{A data frame with 35 observations on the following variable.
\describe{
\item{mileage}{a numeric vector}
}... | /man/Honda.Rd | no_license | johnsonjc6/BSDA | R | false | true | 581 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Honda}
\alias{Honda}
\title{Miles per gallon for a Honda Civic on 35 different occasions}
\format{A data frame with 35 observations on the following variable.
\describe{
\item{mileage}{a numeric vector}
}... |
#' Plot scatterplot between the dependent variables and all the predictors
#' @param variabledf the dataframe containing dependent and independent variables
#' @param y_name charater, the name of the dependent variable
#' @param fittingmethod the method to fit a line, choosing from the 'stat_smooth' in gglot2, can als... | /globalLUR/globalLUR/R/scatterplot.R | no_license | mengluchu/globalLUR | R | false | false | 656 | r | #' Plot scatterplot between the dependent variables and all the predictors
#' @param variabledf the dataframe containing dependent and independent variables
#' @param y_name charater, the name of the dependent variable
#' @param fittingmethod the method to fit a line, choosing from the 'stat_smooth' in gglot2, can als... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ezmmek_calc_std_lm_buffer.R
\name{ezmmek_calc_std_lm_buffer}
\alias{ezmmek_calc_std_lm_buffer}
\title{ezmmek_calc_std_lm_homo}
\usage{
ezmmek_calc_std_lm_buffer(df)
}
\arguments{
\item{df}{Standard curve dataframe}
}
\description{
... | /man/ezmmek_calc_std_lm_buffer.Rd | no_license | cran/ezmmek | R | false | true | 381 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ezmmek_calc_std_lm_buffer.R
\name{ezmmek_calc_std_lm_buffer}
\alias{ezmmek_calc_std_lm_buffer}
\title{ezmmek_calc_std_lm_homo}
\usage{
ezmmek_calc_std_lm_buffer(df)
}
\arguments{
\item{df}{Standard curve dataframe}
}
\description{
... |
1-pnorm((150.5-(450*0.3))/sqrt(450*.3*(1-.3))) | /Introduction_To_Probability_And_Statistics_For_Engineers_And_Scientists_by_Sheldon_M._Ross/CH6/EX6.3.c/Ex6_3c.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 46 | r | 1-pnorm((150.5-(450*0.3))/sqrt(450*.3*(1-.3))) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-CogapsResult.R, R/methods-CogapsResult.R
\docType{methods}
\name{getSampleFactors}
\alias{getSampleFactors}
\alias{getSampleFactors,CogapsResult-method}
\title{return sampleFactors matrix from CogapsResult object}
\usage{
getSampleFacto... | /man/getSampleFactors-methods.Rd | permissive | FertigLab/CoGAPS | R | false | true | 610 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-CogapsResult.R, R/methods-CogapsResult.R
\docType{methods}
\name{getSampleFactors}
\alias{getSampleFactors}
\alias{getSampleFactors,CogapsResult-method}
\title{return sampleFactors matrix from CogapsResult object}
\usage{
getSampleFacto... |
library(effsize)
#spmerged is the file with all of the song data for each individual along with their pair numbers, etc.
setwd("C:/Users/Kira Delmore/Dropbox/Haley and Kira's Comparative Analysis Extravaganza/Cohen and Hedge")
kiraspmerged<-read.csv("individual_colour_data.csv", stringsAsFactors = FALSE, strip.white =... | /pavo/colour hedges with trans.R | no_license | kdelmore/Comparative-Analysis | R | false | false | 4,611 | r |
library(effsize)
#spmerged is the file with all of the song data for each individual along with their pair numbers, etc.
setwd("C:/Users/Kira Delmore/Dropbox/Haley and Kira's Comparative Analysis Extravaganza/Cohen and Hedge")
kiraspmerged<-read.csv("individual_colour_data.csv", stringsAsFactors = FALSE, strip.white =... |
simdata <-
function(n=2000, mymean=rep(0,4), mysigma=matrix(
c(1 , 0.2, 0.1,-0.7,
0.2, 1 , 0.3, 0.1,
0.1, 0.3, 1 , 0.2,
-0.7, 0.1, 0.2, 1), byrow=TRUE, nrow=4, ncol=4),
residsd=1, x2binary=FALSE){
# Returns a simulated dataset. Predictors are drawn from a multivariate
# normal distribution with mean and ... | /R/simdata.R | no_license | cran/CALIBERrfimpute | R | false | false | 1,125 | r | simdata <-
function(n=2000, mymean=rep(0,4), mysigma=matrix(
c(1 , 0.2, 0.1,-0.7,
0.2, 1 , 0.3, 0.1,
0.1, 0.3, 1 , 0.2,
-0.7, 0.1, 0.2, 1), byrow=TRUE, nrow=4, ncol=4),
residsd=1, x2binary=FALSE){
# Returns a simulated dataset. Predictors are drawn from a multivariate
# normal distribution with mean and ... |
library(shiny)
# Define UI for slider demo application
shinyUI(pageWithSidebar(
# Application title
headerPanel(" "),
sidebarPanel(
# This is intentionally an empty object.
h6(textOutput("save.results")),
h5("Experiment zur Gewinnung der Grundstimmung in deutschsprachigen politischen Texten. D... | /Dictionary/Rauh/JITP-Replication-Final/2_Bundestag/ValidationSurvey - Example/ui.R | no_license | msaeltzer/scrape | R | false | false | 1,190 | r | library(shiny)
# Define UI for slider demo application
shinyUI(pageWithSidebar(
# Application title
headerPanel(" "),
sidebarPanel(
# This is intentionally an empty object.
h6(textOutput("save.results")),
h5("Experiment zur Gewinnung der Grundstimmung in deutschsprachigen politischen Texten. D... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.codestar_operations.R
\name{list_team_members}
\alias{list_team_members}
\title{Lists all team members associated with a project}
\usage{
list_team_members(projectId, nextToken = NULL, maxResults = NULL)
}
\arguments{
\item{projectId}{[r... | /service/paws.codestar/man/list_team_members.Rd | permissive | CR-Mercado/paws | R | false | true | 809 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.codestar_operations.R
\name{list_team_members}
\alias{list_team_members}
\title{Lists all team members associated with a project}
\usage{
list_team_members(projectId, nextToken = NULL, maxResults = NULL)
}
\arguments{
\item{projectId}{[r... |
#'
#' Returns individual confidence intervals and simultaneous confidence intervals
#' based on the zero-inflated beta distribution (not bias corrected - see note below).
#'
#' For details see:
#' Stewart, C. (2013) Zero-Inflated Beta Distribution for Modeling the Proportions in
#' Quantitative Fatty Aci... | /R/Confidence_Interval_Beta_Distribution.R | no_license | cran/QFASA | R | false | false | 38,509 | r | #'
#' Returns individual confidence intervals and simultaneous confidence intervals
#' based on the zero-inflated beta distribution (not bias corrected - see note below).
#'
#' For details see:
#' Stewart, C. (2013) Zero-Inflated Beta Distribution for Modeling the Proportions in
#' Quantitative Fatty Aci... |
#############################
# Chris Dowdy March 26 #
# completejourney-exercises #
# Data Visualization #
#############################
library(tidyverse)
library(completejourney)
library(lubridate)
# Question 1: Explore the distribution of quantity. What, if anything, do you find unusual about this vis... | /submissions/02_cj-data-visualization-cjd9cn.R | no_license | GCOM7140/completejourney-exercises | R | false | false | 3,112 | r | #############################
# Chris Dowdy March 26 #
# completejourney-exercises #
# Data Visualization #
#############################
library(tidyverse)
library(completejourney)
library(lubridate)
# Question 1: Explore the distribution of quantity. What, if anything, do you find unusual about this vis... |
#!/home/statsadmin/R/bin/Rscript
source('Step_0_init.R')
args <- commandArgs()
idx <- as.numeric(args[length(args)])
.libPaths('ysidi/lib')
#################
### MICE ####
#################
f.nm <- sprintf('dtwaldmcar10_%d.rds',idx)
dt.miss <- readRDS(file = f.nm)
df_names <- readRDS(file = "df_names.rds")
d... | /Step3_5_mice/wald/step_3_5_type_wald_missing_mcar_percent_10.R | no_license | yuliasidi/Binomial_PE_Progs | R | false | false | 590 | r | #!/home/statsadmin/R/bin/Rscript
source('Step_0_init.R')
args <- commandArgs()
idx <- as.numeric(args[length(args)])
.libPaths('ysidi/lib')
#################
### MICE ####
#################
f.nm <- sprintf('dtwaldmcar10_%d.rds',idx)
dt.miss <- readRDS(file = f.nm)
df_names <- readRDS(file = "df_names.rds")
d... |
#' TrivialSum A Trivial Function
#'
#' This will simply add a few numbers together, which we could do otherwise
#'
#' @param x,y two values to be summed
#' @return the sum of x+y
#' @examples
#' trivialsum(2, 3)
#' @export
trivialsum <- function(x, y){x + y}
| /R/trivialsum.R | no_license | rnaworld/Package1 | R | false | false | 261 | r | #' TrivialSum A Trivial Function
#'
#' This will simply add a few numbers together, which we could do otherwise
#'
#' @param x,y two values to be summed
#' @return the sum of x+y
#' @examples
#' trivialsum(2, 3)
#' @export
trivialsum <- function(x, y){x + y}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monero.R
\name{getTransactionPool}
\alias{getTransactionPool}
\title{getTransactionPool}
\usage{
getTransactionPool(ip = getOption("monerod.ip", "127.0.0.1"),
port = getOption("monerod.port", "18081"))
}
\arguments{
\item{ip}{daemon ip addr... | /man/getTransactionPool.Rd | permissive | cnxtech/moneRo | R | false | true | 3,032 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monero.R
\name{getTransactionPool}
\alias{getTransactionPool}
\title{getTransactionPool}
\usage{
getTransactionPool(ip = getOption("monerod.ip", "127.0.0.1"),
port = getOption("monerod.port", "18081"))
}
\arguments{
\item{ip}{daemon ip addr... |
# cf1 <- read.table(file="./Data/Cf.merged.1.counts", sep="")
# cf2 <- read.table(file="./Data/Cf.merged.2.counts", sep="")
# cm1 <- read.table(file="./Data/Cm.merged.1.counts", sep="")
# cm2 <- read.table(file="./Data/Cm.merged.2.counts", sep="")
# df1 <- read.table(file="./Data/Df.merged.1.counts", sep="")
# df2 <- r... | /p03.R | no_license | dborisog/gsea | R | false | false | 24,069 | r | # cf1 <- read.table(file="./Data/Cf.merged.1.counts", sep="")
# cf2 <- read.table(file="./Data/Cf.merged.2.counts", sep="")
# cm1 <- read.table(file="./Data/Cm.merged.1.counts", sep="")
# cm2 <- read.table(file="./Data/Cm.merged.2.counts", sep="")
# df1 <- read.table(file="./Data/Df.merged.1.counts", sep="")
# df2 <- r... |
# Robert Dinterman
print(paste0("Started 4-USDA_Evaluation_CARBayesST at ", Sys.time()))
# ---- Start --------------------------------------------------------------
# library(dplyr)
# library(gstat)
# library(sp)
# library(spacetime)
# suppressMessages(library(tidyr))
# Create a directory for the data
localDir <- ... | /4-Advanced_Modeling/4-USDA_Evaluation_CARBayesST.R | no_license | yalunsu/test-counties | R | false | false | 3,419 | r | # Robert Dinterman
print(paste0("Started 4-USDA_Evaluation_CARBayesST at ", Sys.time()))
# ---- Start --------------------------------------------------------------
# library(dplyr)
# library(gstat)
# library(sp)
# library(spacetime)
# suppressMessages(library(tidyr))
# Create a directory for the data
localDir <- ... |
setwd("C:/Users/SriPrav/Documents/R/53Santander")
root_directory = "C:/Users/SriPrav/Documents/R/53Santander"
library(data.table)
library(ggplot2)
library(xgboost)
library(Matrix)
# load data
suppressWarnings(data <- fread('./input/train_ver2.csv', nrows = 1000000))
names(data)
head(data)
data[, submission := FALSE]... | /Santander_1/Prav_Santander_Model01_old.R | no_license | PraveenAdepu/kaggle_competitions | R | false | false | 6,483 | r | setwd("C:/Users/SriPrav/Documents/R/53Santander")
root_directory = "C:/Users/SriPrav/Documents/R/53Santander"
library(data.table)
library(ggplot2)
library(xgboost)
library(Matrix)
# load data
suppressWarnings(data <- fread('./input/train_ver2.csv', nrows = 1000000))
names(data)
head(data)
data[, submission := FALSE]... |
#'========================================================================================================================================
#' Project: Global-to-local-GLOBIOM
#' Subject: Code to grid adm information
#' Author: Michiel van Dijk
#' Contact: michiel.vandijk@wur.nl
#'==================================... | /Code/ZMB/Maps/Select_5min_grid.R | no_license | shaohuizhang/Global-to-local-GLOBIOM | R | false | false | 2,309 | r | #'========================================================================================================================================
#' Project: Global-to-local-GLOBIOM
#' Subject: Code to grid adm information
#' Author: Michiel van Dijk
#' Contact: michiel.vandijk@wur.nl
#'==================================... |
#
# An implementation of the OPI that simulates responses using
# Cummulative Gaussian variability with supplied standard deviation.
#
# Author: Andrew Turpin (aturpin@unimelb.edu.au)
# Date: June 2012
#
# Modified 20 Jul 2014: added maxStim argument for cdTodB conversion
#
# Copyright 2012 Andrew Turpin
# This pro... | /OPI/R/simG.r | no_license | ingted/R-Examples | R | false | false | 3,698 | r | #
# An implementation of the OPI that simulates responses using
# Cummulative Gaussian variability with supplied standard deviation.
#
# Author: Andrew Turpin (aturpin@unimelb.edu.au)
# Date: June 2012
#
# Modified 20 Jul 2014: added maxStim argument for cdTodB conversion
#
# Copyright 2012 Andrew Turpin
# This pro... |
##########################################
# http://www.majorbio.com/
# Copyright (C) 2019 in Majorbio workshop
# contact: meng.luo@majorbio.com
##########################################
set.seed(0614)
# require packages
library(ggplot2)
library(scales)
library(gridExtra)
library(RColorBrewer)
col... | /code/04_transcription_Viz_volcano.R | no_license | czheluo/Teach-Bioinformatics-R-dataviz | R | false | false | 3,685 | r | ##########################################
# http://www.majorbio.com/
# Copyright (C) 2019 in Majorbio workshop
# contact: meng.luo@majorbio.com
##########################################
set.seed(0614)
# require packages
library(ggplot2)
library(scales)
library(gridExtra)
library(RColorBrewer)
col... |
\name{xmp11.05}
\alias{xmp11.05}
\non_function{}
\title{data from Example 11.5}
\description{
The \code{xmp11.05} data frame has 20 rows and 3 columns of data from
and experiment on energy consumption of dehumidifiers.
}
\format{
This data frame contains the following columns:
\describe{
\item{power}{
... | /man/xmp11.05.Rd | no_license | cran/Devore5 | R | false | false | 1,696 | rd | \name{xmp11.05}
\alias{xmp11.05}
\non_function{}
\title{data from Example 11.5}
\description{
The \code{xmp11.05} data frame has 20 rows and 3 columns of data from
and experiment on energy consumption of dehumidifiers.
}
\format{
This data frame contains the following columns:
\describe{
\item{power}{
... |
#normality test
NT<-function(data){
outputs<-c()
for(i in 1:ncol(data)){
output<-c()
st<-shapiro.test(data[,i])
output<-c(st$statistic,st$p.value)
outputs<-rbind(outputs,output)
}
colnames(outputs)<-c("shapiro test W","shapiro test p value")
rownames(outputs)<-colnames(data)
write... | /functions.R | no_license | linhongferrari/MetaAnalyses_STARprotocols | R | false | false | 7,533 | r | #normality test
NT<-function(data){
outputs<-c()
for(i in 1:ncol(data)){
output<-c()
st<-shapiro.test(data[,i])
output<-c(st$statistic,st$p.value)
outputs<-rbind(outputs,output)
}
colnames(outputs)<-c("shapiro test W","shapiro test p value")
rownames(outputs)<-colnames(data)
write... |
library(ndl)
### Name: crosstableStatistics
### Title: Calculate statistics for a contingency table
### Aliases: crosstableStatistics
### Keywords: discriminative learning
### ** Examples
ctable <- matrix(c(30, 10, 5, 60), 2, 2)
crosstableStatistics(ctable)
| /data/genthat_extracted_code/ndl/examples/crosstableStatistics.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 265 | r | library(ndl)
### Name: crosstableStatistics
### Title: Calculate statistics for a contingency table
### Aliases: crosstableStatistics
### Keywords: discriminative learning
### ** Examples
ctable <- matrix(c(30, 10, 5, 60), 2, 2)
crosstableStatistics(ctable)
|
library(MASS); library(dplyr);
library(mvtnorm); library(coda)
library(reshape2); library(ggplot2)
sourceCpp("codecpp.cpp")
source('functions.r', echo=F)
# simulate data -----------------------------------------------------------
Y <- 5 # years
S <- 1000 # sites
V <- 50 # number of visits
mu_psi <- -1
beta_psi <- ... | /sample.r | no_license | AlexDiana/FastOccupancy | R | false | false | 5,583 | r | library(MASS); library(dplyr);
library(mvtnorm); library(coda)
library(reshape2); library(ggplot2)
sourceCpp("codecpp.cpp")
source('functions.r', echo=F)
# simulate data -----------------------------------------------------------
Y <- 5 # years
S <- 1000 # sites
V <- 50 # number of visits
mu_psi <- -1
beta_psi <- ... |
library(shiny)
library(stringr)
library(shinyjs)
# Read in our metadata file
Metadata = read.delim(
"Metadata_new.txt",
header = TRUE,
stringsAsFactors = FALSE,
quote = "",
sep = "\t",
na = ""
)
examples = read.delim(
"examples_new.txt",
header = TRUE,
stringsAsFactors = FALSE,
quote = "",
sep = ... | /MicCheck.R | permissive | zwdiscover/MicCheck | R | false | false | 16,184 | r | library(shiny)
library(stringr)
library(shinyjs)
# Read in our metadata file
Metadata = read.delim(
"Metadata_new.txt",
header = TRUE,
stringsAsFactors = FALSE,
quote = "",
sep = "\t",
na = ""
)
examples = read.delim(
"examples_new.txt",
header = TRUE,
stringsAsFactors = FALSE,
quote = "",
sep = ... |
#'
#' Header for all (concatenated) test files
#'
#' Require spatstat.
#' Obtain environment variable controlling tests.
#'
#' $Revision: 1.5 $ $Date: 2020/04/30 05:31:37 $
require(spatstat)
FULLTEST <- (nchar(Sys.getenv("SPATSTAT_TEST", unset="")) > 0)
ALWAYS <- TRUE
cat(paste("--------- Executing",
... | /tests/testsEtoF.R | no_license | rubak/spatstat | R | false | false | 21,752 | r | #'
#' Header for all (concatenated) test files
#'
#' Require spatstat.
#' Obtain environment variable controlling tests.
#'
#' $Revision: 1.5 $ $Date: 2020/04/30 05:31:37 $
require(spatstat)
FULLTEST <- (nchar(Sys.getenv("SPATSTAT_TEST", unset="")) > 0)
ALWAYS <- TRUE
cat(paste("--------- Executing",
... |
library(dslabs)
data("heights")
qnorm(.005)
| /1.R | no_license | arashesfahani/R-learning | R | false | false | 44 | r | library(dslabs)
data("heights")
qnorm(.005)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IMPACT.R
\name{IMPACT.get_top_annotations}
\alias{IMPACT.get_top_annotations}
\title{Get the top annotation(s)}
\usage{
IMPACT.get_top_annotations(
ANNOT_MELT,
snp.filter = "!is.na(IMPACT_score)",
top_annotations = 1,
force_one_annot_... | /man/IMPACT.get_top_annotations.Rd | permissive | UKDRI/echolocatoR | R | false | true | 819 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IMPACT.R
\name{IMPACT.get_top_annotations}
\alias{IMPACT.get_top_annotations}
\title{Get the top annotation(s)}
\usage{
IMPACT.get_top_annotations(
ANNOT_MELT,
snp.filter = "!is.na(IMPACT_score)",
top_annotations = 1,
force_one_annot_... |
#' @title
#' Calculate the dominant height of forest inventory data plots
#' @description
#' This function is used to get a data frame with Dominant height values for each plot
#' in an forest inventory data.
#'
#' @param df A data frame.
#' @param th Quoted name of the total height variable.
#' @param dbh Q... | /R/dom_height.R | permissive | cran/forestmangr | R | false | false | 8,540 | r | #' @title
#' Calculate the dominant height of forest inventory data plots
#' @description
#' This function is used to get a data frame with Dominant height values for each plot
#' in an forest inventory data.
#'
#' @param df A data frame.
#' @param th Quoted name of the total height variable.
#' @param dbh Q... |
testlist <- list(nmod = NULL, id = NULL, score = NULL, rsp = NULL, id = NULL, score = NULL, nbr = NULL, id = NULL, bk_nmod = integer(0), booklet_id = c(1192022832L, -996667132L, 432518541L, 815996035L, 1157267036L, 751417555L, 116882132L, 1085030516L, 1202941484L, 15623892L, -1661386009L, NA, NA, 12... | /dexterMST/inst/testfiles/make_booklets_unsafe/AFL_make_booklets_unsafe/make_booklets_unsafe_valgrind_files/1615943426-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 1,558 | r | testlist <- list(nmod = NULL, id = NULL, score = NULL, rsp = NULL, id = NULL, score = NULL, nbr = NULL, id = NULL, bk_nmod = integer(0), booklet_id = c(1192022832L, -996667132L, 432518541L, 815996035L, 1157267036L, 751417555L, 116882132L, 1085030516L, 1202941484L, 15623892L, -1661386009L, NA, NA, 12... |
#Script heatmap, Biomassa/dia mamíferos parcelas biota dados de 2017
#21.01.2019
#Paula Akkawi - paulakkawi@gmail.com
#Instalando pacote
install.packages("gplots")
library(gplots)
#Definindo diretório
setwd("~/BIOTA-PARCELAS")
#Carregando os dados
da <- read.table("data_all_areas_mammals_biota_heatmap.tx... | /00_scripts/heatmap/script_heatmap_biomass_day_mammals_biota_19_01_d21.R | no_license | galettilab/Plant-life-form-scripts | R | false | false | 1,086 | r | #Script heatmap, Biomassa/dia mamíferos parcelas biota dados de 2017
#21.01.2019
#Paula Akkawi - paulakkawi@gmail.com
#Instalando pacote
install.packages("gplots")
library(gplots)
#Definindo diretório
setwd("~/BIOTA-PARCELAS")
#Carregando os dados
da <- read.table("data_all_areas_mammals_biota_heatmap.tx... |
library(BNPdensity)
### Name: qhalfnorm
### Title: Quantile function half Normal
### Aliases: qhalfnorm
### Keywords: internal
### ** Examples
## The function is currently defined as
function (p, mean = 0, sd = 1)
{
qnorm(p * (1 - pnorm(0, mean, sd)) + pnorm(0, mean, sd),
mean, sd)
}
| /data/genthat_extracted_code/BNPdensity/examples/qhalfnorm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 308 | r | library(BNPdensity)
### Name: qhalfnorm
### Title: Quantile function half Normal
### Aliases: qhalfnorm
### Keywords: internal
### ** Examples
## The function is currently defined as
function (p, mean = 0, sd = 1)
{
qnorm(p * (1 - pnorm(0, mean, sd)) + pnorm(0, mean, sd),
mean, sd)
}
|
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/1615767800-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,802 | 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... |
# Assess model fit
library(coda)
library(dplyr)
library(data.table)
library(ggplot2)
# Load data
# Load dataset
load("clean-data/sapflow/Gc_daily.Rdata")
str(d)
# Make identifying tables
# Numeric species
sp <- d %>%
group_by(species) %>%
summarize(species = unique(species)) %>%
mutate(sp = row_number())
# Con... | /model/03-assess-fit.R | no_license | jessicaguo/riparian-sapflow | R | false | false | 5,038 | r | # Assess model fit
library(coda)
library(dplyr)
library(data.table)
library(ggplot2)
# Load data
# Load dataset
load("clean-data/sapflow/Gc_daily.Rdata")
str(d)
# Make identifying tables
# Numeric species
sp <- d %>%
group_by(species) %>%
summarize(species = unique(species)) %>%
mutate(sp = row_number())
# Con... |
#' Figure out where the mitochondrial reads in a BAM are, so we can grab those.
#'
#' This purely a convenience function, and an incredibly convenient one at that.
#'
#' @param bam BAM (must be indexed!) file(s) or object(s) with a @bam slot
#' @param chrM search pattern for mitochondrial contig ("(rCRS|chr... | /R/scanMT.R | no_license | heoly32/MTseeker | R | false | false | 1,834 | r | #' Figure out where the mitochondrial reads in a BAM are, so we can grab those.
#'
#' This purely a convenience function, and an incredibly convenient one at that.
#'
#' @param bam BAM (must be indexed!) file(s) or object(s) with a @bam slot
#' @param chrM search pattern for mitochondrial contig ("(rCRS|chr... |
test_that("testing trace code", {
set.seed(324313)
model = m2.mini.new(10,serial = F,fixb=T)
# we set the parameters to something simple
model$A1 = seq(0,2,l=model$nf) # setting increasing intercepts
model$B1 = seq(1,2,l=model$nf) # adding complementarity (increasing interactions)
model$Em = seq(0,1,l=mode... | /inst/tests/test-m2-trace.R | permissive | andrealati/rblm | R | false | false | 1,239 | r | test_that("testing trace code", {
set.seed(324313)
model = m2.mini.new(10,serial = F,fixb=T)
# we set the parameters to something simple
model$A1 = seq(0,2,l=model$nf) # setting increasing intercepts
model$B1 = seq(1,2,l=model$nf) # adding complementarity (increasing interactions)
model$Em = seq(0,1,l=mode... |
# Script to load in FP data for both 1.6m SCAN and MUX,
# then match WQ data to FP data
# Authors: Nick Hammond
# Last Updated: 07/02/2021
#### Load Packages ####
#packages needed
library(lubridate)
library(tidyverse)
library(magrittr)
library(gganimate)
library(gifski)
require(transformr)
library(stringr)
librar... | /Scripts/Magic Scripts Archive/Overlaps_2021.R | no_license | CareyLabVT/ManualDownloadsSCCData | R | false | false | 11,733 | r |
# Script to load in FP data for both 1.6m SCAN and MUX,
# then match WQ data to FP data
# Authors: Nick Hammond
# Last Updated: 07/02/2021
#### Load Packages ####
#packages needed
library(lubridate)
library(tidyverse)
library(magrittr)
library(gganimate)
library(gifski)
require(transformr)
library(stringr)
librar... |
library(tidyverse)
source("https://bit.ly/byuisql")
# Establish a connection to a database on our SQL server
connection <- connect("melaleuca")
# Specify a connection to table in the database
# (keep in mind that cust is NOT a data frame or tibble
# but rather still just a connection to the server.
# In other wo... | /example.R | no_license | BYUIDSS/sql_server | R | false | false | 964 | r | library(tidyverse)
source("https://bit.ly/byuisql")
# Establish a connection to a database on our SQL server
connection <- connect("melaleuca")
# Specify a connection to table in the database
# (keep in mind that cust is NOT a data frame or tibble
# but rather still just a connection to the server.
# In other wo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.