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 |
|---|---|---|---|---|---|---|---|---|---|
# Copyright 2010-2014 Meik Michalke <meik.michalke@hhu.de>
#
# This file is part of the R package koRpus.
#
# koRpus is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at yo... | /koRpus/R/01_method_lex.div.R | no_license | ingted/R-Examples | R | false | false | 13,364 | r | # Copyright 2010-2014 Meik Michalke <meik.michalke@hhu.de>
#
# This file is part of the R package koRpus.
#
# koRpus is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at yo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarise_MRMC.R
\name{summarize_MRMC}
\alias{summarize_MRMC}
\title{Summarize the estimates for MRMC case}
\usage{
summarize_MRMC(StanS4class, dig = 3)
}
\arguments{
\item{StanS4class}{An S4 object of class \emph{\code{ \link{stanfitExtended... | /man/summarize_MRMC.Rd | no_license | cran/BayesianFROC | R | false | true | 1,050 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarise_MRMC.R
\name{summarize_MRMC}
\alias{summarize_MRMC}
\title{Summarize the estimates for MRMC case}
\usage{
summarize_MRMC(StanS4class, dig = 3)
}
\arguments{
\item{StanS4class}{An S4 object of class \emph{\code{ \link{stanfitExtended... |
install.packages("hrbrthemes")
library(tidyverse)
library(magrittr)
library(ggplot2)
library(stringr)
library(lubridate)
library(hrbrthemes)
library(ggplot2)
data <- read.csv("C:/Users/Amit/Desktop/MS in Data Science/Sem4/Data Wrangling/Project/NJ Data/Combined_data.csv")
df1 <- data
dim(df1)
#sample of data
head(df... | /final_project.R | no_license | ampatil1996/Data-Wrangling-Project | R | false | false | 14,716 | r | install.packages("hrbrthemes")
library(tidyverse)
library(magrittr)
library(ggplot2)
library(stringr)
library(lubridate)
library(hrbrthemes)
library(ggplot2)
data <- read.csv("C:/Users/Amit/Desktop/MS in Data Science/Sem4/Data Wrangling/Project/NJ Data/Combined_data.csv")
df1 <- data
dim(df1)
#sample of data
head(df... |
testlist <- list(x1 = numeric(0), x2 = c(2.11458097973923e-314, NaN, NaN, NaN, NaN, NaN, 1.1125369334305e-308, -1.40444776422717e+306, 2.12199579047121e-314, 0, 0, 0, 0, 0, 0, 0, -Inf, 0, NaN, NaN, NaN, NaN, NaN, NaN, 1.390671161567e-309, NaN, NaN, 1.20827063056925e-178, 6.60670322097197e-304, 0, 0), y1 = NaN, y2 =... | /palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612969027-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 782 | r | testlist <- list(x1 = numeric(0), x2 = c(2.11458097973923e-314, NaN, NaN, NaN, NaN, NaN, 1.1125369334305e-308, -1.40444776422717e+306, 2.12199579047121e-314, 0, 0, 0, 0, 0, 0, 0, -Inf, 0, NaN, NaN, NaN, NaN, NaN, NaN, 1.390671161567e-309, NaN, NaN, 1.20827063056925e-178, 6.60670322097197e-304, 0, 0), y1 = NaN, y2 =... |
\name{summary.frailtyPenal}
\Rdversion{1.1}
\alias{summary.frailtyPenal}
\alias{print.summary.frailtyPenal}
\title{summary of parameter estimates of a shared frailty model}
\description{
This function returns hazard rations (HR) and its confidence intervals
}
\usage{
\method{summary}{frailtyPenal}(object, level ... | /man/summaryFrailtyPenal.Rd | no_license | MyriamL24/frailtypack | R | false | false | 1,403 | rd |
\name{summary.frailtyPenal}
\Rdversion{1.1}
\alias{summary.frailtyPenal}
\alias{print.summary.frailtyPenal}
\title{summary of parameter estimates of a shared frailty model}
\description{
This function returns hazard rations (HR) and its confidence intervals
}
\usage{
\method{summary}{frailtyPenal}(object, level ... |
if(!require(ggplot2)){
install.packages("ggplot2")
}
library(ggplot2)
make_annotation_graphs <- function (data_input){
input_data <- read.table(data_input, fill = TRUE, sep="\t", header=T, quote="")
input_data$Annotation <- sub(" .*", "", input_data$Annotation)
#input_data <- subset(input_data, !(inp... | /Homer_annotation_plot.R | no_license | tcchenbtx/genomics_tools | R | false | false | 3,148 | r |
if(!require(ggplot2)){
install.packages("ggplot2")
}
library(ggplot2)
make_annotation_graphs <- function (data_input){
input_data <- read.table(data_input, fill = TRUE, sep="\t", header=T, quote="")
input_data$Annotation <- sub(" .*", "", input_data$Annotation)
#input_data <- subset(input_data, !(inp... |
#
# Purpose: To plot Figure 1, time series changepoints for middle Loire River
# Author: Jake Diamond
# Date: January 10, 2020
#
# Set working directory
# setwd("//ly-lhq-srv/jake.diamond/Loire_DO")
setwd("Z:/Loire_DO")
# setwd("C:/Users/jake.diamond/Documents/Backup of Network/Loire_DO")
# Load libraries
library(l... | /Figure1_final_v2.R | no_license | hlowman/Loire_DO | R | false | false | 45,451 | r | #
# Purpose: To plot Figure 1, time series changepoints for middle Loire River
# Author: Jake Diamond
# Date: January 10, 2020
#
# Set working directory
# setwd("//ly-lhq-srv/jake.diamond/Loire_DO")
setwd("Z:/Loire_DO")
# setwd("C:/Users/jake.diamond/Documents/Backup of Network/Loire_DO")
# Load libraries
library(l... |
#' @title Likelihood Functions for Generating OpenBUGS Model File
#' @aliases bugsLikelihood
#' @description Likelihood functions for generating OpenBUGS model file.
#'
#' @param fd A string that specifies the parent distribution.
#' @param sd A string that specifies the sub-family distribution.
#' @return A str... | /cdfquantreg/R/bugsLikelihood.R | no_license | ingted/R-Examples | R | false | false | 6,855 | r | #' @title Likelihood Functions for Generating OpenBUGS Model File
#' @aliases bugsLikelihood
#' @description Likelihood functions for generating OpenBUGS model file.
#'
#' @param fd A string that specifies the parent distribution.
#' @param sd A string that specifies the sub-family distribution.
#' @return A str... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/KDER.R
\name{KDER}
\alias{KDER}
\title{A kernel density estimator using R}
\usage{
KDER(X, h, x)
}
\arguments{
\item{X}{the given set of data of one-dimension}
\item{h}{the bandwidth}
\item{x}{the estimated density function value where you ... | /man/KDER.Rd | no_license | SC19020/SC19020 | R | false | true | 629 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/KDER.R
\name{KDER}
\alias{KDER}
\title{A kernel density estimator using R}
\usage{
KDER(X, h, x)
}
\arguments{
\item{X}{the given set of data of one-dimension}
\item{h}{the bandwidth}
\item{x}{the estimated density function value where you ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploymentmanager_objects.R
\name{ResourceUpdate.warnings}
\alias{ResourceUpdate.warnings}
\title{ResourceUpdate.warnings Object}
\usage{
ResourceUpdate.warnings(ResourceUpdate.warnings.data = NULL)
}
\arguments{
\item{ResourceUpdate.warnings... | /googledeploymentmanagerv2.auto/man/ResourceUpdate.warnings.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 782 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploymentmanager_objects.R
\name{ResourceUpdate.warnings}
\alias{ResourceUpdate.warnings}
\title{ResourceUpdate.warnings Object}
\usage{
ResourceUpdate.warnings(ResourceUpdate.warnings.data = NULL)
}
\arguments{
\item{ResourceUpdate.warnings... |
library(rgdal)
library(rgeos)
library(raster)
setwd("C:/Users/lg1u16/HUMMINGBIRDS/eBird_trends/")
files <- list.files(path = "data/range_maps/Birdlife_polygons/Birdlife_polygons/", pattern = ".dbf")
files <- gsub(".dbf", "", files)
birds <- read.csv("eastern_forest_birds.csv")
birds <- birds$Scientific.Name
for(f i... | /code/process_birdlife_rangemaps.R | no_license | laurajanegraham/eBird_trends | R | false | false | 614 | r | library(rgdal)
library(rgeos)
library(raster)
setwd("C:/Users/lg1u16/HUMMINGBIRDS/eBird_trends/")
files <- list.files(path = "data/range_maps/Birdlife_polygons/Birdlife_polygons/", pattern = ".dbf")
files <- gsub(".dbf", "", files)
birds <- read.csv("eastern_forest_birds.csv")
birds <- birds$Scientific.Name
for(f i... |
intervals.empir <- function(model,level=0.95,type=c("multi","single"),quantiletype=7){
# Calculate empirical PIs
# Arguments checks
type <- match.arg(type,c("multi","single"))
if (!any(class(model)=="smooth")){
stop("Argument model should be of class `smooth'");
}
if (any(level>1) | length(l... | /R/intervals-empir.R | no_license | vishalbelsare/TStools | R | false | false | 1,084 | r | intervals.empir <- function(model,level=0.95,type=c("multi","single"),quantiletype=7){
# Calculate empirical PIs
# Arguments checks
type <- match.arg(type,c("multi","single"))
if (!any(class(model)=="smooth")){
stop("Argument model should be of class `smooth'");
}
if (any(level>1) | length(l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid3d.R
\name{e_grid_3d}
\alias{e_grid_3d}
\title{Grid}
\usage{
e_grid_3d(e, index = 0, ...)
}
\arguments{
\item{e}{An \code{echarts4r} object as returned by \code{\link{e_charts}} or
a proxy as returned by \code{\link{echarts4rProxy}}.}
\... | /man/e_grid_3d.Rd | permissive | Hansz00/echarts4r | R | false | true | 1,299 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid3d.R
\name{e_grid_3d}
\alias{e_grid_3d}
\title{Grid}
\usage{
e_grid_3d(e, index = 0, ...)
}
\arguments{
\item{e}{An \code{echarts4r} object as returned by \code{\link{e_charts}} or
a proxy as returned by \code{\link{echarts4rProxy}}.}
\... |
genescold <- read.table("genes_cold.dat",header=T)
geneshot <- read.table("genes_hot.dat",header=T)
pdf("coldhot_genes.pdf")
boxplot(genescold$TOTAL,geneshot$TOTAL,main="genes Cold-Hot Density BoxPlot", outline=FALSE, names=c("Cold","Hot"))
| /summary_plots/chrom_summary.old/coldhot_genes.R | no_license | stajichlab/coprinopsis_PNAS_2010 | R | false | false | 241 | r | genescold <- read.table("genes_cold.dat",header=T)
geneshot <- read.table("genes_hot.dat",header=T)
pdf("coldhot_genes.pdf")
boxplot(genescold$TOTAL,geneshot$TOTAL,main="genes Cold-Hot Density BoxPlot", outline=FALSE, names=c("Cold","Hot"))
|
# Generates an image similar to a "Chlandi Figure." Chlandi Figures are nodal patterns
# that occur on vibrating surfaces.
# The surface is modeled as a matrix, each point representing the
# displacement of the surface while vibrating.
# The vibration is modled as the sum of a set of terms, each of which
# is a prod... | /chladni/chladni_example.r | no_license | dmackinnon1/r_examples | R | false | false | 1,909 | r |
# Generates an image similar to a "Chlandi Figure." Chlandi Figures are nodal patterns
# that occur on vibrating surfaces.
# The surface is modeled as a matrix, each point representing the
# displacement of the surface while vibrating.
# The vibration is modled as the sum of a set of terms, each of which
# is a prod... |
#' Events
#'
#' Get events server-side.
#'
#' @inheritParams sg_nodes
#' @param events A vector of valid events (see section below).
#'
#' @details Events:
#' Valid events to pass to \code{events}.
#' \itemize{
#' \item{\code{clickNode}}
#' \item{\code{clickNodes}}
#' \item{\code{clickEdge}}
#' \item{\code{c... | /R/events.R | no_license | cran/sigmajs | R | false | false | 1,946 | r | #' Events
#'
#' Get events server-side.
#'
#' @inheritParams sg_nodes
#' @param events A vector of valid events (see section below).
#'
#' @details Events:
#' Valid events to pass to \code{events}.
#' \itemize{
#' \item{\code{clickNode}}
#' \item{\code{clickNodes}}
#' \item{\code{clickEdge}}
#' \item{\code{c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FEDFUNDS.R
\docType{data}
\name{FEDFUNDS}
\alias{FEDFUNDS}
\title{Effective Federal Funds Rate}
\format{
An \code{\link{xts}} object of the Fed Funds figures.
\itemize{
\item\strong{Release:} {H.15 Selected Interest Rates}
\item\strong{Sea... | /man/FEDFUNDS.Rd | no_license | cran/neverhpfilter | R | false | true | 3,949 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FEDFUNDS.R
\docType{data}
\name{FEDFUNDS}
\alias{FEDFUNDS}
\title{Effective Federal Funds Rate}
\format{
An \code{\link{xts}} object of the Fed Funds figures.
\itemize{
\item\strong{Release:} {H.15 Selected Interest Rates}
\item\strong{Sea... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Flow.R
\docType{methods}
\name{bjobs}
\alias{bjobs}
\title{Tracks down any LSF jobs associated with this Job object using a bjobs query (warning can be slow)}
\usage{
\S4method{bjobs}{Job}(.Object, mc.cores = 1)
}
\author{
Marcin Imielinski
}... | /man/bjobs.Rd | no_license | mik2044/Flow | R | false | true | 321 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Flow.R
\docType{methods}
\name{bjobs}
\alias{bjobs}
\title{Tracks down any LSF jobs associated with this Job object using a bjobs query (warning can be slow)}
\usage{
\S4method{bjobs}{Job}(.Object, mc.cores = 1)
}
\author{
Marcin Imielinski
}... |
.onLoad <- function(libname, pkgname){
if(!file.exists(opts_path())){
set_swirl_options(courses_dir = file.path(system.file("Courses", package = "swirl")))
}
invisible()
}
.onAttach <- function(...) {
if(length(ls(envir=globalenv())) > 0) {
packageStartupMessage(
make_pretty("Hi! I see that you h... | /R/zzz.R | no_license | seankross/swirl | R | false | false | 1,197 | r | .onLoad <- function(libname, pkgname){
if(!file.exists(opts_path())){
set_swirl_options(courses_dir = file.path(system.file("Courses", package = "swirl")))
}
invisible()
}
.onAttach <- function(...) {
if(length(ls(envir=globalenv())) > 0) {
packageStartupMessage(
make_pretty("Hi! I see that you h... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/HelperFunctions.R
\name{dbGetQueryPostgreSql}
\alias{dbGetQueryPostgreSql}
\title{Retrieve data from server using PostgreSQL specific commands.}
\usage{
dbGetQueryPostgreSql(connection, query = "", datesAsString = FALSE)
}
\ar... | /man/dbGetQueryPostgreSql.Rd | permissive | JonathanHerz/DatabaseConnector | R | false | false | 1,323 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/HelperFunctions.R
\name{dbGetQueryPostgreSql}
\alias{dbGetQueryPostgreSql}
\title{Retrieve data from server using PostgreSQL specific commands.}
\usage{
dbGetQueryPostgreSql(connection, query = "", datesAsString = FALSE)
}
\ar... |
require(strategery)
options(lazy.indicators=T)
options(param.indicators=T)
Universe("SPX") # load.path="G:/Database"
OHLCV = tail(OHLCV,4)
Close = indicator(Close, data=OHLCV)
Long = (Close>0) %position% shares(1) # equitypct("equal")
Neutral = (Close<0) %position% shares(0) # equitypct(0)
events = Queue()
market... | /tests/naive_backtest.R | no_license | Karagul/strategery | R | false | false | 820 | r | require(strategery)
options(lazy.indicators=T)
options(param.indicators=T)
Universe("SPX") # load.path="G:/Database"
OHLCV = tail(OHLCV,4)
Close = indicator(Close, data=OHLCV)
Long = (Close>0) %position% shares(1) # equitypct("equal")
Neutral = (Close<0) %position% shares(0) # equitypct(0)
events = Queue()
market... |
library(jsonlite)
#Hole book in one JSON
tjson <- jsonlite::fromJSON("input.json",simplifyDataFrame = FALSE)
#this function gives indices of chapters
getChapterIndex <- function(){
indexNums <<- list()
for(i in 1:length(jsonList)){
if(chapterURLS[i,3] == "Chapter"){
indexNums <<- append(indexNums,i)
... | /cell_number.R | no_license | scizmeli/BooksForR | R | false | false | 364 | r | library(jsonlite)
#Hole book in one JSON
tjson <- jsonlite::fromJSON("input.json",simplifyDataFrame = FALSE)
#this function gives indices of chapters
getChapterIndex <- function(){
indexNums <<- list()
for(i in 1:length(jsonList)){
if(chapterURLS[i,3] == "Chapter"){
indexNums <<- append(indexNums,i)
... |
context("Setup")
# A plot
p <- lattice::xyplot(y ~ x, data.frame(x = -2:2, y = dnorm(-2:2)))
# A directory to store the plots
plot_dir <- tempfile("withr-test-plots-")
dir.create(plot_dir)
context("Test with_*device* fns")
test_that("with_*device* fns create a plot file", {
fn_names <- c(
"with_bmp", "with_ca... | /tests/testthat/test-devices.R | no_license | richierocks/withr | R | false | false | 1,253 | r | context("Setup")
# A plot
p <- lattice::xyplot(y ~ x, data.frame(x = -2:2, y = dnorm(-2:2)))
# A directory to store the plots
plot_dir <- tempfile("withr-test-plots-")
dir.create(plot_dir)
context("Test with_*device* fns")
test_that("with_*device* fns create a plot file", {
fn_names <- c(
"with_bmp", "with_ca... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/example.R
\name{example_lightbox2}
\alias{example_lightbox2}
\title{Run an example \code{\link{lightbox2}} widget}
\usage{
example_lightbox2(...)
}
\arguments{
\item{...}{Named parameters passed to \code{\link{lightbox2}} to test
different st... | /man/example_lightbox2.Rd | no_license | fazetu/lightbox2 | R | false | true | 443 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/example.R
\name{example_lightbox2}
\alias{example_lightbox2}
\title{Run an example \code{\link{lightbox2}} widget}
\usage{
example_lightbox2(...)
}
\arguments{
\item{...}{Named parameters passed to \code{\link{lightbox2}} to test
different st... |
rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... | /Simulations/Scripts/R/Rare/Scenario 27/CMPEn50KrareScen27EF.R | no_license | yadevi/CausalMPE | R | false | false | 4,221 | r | rm(list = ls())
library(Daniel)
library(dplyr)
library(nnet)
CalcCImultinom <- function(fit)
{
s <- summary(fit)
coef <- s$coefficients
ses <- s$standard.errors
ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2]
ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2]
return(rbind(ci.1,ci.2))
}
#key
# A, B,C,D,E,F - betaE[2] =... |
# Clear plots
if(!is.null(dev.list())) dev.off()
# Clean workspace
rm(list=ls())
# Clear console
cat("\014")
# Set working directory
setwd("~/Big_Data")
# Load libraries (mporei na ksemine kapoia apo tis dokimes kai tora na min xreiazetai)
# entoli gia install packages install.packages("caret")
#library(rpart)
#lib... | /data_exploration.R | no_license | AlexandrosPetropoulos/BankMarketing | R | false | false | 7,250 | r | # Clear plots
if(!is.null(dev.list())) dev.off()
# Clean workspace
rm(list=ls())
# Clear console
cat("\014")
# Set working directory
setwd("~/Big_Data")
# Load libraries (mporei na ksemine kapoia apo tis dokimes kai tora na min xreiazetai)
# entoli gia install packages install.packages("caret")
#library(rpart)
#lib... |
library(BSagri)
### Name: simplesimint
### Title: Simultaneous confidence intervals from raw estimates
### Aliases: simplesimint
### Keywords: htest
### ** Examples
# For the simple case of Gaussian response
# variables with homoscedastic variance,
# see the following example
library(mratios)
data(angina)
boxp... | /data/genthat_extracted_code/BSagri/examples/simplesimint.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,033 | r | library(BSagri)
### Name: simplesimint
### Title: Simultaneous confidence intervals from raw estimates
### Aliases: simplesimint
### Keywords: htest
### ** Examples
# For the simple case of Gaussian response
# variables with homoscedastic variance,
# see the following example
library(mratios)
data(angina)
boxp... |
#' OpenAPI Petstore
#'
#' This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
#'
#' The version of the OpenAPI document: 1.0.0
#' Generated by: https://openapi-generator.tech
#'
#' @docType class
#' @title User operations
#' @description Use... | /samples/client/petstore/R-httr2/R/user_api.R | permissive | OpenAPITools/openapi-generator | R | false | false | 52,790 | r | #' OpenAPI Petstore
#'
#' This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
#'
#' The version of the OpenAPI document: 1.0.0
#' Generated by: https://openapi-generator.tech
#'
#' @docType class
#' @title User operations
#' @description Use... |
### Load packages
# install.packages("dplyr")
# install.packages("tidyr")
# install.packages("pdftools")
# install.packages("tesseract")
# install.packages("ggplot2")
library(dplyr)
library(tidyr)
library(pdftools)
library(tesseract)
library(ggplot2)
### dir prep
# setwd("//goshawk.sefs.uw.edu/Space_Law... | /3analysis_prep.R | no_license | CaitLittlef/NewCons | R | false | false | 7,653 | r | ### Load packages
# install.packages("dplyr")
# install.packages("tidyr")
# install.packages("pdftools")
# install.packages("tesseract")
# install.packages("ggplot2")
library(dplyr)
library(tidyr)
library(pdftools)
library(tesseract)
library(ggplot2)
### dir prep
# setwd("//goshawk.sefs.uw.edu/Space_Law... |
####################################################################
# Code to analyze EEG-neurofeedback training data from study EFPTest
# Zopfs, Sicorello, Paret, ZI Mannheim, 2022
####################################################################
#load and install packages
#########################################... | /trainingsession_analysis/code/EFPTest_EEG_training_MLM_PES.R | permissive | christianparet/Amyg-EFP-BPD-study-self-report-and-nf-success | R | false | false | 5,850 | r | ####################################################################
# Code to analyze EEG-neurofeedback training data from study EFPTest
# Zopfs, Sicorello, Paret, ZI Mannheim, 2022
####################################################################
#load and install packages
#########################################... |
context("PLSpredict correctly calculates the PLS and LM metrics DA and EA technique\n")
# Test cases
## DA Approach
set.seed(12345)
# seminr syntax for creating measurement model
mobi_mm <- constructs(
composite("Image", multi_items("IMAG", 1:5), weights = mode_A),
composite("Expectation", multi_items("CUE... | /tests/testthat/test-metrics.R | no_license | sem-in-r/pls-predict | R | false | false | 7,797 | r | context("PLSpredict correctly calculates the PLS and LM metrics DA and EA technique\n")
# Test cases
## DA Approach
set.seed(12345)
# seminr syntax for creating measurement model
mobi_mm <- constructs(
composite("Image", multi_items("IMAG", 1:5), weights = mode_A),
composite("Expectation", multi_items("CUE... |
#' Function to initialize an serial interface.
#'
#' This function initializes the serial interface and opens it for later usage.
#'
#' @method open serialConnection
#'
#' @param con serial connection
#' @param ... is ignored
#' @seealso \code{\link{serialConnection}}
#' @import tcltk
#' @export
open.serialConnecti... | /R/open.R | no_license | cran/serial | R | false | false | 1,668 | r | #' Function to initialize an serial interface.
#'
#' This function initializes the serial interface and opens it for later usage.
#'
#' @method open serialConnection
#'
#' @param con serial connection
#' @param ... is ignored
#' @seealso \code{\link{serialConnection}}
#' @import tcltk
#' @export
open.serialConnecti... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 1.2873973995304e-76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615782889-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 327 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 1.2873973995304e-76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(... |
samples <- function(sdata, n){
sdata <- sort(sdata)
distdatos <- prop.table(table(sdata)) #distribucion de los datos
mu <- sum(distdatos*unique(sdata)) #media poblacional
sigma2 <- sum(distdatos*(unique(sdata)-mu)^2) #varianza poblacional
combinations <- combn(sdata, n) #todas las muestras posibles
nc... | /Muestreo/FuncionesmuestreoMAS.R | no_license | Bexzho/OwnFunctions | R | false | false | 2,322 | r | samples <- function(sdata, n){
sdata <- sort(sdata)
distdatos <- prop.table(table(sdata)) #distribucion de los datos
mu <- sum(distdatos*unique(sdata)) #media poblacional
sigma2 <- sum(distdatos*(unique(sdata)-mu)^2) #varianza poblacional
combinations <- combn(sdata, n) #todas las muestras posibles
nc... |
\name{TempoPlot}
\alias{TempoPlot}
\title{Plot of the occurence of events}
\usage{
TempoPlot(data, position, level=0.95, count = TRUE, Gauss=FALSE, title = "Tempo plot")
}
\arguments{
\item{data}{dataframe containing the output of the MCMC algorithm }
\item{position}{numeric vector containing the position of the ... | /man/TempoPlot.Rd | no_license | cran/RChronoModel | R | false | false | 1,509 | rd | \name{TempoPlot}
\alias{TempoPlot}
\title{Plot of the occurence of events}
\usage{
TempoPlot(data, position, level=0.95, count = TRUE, Gauss=FALSE, title = "Tempo plot")
}
\arguments{
\item{data}{dataframe containing the output of the MCMC algorithm }
\item{position}{numeric vector containing the position of the ... |
### Jinliang Yang
### August 7th, 2015
options(echo=TRUE) # if you want see commands in output file
args <- commandArgs(trailingOnly = TRUE)
#crossovers=as.numeric(args[1]) # mean expected crossovers per chromosome; 0 = no recombination
job=args[1]
### loading all the functions in folder "lib"
f <- sapply(list.files... | /profiling/1.test_codes/1.C.1_imputeKids_test.R | no_license | rossibarra/phasing_tests | R | false | false | 1,391 | r | ### Jinliang Yang
### August 7th, 2015
options(echo=TRUE) # if you want see commands in output file
args <- commandArgs(trailingOnly = TRUE)
#crossovers=as.numeric(args[1]) # mean expected crossovers per chromosome; 0 = no recombination
job=args[1]
### loading all the functions in folder "lib"
f <- sapply(list.files... |
standard.ellipse <- function (x,y,confs=NULL,steps=5){
n <- length(x)
mx <- mean(x)
my <- mean(y)
# ------------------------------------------------------------------------------
## Original Parametric methods here
#varx <- var(x)
#vary <- var(y)
#
#sdx <- sd(x)
#sdy <- sd(y)
#
#r <- cov(x,y)/(sdx*sdy)
#
## Maths b... | /siar/R/standard.ellipse.r | no_license | albrizre/spatstat.revdep | R | false | false | 2,906 | r | standard.ellipse <- function (x,y,confs=NULL,steps=5){
n <- length(x)
mx <- mean(x)
my <- mean(y)
# ------------------------------------------------------------------------------
## Original Parametric methods here
#varx <- var(x)
#vary <- var(y)
#
#sdx <- sd(x)
#sdy <- sd(y)
#
#r <- cov(x,y)/(sdx*sdy)
#
## Maths b... |
lines_pred <- function(
ds,
variable_name,
predicted,
line_size=.5,
line_alpha=.5,
# top_y = max(ds[,variable_name], na.rm=T),
# bottom_y = min(ds[,variable_name],na.rm=T),
# by_y = round(top_y/10,0),
top_y = 35,
bottom_y = 0,
by_y = 5,
bottom_age = 55,
top_age = 110,
by_age = 5,... | /scripts/graphs-pred.R | no_license | beccav8/psy564_longitudinal_models | R | false | false | 2,463 | r |
lines_pred <- function(
ds,
variable_name,
predicted,
line_size=.5,
line_alpha=.5,
# top_y = max(ds[,variable_name], na.rm=T),
# bottom_y = min(ds[,variable_name],na.rm=T),
# by_y = round(top_y/10,0),
top_y = 35,
bottom_y = 0,
by_y = 5,
bottom_age = 55,
top_age = 110,
by_age = 5,... |
#' @useDynLib rotsf, .registration = TRUE
#' @import survival pls
#' @importFrom stats predict
#' @importFrom Rcpp evalCpp
NULL | /R/rotsf.R | no_license | whcsu/rotsf | R | false | false | 127 | r | #' @useDynLib rotsf, .registration = TRUE
#' @import survival pls
#' @importFrom stats predict
#' @importFrom Rcpp evalCpp
NULL |
# Title: Harvard Forest Cutting Data
# Site: Harvarad Forest
# Data Sources: http://harvardforest.fas.harvard.edu:8080/exist/apps/datasets/da-search-all.html
# Authors: Kyra Hoerr
# Date: 28 June 2018
#set file paths
root_folder <- "G:/Shared drives/MacrosystemsBiodiversity"
set... | /scripts/HRF_cutting.R | no_license | NEON-biodiversity/NEON-LTER | R | false | false | 3,237 | r | # Title: Harvard Forest Cutting Data
# Site: Harvarad Forest
# Data Sources: http://harvardforest.fas.harvard.edu:8080/exist/apps/datasets/da-search-all.html
# Authors: Kyra Hoerr
# Date: 28 June 2018
#set file paths
root_folder <- "G:/Shared drives/MacrosystemsBiodiversity"
set... |
library(testthat)
library(spatialdatatable)
test_check("spatialdatatable")
| /tests/testthat.R | no_license | jimsforks/spatialdatatable | R | false | false | 76 | r | library(testthat)
library(spatialdatatable)
test_check("spatialdatatable")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StackedVlnPlot.R, R/geom_flat_violin.R,
% R/misc.R
\docType{data}
\name{misc}
\alias{misc}
\alias{modify_vlnplot}
\alias{extract_max}
\alias{GeomFlatViolin}
\alias{range01}
\alias{\%nin\%}
\alias{small_legend}
\alias{small_guide}
\alias{sma... | /man/misc.Rd | permissive | saeedfc/ktplots | R | false | true | 2,169 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StackedVlnPlot.R, R/geom_flat_violin.R,
% R/misc.R
\docType{data}
\name{misc}
\alias{misc}
\alias{modify_vlnplot}
\alias{extract_max}
\alias{GeomFlatViolin}
\alias{range01}
\alias{\%nin\%}
\alias{small_legend}
\alias{small_guide}
\alias{sma... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TargetingModels.R
\name{createSubstitutionMatrix}
\alias{createSubstitutionMatrix}
\title{Builds a substitution model}
\usage{
createSubstitutionMatrix(
db,
model = c("s", "rs"),
sequenceColumn = "sequence_alignment",
germlineColumn =... | /man/createSubstitutionMatrix.Rd | no_license | Richhub6699/shazam | R | false | true | 5,918 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TargetingModels.R
\name{createSubstitutionMatrix}
\alias{createSubstitutionMatrix}
\title{Builds a substitution model}
\usage{
createSubstitutionMatrix(
db,
model = c("s", "rs"),
sequenceColumn = "sequence_alignment",
germlineColumn =... |
library(xlsx)
library(dplyr)
setwd("//chico-2012/FldrRedir$/etadeo/Desktop/Data Science/Coursera/Clean Data/UCI HAR Dataset")
#Read and merge data - subjects and volunteers
x_train <- read.table("train/X_train.txt") # Training Set
y_train <- read.table("train/y_train.txt") # Training labels
#combine test an... | /Run_Analysis.R | no_license | etadeo/Getting_and_Cleaning_Data | R | false | false | 1,979 | r | library(xlsx)
library(dplyr)
setwd("//chico-2012/FldrRedir$/etadeo/Desktop/Data Science/Coursera/Clean Data/UCI HAR Dataset")
#Read and merge data - subjects and volunteers
x_train <- read.table("train/X_train.txt") # Training Set
y_train <- read.table("train/y_train.txt") # Training labels
#combine test an... |
#
# Copyright 2007-2018 The OpenMx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | /SilveR/R-3.5.1/library/OpenMx/models/passing/NelderMead--bothConstraintTypes.R | permissive | kevinmiles/SilveR | R | false | false | 9,782 | r | #
# Copyright 2007-2018 The OpenMx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
# NOTES -------------------------------------------------------------------
# Note that the function in scater gave negative values and when cpm.DGEList was allowed to take the log itself all CPMs were nonzero!
# ROTS, NOISeq, EBSeq, monocle, scDD have no log fold changes internally calculated?
# DE TOOLS WRAPPER --... | /R/utils_DEdetection.R | permissive | mark-rrnr/powsimR | R | false | false | 32,724 | r | # NOTES -------------------------------------------------------------------
# Note that the function in scater gave negative values and when cpm.DGEList was allowed to take the log itself all CPMs were nonzero!
# ROTS, NOISeq, EBSeq, monocle, scDD have no log fold changes internally calculated?
# DE TOOLS WRAPPER --... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bold_italicise_labels_levels.R
\name{bold_italicize_labels_levels}
\alias{bold_italicize_labels_levels}
\alias{bold_labels}
\alias{bold_levels}
\alias{italicize_labels}
\alias{italicize_levels}
\title{Bold or Italicize labels or levels in gts... | /man/bold_italicize_labels_levels.Rd | permissive | aleszib/gtsummary | R | false | true | 2,222 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bold_italicise_labels_levels.R
\name{bold_italicize_labels_levels}
\alias{bold_italicize_labels_levels}
\alias{bold_labels}
\alias{bold_levels}
\alias{italicize_labels}
\alias{italicize_levels}
\title{Bold or Italicize labels or levels in gts... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sentomeasures_methods.R
\name{get_measures}
\alias{get_measures}
\title{Get the sentiment measures}
\usage{
get_measures(sentomeasures, format = "wide")
}
\arguments{
\item{sentomeasures}{a \code{sentomeasures} object created using \code{\lin... | /man/get_measures.Rd | no_license | vanpeltj/sentometrics | R | false | true | 649 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sentomeasures_methods.R
\name{get_measures}
\alias{get_measures}
\title{Get the sentiment measures}
\usage{
get_measures(sentomeasures, format = "wide")
}
\arguments{
\item{sentomeasures}{a \code{sentomeasures} object created using \code{\lin... |
/Script1.R | no_license | barbosarafael/Trabalhos-com-Prof-Marinalva | R | false | false | 2,146 | r | ||
library(ggplot2);library(gcookbook)
ggplot(BOD, aes(x=Time, y=demand)) + geom_line()
# if x is categorical, then we need to add group = 1
BOD1 <- BOD # Make a copy of the data
BOD1$Time <- factor(BOD1$Time)
ggplot(BOD1, aes(x=Time, y=demand, group=1)) + geom_line()
# expand the y lim range
... | /ggplot2_cookbook/4. line chart.R | no_license | richarddeng88/Advanced_Data_Mining | R | false | false | 5,580 | r | library(ggplot2);library(gcookbook)
ggplot(BOD, aes(x=Time, y=demand)) + geom_line()
# if x is categorical, then we need to add group = 1
BOD1 <- BOD # Make a copy of the data
BOD1$Time <- factor(BOD1$Time)
ggplot(BOD1, aes(x=Time, y=demand, group=1)) + geom_line()
# expand the y lim range
... |
library(drake)
library(tidyverse)
library(ggplot2)
library(rmarkdown)
library(knitr)
library(xaringan) | /r/package.R | no_license | Scott-Coggeshall/bayesian_trials | R | false | false | 102 | r | library(drake)
library(tidyverse)
library(ggplot2)
library(rmarkdown)
library(knitr)
library(xaringan) |
# Importing the dataset
# ---------------------
dataset = read.csv('../../data_files/Position_Salaries.csv')
dataset = dataset[2:3]
# Fitting Regression to the dataset
# install.packages('randomForest')
library(randomForest)
set.seed(1234)
regressor = randomForest(x=dataset[1],
y=dataset$Salary,
ntree=50... | /part_2-regression/random-forest-regression/random_forest_regression.R | no_license | mdrijwan123/Machine-Learning-Udemy-A-to-Z | R | false | false | 915 | r | # Importing the dataset
# ---------------------
dataset = read.csv('../../data_files/Position_Salaries.csv')
dataset = dataset[2:3]
# Fitting Regression to the dataset
# install.packages('randomForest')
library(randomForest)
set.seed(1234)
regressor = randomForest(x=dataset[1],
y=dataset$Salary,
ntree=50... |
# Presuming the file has been downloaded and saved in the working directory - using file.info() to check the size.
file.info("household_power_consumption.txt")
# Reading file into R, setting header to TRUE and separator sep to ;
HouseholdPower <- read.table("household_power_consumption.txt", header = TRUE, sep= ";")
# ... | /Plot2.R | no_license | heikehv/datasciencecoursera | R | false | false | 1,780 | r | # Presuming the file has been downloaded and saved in the working directory - using file.info() to check the size.
file.info("household_power_consumption.txt")
# Reading file into R, setting header to TRUE and separator sep to ;
HouseholdPower <- read.table("household_power_consumption.txt", header = TRUE, sep= ";")
# ... |
\name{pseudo}
\alias{pseudo}
\title{
Pseudoinverse.
}
\description{
This function computes the Pseudoinverse of a design matrix. If a matrix of dependent variables is also supplied the betas will also be returned. Optionally the residuals may be returned as well.}
\usage{
pseudo(x,y=NULL,residuals=FALSE,keepMea... | /man/pseudo.Rd | no_license | cran/FIACH | R | false | false | 1,567 | rd | \name{pseudo}
\alias{pseudo}
\title{
Pseudoinverse.
}
\description{
This function computes the Pseudoinverse of a design matrix. If a matrix of dependent variables is also supplied the betas will also be returned. Optionally the residuals may be returned as well.}
\usage{
pseudo(x,y=NULL,residuals=FALSE,keepMea... |
library(rdetools)
### Name: sincdata
### Title: Generate random sinc data
### Aliases: sincdata
### Keywords: datagen
### ** Examples
## generate 100 data points with noise level 0
## drawn from the interval [-4,4]
sincdata(100)
## generate 1000 data points with noise level 0.7
## drawn from the interval [-10, 10]... | /data/genthat_extracted_code/rdetools/examples/sincdata.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 360 | r | library(rdetools)
### Name: sincdata
### Title: Generate random sinc data
### Aliases: sincdata
### Keywords: datagen
### ** Examples
## generate 100 data points with noise level 0
## drawn from the interval [-4,4]
sincdata(100)
## generate 1000 data points with noise level 0.7
## drawn from the interval [-10, 10]... |
#-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... | /models/linkages/R/write.config.LINKAGES.R | permissive | bailsofhay/pecan | R | false | false | 12,217 | r | #-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... |
library(DESeq2)
library("dplyr")
library("ggplot2")
library("magrittr")
library("Biobase")
library(pheatmap)
library(RColorBrewer)
dhedset <- read.csv("reports/DHED1.DESeq.gene_count.tab",
row.names="LOCUS",header=T)
dim(dhedset)
geno = factor(rep( c("L1B","L4C","U10D","U3B","U3E","U5C"), each=4))... | /Rscripts/DESeq_hisat_counts.R | no_license | stajichlab/C_lusitaniae_DHED1_RNAseq | R | false | false | 2,755 | r | library(DESeq2)
library("dplyr")
library("ggplot2")
library("magrittr")
library("Biobase")
library(pheatmap)
library(RColorBrewer)
dhedset <- read.csv("reports/DHED1.DESeq.gene_count.tab",
row.names="LOCUS",header=T)
dim(dhedset)
geno = factor(rep( c("L1B","L4C","U10D","U3B","U3E","U5C"), each=4))... |
# @file main
#
# Copyright 2018 Observational Health Data Sciences and Informatics
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | /R/main.R | permissive | ablack3/PregnancyAlgorithm | R | false | false | 7,905 | r | # @file main
#
# Copyright 2018 Observational Health Data Sciences and Informatics
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... |
library(tidyverse)
dest_dir <- "derived_files/tabula_muris/"
hema_dir <- "derived_files/tabula_muris_hema/"
dir.create(hema_dir, recursive = TRUE, showWarnings = FALSE)
data_rnaseq <- paste0(dest_dir, "data_rnaseq/")
data_rds <- paste0(dest_dir, "data_rds/")
# zip_file <- paste0(dest_dir, "data_rnaseq.zip")
# downlo... | /ch6_bred/scripts/2_tabula-muris_hematopoietic.R | no_license | rcannood/phdthesis | R | false | false | 14,605 | r | library(tidyverse)
dest_dir <- "derived_files/tabula_muris/"
hema_dir <- "derived_files/tabula_muris_hema/"
dir.create(hema_dir, recursive = TRUE, showWarnings = FALSE)
data_rnaseq <- paste0(dest_dir, "data_rnaseq/")
data_rds <- paste0(dest_dir, "data_rds/")
# zip_file <- paste0(dest_dir, "data_rnaseq.zip")
# downlo... |
# Author: Robert J. Hijmans
# Date : December 2017
# Version 1.0
# License GPL v3
readAll <- function(x) {
ok <- x@ptr$readAll()
x <- messages(x, "readAll")
invisible(ok)
}
setMethod("readStart", signature(x="SpatRaster"),
function(x) {
success <- x@ptr$readStart()
messages(x, "readStart")
if... | /R/read.R | no_license | cran/terra | R | false | false | 1,249 | r | # Author: Robert J. Hijmans
# Date : December 2017
# Version 1.0
# License GPL v3
readAll <- function(x) {
ok <- x@ptr$readAll()
x <- messages(x, "readAll")
invisible(ok)
}
setMethod("readStart", signature(x="SpatRaster"),
function(x) {
success <- x@ptr$readStart()
messages(x, "readStart")
if... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forecastservice_service.R
\name{forecastservice}
\alias{forecastservice}
\title{Amazon Forecast Service}
\usage{
forecastservice(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\... | /paws/man/forecastservice.Rd | permissive | ryanb8/paws | R | false | true | 4,760 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forecastservice_service.R
\name{forecastservice}
\alias{forecastservice}
\title{Amazon Forecast Service}
\usage{
forecastservice(config = list())
}
\arguments{
\item{config}{Optional configuration of credentials, endpoint, and/or region.}
}
\... |
#' cities coordinates
#'
#' This function allows you to store the coordinates of each cities in a dataframe
#'
#' @param pol An sf object of the cities
#'
#' @return A data.frame with the same variables as pol, centroïds (lat,lon) and no geometries
#'
#' @examples
#' # Import data
#' data(pol)
#'
#' coordCom <- coord_c... | /R/coord_com.R | no_license | Geographie-cites/toyspace | R | false | false | 678 | r | #' cities coordinates
#'
#' This function allows you to store the coordinates of each cities in a dataframe
#'
#' @param pol An sf object of the cities
#'
#' @return A data.frame with the same variables as pol, centroïds (lat,lon) and no geometries
#'
#' @examples
#' # Import data
#' data(pol)
#'
#' coordCom <- coord_c... |
#------------#
#Housekeeping#
#------------#
rm(list=ls(all=TRUE))
library(scatterplot3d)
library(questionr)
#Setting the size of the observations
SIZE=950
#Loading the number of bootstrap repetitions
RR=1000
#Run the necessary functions and libraries
library(ggplot2)
library(gridExtra)
BEHAVIORAL70
#Multiplot
sour... | /Figure3/BEHAVIORALSMOOTHINGDISTRIBUTION.R | no_license | rodazuero/evaluating | R | false | false | 15,145 | r | #------------#
#Housekeeping#
#------------#
rm(list=ls(all=TRUE))
library(scatterplot3d)
library(questionr)
#Setting the size of the observations
SIZE=950
#Loading the number of bootstrap repetitions
RR=1000
#Run the necessary functions and libraries
library(ggplot2)
library(gridExtra)
BEHAVIORAL70
#Multiplot
sour... |
## Code book for course "Getting and Cleaning Data" assignment:
## Create one R script called run_analysis.R that does the following:
## using datasets from "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
## 1.Merges the training and the test sets to create one data set.
## 2.Ex... | /Getting data course--run_analysis.R | no_license | jennylzwang/Getting-and-Cleaning-Data-Course-Project | R | false | false | 6,178 | r | ## Code book for course "Getting and Cleaning Data" assignment:
## Create one R script called run_analysis.R that does the following:
## using datasets from "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
## 1.Merges the training and the test sets to create one data set.
## 2.Ex... |
###################################################################################################################
## Author: USERNAME
## Description: parallel child script for ic_scalar_apply.R
## Output: scaled draws ready for custom model save_results
###########################################################... | /nonfatal_code/digest_ibd/digest_ic_scalar_apply_parallel_cleaned.R | no_license | Nermin-Ghith/ihme-modeling | R | false | false | 2,205 | r | ###################################################################################################################
## Author: USERNAME
## Description: parallel child script for ic_scalar_apply.R
## Output: scaled draws ready for custom model save_results
###########################################################... |
## file structure
if (! file.exists("data")) dir.create("data")
if (!file.exists("data/portal_clean.csv")) {
download.file("http://kbroman.org/datacarp/portal_clean.csv",
"data/portal_clean.csv")
}
if (!file.exists("data/surveys.csv")) {
download.file("https://ndownloader.figshare.com/files/... | /setup.R | permissive | mkamenet3/datacarpentry_R_2019-01-17 | R | false | false | 1,138 | r | ## file structure
if (! file.exists("data")) dir.create("data")
if (!file.exists("data/portal_clean.csv")) {
download.file("http://kbroman.org/datacarp/portal_clean.csv",
"data/portal_clean.csv")
}
if (!file.exists("data/surveys.csv")) {
download.file("https://ndownloader.figshare.com/files/... |
\name{prt.varmixt.res}
\alias{prt.varmixt.res}
\title{Parameters of varmixt analysis}
\description{
This function prints parameters of varmixt analysis}
\usage{
prt.varmixt.res(data)
}
\arguments{
\item{data}{Gene expression data object. Result of varmixt analysis}
}
\details{
}
\value{
}
\references... | /man/prt.varmixt.res.Rd | no_license | cran/varmixt | R | false | false | 403 | rd | \name{prt.varmixt.res}
\alias{prt.varmixt.res}
\title{Parameters of varmixt analysis}
\description{
This function prints parameters of varmixt analysis}
\usage{
prt.varmixt.res(data)
}
\arguments{
\item{data}{Gene expression data object. Result of varmixt analysis}
}
\details{
}
\value{
}
\references... |
## Getting & Cleaning Data
## Peer-Graded Assignment
## Reading Files
LabelsPre <- read.delim("UCI HAR Dataset/features.txt", header = FALSE, col.names = c("functions"))
YTest <- read.table("UCI HAR Dataset/test/y_test.txt", col.names = c("code"))
XTest <- read.table("UCI HAR Dataset/test/X_test.txt", col.names = La... | /runanalysis.R | no_license | At0m1c3l/cleandatacoursera | R | false | false | 2,767 | r | ## Getting & Cleaning Data
## Peer-Graded Assignment
## Reading Files
LabelsPre <- read.delim("UCI HAR Dataset/features.txt", header = FALSE, col.names = c("functions"))
YTest <- read.table("UCI HAR Dataset/test/y_test.txt", col.names = c("code"))
XTest <- read.table("UCI HAR Dataset/test/X_test.txt", col.names = La... |
# ForC to IPCC formatting ####
# clear environment ####
rm(list = ls())
# load library ####
# load data ####
MEASUREMENTS <- read.csv("https://raw.githubusercontent.com/forc-db/ForC/master/data/ForC_measurements.csv", stringsAsFactors = F)
ForC_simplified <- read.csv("https://raw.githubusercontent.com/forc-db/ForC/m... | /scripts/1_ForC_to_IPCC_formatting.R | permissive | nuest/IPCC-EFDB-integration | R | false | false | 36,905 | r | # ForC to IPCC formatting ####
# clear environment ####
rm(list = ls())
# load library ####
# load data ####
MEASUREMENTS <- read.csv("https://raw.githubusercontent.com/forc-db/ForC/master/data/ForC_measurements.csv", stringsAsFactors = F)
ForC_simplified <- read.csv("https://raw.githubusercontent.com/forc-db/ForC/m... |
run_analysis <- function() {
## working directory starts as my Documents folder
## data was saved in Documents/Data Science/Cleaning/Project/UCI HAR Dataset
## setwd('~/Data Science/Cleaning/Project/UCI HAR Dataset/')
activityLabels<-read.table('activity_labels.txt')
##
## 1 WALKING
## 2 WALKING_UPSTAIR... | /run_analysis.R | no_license | anthonydo89/GetCleanProject | R | false | false | 3,299 | r | run_analysis <- function() {
## working directory starts as my Documents folder
## data was saved in Documents/Data Science/Cleaning/Project/UCI HAR Dataset
## setwd('~/Data Science/Cleaning/Project/UCI HAR Dataset/')
activityLabels<-read.table('activity_labels.txt')
##
## 1 WALKING
## 2 WALKING_UPSTAIR... |
################################
## CHECKS FOR ARGUMENT TAGS ##
################################
# CONTAINS
# get.varType() - grabs first part of string, sep specifiable
# argument_check()- check duplicate attribute/model tags + check requests for two model types of one variable + checking other master control... | /foreSIGHT/R/argumentInputChecker.R | no_license | akhikolla/InformationHouse | R | false | false | 14,500 | r | ################################
## CHECKS FOR ARGUMENT TAGS ##
################################
# CONTAINS
# get.varType() - grabs first part of string, sep specifiable
# argument_check()- check duplicate attribute/model tags + check requests for two model types of one variable + checking other master control... |
########################################
# Calculate total by regions, crops, and species
# Developed by: Limei Ran & Dongmei Yang
# UNC Institute for the Environment
########################################
# Load required libraries
if(! require(M3)) stop("Required package M3 could not be loaded")
# get file names... | /epic/util/misc/swat/epic2cmaq_sum_byday_swat.R | no_license | fengsheng-sudo/FESTC-EPIC0509 | R | false | false | 6,710 | r | ########################################
# Calculate total by regions, crops, and species
# Developed by: Limei Ran & Dongmei Yang
# UNC Institute for the Environment
########################################
# Load required libraries
if(! require(M3)) stop("Required package M3 could not be loaded")
# get file names... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exposure.R
\name{packs_info}
\alias{packs_info}
\alias{is_packs_info}
\alias{get_packs_info}
\title{Packs info}
\usage{
is_packs_info(.x, .skip_class = FALSE)
get_packs_info(.object)
}
\arguments{
\item{.x}{Object to test.}
\item{.skip_clas... | /man/packs_info.Rd | no_license | echasnovski/ruler | R | false | true | 2,110 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exposure.R
\name{packs_info}
\alias{packs_info}
\alias{is_packs_info}
\alias{get_packs_info}
\title{Packs info}
\usage{
is_packs_info(.x, .skip_class = FALSE)
get_packs_info(.object)
}
\arguments{
\item{.x}{Object to test.}
\item{.skip_clas... |
# all functions to parse exposure datasets
#' Parse uploaded file for Consumer TRA
#' @description Parses the uploaded Consumer TRA exposure SpreadSheet to extract all the exposure names and values
#' This function will not be called directly by the user
#' @importFrom readxl excel_sheets read_excel
#' @import stringr... | /R/ParseExposures.R | no_license | deepika060193/plethem | R | false | false | 4,195 | r | # all functions to parse exposure datasets
#' Parse uploaded file for Consumer TRA
#' @description Parses the uploaded Consumer TRA exposure SpreadSheet to extract all the exposure names and values
#' This function will not be called directly by the user
#' @importFrom readxl excel_sheets read_excel
#' @import stringr... |
## Exploratory Data Analysis- Project 1
## set the correct working directory.
getwd()
setwd("C://Users/chinks/Downloads/coursera/exdata_data_household_power_consumption/")
getwd()
## Now Reading the data into the vector Power:
Power <- read.csv("household_power_consumption.txt", sep=";", colClasses="character", h... | /Plot1.R | no_license | Dr-A-Soni/ExData_Plotting1 | R | false | false | 1,281 | r |
## Exploratory Data Analysis- Project 1
## set the correct working directory.
getwd()
setwd("C://Users/chinks/Downloads/coursera/exdata_data_household_power_consumption/")
getwd()
## Now Reading the data into the vector Power:
Power <- read.csv("household_power_consumption.txt", sep=";", colClasses="character", h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Acceptance.R
\name{plot.AccSampPlan}
\alias{plot.AccSampPlan}
\alias{plot.CurtSampPlan}
\alias{plot.SeqSampPlan}
\title{plot methods for the Dodge package}
\usage{
\method{plot}{AccSampPlan}(x, y = NULL, ...)
}
\arguments{
\item{x}{an object ... | /man/plot.AccSampPlan.Rd | no_license | ajrgodfrey/Dodge | R | false | true | 1,021 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Acceptance.R
\name{plot.AccSampPlan}
\alias{plot.AccSampPlan}
\alias{plot.CurtSampPlan}
\alias{plot.SeqSampPlan}
\title{plot methods for the Dodge package}
\usage{
\method{plot}{AccSampPlan}(x, y = NULL, ...)
}
\arguments{
\item{x}{an object ... |
source("data_unrate.R")
source("package.R")
# Forecast - AR -----------------------------------------------------------
ForecastAR= function(data, p, idx = idx) {
fc = c(NA)
for(k in 0:length(data[-c(1:idx)]) - 1) {
y = data[(p + 1):(length(data[1:idx]) + k)]
n = length(y)
x.lag = matrix(nrow = n, nc... | /R/unrate/autoregressive_model/outsample.R | no_license | TrineGraff/p10 | R | false | false | 1,494 | r | source("data_unrate.R")
source("package.R")
# Forecast - AR -----------------------------------------------------------
ForecastAR= function(data, p, idx = idx) {
fc = c(NA)
for(k in 0:length(data[-c(1:idx)]) - 1) {
y = data[(p + 1):(length(data[1:idx]) + k)]
n = length(y)
x.lag = matrix(nrow = n, nc... |
#' Renames a list of participants.
#'
#' This function changes the IDs of a given set of participants, where possible.
#'
#' @param labbcat.url URL to the LaBB-CAT instance
#' @param current.ids A vector of participant IDs that as they are currently defined in
#' the corpus.
#' @param new.ids A vector of new partici... | /R/renameParticipants.R | no_license | cran/nzilbb.labbcat | R | false | false | 2,522 | r | #' Renames a list of participants.
#'
#' This function changes the IDs of a given set of participants, where possible.
#'
#' @param labbcat.url URL to the LaBB-CAT instance
#' @param current.ids A vector of participant IDs that as they are currently defined in
#' the corpus.
#' @param new.ids A vector of new partici... |
testlist <- list(x = structure(c(2.31584749104443e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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), .Dim = c(5L, 7L)))
result <- do.call(multivariance::fastdist,testlist)
str(result) | /multivariance/inst/testfiles/fastdist/AFL_fastdist/fastdist_valgrind_files/1613096965-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 303 | r | testlist <- list(x = structure(c(2.31584749104443e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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), .Dim = c(5L, 7L)))
result <- do.call(multivariance::fastdist,testlist)
str(result) |
library(SampleSizeProportions)
### Name: propdiff.alc
### Title: Bayesian sample size determination for the difference between
### two binomial proportions using the Average Length Criterion
### Aliases: propdiff.alc
### Keywords: design
### ** Examples
propdiff.alc(len=0.05, c1=3, d1=11, c2=11, d2=54)
| /data/genthat_extracted_code/SampleSizeProportions/examples/propdiff.alc.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 311 | r | library(SampleSizeProportions)
### Name: propdiff.alc
### Title: Bayesian sample size determination for the difference between
### two binomial proportions using the Average Length Criterion
### Aliases: propdiff.alc
### Keywords: design
### ** Examples
propdiff.alc(len=0.05, c1=3, d1=11, c2=11, d2=54)
|
library("ggplot2")
EPI_data <- read.csv("2010EPI_data.csv", skip = 1) # Get the col names
View(EPI_data)
attach(EPI_data)
fix(EPI_data)
EPI <- EPI_data$EPI
plot(ecdf(EPI), dp.point=FALSE, verticals=TRUE)
x <-seq(30, 95, 1)
qqplot(qt(ppoints(250), df=5), x, xlab="Q-Q plot for t dsn")
qqline(x)
# Intercomparing <-... | /Lab1/Lab1_part2.R | no_license | gwang111/DataAnalytics2021_Gary_Wang | R | false | false | 776 | r | library("ggplot2")
EPI_data <- read.csv("2010EPI_data.csv", skip = 1) # Get the col names
View(EPI_data)
attach(EPI_data)
fix(EPI_data)
EPI <- EPI_data$EPI
plot(ecdf(EPI), dp.point=FALSE, verticals=TRUE)
x <-seq(30, 95, 1)
qqplot(qt(ppoints(250), df=5), x, xlab="Q-Q plot for t dsn")
qqline(x)
# Intercomparing <-... |
#' Apply the generalized Bayesian two-stage normal-selection causal model with instrumental variables.
#'
#' @description The \code{gts.nnormal.s} function applies the generalized Bayesian two-stage
#' normal-selection causal model to the categorical treatment data.
#' The model best suits the normally-distributed outc... | /R/gts.nnormal.s.R | no_license | dingjshi/ALMOND | R | false | false | 20,972 | r | #' Apply the generalized Bayesian two-stage normal-selection causal model with instrumental variables.
#'
#' @description The \code{gts.nnormal.s} function applies the generalized Bayesian two-stage
#' normal-selection causal model to the categorical treatment data.
#' The model best suits the normally-distributed outc... |
################################################################################
#
# Server function
#
################################################################################
##
function(input, output, session) {
#
##############################################################################
## INPUTS
... | /inst/sleacr/server.R | no_license | nutriverse/sleacr | R | false | false | 2,801 | r | ################################################################################
#
# Server function
#
################################################################################
##
function(input, output, session) {
#
##############################################################################
## INPUTS
... |
# Markov chains in baseball
# Runners --- 1-- -2- --3 12- 1-3 -23 123
# Outs
# 0 1 4 7 10 13 16 19 22
# 1 2 5 8 11 14 17 20 23
# 2 3 6 9 12 15 18 21 24
# T is a 28x28 matrix with transition probabilities from one state to another
# T_(i,... | /markov/markov.R | permissive | cmilbank/singlearity-R | R | false | false | 8,256 | r | # Markov chains in baseball
# Runners --- 1-- -2- --3 12- 1-3 -23 123
# Outs
# 0 1 4 7 10 13 16 19 22
# 1 2 5 8 11 14 17 20 23
# 2 3 6 9 12 15 18 21 24
# T is a 28x28 matrix with transition probabilities from one state to another
# T_(i,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exclusion_table.R
\name{exclusion_table}
\alias{exclusion_table}
\title{Exclusion Table}
\usage{
exclusion_table(
data = NULL,
inclusion_criteria = NULL,
exclusion_criteria = NULL,
labels_inclusion = inclusion_criteria,
labels_exclu... | /man/exclusion_table.Rd | permissive | athan-dial/ExclusionTable | R | false | true | 2,915 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exclusion_table.R
\name{exclusion_table}
\alias{exclusion_table}
\title{Exclusion Table}
\usage{
exclusion_table(
data = NULL,
inclusion_criteria = NULL,
exclusion_criteria = NULL,
labels_inclusion = inclusion_criteria,
labels_exclu... |
#data <- read.table("CRIMEDATA.txt")
#colnames(data) <- c("Identification Number","County Name","State","Land area","Total population","Percent of population aged 18-34","Percent of the population 65 or older","Number of active physicians","Number of hospital beds","Total serious crimes","Percent high school graduates... | /Rcodes.R | no_license | cccolumbia/Reduce-the-Number-of-Serious-Crimes-at-Kings-County | R | false | false | 6,889 | r |
#data <- read.table("CRIMEDATA.txt")
#colnames(data) <- c("Identification Number","County Name","State","Land area","Total population","Percent of population aged 18-34","Percent of the population 65 or older","Number of active physicians","Number of hospital beds","Total serious crimes","Percent high school graduates... |
library(dplyr)
library(irlba)
library(annotables)
library(BuenColors)
set.seed(14651)
eryth_color_maps <- c("P1" = "#3b82ae", "P2" = "#547294", "P3" = "#6d617a", "P4" = "#865160", "P5" = "#9f4046", "P6" = "#b8302c", "P7" = "#d11f12", "P8" = "#de1705")
all_color_maps <- c(ejc_color_maps[c("HSC", "MPP", "CMP")], "MEP" =... | /code/rna/04a_PCA_withCorces.R | no_license | sankaranlab/erythroid-profiling | R | false | false | 1,592 | r | library(dplyr)
library(irlba)
library(annotables)
library(BuenColors)
set.seed(14651)
eryth_color_maps <- c("P1" = "#3b82ae", "P2" = "#547294", "P3" = "#6d617a", "P4" = "#865160", "P5" = "#9f4046", "P6" = "#b8302c", "P7" = "#d11f12", "P8" = "#de1705")
all_color_maps <- c(ejc_color_maps[c("HSC", "MPP", "CMP")], "MEP" =... |
# Assignment: Caching the Inverse of a Matrix
# Matrix inversion is usually a costly computation and there may be some
# benefit to caching the inverse of a matrix rather than compute it repeatedly
# (there are also alternatives to matrix inversion that we will not discuss
# here). Your assignment is to write a pair o... | /cachematrix.R | no_license | Krysek/ProgrammingAssignment2 | R | false | false | 4,599 | r | # Assignment: Caching the Inverse of a Matrix
# Matrix inversion is usually a costly computation and there may be some
# benefit to caching the inverse of a matrix rather than compute it repeatedly
# (there are also alternatives to matrix inversion that we will not discuss
# here). Your assignment is to write a pair o... |
context("Longest Name")
test_that("longestname outputs a name", {
expect_that(longestname(2015), is_a("character"))
})
| /tests/testthat/test_longestname.R | no_license | chriswu1996/williamsgraduates-old | R | false | false | 127 | r | context("Longest Name")
test_that("longestname outputs a name", {
expect_that(longestname(2015), is_a("character"))
})
|
numPerPatch450000 <- c(2426,2574)
| /NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch450000.R | no_license | flaxmans/NatureEE2017 | R | false | false | 34 | r | numPerPatch450000 <- c(2426,2574)
|
testlist <- list(doy = c(4.62595082442287e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.6601383076532... | /meteor/inst/testfiles/Photoperiod/AFL_Photoperiod/Photoperiod_valgrind_files/1615768915-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 683 | r | testlist <- list(doy = c(4.62595082442287e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.6601383076532... |
.onLoad <- function(libname, pkgname) {
UserDir <<- stringr::str_c(stringr::str_split(getwd(),"/")[[1]][1:3],collapse="/")
}
| /R/zzz.R | permissive | youngstreetinitiative/paths | R | false | false | 127 | r | .onLoad <- function(libname, pkgname) {
UserDir <<- stringr::str_c(stringr::str_split(getwd(),"/")[[1]][1:3],collapse="/")
}
|
# This is the original test case that Timo & I wrote back in Spring 2013.
#options(error = utils::recover) # uncomment for more help with debugging
library(OpenMx)
library(mvtnorm)
set.seed(1)
more.noise <- 0
#more.noise <- 1
gen.data <- function(n) {
data.cov <- matrix(c(1, .2, .2, 1), byrow=TRUE, nrow=2)
la... | /inst/models/passing/Rampart1.R | no_license | mhunter1/OpenMx | R | false | false | 4,978 | r | # This is the original test case that Timo & I wrote back in Spring 2013.
#options(error = utils::recover) # uncomment for more help with debugging
library(OpenMx)
library(mvtnorm)
set.seed(1)
more.noise <- 0
#more.noise <- 1
gen.data <- function(n) {
data.cov <- matrix(c(1, .2, .2, 1), byrow=TRUE, nrow=2)
la... |
ConfigFileSave <- function(configuration, file_path, confirm = TRUE) {
continue <- TRUE
if (file.exists(file_path)) {
if (confirm) {
while (continue != 'y' && continue != 'n') {
continue <- readline(paste0("WARNING: The configuration file '", file_path, "' already exists. It will be replaced. Cont... | /s2dverification/R/ConfigFileSave.R | no_license | ingted/R-Examples | R | false | false | 2,265 | r | ConfigFileSave <- function(configuration, file_path, confirm = TRUE) {
continue <- TRUE
if (file.exists(file_path)) {
if (confirm) {
while (continue != 'y' && continue != 'n') {
continue <- readline(paste0("WARNING: The configuration file '", file_path, "' already exists. It will be replaced. Cont... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/petermac_style.R
\name{petermac_style}
\alias{petermac_style}
\title{Add Peter Mac theme to ggplot chart}
\usage{
petermac_style()
}
\description{
This function allows you to add the Peter Mac theme to your ggplotgraphics.
}
\examples{
\dontr... | /man/petermac_style.Rd | no_license | PMacDaSci/pmacplot | R | false | true | 523 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/petermac_style.R
\name{petermac_style}
\alias{petermac_style}
\title{Add Peter Mac theme to ggplot chart}
\usage{
petermac_style()
}
\description{
This function allows you to add the Peter Mac theme to your ggplotgraphics.
}
\examples{
\dontr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_scientific.R
\name{check_scientific}
\alias{check_scientific}
\title{Parse and resolve a scientific name string}
\usage{
check_scientific(name)
}
\arguments{
\item{name}{scientific name string to be checked}
}
\value{
Resolved canonical... | /man/check_scientific.Rd | no_license | SrishtiJ1305/taxotools | R | false | true | 871 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_scientific.R
\name{check_scientific}
\alias{check_scientific}
\title{Parse and resolve a scientific name string}
\usage{
check_scientific(name)
}
\arguments{
\item{name}{scientific name string to be checked}
}
\value{
Resolved canonical... |
# Aish Varadhan
# Aug 9, 2015
# Exploratory Data Analysis - Project 1 on Plotting
# Source data from the file - assumes file is already downloaded to working folder
plot3 <- function(file_path = getwd(), file_name = "household_power_consumption.txt") {
# Load all required libraries
library(dplyr)
library(lu... | /plot3.R | no_license | Aish-Git/ExData_Plotting1 | R | false | false | 1,894 | r | # Aish Varadhan
# Aug 9, 2015
# Exploratory Data Analysis - Project 1 on Plotting
# Source data from the file - assumes file is already downloaded to working folder
plot3 <- function(file_path = getwd(), file_name = "household_power_consumption.txt") {
# Load all required libraries
library(dplyr)
library(lu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfromx.R
\name{dfromx}
\alias{dfromx}
\title{Determine Distance to Shore from Easting}
\usage{
dfromx(x, d2shr.we, eastr)
}
\arguments{
\item{x}{A numeric vector of the eastings to convert (in m).}
\item{d2shr.we}{A numeric vector of length ... | /man/dfromx.Rd | no_license | JVAdams/artiFISHal | R | false | true | 928 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfromx.R
\name{dfromx}
\alias{dfromx}
\title{Determine Distance to Shore from Easting}
\usage{
dfromx(x, d2shr.we, eastr)
}
\arguments{
\item{x}{A numeric vector of the eastings to convert (in m).}
\item{d2shr.we}{A numeric vector of length ... |
library(plotly)
library(tidyverse)
library(ggsci)
library(glue)
#dir.create("~/.fonts")
#file.copy("www/SF-Pro-Text.ttf", "~/.fonts")
#system("fc-cache -f ~/.fonts")
function(input, output, session){
per_state_view_server("state_data")
national_view_server("national_data")
# canvas_plt <- eventReactive(input... | /server.R | no_license | qpmnguyen/covid_deaths_comparison | R | false | false | 861 | r | library(plotly)
library(tidyverse)
library(ggsci)
library(glue)
#dir.create("~/.fonts")
#file.copy("www/SF-Pro-Text.ttf", "~/.fonts")
#system("fc-cache -f ~/.fonts")
function(input, output, session){
per_state_view_server("state_data")
national_view_server("national_data")
# canvas_plt <- eventReactive(input... |
library(MSGARCH)
### Name: FitMCMC
### Title: MCMC/Bayesian estimation.
### Aliases: FitMCMC
### ** Examples
# create model specification
spec <- CreateSpec()
# load data
data("SMI", package = "MSGARCH")
# fit the model on the data by MCMC
set.seed(123)
fit <- FitMCMC(spec = spec, data = SMI, ctr = list(nburn = 5... | /data/genthat_extracted_code/MSGARCH/examples/FitMCMC.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 908 | r | library(MSGARCH)
### Name: FitMCMC
### Title: MCMC/Bayesian estimation.
### Aliases: FitMCMC
### ** Examples
# create model specification
spec <- CreateSpec()
# load data
data("SMI", package = "MSGARCH")
# fit the model on the data by MCMC
set.seed(123)
fit <- FitMCMC(spec = spec, data = SMI, ctr = list(nburn = 5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.